xref: /freebsd/contrib/sqlite3/configure (revision 5dae51da3da0cc94d17bd67b308fad304ebec7e0)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.14.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.14.1'
594PACKAGE_STRING='sqlite 3.14.1'
595PACKAGE_BUGREPORT='http://www.sqlite.org'
596PACKAGE_URL=''
597
598ac_unique_file="sqlite3.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639EXTRA_SHELL_OBJ
640SESSION_FLAGS
641JSON1_FLAGS
642FTS5_FLAGS
643DYNAMIC_EXTENSION_FLAGS
644THREADSAFE_FLAGS
645READLINE_LIBS
646BUILD_CFLAGS
647CPP
648LT_SYS_LIBRARY_PATH
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656ac_ct_AR
657AR
658DLLTOOL
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666EGREP
667GREP
668SED
669host_os
670host_vendor
671host_cpu
672host
673build_os
674build_vendor
675build_cpu
676build
677LIBTOOL
678am__fastdepCC_FALSE
679am__fastdepCC_TRUE
680CCDEPMODE
681am__nodep
682AMDEPBACKSLASH
683AMDEP_FALSE
684AMDEP_TRUE
685am__quote
686am__include
687DEPDIR
688OBJEXT
689EXEEXT
690ac_ct_CC
691CPPFLAGS
692LDFLAGS
693CFLAGS
694CC
695AM_BACKSLASH
696AM_DEFAULT_VERBOSITY
697AM_DEFAULT_V
698AM_V
699am__untar
700am__tar
701AMTAR
702am__leading_dot
703SET_MAKE
704AWK
705mkdir_p
706MKDIR_P
707INSTALL_STRIP_PROGRAM
708STRIP
709install_sh
710MAKEINFO
711AUTOHEADER
712AUTOMAKE
713AUTOCONF
714ACLOCAL
715VERSION
716PACKAGE
717CYGPATH_W
718am__isrc
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722target_alias
723host_alias
724build_alias
725LIBS
726ECHO_T
727ECHO_N
728ECHO_C
729DEFS
730mandir
731localedir
732libdir
733psdir
734pdfdir
735dvidir
736htmldir
737infodir
738docdir
739oldincludedir
740includedir
741localstatedir
742sharedstatedir
743sysconfdir
744datadir
745datarootdir
746libexecdir
747sbindir
748bindir
749program_transform_name
750prefix
751exec_prefix
752PACKAGE_URL
753PACKAGE_BUGREPORT
754PACKAGE_STRING
755PACKAGE_VERSION
756PACKAGE_TARNAME
757PACKAGE_NAME
758PATH_SEPARATOR
759SHELL'
760ac_subst_files=''
761ac_user_opts='
762enable_option_checking
763enable_silent_rules
764enable_largefile
765enable_dependency_tracking
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_aix_soname
771with_gnu_ld
772with_sysroot
773enable_libtool_lock
774enable_editline
775enable_readline
776enable_threadsafe
777enable_dynamic_extensions
778enable_fts5
779enable_json1
780enable_session
781enable_static_shell
782'
783      ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
789LIBS
790CPPFLAGS
791LT_SYS_LIBRARY_PATH
792CPP'
793
794
795# Initialize some variables set by options.
796ac_init_help=
797ac_init_version=false
798ac_unrecognized_opts=
799ac_unrecognized_sep=
800# The variables have the same names as the options, with
801# dashes changed to underlines.
802cache_file=/dev/null
803exec_prefix=NONE
804no_create=
805no_recursion=
806prefix=NONE
807program_prefix=NONE
808program_suffix=NONE
809program_transform_name=s,x,x,
810silent=
811site=
812srcdir=
813verbose=
814x_includes=NONE
815x_libraries=NONE
816
817# Installation directory options.
818# These are left unexpanded so users can "make install exec_prefix=/foo"
819# and all the variables that are supposed to be based on exec_prefix
820# by default will actually change.
821# Use braces instead of parens because sh, perl, etc. also accept them.
822# (The list follows the same order as the GNU Coding Standards.)
823bindir='${exec_prefix}/bin'
824sbindir='${exec_prefix}/sbin'
825libexecdir='${exec_prefix}/libexec'
826datarootdir='${prefix}/share'
827datadir='${datarootdir}'
828sysconfdir='${prefix}/etc'
829sharedstatedir='${prefix}/com'
830localstatedir='${prefix}/var'
831includedir='${prefix}/include'
832oldincludedir='/usr/include'
833docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834infodir='${datarootdir}/info'
835htmldir='${docdir}'
836dvidir='${docdir}'
837pdfdir='${docdir}'
838psdir='${docdir}'
839libdir='${exec_prefix}/lib'
840localedir='${datarootdir}/locale'
841mandir='${datarootdir}/man'
842
843ac_prev=
844ac_dashdash=
845for ac_option
846do
847  # If the previous option needs an argument, assign it.
848  if test -n "$ac_prev"; then
849    eval $ac_prev=\$ac_option
850    ac_prev=
851    continue
852  fi
853
854  case $ac_option in
855  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856  *=)   ac_optarg= ;;
857  *)    ac_optarg=yes ;;
858  esac
859
860  # Accept the important Cygnus configure options, so we can diagnose typos.
861
862  case $ac_dashdash$ac_option in
863  --)
864    ac_dashdash=yes ;;
865
866  -bindir | --bindir | --bindi | --bind | --bin | --bi)
867    ac_prev=bindir ;;
868  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869    bindir=$ac_optarg ;;
870
871  -build | --build | --buil | --bui | --bu)
872    ac_prev=build_alias ;;
873  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874    build_alias=$ac_optarg ;;
875
876  -cache-file | --cache-file | --cache-fil | --cache-fi \
877  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878    ac_prev=cache_file ;;
879  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881    cache_file=$ac_optarg ;;
882
883  --config-cache | -C)
884    cache_file=config.cache ;;
885
886  -datadir | --datadir | --datadi | --datad)
887    ac_prev=datadir ;;
888  -datadir=* | --datadir=* | --datadi=* | --datad=*)
889    datadir=$ac_optarg ;;
890
891  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892  | --dataroo | --dataro | --datar)
893    ac_prev=datarootdir ;;
894  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896    datarootdir=$ac_optarg ;;
897
898  -disable-* | --disable-*)
899    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900    # Reject names that are not valid shell variable names.
901    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902      as_fn_error $? "invalid feature name: $ac_useropt"
903    ac_useropt_orig=$ac_useropt
904    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905    case $ac_user_opts in
906      *"
907"enable_$ac_useropt"
908"*) ;;
909      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910	 ac_unrecognized_sep=', ';;
911    esac
912    eval enable_$ac_useropt=no ;;
913
914  -docdir | --docdir | --docdi | --doc | --do)
915    ac_prev=docdir ;;
916  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917    docdir=$ac_optarg ;;
918
919  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920    ac_prev=dvidir ;;
921  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922    dvidir=$ac_optarg ;;
923
924  -enable-* | --enable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=\$ac_optarg ;;
939
940  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942  | --exec | --exe | --ex)
943    ac_prev=exec_prefix ;;
944  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946  | --exec=* | --exe=* | --ex=*)
947    exec_prefix=$ac_optarg ;;
948
949  -gas | --gas | --ga | --g)
950    # Obsolete; use --with-gas.
951    with_gas=yes ;;
952
953  -help | --help | --hel | --he | -h)
954    ac_init_help=long ;;
955  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956    ac_init_help=recursive ;;
957  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958    ac_init_help=short ;;
959
960  -host | --host | --hos | --ho)
961    ac_prev=host_alias ;;
962  -host=* | --host=* | --hos=* | --ho=*)
963    host_alias=$ac_optarg ;;
964
965  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966    ac_prev=htmldir ;;
967  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968  | --ht=*)
969    htmldir=$ac_optarg ;;
970
971  -includedir | --includedir | --includedi | --included | --include \
972  | --includ | --inclu | --incl | --inc)
973    ac_prev=includedir ;;
974  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975  | --includ=* | --inclu=* | --incl=* | --inc=*)
976    includedir=$ac_optarg ;;
977
978  -infodir | --infodir | --infodi | --infod | --info | --inf)
979    ac_prev=infodir ;;
980  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981    infodir=$ac_optarg ;;
982
983  -libdir | --libdir | --libdi | --libd)
984    ac_prev=libdir ;;
985  -libdir=* | --libdir=* | --libdi=* | --libd=*)
986    libdir=$ac_optarg ;;
987
988  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989  | --libexe | --libex | --libe)
990    ac_prev=libexecdir ;;
991  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992  | --libexe=* | --libex=* | --libe=*)
993    libexecdir=$ac_optarg ;;
994
995  -localedir | --localedir | --localedi | --localed | --locale)
996    ac_prev=localedir ;;
997  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998    localedir=$ac_optarg ;;
999
1000  -localstatedir | --localstatedir | --localstatedi | --localstated \
1001  | --localstate | --localstat | --localsta | --localst | --locals)
1002    ac_prev=localstatedir ;;
1003  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005    localstatedir=$ac_optarg ;;
1006
1007  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008    ac_prev=mandir ;;
1009  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010    mandir=$ac_optarg ;;
1011
1012  -nfp | --nfp | --nf)
1013    # Obsolete; use --without-fp.
1014    with_fp=no ;;
1015
1016  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017  | --no-cr | --no-c | -n)
1018    no_create=yes ;;
1019
1020  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022    no_recursion=yes ;;
1023
1024  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026  | --oldin | --oldi | --old | --ol | --o)
1027    ac_prev=oldincludedir ;;
1028  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031    oldincludedir=$ac_optarg ;;
1032
1033  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034    ac_prev=prefix ;;
1035  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036    prefix=$ac_optarg ;;
1037
1038  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039  | --program-pre | --program-pr | --program-p)
1040    ac_prev=program_prefix ;;
1041  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043    program_prefix=$ac_optarg ;;
1044
1045  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046  | --program-suf | --program-su | --program-s)
1047    ac_prev=program_suffix ;;
1048  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050    program_suffix=$ac_optarg ;;
1051
1052  -program-transform-name | --program-transform-name \
1053  | --program-transform-nam | --program-transform-na \
1054  | --program-transform-n | --program-transform- \
1055  | --program-transform | --program-transfor \
1056  | --program-transfo | --program-transf \
1057  | --program-trans | --program-tran \
1058  | --progr-tra | --program-tr | --program-t)
1059    ac_prev=program_transform_name ;;
1060  -program-transform-name=* | --program-transform-name=* \
1061  | --program-transform-nam=* | --program-transform-na=* \
1062  | --program-transform-n=* | --program-transform-=* \
1063  | --program-transform=* | --program-transfor=* \
1064  | --program-transfo=* | --program-transf=* \
1065  | --program-trans=* | --program-tran=* \
1066  | --progr-tra=* | --program-tr=* | --program-t=*)
1067    program_transform_name=$ac_optarg ;;
1068
1069  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070    ac_prev=pdfdir ;;
1071  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072    pdfdir=$ac_optarg ;;
1073
1074  -psdir | --psdir | --psdi | --psd | --ps)
1075    ac_prev=psdir ;;
1076  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077    psdir=$ac_optarg ;;
1078
1079  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080  | -silent | --silent | --silen | --sile | --sil)
1081    silent=yes ;;
1082
1083  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084    ac_prev=sbindir ;;
1085  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086  | --sbi=* | --sb=*)
1087    sbindir=$ac_optarg ;;
1088
1089  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091  | --sharedst | --shareds | --shared | --share | --shar \
1092  | --sha | --sh)
1093    ac_prev=sharedstatedir ;;
1094  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097  | --sha=* | --sh=*)
1098    sharedstatedir=$ac_optarg ;;
1099
1100  -site | --site | --sit)
1101    ac_prev=site ;;
1102  -site=* | --site=* | --sit=*)
1103    site=$ac_optarg ;;
1104
1105  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106    ac_prev=srcdir ;;
1107  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108    srcdir=$ac_optarg ;;
1109
1110  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111  | --syscon | --sysco | --sysc | --sys | --sy)
1112    ac_prev=sysconfdir ;;
1113  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115    sysconfdir=$ac_optarg ;;
1116
1117  -target | --target | --targe | --targ | --tar | --ta | --t)
1118    ac_prev=target_alias ;;
1119  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120    target_alias=$ac_optarg ;;
1121
1122  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123    verbose=yes ;;
1124
1125  -version | --version | --versio | --versi | --vers | -V)
1126    ac_init_version=: ;;
1127
1128  -with-* | --with-*)
1129    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132      as_fn_error $? "invalid package name: $ac_useropt"
1133    ac_useropt_orig=$ac_useropt
1134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135    case $ac_user_opts in
1136      *"
1137"with_$ac_useropt"
1138"*) ;;
1139      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140	 ac_unrecognized_sep=', ';;
1141    esac
1142    eval with_$ac_useropt=\$ac_optarg ;;
1143
1144  -without-* | --without-*)
1145    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148      as_fn_error $? "invalid package name: $ac_useropt"
1149    ac_useropt_orig=$ac_useropt
1150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151    case $ac_user_opts in
1152      *"
1153"with_$ac_useropt"
1154"*) ;;
1155      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156	 ac_unrecognized_sep=', ';;
1157    esac
1158    eval with_$ac_useropt=no ;;
1159
1160  --x)
1161    # Obsolete; use --with-x.
1162    with_x=yes ;;
1163
1164  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165  | --x-incl | --x-inc | --x-in | --x-i)
1166    ac_prev=x_includes ;;
1167  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169    x_includes=$ac_optarg ;;
1170
1171  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173    ac_prev=x_libraries ;;
1174  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176    x_libraries=$ac_optarg ;;
1177
1178  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179Try \`$0 --help' for more information"
1180    ;;
1181
1182  *=*)
1183    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184    # Reject names that are not valid shell variable names.
1185    case $ac_envvar in #(
1186      '' | [0-9]* | *[!_$as_cr_alnum]* )
1187      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188    esac
1189    eval $ac_envvar=\$ac_optarg
1190    export $ac_envvar ;;
1191
1192  *)
1193    # FIXME: should be removed in autoconf 3.0.
1194    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198    ;;
1199
1200  esac
1201done
1202
1203if test -n "$ac_prev"; then
1204  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205  as_fn_error $? "missing argument to $ac_option"
1206fi
1207
1208if test -n "$ac_unrecognized_opts"; then
1209  case $enable_option_checking in
1210    no) ;;
1211    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213  esac
1214fi
1215
1216# Check all directory arguments for consistency.
1217for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218		datadir sysconfdir sharedstatedir localstatedir includedir \
1219		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220		libdir localedir mandir
1221do
1222  eval ac_val=\$$ac_var
1223  # Remove trailing slashes.
1224  case $ac_val in
1225    */ )
1226      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227      eval $ac_var=\$ac_val;;
1228  esac
1229  # Be sure to have absolute directory names.
1230  case $ac_val in
1231    [\\/$]* | ?:[\\/]* )  continue;;
1232    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233  esac
1234  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235done
1236
1237# There might be people who depend on the old broken behavior: `$host'
1238# used to hold the argument of --host etc.
1239# FIXME: To remove some day.
1240build=$build_alias
1241host=$host_alias
1242target=$target_alias
1243
1244# FIXME: To remove some day.
1245if test "x$host_alias" != x; then
1246  if test "x$build_alias" = x; then
1247    cross_compiling=maybe
1248  elif test "x$build_alias" != "x$host_alias"; then
1249    cross_compiling=yes
1250  fi
1251fi
1252
1253ac_tool_prefix=
1254test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256test "$silent" = yes && exec 6>/dev/null
1257
1258
1259ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260ac_ls_di=`ls -di .` &&
1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262  as_fn_error $? "working directory cannot be determined"
1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264  as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267# Find the source files, if location was not specified.
1268if test -z "$srcdir"; then
1269  ac_srcdir_defaulted=yes
1270  # Try the directory containing this script, then the parent directory.
1271  ac_confdir=`$as_dirname -- "$as_myself" ||
1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273	 X"$as_myself" : 'X\(//\)[^/]' \| \
1274	 X"$as_myself" : 'X\(//\)$' \| \
1275	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276$as_echo X"$as_myself" |
1277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\/\)[^/].*/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)$/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\).*/{
1290	    s//\1/
1291	    q
1292	  }
1293	  s/.*/./; q'`
1294  srcdir=$ac_confdir
1295  if test ! -r "$srcdir/$ac_unique_file"; then
1296    srcdir=..
1297  fi
1298else
1299  ac_srcdir_defaulted=no
1300fi
1301if test ! -r "$srcdir/$ac_unique_file"; then
1302  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304fi
1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306ac_abs_confdir=`(
1307	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308	pwd)`
1309# When building in place, set srcdir=.
1310if test "$ac_abs_confdir" = "$ac_pwd"; then
1311  srcdir=.
1312fi
1313# Remove unnecessary trailing slashes from srcdir.
1314# Double slashes in file names in object file debugging info
1315# mess up M-x gdb in Emacs.
1316case $srcdir in
1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318esac
1319for ac_var in $ac_precious_vars; do
1320  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_env_${ac_var}_value=\$${ac_var}
1322  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324done
1325
1326#
1327# Report the --help message.
1328#
1329if test "$ac_init_help" = "long"; then
1330  # Omit some internal or obsolete options to make the list less imposing.
1331  # This message is too long to be a string in the A/UX 3.1 sh.
1332  cat <<_ACEOF
1333\`configure' configures sqlite 3.14.1 to adapt to many kinds of systems.
1334
1335Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338VAR=VALUE.  See below for descriptions of some of the useful variables.
1339
1340Defaults for the options are specified in brackets.
1341
1342Configuration:
1343  -h, --help              display this help and exit
1344      --help=short        display options specific to this package
1345      --help=recursive    display the short help of all the included packages
1346  -V, --version           display version information and exit
1347  -q, --quiet, --silent   do not print \`checking ...' messages
1348      --cache-file=FILE   cache test results in FILE [disabled]
1349  -C, --config-cache      alias for \`--cache-file=config.cache'
1350  -n, --no-create         do not create output files
1351      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352
1353Installation directories:
1354  --prefix=PREFIX         install architecture-independent files in PREFIX
1355                          [$ac_default_prefix]
1356  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357                          [PREFIX]
1358
1359By default, \`make install' will install all the files in
1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362for instance \`--prefix=\$HOME'.
1363
1364For better control, use the options below.
1365
1366Fine tuning of the installation directories:
1367  --bindir=DIR            user executables [EPREFIX/bin]
1368  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1369  --libexecdir=DIR        program executables [EPREFIX/libexec]
1370  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1371  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1372  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1373  --libdir=DIR            object code libraries [EPREFIX/lib]
1374  --includedir=DIR        C header files [PREFIX/include]
1375  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1376  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1377  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1378  --infodir=DIR           info documentation [DATAROOTDIR/info]
1379  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1380  --mandir=DIR            man documentation [DATAROOTDIR/man]
1381  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1382  --htmldir=DIR           html documentation [DOCDIR]
1383  --dvidir=DIR            dvi documentation [DOCDIR]
1384  --pdfdir=DIR            pdf documentation [DOCDIR]
1385  --psdir=DIR             ps documentation [DOCDIR]
1386_ACEOF
1387
1388  cat <<\_ACEOF
1389
1390Program names:
1391  --program-prefix=PREFIX            prepend PREFIX to installed program names
1392  --program-suffix=SUFFIX            append SUFFIX to installed program names
1393  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1394
1395System types:
1396  --build=BUILD     configure for building on BUILD [guessed]
1397  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1398_ACEOF
1399fi
1400
1401if test -n "$ac_init_help"; then
1402  case $ac_init_help in
1403     short | recursive ) echo "Configuration of sqlite 3.14.1:";;
1404   esac
1405  cat <<\_ACEOF
1406
1407Optional Features:
1408  --disable-option-checking  ignore unrecognized --enable/--with options
1409  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1410  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1411  --enable-silent-rules   less verbose build output (undo: "make V=1")
1412  --disable-silent-rules  verbose build output (undo: "make V=0")
1413  --disable-largefile     omit support for large files
1414  --enable-dependency-tracking
1415                          do not reject slow dependency extractors
1416  --disable-dependency-tracking
1417                          speeds up one-time build
1418  --enable-shared[=PKGS]  build shared libraries [default=yes]
1419  --enable-static[=PKGS]  build static libraries [default=yes]
1420  --enable-fast-install[=PKGS]
1421                          optimize for fast installation [default=yes]
1422  --disable-libtool-lock  avoid locking (might break parallel builds)
1423  --enable-editline       use BSD libedit
1424  --enable-readline       use readline
1425  --enable-threadsafe     build a thread-safe library [default=yes]
1426  --enable-dynamic-extensions
1427                          support loadable extensions [default=yes]
1428  --enable-fts5           include fts5 support [default=no]
1429  --enable-json1          include json1 support [default=no]
1430  --enable-session        enable the session extension [default=no]
1431  --enable-static-shell   statically link libsqlite3 into shell tool
1432                          [default=yes]
1433
1434Optional Packages:
1435  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1436  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1437  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1438                          both]
1439  --with-aix-soname=aix|svr4|both
1440                          shared library versioning (aka "SONAME") variant to
1441                          provide on AIX, [default=aix].
1442  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1443  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1444                          compiler's sysroot if not specified).
1445
1446Some influential environment variables:
1447  CC          C compiler command
1448  CFLAGS      C compiler flags
1449  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450              nonstandard directory <lib dir>
1451  LIBS        libraries to pass to the linker, e.g. -l<library>
1452  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453              you have headers in a nonstandard directory <include dir>
1454  LT_SYS_LIBRARY_PATH
1455              User-defined run-time library search path.
1456  CPP         C preprocessor
1457
1458Use these variables to override the choices made by `configure' or to help
1459it to find libraries and programs with nonstandard names/locations.
1460
1461Report bugs to <http://www.sqlite.org>.
1462_ACEOF
1463ac_status=$?
1464fi
1465
1466if test "$ac_init_help" = "recursive"; then
1467  # If there are subdirs, report their specific --help.
1468  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469    test -d "$ac_dir" ||
1470      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471      continue
1472    ac_builddir=.
1473
1474case "$ac_dir" in
1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476*)
1477  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478  # A ".." for each directory in $ac_dir_suffix.
1479  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480  case $ac_top_builddir_sub in
1481  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483  esac ;;
1484esac
1485ac_abs_top_builddir=$ac_pwd
1486ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487# for backward compatibility:
1488ac_top_builddir=$ac_top_build_prefix
1489
1490case $srcdir in
1491  .)  # We are building in place.
1492    ac_srcdir=.
1493    ac_top_srcdir=$ac_top_builddir_sub
1494    ac_abs_top_srcdir=$ac_pwd ;;
1495  [\\/]* | ?:[\\/]* )  # Absolute name.
1496    ac_srcdir=$srcdir$ac_dir_suffix;
1497    ac_top_srcdir=$srcdir
1498    ac_abs_top_srcdir=$srcdir ;;
1499  *) # Relative name.
1500    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501    ac_top_srcdir=$ac_top_build_prefix$srcdir
1502    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503esac
1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506    cd "$ac_dir" || { ac_status=$?; continue; }
1507    # Check for guested configure.
1508    if test -f "$ac_srcdir/configure.gnu"; then
1509      echo &&
1510      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511    elif test -f "$ac_srcdir/configure"; then
1512      echo &&
1513      $SHELL "$ac_srcdir/configure" --help=recursive
1514    else
1515      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516    fi || ac_status=$?
1517    cd "$ac_pwd" || { ac_status=$?; break; }
1518  done
1519fi
1520
1521test -n "$ac_init_help" && exit $ac_status
1522if $ac_init_version; then
1523  cat <<\_ACEOF
1524sqlite configure 3.14.1
1525generated by GNU Autoconf 2.69
1526
1527Copyright (C) 2012 Free Software Foundation, Inc.
1528This configure script is free software; the Free Software Foundation
1529gives unlimited permission to copy, distribute and modify it.
1530_ACEOF
1531  exit
1532fi
1533
1534## ------------------------ ##
1535## Autoconf initialization. ##
1536## ------------------------ ##
1537
1538# ac_fn_c_try_compile LINENO
1539# --------------------------
1540# Try to compile conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_compile ()
1542{
1543  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544  rm -f conftest.$ac_objext
1545  if { { ac_try="$ac_compile"
1546case "(($ac_try" in
1547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548  *) ac_try_echo=$ac_try;;
1549esac
1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551$as_echo "$ac_try_echo"; } >&5
1552  (eval "$ac_compile") 2>conftest.err
1553  ac_status=$?
1554  if test -s conftest.err; then
1555    grep -v '^ *+' conftest.err >conftest.er1
1556    cat conftest.er1 >&5
1557    mv -f conftest.er1 conftest.err
1558  fi
1559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560  test $ac_status = 0; } && {
1561	 test -z "$ac_c_werror_flag" ||
1562	 test ! -s conftest.err
1563       } && test -s conftest.$ac_objext; then :
1564  ac_retval=0
1565else
1566  $as_echo "$as_me: failed program was:" >&5
1567sed 's/^/| /' conftest.$ac_ext >&5
1568
1569	ac_retval=1
1570fi
1571  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572  as_fn_set_status $ac_retval
1573
1574} # ac_fn_c_try_compile
1575
1576# ac_fn_c_try_link LINENO
1577# -----------------------
1578# Try to link conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_link ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  rm -f conftest.$ac_objext conftest$ac_exeext
1583  if { { ac_try="$ac_link"
1584case "(($ac_try" in
1585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586  *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590  (eval "$ac_link") 2>conftest.err
1591  ac_status=$?
1592  if test -s conftest.err; then
1593    grep -v '^ *+' conftest.err >conftest.er1
1594    cat conftest.er1 >&5
1595    mv -f conftest.er1 conftest.err
1596  fi
1597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598  test $ac_status = 0; } && {
1599	 test -z "$ac_c_werror_flag" ||
1600	 test ! -s conftest.err
1601       } && test -s conftest$ac_exeext && {
1602	 test "$cross_compiling" = yes ||
1603	 test -x conftest$ac_exeext
1604       }; then :
1605  ac_retval=0
1606else
1607  $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610	ac_retval=1
1611fi
1612  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614  # interfere with the next link command; also delete a directory that is
1615  # left behind by Apple's compiler.  We do this before executing the actions.
1616  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618  as_fn_set_status $ac_retval
1619
1620} # ac_fn_c_try_link
1621
1622# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623# -------------------------------------------------------
1624# Tests whether HEADER exists and can be compiled using the include files in
1625# INCLUDES, setting the cache variable VAR accordingly.
1626ac_fn_c_check_header_compile ()
1627{
1628  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630$as_echo_n "checking for $2... " >&6; }
1631if eval \${$3+:} false; then :
1632  $as_echo_n "(cached) " >&6
1633else
1634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635/* end confdefs.h.  */
1636$4
1637#include <$2>
1638_ACEOF
1639if ac_fn_c_try_compile "$LINENO"; then :
1640  eval "$3=yes"
1641else
1642  eval "$3=no"
1643fi
1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645fi
1646eval ac_res=\$$3
1647	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648$as_echo "$ac_res" >&6; }
1649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
1651} # ac_fn_c_check_header_compile
1652
1653# ac_fn_c_try_cpp LINENO
1654# ----------------------
1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_c_try_cpp ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  if { { ac_try="$ac_cpp conftest.$ac_ext"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } > conftest.i && {
1675	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       }; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683    ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_cpp
1689
1690# ac_fn_c_try_run LINENO
1691# ----------------------
1692# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693# that executables *can* be run.
1694ac_fn_c_try_run ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  if { { ac_try="$ac_link"
1698case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704  (eval "$ac_link") 2>&5
1705  ac_status=$?
1706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708  { { case "(($ac_try" in
1709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710  *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714  (eval "$ac_try") 2>&5
1715  ac_status=$?
1716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; }; }; then :
1718  ac_retval=0
1719else
1720  $as_echo "$as_me: program exited with status $ac_status" >&5
1721       $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724       ac_retval=$ac_status
1725fi
1726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_run
1731
1732# ac_fn_c_check_func LINENO FUNC VAR
1733# ----------------------------------
1734# Tests whether FUNC exists, setting the cache variable VAR accordingly
1735ac_fn_c_check_func ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if eval \${$3+:} false; then :
1741  $as_echo_n "(cached) " >&6
1742else
1743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1747#define $2 innocuous_$2
1748
1749/* System header to define __stub macros and hopefully few prototypes,
1750    which can conflict with char $2 (); below.
1751    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752    <limits.h> exists even on freestanding compilers.  */
1753
1754#ifdef __STDC__
1755# include <limits.h>
1756#else
1757# include <assert.h>
1758#endif
1759
1760#undef $2
1761
1762/* Override any GCC internal prototype to avoid an error.
1763   Use char because int might match the return type of a GCC
1764   builtin and then its argument prototype would still apply.  */
1765#ifdef __cplusplus
1766extern "C"
1767#endif
1768char $2 ();
1769/* The GNU C library defines this for functions which it implements
1770    to always fail with ENOSYS.  Some functions are actually named
1771    something starting with __ and the normal name is an alias.  */
1772#if defined __stub_$2 || defined __stub___$2
1773choke me
1774#endif
1775
1776int
1777main ()
1778{
1779return $2 ();
1780  ;
1781  return 0;
1782}
1783_ACEOF
1784if ac_fn_c_try_link "$LINENO"; then :
1785  eval "$3=yes"
1786else
1787  eval "$3=no"
1788fi
1789rm -f core conftest.err conftest.$ac_objext \
1790    conftest$ac_exeext conftest.$ac_ext
1791fi
1792eval ac_res=\$$3
1793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797} # ac_fn_c_check_func
1798
1799# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1800# ---------------------------------------------
1801# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1802# accordingly.
1803ac_fn_c_check_decl ()
1804{
1805  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806  as_decl_name=`echo $2|sed 's/ *(.*//'`
1807  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1809$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1810if eval \${$3+:} false; then :
1811  $as_echo_n "(cached) " >&6
1812else
1813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h.  */
1815$4
1816int
1817main ()
1818{
1819#ifndef $as_decl_name
1820#ifdef __cplusplus
1821  (void) $as_decl_use;
1822#else
1823  (void) $as_decl_name;
1824#endif
1825#endif
1826
1827  ;
1828  return 0;
1829}
1830_ACEOF
1831if ac_fn_c_try_compile "$LINENO"; then :
1832  eval "$3=yes"
1833else
1834  eval "$3=no"
1835fi
1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837fi
1838eval ac_res=\$$3
1839	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840$as_echo "$ac_res" >&6; }
1841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843} # ac_fn_c_check_decl
1844
1845# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1846# -------------------------------------------------------
1847# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1848# the include files in INCLUDES and setting the cache variable VAR
1849# accordingly.
1850ac_fn_c_check_header_mongrel ()
1851{
1852  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853  if eval \${$3+:} false; then :
1854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855$as_echo_n "checking for $2... " >&6; }
1856if eval \${$3+:} false; then :
1857  $as_echo_n "(cached) " >&6
1858fi
1859eval ac_res=\$$3
1860	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861$as_echo "$ac_res" >&6; }
1862else
1863  # Is the header compilable?
1864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1865$as_echo_n "checking $2 usability... " >&6; }
1866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868$4
1869#include <$2>
1870_ACEOF
1871if ac_fn_c_try_compile "$LINENO"; then :
1872  ac_header_compiler=yes
1873else
1874  ac_header_compiler=no
1875fi
1876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1878$as_echo "$ac_header_compiler" >&6; }
1879
1880# Is the header present?
1881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1882$as_echo_n "checking $2 presence... " >&6; }
1883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h.  */
1885#include <$2>
1886_ACEOF
1887if ac_fn_c_try_cpp "$LINENO"; then :
1888  ac_header_preproc=yes
1889else
1890  ac_header_preproc=no
1891fi
1892rm -f conftest.err conftest.i conftest.$ac_ext
1893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1894$as_echo "$ac_header_preproc" >&6; }
1895
1896# So?  What about this header?
1897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1898  yes:no: )
1899    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1900$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1901    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1902$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1903    ;;
1904  no:yes:* )
1905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1906$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1908$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1910$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1912$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1914$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1915( $as_echo "## ------------------------------------ ##
1916## Report this to http://www.sqlite.org ##
1917## ------------------------------------ ##"
1918     ) | sed "s/^/$as_me: WARNING:     /" >&2
1919    ;;
1920esac
1921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922$as_echo_n "checking for $2... " >&6; }
1923if eval \${$3+:} false; then :
1924  $as_echo_n "(cached) " >&6
1925else
1926  eval "$3=\$ac_header_compiler"
1927fi
1928eval ac_res=\$$3
1929	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931fi
1932  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934} # ac_fn_c_check_header_mongrel
1935cat >config.log <<_ACEOF
1936This file contains any messages produced by compilers while
1937running configure, to aid debugging if configure makes a mistake.
1938
1939It was created by sqlite $as_me 3.14.1, which was
1940generated by GNU Autoconf 2.69.  Invocation command line was
1941
1942  $ $0 $@
1943
1944_ACEOF
1945exec 5>>config.log
1946{
1947cat <<_ASUNAME
1948## --------- ##
1949## Platform. ##
1950## --------- ##
1951
1952hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1953uname -m = `(uname -m) 2>/dev/null || echo unknown`
1954uname -r = `(uname -r) 2>/dev/null || echo unknown`
1955uname -s = `(uname -s) 2>/dev/null || echo unknown`
1956uname -v = `(uname -v) 2>/dev/null || echo unknown`
1957
1958/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1959/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1960
1961/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1962/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1963/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1964/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1965/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1966/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1967/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1968
1969_ASUNAME
1970
1971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972for as_dir in $PATH
1973do
1974  IFS=$as_save_IFS
1975  test -z "$as_dir" && as_dir=.
1976    $as_echo "PATH: $as_dir"
1977  done
1978IFS=$as_save_IFS
1979
1980} >&5
1981
1982cat >&5 <<_ACEOF
1983
1984
1985## ----------- ##
1986## Core tests. ##
1987## ----------- ##
1988
1989_ACEOF
1990
1991
1992# Keep a trace of the command line.
1993# Strip out --no-create and --no-recursion so they do not pile up.
1994# Strip out --silent because we don't want to record it for future runs.
1995# Also quote any args containing shell meta-characters.
1996# Make two passes to allow for proper duplicate-argument suppression.
1997ac_configure_args=
1998ac_configure_args0=
1999ac_configure_args1=
2000ac_must_keep_next=false
2001for ac_pass in 1 2
2002do
2003  for ac_arg
2004  do
2005    case $ac_arg in
2006    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2007    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2008    | -silent | --silent | --silen | --sile | --sil)
2009      continue ;;
2010    *\'*)
2011      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2012    esac
2013    case $ac_pass in
2014    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2015    2)
2016      as_fn_append ac_configure_args1 " '$ac_arg'"
2017      if test $ac_must_keep_next = true; then
2018	ac_must_keep_next=false # Got value, back to normal.
2019      else
2020	case $ac_arg in
2021	  *=* | --config-cache | -C | -disable-* | --disable-* \
2022	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2023	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2024	  | -with-* | --with-* | -without-* | --without-* | --x)
2025	    case "$ac_configure_args0 " in
2026	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2027	    esac
2028	    ;;
2029	  -* ) ac_must_keep_next=true ;;
2030	esac
2031      fi
2032      as_fn_append ac_configure_args " '$ac_arg'"
2033      ;;
2034    esac
2035  done
2036done
2037{ ac_configure_args0=; unset ac_configure_args0;}
2038{ ac_configure_args1=; unset ac_configure_args1;}
2039
2040# When interrupted or exit'd, cleanup temporary files, and complete
2041# config.log.  We remove comments because anyway the quotes in there
2042# would cause problems or look ugly.
2043# WARNING: Use '\'' to represent an apostrophe within the trap.
2044# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2045trap 'exit_status=$?
2046  # Save into config.log some information that might help in debugging.
2047  {
2048    echo
2049
2050    $as_echo "## ---------------- ##
2051## Cache variables. ##
2052## ---------------- ##"
2053    echo
2054    # The following way of writing the cache mishandles newlines in values,
2055(
2056  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2057    eval ac_val=\$$ac_var
2058    case $ac_val in #(
2059    *${as_nl}*)
2060      case $ac_var in #(
2061      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2062$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2063      esac
2064      case $ac_var in #(
2065      _ | IFS | as_nl) ;; #(
2066      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2067      *) { eval $ac_var=; unset $ac_var;} ;;
2068      esac ;;
2069    esac
2070  done
2071  (set) 2>&1 |
2072    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2073    *${as_nl}ac_space=\ *)
2074      sed -n \
2075	"s/'\''/'\''\\\\'\'''\''/g;
2076	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2077      ;; #(
2078    *)
2079      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2080      ;;
2081    esac |
2082    sort
2083)
2084    echo
2085
2086    $as_echo "## ----------------- ##
2087## Output variables. ##
2088## ----------------- ##"
2089    echo
2090    for ac_var in $ac_subst_vars
2091    do
2092      eval ac_val=\$$ac_var
2093      case $ac_val in
2094      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095      esac
2096      $as_echo "$ac_var='\''$ac_val'\''"
2097    done | sort
2098    echo
2099
2100    if test -n "$ac_subst_files"; then
2101      $as_echo "## ------------------- ##
2102## File substitutions. ##
2103## ------------------- ##"
2104      echo
2105      for ac_var in $ac_subst_files
2106      do
2107	eval ac_val=\$$ac_var
2108	case $ac_val in
2109	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110	esac
2111	$as_echo "$ac_var='\''$ac_val'\''"
2112      done | sort
2113      echo
2114    fi
2115
2116    if test -s confdefs.h; then
2117      $as_echo "## ----------- ##
2118## confdefs.h. ##
2119## ----------- ##"
2120      echo
2121      cat confdefs.h
2122      echo
2123    fi
2124    test "$ac_signal" != 0 &&
2125      $as_echo "$as_me: caught signal $ac_signal"
2126    $as_echo "$as_me: exit $exit_status"
2127  } >&5
2128  rm -f core *.core core.conftest.* &&
2129    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2130    exit $exit_status
2131' 0
2132for ac_signal in 1 2 13 15; do
2133  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2134done
2135ac_signal=0
2136
2137# confdefs.h avoids OS command line length limits that DEFS can exceed.
2138rm -f -r conftest* confdefs.h
2139
2140$as_echo "/* confdefs.h */" > confdefs.h
2141
2142# Predefined preprocessor variables.
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_NAME "$PACKAGE_NAME"
2146_ACEOF
2147
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2150_ACEOF
2151
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_VERSION "$PACKAGE_VERSION"
2154_ACEOF
2155
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_STRING "$PACKAGE_STRING"
2158_ACEOF
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2162_ACEOF
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_URL "$PACKAGE_URL"
2166_ACEOF
2167
2168
2169# Let the site file select an alternate cache file if it wants to.
2170# Prefer an explicitly selected file to automatically selected ones.
2171ac_site_file1=NONE
2172ac_site_file2=NONE
2173if test -n "$CONFIG_SITE"; then
2174  # We do not want a PATH search for config.site.
2175  case $CONFIG_SITE in #((
2176    -*)  ac_site_file1=./$CONFIG_SITE;;
2177    */*) ac_site_file1=$CONFIG_SITE;;
2178    *)   ac_site_file1=./$CONFIG_SITE;;
2179  esac
2180elif test "x$prefix" != xNONE; then
2181  ac_site_file1=$prefix/share/config.site
2182  ac_site_file2=$prefix/etc/config.site
2183else
2184  ac_site_file1=$ac_default_prefix/share/config.site
2185  ac_site_file2=$ac_default_prefix/etc/config.site
2186fi
2187for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2188do
2189  test "x$ac_site_file" = xNONE && continue
2190  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2191    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2192$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2193    sed 's/^/| /' "$ac_site_file" >&5
2194    . "$ac_site_file" \
2195      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197as_fn_error $? "failed to load site script $ac_site_file
2198See \`config.log' for more details" "$LINENO" 5; }
2199  fi
2200done
2201
2202if test -r "$cache_file"; then
2203  # Some versions of bash will fail to source /dev/null (special files
2204  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2205  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2206    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2207$as_echo "$as_me: loading cache $cache_file" >&6;}
2208    case $cache_file in
2209      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2210      *)                      . "./$cache_file";;
2211    esac
2212  fi
2213else
2214  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2215$as_echo "$as_me: creating cache $cache_file" >&6;}
2216  >$cache_file
2217fi
2218
2219# Check that the precious variables saved in the cache have kept the same
2220# value.
2221ac_cache_corrupted=false
2222for ac_var in $ac_precious_vars; do
2223  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2224  eval ac_new_set=\$ac_env_${ac_var}_set
2225  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2226  eval ac_new_val=\$ac_env_${ac_var}_value
2227  case $ac_old_set,$ac_new_set in
2228    set,)
2229      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2230$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2231      ac_cache_corrupted=: ;;
2232    ,set)
2233      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2234$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2235      ac_cache_corrupted=: ;;
2236    ,);;
2237    *)
2238      if test "x$ac_old_val" != "x$ac_new_val"; then
2239	# differences in whitespace do not lead to failure.
2240	ac_old_val_w=`echo x $ac_old_val`
2241	ac_new_val_w=`echo x $ac_new_val`
2242	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2243	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2244$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2245	  ac_cache_corrupted=:
2246	else
2247	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2248$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2249	  eval $ac_var=\$ac_old_val
2250	fi
2251	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2252$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2253	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2254$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2255      fi;;
2256  esac
2257  # Pass precious variables to config.status.
2258  if test "$ac_new_set" = set; then
2259    case $ac_new_val in
2260    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2261    *) ac_arg=$ac_var=$ac_new_val ;;
2262    esac
2263    case " $ac_configure_args " in
2264      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2265      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2266    esac
2267  fi
2268done
2269if $ac_cache_corrupted; then
2270  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2273$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2274  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2275fi
2276## -------------------- ##
2277## Main body of script. ##
2278## -------------------- ##
2279
2280ac_ext=c
2281ac_cpp='$CPP $CPPFLAGS'
2282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285
2286
2287
2288
2289# Use automake.
2290am__api_version='1.15'
2291
2292ac_aux_dir=
2293for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2294  if test -f "$ac_dir/install-sh"; then
2295    ac_aux_dir=$ac_dir
2296    ac_install_sh="$ac_aux_dir/install-sh -c"
2297    break
2298  elif test -f "$ac_dir/install.sh"; then
2299    ac_aux_dir=$ac_dir
2300    ac_install_sh="$ac_aux_dir/install.sh -c"
2301    break
2302  elif test -f "$ac_dir/shtool"; then
2303    ac_aux_dir=$ac_dir
2304    ac_install_sh="$ac_aux_dir/shtool install -c"
2305    break
2306  fi
2307done
2308if test -z "$ac_aux_dir"; then
2309  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2310fi
2311
2312# These three variables are undocumented and unsupported,
2313# and are intended to be withdrawn in a future Autoconf release.
2314# They can cause serious problems if a builder's source tree is in a directory
2315# whose full name contains unusual characters.
2316ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2317ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2318ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2319
2320
2321# Find a good install program.  We prefer a C program (faster),
2322# so one script is as good as another.  But avoid the broken or
2323# incompatible versions:
2324# SysV /etc/install, /usr/sbin/install
2325# SunOS /usr/etc/install
2326# IRIX /sbin/install
2327# AIX /bin/install
2328# AmigaOS /C/install, which installs bootblocks on floppy discs
2329# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2330# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2331# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2332# OS/2's system install, which has a completely different semantic
2333# ./install, which can be erroneously created by make from ./install.sh.
2334# Reject install programs that cannot install multiple files.
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2336$as_echo_n "checking for a BSD-compatible install... " >&6; }
2337if test -z "$INSTALL"; then
2338if ${ac_cv_path_install+:} false; then :
2339  $as_echo_n "(cached) " >&6
2340else
2341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344  IFS=$as_save_IFS
2345  test -z "$as_dir" && as_dir=.
2346    # Account for people who put trailing slashes in PATH elements.
2347case $as_dir/ in #((
2348  ./ | .// | /[cC]/* | \
2349  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2350  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2351  /usr/ucb/* ) ;;
2352  *)
2353    # OSF1 and SCO ODT 3.0 have their own names for install.
2354    # Don't use installbsd from OSF since it installs stuff as root
2355    # by default.
2356    for ac_prog in ginstall scoinst install; do
2357      for ac_exec_ext in '' $ac_executable_extensions; do
2358	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2359	  if test $ac_prog = install &&
2360	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361	    # AIX install.  It has an incompatible calling convention.
2362	    :
2363	  elif test $ac_prog = install &&
2364	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365	    # program-specific install script used by HP pwplus--don't use.
2366	    :
2367	  else
2368	    rm -rf conftest.one conftest.two conftest.dir
2369	    echo one > conftest.one
2370	    echo two > conftest.two
2371	    mkdir conftest.dir
2372	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2373	      test -s conftest.one && test -s conftest.two &&
2374	      test -s conftest.dir/conftest.one &&
2375	      test -s conftest.dir/conftest.two
2376	    then
2377	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2378	      break 3
2379	    fi
2380	  fi
2381	fi
2382      done
2383    done
2384    ;;
2385esac
2386
2387  done
2388IFS=$as_save_IFS
2389
2390rm -rf conftest.one conftest.two conftest.dir
2391
2392fi
2393  if test "${ac_cv_path_install+set}" = set; then
2394    INSTALL=$ac_cv_path_install
2395  else
2396    # As a last resort, use the slow shell script.  Don't cache a
2397    # value for INSTALL within a source directory, because that will
2398    # break other packages using the cache if that directory is
2399    # removed, or if the value is a relative name.
2400    INSTALL=$ac_install_sh
2401  fi
2402fi
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2404$as_echo "$INSTALL" >&6; }
2405
2406# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2407# It thinks the first close brace ends the variable substitution.
2408test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2409
2410test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2411
2412test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2413
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2415$as_echo_n "checking whether build environment is sane... " >&6; }
2416# Reject unsafe characters in $srcdir or the absolute working directory
2417# name.  Accept space and tab only in the latter.
2418am_lf='
2419'
2420case `pwd` in
2421  *[\\\"\#\$\&\'\`$am_lf]*)
2422    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2423esac
2424case $srcdir in
2425  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2426    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2427esac
2428
2429# Do 'set' in a subshell so we don't clobber the current shell's
2430# arguments.  Must try -L first in case configure is actually a
2431# symlink; some systems play weird games with the mod time of symlinks
2432# (eg FreeBSD returns the mod time of the symlink's containing
2433# directory).
2434if (
2435   am_has_slept=no
2436   for am_try in 1 2; do
2437     echo "timestamp, slept: $am_has_slept" > conftest.file
2438     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2439     if test "$*" = "X"; then
2440	# -L didn't work.
2441	set X `ls -t "$srcdir/configure" conftest.file`
2442     fi
2443     if test "$*" != "X $srcdir/configure conftest.file" \
2444	&& test "$*" != "X conftest.file $srcdir/configure"; then
2445
2446	# If neither matched, then we have a broken ls.  This can happen
2447	# if, for instance, CONFIG_SHELL is bash and it inherits a
2448	# broken ls alias from the environment.  This has actually
2449	# happened.  Such a system could not be considered "sane".
2450	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2451  alias in your environment" "$LINENO" 5
2452     fi
2453     if test "$2" = conftest.file || test $am_try -eq 2; then
2454       break
2455     fi
2456     # Just in case.
2457     sleep 1
2458     am_has_slept=yes
2459   done
2460   test "$2" = conftest.file
2461   )
2462then
2463   # Ok.
2464   :
2465else
2466   as_fn_error $? "newly created file is older than distributed files!
2467Check your system clock" "$LINENO" 5
2468fi
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2470$as_echo "yes" >&6; }
2471# If we didn't sleep, we still need to ensure time stamps of config.status and
2472# generated files are strictly newer.
2473am_sleep_pid=
2474if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2475  ( sleep 1 ) &
2476  am_sleep_pid=$!
2477fi
2478
2479rm -f conftest.file
2480
2481test "$program_prefix" != NONE &&
2482  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2483# Use a double $ so make ignores it.
2484test "$program_suffix" != NONE &&
2485  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2486# Double any \ or $.
2487# By default was `s,x,x', remove it if useless.
2488ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2489program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2490
2491# Expand $ac_aux_dir to an absolute path.
2492am_aux_dir=`cd "$ac_aux_dir" && pwd`
2493
2494if test x"${MISSING+set}" != xset; then
2495  case $am_aux_dir in
2496  *\ * | *\	*)
2497    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2498  *)
2499    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2500  esac
2501fi
2502# Use eval to expand $SHELL
2503if eval "$MISSING --is-lightweight"; then
2504  am_missing_run="$MISSING "
2505else
2506  am_missing_run=
2507  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2508$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2509fi
2510
2511if test x"${install_sh+set}" != xset; then
2512  case $am_aux_dir in
2513  *\ * | *\	*)
2514    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2515  *)
2516    install_sh="\${SHELL} $am_aux_dir/install-sh"
2517  esac
2518fi
2519
2520# Installed binaries are usually stripped using 'strip' when the user
2521# run "make install-strip".  However 'strip' might not be the right
2522# tool to use in cross-compilation environments, therefore Automake
2523# will honor the 'STRIP' environment variable to overrule this program.
2524if test "$cross_compiling" != no; then
2525  if test -n "$ac_tool_prefix"; then
2526  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2527set dummy ${ac_tool_prefix}strip; ac_word=$2
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529$as_echo_n "checking for $ac_word... " >&6; }
2530if ${ac_cv_prog_STRIP+:} false; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  if test -n "$STRIP"; then
2534  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  test -z "$as_dir" && as_dir=.
2541    for ac_exec_ext in '' $ac_executable_extensions; do
2542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545    break 2
2546  fi
2547done
2548  done
2549IFS=$as_save_IFS
2550
2551fi
2552fi
2553STRIP=$ac_cv_prog_STRIP
2554if test -n "$STRIP"; then
2555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2556$as_echo "$STRIP" >&6; }
2557else
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559$as_echo "no" >&6; }
2560fi
2561
2562
2563fi
2564if test -z "$ac_cv_prog_STRIP"; then
2565  ac_ct_STRIP=$STRIP
2566  # Extract the first word of "strip", so it can be a program name with args.
2567set dummy strip; ac_word=$2
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
2570if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2571  $as_echo_n "(cached) " >&6
2572else
2573  if test -n "$ac_ct_STRIP"; then
2574  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2575else
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579  IFS=$as_save_IFS
2580  test -z "$as_dir" && as_dir=.
2581    for ac_exec_ext in '' $ac_executable_extensions; do
2582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583    ac_cv_prog_ac_ct_STRIP="strip"
2584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585    break 2
2586  fi
2587done
2588  done
2589IFS=$as_save_IFS
2590
2591fi
2592fi
2593ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2594if test -n "$ac_ct_STRIP"; then
2595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2596$as_echo "$ac_ct_STRIP" >&6; }
2597else
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599$as_echo "no" >&6; }
2600fi
2601
2602  if test "x$ac_ct_STRIP" = x; then
2603    STRIP=":"
2604  else
2605    case $cross_compiling:$ac_tool_warned in
2606yes:)
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2609ac_tool_warned=yes ;;
2610esac
2611    STRIP=$ac_ct_STRIP
2612  fi
2613else
2614  STRIP="$ac_cv_prog_STRIP"
2615fi
2616
2617fi
2618INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2619
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2621$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2622if test -z "$MKDIR_P"; then
2623  if ${ac_cv_path_mkdir+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2628do
2629  IFS=$as_save_IFS
2630  test -z "$as_dir" && as_dir=.
2631    for ac_prog in mkdir gmkdir; do
2632	 for ac_exec_ext in '' $ac_executable_extensions; do
2633	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2634	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2635	     'mkdir (GNU coreutils) '* | \
2636	     'mkdir (coreutils) '* | \
2637	     'mkdir (fileutils) '4.1*)
2638	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2639	       break 3;;
2640	   esac
2641	 done
2642       done
2643  done
2644IFS=$as_save_IFS
2645
2646fi
2647
2648  test -d ./--version && rmdir ./--version
2649  if test "${ac_cv_path_mkdir+set}" = set; then
2650    MKDIR_P="$ac_cv_path_mkdir -p"
2651  else
2652    # As a last resort, use the slow shell script.  Don't cache a
2653    # value for MKDIR_P within a source directory, because that will
2654    # break other packages using the cache if that directory is
2655    # removed, or if the value is a relative name.
2656    MKDIR_P="$ac_install_sh -d"
2657  fi
2658fi
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2660$as_echo "$MKDIR_P" >&6; }
2661
2662for ac_prog in gawk mawk nawk awk
2663do
2664  # Extract the first word of "$ac_prog", so it can be a program name with args.
2665set dummy $ac_prog; ac_word=$2
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667$as_echo_n "checking for $ac_word... " >&6; }
2668if ${ac_cv_prog_AWK+:} false; then :
2669  $as_echo_n "(cached) " >&6
2670else
2671  if test -n "$AWK"; then
2672  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677  IFS=$as_save_IFS
2678  test -z "$as_dir" && as_dir=.
2679    for ac_exec_ext in '' $ac_executable_extensions; do
2680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681    ac_cv_prog_AWK="$ac_prog"
2682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683    break 2
2684  fi
2685done
2686  done
2687IFS=$as_save_IFS
2688
2689fi
2690fi
2691AWK=$ac_cv_prog_AWK
2692if test -n "$AWK"; then
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2694$as_echo "$AWK" >&6; }
2695else
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697$as_echo "no" >&6; }
2698fi
2699
2700
2701  test -n "$AWK" && break
2702done
2703
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2705$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2706set x ${MAKE-make}
2707ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2708if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2709  $as_echo_n "(cached) " >&6
2710else
2711  cat >conftest.make <<\_ACEOF
2712SHELL = /bin/sh
2713all:
2714	@echo '@@@%%%=$(MAKE)=@@@%%%'
2715_ACEOF
2716# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2717case `${MAKE-make} -f conftest.make 2>/dev/null` in
2718  *@@@%%%=?*=@@@%%%*)
2719    eval ac_cv_prog_make_${ac_make}_set=yes;;
2720  *)
2721    eval ac_cv_prog_make_${ac_make}_set=no;;
2722esac
2723rm -f conftest.make
2724fi
2725if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2727$as_echo "yes" >&6; }
2728  SET_MAKE=
2729else
2730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731$as_echo "no" >&6; }
2732  SET_MAKE="MAKE=${MAKE-make}"
2733fi
2734
2735rm -rf .tst 2>/dev/null
2736mkdir .tst 2>/dev/null
2737if test -d .tst; then
2738  am__leading_dot=.
2739else
2740  am__leading_dot=_
2741fi
2742rmdir .tst 2>/dev/null
2743
2744# Check whether --enable-silent-rules was given.
2745if test "${enable_silent_rules+set}" = set; then :
2746  enableval=$enable_silent_rules;
2747fi
2748
2749case $enable_silent_rules in # (((
2750  yes) AM_DEFAULT_VERBOSITY=0;;
2751   no) AM_DEFAULT_VERBOSITY=1;;
2752    *) AM_DEFAULT_VERBOSITY=1;;
2753esac
2754am_make=${MAKE-make}
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2756$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2757if ${am_cv_make_support_nested_variables+:} false; then :
2758  $as_echo_n "(cached) " >&6
2759else
2760  if $as_echo 'TRUE=$(BAR$(V))
2761BAR0=false
2762BAR1=true
2763V=1
2764am__doit:
2765	@$(TRUE)
2766.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2767  am_cv_make_support_nested_variables=yes
2768else
2769  am_cv_make_support_nested_variables=no
2770fi
2771fi
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2773$as_echo "$am_cv_make_support_nested_variables" >&6; }
2774if test $am_cv_make_support_nested_variables = yes; then
2775    AM_V='$(V)'
2776  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2777else
2778  AM_V=$AM_DEFAULT_VERBOSITY
2779  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2780fi
2781AM_BACKSLASH='\'
2782
2783if test "`cd $srcdir && pwd`" != "`pwd`"; then
2784  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2785  # is not polluted with repeated "-I."
2786  am__isrc=' -I$(srcdir)'
2787  # test to see if srcdir already configured
2788  if test -f $srcdir/config.status; then
2789    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2790  fi
2791fi
2792
2793# test whether we have cygpath
2794if test -z "$CYGPATH_W"; then
2795  if (cygpath --version) >/dev/null 2>/dev/null; then
2796    CYGPATH_W='cygpath -w'
2797  else
2798    CYGPATH_W=echo
2799  fi
2800fi
2801
2802
2803# Define the identity of the package.
2804 PACKAGE='sqlite'
2805 VERSION='3.14.1'
2806
2807
2808cat >>confdefs.h <<_ACEOF
2809#define PACKAGE "$PACKAGE"
2810_ACEOF
2811
2812
2813cat >>confdefs.h <<_ACEOF
2814#define VERSION "$VERSION"
2815_ACEOF
2816
2817# Some tools Automake needs.
2818
2819ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2820
2821
2822AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2823
2824
2825AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2826
2827
2828AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2829
2830
2831MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2832
2833# For better backward compatibility.  To be removed once Automake 1.9.x
2834# dies out for good.  For more background, see:
2835# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2836# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2837mkdir_p='$(MKDIR_P)'
2838
2839# We need awk for the "check" target (and possibly the TAP driver).  The
2840# system "awk" is bad on some platforms.
2841# Always define AMTAR for backward compatibility.  Yes, it's still used
2842# in the wild :-(  We should find a proper way to deprecate it ...
2843AMTAR='$${TAR-tar}'
2844
2845
2846# We'll loop over all known methods to create a tar archive until one works.
2847_am_tools='gnutar  pax cpio none'
2848
2849am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2850
2851
2852
2853
2854
2855
2856# POSIX will say in a future version that running "rm -f" with no argument
2857# is OK; and we want to be able to make that assumption in our Makefile
2858# recipes.  So use an aggressive probe to check that the usage we want is
2859# actually supported "in the wild" to an acceptable degree.
2860# See automake bug#10828.
2861# To make any issue more visible, cause the running configure to be aborted
2862# by default if the 'rm' program in use doesn't match our expectations; the
2863# user can still override this though.
2864if rm -f && rm -fr && rm -rf; then : OK; else
2865  cat >&2 <<'END'
2866Oops!
2867
2868Your 'rm' program seems unable to run without file operands specified
2869on the command line, even when the '-f' option is present.  This is contrary
2870to the behaviour of most rm programs out there, and not conforming with
2871the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2872
2873Please tell bug-automake@gnu.org about your system, including the value
2874of your $PATH and any error possibly output before this message.  This
2875can help us improve future automake versions.
2876
2877END
2878  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2879    echo 'Configuration will proceed anyway, since you have set the' >&2
2880    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2881    echo >&2
2882  else
2883    cat >&2 <<'END'
2884Aborting the configuration process, to ensure you take notice of the issue.
2885
2886You can download and install GNU coreutils to get an 'rm' implementation
2887that behaves properly: <http://www.gnu.org/software/coreutils/>.
2888
2889If you want to complete the configuration process using your problematic
2890'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2891to "yes", and re-run configure.
2892
2893END
2894    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2895  fi
2896fi
2897
2898
2899DEPDIR="${am__leading_dot}deps"
2900
2901ac_config_commands="$ac_config_commands depfiles"
2902
2903
2904am_make=${MAKE-make}
2905cat > confinc << 'END'
2906am__doit:
2907	@echo this is the am__doit target
2908.PHONY: am__doit
2909END
2910# If we don't find an include directive, just comment out the code.
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2912$as_echo_n "checking for style of include used by $am_make... " >&6; }
2913am__include="#"
2914am__quote=
2915_am_result=none
2916# First try GNU make style include.
2917echo "include confinc" > confmf
2918# Ignore all kinds of additional output from 'make'.
2919case `$am_make -s -f confmf 2> /dev/null` in #(
2920*the\ am__doit\ target*)
2921  am__include=include
2922  am__quote=
2923  _am_result=GNU
2924  ;;
2925esac
2926# Now try BSD make style include.
2927if test "$am__include" = "#"; then
2928   echo '.include "confinc"' > confmf
2929   case `$am_make -s -f confmf 2> /dev/null` in #(
2930   *the\ am__doit\ target*)
2931     am__include=.include
2932     am__quote="\""
2933     _am_result=BSD
2934     ;;
2935   esac
2936fi
2937
2938
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2940$as_echo "$_am_result" >&6; }
2941rm -f confinc confmf
2942
2943# Check whether --enable-dependency-tracking was given.
2944if test "${enable_dependency_tracking+set}" = set; then :
2945  enableval=$enable_dependency_tracking;
2946fi
2947
2948if test "x$enable_dependency_tracking" != xno; then
2949  am_depcomp="$ac_aux_dir/depcomp"
2950  AMDEPBACKSLASH='\'
2951  am__nodep='_no'
2952fi
2953 if test "x$enable_dependency_tracking" != xno; then
2954  AMDEP_TRUE=
2955  AMDEP_FALSE='#'
2956else
2957  AMDEP_TRUE='#'
2958  AMDEP_FALSE=
2959fi
2960
2961
2962ac_ext=c
2963ac_cpp='$CPP $CPPFLAGS'
2964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967if test -n "$ac_tool_prefix"; then
2968  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2969set dummy ${ac_tool_prefix}gcc; ac_word=$2
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
2972if ${ac_cv_prog_CC+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  if test -n "$CC"; then
2976  ac_cv_prog_CC="$CC" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981  IFS=$as_save_IFS
2982  test -z "$as_dir" && as_dir=.
2983    for ac_exec_ext in '' $ac_executable_extensions; do
2984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987    break 2
2988  fi
2989done
2990  done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995CC=$ac_cv_prog_CC
2996if test -n "$CC"; then
2997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998$as_echo "$CC" >&6; }
2999else
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001$as_echo "no" >&6; }
3002fi
3003
3004
3005fi
3006if test -z "$ac_cv_prog_CC"; then
3007  ac_ct_CC=$CC
3008  # Extract the first word of "gcc", so it can be a program name with args.
3009set dummy gcc; ac_word=$2
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011$as_echo_n "checking for $ac_word... " >&6; }
3012if ${ac_cv_prog_ac_ct_CC+:} false; then :
3013  $as_echo_n "(cached) " >&6
3014else
3015  if test -n "$ac_ct_CC"; then
3016  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017else
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021  IFS=$as_save_IFS
3022  test -z "$as_dir" && as_dir=.
3023    for ac_exec_ext in '' $ac_executable_extensions; do
3024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025    ac_cv_prog_ac_ct_CC="gcc"
3026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027    break 2
3028  fi
3029done
3030  done
3031IFS=$as_save_IFS
3032
3033fi
3034fi
3035ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036if test -n "$ac_ct_CC"; then
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3038$as_echo "$ac_ct_CC" >&6; }
3039else
3040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041$as_echo "no" >&6; }
3042fi
3043
3044  if test "x$ac_ct_CC" = x; then
3045    CC=""
3046  else
3047    case $cross_compiling:$ac_tool_warned in
3048yes:)
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051ac_tool_warned=yes ;;
3052esac
3053    CC=$ac_ct_CC
3054  fi
3055else
3056  CC="$ac_cv_prog_CC"
3057fi
3058
3059if test -z "$CC"; then
3060          if test -n "$ac_tool_prefix"; then
3061    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3062set dummy ${ac_tool_prefix}cc; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
3065if ${ac_cv_prog_CC+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$CC"; then
3069  ac_cv_prog_CC="$CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    ac_cv_prog_CC="${ac_tool_prefix}cc"
3079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091$as_echo "$CC" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098  fi
3099fi
3100if test -z "$CC"; then
3101  # Extract the first word of "cc", so it can be a program name with args.
3102set dummy cc; ac_word=$2
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104$as_echo_n "checking for $ac_word... " >&6; }
3105if ${ac_cv_prog_CC+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  if test -n "$CC"; then
3109  ac_cv_prog_CC="$CC" # Let the user override the test.
3110else
3111  ac_prog_rejected=no
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115  IFS=$as_save_IFS
3116  test -z "$as_dir" && as_dir=.
3117    for ac_exec_ext in '' $ac_executable_extensions; do
3118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3120       ac_prog_rejected=yes
3121       continue
3122     fi
3123    ac_cv_prog_CC="cc"
3124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125    break 2
3126  fi
3127done
3128  done
3129IFS=$as_save_IFS
3130
3131if test $ac_prog_rejected = yes; then
3132  # We found a bogon in the path, so make sure we never use it.
3133  set dummy $ac_cv_prog_CC
3134  shift
3135  if test $# != 0; then
3136    # We chose a different compiler from the bogus one.
3137    # However, it has the same basename, so the bogon will be chosen
3138    # first if we set CC to just the basename; use the full file name.
3139    shift
3140    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141  fi
3142fi
3143fi
3144fi
3145CC=$ac_cv_prog_CC
3146if test -n "$CC"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148$as_echo "$CC" >&6; }
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155fi
3156if test -z "$CC"; then
3157  if test -n "$ac_tool_prefix"; then
3158  for ac_prog in cl.exe
3159  do
3160    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163$as_echo_n "checking for $ac_word... " >&6; }
3164if ${ac_cv_prog_CC+:} false; then :
3165  $as_echo_n "(cached) " >&6
3166else
3167  if test -n "$CC"; then
3168  ac_cv_prog_CC="$CC" # Let the user override the test.
3169else
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173  IFS=$as_save_IFS
3174  test -z "$as_dir" && as_dir=.
3175    for ac_exec_ext in '' $ac_executable_extensions; do
3176  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179    break 2
3180  fi
3181done
3182  done
3183IFS=$as_save_IFS
3184
3185fi
3186fi
3187CC=$ac_cv_prog_CC
3188if test -n "$CC"; then
3189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190$as_echo "$CC" >&6; }
3191else
3192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193$as_echo "no" >&6; }
3194fi
3195
3196
3197    test -n "$CC" && break
3198  done
3199fi
3200if test -z "$CC"; then
3201  ac_ct_CC=$CC
3202  for ac_prog in cl.exe
3203do
3204  # Extract the first word of "$ac_prog", so it can be a program name with args.
3205set dummy $ac_prog; ac_word=$2
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207$as_echo_n "checking for $ac_word... " >&6; }
3208if ${ac_cv_prog_ac_ct_CC+:} false; then :
3209  $as_echo_n "(cached) " >&6
3210else
3211  if test -n "$ac_ct_CC"; then
3212  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213else
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH
3216do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219    for ac_exec_ext in '' $ac_executable_extensions; do
3220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221    ac_cv_prog_ac_ct_CC="$ac_prog"
3222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223    break 2
3224  fi
3225done
3226  done
3227IFS=$as_save_IFS
3228
3229fi
3230fi
3231ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232if test -n "$ac_ct_CC"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234$as_echo "$ac_ct_CC" >&6; }
3235else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238fi
3239
3240
3241  test -n "$ac_ct_CC" && break
3242done
3243
3244  if test "x$ac_ct_CC" = x; then
3245    CC=""
3246  else
3247    case $cross_compiling:$ac_tool_warned in
3248yes:)
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251ac_tool_warned=yes ;;
3252esac
3253    CC=$ac_ct_CC
3254  fi
3255fi
3256
3257fi
3258
3259
3260test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262as_fn_error $? "no acceptable C compiler found in \$PATH
3263See \`config.log' for more details" "$LINENO" 5; }
3264
3265# Provide some information about the compiler.
3266$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3267set X $ac_compile
3268ac_compiler=$2
3269for ac_option in --version -v -V -qversion; do
3270  { { ac_try="$ac_compiler $ac_option >&5"
3271case "(($ac_try" in
3272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273  *) ac_try_echo=$ac_try;;
3274esac
3275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276$as_echo "$ac_try_echo"; } >&5
3277  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3278  ac_status=$?
3279  if test -s conftest.err; then
3280    sed '10a\
3281... rest of stderr output deleted ...
3282         10q' conftest.err >conftest.er1
3283    cat conftest.er1 >&5
3284  fi
3285  rm -f conftest.er1 conftest.err
3286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287  test $ac_status = 0; }
3288done
3289
3290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291/* end confdefs.h.  */
3292
3293int
3294main ()
3295{
3296
3297  ;
3298  return 0;
3299}
3300_ACEOF
3301ac_clean_files_save=$ac_clean_files
3302ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3303# Try to create an executable without -o first, disregard a.out.
3304# It will help us diagnose broken compilers, and finding out an intuition
3305# of exeext.
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3307$as_echo_n "checking whether the C compiler works... " >&6; }
3308ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309
3310# The possible output files:
3311ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312
3313ac_rmfiles=
3314for ac_file in $ac_files
3315do
3316  case $ac_file in
3317    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319  esac
3320done
3321rm -f $ac_rmfiles
3322
3323if { { ac_try="$ac_link_default"
3324case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
3330  (eval "$ac_link_default") 2>&5
3331  ac_status=$?
3332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333  test $ac_status = 0; }; then :
3334  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3337# so that the user can short-circuit this test for compilers unknown to
3338# Autoconf.
3339for ac_file in $ac_files ''
3340do
3341  test -f "$ac_file" || continue
3342  case $ac_file in
3343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344	;;
3345    [ab].out )
3346	# We found the default executable, but exeext='' is most
3347	# certainly right.
3348	break;;
3349    *.* )
3350	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3351	then :; else
3352	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353	fi
3354	# We set ac_cv_exeext here because the later test for it is not
3355	# safe: cross compilers may not add the suffix if given an `-o'
3356	# argument, so we may need to know it at that point already.
3357	# Even if this section looks crufty: it has the advantage of
3358	# actually working.
3359	break;;
3360    * )
3361	break;;
3362  esac
3363done
3364test "$ac_cv_exeext" = no && ac_cv_exeext=
3365
3366else
3367  ac_file=''
3368fi
3369if test -z "$ac_file"; then :
3370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372$as_echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377as_fn_error 77 "C compiler cannot create executables
3378See \`config.log' for more details" "$LINENO" 5; }
3379else
3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381$as_echo "yes" >&6; }
3382fi
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3384$as_echo_n "checking for C compiler default output file name... " >&6; }
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386$as_echo "$ac_file" >&6; }
3387ac_exeext=$ac_cv_exeext
3388
3389rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3390ac_clean_files=$ac_clean_files_save
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3392$as_echo_n "checking for suffix of executables... " >&6; }
3393if { { ac_try="$ac_link"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
3400  (eval "$ac_link") 2>&5
3401  ac_status=$?
3402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403  test $ac_status = 0; }; then :
3404  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3405# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3406# work properly (i.e., refer to `conftest.exe'), while it won't with
3407# `rm'.
3408for ac_file in conftest.exe conftest conftest.*; do
3409  test -f "$ac_file" || continue
3410  case $ac_file in
3411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413	  break;;
3414    * ) break;;
3415  esac
3416done
3417else
3418  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3421See \`config.log' for more details" "$LINENO" 5; }
3422fi
3423rm -f conftest conftest$ac_cv_exeext
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3425$as_echo "$ac_cv_exeext" >&6; }
3426
3427rm -f conftest.$ac_ext
3428EXEEXT=$ac_cv_exeext
3429ac_exeext=$EXEEXT
3430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h.  */
3432#include <stdio.h>
3433int
3434main ()
3435{
3436FILE *f = fopen ("conftest.out", "w");
3437 return ferror (f) || fclose (f) != 0;
3438
3439  ;
3440  return 0;
3441}
3442_ACEOF
3443ac_clean_files="$ac_clean_files conftest.out"
3444# Check that the compiler produces executables we can run.  If not, either
3445# the compiler is broken, or we cross compile.
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3447$as_echo_n "checking whether we are cross compiling... " >&6; }
3448if test "$cross_compiling" != yes; then
3449  { { ac_try="$ac_link"
3450case "(($ac_try" in
3451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452  *) ac_try_echo=$ac_try;;
3453esac
3454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455$as_echo "$ac_try_echo"; } >&5
3456  (eval "$ac_link") 2>&5
3457  ac_status=$?
3458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459  test $ac_status = 0; }
3460  if { ac_try='./conftest$ac_cv_exeext'
3461  { { case "(($ac_try" in
3462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463  *) ac_try_echo=$ac_try;;
3464esac
3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466$as_echo "$ac_try_echo"; } >&5
3467  (eval "$ac_try") 2>&5
3468  ac_status=$?
3469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470  test $ac_status = 0; }; }; then
3471    cross_compiling=no
3472  else
3473    if test "$cross_compiling" = maybe; then
3474	cross_compiling=yes
3475    else
3476	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478as_fn_error $? "cannot run C compiled programs.
3479If you meant to cross compile, use \`--host'.
3480See \`config.log' for more details" "$LINENO" 5; }
3481    fi
3482  fi
3483fi
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3485$as_echo "$cross_compiling" >&6; }
3486
3487rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3488ac_clean_files=$ac_clean_files_save
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3490$as_echo_n "checking for suffix of object files... " >&6; }
3491if ${ac_cv_objext+:} false; then :
3492  $as_echo_n "(cached) " >&6
3493else
3494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h.  */
3496
3497int
3498main ()
3499{
3500
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505rm -f conftest.o conftest.obj
3506if { { ac_try="$ac_compile"
3507case "(($ac_try" in
3508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509  *) ac_try_echo=$ac_try;;
3510esac
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512$as_echo "$ac_try_echo"; } >&5
3513  (eval "$ac_compile") 2>&5
3514  ac_status=$?
3515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516  test $ac_status = 0; }; then :
3517  for ac_file in conftest.o conftest.obj conftest.*; do
3518  test -f "$ac_file" || continue;
3519  case $ac_file in
3520    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3521    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3522       break;;
3523  esac
3524done
3525else
3526  $as_echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error $? "cannot compute suffix of object files: cannot compile
3532See \`config.log' for more details" "$LINENO" 5; }
3533fi
3534rm -f conftest.$ac_cv_objext conftest.$ac_ext
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3537$as_echo "$ac_cv_objext" >&6; }
3538OBJEXT=$ac_cv_objext
3539ac_objext=$OBJEXT
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3541$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3542if ${ac_cv_c_compiler_gnu+:} false; then :
3543  $as_echo_n "(cached) " >&6
3544else
3545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h.  */
3547
3548int
3549main ()
3550{
3551#ifndef __GNUC__
3552       choke me
3553#endif
3554
3555  ;
3556  return 0;
3557}
3558_ACEOF
3559if ac_fn_c_try_compile "$LINENO"; then :
3560  ac_compiler_gnu=yes
3561else
3562  ac_compiler_gnu=no
3563fi
3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3569$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3570if test $ac_compiler_gnu = yes; then
3571  GCC=yes
3572else
3573  GCC=
3574fi
3575ac_test_CFLAGS=${CFLAGS+set}
3576ac_save_CFLAGS=$CFLAGS
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3578$as_echo_n "checking whether $CC accepts -g... " >&6; }
3579if ${ac_cv_prog_cc_g+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  ac_save_c_werror_flag=$ac_c_werror_flag
3583   ac_c_werror_flag=yes
3584   ac_cv_prog_cc_g=no
3585   CFLAGS="-g"
3586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h.  */
3588
3589int
3590main ()
3591{
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597if ac_fn_c_try_compile "$LINENO"; then :
3598  ac_cv_prog_cc_g=yes
3599else
3600  CFLAGS=""
3601      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h.  */
3603
3604int
3605main ()
3606{
3607
3608  ;
3609  return 0;
3610}
3611_ACEOF
3612if ac_fn_c_try_compile "$LINENO"; then :
3613
3614else
3615  ac_c_werror_flag=$ac_save_c_werror_flag
3616	 CFLAGS="-g"
3617	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618/* end confdefs.h.  */
3619
3620int
3621main ()
3622{
3623
3624  ;
3625  return 0;
3626}
3627_ACEOF
3628if ac_fn_c_try_compile "$LINENO"; then :
3629  ac_cv_prog_cc_g=yes
3630fi
3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632fi
3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634fi
3635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636   ac_c_werror_flag=$ac_save_c_werror_flag
3637fi
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3639$as_echo "$ac_cv_prog_cc_g" >&6; }
3640if test "$ac_test_CFLAGS" = set; then
3641  CFLAGS=$ac_save_CFLAGS
3642elif test $ac_cv_prog_cc_g = yes; then
3643  if test "$GCC" = yes; then
3644    CFLAGS="-g -O2"
3645  else
3646    CFLAGS="-g"
3647  fi
3648else
3649  if test "$GCC" = yes; then
3650    CFLAGS="-O2"
3651  else
3652    CFLAGS=
3653  fi
3654fi
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3656$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3657if ${ac_cv_prog_cc_c89+:} false; then :
3658  $as_echo_n "(cached) " >&6
3659else
3660  ac_cv_prog_cc_c89=no
3661ac_save_CC=$CC
3662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664#include <stdarg.h>
3665#include <stdio.h>
3666struct stat;
3667/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3668struct buf { int x; };
3669FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670static char *e (p, i)
3671     char **p;
3672     int i;
3673{
3674  return p[i];
3675}
3676static char *f (char * (*g) (char **, int), char **p, ...)
3677{
3678  char *s;
3679  va_list v;
3680  va_start (v,p);
3681  s = g (p, va_arg (v,int));
3682  va_end (v);
3683  return s;
3684}
3685
3686/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3687   function prototypes and stuff, but not '\xHH' hex character constants.
3688   These don't provoke an error unfortunately, instead are silently treated
3689   as 'x'.  The following induces an error, until -std is added to get
3690   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3691   array size at least.  It's necessary to write '\x00'==0 to get something
3692   that's true only with -std.  */
3693int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694
3695/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696   inside strings and character constants.  */
3697#define FOO(x) 'x'
3698int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699
3700int test (int i, double x);
3701struct s1 {int (*f) (int a);};
3702struct s2 {int (*f) (double a);};
3703int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704int argc;
3705char **argv;
3706int
3707main ()
3708{
3709return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3710  ;
3711  return 0;
3712}
3713_ACEOF
3714for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716do
3717  CC="$ac_save_CC $ac_arg"
3718  if ac_fn_c_try_compile "$LINENO"; then :
3719  ac_cv_prog_cc_c89=$ac_arg
3720fi
3721rm -f core conftest.err conftest.$ac_objext
3722  test "x$ac_cv_prog_cc_c89" != "xno" && break
3723done
3724rm -f conftest.$ac_ext
3725CC=$ac_save_CC
3726
3727fi
3728# AC_CACHE_VAL
3729case "x$ac_cv_prog_cc_c89" in
3730  x)
3731    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3732$as_echo "none needed" >&6; } ;;
3733  xno)
3734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735$as_echo "unsupported" >&6; } ;;
3736  *)
3737    CC="$CC $ac_cv_prog_cc_c89"
3738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3739$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3740esac
3741if test "x$ac_cv_prog_cc_c89" != xno; then :
3742
3743fi
3744
3745ac_ext=c
3746ac_cpp='$CPP $CPPFLAGS'
3747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750
3751ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3757$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3758if ${am_cv_prog_cc_c_o+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h.  */
3763
3764int
3765main ()
3766{
3767
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772  # Make sure it works both with $CC and with simple cc.
3773  # Following AC_PROG_CC_C_O, we do the test twice because some
3774  # compilers refuse to overwrite an existing .o file with -o,
3775  # though they will create one.
3776  am_cv_prog_cc_c_o=yes
3777  for am_i in 1 2; do
3778    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3779   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } \
3783         && test -f conftest2.$ac_objext; then
3784      : OK
3785    else
3786      am_cv_prog_cc_c_o=no
3787      break
3788    fi
3789  done
3790  rm -f core conftest*
3791  unset am_i
3792fi
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3794$as_echo "$am_cv_prog_cc_c_o" >&6; }
3795if test "$am_cv_prog_cc_c_o" != yes; then
3796   # Losing compiler, so override with the script.
3797   # FIXME: It is wrong to rewrite CC.
3798   # But if we don't then we get into trouble of one sort or another.
3799   # A longer-term fix would be to have automake use am__CC in this case,
3800   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3801   CC="$am_aux_dir/compile $CC"
3802fi
3803ac_ext=c
3804ac_cpp='$CPP $CPPFLAGS'
3805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808
3809
3810depcc="$CC"   am_compiler_list=
3811
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3813$as_echo_n "checking dependency style of $depcc... " >&6; }
3814if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3815  $as_echo_n "(cached) " >&6
3816else
3817  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3818  # We make a subdir and do the tests there.  Otherwise we can end up
3819  # making bogus files that we don't know about and never remove.  For
3820  # instance it was reported that on HP-UX the gcc test will end up
3821  # making a dummy file named 'D' -- because '-MD' means "put the output
3822  # in D".
3823  rm -rf conftest.dir
3824  mkdir conftest.dir
3825  # Copy depcomp to subdir because otherwise we won't find it if we're
3826  # using a relative directory.
3827  cp "$am_depcomp" conftest.dir
3828  cd conftest.dir
3829  # We will build objects and dependencies in a subdirectory because
3830  # it helps to detect inapplicable dependency modes.  For instance
3831  # both Tru64's cc and ICC support -MD to output dependencies as a
3832  # side effect of compilation, but ICC will put the dependencies in
3833  # the current directory while Tru64 will put them in the object
3834  # directory.
3835  mkdir sub
3836
3837  am_cv_CC_dependencies_compiler_type=none
3838  if test "$am_compiler_list" = ""; then
3839     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3840  fi
3841  am__universal=false
3842  case " $depcc " in #(
3843     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3844     esac
3845
3846  for depmode in $am_compiler_list; do
3847    # Setup a source with many dependencies, because some compilers
3848    # like to wrap large dependency lists on column 80 (with \), and
3849    # we should not choose a depcomp mode which is confused by this.
3850    #
3851    # We need to recreate these files for each test, as the compiler may
3852    # overwrite some of them when testing with obscure command lines.
3853    # This happens at least with the AIX C compiler.
3854    : > sub/conftest.c
3855    for i in 1 2 3 4 5 6; do
3856      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3857      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3858      # Solaris 10 /bin/sh.
3859      echo '/* dummy */' > sub/conftst$i.h
3860    done
3861    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3862
3863    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3864    # mode.  It turns out that the SunPro C++ compiler does not properly
3865    # handle '-M -o', and we need to detect this.  Also, some Intel
3866    # versions had trouble with output in subdirs.
3867    am__obj=sub/conftest.${OBJEXT-o}
3868    am__minus_obj="-o $am__obj"
3869    case $depmode in
3870    gcc)
3871      # This depmode causes a compiler race in universal mode.
3872      test "$am__universal" = false || continue
3873      ;;
3874    nosideeffect)
3875      # After this tag, mechanisms are not by side-effect, so they'll
3876      # only be used when explicitly requested.
3877      if test "x$enable_dependency_tracking" = xyes; then
3878	continue
3879      else
3880	break
3881      fi
3882      ;;
3883    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3884      # This compiler won't grok '-c -o', but also, the minuso test has
3885      # not run yet.  These depmodes are late enough in the game, and
3886      # so weak that their functioning should not be impacted.
3887      am__obj=conftest.${OBJEXT-o}
3888      am__minus_obj=
3889      ;;
3890    none) break ;;
3891    esac
3892    if depmode=$depmode \
3893       source=sub/conftest.c object=$am__obj \
3894       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3895       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3896         >/dev/null 2>conftest.err &&
3897       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3898       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3899       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3900       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3901      # icc doesn't choke on unknown options, it will just issue warnings
3902      # or remarks (even with -Werror).  So we grep stderr for any message
3903      # that says an option was ignored or not supported.
3904      # When given -MP, icc 7.0 and 7.1 complain thusly:
3905      #   icc: Command line warning: ignoring option '-M'; no argument required
3906      # The diagnosis changed in icc 8.0:
3907      #   icc: Command line remark: option '-MP' not supported
3908      if (grep 'ignoring option' conftest.err ||
3909          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3910        am_cv_CC_dependencies_compiler_type=$depmode
3911        break
3912      fi
3913    fi
3914  done
3915
3916  cd ..
3917  rm -rf conftest.dir
3918else
3919  am_cv_CC_dependencies_compiler_type=none
3920fi
3921
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3924$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3925CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3926
3927 if
3928  test "x$enable_dependency_tracking" != xno \
3929  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3930  am__fastdepCC_TRUE=
3931  am__fastdepCC_FALSE='#'
3932else
3933  am__fastdepCC_TRUE='#'
3934  am__fastdepCC_FALSE=
3935fi
3936
3937
3938
3939# Check whether --enable-largefile was given.
3940if test "${enable_largefile+set}" = set; then :
3941  enableval=$enable_largefile;
3942fi
3943
3944if test "$enable_largefile" != no; then
3945
3946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3947$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3948if ${ac_cv_sys_largefile_CC+:} false; then :
3949  $as_echo_n "(cached) " >&6
3950else
3951  ac_cv_sys_largefile_CC=no
3952     if test "$GCC" != yes; then
3953       ac_save_CC=$CC
3954       while :; do
3955	 # IRIX 6.2 and later do not support large files by default,
3956	 # so use the C compiler's -n32 option if that helps.
3957	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958/* end confdefs.h.  */
3959#include <sys/types.h>
3960 /* Check that off_t can represent 2**63 - 1 correctly.
3961    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3962    since some C++ compilers masquerading as C compilers
3963    incorrectly reject 9223372036854775807.  */
3964#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3965  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3966		       && LARGE_OFF_T % 2147483647 == 1)
3967		      ? 1 : -1];
3968int
3969main ()
3970{
3971
3972  ;
3973  return 0;
3974}
3975_ACEOF
3976	 if ac_fn_c_try_compile "$LINENO"; then :
3977  break
3978fi
3979rm -f core conftest.err conftest.$ac_objext
3980	 CC="$CC -n32"
3981	 if ac_fn_c_try_compile "$LINENO"; then :
3982  ac_cv_sys_largefile_CC=' -n32'; break
3983fi
3984rm -f core conftest.err conftest.$ac_objext
3985	 break
3986       done
3987       CC=$ac_save_CC
3988       rm -f conftest.$ac_ext
3989    fi
3990fi
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3992$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3993  if test "$ac_cv_sys_largefile_CC" != no; then
3994    CC=$CC$ac_cv_sys_largefile_CC
3995  fi
3996
3997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3998$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3999if ${ac_cv_sys_file_offset_bits+:} false; then :
4000  $as_echo_n "(cached) " >&6
4001else
4002  while :; do
4003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h.  */
4005#include <sys/types.h>
4006 /* Check that off_t can represent 2**63 - 1 correctly.
4007    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4008    since some C++ compilers masquerading as C compilers
4009    incorrectly reject 9223372036854775807.  */
4010#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4011  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4012		       && LARGE_OFF_T % 2147483647 == 1)
4013		      ? 1 : -1];
4014int
4015main ()
4016{
4017
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022if ac_fn_c_try_compile "$LINENO"; then :
4023  ac_cv_sys_file_offset_bits=no; break
4024fi
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028#define _FILE_OFFSET_BITS 64
4029#include <sys/types.h>
4030 /* Check that off_t can represent 2**63 - 1 correctly.
4031    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4032    since some C++ compilers masquerading as C compilers
4033    incorrectly reject 9223372036854775807.  */
4034#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4035  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4036		       && LARGE_OFF_T % 2147483647 == 1)
4037		      ? 1 : -1];
4038int
4039main ()
4040{
4041
4042  ;
4043  return 0;
4044}
4045_ACEOF
4046if ac_fn_c_try_compile "$LINENO"; then :
4047  ac_cv_sys_file_offset_bits=64; break
4048fi
4049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050  ac_cv_sys_file_offset_bits=unknown
4051  break
4052done
4053fi
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4055$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4056case $ac_cv_sys_file_offset_bits in #(
4057  no | unknown) ;;
4058  *)
4059cat >>confdefs.h <<_ACEOF
4060#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4061_ACEOF
4062;;
4063esac
4064rm -rf conftest*
4065  if test $ac_cv_sys_file_offset_bits = unknown; then
4066    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4067$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4068if ${ac_cv_sys_large_files+:} false; then :
4069  $as_echo_n "(cached) " >&6
4070else
4071  while :; do
4072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073/* end confdefs.h.  */
4074#include <sys/types.h>
4075 /* Check that off_t can represent 2**63 - 1 correctly.
4076    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4077    since some C++ compilers masquerading as C compilers
4078    incorrectly reject 9223372036854775807.  */
4079#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4080  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4081		       && LARGE_OFF_T % 2147483647 == 1)
4082		      ? 1 : -1];
4083int
4084main ()
4085{
4086
4087  ;
4088  return 0;
4089}
4090_ACEOF
4091if ac_fn_c_try_compile "$LINENO"; then :
4092  ac_cv_sys_large_files=no; break
4093fi
4094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096/* end confdefs.h.  */
4097#define _LARGE_FILES 1
4098#include <sys/types.h>
4099 /* Check that off_t can represent 2**63 - 1 correctly.
4100    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4101    since some C++ compilers masquerading as C compilers
4102    incorrectly reject 9223372036854775807.  */
4103#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4104  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4105		       && LARGE_OFF_T % 2147483647 == 1)
4106		      ? 1 : -1];
4107int
4108main ()
4109{
4110
4111  ;
4112  return 0;
4113}
4114_ACEOF
4115if ac_fn_c_try_compile "$LINENO"; then :
4116  ac_cv_sys_large_files=1; break
4117fi
4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119  ac_cv_sys_large_files=unknown
4120  break
4121done
4122fi
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4124$as_echo "$ac_cv_sys_large_files" >&6; }
4125case $ac_cv_sys_large_files in #(
4126  no | unknown) ;;
4127  *)
4128cat >>confdefs.h <<_ACEOF
4129#define _LARGE_FILES $ac_cv_sys_large_files
4130_ACEOF
4131;;
4132esac
4133rm -rf conftest*
4134  fi
4135
4136
4137fi
4138
4139
4140# Check for required programs.
4141ac_ext=c
4142ac_cpp='$CPP $CPPFLAGS'
4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146if test -n "$ac_tool_prefix"; then
4147  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4148set dummy ${ac_tool_prefix}gcc; ac_word=$2
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150$as_echo_n "checking for $ac_word... " >&6; }
4151if ${ac_cv_prog_CC+:} false; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154  if test -n "$CC"; then
4155  ac_cv_prog_CC="$CC" # Let the user override the test.
4156else
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160  IFS=$as_save_IFS
4161  test -z "$as_dir" && as_dir=.
4162    for ac_exec_ext in '' $ac_executable_extensions; do
4163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166    break 2
4167  fi
4168done
4169  done
4170IFS=$as_save_IFS
4171
4172fi
4173fi
4174CC=$ac_cv_prog_CC
4175if test -n "$CC"; then
4176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177$as_echo "$CC" >&6; }
4178else
4179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180$as_echo "no" >&6; }
4181fi
4182
4183
4184fi
4185if test -z "$ac_cv_prog_CC"; then
4186  ac_ct_CC=$CC
4187  # Extract the first word of "gcc", so it can be a program name with args.
4188set dummy gcc; ac_word=$2
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190$as_echo_n "checking for $ac_word... " >&6; }
4191if ${ac_cv_prog_ac_ct_CC+:} false; then :
4192  $as_echo_n "(cached) " >&6
4193else
4194  if test -n "$ac_ct_CC"; then
4195  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4196else
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200  IFS=$as_save_IFS
4201  test -z "$as_dir" && as_dir=.
4202    for ac_exec_ext in '' $ac_executable_extensions; do
4203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204    ac_cv_prog_ac_ct_CC="gcc"
4205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206    break 2
4207  fi
4208done
4209  done
4210IFS=$as_save_IFS
4211
4212fi
4213fi
4214ac_ct_CC=$ac_cv_prog_ac_ct_CC
4215if test -n "$ac_ct_CC"; then
4216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4217$as_echo "$ac_ct_CC" >&6; }
4218else
4219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220$as_echo "no" >&6; }
4221fi
4222
4223  if test "x$ac_ct_CC" = x; then
4224    CC=""
4225  else
4226    case $cross_compiling:$ac_tool_warned in
4227yes:)
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4230ac_tool_warned=yes ;;
4231esac
4232    CC=$ac_ct_CC
4233  fi
4234else
4235  CC="$ac_cv_prog_CC"
4236fi
4237
4238if test -z "$CC"; then
4239          if test -n "$ac_tool_prefix"; then
4240    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4241set dummy ${ac_tool_prefix}cc; ac_word=$2
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243$as_echo_n "checking for $ac_word... " >&6; }
4244if ${ac_cv_prog_CC+:} false; then :
4245  $as_echo_n "(cached) " >&6
4246else
4247  if test -n "$CC"; then
4248  ac_cv_prog_CC="$CC" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253  IFS=$as_save_IFS
4254  test -z "$as_dir" && as_dir=.
4255    for ac_exec_ext in '' $ac_executable_extensions; do
4256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257    ac_cv_prog_CC="${ac_tool_prefix}cc"
4258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259    break 2
4260  fi
4261done
4262  done
4263IFS=$as_save_IFS
4264
4265fi
4266fi
4267CC=$ac_cv_prog_CC
4268if test -n "$CC"; then
4269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4270$as_echo "$CC" >&6; }
4271else
4272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273$as_echo "no" >&6; }
4274fi
4275
4276
4277  fi
4278fi
4279if test -z "$CC"; then
4280  # Extract the first word of "cc", so it can be a program name with args.
4281set dummy cc; ac_word=$2
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283$as_echo_n "checking for $ac_word... " >&6; }
4284if ${ac_cv_prog_CC+:} false; then :
4285  $as_echo_n "(cached) " >&6
4286else
4287  if test -n "$CC"; then
4288  ac_cv_prog_CC="$CC" # Let the user override the test.
4289else
4290  ac_prog_rejected=no
4291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294  IFS=$as_save_IFS
4295  test -z "$as_dir" && as_dir=.
4296    for ac_exec_ext in '' $ac_executable_extensions; do
4297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4299       ac_prog_rejected=yes
4300       continue
4301     fi
4302    ac_cv_prog_CC="cc"
4303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304    break 2
4305  fi
4306done
4307  done
4308IFS=$as_save_IFS
4309
4310if test $ac_prog_rejected = yes; then
4311  # We found a bogon in the path, so make sure we never use it.
4312  set dummy $ac_cv_prog_CC
4313  shift
4314  if test $# != 0; then
4315    # We chose a different compiler from the bogus one.
4316    # However, it has the same basename, so the bogon will be chosen
4317    # first if we set CC to just the basename; use the full file name.
4318    shift
4319    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4320  fi
4321fi
4322fi
4323fi
4324CC=$ac_cv_prog_CC
4325if test -n "$CC"; then
4326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4327$as_echo "$CC" >&6; }
4328else
4329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330$as_echo "no" >&6; }
4331fi
4332
4333
4334fi
4335if test -z "$CC"; then
4336  if test -n "$ac_tool_prefix"; then
4337  for ac_prog in cl.exe
4338  do
4339    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4340set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342$as_echo_n "checking for $ac_word... " >&6; }
4343if ${ac_cv_prog_CC+:} false; then :
4344  $as_echo_n "(cached) " >&6
4345else
4346  if test -n "$CC"; then
4347  ac_cv_prog_CC="$CC" # Let the user override the test.
4348else
4349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH
4351do
4352  IFS=$as_save_IFS
4353  test -z "$as_dir" && as_dir=.
4354    for ac_exec_ext in '' $ac_executable_extensions; do
4355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358    break 2
4359  fi
4360done
4361  done
4362IFS=$as_save_IFS
4363
4364fi
4365fi
4366CC=$ac_cv_prog_CC
4367if test -n "$CC"; then
4368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4369$as_echo "$CC" >&6; }
4370else
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372$as_echo "no" >&6; }
4373fi
4374
4375
4376    test -n "$CC" && break
4377  done
4378fi
4379if test -z "$CC"; then
4380  ac_ct_CC=$CC
4381  for ac_prog in cl.exe
4382do
4383  # Extract the first word of "$ac_prog", so it can be a program name with args.
4384set dummy $ac_prog; ac_word=$2
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386$as_echo_n "checking for $ac_word... " >&6; }
4387if ${ac_cv_prog_ac_ct_CC+:} false; then :
4388  $as_echo_n "(cached) " >&6
4389else
4390  if test -n "$ac_ct_CC"; then
4391  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4392else
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396  IFS=$as_save_IFS
4397  test -z "$as_dir" && as_dir=.
4398    for ac_exec_ext in '' $ac_executable_extensions; do
4399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400    ac_cv_prog_ac_ct_CC="$ac_prog"
4401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402    break 2
4403  fi
4404done
4405  done
4406IFS=$as_save_IFS
4407
4408fi
4409fi
4410ac_ct_CC=$ac_cv_prog_ac_ct_CC
4411if test -n "$ac_ct_CC"; then
4412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4413$as_echo "$ac_ct_CC" >&6; }
4414else
4415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416$as_echo "no" >&6; }
4417fi
4418
4419
4420  test -n "$ac_ct_CC" && break
4421done
4422
4423  if test "x$ac_ct_CC" = x; then
4424    CC=""
4425  else
4426    case $cross_compiling:$ac_tool_warned in
4427yes:)
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4430ac_tool_warned=yes ;;
4431esac
4432    CC=$ac_ct_CC
4433  fi
4434fi
4435
4436fi
4437
4438
4439test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441as_fn_error $? "no acceptable C compiler found in \$PATH
4442See \`config.log' for more details" "$LINENO" 5; }
4443
4444# Provide some information about the compiler.
4445$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4446set X $ac_compile
4447ac_compiler=$2
4448for ac_option in --version -v -V -qversion; do
4449  { { ac_try="$ac_compiler $ac_option >&5"
4450case "(($ac_try" in
4451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452  *) ac_try_echo=$ac_try;;
4453esac
4454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455$as_echo "$ac_try_echo"; } >&5
4456  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4457  ac_status=$?
4458  if test -s conftest.err; then
4459    sed '10a\
4460... rest of stderr output deleted ...
4461         10q' conftest.err >conftest.er1
4462    cat conftest.er1 >&5
4463  fi
4464  rm -f conftest.er1 conftest.err
4465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466  test $ac_status = 0; }
4467done
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4470$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4471if ${ac_cv_c_compiler_gnu+:} false; then :
4472  $as_echo_n "(cached) " >&6
4473else
4474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h.  */
4476
4477int
4478main ()
4479{
4480#ifndef __GNUC__
4481       choke me
4482#endif
4483
4484  ;
4485  return 0;
4486}
4487_ACEOF
4488if ac_fn_c_try_compile "$LINENO"; then :
4489  ac_compiler_gnu=yes
4490else
4491  ac_compiler_gnu=no
4492fi
4493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494ac_cv_c_compiler_gnu=$ac_compiler_gnu
4495
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4498$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4499if test $ac_compiler_gnu = yes; then
4500  GCC=yes
4501else
4502  GCC=
4503fi
4504ac_test_CFLAGS=${CFLAGS+set}
4505ac_save_CFLAGS=$CFLAGS
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4507$as_echo_n "checking whether $CC accepts -g... " >&6; }
4508if ${ac_cv_prog_cc_g+:} false; then :
4509  $as_echo_n "(cached) " >&6
4510else
4511  ac_save_c_werror_flag=$ac_c_werror_flag
4512   ac_c_werror_flag=yes
4513   ac_cv_prog_cc_g=no
4514   CFLAGS="-g"
4515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516/* end confdefs.h.  */
4517
4518int
4519main ()
4520{
4521
4522  ;
4523  return 0;
4524}
4525_ACEOF
4526if ac_fn_c_try_compile "$LINENO"; then :
4527  ac_cv_prog_cc_g=yes
4528else
4529  CFLAGS=""
4530      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h.  */
4532
4533int
4534main ()
4535{
4536
4537  ;
4538  return 0;
4539}
4540_ACEOF
4541if ac_fn_c_try_compile "$LINENO"; then :
4542
4543else
4544  ac_c_werror_flag=$ac_save_c_werror_flag
4545	 CFLAGS="-g"
4546	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547/* end confdefs.h.  */
4548
4549int
4550main ()
4551{
4552
4553  ;
4554  return 0;
4555}
4556_ACEOF
4557if ac_fn_c_try_compile "$LINENO"; then :
4558  ac_cv_prog_cc_g=yes
4559fi
4560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561fi
4562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563fi
4564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565   ac_c_werror_flag=$ac_save_c_werror_flag
4566fi
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4568$as_echo "$ac_cv_prog_cc_g" >&6; }
4569if test "$ac_test_CFLAGS" = set; then
4570  CFLAGS=$ac_save_CFLAGS
4571elif test $ac_cv_prog_cc_g = yes; then
4572  if test "$GCC" = yes; then
4573    CFLAGS="-g -O2"
4574  else
4575    CFLAGS="-g"
4576  fi
4577else
4578  if test "$GCC" = yes; then
4579    CFLAGS="-O2"
4580  else
4581    CFLAGS=
4582  fi
4583fi
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4585$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4586if ${ac_cv_prog_cc_c89+:} false; then :
4587  $as_echo_n "(cached) " >&6
4588else
4589  ac_cv_prog_cc_c89=no
4590ac_save_CC=$CC
4591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593#include <stdarg.h>
4594#include <stdio.h>
4595struct stat;
4596/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4597struct buf { int x; };
4598FILE * (*rcsopen) (struct buf *, struct stat *, int);
4599static char *e (p, i)
4600     char **p;
4601     int i;
4602{
4603  return p[i];
4604}
4605static char *f (char * (*g) (char **, int), char **p, ...)
4606{
4607  char *s;
4608  va_list v;
4609  va_start (v,p);
4610  s = g (p, va_arg (v,int));
4611  va_end (v);
4612  return s;
4613}
4614
4615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4616   function prototypes and stuff, but not '\xHH' hex character constants.
4617   These don't provoke an error unfortunately, instead are silently treated
4618   as 'x'.  The following induces an error, until -std is added to get
4619   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4620   array size at least.  It's necessary to write '\x00'==0 to get something
4621   that's true only with -std.  */
4622int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4623
4624/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4625   inside strings and character constants.  */
4626#define FOO(x) 'x'
4627int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4628
4629int test (int i, double x);
4630struct s1 {int (*f) (int a);};
4631struct s2 {int (*f) (double a);};
4632int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4633int argc;
4634char **argv;
4635int
4636main ()
4637{
4638return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4639  ;
4640  return 0;
4641}
4642_ACEOF
4643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4644	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4645do
4646  CC="$ac_save_CC $ac_arg"
4647  if ac_fn_c_try_compile "$LINENO"; then :
4648  ac_cv_prog_cc_c89=$ac_arg
4649fi
4650rm -f core conftest.err conftest.$ac_objext
4651  test "x$ac_cv_prog_cc_c89" != "xno" && break
4652done
4653rm -f conftest.$ac_ext
4654CC=$ac_save_CC
4655
4656fi
4657# AC_CACHE_VAL
4658case "x$ac_cv_prog_cc_c89" in
4659  x)
4660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4661$as_echo "none needed" >&6; } ;;
4662  xno)
4663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4664$as_echo "unsupported" >&6; } ;;
4665  *)
4666    CC="$CC $ac_cv_prog_cc_c89"
4667    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4668$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4669esac
4670if test "x$ac_cv_prog_cc_c89" != xno; then :
4671
4672fi
4673
4674ac_ext=c
4675ac_cpp='$CPP $CPPFLAGS'
4676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678ac_compiler_gnu=$ac_cv_c_compiler_gnu
4679
4680ac_ext=c
4681ac_cpp='$CPP $CPPFLAGS'
4682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4686$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4687if ${am_cv_prog_cc_c_o+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h.  */
4692
4693int
4694main ()
4695{
4696
4697  ;
4698  return 0;
4699}
4700_ACEOF
4701  # Make sure it works both with $CC and with simple cc.
4702  # Following AC_PROG_CC_C_O, we do the test twice because some
4703  # compilers refuse to overwrite an existing .o file with -o,
4704  # though they will create one.
4705  am_cv_prog_cc_c_o=yes
4706  for am_i in 1 2; do
4707    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4708   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); } \
4712         && test -f conftest2.$ac_objext; then
4713      : OK
4714    else
4715      am_cv_prog_cc_c_o=no
4716      break
4717    fi
4718  done
4719  rm -f core conftest*
4720  unset am_i
4721fi
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4723$as_echo "$am_cv_prog_cc_c_o" >&6; }
4724if test "$am_cv_prog_cc_c_o" != yes; then
4725   # Losing compiler, so override with the script.
4726   # FIXME: It is wrong to rewrite CC.
4727   # But if we don't then we get into trouble of one sort or another.
4728   # A longer-term fix would be to have automake use am__CC in this case,
4729   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4730   CC="$am_aux_dir/compile $CC"
4731fi
4732ac_ext=c
4733ac_cpp='$CPP $CPPFLAGS'
4734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737
4738
4739depcc="$CC"   am_compiler_list=
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4742$as_echo_n "checking dependency style of $depcc... " >&6; }
4743if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4747  # We make a subdir and do the tests there.  Otherwise we can end up
4748  # making bogus files that we don't know about and never remove.  For
4749  # instance it was reported that on HP-UX the gcc test will end up
4750  # making a dummy file named 'D' -- because '-MD' means "put the output
4751  # in D".
4752  rm -rf conftest.dir
4753  mkdir conftest.dir
4754  # Copy depcomp to subdir because otherwise we won't find it if we're
4755  # using a relative directory.
4756  cp "$am_depcomp" conftest.dir
4757  cd conftest.dir
4758  # We will build objects and dependencies in a subdirectory because
4759  # it helps to detect inapplicable dependency modes.  For instance
4760  # both Tru64's cc and ICC support -MD to output dependencies as a
4761  # side effect of compilation, but ICC will put the dependencies in
4762  # the current directory while Tru64 will put them in the object
4763  # directory.
4764  mkdir sub
4765
4766  am_cv_CC_dependencies_compiler_type=none
4767  if test "$am_compiler_list" = ""; then
4768     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4769  fi
4770  am__universal=false
4771  case " $depcc " in #(
4772     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4773     esac
4774
4775  for depmode in $am_compiler_list; do
4776    # Setup a source with many dependencies, because some compilers
4777    # like to wrap large dependency lists on column 80 (with \), and
4778    # we should not choose a depcomp mode which is confused by this.
4779    #
4780    # We need to recreate these files for each test, as the compiler may
4781    # overwrite some of them when testing with obscure command lines.
4782    # This happens at least with the AIX C compiler.
4783    : > sub/conftest.c
4784    for i in 1 2 3 4 5 6; do
4785      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4786      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4787      # Solaris 10 /bin/sh.
4788      echo '/* dummy */' > sub/conftst$i.h
4789    done
4790    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4791
4792    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4793    # mode.  It turns out that the SunPro C++ compiler does not properly
4794    # handle '-M -o', and we need to detect this.  Also, some Intel
4795    # versions had trouble with output in subdirs.
4796    am__obj=sub/conftest.${OBJEXT-o}
4797    am__minus_obj="-o $am__obj"
4798    case $depmode in
4799    gcc)
4800      # This depmode causes a compiler race in universal mode.
4801      test "$am__universal" = false || continue
4802      ;;
4803    nosideeffect)
4804      # After this tag, mechanisms are not by side-effect, so they'll
4805      # only be used when explicitly requested.
4806      if test "x$enable_dependency_tracking" = xyes; then
4807	continue
4808      else
4809	break
4810      fi
4811      ;;
4812    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4813      # This compiler won't grok '-c -o', but also, the minuso test has
4814      # not run yet.  These depmodes are late enough in the game, and
4815      # so weak that their functioning should not be impacted.
4816      am__obj=conftest.${OBJEXT-o}
4817      am__minus_obj=
4818      ;;
4819    none) break ;;
4820    esac
4821    if depmode=$depmode \
4822       source=sub/conftest.c object=$am__obj \
4823       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4824       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4825         >/dev/null 2>conftest.err &&
4826       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4827       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4828       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4829       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4830      # icc doesn't choke on unknown options, it will just issue warnings
4831      # or remarks (even with -Werror).  So we grep stderr for any message
4832      # that says an option was ignored or not supported.
4833      # When given -MP, icc 7.0 and 7.1 complain thusly:
4834      #   icc: Command line warning: ignoring option '-M'; no argument required
4835      # The diagnosis changed in icc 8.0:
4836      #   icc: Command line remark: option '-MP' not supported
4837      if (grep 'ignoring option' conftest.err ||
4838          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4839        am_cv_CC_dependencies_compiler_type=$depmode
4840        break
4841      fi
4842    fi
4843  done
4844
4845  cd ..
4846  rm -rf conftest.dir
4847else
4848  am_cv_CC_dependencies_compiler_type=none
4849fi
4850
4851fi
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4853$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4854CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4855
4856 if
4857  test "x$enable_dependency_tracking" != xno \
4858  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4859  am__fastdepCC_TRUE=
4860  am__fastdepCC_FALSE='#'
4861else
4862  am__fastdepCC_TRUE='#'
4863  am__fastdepCC_FALSE=
4864fi
4865
4866
4867case `pwd` in
4868  *\ * | *\	*)
4869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4870$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4871esac
4872
4873
4874
4875macro_version='2.4.6'
4876macro_revision='2.4.6'
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890ltmain=$ac_aux_dir/ltmain.sh
4891
4892# Make sure we can run config.sub.
4893$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4894  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4895
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4897$as_echo_n "checking build system type... " >&6; }
4898if ${ac_cv_build+:} false; then :
4899  $as_echo_n "(cached) " >&6
4900else
4901  ac_build_alias=$build_alias
4902test "x$ac_build_alias" = x &&
4903  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4904test "x$ac_build_alias" = x &&
4905  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4906ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4907  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4908
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4911$as_echo "$ac_cv_build" >&6; }
4912case $ac_cv_build in
4913*-*-*) ;;
4914*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4915esac
4916build=$ac_cv_build
4917ac_save_IFS=$IFS; IFS='-'
4918set x $ac_cv_build
4919shift
4920build_cpu=$1
4921build_vendor=$2
4922shift; shift
4923# Remember, the first character of IFS is used to create $*,
4924# except with old shells:
4925build_os=$*
4926IFS=$ac_save_IFS
4927case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4928
4929
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4931$as_echo_n "checking host system type... " >&6; }
4932if ${ac_cv_host+:} false; then :
4933  $as_echo_n "(cached) " >&6
4934else
4935  if test "x$host_alias" = x; then
4936  ac_cv_host=$ac_cv_build
4937else
4938  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4939    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4940fi
4941
4942fi
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4944$as_echo "$ac_cv_host" >&6; }
4945case $ac_cv_host in
4946*-*-*) ;;
4947*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4948esac
4949host=$ac_cv_host
4950ac_save_IFS=$IFS; IFS='-'
4951set x $ac_cv_host
4952shift
4953host_cpu=$1
4954host_vendor=$2
4955shift; shift
4956# Remember, the first character of IFS is used to create $*,
4957# except with old shells:
4958host_os=$*
4959IFS=$ac_save_IFS
4960case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4961
4962
4963# Backslashify metacharacters that are still active within
4964# double-quoted strings.
4965sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4966
4967# Same as above, but do not quote variable references.
4968double_quote_subst='s/\(["`\\]\)/\\\1/g'
4969
4970# Sed substitution to delay expansion of an escaped shell variable in a
4971# double_quote_subst'ed string.
4972delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4973
4974# Sed substitution to delay expansion of an escaped single quote.
4975delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4976
4977# Sed substitution to avoid accidental globbing in evaled expressions
4978no_glob_subst='s/\*/\\\*/g'
4979
4980ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4981ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4982ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4983
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4985$as_echo_n "checking how to print strings... " >&6; }
4986# Test print first, because it will be a builtin if present.
4987if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4988   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4989  ECHO='print -r --'
4990elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4991  ECHO='printf %s\n'
4992else
4993  # Use this function as a fallback that always works.
4994  func_fallback_echo ()
4995  {
4996    eval 'cat <<_LTECHO_EOF
4997$1
4998_LTECHO_EOF'
4999  }
5000  ECHO='func_fallback_echo'
5001fi
5002
5003# func_echo_all arg...
5004# Invoke $ECHO with all args, space-separated.
5005func_echo_all ()
5006{
5007    $ECHO ""
5008}
5009
5010case $ECHO in
5011  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5012$as_echo "printf" >&6; } ;;
5013  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5014$as_echo "print -r" >&6; } ;;
5015  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5016$as_echo "cat" >&6; } ;;
5017esac
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5033$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5034if ${ac_cv_path_SED+:} false; then :
5035  $as_echo_n "(cached) " >&6
5036else
5037            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5038     for ac_i in 1 2 3 4 5 6 7; do
5039       ac_script="$ac_script$as_nl$ac_script"
5040     done
5041     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5042     { ac_script=; unset ac_script;}
5043     if test -z "$SED"; then
5044  ac_path_SED_found=false
5045  # Loop through the user's path and test for each of PROGNAME-LIST
5046  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049  IFS=$as_save_IFS
5050  test -z "$as_dir" && as_dir=.
5051    for ac_prog in sed gsed; do
5052    for ac_exec_ext in '' $ac_executable_extensions; do
5053      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5054      as_fn_executable_p "$ac_path_SED" || continue
5055# Check for GNU ac_path_SED and select it if it is found.
5056  # Check for GNU $ac_path_SED
5057case `"$ac_path_SED" --version 2>&1` in
5058*GNU*)
5059  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5060*)
5061  ac_count=0
5062  $as_echo_n 0123456789 >"conftest.in"
5063  while :
5064  do
5065    cat "conftest.in" "conftest.in" >"conftest.tmp"
5066    mv "conftest.tmp" "conftest.in"
5067    cp "conftest.in" "conftest.nl"
5068    $as_echo '' >> "conftest.nl"
5069    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5070    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5071    as_fn_arith $ac_count + 1 && ac_count=$as_val
5072    if test $ac_count -gt ${ac_path_SED_max-0}; then
5073      # Best one so far, save it but keep looking for a better one
5074      ac_cv_path_SED="$ac_path_SED"
5075      ac_path_SED_max=$ac_count
5076    fi
5077    # 10*(2^10) chars as input seems more than enough
5078    test $ac_count -gt 10 && break
5079  done
5080  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5081esac
5082
5083      $ac_path_SED_found && break 3
5084    done
5085  done
5086  done
5087IFS=$as_save_IFS
5088  if test -z "$ac_cv_path_SED"; then
5089    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5090  fi
5091else
5092  ac_cv_path_SED=$SED
5093fi
5094
5095fi
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5097$as_echo "$ac_cv_path_SED" >&6; }
5098 SED="$ac_cv_path_SED"
5099  rm -f conftest.sed
5100
5101test -z "$SED" && SED=sed
5102Xsed="$SED -e 1s/^X//"
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5115$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5116if ${ac_cv_path_GREP+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  if test -z "$GREP"; then
5120  ac_path_GREP_found=false
5121  # Loop through the user's path and test for each of PROGNAME-LIST
5122  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5124do
5125  IFS=$as_save_IFS
5126  test -z "$as_dir" && as_dir=.
5127    for ac_prog in grep ggrep; do
5128    for ac_exec_ext in '' $ac_executable_extensions; do
5129      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5130      as_fn_executable_p "$ac_path_GREP" || continue
5131# Check for GNU ac_path_GREP and select it if it is found.
5132  # Check for GNU $ac_path_GREP
5133case `"$ac_path_GREP" --version 2>&1` in
5134*GNU*)
5135  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5136*)
5137  ac_count=0
5138  $as_echo_n 0123456789 >"conftest.in"
5139  while :
5140  do
5141    cat "conftest.in" "conftest.in" >"conftest.tmp"
5142    mv "conftest.tmp" "conftest.in"
5143    cp "conftest.in" "conftest.nl"
5144    $as_echo 'GREP' >> "conftest.nl"
5145    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5146    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5147    as_fn_arith $ac_count + 1 && ac_count=$as_val
5148    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5149      # Best one so far, save it but keep looking for a better one
5150      ac_cv_path_GREP="$ac_path_GREP"
5151      ac_path_GREP_max=$ac_count
5152    fi
5153    # 10*(2^10) chars as input seems more than enough
5154    test $ac_count -gt 10 && break
5155  done
5156  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5157esac
5158
5159      $ac_path_GREP_found && break 3
5160    done
5161  done
5162  done
5163IFS=$as_save_IFS
5164  if test -z "$ac_cv_path_GREP"; then
5165    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5166  fi
5167else
5168  ac_cv_path_GREP=$GREP
5169fi
5170
5171fi
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5173$as_echo "$ac_cv_path_GREP" >&6; }
5174 GREP="$ac_cv_path_GREP"
5175
5176
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5178$as_echo_n "checking for egrep... " >&6; }
5179if ${ac_cv_path_EGREP+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5183   then ac_cv_path_EGREP="$GREP -E"
5184   else
5185     if test -z "$EGREP"; then
5186  ac_path_EGREP_found=false
5187  # Loop through the user's path and test for each of PROGNAME-LIST
5188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193    for ac_prog in egrep; do
5194    for ac_exec_ext in '' $ac_executable_extensions; do
5195      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5196      as_fn_executable_p "$ac_path_EGREP" || continue
5197# Check for GNU ac_path_EGREP and select it if it is found.
5198  # Check for GNU $ac_path_EGREP
5199case `"$ac_path_EGREP" --version 2>&1` in
5200*GNU*)
5201  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5202*)
5203  ac_count=0
5204  $as_echo_n 0123456789 >"conftest.in"
5205  while :
5206  do
5207    cat "conftest.in" "conftest.in" >"conftest.tmp"
5208    mv "conftest.tmp" "conftest.in"
5209    cp "conftest.in" "conftest.nl"
5210    $as_echo 'EGREP' >> "conftest.nl"
5211    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5212    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5213    as_fn_arith $ac_count + 1 && ac_count=$as_val
5214    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5215      # Best one so far, save it but keep looking for a better one
5216      ac_cv_path_EGREP="$ac_path_EGREP"
5217      ac_path_EGREP_max=$ac_count
5218    fi
5219    # 10*(2^10) chars as input seems more than enough
5220    test $ac_count -gt 10 && break
5221  done
5222  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5223esac
5224
5225      $ac_path_EGREP_found && break 3
5226    done
5227  done
5228  done
5229IFS=$as_save_IFS
5230  if test -z "$ac_cv_path_EGREP"; then
5231    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5232  fi
5233else
5234  ac_cv_path_EGREP=$EGREP
5235fi
5236
5237   fi
5238fi
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5240$as_echo "$ac_cv_path_EGREP" >&6; }
5241 EGREP="$ac_cv_path_EGREP"
5242
5243
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5245$as_echo_n "checking for fgrep... " >&6; }
5246if ${ac_cv_path_FGREP+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5250   then ac_cv_path_FGREP="$GREP -F"
5251   else
5252     if test -z "$FGREP"; then
5253  ac_path_FGREP_found=false
5254  # Loop through the user's path and test for each of PROGNAME-LIST
5255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5257do
5258  IFS=$as_save_IFS
5259  test -z "$as_dir" && as_dir=.
5260    for ac_prog in fgrep; do
5261    for ac_exec_ext in '' $ac_executable_extensions; do
5262      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5263      as_fn_executable_p "$ac_path_FGREP" || continue
5264# Check for GNU ac_path_FGREP and select it if it is found.
5265  # Check for GNU $ac_path_FGREP
5266case `"$ac_path_FGREP" --version 2>&1` in
5267*GNU*)
5268  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5269*)
5270  ac_count=0
5271  $as_echo_n 0123456789 >"conftest.in"
5272  while :
5273  do
5274    cat "conftest.in" "conftest.in" >"conftest.tmp"
5275    mv "conftest.tmp" "conftest.in"
5276    cp "conftest.in" "conftest.nl"
5277    $as_echo 'FGREP' >> "conftest.nl"
5278    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5279    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5280    as_fn_arith $ac_count + 1 && ac_count=$as_val
5281    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5282      # Best one so far, save it but keep looking for a better one
5283      ac_cv_path_FGREP="$ac_path_FGREP"
5284      ac_path_FGREP_max=$ac_count
5285    fi
5286    # 10*(2^10) chars as input seems more than enough
5287    test $ac_count -gt 10 && break
5288  done
5289  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5290esac
5291
5292      $ac_path_FGREP_found && break 3
5293    done
5294  done
5295  done
5296IFS=$as_save_IFS
5297  if test -z "$ac_cv_path_FGREP"; then
5298    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5299  fi
5300else
5301  ac_cv_path_FGREP=$FGREP
5302fi
5303
5304   fi
5305fi
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5307$as_echo "$ac_cv_path_FGREP" >&6; }
5308 FGREP="$ac_cv_path_FGREP"
5309
5310
5311test -z "$GREP" && GREP=grep
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331# Check whether --with-gnu-ld was given.
5332if test "${with_gnu_ld+set}" = set; then :
5333  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5334else
5335  with_gnu_ld=no
5336fi
5337
5338ac_prog=ld
5339if test yes = "$GCC"; then
5340  # Check if gcc -print-prog-name=ld gives a path.
5341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5342$as_echo_n "checking for ld used by $CC... " >&6; }
5343  case $host in
5344  *-*-mingw*)
5345    # gcc leaves a trailing carriage return, which upsets mingw
5346    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5347  *)
5348    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5349  esac
5350  case $ac_prog in
5351    # Accept absolute paths.
5352    [\\/]* | ?:[\\/]*)
5353      re_direlt='/[^/][^/]*/\.\./'
5354      # Canonicalize the pathname of ld
5355      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5356      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5357	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5358      done
5359      test -z "$LD" && LD=$ac_prog
5360      ;;
5361  "")
5362    # If it fails, then pretend we aren't using GCC.
5363    ac_prog=ld
5364    ;;
5365  *)
5366    # If it is relative, then search for the first ld in PATH.
5367    with_gnu_ld=unknown
5368    ;;
5369  esac
5370elif test yes = "$with_gnu_ld"; then
5371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5372$as_echo_n "checking for GNU ld... " >&6; }
5373else
5374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5375$as_echo_n "checking for non-GNU ld... " >&6; }
5376fi
5377if ${lt_cv_path_LD+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380  if test -z "$LD"; then
5381  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5382  for ac_dir in $PATH; do
5383    IFS=$lt_save_ifs
5384    test -z "$ac_dir" && ac_dir=.
5385    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5386      lt_cv_path_LD=$ac_dir/$ac_prog
5387      # Check to see if the program is GNU ld.  I'd rather use --version,
5388      # but apparently some variants of GNU ld only accept -v.
5389      # Break only if it was the GNU/non-GNU ld that we prefer.
5390      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5391      *GNU* | *'with BFD'*)
5392	test no != "$with_gnu_ld" && break
5393	;;
5394      *)
5395	test yes != "$with_gnu_ld" && break
5396	;;
5397      esac
5398    fi
5399  done
5400  IFS=$lt_save_ifs
5401else
5402  lt_cv_path_LD=$LD # Let the user override the test with a path.
5403fi
5404fi
5405
5406LD=$lt_cv_path_LD
5407if test -n "$LD"; then
5408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5409$as_echo "$LD" >&6; }
5410else
5411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412$as_echo "no" >&6; }
5413fi
5414test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5416$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5417if ${lt_cv_prog_gnu_ld+:} false; then :
5418  $as_echo_n "(cached) " >&6
5419else
5420  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5421case `$LD -v 2>&1 </dev/null` in
5422*GNU* | *'with BFD'*)
5423  lt_cv_prog_gnu_ld=yes
5424  ;;
5425*)
5426  lt_cv_prog_gnu_ld=no
5427  ;;
5428esac
5429fi
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5431$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5432with_gnu_ld=$lt_cv_prog_gnu_ld
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5443$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5444if ${lt_cv_path_NM+:} false; then :
5445  $as_echo_n "(cached) " >&6
5446else
5447  if test -n "$NM"; then
5448  # Let the user override the test.
5449  lt_cv_path_NM=$NM
5450else
5451  lt_nm_to_check=${ac_tool_prefix}nm
5452  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5453    lt_nm_to_check="$lt_nm_to_check nm"
5454  fi
5455  for lt_tmp_nm in $lt_nm_to_check; do
5456    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5457    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5458      IFS=$lt_save_ifs
5459      test -z "$ac_dir" && ac_dir=.
5460      tmp_nm=$ac_dir/$lt_tmp_nm
5461      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5462	# Check to see if the nm accepts a BSD-compat flag.
5463	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5464	#   nm: unknown option "B" ignored
5465	# Tru64's nm complains that /dev/null is an invalid object file
5466	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5467	case $build_os in
5468	mingw*) lt_bad_file=conftest.nm/nofile ;;
5469	*) lt_bad_file=/dev/null ;;
5470	esac
5471	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5472	*$lt_bad_file* | *'Invalid file or object type'*)
5473	  lt_cv_path_NM="$tmp_nm -B"
5474	  break 2
5475	  ;;
5476	*)
5477	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5478	  */dev/null*)
5479	    lt_cv_path_NM="$tmp_nm -p"
5480	    break 2
5481	    ;;
5482	  *)
5483	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5484	    continue # so that we can try to find one that supports BSD flags
5485	    ;;
5486	  esac
5487	  ;;
5488	esac
5489      fi
5490    done
5491    IFS=$lt_save_ifs
5492  done
5493  : ${lt_cv_path_NM=no}
5494fi
5495fi
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5497$as_echo "$lt_cv_path_NM" >&6; }
5498if test no != "$lt_cv_path_NM"; then
5499  NM=$lt_cv_path_NM
5500else
5501  # Didn't find any BSD compatible name lister, look for dumpbin.
5502  if test -n "$DUMPBIN"; then :
5503    # Let the user override the test.
5504  else
5505    if test -n "$ac_tool_prefix"; then
5506  for ac_prog in dumpbin "link -dump"
5507  do
5508    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511$as_echo_n "checking for $ac_word... " >&6; }
5512if ${ac_cv_prog_DUMPBIN+:} false; then :
5513  $as_echo_n "(cached) " >&6
5514else
5515  if test -n "$DUMPBIN"; then
5516  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5517else
5518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519for as_dir in $PATH
5520do
5521  IFS=$as_save_IFS
5522  test -z "$as_dir" && as_dir=.
5523    for ac_exec_ext in '' $ac_executable_extensions; do
5524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527    break 2
5528  fi
5529done
5530  done
5531IFS=$as_save_IFS
5532
5533fi
5534fi
5535DUMPBIN=$ac_cv_prog_DUMPBIN
5536if test -n "$DUMPBIN"; then
5537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5538$as_echo "$DUMPBIN" >&6; }
5539else
5540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541$as_echo "no" >&6; }
5542fi
5543
5544
5545    test -n "$DUMPBIN" && break
5546  done
5547fi
5548if test -z "$DUMPBIN"; then
5549  ac_ct_DUMPBIN=$DUMPBIN
5550  for ac_prog in dumpbin "link -dump"
5551do
5552  # Extract the first word of "$ac_prog", so it can be a program name with args.
5553set dummy $ac_prog; ac_word=$2
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555$as_echo_n "checking for $ac_word... " >&6; }
5556if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5557  $as_echo_n "(cached) " >&6
5558else
5559  if test -n "$ac_ct_DUMPBIN"; then
5560  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5561else
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565  IFS=$as_save_IFS
5566  test -z "$as_dir" && as_dir=.
5567    for ac_exec_ext in '' $ac_executable_extensions; do
5568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571    break 2
5572  fi
5573done
5574  done
5575IFS=$as_save_IFS
5576
5577fi
5578fi
5579ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5580if test -n "$ac_ct_DUMPBIN"; then
5581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5582$as_echo "$ac_ct_DUMPBIN" >&6; }
5583else
5584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585$as_echo "no" >&6; }
5586fi
5587
5588
5589  test -n "$ac_ct_DUMPBIN" && break
5590done
5591
5592  if test "x$ac_ct_DUMPBIN" = x; then
5593    DUMPBIN=":"
5594  else
5595    case $cross_compiling:$ac_tool_warned in
5596yes:)
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599ac_tool_warned=yes ;;
5600esac
5601    DUMPBIN=$ac_ct_DUMPBIN
5602  fi
5603fi
5604
5605    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5606    *COFF*)
5607      DUMPBIN="$DUMPBIN -symbols -headers"
5608      ;;
5609    *)
5610      DUMPBIN=:
5611      ;;
5612    esac
5613  fi
5614
5615  if test : != "$DUMPBIN"; then
5616    NM=$DUMPBIN
5617  fi
5618fi
5619test -z "$NM" && NM=nm
5620
5621
5622
5623
5624
5625
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5627$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5628if ${lt_cv_nm_interface+:} false; then :
5629  $as_echo_n "(cached) " >&6
5630else
5631  lt_cv_nm_interface="BSD nm"
5632  echo "int some_variable = 0;" > conftest.$ac_ext
5633  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5634  (eval "$ac_compile" 2>conftest.err)
5635  cat conftest.err >&5
5636  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5637  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5638  cat conftest.err >&5
5639  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5640  cat conftest.out >&5
5641  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5642    lt_cv_nm_interface="MS dumpbin"
5643  fi
5644  rm -f conftest*
5645fi
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5647$as_echo "$lt_cv_nm_interface" >&6; }
5648
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5650$as_echo_n "checking whether ln -s works... " >&6; }
5651LN_S=$as_ln_s
5652if test "$LN_S" = "ln -s"; then
5653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5654$as_echo "yes" >&6; }
5655else
5656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5657$as_echo "no, using $LN_S" >&6; }
5658fi
5659
5660# find the maximum length of command line arguments
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5662$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5663if ${lt_cv_sys_max_cmd_len+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666    i=0
5667  teststring=ABCD
5668
5669  case $build_os in
5670  msdosdjgpp*)
5671    # On DJGPP, this test can blow up pretty badly due to problems in libc
5672    # (any single argument exceeding 2000 bytes causes a buffer overrun
5673    # during glob expansion).  Even if it were fixed, the result of this
5674    # check would be larger than it should be.
5675    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5676    ;;
5677
5678  gnu*)
5679    # Under GNU Hurd, this test is not required because there is
5680    # no limit to the length of command line arguments.
5681    # Libtool will interpret -1 as no limit whatsoever
5682    lt_cv_sys_max_cmd_len=-1;
5683    ;;
5684
5685  cygwin* | mingw* | cegcc*)
5686    # On Win9x/ME, this test blows up -- it succeeds, but takes
5687    # about 5 minutes as the teststring grows exponentially.
5688    # Worse, since 9x/ME are not pre-emptively multitasking,
5689    # you end up with a "frozen" computer, even though with patience
5690    # the test eventually succeeds (with a max line length of 256k).
5691    # Instead, let's just punt: use the minimum linelength reported by
5692    # all of the supported platforms: 8192 (on NT/2K/XP).
5693    lt_cv_sys_max_cmd_len=8192;
5694    ;;
5695
5696  mint*)
5697    # On MiNT this can take a long time and run out of memory.
5698    lt_cv_sys_max_cmd_len=8192;
5699    ;;
5700
5701  amigaos*)
5702    # On AmigaOS with pdksh, this test takes hours, literally.
5703    # So we just punt and use a minimum line length of 8192.
5704    lt_cv_sys_max_cmd_len=8192;
5705    ;;
5706
5707  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5708    # This has been around since 386BSD, at least.  Likely further.
5709    if test -x /sbin/sysctl; then
5710      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5711    elif test -x /usr/sbin/sysctl; then
5712      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5713    else
5714      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5715    fi
5716    # And add a safety zone
5717    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5718    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5719    ;;
5720
5721  interix*)
5722    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5723    lt_cv_sys_max_cmd_len=196608
5724    ;;
5725
5726  os2*)
5727    # The test takes a long time on OS/2.
5728    lt_cv_sys_max_cmd_len=8192
5729    ;;
5730
5731  osf*)
5732    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5733    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5734    # nice to cause kernel panics so lets avoid the loop below.
5735    # First set a reasonable default.
5736    lt_cv_sys_max_cmd_len=16384
5737    #
5738    if test -x /sbin/sysconfig; then
5739      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5740        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5741      esac
5742    fi
5743    ;;
5744  sco3.2v5*)
5745    lt_cv_sys_max_cmd_len=102400
5746    ;;
5747  sysv5* | sco5v6* | sysv4.2uw2*)
5748    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5749    if test -n "$kargmax"; then
5750      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5751    else
5752      lt_cv_sys_max_cmd_len=32768
5753    fi
5754    ;;
5755  *)
5756    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5757    if test -n "$lt_cv_sys_max_cmd_len" && \
5758       test undefined != "$lt_cv_sys_max_cmd_len"; then
5759      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5760      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5761    else
5762      # Make teststring a little bigger before we do anything with it.
5763      # a 1K string should be a reasonable start.
5764      for i in 1 2 3 4 5 6 7 8; do
5765        teststring=$teststring$teststring
5766      done
5767      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5768      # If test is not a shell built-in, we'll probably end up computing a
5769      # maximum length that is only half of the actual maximum length, but
5770      # we can't tell.
5771      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5772	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5773	      test 17 != "$i" # 1/2 MB should be enough
5774      do
5775        i=`expr $i + 1`
5776        teststring=$teststring$teststring
5777      done
5778      # Only check the string length outside the loop.
5779      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5780      teststring=
5781      # Add a significant safety factor because C++ compilers can tack on
5782      # massive amounts of additional arguments before passing them to the
5783      # linker.  It appears as though 1/2 is a usable value.
5784      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5785    fi
5786    ;;
5787  esac
5788
5789fi
5790
5791if test -n "$lt_cv_sys_max_cmd_len"; then
5792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5793$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5794else
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5796$as_echo "none" >&6; }
5797fi
5798max_cmd_len=$lt_cv_sys_max_cmd_len
5799
5800
5801
5802
5803
5804
5805: ${CP="cp -f"}
5806: ${MV="mv -f"}
5807: ${RM="rm -f"}
5808
5809if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5810  lt_unset=unset
5811else
5812  lt_unset=false
5813fi
5814
5815
5816
5817
5818
5819# test EBCDIC or ASCII
5820case `echo X|tr X '\101'` in
5821 A) # ASCII based system
5822    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5823  lt_SP2NL='tr \040 \012'
5824  lt_NL2SP='tr \015\012 \040\040'
5825  ;;
5826 *) # EBCDIC based system
5827  lt_SP2NL='tr \100 \n'
5828  lt_NL2SP='tr \r\n \100\100'
5829  ;;
5830esac
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5841$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5842if ${lt_cv_to_host_file_cmd+:} false; then :
5843  $as_echo_n "(cached) " >&6
5844else
5845  case $host in
5846  *-*-mingw* )
5847    case $build in
5848      *-*-mingw* ) # actually msys
5849        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5850        ;;
5851      *-*-cygwin* )
5852        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5853        ;;
5854      * ) # otherwise, assume *nix
5855        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5856        ;;
5857    esac
5858    ;;
5859  *-*-cygwin* )
5860    case $build in
5861      *-*-mingw* ) # actually msys
5862        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5863        ;;
5864      *-*-cygwin* )
5865        lt_cv_to_host_file_cmd=func_convert_file_noop
5866        ;;
5867      * ) # otherwise, assume *nix
5868        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5869        ;;
5870    esac
5871    ;;
5872  * ) # unhandled hosts (and "normal" native builds)
5873    lt_cv_to_host_file_cmd=func_convert_file_noop
5874    ;;
5875esac
5876
5877fi
5878
5879to_host_file_cmd=$lt_cv_to_host_file_cmd
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5881$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5882
5883
5884
5885
5886
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5888$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5889if ${lt_cv_to_tool_file_cmd+:} false; then :
5890  $as_echo_n "(cached) " >&6
5891else
5892  #assume ordinary cross tools, or native build.
5893lt_cv_to_tool_file_cmd=func_convert_file_noop
5894case $host in
5895  *-*-mingw* )
5896    case $build in
5897      *-*-mingw* ) # actually msys
5898        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5899        ;;
5900    esac
5901    ;;
5902esac
5903
5904fi
5905
5906to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5908$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5909
5910
5911
5912
5913
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5915$as_echo_n "checking for $LD option to reload object files... " >&6; }
5916if ${lt_cv_ld_reload_flag+:} false; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  lt_cv_ld_reload_flag='-r'
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5922$as_echo "$lt_cv_ld_reload_flag" >&6; }
5923reload_flag=$lt_cv_ld_reload_flag
5924case $reload_flag in
5925"" | " "*) ;;
5926*) reload_flag=" $reload_flag" ;;
5927esac
5928reload_cmds='$LD$reload_flag -o $output$reload_objs'
5929case $host_os in
5930  cygwin* | mingw* | pw32* | cegcc*)
5931    if test yes != "$GCC"; then
5932      reload_cmds=false
5933    fi
5934    ;;
5935  darwin*)
5936    if test yes = "$GCC"; then
5937      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5938    else
5939      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5940    fi
5941    ;;
5942esac
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952if test -n "$ac_tool_prefix"; then
5953  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5954set dummy ${ac_tool_prefix}objdump; ac_word=$2
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956$as_echo_n "checking for $ac_word... " >&6; }
5957if ${ac_cv_prog_OBJDUMP+:} false; then :
5958  $as_echo_n "(cached) " >&6
5959else
5960  if test -n "$OBJDUMP"; then
5961  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5962else
5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966  IFS=$as_save_IFS
5967  test -z "$as_dir" && as_dir=.
5968    for ac_exec_ext in '' $ac_executable_extensions; do
5969  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5970    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972    break 2
5973  fi
5974done
5975  done
5976IFS=$as_save_IFS
5977
5978fi
5979fi
5980OBJDUMP=$ac_cv_prog_OBJDUMP
5981if test -n "$OBJDUMP"; then
5982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5983$as_echo "$OBJDUMP" >&6; }
5984else
5985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986$as_echo "no" >&6; }
5987fi
5988
5989
5990fi
5991if test -z "$ac_cv_prog_OBJDUMP"; then
5992  ac_ct_OBJDUMP=$OBJDUMP
5993  # Extract the first word of "objdump", so it can be a program name with args.
5994set dummy objdump; ac_word=$2
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996$as_echo_n "checking for $ac_word... " >&6; }
5997if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5998  $as_echo_n "(cached) " >&6
5999else
6000  if test -n "$ac_ct_OBJDUMP"; then
6001  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6002else
6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006  IFS=$as_save_IFS
6007  test -z "$as_dir" && as_dir=.
6008    for ac_exec_ext in '' $ac_executable_extensions; do
6009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012    break 2
6013  fi
6014done
6015  done
6016IFS=$as_save_IFS
6017
6018fi
6019fi
6020ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6021if test -n "$ac_ct_OBJDUMP"; then
6022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6023$as_echo "$ac_ct_OBJDUMP" >&6; }
6024else
6025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026$as_echo "no" >&6; }
6027fi
6028
6029  if test "x$ac_ct_OBJDUMP" = x; then
6030    OBJDUMP="false"
6031  else
6032    case $cross_compiling:$ac_tool_warned in
6033yes:)
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036ac_tool_warned=yes ;;
6037esac
6038    OBJDUMP=$ac_ct_OBJDUMP
6039  fi
6040else
6041  OBJDUMP="$ac_cv_prog_OBJDUMP"
6042fi
6043
6044test -z "$OBJDUMP" && OBJDUMP=objdump
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6055$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6056if ${lt_cv_deplibs_check_method+:} false; then :
6057  $as_echo_n "(cached) " >&6
6058else
6059  lt_cv_file_magic_cmd='$MAGIC_CMD'
6060lt_cv_file_magic_test_file=
6061lt_cv_deplibs_check_method='unknown'
6062# Need to set the preceding variable on all platforms that support
6063# interlibrary dependencies.
6064# 'none' -- dependencies not supported.
6065# 'unknown' -- same as none, but documents that we really don't know.
6066# 'pass_all' -- all dependencies passed with no checks.
6067# 'test_compile' -- check by making test program.
6068# 'file_magic [[regex]]' -- check by looking for files in library path
6069# that responds to the $file_magic_cmd with a given extended regex.
6070# If you have 'file' or equivalent on your system and you're not sure
6071# whether 'pass_all' will *always* work, you probably want this one.
6072
6073case $host_os in
6074aix[4-9]*)
6075  lt_cv_deplibs_check_method=pass_all
6076  ;;
6077
6078beos*)
6079  lt_cv_deplibs_check_method=pass_all
6080  ;;
6081
6082bsdi[45]*)
6083  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6084  lt_cv_file_magic_cmd='/usr/bin/file -L'
6085  lt_cv_file_magic_test_file=/shlib/libc.so
6086  ;;
6087
6088cygwin*)
6089  # func_win32_libid is a shell function defined in ltmain.sh
6090  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6091  lt_cv_file_magic_cmd='func_win32_libid'
6092  ;;
6093
6094mingw* | pw32*)
6095  # Base MSYS/MinGW do not provide the 'file' command needed by
6096  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6097  # unless we find 'file', for example because we are cross-compiling.
6098  if ( file / ) >/dev/null 2>&1; then
6099    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6100    lt_cv_file_magic_cmd='func_win32_libid'
6101  else
6102    # Keep this pattern in sync with the one in func_win32_libid.
6103    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6104    lt_cv_file_magic_cmd='$OBJDUMP -f'
6105  fi
6106  ;;
6107
6108cegcc*)
6109  # use the weaker test based on 'objdump'. See mingw*.
6110  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6111  lt_cv_file_magic_cmd='$OBJDUMP -f'
6112  ;;
6113
6114darwin* | rhapsody*)
6115  lt_cv_deplibs_check_method=pass_all
6116  ;;
6117
6118freebsd* | dragonfly*)
6119  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6120    case $host_cpu in
6121    i*86 )
6122      # Not sure whether the presence of OpenBSD here was a mistake.
6123      # Let's accept both of them until this is cleared up.
6124      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6125      lt_cv_file_magic_cmd=/usr/bin/file
6126      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6127      ;;
6128    esac
6129  else
6130    lt_cv_deplibs_check_method=pass_all
6131  fi
6132  ;;
6133
6134haiku*)
6135  lt_cv_deplibs_check_method=pass_all
6136  ;;
6137
6138hpux10.20* | hpux11*)
6139  lt_cv_file_magic_cmd=/usr/bin/file
6140  case $host_cpu in
6141  ia64*)
6142    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6143    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6144    ;;
6145  hppa*64*)
6146    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]'
6147    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6148    ;;
6149  *)
6150    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6151    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6152    ;;
6153  esac
6154  ;;
6155
6156interix[3-9]*)
6157  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6158  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6159  ;;
6160
6161irix5* | irix6* | nonstopux*)
6162  case $LD in
6163  *-32|*"-32 ") libmagic=32-bit;;
6164  *-n32|*"-n32 ") libmagic=N32;;
6165  *-64|*"-64 ") libmagic=64-bit;;
6166  *) libmagic=never-match;;
6167  esac
6168  lt_cv_deplibs_check_method=pass_all
6169  ;;
6170
6171# This must be glibc/ELF.
6172linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6173  lt_cv_deplibs_check_method=pass_all
6174  ;;
6175
6176netbsd*)
6177  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6178    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6179  else
6180    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6181  fi
6182  ;;
6183
6184newos6*)
6185  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6186  lt_cv_file_magic_cmd=/usr/bin/file
6187  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6188  ;;
6189
6190*nto* | *qnx*)
6191  lt_cv_deplibs_check_method=pass_all
6192  ;;
6193
6194openbsd* | bitrig*)
6195  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6196    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6197  else
6198    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6199  fi
6200  ;;
6201
6202osf3* | osf4* | osf5*)
6203  lt_cv_deplibs_check_method=pass_all
6204  ;;
6205
6206rdos*)
6207  lt_cv_deplibs_check_method=pass_all
6208  ;;
6209
6210solaris*)
6211  lt_cv_deplibs_check_method=pass_all
6212  ;;
6213
6214sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6215  lt_cv_deplibs_check_method=pass_all
6216  ;;
6217
6218sysv4 | sysv4.3*)
6219  case $host_vendor in
6220  motorola)
6221    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]'
6222    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6223    ;;
6224  ncr)
6225    lt_cv_deplibs_check_method=pass_all
6226    ;;
6227  sequent)
6228    lt_cv_file_magic_cmd='/bin/file'
6229    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6230    ;;
6231  sni)
6232    lt_cv_file_magic_cmd='/bin/file'
6233    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6234    lt_cv_file_magic_test_file=/lib/libc.so
6235    ;;
6236  siemens)
6237    lt_cv_deplibs_check_method=pass_all
6238    ;;
6239  pc)
6240    lt_cv_deplibs_check_method=pass_all
6241    ;;
6242  esac
6243  ;;
6244
6245tpf*)
6246  lt_cv_deplibs_check_method=pass_all
6247  ;;
6248os2*)
6249  lt_cv_deplibs_check_method=pass_all
6250  ;;
6251esac
6252
6253fi
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6255$as_echo "$lt_cv_deplibs_check_method" >&6; }
6256
6257file_magic_glob=
6258want_nocaseglob=no
6259if test "$build" = "$host"; then
6260  case $host_os in
6261  mingw* | pw32*)
6262    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6263      want_nocaseglob=yes
6264    else
6265      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6266    fi
6267    ;;
6268  esac
6269fi
6270
6271file_magic_cmd=$lt_cv_file_magic_cmd
6272deplibs_check_method=$lt_cv_deplibs_check_method
6273test -z "$deplibs_check_method" && deplibs_check_method=unknown
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296if test -n "$ac_tool_prefix"; then
6297  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6298set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; }
6301if ${ac_cv_prog_DLLTOOL+:} false; then :
6302  $as_echo_n "(cached) " >&6
6303else
6304  if test -n "$DLLTOOL"; then
6305  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6306else
6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310  IFS=$as_save_IFS
6311  test -z "$as_dir" && as_dir=.
6312    for ac_exec_ext in '' $ac_executable_extensions; do
6313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316    break 2
6317  fi
6318done
6319  done
6320IFS=$as_save_IFS
6321
6322fi
6323fi
6324DLLTOOL=$ac_cv_prog_DLLTOOL
6325if test -n "$DLLTOOL"; then
6326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6327$as_echo "$DLLTOOL" >&6; }
6328else
6329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330$as_echo "no" >&6; }
6331fi
6332
6333
6334fi
6335if test -z "$ac_cv_prog_DLLTOOL"; then
6336  ac_ct_DLLTOOL=$DLLTOOL
6337  # Extract the first word of "dlltool", so it can be a program name with args.
6338set dummy dlltool; ac_word=$2
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340$as_echo_n "checking for $ac_word... " >&6; }
6341if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344  if test -n "$ac_ct_DLLTOOL"; then
6345  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350  IFS=$as_save_IFS
6351  test -z "$as_dir" && as_dir=.
6352    for ac_exec_ext in '' $ac_executable_extensions; do
6353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356    break 2
6357  fi
6358done
6359  done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6365if test -n "$ac_ct_DLLTOOL"; then
6366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6367$as_echo "$ac_ct_DLLTOOL" >&6; }
6368else
6369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370$as_echo "no" >&6; }
6371fi
6372
6373  if test "x$ac_ct_DLLTOOL" = x; then
6374    DLLTOOL="false"
6375  else
6376    case $cross_compiling:$ac_tool_warned in
6377yes:)
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380ac_tool_warned=yes ;;
6381esac
6382    DLLTOOL=$ac_ct_DLLTOOL
6383  fi
6384else
6385  DLLTOOL="$ac_cv_prog_DLLTOOL"
6386fi
6387
6388test -z "$DLLTOOL" && DLLTOOL=dlltool
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6400$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6401if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6402  $as_echo_n "(cached) " >&6
6403else
6404  lt_cv_sharedlib_from_linklib_cmd='unknown'
6405
6406case $host_os in
6407cygwin* | mingw* | pw32* | cegcc*)
6408  # two different shell functions defined in ltmain.sh;
6409  # decide which one to use based on capabilities of $DLLTOOL
6410  case `$DLLTOOL --help 2>&1` in
6411  *--identify-strict*)
6412    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6413    ;;
6414  *)
6415    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6416    ;;
6417  esac
6418  ;;
6419*)
6420  # fallback: assume linklib IS sharedlib
6421  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6422  ;;
6423esac
6424
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6427$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6428sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6429test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6430
6431
6432
6433
6434
6435
6436
6437if test -n "$ac_tool_prefix"; then
6438  for ac_prog in ar
6439  do
6440    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6441set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443$as_echo_n "checking for $ac_word... " >&6; }
6444if ${ac_cv_prog_AR+:} false; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447  if test -n "$AR"; then
6448  ac_cv_prog_AR="$AR" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453  IFS=$as_save_IFS
6454  test -z "$as_dir" && as_dir=.
6455    for ac_exec_ext in '' $ac_executable_extensions; do
6456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459    break 2
6460  fi
6461done
6462  done
6463IFS=$as_save_IFS
6464
6465fi
6466fi
6467AR=$ac_cv_prog_AR
6468if test -n "$AR"; then
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6470$as_echo "$AR" >&6; }
6471else
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473$as_echo "no" >&6; }
6474fi
6475
6476
6477    test -n "$AR" && break
6478  done
6479fi
6480if test -z "$AR"; then
6481  ac_ct_AR=$AR
6482  for ac_prog in ar
6483do
6484  # Extract the first word of "$ac_prog", so it can be a program name with args.
6485set dummy $ac_prog; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if ${ac_cv_prog_ac_ct_AR+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  if test -n "$ac_ct_AR"; then
6492  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499    for ac_exec_ext in '' $ac_executable_extensions; do
6500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501    ac_cv_prog_ac_ct_AR="$ac_prog"
6502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506  done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511ac_ct_AR=$ac_cv_prog_ac_ct_AR
6512if test -n "$ac_ct_AR"; then
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6514$as_echo "$ac_ct_AR" >&6; }
6515else
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520
6521  test -n "$ac_ct_AR" && break
6522done
6523
6524  if test "x$ac_ct_AR" = x; then
6525    AR="false"
6526  else
6527    case $cross_compiling:$ac_tool_warned in
6528yes:)
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531ac_tool_warned=yes ;;
6532esac
6533    AR=$ac_ct_AR
6534  fi
6535fi
6536
6537: ${AR=ar}
6538: ${AR_FLAGS=cru}
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6551$as_echo_n "checking for archiver @FILE support... " >&6; }
6552if ${lt_cv_ar_at_file+:} false; then :
6553  $as_echo_n "(cached) " >&6
6554else
6555  lt_cv_ar_at_file=no
6556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h.  */
6558
6559int
6560main ()
6561{
6562
6563  ;
6564  return 0;
6565}
6566_ACEOF
6567if ac_fn_c_try_compile "$LINENO"; then :
6568  echo conftest.$ac_objext > conftest.lst
6569      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6570      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6571  (eval $lt_ar_try) 2>&5
6572  ac_status=$?
6573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574  test $ac_status = 0; }
6575      if test 0 -eq "$ac_status"; then
6576	# Ensure the archiver fails upon bogus file names.
6577	rm -f conftest.$ac_objext libconftest.a
6578	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6579  (eval $lt_ar_try) 2>&5
6580  ac_status=$?
6581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6582  test $ac_status = 0; }
6583	if test 0 -ne "$ac_status"; then
6584          lt_cv_ar_at_file=@
6585        fi
6586      fi
6587      rm -f conftest.* libconftest.a
6588
6589fi
6590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591
6592fi
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6594$as_echo "$lt_cv_ar_at_file" >&6; }
6595
6596if test no = "$lt_cv_ar_at_file"; then
6597  archiver_list_spec=
6598else
6599  archiver_list_spec=$lt_cv_ar_at_file
6600fi
6601
6602
6603
6604
6605
6606
6607
6608if test -n "$ac_tool_prefix"; then
6609  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6610set dummy ${ac_tool_prefix}strip; ac_word=$2
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612$as_echo_n "checking for $ac_word... " >&6; }
6613if ${ac_cv_prog_STRIP+:} false; then :
6614  $as_echo_n "(cached) " >&6
6615else
6616  if test -n "$STRIP"; then
6617  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6618else
6619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622  IFS=$as_save_IFS
6623  test -z "$as_dir" && as_dir=.
6624    for ac_exec_ext in '' $ac_executable_extensions; do
6625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628    break 2
6629  fi
6630done
6631  done
6632IFS=$as_save_IFS
6633
6634fi
6635fi
6636STRIP=$ac_cv_prog_STRIP
6637if test -n "$STRIP"; then
6638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6639$as_echo "$STRIP" >&6; }
6640else
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642$as_echo "no" >&6; }
6643fi
6644
6645
6646fi
6647if test -z "$ac_cv_prog_STRIP"; then
6648  ac_ct_STRIP=$STRIP
6649  # Extract the first word of "strip", so it can be a program name with args.
6650set dummy strip; ac_word=$2
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652$as_echo_n "checking for $ac_word... " >&6; }
6653if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6654  $as_echo_n "(cached) " >&6
6655else
6656  if test -n "$ac_ct_STRIP"; then
6657  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6658else
6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  test -z "$as_dir" && as_dir=.
6664    for ac_exec_ext in '' $ac_executable_extensions; do
6665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666    ac_cv_prog_ac_ct_STRIP="strip"
6667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668    break 2
6669  fi
6670done
6671  done
6672IFS=$as_save_IFS
6673
6674fi
6675fi
6676ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6677if test -n "$ac_ct_STRIP"; then
6678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6679$as_echo "$ac_ct_STRIP" >&6; }
6680else
6681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682$as_echo "no" >&6; }
6683fi
6684
6685  if test "x$ac_ct_STRIP" = x; then
6686    STRIP=":"
6687  else
6688    case $cross_compiling:$ac_tool_warned in
6689yes:)
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692ac_tool_warned=yes ;;
6693esac
6694    STRIP=$ac_ct_STRIP
6695  fi
6696else
6697  STRIP="$ac_cv_prog_STRIP"
6698fi
6699
6700test -z "$STRIP" && STRIP=:
6701
6702
6703
6704
6705
6706
6707if test -n "$ac_tool_prefix"; then
6708  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6709set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711$as_echo_n "checking for $ac_word... " >&6; }
6712if ${ac_cv_prog_RANLIB+:} false; then :
6713  $as_echo_n "(cached) " >&6
6714else
6715  if test -n "$RANLIB"; then
6716  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6717else
6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721  IFS=$as_save_IFS
6722  test -z "$as_dir" && as_dir=.
6723    for ac_exec_ext in '' $ac_executable_extensions; do
6724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727    break 2
6728  fi
6729done
6730  done
6731IFS=$as_save_IFS
6732
6733fi
6734fi
6735RANLIB=$ac_cv_prog_RANLIB
6736if test -n "$RANLIB"; then
6737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6738$as_echo "$RANLIB" >&6; }
6739else
6740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741$as_echo "no" >&6; }
6742fi
6743
6744
6745fi
6746if test -z "$ac_cv_prog_RANLIB"; then
6747  ac_ct_RANLIB=$RANLIB
6748  # Extract the first word of "ranlib", so it can be a program name with args.
6749set dummy ranlib; ac_word=$2
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751$as_echo_n "checking for $ac_word... " >&6; }
6752if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6753  $as_echo_n "(cached) " >&6
6754else
6755  if test -n "$ac_ct_RANLIB"; then
6756  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6757else
6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761  IFS=$as_save_IFS
6762  test -z "$as_dir" && as_dir=.
6763    for ac_exec_ext in '' $ac_executable_extensions; do
6764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765    ac_cv_prog_ac_ct_RANLIB="ranlib"
6766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767    break 2
6768  fi
6769done
6770  done
6771IFS=$as_save_IFS
6772
6773fi
6774fi
6775ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6776if test -n "$ac_ct_RANLIB"; then
6777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6778$as_echo "$ac_ct_RANLIB" >&6; }
6779else
6780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781$as_echo "no" >&6; }
6782fi
6783
6784  if test "x$ac_ct_RANLIB" = x; then
6785    RANLIB=":"
6786  else
6787    case $cross_compiling:$ac_tool_warned in
6788yes:)
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791ac_tool_warned=yes ;;
6792esac
6793    RANLIB=$ac_ct_RANLIB
6794  fi
6795else
6796  RANLIB="$ac_cv_prog_RANLIB"
6797fi
6798
6799test -z "$RANLIB" && RANLIB=:
6800
6801
6802
6803
6804
6805
6806# Determine commands to create old-style static archives.
6807old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6808old_postinstall_cmds='chmod 644 $oldlib'
6809old_postuninstall_cmds=
6810
6811if test -n "$RANLIB"; then
6812  case $host_os in
6813  bitrig* | openbsd*)
6814    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6815    ;;
6816  *)
6817    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6818    ;;
6819  esac
6820  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6821fi
6822
6823case $host_os in
6824  darwin*)
6825    lock_old_archive_extraction=yes ;;
6826  *)
6827    lock_old_archive_extraction=no ;;
6828esac
6829
6830
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# If no C compiler was specified, use CC.
6869LTCC=${LTCC-"$CC"}
6870
6871# If no C compiler flags were specified, use CFLAGS.
6872LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6873
6874# Allow CC to be a program name with arguments.
6875compiler=$CC
6876
6877
6878# Check for command to grab the raw symbol name followed by C symbol from nm.
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6880$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6881if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6882  $as_echo_n "(cached) " >&6
6883else
6884
6885# These are sane defaults that work on at least a few old systems.
6886# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6887
6888# Character class describing NM global symbol codes.
6889symcode='[BCDEGRST]'
6890
6891# Regexp to match symbols that can be accessed directly from C.
6892sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6893
6894# Define system-specific variables.
6895case $host_os in
6896aix*)
6897  symcode='[BCDT]'
6898  ;;
6899cygwin* | mingw* | pw32* | cegcc*)
6900  symcode='[ABCDGISTW]'
6901  ;;
6902hpux*)
6903  if test ia64 = "$host_cpu"; then
6904    symcode='[ABCDEGRST]'
6905  fi
6906  ;;
6907irix* | nonstopux*)
6908  symcode='[BCDEGRST]'
6909  ;;
6910osf*)
6911  symcode='[BCDEGQRST]'
6912  ;;
6913solaris*)
6914  symcode='[BDRT]'
6915  ;;
6916sco3.2v5*)
6917  symcode='[DT]'
6918  ;;
6919sysv4.2uw2*)
6920  symcode='[DT]'
6921  ;;
6922sysv5* | sco5v6* | unixware* | OpenUNIX*)
6923  symcode='[ABDT]'
6924  ;;
6925sysv4)
6926  symcode='[DFNSTU]'
6927  ;;
6928esac
6929
6930# If we're using GNU nm, then use its standard symbol codes.
6931case `$NM -V 2>&1` in
6932*GNU* | *'with BFD'*)
6933  symcode='[ABCDGIRSTW]' ;;
6934esac
6935
6936if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6937  # Gets list of data symbols to import.
6938  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6939  # Adjust the below global symbol transforms to fixup imported variables.
6940  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6941  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6942  lt_c_name_lib_hook="\
6943  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6944  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6945else
6946  # Disable hooks by default.
6947  lt_cv_sys_global_symbol_to_import=
6948  lt_cdecl_hook=
6949  lt_c_name_hook=
6950  lt_c_name_lib_hook=
6951fi
6952
6953# Transform an extracted symbol line into a proper C declaration.
6954# Some systems (esp. on ia64) link data and code symbols differently,
6955# so use this general approach.
6956lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6957$lt_cdecl_hook\
6958" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6959" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6960
6961# Transform an extracted symbol line into symbol name and symbol address
6962lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6963$lt_c_name_hook\
6964" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6965" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6966
6967# Transform an extracted symbol line into symbol name with lib prefix and
6968# symbol address.
6969lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6970$lt_c_name_lib_hook\
6971" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6972" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6973" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6974
6975# Handle CRLF in mingw tool chain
6976opt_cr=
6977case $build_os in
6978mingw*)
6979  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6980  ;;
6981esac
6982
6983# Try without a prefix underscore, then with it.
6984for ac_symprfx in "" "_"; do
6985
6986  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6987  symxfrm="\\1 $ac_symprfx\\2 \\2"
6988
6989  # Write the raw and C identifiers.
6990  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6991    # Fake it for dumpbin and say T for any non-static function,
6992    # D for any global variable and I for any imported variable.
6993    # Also find C++ and __fastcall symbols from MSVC++,
6994    # which start with @ or ?.
6995    lt_cv_sys_global_symbol_pipe="$AWK '"\
6996"     {last_section=section; section=\$ 3};"\
6997"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6998"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6999"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7000"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7001"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7002"     \$ 0!~/External *\|/{next};"\
7003"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7004"     {if(hide[section]) next};"\
7005"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7006"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7007"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7008"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7009"     ' prfx=^$ac_symprfx"
7010  else
7011    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7012  fi
7013  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7014
7015  # Check to see that the pipe works correctly.
7016  pipe_works=no
7017
7018  rm -f conftest*
7019  cat > conftest.$ac_ext <<_LT_EOF
7020#ifdef __cplusplus
7021extern "C" {
7022#endif
7023char nm_test_var;
7024void nm_test_func(void);
7025void nm_test_func(void){}
7026#ifdef __cplusplus
7027}
7028#endif
7029int main(){nm_test_var='a';nm_test_func();return(0);}
7030_LT_EOF
7031
7032  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7033  (eval $ac_compile) 2>&5
7034  ac_status=$?
7035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036  test $ac_status = 0; }; then
7037    # Now try to grab the symbols.
7038    nlist=conftest.nm
7039    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7040  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7041  ac_status=$?
7042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043  test $ac_status = 0; } && test -s "$nlist"; then
7044      # Try sorting and uniquifying the output.
7045      if sort "$nlist" | uniq > "$nlist"T; then
7046	mv -f "$nlist"T "$nlist"
7047      else
7048	rm -f "$nlist"T
7049      fi
7050
7051      # Make sure that we snagged all the symbols we need.
7052      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7053	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7054	  cat <<_LT_EOF > conftest.$ac_ext
7055/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7056#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7057/* DATA imports from DLLs on WIN32 can't be const, because runtime
7058   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7059# define LT_DLSYM_CONST
7060#elif defined __osf__
7061/* This system does not cope well with relocations in const data.  */
7062# define LT_DLSYM_CONST
7063#else
7064# define LT_DLSYM_CONST const
7065#endif
7066
7067#ifdef __cplusplus
7068extern "C" {
7069#endif
7070
7071_LT_EOF
7072	  # Now generate the symbol file.
7073	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7074
7075	  cat <<_LT_EOF >> conftest.$ac_ext
7076
7077/* The mapping between symbol names and symbols.  */
7078LT_DLSYM_CONST struct {
7079  const char *name;
7080  void       *address;
7081}
7082lt__PROGRAM__LTX_preloaded_symbols[] =
7083{
7084  { "@PROGRAM@", (void *) 0 },
7085_LT_EOF
7086	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7087	  cat <<\_LT_EOF >> conftest.$ac_ext
7088  {0, (void *) 0}
7089};
7090
7091/* This works around a problem in FreeBSD linker */
7092#ifdef FREEBSD_WORKAROUND
7093static const void *lt_preloaded_setup() {
7094  return lt__PROGRAM__LTX_preloaded_symbols;
7095}
7096#endif
7097
7098#ifdef __cplusplus
7099}
7100#endif
7101_LT_EOF
7102	  # Now try linking the two files.
7103	  mv conftest.$ac_objext conftstm.$ac_objext
7104	  lt_globsym_save_LIBS=$LIBS
7105	  lt_globsym_save_CFLAGS=$CFLAGS
7106	  LIBS=conftstm.$ac_objext
7107	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7108	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7109  (eval $ac_link) 2>&5
7110  ac_status=$?
7111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7113	    pipe_works=yes
7114	  fi
7115	  LIBS=$lt_globsym_save_LIBS
7116	  CFLAGS=$lt_globsym_save_CFLAGS
7117	else
7118	  echo "cannot find nm_test_func in $nlist" >&5
7119	fi
7120      else
7121	echo "cannot find nm_test_var in $nlist" >&5
7122      fi
7123    else
7124      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7125    fi
7126  else
7127    echo "$progname: failed program was:" >&5
7128    cat conftest.$ac_ext >&5
7129  fi
7130  rm -rf conftest* conftst*
7131
7132  # Do not use the global_symbol_pipe unless it works.
7133  if test yes = "$pipe_works"; then
7134    break
7135  else
7136    lt_cv_sys_global_symbol_pipe=
7137  fi
7138done
7139
7140fi
7141
7142if test -z "$lt_cv_sys_global_symbol_pipe"; then
7143  lt_cv_sys_global_symbol_to_cdecl=
7144fi
7145if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7147$as_echo "failed" >&6; }
7148else
7149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7150$as_echo "ok" >&6; }
7151fi
7152
7153# Response file support.
7154if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7155  nm_file_list_spec='@'
7156elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7157  nm_file_list_spec='@'
7158fi
7159
7160
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7197$as_echo_n "checking for sysroot... " >&6; }
7198
7199# Check whether --with-sysroot was given.
7200if test "${with_sysroot+set}" = set; then :
7201  withval=$with_sysroot;
7202else
7203  with_sysroot=no
7204fi
7205
7206
7207lt_sysroot=
7208case $with_sysroot in #(
7209 yes)
7210   if test yes = "$GCC"; then
7211     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7212   fi
7213   ;; #(
7214 /*)
7215   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7216   ;; #(
7217 no|'')
7218   ;; #(
7219 *)
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7221$as_echo "$with_sysroot" >&6; }
7222   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7223   ;;
7224esac
7225
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7227$as_echo "${lt_sysroot:-no}" >&6; }
7228
7229
7230
7231
7232
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7234$as_echo_n "checking for a working dd... " >&6; }
7235if ${ac_cv_path_lt_DD+:} false; then :
7236  $as_echo_n "(cached) " >&6
7237else
7238  printf 0123456789abcdef0123456789abcdef >conftest.i
7239cat conftest.i conftest.i >conftest2.i
7240: ${lt_DD:=$DD}
7241if test -z "$lt_DD"; then
7242  ac_path_lt_DD_found=false
7243  # Loop through the user's path and test for each of PROGNAME-LIST
7244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247  IFS=$as_save_IFS
7248  test -z "$as_dir" && as_dir=.
7249    for ac_prog in dd; do
7250    for ac_exec_ext in '' $ac_executable_extensions; do
7251      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7252      as_fn_executable_p "$ac_path_lt_DD" || continue
7253if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7254  cmp -s conftest.i conftest.out \
7255  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7256fi
7257      $ac_path_lt_DD_found && break 3
7258    done
7259  done
7260  done
7261IFS=$as_save_IFS
7262  if test -z "$ac_cv_path_lt_DD"; then
7263    :
7264  fi
7265else
7266  ac_cv_path_lt_DD=$lt_DD
7267fi
7268
7269rm -f conftest.i conftest2.i conftest.out
7270fi
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7272$as_echo "$ac_cv_path_lt_DD" >&6; }
7273
7274
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7276$as_echo_n "checking how to truncate binary pipes... " >&6; }
7277if ${lt_cv_truncate_bin+:} false; then :
7278  $as_echo_n "(cached) " >&6
7279else
7280  printf 0123456789abcdef0123456789abcdef >conftest.i
7281cat conftest.i conftest.i >conftest2.i
7282lt_cv_truncate_bin=
7283if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7284  cmp -s conftest.i conftest.out \
7285  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7286fi
7287rm -f conftest.i conftest2.i conftest.out
7288test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7289fi
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7291$as_echo "$lt_cv_truncate_bin" >&6; }
7292
7293
7294
7295
7296
7297
7298
7299# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7300func_cc_basename ()
7301{
7302    for cc_temp in $*""; do
7303      case $cc_temp in
7304        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7305        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7306        \-*) ;;
7307        *) break;;
7308      esac
7309    done
7310    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7311}
7312
7313# Check whether --enable-libtool-lock was given.
7314if test "${enable_libtool_lock+set}" = set; then :
7315  enableval=$enable_libtool_lock;
7316fi
7317
7318test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7319
7320# Some flags need to be propagated to the compiler or linker for good
7321# libtool support.
7322case $host in
7323ia64-*-hpux*)
7324  # Find out what ABI is being produced by ac_compile, and set mode
7325  # options accordingly.
7326  echo 'int i;' > conftest.$ac_ext
7327  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7328  (eval $ac_compile) 2>&5
7329  ac_status=$?
7330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331  test $ac_status = 0; }; then
7332    case `/usr/bin/file conftest.$ac_objext` in
7333      *ELF-32*)
7334	HPUX_IA64_MODE=32
7335	;;
7336      *ELF-64*)
7337	HPUX_IA64_MODE=64
7338	;;
7339    esac
7340  fi
7341  rm -rf conftest*
7342  ;;
7343*-*-irix6*)
7344  # Find out what ABI is being produced by ac_compile, and set linker
7345  # options accordingly.
7346  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7347  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7348  (eval $ac_compile) 2>&5
7349  ac_status=$?
7350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351  test $ac_status = 0; }; then
7352    if test yes = "$lt_cv_prog_gnu_ld"; then
7353      case `/usr/bin/file conftest.$ac_objext` in
7354	*32-bit*)
7355	  LD="${LD-ld} -melf32bsmip"
7356	  ;;
7357	*N32*)
7358	  LD="${LD-ld} -melf32bmipn32"
7359	  ;;
7360	*64-bit*)
7361	  LD="${LD-ld} -melf64bmip"
7362	;;
7363      esac
7364    else
7365      case `/usr/bin/file conftest.$ac_objext` in
7366	*32-bit*)
7367	  LD="${LD-ld} -32"
7368	  ;;
7369	*N32*)
7370	  LD="${LD-ld} -n32"
7371	  ;;
7372	*64-bit*)
7373	  LD="${LD-ld} -64"
7374	  ;;
7375      esac
7376    fi
7377  fi
7378  rm -rf conftest*
7379  ;;
7380
7381mips64*-*linux*)
7382  # Find out what ABI is being produced by ac_compile, and set linker
7383  # options accordingly.
7384  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7385  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7386  (eval $ac_compile) 2>&5
7387  ac_status=$?
7388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7389  test $ac_status = 0; }; then
7390    emul=elf
7391    case `/usr/bin/file conftest.$ac_objext` in
7392      *32-bit*)
7393	emul="${emul}32"
7394	;;
7395      *64-bit*)
7396	emul="${emul}64"
7397	;;
7398    esac
7399    case `/usr/bin/file conftest.$ac_objext` in
7400      *MSB*)
7401	emul="${emul}btsmip"
7402	;;
7403      *LSB*)
7404	emul="${emul}ltsmip"
7405	;;
7406    esac
7407    case `/usr/bin/file conftest.$ac_objext` in
7408      *N32*)
7409	emul="${emul}n32"
7410	;;
7411    esac
7412    LD="${LD-ld} -m $emul"
7413  fi
7414  rm -rf conftest*
7415  ;;
7416
7417x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7418s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7419  # Find out what ABI is being produced by ac_compile, and set linker
7420  # options accordingly.  Note that the listed cases only cover the
7421  # situations where additional linker options are needed (such as when
7422  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7423  # vice versa); the common cases where no linker options are needed do
7424  # not appear in the list.
7425  echo 'int i;' > conftest.$ac_ext
7426  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7427  (eval $ac_compile) 2>&5
7428  ac_status=$?
7429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7430  test $ac_status = 0; }; then
7431    case `/usr/bin/file conftest.o` in
7432      *32-bit*)
7433	case $host in
7434	  x86_64-*kfreebsd*-gnu)
7435	    LD="${LD-ld} -m elf_i386_fbsd"
7436	    ;;
7437	  x86_64-*linux*)
7438	    case `/usr/bin/file conftest.o` in
7439	      *x86-64*)
7440		LD="${LD-ld} -m elf32_x86_64"
7441		;;
7442	      *)
7443		LD="${LD-ld} -m elf_i386"
7444		;;
7445	    esac
7446	    ;;
7447	  powerpc64le-*linux*)
7448	    LD="${LD-ld} -m elf32lppclinux"
7449	    ;;
7450	  powerpc64-*linux*)
7451	    LD="${LD-ld} -m elf32ppclinux"
7452	    ;;
7453	  s390x-*linux*)
7454	    LD="${LD-ld} -m elf_s390"
7455	    ;;
7456	  sparc64-*linux*)
7457	    LD="${LD-ld} -m elf32_sparc"
7458	    ;;
7459	esac
7460	;;
7461      *64-bit*)
7462	case $host in
7463	  x86_64-*kfreebsd*-gnu)
7464	    LD="${LD-ld} -m elf_x86_64_fbsd"
7465	    ;;
7466	  x86_64-*linux*)
7467	    LD="${LD-ld} -m elf_x86_64"
7468	    ;;
7469	  powerpcle-*linux*)
7470	    LD="${LD-ld} -m elf64lppc"
7471	    ;;
7472	  powerpc-*linux*)
7473	    LD="${LD-ld} -m elf64ppc"
7474	    ;;
7475	  s390*-*linux*|s390*-*tpf*)
7476	    LD="${LD-ld} -m elf64_s390"
7477	    ;;
7478	  sparc*-*linux*)
7479	    LD="${LD-ld} -m elf64_sparc"
7480	    ;;
7481	esac
7482	;;
7483    esac
7484  fi
7485  rm -rf conftest*
7486  ;;
7487
7488*-*-sco3.2v5*)
7489  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7490  SAVE_CFLAGS=$CFLAGS
7491  CFLAGS="$CFLAGS -belf"
7492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7493$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7494if ${lt_cv_cc_needs_belf+:} false; then :
7495  $as_echo_n "(cached) " >&6
7496else
7497  ac_ext=c
7498ac_cpp='$CPP $CPPFLAGS'
7499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502
7503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504/* end confdefs.h.  */
7505
7506int
7507main ()
7508{
7509
7510  ;
7511  return 0;
7512}
7513_ACEOF
7514if ac_fn_c_try_link "$LINENO"; then :
7515  lt_cv_cc_needs_belf=yes
7516else
7517  lt_cv_cc_needs_belf=no
7518fi
7519rm -f core conftest.err conftest.$ac_objext \
7520    conftest$ac_exeext conftest.$ac_ext
7521     ac_ext=c
7522ac_cpp='$CPP $CPPFLAGS'
7523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
7527fi
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7529$as_echo "$lt_cv_cc_needs_belf" >&6; }
7530  if test yes != "$lt_cv_cc_needs_belf"; then
7531    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7532    CFLAGS=$SAVE_CFLAGS
7533  fi
7534  ;;
7535*-*solaris*)
7536  # Find out what ABI is being produced by ac_compile, and set linker
7537  # options accordingly.
7538  echo 'int i;' > conftest.$ac_ext
7539  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540  (eval $ac_compile) 2>&5
7541  ac_status=$?
7542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543  test $ac_status = 0; }; then
7544    case `/usr/bin/file conftest.o` in
7545    *64-bit*)
7546      case $lt_cv_prog_gnu_ld in
7547      yes*)
7548        case $host in
7549        i?86-*-solaris*|x86_64-*-solaris*)
7550          LD="${LD-ld} -m elf_x86_64"
7551          ;;
7552        sparc*-*-solaris*)
7553          LD="${LD-ld} -m elf64_sparc"
7554          ;;
7555        esac
7556        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7557        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7558          LD=${LD-ld}_sol2
7559        fi
7560        ;;
7561      *)
7562	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7563	  LD="${LD-ld} -64"
7564	fi
7565	;;
7566      esac
7567      ;;
7568    esac
7569  fi
7570  rm -rf conftest*
7571  ;;
7572esac
7573
7574need_locks=$enable_libtool_lock
7575
7576if test -n "$ac_tool_prefix"; then
7577  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7578set dummy ${ac_tool_prefix}mt; ac_word=$2
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580$as_echo_n "checking for $ac_word... " >&6; }
7581if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584  if test -n "$MANIFEST_TOOL"; then
7585  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7586else
7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590  IFS=$as_save_IFS
7591  test -z "$as_dir" && as_dir=.
7592    for ac_exec_ext in '' $ac_executable_extensions; do
7593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596    break 2
7597  fi
7598done
7599  done
7600IFS=$as_save_IFS
7601
7602fi
7603fi
7604MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7605if test -n "$MANIFEST_TOOL"; then
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7607$as_echo "$MANIFEST_TOOL" >&6; }
7608else
7609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610$as_echo "no" >&6; }
7611fi
7612
7613
7614fi
7615if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7616  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7617  # Extract the first word of "mt", so it can be a program name with args.
7618set dummy mt; ac_word=$2
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620$as_echo_n "checking for $ac_word... " >&6; }
7621if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7622  $as_echo_n "(cached) " >&6
7623else
7624  if test -n "$ac_ct_MANIFEST_TOOL"; then
7625  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7626else
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630  IFS=$as_save_IFS
7631  test -z "$as_dir" && as_dir=.
7632    for ac_exec_ext in '' $ac_executable_extensions; do
7633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636    break 2
7637  fi
7638done
7639  done
7640IFS=$as_save_IFS
7641
7642fi
7643fi
7644ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7645if test -n "$ac_ct_MANIFEST_TOOL"; then
7646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7647$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7648else
7649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
7652
7653  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7654    MANIFEST_TOOL=":"
7655  else
7656    case $cross_compiling:$ac_tool_warned in
7657yes:)
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7660ac_tool_warned=yes ;;
7661esac
7662    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7663  fi
7664else
7665  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7666fi
7667
7668test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7670$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7671if ${lt_cv_path_mainfest_tool+:} false; then :
7672  $as_echo_n "(cached) " >&6
7673else
7674  lt_cv_path_mainfest_tool=no
7675  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7676  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7677  cat conftest.err >&5
7678  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7679    lt_cv_path_mainfest_tool=yes
7680  fi
7681  rm -f conftest*
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7684$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7685if test yes != "$lt_cv_path_mainfest_tool"; then
7686  MANIFEST_TOOL=:
7687fi
7688
7689
7690
7691
7692
7693
7694  case $host_os in
7695    rhapsody* | darwin*)
7696    if test -n "$ac_tool_prefix"; then
7697  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7698set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700$as_echo_n "checking for $ac_word... " >&6; }
7701if ${ac_cv_prog_DSYMUTIL+:} false; then :
7702  $as_echo_n "(cached) " >&6
7703else
7704  if test -n "$DSYMUTIL"; then
7705  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710  IFS=$as_save_IFS
7711  test -z "$as_dir" && as_dir=.
7712    for ac_exec_ext in '' $ac_executable_extensions; do
7713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716    break 2
7717  fi
7718done
7719  done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724DSYMUTIL=$ac_cv_prog_DSYMUTIL
7725if test -n "$DSYMUTIL"; then
7726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7727$as_echo "$DSYMUTIL" >&6; }
7728else
7729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733
7734fi
7735if test -z "$ac_cv_prog_DSYMUTIL"; then
7736  ac_ct_DSYMUTIL=$DSYMUTIL
7737  # Extract the first word of "dsymutil", so it can be a program name with args.
7738set dummy dsymutil; ac_word=$2
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740$as_echo_n "checking for $ac_word... " >&6; }
7741if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7742  $as_echo_n "(cached) " >&6
7743else
7744  if test -n "$ac_ct_DSYMUTIL"; then
7745  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750  IFS=$as_save_IFS
7751  test -z "$as_dir" && as_dir=.
7752    for ac_exec_ext in '' $ac_executable_extensions; do
7753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756    break 2
7757  fi
7758done
7759  done
7760IFS=$as_save_IFS
7761
7762fi
7763fi
7764ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7765if test -n "$ac_ct_DSYMUTIL"; then
7766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7767$as_echo "$ac_ct_DSYMUTIL" >&6; }
7768else
7769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
7771fi
7772
7773  if test "x$ac_ct_DSYMUTIL" = x; then
7774    DSYMUTIL=":"
7775  else
7776    case $cross_compiling:$ac_tool_warned in
7777yes:)
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7780ac_tool_warned=yes ;;
7781esac
7782    DSYMUTIL=$ac_ct_DSYMUTIL
7783  fi
7784else
7785  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7786fi
7787
7788    if test -n "$ac_tool_prefix"; then
7789  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7790set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792$as_echo_n "checking for $ac_word... " >&6; }
7793if ${ac_cv_prog_NMEDIT+:} false; then :
7794  $as_echo_n "(cached) " >&6
7795else
7796  if test -n "$NMEDIT"; then
7797  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7798else
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802  IFS=$as_save_IFS
7803  test -z "$as_dir" && as_dir=.
7804    for ac_exec_ext in '' $ac_executable_extensions; do
7805  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808    break 2
7809  fi
7810done
7811  done
7812IFS=$as_save_IFS
7813
7814fi
7815fi
7816NMEDIT=$ac_cv_prog_NMEDIT
7817if test -n "$NMEDIT"; then
7818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7819$as_echo "$NMEDIT" >&6; }
7820else
7821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
7823fi
7824
7825
7826fi
7827if test -z "$ac_cv_prog_NMEDIT"; then
7828  ac_ct_NMEDIT=$NMEDIT
7829  # Extract the first word of "nmedit", so it can be a program name with args.
7830set dummy nmedit; ac_word=$2
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832$as_echo_n "checking for $ac_word... " >&6; }
7833if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  if test -n "$ac_ct_NMEDIT"; then
7837  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842  IFS=$as_save_IFS
7843  test -z "$as_dir" && as_dir=.
7844    for ac_exec_ext in '' $ac_executable_extensions; do
7845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848    break 2
7849  fi
7850done
7851  done
7852IFS=$as_save_IFS
7853
7854fi
7855fi
7856ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7857if test -n "$ac_ct_NMEDIT"; then
7858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7859$as_echo "$ac_ct_NMEDIT" >&6; }
7860else
7861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863fi
7864
7865  if test "x$ac_ct_NMEDIT" = x; then
7866    NMEDIT=":"
7867  else
7868    case $cross_compiling:$ac_tool_warned in
7869yes:)
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872ac_tool_warned=yes ;;
7873esac
7874    NMEDIT=$ac_ct_NMEDIT
7875  fi
7876else
7877  NMEDIT="$ac_cv_prog_NMEDIT"
7878fi
7879
7880    if test -n "$ac_tool_prefix"; then
7881  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7882set dummy ${ac_tool_prefix}lipo; ac_word=$2
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884$as_echo_n "checking for $ac_word... " >&6; }
7885if ${ac_cv_prog_LIPO+:} false; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  if test -n "$LIPO"; then
7889  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894  IFS=$as_save_IFS
7895  test -z "$as_dir" && as_dir=.
7896    for ac_exec_ext in '' $ac_executable_extensions; do
7897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900    break 2
7901  fi
7902done
7903  done
7904IFS=$as_save_IFS
7905
7906fi
7907fi
7908LIPO=$ac_cv_prog_LIPO
7909if test -n "$LIPO"; then
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7911$as_echo "$LIPO" >&6; }
7912else
7913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915fi
7916
7917
7918fi
7919if test -z "$ac_cv_prog_LIPO"; then
7920  ac_ct_LIPO=$LIPO
7921  # Extract the first word of "lipo", so it can be a program name with args.
7922set dummy lipo; ac_word=$2
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924$as_echo_n "checking for $ac_word... " >&6; }
7925if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7926  $as_echo_n "(cached) " >&6
7927else
7928  if test -n "$ac_ct_LIPO"; then
7929  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7930else
7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934  IFS=$as_save_IFS
7935  test -z "$as_dir" && as_dir=.
7936    for ac_exec_ext in '' $ac_executable_extensions; do
7937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938    ac_cv_prog_ac_ct_LIPO="lipo"
7939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940    break 2
7941  fi
7942done
7943  done
7944IFS=$as_save_IFS
7945
7946fi
7947fi
7948ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7949if test -n "$ac_ct_LIPO"; then
7950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7951$as_echo "$ac_ct_LIPO" >&6; }
7952else
7953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954$as_echo "no" >&6; }
7955fi
7956
7957  if test "x$ac_ct_LIPO" = x; then
7958    LIPO=":"
7959  else
7960    case $cross_compiling:$ac_tool_warned in
7961yes:)
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964ac_tool_warned=yes ;;
7965esac
7966    LIPO=$ac_ct_LIPO
7967  fi
7968else
7969  LIPO="$ac_cv_prog_LIPO"
7970fi
7971
7972    if test -n "$ac_tool_prefix"; then
7973  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7974set dummy ${ac_tool_prefix}otool; ac_word=$2
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if ${ac_cv_prog_OTOOL+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  if test -n "$OTOOL"; then
7981  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7982else
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986  IFS=$as_save_IFS
7987  test -z "$as_dir" && as_dir=.
7988    for ac_exec_ext in '' $ac_executable_extensions; do
7989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992    break 2
7993  fi
7994done
7995  done
7996IFS=$as_save_IFS
7997
7998fi
7999fi
8000OTOOL=$ac_cv_prog_OTOOL
8001if test -n "$OTOOL"; then
8002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8003$as_echo "$OTOOL" >&6; }
8004else
8005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008
8009
8010fi
8011if test -z "$ac_cv_prog_OTOOL"; then
8012  ac_ct_OTOOL=$OTOOL
8013  # Extract the first word of "otool", so it can be a program name with args.
8014set dummy otool; ac_word=$2
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
8017if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8018  $as_echo_n "(cached) " >&6
8019else
8020  if test -n "$ac_ct_OTOOL"; then
8021  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8022else
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026  IFS=$as_save_IFS
8027  test -z "$as_dir" && as_dir=.
8028    for ac_exec_ext in '' $ac_executable_extensions; do
8029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030    ac_cv_prog_ac_ct_OTOOL="otool"
8031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032    break 2
8033  fi
8034done
8035  done
8036IFS=$as_save_IFS
8037
8038fi
8039fi
8040ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8041if test -n "$ac_ct_OTOOL"; then
8042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8043$as_echo "$ac_ct_OTOOL" >&6; }
8044else
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047fi
8048
8049  if test "x$ac_ct_OTOOL" = x; then
8050    OTOOL=":"
8051  else
8052    case $cross_compiling:$ac_tool_warned in
8053yes:)
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056ac_tool_warned=yes ;;
8057esac
8058    OTOOL=$ac_ct_OTOOL
8059  fi
8060else
8061  OTOOL="$ac_cv_prog_OTOOL"
8062fi
8063
8064    if test -n "$ac_tool_prefix"; then
8065  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8066set dummy ${ac_tool_prefix}otool64; ac_word=$2
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068$as_echo_n "checking for $ac_word... " >&6; }
8069if ${ac_cv_prog_OTOOL64+:} false; then :
8070  $as_echo_n "(cached) " >&6
8071else
8072  if test -n "$OTOOL64"; then
8073  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8074else
8075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078  IFS=$as_save_IFS
8079  test -z "$as_dir" && as_dir=.
8080    for ac_exec_ext in '' $ac_executable_extensions; do
8081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084    break 2
8085  fi
8086done
8087  done
8088IFS=$as_save_IFS
8089
8090fi
8091fi
8092OTOOL64=$ac_cv_prog_OTOOL64
8093if test -n "$OTOOL64"; then
8094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8095$as_echo "$OTOOL64" >&6; }
8096else
8097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098$as_echo "no" >&6; }
8099fi
8100
8101
8102fi
8103if test -z "$ac_cv_prog_OTOOL64"; then
8104  ac_ct_OTOOL64=$OTOOL64
8105  # Extract the first word of "otool64", so it can be a program name with args.
8106set dummy otool64; ac_word=$2
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108$as_echo_n "checking for $ac_word... " >&6; }
8109if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8110  $as_echo_n "(cached) " >&6
8111else
8112  if test -n "$ac_ct_OTOOL64"; then
8113  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8114else
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118  IFS=$as_save_IFS
8119  test -z "$as_dir" && as_dir=.
8120    for ac_exec_ext in '' $ac_executable_extensions; do
8121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122    ac_cv_prog_ac_ct_OTOOL64="otool64"
8123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124    break 2
8125  fi
8126done
8127  done
8128IFS=$as_save_IFS
8129
8130fi
8131fi
8132ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8133if test -n "$ac_ct_OTOOL64"; then
8134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8135$as_echo "$ac_ct_OTOOL64" >&6; }
8136else
8137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
8139fi
8140
8141  if test "x$ac_ct_OTOOL64" = x; then
8142    OTOOL64=":"
8143  else
8144    case $cross_compiling:$ac_tool_warned in
8145yes:)
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148ac_tool_warned=yes ;;
8149esac
8150    OTOOL64=$ac_ct_OTOOL64
8151  fi
8152else
8153  OTOOL64="$ac_cv_prog_OTOOL64"
8154fi
8155
8156
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    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8183$as_echo_n "checking for -single_module linker flag... " >&6; }
8184if ${lt_cv_apple_cc_single_mod+:} false; then :
8185  $as_echo_n "(cached) " >&6
8186else
8187  lt_cv_apple_cc_single_mod=no
8188      if test -z "$LT_MULTI_MODULE"; then
8189	# By default we will add the -single_module flag. You can override
8190	# by either setting the environment variable LT_MULTI_MODULE
8191	# non-empty at configure time, or by adding -multi_module to the
8192	# link flags.
8193	rm -rf libconftest.dylib*
8194	echo "int foo(void){return 1;}" > conftest.c
8195	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8196-dynamiclib -Wl,-single_module conftest.c" >&5
8197	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8198	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8199        _lt_result=$?
8200	# If there is a non-empty error log, and "single_module"
8201	# appears in it, assume the flag caused a linker warning
8202        if test -s conftest.err && $GREP single_module conftest.err; then
8203	  cat conftest.err >&5
8204	# Otherwise, if the output was created with a 0 exit code from
8205	# the compiler, it worked.
8206	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8207	  lt_cv_apple_cc_single_mod=yes
8208	else
8209	  cat conftest.err >&5
8210	fi
8211	rm -rf libconftest.dylib*
8212	rm -f conftest.*
8213      fi
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8216$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8217
8218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8219$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8220if ${lt_cv_ld_exported_symbols_list+:} false; then :
8221  $as_echo_n "(cached) " >&6
8222else
8223  lt_cv_ld_exported_symbols_list=no
8224      save_LDFLAGS=$LDFLAGS
8225      echo "_main" > conftest.sym
8226      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8227      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h.  */
8229
8230int
8231main ()
8232{
8233
8234  ;
8235  return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_link "$LINENO"; then :
8239  lt_cv_ld_exported_symbols_list=yes
8240else
8241  lt_cv_ld_exported_symbols_list=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext \
8244    conftest$ac_exeext conftest.$ac_ext
8245	LDFLAGS=$save_LDFLAGS
8246
8247fi
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8249$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8250
8251    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8252$as_echo_n "checking for -force_load linker flag... " >&6; }
8253if ${lt_cv_ld_force_load+:} false; then :
8254  $as_echo_n "(cached) " >&6
8255else
8256  lt_cv_ld_force_load=no
8257      cat > conftest.c << _LT_EOF
8258int forced_loaded() { return 2;}
8259_LT_EOF
8260      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8261      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8262      echo "$AR cru libconftest.a conftest.o" >&5
8263      $AR cru libconftest.a conftest.o 2>&5
8264      echo "$RANLIB libconftest.a" >&5
8265      $RANLIB libconftest.a 2>&5
8266      cat > conftest.c << _LT_EOF
8267int main() { return 0;}
8268_LT_EOF
8269      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8270      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8271      _lt_result=$?
8272      if test -s conftest.err && $GREP force_load conftest.err; then
8273	cat conftest.err >&5
8274      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8275	lt_cv_ld_force_load=yes
8276      else
8277	cat conftest.err >&5
8278      fi
8279        rm -f conftest.err libconftest.a conftest conftest.c
8280        rm -rf conftest.dSYM
8281
8282fi
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8284$as_echo "$lt_cv_ld_force_load" >&6; }
8285    case $host_os in
8286    rhapsody* | darwin1.[012])
8287      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8288    darwin1.*)
8289      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8290    darwin*) # darwin 5.x on
8291      # if running on 10.5 or later, the deployment target defaults
8292      # to the OS version, if on x86, and 10.4, the deployment
8293      # target defaults to 10.4. Don't you love it?
8294      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8295	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8296	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8297	10.[012][,.]*)
8298	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8299	10.*)
8300	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8301      esac
8302    ;;
8303  esac
8304    if test yes = "$lt_cv_apple_cc_single_mod"; then
8305      _lt_dar_single_mod='$single_module'
8306    fi
8307    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8308      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8309    else
8310      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8311    fi
8312    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8313      _lt_dsymutil='~$DSYMUTIL $lib || :'
8314    else
8315      _lt_dsymutil=
8316    fi
8317    ;;
8318  esac
8319
8320# func_munge_path_list VARIABLE PATH
8321# -----------------------------------
8322# VARIABLE is name of variable containing _space_ separated list of
8323# directories to be munged by the contents of PATH, which is string
8324# having a format:
8325# "DIR[:DIR]:"
8326#       string "DIR[ DIR]" will be prepended to VARIABLE
8327# ":DIR[:DIR]"
8328#       string "DIR[ DIR]" will be appended to VARIABLE
8329# "DIRP[:DIRP]::[DIRA:]DIRA"
8330#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8331#       "DIRA[ DIRA]" will be appended to VARIABLE
8332# "DIR[:DIR]"
8333#       VARIABLE will be replaced by "DIR[ DIR]"
8334func_munge_path_list ()
8335{
8336    case x$2 in
8337    x)
8338        ;;
8339    *:)
8340        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8341        ;;
8342    x:*)
8343        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8344        ;;
8345    *::*)
8346        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8347        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8348        ;;
8349    *)
8350        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8351        ;;
8352    esac
8353}
8354
8355ac_ext=c
8356ac_cpp='$CPP $CPPFLAGS'
8357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359ac_compiler_gnu=$ac_cv_c_compiler_gnu
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8361$as_echo_n "checking how to run the C preprocessor... " >&6; }
8362# On Suns, sometimes $CPP names a directory.
8363if test -n "$CPP" && test -d "$CPP"; then
8364  CPP=
8365fi
8366if test -z "$CPP"; then
8367  if ${ac_cv_prog_CPP+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370      # Double quotes because CPP needs to be expanded
8371    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8372    do
8373      ac_preproc_ok=false
8374for ac_c_preproc_warn_flag in '' yes
8375do
8376  # Use a header file that comes with gcc, so configuring glibc
8377  # with a fresh cross-compiler works.
8378  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8379  # <limits.h> exists even on freestanding compilers.
8380  # On the NeXT, cc -E runs the code through the compiler's parser,
8381  # not just through cpp. "Syntax error" is here to catch this case.
8382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383/* end confdefs.h.  */
8384#ifdef __STDC__
8385# include <limits.h>
8386#else
8387# include <assert.h>
8388#endif
8389		     Syntax error
8390_ACEOF
8391if ac_fn_c_try_cpp "$LINENO"; then :
8392
8393else
8394  # Broken: fails on valid input.
8395continue
8396fi
8397rm -f conftest.err conftest.i conftest.$ac_ext
8398
8399  # OK, works on sane cases.  Now check whether nonexistent headers
8400  # can be detected and how.
8401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402/* end confdefs.h.  */
8403#include <ac_nonexistent.h>
8404_ACEOF
8405if ac_fn_c_try_cpp "$LINENO"; then :
8406  # Broken: success on invalid input.
8407continue
8408else
8409  # Passes both tests.
8410ac_preproc_ok=:
8411break
8412fi
8413rm -f conftest.err conftest.i conftest.$ac_ext
8414
8415done
8416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8417rm -f conftest.i conftest.err conftest.$ac_ext
8418if $ac_preproc_ok; then :
8419  break
8420fi
8421
8422    done
8423    ac_cv_prog_CPP=$CPP
8424
8425fi
8426  CPP=$ac_cv_prog_CPP
8427else
8428  ac_cv_prog_CPP=$CPP
8429fi
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8431$as_echo "$CPP" >&6; }
8432ac_preproc_ok=false
8433for ac_c_preproc_warn_flag in '' yes
8434do
8435  # Use a header file that comes with gcc, so configuring glibc
8436  # with a fresh cross-compiler works.
8437  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8438  # <limits.h> exists even on freestanding compilers.
8439  # On the NeXT, cc -E runs the code through the compiler's parser,
8440  # not just through cpp. "Syntax error" is here to catch this case.
8441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442/* end confdefs.h.  */
8443#ifdef __STDC__
8444# include <limits.h>
8445#else
8446# include <assert.h>
8447#endif
8448		     Syntax error
8449_ACEOF
8450if ac_fn_c_try_cpp "$LINENO"; then :
8451
8452else
8453  # Broken: fails on valid input.
8454continue
8455fi
8456rm -f conftest.err conftest.i conftest.$ac_ext
8457
8458  # OK, works on sane cases.  Now check whether nonexistent headers
8459  # can be detected and how.
8460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h.  */
8462#include <ac_nonexistent.h>
8463_ACEOF
8464if ac_fn_c_try_cpp "$LINENO"; then :
8465  # Broken: success on invalid input.
8466continue
8467else
8468  # Passes both tests.
8469ac_preproc_ok=:
8470break
8471fi
8472rm -f conftest.err conftest.i conftest.$ac_ext
8473
8474done
8475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8476rm -f conftest.i conftest.err conftest.$ac_ext
8477if $ac_preproc_ok; then :
8478
8479else
8480  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8482as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8483See \`config.log' for more details" "$LINENO" 5; }
8484fi
8485
8486ac_ext=c
8487ac_cpp='$CPP $CPPFLAGS'
8488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8490ac_compiler_gnu=$ac_cv_c_compiler_gnu
8491
8492
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8494$as_echo_n "checking for ANSI C header files... " >&6; }
8495if ${ac_cv_header_stdc+:} false; then :
8496  $as_echo_n "(cached) " >&6
8497else
8498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h.  */
8500#include <stdlib.h>
8501#include <stdarg.h>
8502#include <string.h>
8503#include <float.h>
8504
8505int
8506main ()
8507{
8508
8509  ;
8510  return 0;
8511}
8512_ACEOF
8513if ac_fn_c_try_compile "$LINENO"; then :
8514  ac_cv_header_stdc=yes
8515else
8516  ac_cv_header_stdc=no
8517fi
8518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519
8520if test $ac_cv_header_stdc = yes; then
8521  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523/* end confdefs.h.  */
8524#include <string.h>
8525
8526_ACEOF
8527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8528  $EGREP "memchr" >/dev/null 2>&1; then :
8529
8530else
8531  ac_cv_header_stdc=no
8532fi
8533rm -f conftest*
8534
8535fi
8536
8537if test $ac_cv_header_stdc = yes; then
8538  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540/* end confdefs.h.  */
8541#include <stdlib.h>
8542
8543_ACEOF
8544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8545  $EGREP "free" >/dev/null 2>&1; then :
8546
8547else
8548  ac_cv_header_stdc=no
8549fi
8550rm -f conftest*
8551
8552fi
8553
8554if test $ac_cv_header_stdc = yes; then
8555  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8556  if test "$cross_compiling" = yes; then :
8557  :
8558else
8559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560/* end confdefs.h.  */
8561#include <ctype.h>
8562#include <stdlib.h>
8563#if ((' ' & 0x0FF) == 0x020)
8564# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8565# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8566#else
8567# define ISLOWER(c) \
8568		   (('a' <= (c) && (c) <= 'i') \
8569		     || ('j' <= (c) && (c) <= 'r') \
8570		     || ('s' <= (c) && (c) <= 'z'))
8571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8572#endif
8573
8574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8575int
8576main ()
8577{
8578  int i;
8579  for (i = 0; i < 256; i++)
8580    if (XOR (islower (i), ISLOWER (i))
8581	|| toupper (i) != TOUPPER (i))
8582      return 2;
8583  return 0;
8584}
8585_ACEOF
8586if ac_fn_c_try_run "$LINENO"; then :
8587
8588else
8589  ac_cv_header_stdc=no
8590fi
8591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8592  conftest.$ac_objext conftest.beam conftest.$ac_ext
8593fi
8594
8595fi
8596fi
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8598$as_echo "$ac_cv_header_stdc" >&6; }
8599if test $ac_cv_header_stdc = yes; then
8600
8601$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8602
8603fi
8604
8605# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8606for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8607		  inttypes.h stdint.h unistd.h
8608do :
8609  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8610ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8611"
8612if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8613  cat >>confdefs.h <<_ACEOF
8614#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8615_ACEOF
8616
8617fi
8618
8619done
8620
8621
8622for ac_header in dlfcn.h
8623do :
8624  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8625"
8626if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8627  cat >>confdefs.h <<_ACEOF
8628#define HAVE_DLFCN_H 1
8629_ACEOF
8630
8631fi
8632
8633done
8634
8635
8636
8637
8638
8639# Set options
8640
8641
8642
8643        enable_dlopen=no
8644
8645
8646  enable_win32_dll=no
8647
8648
8649            # Check whether --enable-shared was given.
8650if test "${enable_shared+set}" = set; then :
8651  enableval=$enable_shared; p=${PACKAGE-default}
8652    case $enableval in
8653    yes) enable_shared=yes ;;
8654    no) enable_shared=no ;;
8655    *)
8656      enable_shared=no
8657      # Look at the argument we got.  We use all the common list separators.
8658      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8659      for pkg in $enableval; do
8660	IFS=$lt_save_ifs
8661	if test "X$pkg" = "X$p"; then
8662	  enable_shared=yes
8663	fi
8664      done
8665      IFS=$lt_save_ifs
8666      ;;
8667    esac
8668else
8669  enable_shared=yes
8670fi
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680  # Check whether --enable-static was given.
8681if test "${enable_static+set}" = set; then :
8682  enableval=$enable_static; p=${PACKAGE-default}
8683    case $enableval in
8684    yes) enable_static=yes ;;
8685    no) enable_static=no ;;
8686    *)
8687     enable_static=no
8688      # Look at the argument we got.  We use all the common list separators.
8689      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8690      for pkg in $enableval; do
8691	IFS=$lt_save_ifs
8692	if test "X$pkg" = "X$p"; then
8693	  enable_static=yes
8694	fi
8695      done
8696      IFS=$lt_save_ifs
8697      ;;
8698    esac
8699else
8700  enable_static=yes
8701fi
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712# Check whether --with-pic was given.
8713if test "${with_pic+set}" = set; then :
8714  withval=$with_pic; lt_p=${PACKAGE-default}
8715    case $withval in
8716    yes|no) pic_mode=$withval ;;
8717    *)
8718      pic_mode=default
8719      # Look at the argument we got.  We use all the common list separators.
8720      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8721      for lt_pkg in $withval; do
8722	IFS=$lt_save_ifs
8723	if test "X$lt_pkg" = "X$lt_p"; then
8724	  pic_mode=yes
8725	fi
8726      done
8727      IFS=$lt_save_ifs
8728      ;;
8729    esac
8730else
8731  pic_mode=default
8732fi
8733
8734
8735
8736
8737
8738
8739
8740
8741  # Check whether --enable-fast-install was given.
8742if test "${enable_fast_install+set}" = set; then :
8743  enableval=$enable_fast_install; p=${PACKAGE-default}
8744    case $enableval in
8745    yes) enable_fast_install=yes ;;
8746    no) enable_fast_install=no ;;
8747    *)
8748      enable_fast_install=no
8749      # Look at the argument we got.  We use all the common list separators.
8750      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8751      for pkg in $enableval; do
8752	IFS=$lt_save_ifs
8753	if test "X$pkg" = "X$p"; then
8754	  enable_fast_install=yes
8755	fi
8756      done
8757      IFS=$lt_save_ifs
8758      ;;
8759    esac
8760else
8761  enable_fast_install=yes
8762fi
8763
8764
8765
8766
8767
8768
8769
8770
8771  shared_archive_member_spec=
8772case $host,$enable_shared in
8773power*-*-aix[5-9]*,yes)
8774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8775$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8776
8777# Check whether --with-aix-soname was given.
8778if test "${with_aix_soname+set}" = set; then :
8779  withval=$with_aix_soname; case $withval in
8780    aix|svr4|both)
8781      ;;
8782    *)
8783      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8784      ;;
8785    esac
8786    lt_cv_with_aix_soname=$with_aix_soname
8787else
8788  if ${lt_cv_with_aix_soname+:} false; then :
8789  $as_echo_n "(cached) " >&6
8790else
8791  lt_cv_with_aix_soname=aix
8792fi
8793
8794    with_aix_soname=$lt_cv_with_aix_soname
8795fi
8796
8797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8798$as_echo "$with_aix_soname" >&6; }
8799  if test aix != "$with_aix_soname"; then
8800    # For the AIX way of multilib, we name the shared archive member
8801    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8802    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8803    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8804    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8805    if test 64 = "${OBJECT_MODE-32}"; then
8806      shared_archive_member_spec=shr_64
8807    else
8808      shared_archive_member_spec=shr
8809    fi
8810  fi
8811  ;;
8812*)
8813  with_aix_soname=aix
8814  ;;
8815esac
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826# This can be used to rebuild libtool when needed
8827LIBTOOL_DEPS=$ltmain
8828
8829# Always use our own libtool.
8830LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8831
8832
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
8861test -z "$LN_S" && LN_S="ln -s"
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876if test -n "${ZSH_VERSION+set}"; then
8877   setopt NO_GLOB_SUBST
8878fi
8879
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8881$as_echo_n "checking for objdir... " >&6; }
8882if ${lt_cv_objdir+:} false; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  rm -f .libs 2>/dev/null
8886mkdir .libs 2>/dev/null
8887if test -d .libs; then
8888  lt_cv_objdir=.libs
8889else
8890  # MS-DOS does not allow filenames that begin with a dot.
8891  lt_cv_objdir=_libs
8892fi
8893rmdir .libs 2>/dev/null
8894fi
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8896$as_echo "$lt_cv_objdir" >&6; }
8897objdir=$lt_cv_objdir
8898
8899
8900
8901
8902
8903cat >>confdefs.h <<_ACEOF
8904#define LT_OBJDIR "$lt_cv_objdir/"
8905_ACEOF
8906
8907
8908
8909
8910case $host_os in
8911aix3*)
8912  # AIX sometimes has problems with the GCC collect2 program.  For some
8913  # reason, if we set the COLLECT_NAMES environment variable, the problems
8914  # vanish in a puff of smoke.
8915  if test set != "${COLLECT_NAMES+set}"; then
8916    COLLECT_NAMES=
8917    export COLLECT_NAMES
8918  fi
8919  ;;
8920esac
8921
8922# Global variables:
8923ofile=libtool
8924can_build_shared=yes
8925
8926# All known linkers require a '.a' archive for static linking (except MSVC,
8927# which needs '.lib').
8928libext=a
8929
8930with_gnu_ld=$lt_cv_prog_gnu_ld
8931
8932old_CC=$CC
8933old_CFLAGS=$CFLAGS
8934
8935# Set sane defaults for various variables
8936test -z "$CC" && CC=cc
8937test -z "$LTCC" && LTCC=$CC
8938test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8939test -z "$LD" && LD=ld
8940test -z "$ac_objext" && ac_objext=o
8941
8942func_cc_basename $compiler
8943cc_basename=$func_cc_basename_result
8944
8945
8946# Only perform the check for file, if the check method requires it
8947test -z "$MAGIC_CMD" && MAGIC_CMD=file
8948case $deplibs_check_method in
8949file_magic*)
8950  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8952$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8953if ${lt_cv_path_MAGIC_CMD+:} false; then :
8954  $as_echo_n "(cached) " >&6
8955else
8956  case $MAGIC_CMD in
8957[\\/*] |  ?:[\\/]*)
8958  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8959  ;;
8960*)
8961  lt_save_MAGIC_CMD=$MAGIC_CMD
8962  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8963  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8964  for ac_dir in $ac_dummy; do
8965    IFS=$lt_save_ifs
8966    test -z "$ac_dir" && ac_dir=.
8967    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8968      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8969      if test -n "$file_magic_test_file"; then
8970	case $deplibs_check_method in
8971	"file_magic "*)
8972	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8973	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8974	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8975	    $EGREP "$file_magic_regex" > /dev/null; then
8976	    :
8977	  else
8978	    cat <<_LT_EOF 1>&2
8979
8980*** Warning: the command libtool uses to detect shared libraries,
8981*** $file_magic_cmd, produces output that libtool cannot recognize.
8982*** The result is that libtool may fail to recognize shared libraries
8983*** as such.  This will affect the creation of libtool libraries that
8984*** depend on shared libraries, but programs linked with such libtool
8985*** libraries will work regardless of this problem.  Nevertheless, you
8986*** may want to report the problem to your system manager and/or to
8987*** bug-libtool@gnu.org
8988
8989_LT_EOF
8990	  fi ;;
8991	esac
8992      fi
8993      break
8994    fi
8995  done
8996  IFS=$lt_save_ifs
8997  MAGIC_CMD=$lt_save_MAGIC_CMD
8998  ;;
8999esac
9000fi
9001
9002MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9003if test -n "$MAGIC_CMD"; then
9004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9005$as_echo "$MAGIC_CMD" >&6; }
9006else
9007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008$as_echo "no" >&6; }
9009fi
9010
9011
9012
9013
9014
9015if test -z "$lt_cv_path_MAGIC_CMD"; then
9016  if test -n "$ac_tool_prefix"; then
9017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9018$as_echo_n "checking for file... " >&6; }
9019if ${lt_cv_path_MAGIC_CMD+:} false; then :
9020  $as_echo_n "(cached) " >&6
9021else
9022  case $MAGIC_CMD in
9023[\\/*] |  ?:[\\/]*)
9024  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9025  ;;
9026*)
9027  lt_save_MAGIC_CMD=$MAGIC_CMD
9028  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9029  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9030  for ac_dir in $ac_dummy; do
9031    IFS=$lt_save_ifs
9032    test -z "$ac_dir" && ac_dir=.
9033    if test -f "$ac_dir/file"; then
9034      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9035      if test -n "$file_magic_test_file"; then
9036	case $deplibs_check_method in
9037	"file_magic "*)
9038	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9039	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9040	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9041	    $EGREP "$file_magic_regex" > /dev/null; then
9042	    :
9043	  else
9044	    cat <<_LT_EOF 1>&2
9045
9046*** Warning: the command libtool uses to detect shared libraries,
9047*** $file_magic_cmd, produces output that libtool cannot recognize.
9048*** The result is that libtool may fail to recognize shared libraries
9049*** as such.  This will affect the creation of libtool libraries that
9050*** depend on shared libraries, but programs linked with such libtool
9051*** libraries will work regardless of this problem.  Nevertheless, you
9052*** may want to report the problem to your system manager and/or to
9053*** bug-libtool@gnu.org
9054
9055_LT_EOF
9056	  fi ;;
9057	esac
9058      fi
9059      break
9060    fi
9061  done
9062  IFS=$lt_save_ifs
9063  MAGIC_CMD=$lt_save_MAGIC_CMD
9064  ;;
9065esac
9066fi
9067
9068MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9069if test -n "$MAGIC_CMD"; then
9070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9071$as_echo "$MAGIC_CMD" >&6; }
9072else
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074$as_echo "no" >&6; }
9075fi
9076
9077
9078  else
9079    MAGIC_CMD=:
9080  fi
9081fi
9082
9083  fi
9084  ;;
9085esac
9086
9087# Use C for the default configuration in the libtool script
9088
9089lt_save_CC=$CC
9090ac_ext=c
9091ac_cpp='$CPP $CPPFLAGS'
9092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094ac_compiler_gnu=$ac_cv_c_compiler_gnu
9095
9096
9097# Source file extension for C test sources.
9098ac_ext=c
9099
9100# Object file extension for compiled C test sources.
9101objext=o
9102objext=$objext
9103
9104# Code to be used in simple compile tests
9105lt_simple_compile_test_code="int some_variable = 0;"
9106
9107# Code to be used in simple link tests
9108lt_simple_link_test_code='int main(){return(0);}'
9109
9110
9111
9112
9113
9114
9115
9116# If no C compiler was specified, use CC.
9117LTCC=${LTCC-"$CC"}
9118
9119# If no C compiler flags were specified, use CFLAGS.
9120LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9121
9122# Allow CC to be a program name with arguments.
9123compiler=$CC
9124
9125# Save the default compiler, since it gets overwritten when the other
9126# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9127compiler_DEFAULT=$CC
9128
9129# save warnings/boilerplate of simple test code
9130ac_outfile=conftest.$ac_objext
9131echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9132eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9133_lt_compiler_boilerplate=`cat conftest.err`
9134$RM conftest*
9135
9136ac_outfile=conftest.$ac_objext
9137echo "$lt_simple_link_test_code" >conftest.$ac_ext
9138eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9139_lt_linker_boilerplate=`cat conftest.err`
9140$RM -r conftest*
9141
9142
9143if test -n "$compiler"; then
9144
9145lt_prog_compiler_no_builtin_flag=
9146
9147if test yes = "$GCC"; then
9148  case $cc_basename in
9149  nvcc*)
9150    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9151  *)
9152    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9153  esac
9154
9155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9156$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9157if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9158  $as_echo_n "(cached) " >&6
9159else
9160  lt_cv_prog_compiler_rtti_exceptions=no
9161   ac_outfile=conftest.$ac_objext
9162   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9163   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9164   # Insert the option either (1) after the last *FLAGS variable, or
9165   # (2) before a word containing "conftest.", or (3) at the end.
9166   # Note that $ac_compile itself does not contain backslashes and begins
9167   # with a dollar sign (not a hyphen), so the echo should work correctly.
9168   # The option is referenced via a variable to avoid confusing sed.
9169   lt_compile=`echo "$ac_compile" | $SED \
9170   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9171   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9172   -e 's:$: $lt_compiler_flag:'`
9173   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9174   (eval "$lt_compile" 2>conftest.err)
9175   ac_status=$?
9176   cat conftest.err >&5
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   if (exit $ac_status) && test -s "$ac_outfile"; then
9179     # The compiler can only warn and ignore the option if not recognized
9180     # So say no if there are warnings other than the usual output.
9181     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9182     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9183     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9184       lt_cv_prog_compiler_rtti_exceptions=yes
9185     fi
9186   fi
9187   $RM conftest*
9188
9189fi
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9191$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9192
9193if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9194    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9195else
9196    :
9197fi
9198
9199fi
9200
9201
9202
9203
9204
9205
9206  lt_prog_compiler_wl=
9207lt_prog_compiler_pic=
9208lt_prog_compiler_static=
9209
9210
9211  if test yes = "$GCC"; then
9212    lt_prog_compiler_wl='-Wl,'
9213    lt_prog_compiler_static='-static'
9214
9215    case $host_os in
9216      aix*)
9217      # All AIX code is PIC.
9218      if test ia64 = "$host_cpu"; then
9219	# AIX 5 now supports IA64 processor
9220	lt_prog_compiler_static='-Bstatic'
9221      fi
9222      lt_prog_compiler_pic='-fPIC'
9223      ;;
9224
9225    amigaos*)
9226      case $host_cpu in
9227      powerpc)
9228            # see comment about AmigaOS4 .so support
9229            lt_prog_compiler_pic='-fPIC'
9230        ;;
9231      m68k)
9232            # FIXME: we need at least 68020 code to build shared libraries, but
9233            # adding the '-m68020' flag to GCC prevents building anything better,
9234            # like '-m68040'.
9235            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9236        ;;
9237      esac
9238      ;;
9239
9240    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9241      # PIC is the default for these OSes.
9242      ;;
9243
9244    mingw* | cygwin* | pw32* | os2* | cegcc*)
9245      # This hack is so that the source file can tell whether it is being
9246      # built for inclusion in a dll (and should export symbols for example).
9247      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9248      # (--disable-auto-import) libraries
9249      lt_prog_compiler_pic='-DDLL_EXPORT'
9250      case $host_os in
9251      os2*)
9252	lt_prog_compiler_static='$wl-static'
9253	;;
9254      esac
9255      ;;
9256
9257    darwin* | rhapsody*)
9258      # PIC is the default on this platform
9259      # Common symbols not allowed in MH_DYLIB files
9260      lt_prog_compiler_pic='-fno-common'
9261      ;;
9262
9263    haiku*)
9264      # PIC is the default for Haiku.
9265      # The "-static" flag exists, but is broken.
9266      lt_prog_compiler_static=
9267      ;;
9268
9269    hpux*)
9270      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9271      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9272      # sets the default TLS model and affects inlining.
9273      case $host_cpu in
9274      hppa*64*)
9275	# +Z the default
9276	;;
9277      *)
9278	lt_prog_compiler_pic='-fPIC'
9279	;;
9280      esac
9281      ;;
9282
9283    interix[3-9]*)
9284      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9285      # Instead, we relocate shared libraries at runtime.
9286      ;;
9287
9288    msdosdjgpp*)
9289      # Just because we use GCC doesn't mean we suddenly get shared libraries
9290      # on systems that don't support them.
9291      lt_prog_compiler_can_build_shared=no
9292      enable_shared=no
9293      ;;
9294
9295    *nto* | *qnx*)
9296      # QNX uses GNU C++, but need to define -shared option too, otherwise
9297      # it will coredump.
9298      lt_prog_compiler_pic='-fPIC -shared'
9299      ;;
9300
9301    sysv4*MP*)
9302      if test -d /usr/nec; then
9303	lt_prog_compiler_pic=-Kconform_pic
9304      fi
9305      ;;
9306
9307    *)
9308      lt_prog_compiler_pic='-fPIC'
9309      ;;
9310    esac
9311
9312    case $cc_basename in
9313    nvcc*) # Cuda Compiler Driver 2.2
9314      lt_prog_compiler_wl='-Xlinker '
9315      if test -n "$lt_prog_compiler_pic"; then
9316        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9317      fi
9318      ;;
9319    esac
9320  else
9321    # PORTME Check for flag to pass linker flags through the system compiler.
9322    case $host_os in
9323    aix*)
9324      lt_prog_compiler_wl='-Wl,'
9325      if test ia64 = "$host_cpu"; then
9326	# AIX 5 now supports IA64 processor
9327	lt_prog_compiler_static='-Bstatic'
9328      else
9329	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9330      fi
9331      ;;
9332
9333    darwin* | rhapsody*)
9334      # PIC is the default on this platform
9335      # Common symbols not allowed in MH_DYLIB files
9336      lt_prog_compiler_pic='-fno-common'
9337      case $cc_basename in
9338      nagfor*)
9339        # NAG Fortran compiler
9340        lt_prog_compiler_wl='-Wl,-Wl,,'
9341        lt_prog_compiler_pic='-PIC'
9342        lt_prog_compiler_static='-Bstatic'
9343        ;;
9344      esac
9345      ;;
9346
9347    mingw* | cygwin* | pw32* | os2* | cegcc*)
9348      # This hack is so that the source file can tell whether it is being
9349      # built for inclusion in a dll (and should export symbols for example).
9350      lt_prog_compiler_pic='-DDLL_EXPORT'
9351      case $host_os in
9352      os2*)
9353	lt_prog_compiler_static='$wl-static'
9354	;;
9355      esac
9356      ;;
9357
9358    hpux9* | hpux10* | hpux11*)
9359      lt_prog_compiler_wl='-Wl,'
9360      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9361      # not for PA HP-UX.
9362      case $host_cpu in
9363      hppa*64*|ia64*)
9364	# +Z the default
9365	;;
9366      *)
9367	lt_prog_compiler_pic='+Z'
9368	;;
9369      esac
9370      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9371      lt_prog_compiler_static='$wl-a ${wl}archive'
9372      ;;
9373
9374    irix5* | irix6* | nonstopux*)
9375      lt_prog_compiler_wl='-Wl,'
9376      # PIC (with -KPIC) is the default.
9377      lt_prog_compiler_static='-non_shared'
9378      ;;
9379
9380    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9381      case $cc_basename in
9382      # old Intel for x86_64, which still supported -KPIC.
9383      ecc*)
9384	lt_prog_compiler_wl='-Wl,'
9385	lt_prog_compiler_pic='-KPIC'
9386	lt_prog_compiler_static='-static'
9387        ;;
9388      # icc used to be incompatible with GCC.
9389      # ICC 10 doesn't accept -KPIC any more.
9390      icc* | ifort*)
9391	lt_prog_compiler_wl='-Wl,'
9392	lt_prog_compiler_pic='-fPIC'
9393	lt_prog_compiler_static='-static'
9394        ;;
9395      # Lahey Fortran 8.1.
9396      lf95*)
9397	lt_prog_compiler_wl='-Wl,'
9398	lt_prog_compiler_pic='--shared'
9399	lt_prog_compiler_static='--static'
9400	;;
9401      nagfor*)
9402	# NAG Fortran compiler
9403	lt_prog_compiler_wl='-Wl,-Wl,,'
9404	lt_prog_compiler_pic='-PIC'
9405	lt_prog_compiler_static='-Bstatic'
9406	;;
9407      tcc*)
9408	# Fabrice Bellard et al's Tiny C Compiler
9409	lt_prog_compiler_wl='-Wl,'
9410	lt_prog_compiler_pic='-fPIC'
9411	lt_prog_compiler_static='-static'
9412	;;
9413      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9414        # Portland Group compilers (*not* the Pentium gcc compiler,
9415	# which looks to be a dead project)
9416	lt_prog_compiler_wl='-Wl,'
9417	lt_prog_compiler_pic='-fpic'
9418	lt_prog_compiler_static='-Bstatic'
9419        ;;
9420      ccc*)
9421        lt_prog_compiler_wl='-Wl,'
9422        # All Alpha code is PIC.
9423        lt_prog_compiler_static='-non_shared'
9424        ;;
9425      xl* | bgxl* | bgf* | mpixl*)
9426	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9427	lt_prog_compiler_wl='-Wl,'
9428	lt_prog_compiler_pic='-qpic'
9429	lt_prog_compiler_static='-qstaticlink'
9430	;;
9431      *)
9432	case `$CC -V 2>&1 | sed 5q` in
9433	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9434	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9435	  lt_prog_compiler_pic='-KPIC'
9436	  lt_prog_compiler_static='-Bstatic'
9437	  lt_prog_compiler_wl=''
9438	  ;;
9439	*Sun\ F* | *Sun*Fortran*)
9440	  lt_prog_compiler_pic='-KPIC'
9441	  lt_prog_compiler_static='-Bstatic'
9442	  lt_prog_compiler_wl='-Qoption ld '
9443	  ;;
9444	*Sun\ C*)
9445	  # Sun C 5.9
9446	  lt_prog_compiler_pic='-KPIC'
9447	  lt_prog_compiler_static='-Bstatic'
9448	  lt_prog_compiler_wl='-Wl,'
9449	  ;;
9450        *Intel*\ [CF]*Compiler*)
9451	  lt_prog_compiler_wl='-Wl,'
9452	  lt_prog_compiler_pic='-fPIC'
9453	  lt_prog_compiler_static='-static'
9454	  ;;
9455	*Portland\ Group*)
9456	  lt_prog_compiler_wl='-Wl,'
9457	  lt_prog_compiler_pic='-fpic'
9458	  lt_prog_compiler_static='-Bstatic'
9459	  ;;
9460	esac
9461	;;
9462      esac
9463      ;;
9464
9465    newsos6)
9466      lt_prog_compiler_pic='-KPIC'
9467      lt_prog_compiler_static='-Bstatic'
9468      ;;
9469
9470    *nto* | *qnx*)
9471      # QNX uses GNU C++, but need to define -shared option too, otherwise
9472      # it will coredump.
9473      lt_prog_compiler_pic='-fPIC -shared'
9474      ;;
9475
9476    osf3* | osf4* | osf5*)
9477      lt_prog_compiler_wl='-Wl,'
9478      # All OSF/1 code is PIC.
9479      lt_prog_compiler_static='-non_shared'
9480      ;;
9481
9482    rdos*)
9483      lt_prog_compiler_static='-non_shared'
9484      ;;
9485
9486    solaris*)
9487      lt_prog_compiler_pic='-KPIC'
9488      lt_prog_compiler_static='-Bstatic'
9489      case $cc_basename in
9490      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9491	lt_prog_compiler_wl='-Qoption ld ';;
9492      *)
9493	lt_prog_compiler_wl='-Wl,';;
9494      esac
9495      ;;
9496
9497    sunos4*)
9498      lt_prog_compiler_wl='-Qoption ld '
9499      lt_prog_compiler_pic='-PIC'
9500      lt_prog_compiler_static='-Bstatic'
9501      ;;
9502
9503    sysv4 | sysv4.2uw2* | sysv4.3*)
9504      lt_prog_compiler_wl='-Wl,'
9505      lt_prog_compiler_pic='-KPIC'
9506      lt_prog_compiler_static='-Bstatic'
9507      ;;
9508
9509    sysv4*MP*)
9510      if test -d /usr/nec; then
9511	lt_prog_compiler_pic='-Kconform_pic'
9512	lt_prog_compiler_static='-Bstatic'
9513      fi
9514      ;;
9515
9516    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9517      lt_prog_compiler_wl='-Wl,'
9518      lt_prog_compiler_pic='-KPIC'
9519      lt_prog_compiler_static='-Bstatic'
9520      ;;
9521
9522    unicos*)
9523      lt_prog_compiler_wl='-Wl,'
9524      lt_prog_compiler_can_build_shared=no
9525      ;;
9526
9527    uts4*)
9528      lt_prog_compiler_pic='-pic'
9529      lt_prog_compiler_static='-Bstatic'
9530      ;;
9531
9532    *)
9533      lt_prog_compiler_can_build_shared=no
9534      ;;
9535    esac
9536  fi
9537
9538case $host_os in
9539  # For platforms that do not support PIC, -DPIC is meaningless:
9540  *djgpp*)
9541    lt_prog_compiler_pic=
9542    ;;
9543  *)
9544    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9545    ;;
9546esac
9547
9548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9549$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9550if ${lt_cv_prog_compiler_pic+:} false; then :
9551  $as_echo_n "(cached) " >&6
9552else
9553  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9554fi
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9556$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9557lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9558
9559#
9560# Check to make sure the PIC flag actually works.
9561#
9562if test -n "$lt_prog_compiler_pic"; then
9563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9564$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9565if ${lt_cv_prog_compiler_pic_works+:} false; then :
9566  $as_echo_n "(cached) " >&6
9567else
9568  lt_cv_prog_compiler_pic_works=no
9569   ac_outfile=conftest.$ac_objext
9570   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9571   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9572   # Insert the option either (1) after the last *FLAGS variable, or
9573   # (2) before a word containing "conftest.", or (3) at the end.
9574   # Note that $ac_compile itself does not contain backslashes and begins
9575   # with a dollar sign (not a hyphen), so the echo should work correctly.
9576   # The option is referenced via a variable to avoid confusing sed.
9577   lt_compile=`echo "$ac_compile" | $SED \
9578   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9579   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9580   -e 's:$: $lt_compiler_flag:'`
9581   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9582   (eval "$lt_compile" 2>conftest.err)
9583   ac_status=$?
9584   cat conftest.err >&5
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   if (exit $ac_status) && test -s "$ac_outfile"; then
9587     # The compiler can only warn and ignore the option if not recognized
9588     # So say no if there are warnings other than the usual output.
9589     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9590     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9591     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9592       lt_cv_prog_compiler_pic_works=yes
9593     fi
9594   fi
9595   $RM conftest*
9596
9597fi
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9599$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9600
9601if test yes = "$lt_cv_prog_compiler_pic_works"; then
9602    case $lt_prog_compiler_pic in
9603     "" | " "*) ;;
9604     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9605     esac
9606else
9607    lt_prog_compiler_pic=
9608     lt_prog_compiler_can_build_shared=no
9609fi
9610
9611fi
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623#
9624# Check to make sure the static flag actually works.
9625#
9626wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9628$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9629if ${lt_cv_prog_compiler_static_works+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  lt_cv_prog_compiler_static_works=no
9633   save_LDFLAGS=$LDFLAGS
9634   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9635   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9636   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9637     # The linker can only warn and ignore the option if not recognized
9638     # So say no if there are warnings
9639     if test -s conftest.err; then
9640       # Append any errors to the config.log.
9641       cat conftest.err 1>&5
9642       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9643       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9644       if diff conftest.exp conftest.er2 >/dev/null; then
9645         lt_cv_prog_compiler_static_works=yes
9646       fi
9647     else
9648       lt_cv_prog_compiler_static_works=yes
9649     fi
9650   fi
9651   $RM -r conftest*
9652   LDFLAGS=$save_LDFLAGS
9653
9654fi
9655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9656$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9657
9658if test yes = "$lt_cv_prog_compiler_static_works"; then
9659    :
9660else
9661    lt_prog_compiler_static=
9662fi
9663
9664
9665
9666
9667
9668
9669
9670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9671$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9672if ${lt_cv_prog_compiler_c_o+:} false; then :
9673  $as_echo_n "(cached) " >&6
9674else
9675  lt_cv_prog_compiler_c_o=no
9676   $RM -r conftest 2>/dev/null
9677   mkdir conftest
9678   cd conftest
9679   mkdir out
9680   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9681
9682   lt_compiler_flag="-o out/conftest2.$ac_objext"
9683   # Insert the option either (1) after the last *FLAGS variable, or
9684   # (2) before a word containing "conftest.", or (3) at the end.
9685   # Note that $ac_compile itself does not contain backslashes and begins
9686   # with a dollar sign (not a hyphen), so the echo should work correctly.
9687   lt_compile=`echo "$ac_compile" | $SED \
9688   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9689   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9690   -e 's:$: $lt_compiler_flag:'`
9691   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9692   (eval "$lt_compile" 2>out/conftest.err)
9693   ac_status=$?
9694   cat out/conftest.err >&5
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9697   then
9698     # The compiler can only warn and ignore the option if not recognized
9699     # So say no if there are warnings
9700     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9701     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9702     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9703       lt_cv_prog_compiler_c_o=yes
9704     fi
9705   fi
9706   chmod u+w . 2>&5
9707   $RM conftest*
9708   # SGI C++ compiler will create directory out/ii_files/ for
9709   # template instantiation
9710   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9711   $RM out/* && rmdir out
9712   cd ..
9713   $RM -r conftest
9714   $RM conftest*
9715
9716fi
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9718$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9719
9720
9721
9722
9723
9724
9725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9726$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9727if ${lt_cv_prog_compiler_c_o+:} false; then :
9728  $as_echo_n "(cached) " >&6
9729else
9730  lt_cv_prog_compiler_c_o=no
9731   $RM -r conftest 2>/dev/null
9732   mkdir conftest
9733   cd conftest
9734   mkdir out
9735   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9736
9737   lt_compiler_flag="-o out/conftest2.$ac_objext"
9738   # Insert the option either (1) after the last *FLAGS variable, or
9739   # (2) before a word containing "conftest.", or (3) at the end.
9740   # Note that $ac_compile itself does not contain backslashes and begins
9741   # with a dollar sign (not a hyphen), so the echo should work correctly.
9742   lt_compile=`echo "$ac_compile" | $SED \
9743   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9744   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9745   -e 's:$: $lt_compiler_flag:'`
9746   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9747   (eval "$lt_compile" 2>out/conftest.err)
9748   ac_status=$?
9749   cat out/conftest.err >&5
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9752   then
9753     # The compiler can only warn and ignore the option if not recognized
9754     # So say no if there are warnings
9755     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9756     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9757     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9758       lt_cv_prog_compiler_c_o=yes
9759     fi
9760   fi
9761   chmod u+w . 2>&5
9762   $RM conftest*
9763   # SGI C++ compiler will create directory out/ii_files/ for
9764   # template instantiation
9765   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9766   $RM out/* && rmdir out
9767   cd ..
9768   $RM -r conftest
9769   $RM conftest*
9770
9771fi
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9773$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9774
9775
9776
9777
9778hard_links=nottested
9779if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9780  # do not overwrite the value of need_locks provided by the user
9781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9782$as_echo_n "checking if we can lock with hard links... " >&6; }
9783  hard_links=yes
9784  $RM conftest*
9785  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9786  touch conftest.a
9787  ln conftest.a conftest.b 2>&5 || hard_links=no
9788  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9790$as_echo "$hard_links" >&6; }
9791  if test no = "$hard_links"; then
9792    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9793$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9794    need_locks=warn
9795  fi
9796else
9797  need_locks=no
9798fi
9799
9800
9801
9802
9803
9804
9805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9806$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9807
9808  runpath_var=
9809  allow_undefined_flag=
9810  always_export_symbols=no
9811  archive_cmds=
9812  archive_expsym_cmds=
9813  compiler_needs_object=no
9814  enable_shared_with_static_runtimes=no
9815  export_dynamic_flag_spec=
9816  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9817  hardcode_automatic=no
9818  hardcode_direct=no
9819  hardcode_direct_absolute=no
9820  hardcode_libdir_flag_spec=
9821  hardcode_libdir_separator=
9822  hardcode_minus_L=no
9823  hardcode_shlibpath_var=unsupported
9824  inherit_rpath=no
9825  link_all_deplibs=unknown
9826  module_cmds=
9827  module_expsym_cmds=
9828  old_archive_from_new_cmds=
9829  old_archive_from_expsyms_cmds=
9830  thread_safe_flag_spec=
9831  whole_archive_flag_spec=
9832  # include_expsyms should be a list of space-separated symbols to be *always*
9833  # included in the symbol list
9834  include_expsyms=
9835  # exclude_expsyms can be an extended regexp of symbols to exclude
9836  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9837  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9838  # as well as any symbol that contains 'd'.
9839  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9840  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9841  # platforms (ab)use it in PIC code, but their linkers get confused if
9842  # the symbol is explicitly referenced.  Since portable code cannot
9843  # rely on this symbol name, it's probably fine to never include it in
9844  # preloaded symbol tables.
9845  # Exclude shared library initialization/finalization symbols.
9846  extract_expsyms_cmds=
9847
9848  case $host_os in
9849  cygwin* | mingw* | pw32* | cegcc*)
9850    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9851    # When not using gcc, we currently assume that we are using
9852    # Microsoft Visual C++.
9853    if test yes != "$GCC"; then
9854      with_gnu_ld=no
9855    fi
9856    ;;
9857  interix*)
9858    # we just hope/assume this is gcc and not c89 (= MSVC++)
9859    with_gnu_ld=yes
9860    ;;
9861  openbsd* | bitrig*)
9862    with_gnu_ld=no
9863    ;;
9864  esac
9865
9866  ld_shlibs=yes
9867
9868  # On some targets, GNU ld is compatible enough with the native linker
9869  # that we're better off using the native interface for both.
9870  lt_use_gnu_ld_interface=no
9871  if test yes = "$with_gnu_ld"; then
9872    case $host_os in
9873      aix*)
9874	# The AIX port of GNU ld has always aspired to compatibility
9875	# with the native linker.  However, as the warning in the GNU ld
9876	# block says, versions before 2.19.5* couldn't really create working
9877	# shared libraries, regardless of the interface used.
9878	case `$LD -v 2>&1` in
9879	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9880	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9881	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9882	  *)
9883	    lt_use_gnu_ld_interface=yes
9884	    ;;
9885	esac
9886	;;
9887      *)
9888	lt_use_gnu_ld_interface=yes
9889	;;
9890    esac
9891  fi
9892
9893  if test yes = "$lt_use_gnu_ld_interface"; then
9894    # If archive_cmds runs LD, not CC, wlarc should be empty
9895    wlarc='$wl'
9896
9897    # Set some defaults for GNU ld with shared library support. These
9898    # are reset later if shared libraries are not supported. Putting them
9899    # here allows them to be overridden if necessary.
9900    runpath_var=LD_RUN_PATH
9901    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9902    export_dynamic_flag_spec='$wl--export-dynamic'
9903    # ancient GNU ld didn't support --whole-archive et. al.
9904    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9905      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9906    else
9907      whole_archive_flag_spec=
9908    fi
9909    supports_anon_versioning=no
9910    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9911      *GNU\ gold*) supports_anon_versioning=yes ;;
9912      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9913      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9914      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9915      *\ 2.11.*) ;; # other 2.11 versions
9916      *) supports_anon_versioning=yes ;;
9917    esac
9918
9919    # See if GNU ld supports shared libraries.
9920    case $host_os in
9921    aix[3-9]*)
9922      # On AIX/PPC, the GNU linker is very broken
9923      if test ia64 != "$host_cpu"; then
9924	ld_shlibs=no
9925	cat <<_LT_EOF 1>&2
9926
9927*** Warning: the GNU linker, at least up to release 2.19, is reported
9928*** to be unable to reliably create shared libraries on AIX.
9929*** Therefore, libtool is disabling shared libraries support.  If you
9930*** really care for shared libraries, you may want to install binutils
9931*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9932*** You will then need to restart the configuration process.
9933
9934_LT_EOF
9935      fi
9936      ;;
9937
9938    amigaos*)
9939      case $host_cpu in
9940      powerpc)
9941            # see comment about AmigaOS4 .so support
9942            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9943            archive_expsym_cmds=''
9944        ;;
9945      m68k)
9946            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)'
9947            hardcode_libdir_flag_spec='-L$libdir'
9948            hardcode_minus_L=yes
9949        ;;
9950      esac
9951      ;;
9952
9953    beos*)
9954      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9955	allow_undefined_flag=unsupported
9956	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9957	# support --undefined.  This deserves some investigation.  FIXME
9958	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9959      else
9960	ld_shlibs=no
9961      fi
9962      ;;
9963
9964    cygwin* | mingw* | pw32* | cegcc*)
9965      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9966      # as there is no search path for DLLs.
9967      hardcode_libdir_flag_spec='-L$libdir'
9968      export_dynamic_flag_spec='$wl--export-all-symbols'
9969      allow_undefined_flag=unsupported
9970      always_export_symbols=no
9971      enable_shared_with_static_runtimes=yes
9972      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'
9973      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9974
9975      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9976        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9977	# If the export-symbols file already is a .def file, use it as
9978	# is; otherwise, prepend EXPORTS...
9979	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9980          cp $export_symbols $output_objdir/$soname.def;
9981        else
9982          echo EXPORTS > $output_objdir/$soname.def;
9983          cat $export_symbols >> $output_objdir/$soname.def;
9984        fi~
9985        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9986      else
9987	ld_shlibs=no
9988      fi
9989      ;;
9990
9991    haiku*)
9992      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9993      link_all_deplibs=yes
9994      ;;
9995
9996    os2*)
9997      hardcode_libdir_flag_spec='-L$libdir'
9998      hardcode_minus_L=yes
9999      allow_undefined_flag=unsupported
10000      shrext_cmds=.dll
10001      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10002	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10003	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10004	$ECHO EXPORTS >> $output_objdir/$libname.def~
10005	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10006	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10007	emximp -o $lib $output_objdir/$libname.def'
10008      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10009	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10010	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10011	$ECHO EXPORTS >> $output_objdir/$libname.def~
10012	prefix_cmds="$SED"~
10013	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10014	  prefix_cmds="$prefix_cmds -e 1d";
10015	fi~
10016	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10017	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10018	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10019	emximp -o $lib $output_objdir/$libname.def'
10020      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10021      enable_shared_with_static_runtimes=yes
10022      ;;
10023
10024    interix[3-9]*)
10025      hardcode_direct=no
10026      hardcode_shlibpath_var=no
10027      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10028      export_dynamic_flag_spec='$wl-E'
10029      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10030      # Instead, shared libraries are loaded at an image base (0x10000000 by
10031      # default) and relocated if they conflict, which is a slow very memory
10032      # consuming and fragmenting process.  To avoid this, we pick a random,
10033      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10034      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10035      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10036      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'
10037      ;;
10038
10039    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10040      tmp_diet=no
10041      if test linux-dietlibc = "$host_os"; then
10042	case $cc_basename in
10043	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10044	esac
10045      fi
10046      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10047	 && test no = "$tmp_diet"
10048      then
10049	tmp_addflag=' $pic_flag'
10050	tmp_sharedflag='-shared'
10051	case $cc_basename,$host_cpu in
10052        pgcc*)				# Portland Group C compiler
10053	  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'
10054	  tmp_addflag=' $pic_flag'
10055	  ;;
10056	pgf77* | pgf90* | pgf95* | pgfortran*)
10057					# Portland Group f77 and f90 compilers
10058	  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'
10059	  tmp_addflag=' $pic_flag -Mnomain' ;;
10060	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10061	  tmp_addflag=' -i_dynamic' ;;
10062	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10063	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10064	ifc* | ifort*)			# Intel Fortran compiler
10065	  tmp_addflag=' -nofor_main' ;;
10066	lf95*)				# Lahey Fortran 8.1
10067	  whole_archive_flag_spec=
10068	  tmp_sharedflag='--shared' ;;
10069        nagfor*)                        # NAGFOR 5.3
10070          tmp_sharedflag='-Wl,-shared' ;;
10071	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10072	  tmp_sharedflag='-qmkshrobj'
10073	  tmp_addflag= ;;
10074	nvcc*)	# Cuda Compiler Driver 2.2
10075	  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'
10076	  compiler_needs_object=yes
10077	  ;;
10078	esac
10079	case `$CC -V 2>&1 | sed 5q` in
10080	*Sun\ C*)			# Sun C 5.9
10081	  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'
10082	  compiler_needs_object=yes
10083	  tmp_sharedflag='-G' ;;
10084	*Sun\ F*)			# Sun Fortran 8.3
10085	  tmp_sharedflag='-G' ;;
10086	esac
10087	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10088
10089        if test yes = "$supports_anon_versioning"; then
10090          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10091            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10092            echo "local: *; };" >> $output_objdir/$libname.ver~
10093            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10094        fi
10095
10096	case $cc_basename in
10097	tcc*)
10098	  export_dynamic_flag_spec='-rdynamic'
10099	  ;;
10100	xlf* | bgf* | bgxlf* | mpixlf*)
10101	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10102	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10103	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10104	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10105	  if test yes = "$supports_anon_versioning"; then
10106	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10107              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10108              echo "local: *; };" >> $output_objdir/$libname.ver~
10109              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10110	  fi
10111	  ;;
10112	esac
10113      else
10114        ld_shlibs=no
10115      fi
10116      ;;
10117
10118    netbsd*)
10119      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10120	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10121	wlarc=
10122      else
10123	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10124	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10125      fi
10126      ;;
10127
10128    solaris*)
10129      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10130	ld_shlibs=no
10131	cat <<_LT_EOF 1>&2
10132
10133*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10134*** create shared libraries on Solaris systems.  Therefore, libtool
10135*** is disabling shared libraries support.  We urge you to upgrade GNU
10136*** binutils to release 2.9.1 or newer.  Another option is to modify
10137*** your PATH or compiler configuration so that the native linker is
10138*** used, and then restart.
10139
10140_LT_EOF
10141      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10142	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10143	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10144      else
10145	ld_shlibs=no
10146      fi
10147      ;;
10148
10149    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10150      case `$LD -v 2>&1` in
10151        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10152	ld_shlibs=no
10153	cat <<_LT_EOF 1>&2
10154
10155*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10156*** reliably create shared libraries on SCO systems.  Therefore, libtool
10157*** is disabling shared libraries support.  We urge you to upgrade GNU
10158*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10159*** your PATH or compiler configuration so that the native linker is
10160*** used, and then restart.
10161
10162_LT_EOF
10163	;;
10164	*)
10165	  # For security reasons, it is highly recommended that you always
10166	  # use absolute paths for naming shared libraries, and exclude the
10167	  # DT_RUNPATH tag from executables and libraries.  But doing so
10168	  # requires that you compile everything twice, which is a pain.
10169	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10170	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10171	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10172	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10173	  else
10174	    ld_shlibs=no
10175	  fi
10176	;;
10177      esac
10178      ;;
10179
10180    sunos4*)
10181      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10182      wlarc=
10183      hardcode_direct=yes
10184      hardcode_shlibpath_var=no
10185      ;;
10186
10187    *)
10188      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10190	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10191      else
10192	ld_shlibs=no
10193      fi
10194      ;;
10195    esac
10196
10197    if test no = "$ld_shlibs"; then
10198      runpath_var=
10199      hardcode_libdir_flag_spec=
10200      export_dynamic_flag_spec=
10201      whole_archive_flag_spec=
10202    fi
10203  else
10204    # PORTME fill in a description of your system's linker (not GNU ld)
10205    case $host_os in
10206    aix3*)
10207      allow_undefined_flag=unsupported
10208      always_export_symbols=yes
10209      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'
10210      # Note: this linker hardcodes the directories in LIBPATH if there
10211      # are no directories specified by -L.
10212      hardcode_minus_L=yes
10213      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10214	# Neither direct hardcoding nor static linking is supported with a
10215	# broken collect2.
10216	hardcode_direct=unsupported
10217      fi
10218      ;;
10219
10220    aix[4-9]*)
10221      if test ia64 = "$host_cpu"; then
10222	# On IA64, the linker does run time linking by default, so we don't
10223	# have to do anything special.
10224	aix_use_runtimelinking=no
10225	exp_sym_flag='-Bexport'
10226	no_entry_flag=
10227      else
10228	# If we're using GNU nm, then we don't want the "-C" option.
10229	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10230	# Without the "-l" option, or with the "-B" option, AIX nm treats
10231	# weak defined symbols like other global defined symbols, whereas
10232	# GNU nm marks them as "W".
10233	# While the 'weak' keyword is ignored in the Export File, we need
10234	# it in the Import File for the 'aix-soname' feature, so we have
10235	# to replace the "-B" option with "-P" for AIX nm.
10236	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10237	  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'
10238	else
10239	  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'
10240	fi
10241	aix_use_runtimelinking=no
10242
10243	# Test if we are trying to use run time linking or normal
10244	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10245	# have runtime linking enabled, and use it for executables.
10246	# For shared libraries, we enable/disable runtime linking
10247	# depending on the kind of the shared library created -
10248	# when "with_aix_soname,aix_use_runtimelinking" is:
10249	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10250	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10251	#            lib.a           static archive
10252	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10253	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10254	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10255	#            lib.a(lib.so.V) shared, rtl:no
10256	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10257	#            lib.a           static archive
10258	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10259	  for ld_flag in $LDFLAGS; do
10260	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10261	    aix_use_runtimelinking=yes
10262	    break
10263	  fi
10264	  done
10265	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10266	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10267	    # so we don't have lib.a shared libs to link our executables.
10268	    # We have to force runtime linking in this case.
10269	    aix_use_runtimelinking=yes
10270	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10271	  fi
10272	  ;;
10273	esac
10274
10275	exp_sym_flag='-bexport'
10276	no_entry_flag='-bnoentry'
10277      fi
10278
10279      # When large executables or shared objects are built, AIX ld can
10280      # have problems creating the table of contents.  If linking a library
10281      # or program results in "error TOC overflow" add -mminimal-toc to
10282      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10283      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10284
10285      archive_cmds=''
10286      hardcode_direct=yes
10287      hardcode_direct_absolute=yes
10288      hardcode_libdir_separator=':'
10289      link_all_deplibs=yes
10290      file_list_spec='$wl-f,'
10291      case $with_aix_soname,$aix_use_runtimelinking in
10292      aix,*) ;; # traditional, no import file
10293      svr4,* | *,yes) # use import file
10294	# The Import File defines what to hardcode.
10295	hardcode_direct=no
10296	hardcode_direct_absolute=no
10297	;;
10298      esac
10299
10300      if test yes = "$GCC"; then
10301	case $host_os in aix4.[012]|aix4.[012].*)
10302	# We only want to do this on AIX 4.2 and lower, the check
10303	# below for broken collect2 doesn't work under 4.3+
10304	  collect2name=`$CC -print-prog-name=collect2`
10305	  if test -f "$collect2name" &&
10306	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10307	  then
10308	  # We have reworked collect2
10309	  :
10310	  else
10311	  # We have old collect2
10312	  hardcode_direct=unsupported
10313	  # It fails to find uninstalled libraries when the uninstalled
10314	  # path is not listed in the libpath.  Setting hardcode_minus_L
10315	  # to unsupported forces relinking
10316	  hardcode_minus_L=yes
10317	  hardcode_libdir_flag_spec='-L$libdir'
10318	  hardcode_libdir_separator=
10319	  fi
10320	  ;;
10321	esac
10322	shared_flag='-shared'
10323	if test yes = "$aix_use_runtimelinking"; then
10324	  shared_flag="$shared_flag "'$wl-G'
10325	fi
10326	# Need to ensure runtime linking is disabled for the traditional
10327	# shared library, or the linker may eventually find shared libraries
10328	# /with/ Import File - we do not want to mix them.
10329	shared_flag_aix='-shared'
10330	shared_flag_svr4='-shared $wl-G'
10331      else
10332	# not using gcc
10333	if test ia64 = "$host_cpu"; then
10334	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10335	# chokes on -Wl,-G. The following line is correct:
10336	  shared_flag='-G'
10337	else
10338	  if test yes = "$aix_use_runtimelinking"; then
10339	    shared_flag='$wl-G'
10340	  else
10341	    shared_flag='$wl-bM:SRE'
10342	  fi
10343	  shared_flag_aix='$wl-bM:SRE'
10344	  shared_flag_svr4='$wl-G'
10345	fi
10346      fi
10347
10348      export_dynamic_flag_spec='$wl-bexpall'
10349      # It seems that -bexpall does not export symbols beginning with
10350      # underscore (_), so it is better to generate a list of symbols to export.
10351      always_export_symbols=yes
10352      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10353	# Warning - without using the other runtime loading flags (-brtl),
10354	# -berok will link without error, but may produce a broken library.
10355	allow_undefined_flag='-berok'
10356        # Determine the default libpath from the value encoded in an
10357        # empty executable.
10358        if test set = "${lt_cv_aix_libpath+set}"; then
10359  aix_libpath=$lt_cv_aix_libpath
10360else
10361  if ${lt_cv_aix_libpath_+:} false; then :
10362  $as_echo_n "(cached) " >&6
10363else
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366
10367int
10368main ()
10369{
10370
10371  ;
10372  return 0;
10373}
10374_ACEOF
10375if ac_fn_c_try_link "$LINENO"; then :
10376
10377  lt_aix_libpath_sed='
10378      /Import File Strings/,/^$/ {
10379	  /^0/ {
10380	      s/^0  *\([^ ]*\) *$/\1/
10381	      p
10382	  }
10383      }'
10384  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10385  # Check for a 64-bit object if we didn't find anything.
10386  if test -z "$lt_cv_aix_libpath_"; then
10387    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10388  fi
10389fi
10390rm -f core conftest.err conftest.$ac_objext \
10391    conftest$ac_exeext conftest.$ac_ext
10392  if test -z "$lt_cv_aix_libpath_"; then
10393    lt_cv_aix_libpath_=/usr/lib:/lib
10394  fi
10395
10396fi
10397
10398  aix_libpath=$lt_cv_aix_libpath_
10399fi
10400
10401        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10402        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
10403      else
10404	if test ia64 = "$host_cpu"; then
10405	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10406	  allow_undefined_flag="-z nodefs"
10407	  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"
10408	else
10409	 # Determine the default libpath from the value encoded in an
10410	 # empty executable.
10411	 if test set = "${lt_cv_aix_libpath+set}"; then
10412  aix_libpath=$lt_cv_aix_libpath
10413else
10414  if ${lt_cv_aix_libpath_+:} false; then :
10415  $as_echo_n "(cached) " >&6
10416else
10417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h.  */
10419
10420int
10421main ()
10422{
10423
10424  ;
10425  return 0;
10426}
10427_ACEOF
10428if ac_fn_c_try_link "$LINENO"; then :
10429
10430  lt_aix_libpath_sed='
10431      /Import File Strings/,/^$/ {
10432	  /^0/ {
10433	      s/^0  *\([^ ]*\) *$/\1/
10434	      p
10435	  }
10436      }'
10437  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10438  # Check for a 64-bit object if we didn't find anything.
10439  if test -z "$lt_cv_aix_libpath_"; then
10440    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10441  fi
10442fi
10443rm -f core conftest.err conftest.$ac_objext \
10444    conftest$ac_exeext conftest.$ac_ext
10445  if test -z "$lt_cv_aix_libpath_"; then
10446    lt_cv_aix_libpath_=/usr/lib:/lib
10447  fi
10448
10449fi
10450
10451  aix_libpath=$lt_cv_aix_libpath_
10452fi
10453
10454	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10455	  # Warning - without using the other run time loading flags,
10456	  # -berok will link without error, but may produce a broken library.
10457	  no_undefined_flag=' $wl-bernotok'
10458	  allow_undefined_flag=' $wl-berok'
10459	  if test yes = "$with_gnu_ld"; then
10460	    # We only use this code for GNU lds that support --whole-archive.
10461	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10462	  else
10463	    # Exported symbols can be pulled into shared objects from archives
10464	    whole_archive_flag_spec='$convenience'
10465	  fi
10466	  archive_cmds_need_lc=yes
10467	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10468	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10469	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10470	  if test svr4 != "$with_aix_soname"; then
10471	    # This is similar to how AIX traditionally builds its shared libraries.
10472	    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'
10473	  fi
10474	  if test aix != "$with_aix_soname"; then
10475	    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'
10476	  else
10477	    # used by -dlpreopen to get the symbols
10478	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10479	  fi
10480	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10481	fi
10482      fi
10483      ;;
10484
10485    amigaos*)
10486      case $host_cpu in
10487      powerpc)
10488            # see comment about AmigaOS4 .so support
10489            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10490            archive_expsym_cmds=''
10491        ;;
10492      m68k)
10493            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)'
10494            hardcode_libdir_flag_spec='-L$libdir'
10495            hardcode_minus_L=yes
10496        ;;
10497      esac
10498      ;;
10499
10500    bsdi[45]*)
10501      export_dynamic_flag_spec=-rdynamic
10502      ;;
10503
10504    cygwin* | mingw* | pw32* | cegcc*)
10505      # When not using gcc, we currently assume that we are using
10506      # Microsoft Visual C++.
10507      # hardcode_libdir_flag_spec is actually meaningless, as there is
10508      # no search path for DLLs.
10509      case $cc_basename in
10510      cl*)
10511	# Native MSVC
10512	hardcode_libdir_flag_spec=' '
10513	allow_undefined_flag=unsupported
10514	always_export_symbols=yes
10515	file_list_spec='@'
10516	# Tell ltmain to make .lib files, not .a files.
10517	libext=lib
10518	# Tell ltmain to make .dll files, not .so files.
10519	shrext_cmds=.dll
10520	# FIXME: Setting linknames here is a bad hack.
10521	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10522	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10523            cp "$export_symbols" "$output_objdir/$soname.def";
10524            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10525          else
10526            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10527          fi~
10528          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10529          linknames='
10530	# The linker will not automatically build a static lib if we build a DLL.
10531	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10532	enable_shared_with_static_runtimes=yes
10533	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10534	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10535	# Don't use ranlib
10536	old_postinstall_cmds='chmod 644 $oldlib'
10537	postlink_cmds='lt_outputfile="@OUTPUT@"~
10538          lt_tool_outputfile="@TOOL_OUTPUT@"~
10539          case $lt_outputfile in
10540            *.exe|*.EXE) ;;
10541            *)
10542              lt_outputfile=$lt_outputfile.exe
10543              lt_tool_outputfile=$lt_tool_outputfile.exe
10544              ;;
10545          esac~
10546          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10547            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10548            $RM "$lt_outputfile.manifest";
10549          fi'
10550	;;
10551      *)
10552	# Assume MSVC wrapper
10553	hardcode_libdir_flag_spec=' '
10554	allow_undefined_flag=unsupported
10555	# Tell ltmain to make .lib files, not .a files.
10556	libext=lib
10557	# Tell ltmain to make .dll files, not .so files.
10558	shrext_cmds=.dll
10559	# FIXME: Setting linknames here is a bad hack.
10560	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10561	# The linker will automatically build a .lib file if we build a DLL.
10562	old_archive_from_new_cmds='true'
10563	# FIXME: Should let the user specify the lib program.
10564	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10565	enable_shared_with_static_runtimes=yes
10566	;;
10567      esac
10568      ;;
10569
10570    darwin* | rhapsody*)
10571
10572
10573  archive_cmds_need_lc=no
10574  hardcode_direct=no
10575  hardcode_automatic=yes
10576  hardcode_shlibpath_var=unsupported
10577  if test yes = "$lt_cv_ld_force_load"; then
10578    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\"`'
10579
10580  else
10581    whole_archive_flag_spec=''
10582  fi
10583  link_all_deplibs=yes
10584  allow_undefined_flag=$_lt_dar_allow_undefined
10585  case $cc_basename in
10586     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10587     *) _lt_dar_can_shared=$GCC ;;
10588  esac
10589  if test yes = "$_lt_dar_can_shared"; then
10590    output_verbose_link_cmd=func_echo_all
10591    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10592    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10593    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"
10594    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"
10595
10596  else
10597  ld_shlibs=no
10598  fi
10599
10600      ;;
10601
10602    dgux*)
10603      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10604      hardcode_libdir_flag_spec='-L$libdir'
10605      hardcode_shlibpath_var=no
10606      ;;
10607
10608    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10609    # support.  Future versions do this automatically, but an explicit c++rt0.o
10610    # does not break anything, and helps significantly (at the cost of a little
10611    # extra space).
10612    freebsd2.2*)
10613      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10614      hardcode_libdir_flag_spec='-R$libdir'
10615      hardcode_direct=yes
10616      hardcode_shlibpath_var=no
10617      ;;
10618
10619    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10620    freebsd2.*)
10621      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10622      hardcode_direct=yes
10623      hardcode_minus_L=yes
10624      hardcode_shlibpath_var=no
10625      ;;
10626
10627    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10628    freebsd* | dragonfly*)
10629      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10630      hardcode_libdir_flag_spec='-R$libdir'
10631      hardcode_direct=yes
10632      hardcode_shlibpath_var=no
10633      ;;
10634
10635    hpux9*)
10636      if test yes = "$GCC"; then
10637	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'
10638      else
10639	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'
10640      fi
10641      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10642      hardcode_libdir_separator=:
10643      hardcode_direct=yes
10644
10645      # hardcode_minus_L: Not really in the search PATH,
10646      # but as the default location of the library.
10647      hardcode_minus_L=yes
10648      export_dynamic_flag_spec='$wl-E'
10649      ;;
10650
10651    hpux10*)
10652      if test yes,no = "$GCC,$with_gnu_ld"; then
10653	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10654      else
10655	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10656      fi
10657      if test no = "$with_gnu_ld"; then
10658	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10659	hardcode_libdir_separator=:
10660	hardcode_direct=yes
10661	hardcode_direct_absolute=yes
10662	export_dynamic_flag_spec='$wl-E'
10663	# hardcode_minus_L: Not really in the search PATH,
10664	# but as the default location of the library.
10665	hardcode_minus_L=yes
10666      fi
10667      ;;
10668
10669    hpux11*)
10670      if test yes,no = "$GCC,$with_gnu_ld"; then
10671	case $host_cpu in
10672	hppa*64*)
10673	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10674	  ;;
10675	ia64*)
10676	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10677	  ;;
10678	*)
10679	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10680	  ;;
10681	esac
10682      else
10683	case $host_cpu in
10684	hppa*64*)
10685	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10686	  ;;
10687	ia64*)
10688	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10689	  ;;
10690	*)
10691
10692	  # Older versions of the 11.00 compiler do not understand -b yet
10693	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10694	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10695$as_echo_n "checking if $CC understands -b... " >&6; }
10696if ${lt_cv_prog_compiler__b+:} false; then :
10697  $as_echo_n "(cached) " >&6
10698else
10699  lt_cv_prog_compiler__b=no
10700   save_LDFLAGS=$LDFLAGS
10701   LDFLAGS="$LDFLAGS -b"
10702   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10703   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10704     # The linker can only warn and ignore the option if not recognized
10705     # So say no if there are warnings
10706     if test -s conftest.err; then
10707       # Append any errors to the config.log.
10708       cat conftest.err 1>&5
10709       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10710       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10711       if diff conftest.exp conftest.er2 >/dev/null; then
10712         lt_cv_prog_compiler__b=yes
10713       fi
10714     else
10715       lt_cv_prog_compiler__b=yes
10716     fi
10717   fi
10718   $RM -r conftest*
10719   LDFLAGS=$save_LDFLAGS
10720
10721fi
10722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10723$as_echo "$lt_cv_prog_compiler__b" >&6; }
10724
10725if test yes = "$lt_cv_prog_compiler__b"; then
10726    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10727else
10728    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10729fi
10730
10731	  ;;
10732	esac
10733      fi
10734      if test no = "$with_gnu_ld"; then
10735	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10736	hardcode_libdir_separator=:
10737
10738	case $host_cpu in
10739	hppa*64*|ia64*)
10740	  hardcode_direct=no
10741	  hardcode_shlibpath_var=no
10742	  ;;
10743	*)
10744	  hardcode_direct=yes
10745	  hardcode_direct_absolute=yes
10746	  export_dynamic_flag_spec='$wl-E'
10747
10748	  # hardcode_minus_L: Not really in the search PATH,
10749	  # but as the default location of the library.
10750	  hardcode_minus_L=yes
10751	  ;;
10752	esac
10753      fi
10754      ;;
10755
10756    irix5* | irix6* | nonstopux*)
10757      if test yes = "$GCC"; then
10758	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'
10759	# Try to use the -exported_symbol ld option, if it does not
10760	# work, assume that -exports_file does not work either and
10761	# implicitly export all symbols.
10762	# This should be the same for all languages, so no per-tag cache variable.
10763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10764$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10765if ${lt_cv_irix_exported_symbol+:} false; then :
10766  $as_echo_n "(cached) " >&6
10767else
10768  save_LDFLAGS=$LDFLAGS
10769	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10770	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772int foo (void) { return 0; }
10773_ACEOF
10774if ac_fn_c_try_link "$LINENO"; then :
10775  lt_cv_irix_exported_symbol=yes
10776else
10777  lt_cv_irix_exported_symbol=no
10778fi
10779rm -f core conftest.err conftest.$ac_objext \
10780    conftest$ac_exeext conftest.$ac_ext
10781           LDFLAGS=$save_LDFLAGS
10782fi
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10784$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10785	if test yes = "$lt_cv_irix_exported_symbol"; then
10786          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'
10787	fi
10788      else
10789	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'
10790	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'
10791      fi
10792      archive_cmds_need_lc='no'
10793      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10794      hardcode_libdir_separator=:
10795      inherit_rpath=yes
10796      link_all_deplibs=yes
10797      ;;
10798
10799    linux*)
10800      case $cc_basename in
10801      tcc*)
10802	# Fabrice Bellard et al's Tiny C Compiler
10803	ld_shlibs=yes
10804	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10805	;;
10806      esac
10807      ;;
10808
10809    netbsd*)
10810      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10811	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10812      else
10813	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10814      fi
10815      hardcode_libdir_flag_spec='-R$libdir'
10816      hardcode_direct=yes
10817      hardcode_shlibpath_var=no
10818      ;;
10819
10820    newsos6)
10821      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822      hardcode_direct=yes
10823      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10824      hardcode_libdir_separator=:
10825      hardcode_shlibpath_var=no
10826      ;;
10827
10828    *nto* | *qnx*)
10829      ;;
10830
10831    openbsd* | bitrig*)
10832      if test -f /usr/libexec/ld.so; then
10833	hardcode_direct=yes
10834	hardcode_shlibpath_var=no
10835	hardcode_direct_absolute=yes
10836	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10837	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10838	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10839	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10840	  export_dynamic_flag_spec='$wl-E'
10841	else
10842	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10844	fi
10845      else
10846	ld_shlibs=no
10847      fi
10848      ;;
10849
10850    os2*)
10851      hardcode_libdir_flag_spec='-L$libdir'
10852      hardcode_minus_L=yes
10853      allow_undefined_flag=unsupported
10854      shrext_cmds=.dll
10855      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10856	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10857	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10858	$ECHO EXPORTS >> $output_objdir/$libname.def~
10859	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10860	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10861	emximp -o $lib $output_objdir/$libname.def'
10862      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10863	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10864	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10865	$ECHO EXPORTS >> $output_objdir/$libname.def~
10866	prefix_cmds="$SED"~
10867	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10868	  prefix_cmds="$prefix_cmds -e 1d";
10869	fi~
10870	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10871	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10872	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10873	emximp -o $lib $output_objdir/$libname.def'
10874      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10875      enable_shared_with_static_runtimes=yes
10876      ;;
10877
10878    osf3*)
10879      if test yes = "$GCC"; then
10880	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10881	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'
10882      else
10883	allow_undefined_flag=' -expect_unresolved \*'
10884	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'
10885      fi
10886      archive_cmds_need_lc='no'
10887      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10888      hardcode_libdir_separator=:
10889      ;;
10890
10891    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10892      if test yes = "$GCC"; then
10893	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10894	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'
10895	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10896      else
10897	allow_undefined_flag=' -expect_unresolved \*'
10898	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'
10899	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~
10900          $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'
10901
10902	# Both c and cxx compiler support -rpath directly
10903	hardcode_libdir_flag_spec='-rpath $libdir'
10904      fi
10905      archive_cmds_need_lc='no'
10906      hardcode_libdir_separator=:
10907      ;;
10908
10909    solaris*)
10910      no_undefined_flag=' -z defs'
10911      if test yes = "$GCC"; then
10912	wlarc='$wl'
10913	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10914	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915          $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'
10916      else
10917	case `$CC -V 2>&1` in
10918	*"Compilers 5.0"*)
10919	  wlarc=''
10920	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10921	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10922            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10923	  ;;
10924	*)
10925	  wlarc='$wl'
10926	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10927	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10928            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10929	  ;;
10930	esac
10931      fi
10932      hardcode_libdir_flag_spec='-R$libdir'
10933      hardcode_shlibpath_var=no
10934      case $host_os in
10935      solaris2.[0-5] | solaris2.[0-5].*) ;;
10936      *)
10937	# The compiler driver will combine and reorder linker options,
10938	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10939	# but is careful enough not to reorder.
10940	# Supported since Solaris 2.6 (maybe 2.5.1?)
10941	if test yes = "$GCC"; then
10942	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10943	else
10944	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10945	fi
10946	;;
10947      esac
10948      link_all_deplibs=yes
10949      ;;
10950
10951    sunos4*)
10952      if test sequent = "$host_vendor"; then
10953	# Use $CC to link under sequent, because it throws in some extra .o
10954	# files that make .init and .fini sections work.
10955	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10956      else
10957	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10958      fi
10959      hardcode_libdir_flag_spec='-L$libdir'
10960      hardcode_direct=yes
10961      hardcode_minus_L=yes
10962      hardcode_shlibpath_var=no
10963      ;;
10964
10965    sysv4)
10966      case $host_vendor in
10967	sni)
10968	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969	  hardcode_direct=yes # is this really true???
10970	;;
10971	siemens)
10972	  ## LD is ld it makes a PLAMLIB
10973	  ## CC just makes a GrossModule.
10974	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10975	  reload_cmds='$CC -r -o $output$reload_objs'
10976	  hardcode_direct=no
10977        ;;
10978	motorola)
10979	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10981	;;
10982      esac
10983      runpath_var='LD_RUN_PATH'
10984      hardcode_shlibpath_var=no
10985      ;;
10986
10987    sysv4.3*)
10988      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989      hardcode_shlibpath_var=no
10990      export_dynamic_flag_spec='-Bexport'
10991      ;;
10992
10993    sysv4*MP*)
10994      if test -d /usr/nec; then
10995	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10996	hardcode_shlibpath_var=no
10997	runpath_var=LD_RUN_PATH
10998	hardcode_runpath_var=yes
10999	ld_shlibs=yes
11000      fi
11001      ;;
11002
11003    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11004      no_undefined_flag='$wl-z,text'
11005      archive_cmds_need_lc=no
11006      hardcode_shlibpath_var=no
11007      runpath_var='LD_RUN_PATH'
11008
11009      if test yes = "$GCC"; then
11010	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11011	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012      else
11013	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015      fi
11016      ;;
11017
11018    sysv5* | sco3.2v5* | sco5v6*)
11019      # Note: We CANNOT use -z defs as we might desire, because we do not
11020      # link with -lc, and that would cause any symbols used from libc to
11021      # always be unresolved, which means just about no library would
11022      # ever link correctly.  If we're not using GNU ld we use -z text
11023      # though, which does catch some bad symbols but isn't as heavy-handed
11024      # as -z defs.
11025      no_undefined_flag='$wl-z,text'
11026      allow_undefined_flag='$wl-z,nodefs'
11027      archive_cmds_need_lc=no
11028      hardcode_shlibpath_var=no
11029      hardcode_libdir_flag_spec='$wl-R,$libdir'
11030      hardcode_libdir_separator=':'
11031      link_all_deplibs=yes
11032      export_dynamic_flag_spec='$wl-Bexport'
11033      runpath_var='LD_RUN_PATH'
11034
11035      if test yes = "$GCC"; then
11036	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038      else
11039	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041      fi
11042      ;;
11043
11044    uts4*)
11045      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11046      hardcode_libdir_flag_spec='-L$libdir'
11047      hardcode_shlibpath_var=no
11048      ;;
11049
11050    *)
11051      ld_shlibs=no
11052      ;;
11053    esac
11054
11055    if test sni = "$host_vendor"; then
11056      case $host in
11057      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11058	export_dynamic_flag_spec='$wl-Blargedynsym'
11059	;;
11060      esac
11061    fi
11062  fi
11063
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11065$as_echo "$ld_shlibs" >&6; }
11066test no = "$ld_shlibs" && can_build_shared=no
11067
11068with_gnu_ld=$with_gnu_ld
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084#
11085# Do we need to explicitly link libc?
11086#
11087case "x$archive_cmds_need_lc" in
11088x|xyes)
11089  # Assume -lc should be added
11090  archive_cmds_need_lc=yes
11091
11092  if test yes,yes = "$GCC,$enable_shared"; then
11093    case $archive_cmds in
11094    *'~'*)
11095      # FIXME: we may have to deal with multi-command sequences.
11096      ;;
11097    '$CC '*)
11098      # Test whether the compiler implicitly links with -lc since on some
11099      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11100      # to ld, don't add -lc before -lgcc.
11101      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11102$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11103if ${lt_cv_archive_cmds_need_lc+:} false; then :
11104  $as_echo_n "(cached) " >&6
11105else
11106  $RM conftest*
11107	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11108
11109	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11110  (eval $ac_compile) 2>&5
11111  ac_status=$?
11112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11113  test $ac_status = 0; } 2>conftest.err; then
11114	  soname=conftest
11115	  lib=conftest
11116	  libobjs=conftest.$ac_objext
11117	  deplibs=
11118	  wl=$lt_prog_compiler_wl
11119	  pic_flag=$lt_prog_compiler_pic
11120	  compiler_flags=-v
11121	  linker_flags=-v
11122	  verstring=
11123	  output_objdir=.
11124	  libname=conftest
11125	  lt_save_allow_undefined_flag=$allow_undefined_flag
11126	  allow_undefined_flag=
11127	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11128  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11129  ac_status=$?
11130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11131  test $ac_status = 0; }
11132	  then
11133	    lt_cv_archive_cmds_need_lc=no
11134	  else
11135	    lt_cv_archive_cmds_need_lc=yes
11136	  fi
11137	  allow_undefined_flag=$lt_save_allow_undefined_flag
11138	else
11139	  cat conftest.err 1>&5
11140	fi
11141	$RM conftest*
11142
11143fi
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11145$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11146      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11147      ;;
11148    esac
11149  fi
11150  ;;
11151esac
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11305$as_echo_n "checking dynamic linker characteristics... " >&6; }
11306
11307if test yes = "$GCC"; then
11308  case $host_os in
11309    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11310    *) lt_awk_arg='/^libraries:/' ;;
11311  esac
11312  case $host_os in
11313    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11314    *) lt_sed_strip_eq='s|=/|/|g' ;;
11315  esac
11316  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11317  case $lt_search_path_spec in
11318  *\;*)
11319    # if the path contains ";" then we assume it to be the separator
11320    # otherwise default to the standard path separator (i.e. ":") - it is
11321    # assumed that no part of a normal pathname contains ";" but that should
11322    # okay in the real world where ";" in dirpaths is itself problematic.
11323    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11324    ;;
11325  *)
11326    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11327    ;;
11328  esac
11329  # Ok, now we have the path, separated by spaces, we can step through it
11330  # and add multilib dir if necessary...
11331  lt_tmp_lt_search_path_spec=
11332  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11333  # ...but if some path component already ends with the multilib dir we assume
11334  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11335  case "$lt_multi_os_dir; $lt_search_path_spec " in
11336  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11337    lt_multi_os_dir=
11338    ;;
11339  esac
11340  for lt_sys_path in $lt_search_path_spec; do
11341    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11342      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11343    elif test -n "$lt_multi_os_dir"; then
11344      test -d "$lt_sys_path" && \
11345	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11346    fi
11347  done
11348  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11349BEGIN {RS = " "; FS = "/|\n";} {
11350  lt_foo = "";
11351  lt_count = 0;
11352  for (lt_i = NF; lt_i > 0; lt_i--) {
11353    if ($lt_i != "" && $lt_i != ".") {
11354      if ($lt_i == "..") {
11355        lt_count++;
11356      } else {
11357        if (lt_count == 0) {
11358          lt_foo = "/" $lt_i lt_foo;
11359        } else {
11360          lt_count--;
11361        }
11362      }
11363    }
11364  }
11365  if (lt_foo != "") { lt_freq[lt_foo]++; }
11366  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11367}'`
11368  # AWK program above erroneously prepends '/' to C:/dos/paths
11369  # for these hosts.
11370  case $host_os in
11371    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11372      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11373  esac
11374  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11375else
11376  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11377fi
11378library_names_spec=
11379libname_spec='lib$name'
11380soname_spec=
11381shrext_cmds=.so
11382postinstall_cmds=
11383postuninstall_cmds=
11384finish_cmds=
11385finish_eval=
11386shlibpath_var=
11387shlibpath_overrides_runpath=unknown
11388version_type=none
11389dynamic_linker="$host_os ld.so"
11390sys_lib_dlsearch_path_spec="/lib /usr/lib"
11391need_lib_prefix=unknown
11392hardcode_into_libs=no
11393
11394# when you set need_version to no, make sure it does not cause -set_version
11395# flags to be left without arguments
11396need_version=unknown
11397
11398
11399
11400case $host_os in
11401aix3*)
11402  version_type=linux # correct to gnu/linux during the next big refactor
11403  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11404  shlibpath_var=LIBPATH
11405
11406  # AIX 3 has no versioning support, so we append a major version to the name.
11407  soname_spec='$libname$release$shared_ext$major'
11408  ;;
11409
11410aix[4-9]*)
11411  version_type=linux # correct to gnu/linux during the next big refactor
11412  need_lib_prefix=no
11413  need_version=no
11414  hardcode_into_libs=yes
11415  if test ia64 = "$host_cpu"; then
11416    # AIX 5 supports IA64
11417    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11418    shlibpath_var=LD_LIBRARY_PATH
11419  else
11420    # With GCC up to 2.95.x, collect2 would create an import file
11421    # for dependence libraries.  The import file would start with
11422    # the line '#! .'.  This would cause the generated library to
11423    # depend on '.', always an invalid library.  This was fixed in
11424    # development snapshots of GCC prior to 3.0.
11425    case $host_os in
11426      aix4 | aix4.[01] | aix4.[01].*)
11427      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11428	   echo ' yes '
11429	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11430	:
11431      else
11432	can_build_shared=no
11433      fi
11434      ;;
11435    esac
11436    # Using Import Files as archive members, it is possible to support
11437    # filename-based versioning of shared library archives on AIX. While
11438    # this would work for both with and without runtime linking, it will
11439    # prevent static linking of such archives. So we do filename-based
11440    # shared library versioning with .so extension only, which is used
11441    # when both runtime linking and shared linking is enabled.
11442    # Unfortunately, runtime linking may impact performance, so we do
11443    # not want this to be the default eventually. Also, we use the
11444    # versioned .so libs for executables only if there is the -brtl
11445    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11446    # To allow for filename-based versioning support, we need to create
11447    # libNAME.so.V as an archive file, containing:
11448    # *) an Import File, referring to the versioned filename of the
11449    #    archive as well as the shared archive member, telling the
11450    #    bitwidth (32 or 64) of that shared object, and providing the
11451    #    list of exported symbols of that shared object, eventually
11452    #    decorated with the 'weak' keyword
11453    # *) the shared object with the F_LOADONLY flag set, to really avoid
11454    #    it being seen by the linker.
11455    # At run time we better use the real file rather than another symlink,
11456    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11457
11458    case $with_aix_soname,$aix_use_runtimelinking in
11459    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11460    # soname into executable. Probably we can add versioning support to
11461    # collect2, so additional links can be useful in future.
11462    aix,yes) # traditional libtool
11463      dynamic_linker='AIX unversionable lib.so'
11464      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11465      # instead of lib<name>.a to let people know that these are not
11466      # typical AIX shared libraries.
11467      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11468      ;;
11469    aix,no) # traditional AIX only
11470      dynamic_linker='AIX lib.a(lib.so.V)'
11471      # We preserve .a as extension for shared libraries through AIX4.2
11472      # and later when we are not doing run time linking.
11473      library_names_spec='$libname$release.a $libname.a'
11474      soname_spec='$libname$release$shared_ext$major'
11475      ;;
11476    svr4,*) # full svr4 only
11477      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11478      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11479      # We do not specify a path in Import Files, so LIBPATH fires.
11480      shlibpath_overrides_runpath=yes
11481      ;;
11482    *,yes) # both, prefer svr4
11483      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11484      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11485      # unpreferred sharedlib libNAME.a needs extra handling
11486      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"'
11487      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"'
11488      # We do not specify a path in Import Files, so LIBPATH fires.
11489      shlibpath_overrides_runpath=yes
11490      ;;
11491    *,no) # both, prefer aix
11492      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11493      library_names_spec='$libname$release.a $libname.a'
11494      soname_spec='$libname$release$shared_ext$major'
11495      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11496      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)'
11497      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"'
11498      ;;
11499    esac
11500    shlibpath_var=LIBPATH
11501  fi
11502  ;;
11503
11504amigaos*)
11505  case $host_cpu in
11506  powerpc)
11507    # Since July 2007 AmigaOS4 officially supports .so libraries.
11508    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11509    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11510    ;;
11511  m68k)
11512    library_names_spec='$libname.ixlibrary $libname.a'
11513    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11514    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'
11515    ;;
11516  esac
11517  ;;
11518
11519beos*)
11520  library_names_spec='$libname$shared_ext'
11521  dynamic_linker="$host_os ld.so"
11522  shlibpath_var=LIBRARY_PATH
11523  ;;
11524
11525bsdi[45]*)
11526  version_type=linux # correct to gnu/linux during the next big refactor
11527  need_version=no
11528  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11529  soname_spec='$libname$release$shared_ext$major'
11530  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11531  shlibpath_var=LD_LIBRARY_PATH
11532  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11533  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11534  # the default ld.so.conf also contains /usr/contrib/lib and
11535  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11536  # libtool to hard-code these into programs
11537  ;;
11538
11539cygwin* | mingw* | pw32* | cegcc*)
11540  version_type=windows
11541  shrext_cmds=.dll
11542  need_version=no
11543  need_lib_prefix=no
11544
11545  case $GCC,$cc_basename in
11546  yes,*)
11547    # gcc
11548    library_names_spec='$libname.dll.a'
11549    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11550    postinstall_cmds='base_file=`basename \$file`~
11551      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11552      dldir=$destdir/`dirname \$dlpath`~
11553      test -d \$dldir || mkdir -p \$dldir~
11554      $install_prog $dir/$dlname \$dldir/$dlname~
11555      chmod a+x \$dldir/$dlname~
11556      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11557        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11558      fi'
11559    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11560      dlpath=$dir/\$dldll~
11561       $RM \$dlpath'
11562    shlibpath_overrides_runpath=yes
11563
11564    case $host_os in
11565    cygwin*)
11566      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11567      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11568
11569      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11570      ;;
11571    mingw* | cegcc*)
11572      # MinGW DLLs use traditional 'lib' prefix
11573      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11574      ;;
11575    pw32*)
11576      # pw32 DLLs use 'pw' prefix rather than 'lib'
11577      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11578      ;;
11579    esac
11580    dynamic_linker='Win32 ld.exe'
11581    ;;
11582
11583  *,cl*)
11584    # Native MSVC
11585    libname_spec='$name'
11586    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11587    library_names_spec='$libname.dll.lib'
11588
11589    case $build_os in
11590    mingw*)
11591      sys_lib_search_path_spec=
11592      lt_save_ifs=$IFS
11593      IFS=';'
11594      for lt_path in $LIB
11595      do
11596        IFS=$lt_save_ifs
11597        # Let DOS variable expansion print the short 8.3 style file name.
11598        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11599        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11600      done
11601      IFS=$lt_save_ifs
11602      # Convert to MSYS style.
11603      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11604      ;;
11605    cygwin*)
11606      # Convert to unix form, then to dos form, then back to unix form
11607      # but this time dos style (no spaces!) so that the unix form looks
11608      # like /cygdrive/c/PROGRA~1:/cygdr...
11609      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11610      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11611      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11612      ;;
11613    *)
11614      sys_lib_search_path_spec=$LIB
11615      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11616        # It is most probably a Windows format PATH.
11617        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11618      else
11619        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11620      fi
11621      # FIXME: find the short name or the path components, as spaces are
11622      # common. (e.g. "Program Files" -> "PROGRA~1")
11623      ;;
11624    esac
11625
11626    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11627    postinstall_cmds='base_file=`basename \$file`~
11628      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11629      dldir=$destdir/`dirname \$dlpath`~
11630      test -d \$dldir || mkdir -p \$dldir~
11631      $install_prog $dir/$dlname \$dldir/$dlname'
11632    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11633      dlpath=$dir/\$dldll~
11634       $RM \$dlpath'
11635    shlibpath_overrides_runpath=yes
11636    dynamic_linker='Win32 link.exe'
11637    ;;
11638
11639  *)
11640    # Assume MSVC wrapper
11641    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11642    dynamic_linker='Win32 ld.exe'
11643    ;;
11644  esac
11645  # FIXME: first we should search . and the directory the executable is in
11646  shlibpath_var=PATH
11647  ;;
11648
11649darwin* | rhapsody*)
11650  dynamic_linker="$host_os dyld"
11651  version_type=darwin
11652  need_lib_prefix=no
11653  need_version=no
11654  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11655  soname_spec='$libname$release$major$shared_ext'
11656  shlibpath_overrides_runpath=yes
11657  shlibpath_var=DYLD_LIBRARY_PATH
11658  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11659
11660  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11661  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11662  ;;
11663
11664dgux*)
11665  version_type=linux # correct to gnu/linux during the next big refactor
11666  need_lib_prefix=no
11667  need_version=no
11668  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11669  soname_spec='$libname$release$shared_ext$major'
11670  shlibpath_var=LD_LIBRARY_PATH
11671  ;;
11672
11673freebsd* | dragonfly*)
11674  # DragonFly does not have aout.  When/if they implement a new
11675  # versioning mechanism, adjust this.
11676  if test -x /usr/bin/objformat; then
11677    objformat=`/usr/bin/objformat`
11678  else
11679    case $host_os in
11680    freebsd[23].*) objformat=aout ;;
11681    *) objformat=elf ;;
11682    esac
11683  fi
11684  version_type=freebsd-$objformat
11685  case $version_type in
11686    freebsd-elf*)
11687      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11688      soname_spec='$libname$release$shared_ext$major'
11689      need_version=no
11690      need_lib_prefix=no
11691      ;;
11692    freebsd-*)
11693      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11694      need_version=yes
11695      ;;
11696  esac
11697  shlibpath_var=LD_LIBRARY_PATH
11698  case $host_os in
11699  freebsd2.*)
11700    shlibpath_overrides_runpath=yes
11701    ;;
11702  freebsd3.[01]* | freebsdelf3.[01]*)
11703    shlibpath_overrides_runpath=yes
11704    hardcode_into_libs=yes
11705    ;;
11706  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11707  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11708    shlibpath_overrides_runpath=no
11709    hardcode_into_libs=yes
11710    ;;
11711  *) # from 4.6 on, and DragonFly
11712    shlibpath_overrides_runpath=yes
11713    hardcode_into_libs=yes
11714    ;;
11715  esac
11716  ;;
11717
11718haiku*)
11719  version_type=linux # correct to gnu/linux during the next big refactor
11720  need_lib_prefix=no
11721  need_version=no
11722  dynamic_linker="$host_os runtime_loader"
11723  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11724  soname_spec='$libname$release$shared_ext$major'
11725  shlibpath_var=LIBRARY_PATH
11726  shlibpath_overrides_runpath=no
11727  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11728  hardcode_into_libs=yes
11729  ;;
11730
11731hpux9* | hpux10* | hpux11*)
11732  # Give a soname corresponding to the major version so that dld.sl refuses to
11733  # link against other versions.
11734  version_type=sunos
11735  need_lib_prefix=no
11736  need_version=no
11737  case $host_cpu in
11738  ia64*)
11739    shrext_cmds='.so'
11740    hardcode_into_libs=yes
11741    dynamic_linker="$host_os dld.so"
11742    shlibpath_var=LD_LIBRARY_PATH
11743    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11744    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11745    soname_spec='$libname$release$shared_ext$major'
11746    if test 32 = "$HPUX_IA64_MODE"; then
11747      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11748      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11749    else
11750      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11751      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11752    fi
11753    ;;
11754  hppa*64*)
11755    shrext_cmds='.sl'
11756    hardcode_into_libs=yes
11757    dynamic_linker="$host_os dld.sl"
11758    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11759    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11760    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11761    soname_spec='$libname$release$shared_ext$major'
11762    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11763    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11764    ;;
11765  *)
11766    shrext_cmds='.sl'
11767    dynamic_linker="$host_os dld.sl"
11768    shlibpath_var=SHLIB_PATH
11769    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11770    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11771    soname_spec='$libname$release$shared_ext$major'
11772    ;;
11773  esac
11774  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11775  postinstall_cmds='chmod 555 $lib'
11776  # or fails outright, so override atomically:
11777  install_override_mode=555
11778  ;;
11779
11780interix[3-9]*)
11781  version_type=linux # correct to gnu/linux during the next big refactor
11782  need_lib_prefix=no
11783  need_version=no
11784  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11785  soname_spec='$libname$release$shared_ext$major'
11786  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11787  shlibpath_var=LD_LIBRARY_PATH
11788  shlibpath_overrides_runpath=no
11789  hardcode_into_libs=yes
11790  ;;
11791
11792irix5* | irix6* | nonstopux*)
11793  case $host_os in
11794    nonstopux*) version_type=nonstopux ;;
11795    *)
11796	if test yes = "$lt_cv_prog_gnu_ld"; then
11797		version_type=linux # correct to gnu/linux during the next big refactor
11798	else
11799		version_type=irix
11800	fi ;;
11801  esac
11802  need_lib_prefix=no
11803  need_version=no
11804  soname_spec='$libname$release$shared_ext$major'
11805  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11806  case $host_os in
11807  irix5* | nonstopux*)
11808    libsuff= shlibsuff=
11809    ;;
11810  *)
11811    case $LD in # libtool.m4 will add one of these switches to LD
11812    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11813      libsuff= shlibsuff= libmagic=32-bit;;
11814    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11815      libsuff=32 shlibsuff=N32 libmagic=N32;;
11816    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11817      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11818    *) libsuff= shlibsuff= libmagic=never-match;;
11819    esac
11820    ;;
11821  esac
11822  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11823  shlibpath_overrides_runpath=no
11824  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11825  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11826  hardcode_into_libs=yes
11827  ;;
11828
11829# No shared lib support for Linux oldld, aout, or coff.
11830linux*oldld* | linux*aout* | linux*coff*)
11831  dynamic_linker=no
11832  ;;
11833
11834linux*android*)
11835  version_type=none # Android doesn't support versioned libraries.
11836  need_lib_prefix=no
11837  need_version=no
11838  library_names_spec='$libname$release$shared_ext'
11839  soname_spec='$libname$release$shared_ext'
11840  finish_cmds=
11841  shlibpath_var=LD_LIBRARY_PATH
11842  shlibpath_overrides_runpath=yes
11843
11844  # This implies no fast_install, which is unacceptable.
11845  # Some rework will be needed to allow for fast_install
11846  # before this can be enabled.
11847  hardcode_into_libs=yes
11848
11849  dynamic_linker='Android linker'
11850  # Don't embed -rpath directories since the linker doesn't support them.
11851  hardcode_libdir_flag_spec='-L$libdir'
11852  ;;
11853
11854# This must be glibc/ELF.
11855linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11856  version_type=linux # correct to gnu/linux during the next big refactor
11857  need_lib_prefix=no
11858  need_version=no
11859  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11860  soname_spec='$libname$release$shared_ext$major'
11861  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11862  shlibpath_var=LD_LIBRARY_PATH
11863  shlibpath_overrides_runpath=no
11864
11865  # Some binutils ld are patched to set DT_RUNPATH
11866  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11867  $as_echo_n "(cached) " >&6
11868else
11869  lt_cv_shlibpath_overrides_runpath=no
11870    save_LDFLAGS=$LDFLAGS
11871    save_libdir=$libdir
11872    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11873	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11874    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875/* end confdefs.h.  */
11876
11877int
11878main ()
11879{
11880
11881  ;
11882  return 0;
11883}
11884_ACEOF
11885if ac_fn_c_try_link "$LINENO"; then :
11886  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11887  lt_cv_shlibpath_overrides_runpath=yes
11888fi
11889fi
11890rm -f core conftest.err conftest.$ac_objext \
11891    conftest$ac_exeext conftest.$ac_ext
11892    LDFLAGS=$save_LDFLAGS
11893    libdir=$save_libdir
11894
11895fi
11896
11897  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11898
11899  # This implies no fast_install, which is unacceptable.
11900  # Some rework will be needed to allow for fast_install
11901  # before this can be enabled.
11902  hardcode_into_libs=yes
11903
11904  # Ideally, we could use ldconfig to report *all* directores which are
11905  # searched for libraries, however this is still not possible.  Aside from not
11906  # being certain /sbin/ldconfig is available, command
11907  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11908  # even though it is searched at run-time.  Try to do the best guess by
11909  # appending ld.so.conf contents (and includes) to the search path.
11910  if test -f /etc/ld.so.conf; then
11911    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' ' '`
11912    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11913  fi
11914
11915  # We used to test for /lib/ld.so.1 and disable shared libraries on
11916  # powerpc, because MkLinux only supported shared libraries with the
11917  # GNU dynamic linker.  Since this was broken with cross compilers,
11918  # most powerpc-linux boxes support dynamic linking these days and
11919  # people can always --disable-shared, the test was removed, and we
11920  # assume the GNU/Linux dynamic linker is in use.
11921  dynamic_linker='GNU/Linux ld.so'
11922  ;;
11923
11924netbsd*)
11925  version_type=sunos
11926  need_lib_prefix=no
11927  need_version=no
11928  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11929    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11930    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11931    dynamic_linker='NetBSD (a.out) ld.so'
11932  else
11933    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11934    soname_spec='$libname$release$shared_ext$major'
11935    dynamic_linker='NetBSD ld.elf_so'
11936  fi
11937  shlibpath_var=LD_LIBRARY_PATH
11938  shlibpath_overrides_runpath=yes
11939  hardcode_into_libs=yes
11940  ;;
11941
11942newsos6)
11943  version_type=linux # correct to gnu/linux during the next big refactor
11944  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11945  shlibpath_var=LD_LIBRARY_PATH
11946  shlibpath_overrides_runpath=yes
11947  ;;
11948
11949*nto* | *qnx*)
11950  version_type=qnx
11951  need_lib_prefix=no
11952  need_version=no
11953  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11954  soname_spec='$libname$release$shared_ext$major'
11955  shlibpath_var=LD_LIBRARY_PATH
11956  shlibpath_overrides_runpath=no
11957  hardcode_into_libs=yes
11958  dynamic_linker='ldqnx.so'
11959  ;;
11960
11961openbsd* | bitrig*)
11962  version_type=sunos
11963  sys_lib_dlsearch_path_spec=/usr/lib
11964  need_lib_prefix=no
11965  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11966    need_version=no
11967  else
11968    need_version=yes
11969  fi
11970  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11971  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11972  shlibpath_var=LD_LIBRARY_PATH
11973  shlibpath_overrides_runpath=yes
11974  ;;
11975
11976os2*)
11977  libname_spec='$name'
11978  version_type=windows
11979  shrext_cmds=.dll
11980  need_version=no
11981  need_lib_prefix=no
11982  # OS/2 can only load a DLL with a base name of 8 characters or less.
11983  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11984    v=$($ECHO $release$versuffix | tr -d .-);
11985    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11986    $ECHO $n$v`$shared_ext'
11987  library_names_spec='${libname}_dll.$libext'
11988  dynamic_linker='OS/2 ld.exe'
11989  shlibpath_var=BEGINLIBPATH
11990  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11991  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11992  postinstall_cmds='base_file=`basename \$file`~
11993    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11994    dldir=$destdir/`dirname \$dlpath`~
11995    test -d \$dldir || mkdir -p \$dldir~
11996    $install_prog $dir/$dlname \$dldir/$dlname~
11997    chmod a+x \$dldir/$dlname~
11998    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11999      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12000    fi'
12001  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12002    dlpath=$dir/\$dldll~
12003    $RM \$dlpath'
12004  ;;
12005
12006osf3* | osf4* | osf5*)
12007  version_type=osf
12008  need_lib_prefix=no
12009  need_version=no
12010  soname_spec='$libname$release$shared_ext$major'
12011  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12012  shlibpath_var=LD_LIBRARY_PATH
12013  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12014  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12015  ;;
12016
12017rdos*)
12018  dynamic_linker=no
12019  ;;
12020
12021solaris*)
12022  version_type=linux # correct to gnu/linux during the next big refactor
12023  need_lib_prefix=no
12024  need_version=no
12025  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12026  soname_spec='$libname$release$shared_ext$major'
12027  shlibpath_var=LD_LIBRARY_PATH
12028  shlibpath_overrides_runpath=yes
12029  hardcode_into_libs=yes
12030  # ldd complains unless libraries are executable
12031  postinstall_cmds='chmod +x $lib'
12032  ;;
12033
12034sunos4*)
12035  version_type=sunos
12036  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12037  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12038  shlibpath_var=LD_LIBRARY_PATH
12039  shlibpath_overrides_runpath=yes
12040  if test yes = "$with_gnu_ld"; then
12041    need_lib_prefix=no
12042  fi
12043  need_version=yes
12044  ;;
12045
12046sysv4 | sysv4.3*)
12047  version_type=linux # correct to gnu/linux during the next big refactor
12048  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12049  soname_spec='$libname$release$shared_ext$major'
12050  shlibpath_var=LD_LIBRARY_PATH
12051  case $host_vendor in
12052    sni)
12053      shlibpath_overrides_runpath=no
12054      need_lib_prefix=no
12055      runpath_var=LD_RUN_PATH
12056      ;;
12057    siemens)
12058      need_lib_prefix=no
12059      ;;
12060    motorola)
12061      need_lib_prefix=no
12062      need_version=no
12063      shlibpath_overrides_runpath=no
12064      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12065      ;;
12066  esac
12067  ;;
12068
12069sysv4*MP*)
12070  if test -d /usr/nec; then
12071    version_type=linux # correct to gnu/linux during the next big refactor
12072    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12073    soname_spec='$libname$shared_ext.$major'
12074    shlibpath_var=LD_LIBRARY_PATH
12075  fi
12076  ;;
12077
12078sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12079  version_type=sco
12080  need_lib_prefix=no
12081  need_version=no
12082  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12083  soname_spec='$libname$release$shared_ext$major'
12084  shlibpath_var=LD_LIBRARY_PATH
12085  shlibpath_overrides_runpath=yes
12086  hardcode_into_libs=yes
12087  if test yes = "$with_gnu_ld"; then
12088    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12089  else
12090    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12091    case $host_os in
12092      sco3.2v5*)
12093        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12094	;;
12095    esac
12096  fi
12097  sys_lib_dlsearch_path_spec='/usr/lib'
12098  ;;
12099
12100tpf*)
12101  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12102  version_type=linux # correct to gnu/linux during the next big refactor
12103  need_lib_prefix=no
12104  need_version=no
12105  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12106  shlibpath_var=LD_LIBRARY_PATH
12107  shlibpath_overrides_runpath=no
12108  hardcode_into_libs=yes
12109  ;;
12110
12111uts4*)
12112  version_type=linux # correct to gnu/linux during the next big refactor
12113  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12114  soname_spec='$libname$release$shared_ext$major'
12115  shlibpath_var=LD_LIBRARY_PATH
12116  ;;
12117
12118*)
12119  dynamic_linker=no
12120  ;;
12121esac
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12123$as_echo "$dynamic_linker" >&6; }
12124test no = "$dynamic_linker" && can_build_shared=no
12125
12126variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12127if test yes = "$GCC"; then
12128  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12129fi
12130
12131if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12132  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12133fi
12134
12135if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12136  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12137fi
12138
12139# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12140configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12141
12142# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12143func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12144
12145# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12146configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12147
12148
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12245$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12246hardcode_action=
12247if test -n "$hardcode_libdir_flag_spec" ||
12248   test -n "$runpath_var" ||
12249   test yes = "$hardcode_automatic"; then
12250
12251  # We can hardcode non-existent directories.
12252  if test no != "$hardcode_direct" &&
12253     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12254     # have to relink, otherwise we might link with an installed library
12255     # when we should be linking with a yet-to-be-installed one
12256     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12257     test no != "$hardcode_minus_L"; then
12258    # Linking always hardcodes the temporary library directory.
12259    hardcode_action=relink
12260  else
12261    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12262    hardcode_action=immediate
12263  fi
12264else
12265  # We cannot hardcode anything, or else we can only hardcode existing
12266  # directories.
12267  hardcode_action=unsupported
12268fi
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12270$as_echo "$hardcode_action" >&6; }
12271
12272if test relink = "$hardcode_action" ||
12273   test yes = "$inherit_rpath"; then
12274  # Fast installation is not supported
12275  enable_fast_install=no
12276elif test yes = "$shlibpath_overrides_runpath" ||
12277     test no = "$enable_shared"; then
12278  # Fast installation is not necessary
12279  enable_fast_install=needless
12280fi
12281
12282
12283
12284
12285
12286
12287  if test yes != "$enable_dlopen"; then
12288  enable_dlopen=unknown
12289  enable_dlopen_self=unknown
12290  enable_dlopen_self_static=unknown
12291else
12292  lt_cv_dlopen=no
12293  lt_cv_dlopen_libs=
12294
12295  case $host_os in
12296  beos*)
12297    lt_cv_dlopen=load_add_on
12298    lt_cv_dlopen_libs=
12299    lt_cv_dlopen_self=yes
12300    ;;
12301
12302  mingw* | pw32* | cegcc*)
12303    lt_cv_dlopen=LoadLibrary
12304    lt_cv_dlopen_libs=
12305    ;;
12306
12307  cygwin*)
12308    lt_cv_dlopen=dlopen
12309    lt_cv_dlopen_libs=
12310    ;;
12311
12312  darwin*)
12313    # if libdl is installed we need to link against it
12314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12315$as_echo_n "checking for dlopen in -ldl... " >&6; }
12316if ${ac_cv_lib_dl_dlopen+:} false; then :
12317  $as_echo_n "(cached) " >&6
12318else
12319  ac_check_lib_save_LIBS=$LIBS
12320LIBS="-ldl  $LIBS"
12321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322/* end confdefs.h.  */
12323
12324/* Override any GCC internal prototype to avoid an error.
12325   Use char because int might match the return type of a GCC
12326   builtin and then its argument prototype would still apply.  */
12327#ifdef __cplusplus
12328extern "C"
12329#endif
12330char dlopen ();
12331int
12332main ()
12333{
12334return dlopen ();
12335  ;
12336  return 0;
12337}
12338_ACEOF
12339if ac_fn_c_try_link "$LINENO"; then :
12340  ac_cv_lib_dl_dlopen=yes
12341else
12342  ac_cv_lib_dl_dlopen=no
12343fi
12344rm -f core conftest.err conftest.$ac_objext \
12345    conftest$ac_exeext conftest.$ac_ext
12346LIBS=$ac_check_lib_save_LIBS
12347fi
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12349$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12350if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12351  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12352else
12353
12354    lt_cv_dlopen=dyld
12355    lt_cv_dlopen_libs=
12356    lt_cv_dlopen_self=yes
12357
12358fi
12359
12360    ;;
12361
12362  tpf*)
12363    # Don't try to run any link tests for TPF.  We know it's impossible
12364    # because TPF is a cross-compiler, and we know how we open DSOs.
12365    lt_cv_dlopen=dlopen
12366    lt_cv_dlopen_libs=
12367    lt_cv_dlopen_self=no
12368    ;;
12369
12370  *)
12371    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12372if test "x$ac_cv_func_shl_load" = xyes; then :
12373  lt_cv_dlopen=shl_load
12374else
12375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12376$as_echo_n "checking for shl_load in -ldld... " >&6; }
12377if ${ac_cv_lib_dld_shl_load+:} false; then :
12378  $as_echo_n "(cached) " >&6
12379else
12380  ac_check_lib_save_LIBS=$LIBS
12381LIBS="-ldld  $LIBS"
12382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383/* end confdefs.h.  */
12384
12385/* Override any GCC internal prototype to avoid an error.
12386   Use char because int might match the return type of a GCC
12387   builtin and then its argument prototype would still apply.  */
12388#ifdef __cplusplus
12389extern "C"
12390#endif
12391char shl_load ();
12392int
12393main ()
12394{
12395return shl_load ();
12396  ;
12397  return 0;
12398}
12399_ACEOF
12400if ac_fn_c_try_link "$LINENO"; then :
12401  ac_cv_lib_dld_shl_load=yes
12402else
12403  ac_cv_lib_dld_shl_load=no
12404fi
12405rm -f core conftest.err conftest.$ac_objext \
12406    conftest$ac_exeext conftest.$ac_ext
12407LIBS=$ac_check_lib_save_LIBS
12408fi
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12410$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12411if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12412  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12413else
12414  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12415if test "x$ac_cv_func_dlopen" = xyes; then :
12416  lt_cv_dlopen=dlopen
12417else
12418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12419$as_echo_n "checking for dlopen in -ldl... " >&6; }
12420if ${ac_cv_lib_dl_dlopen+:} false; then :
12421  $as_echo_n "(cached) " >&6
12422else
12423  ac_check_lib_save_LIBS=$LIBS
12424LIBS="-ldl  $LIBS"
12425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426/* end confdefs.h.  */
12427
12428/* Override any GCC internal prototype to avoid an error.
12429   Use char because int might match the return type of a GCC
12430   builtin and then its argument prototype would still apply.  */
12431#ifdef __cplusplus
12432extern "C"
12433#endif
12434char dlopen ();
12435int
12436main ()
12437{
12438return dlopen ();
12439  ;
12440  return 0;
12441}
12442_ACEOF
12443if ac_fn_c_try_link "$LINENO"; then :
12444  ac_cv_lib_dl_dlopen=yes
12445else
12446  ac_cv_lib_dl_dlopen=no
12447fi
12448rm -f core conftest.err conftest.$ac_objext \
12449    conftest$ac_exeext conftest.$ac_ext
12450LIBS=$ac_check_lib_save_LIBS
12451fi
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12453$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12454if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12455  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12456else
12457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12458$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12459if ${ac_cv_lib_svld_dlopen+:} false; then :
12460  $as_echo_n "(cached) " >&6
12461else
12462  ac_check_lib_save_LIBS=$LIBS
12463LIBS="-lsvld  $LIBS"
12464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465/* end confdefs.h.  */
12466
12467/* Override any GCC internal prototype to avoid an error.
12468   Use char because int might match the return type of a GCC
12469   builtin and then its argument prototype would still apply.  */
12470#ifdef __cplusplus
12471extern "C"
12472#endif
12473char dlopen ();
12474int
12475main ()
12476{
12477return dlopen ();
12478  ;
12479  return 0;
12480}
12481_ACEOF
12482if ac_fn_c_try_link "$LINENO"; then :
12483  ac_cv_lib_svld_dlopen=yes
12484else
12485  ac_cv_lib_svld_dlopen=no
12486fi
12487rm -f core conftest.err conftest.$ac_objext \
12488    conftest$ac_exeext conftest.$ac_ext
12489LIBS=$ac_check_lib_save_LIBS
12490fi
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12492$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12493if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12494  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12495else
12496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12497$as_echo_n "checking for dld_link in -ldld... " >&6; }
12498if ${ac_cv_lib_dld_dld_link+:} false; then :
12499  $as_echo_n "(cached) " >&6
12500else
12501  ac_check_lib_save_LIBS=$LIBS
12502LIBS="-ldld  $LIBS"
12503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504/* end confdefs.h.  */
12505
12506/* Override any GCC internal prototype to avoid an error.
12507   Use char because int might match the return type of a GCC
12508   builtin and then its argument prototype would still apply.  */
12509#ifdef __cplusplus
12510extern "C"
12511#endif
12512char dld_link ();
12513int
12514main ()
12515{
12516return dld_link ();
12517  ;
12518  return 0;
12519}
12520_ACEOF
12521if ac_fn_c_try_link "$LINENO"; then :
12522  ac_cv_lib_dld_dld_link=yes
12523else
12524  ac_cv_lib_dld_dld_link=no
12525fi
12526rm -f core conftest.err conftest.$ac_objext \
12527    conftest$ac_exeext conftest.$ac_ext
12528LIBS=$ac_check_lib_save_LIBS
12529fi
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12531$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12532if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12533  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12534fi
12535
12536
12537fi
12538
12539
12540fi
12541
12542
12543fi
12544
12545
12546fi
12547
12548
12549fi
12550
12551    ;;
12552  esac
12553
12554  if test no = "$lt_cv_dlopen"; then
12555    enable_dlopen=no
12556  else
12557    enable_dlopen=yes
12558  fi
12559
12560  case $lt_cv_dlopen in
12561  dlopen)
12562    save_CPPFLAGS=$CPPFLAGS
12563    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12564
12565    save_LDFLAGS=$LDFLAGS
12566    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12567
12568    save_LIBS=$LIBS
12569    LIBS="$lt_cv_dlopen_libs $LIBS"
12570
12571    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12572$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12573if ${lt_cv_dlopen_self+:} false; then :
12574  $as_echo_n "(cached) " >&6
12575else
12576  	  if test yes = "$cross_compiling"; then :
12577  lt_cv_dlopen_self=cross
12578else
12579  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12580  lt_status=$lt_dlunknown
12581  cat > conftest.$ac_ext <<_LT_EOF
12582#line $LINENO "configure"
12583#include "confdefs.h"
12584
12585#if HAVE_DLFCN_H
12586#include <dlfcn.h>
12587#endif
12588
12589#include <stdio.h>
12590
12591#ifdef RTLD_GLOBAL
12592#  define LT_DLGLOBAL		RTLD_GLOBAL
12593#else
12594#  ifdef DL_GLOBAL
12595#    define LT_DLGLOBAL		DL_GLOBAL
12596#  else
12597#    define LT_DLGLOBAL		0
12598#  endif
12599#endif
12600
12601/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12602   find out it does not work in some platform. */
12603#ifndef LT_DLLAZY_OR_NOW
12604#  ifdef RTLD_LAZY
12605#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12606#  else
12607#    ifdef DL_LAZY
12608#      define LT_DLLAZY_OR_NOW		DL_LAZY
12609#    else
12610#      ifdef RTLD_NOW
12611#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12612#      else
12613#        ifdef DL_NOW
12614#          define LT_DLLAZY_OR_NOW	DL_NOW
12615#        else
12616#          define LT_DLLAZY_OR_NOW	0
12617#        endif
12618#      endif
12619#    endif
12620#  endif
12621#endif
12622
12623/* When -fvisibility=hidden is used, assume the code has been annotated
12624   correspondingly for the symbols needed.  */
12625#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12626int fnord () __attribute__((visibility("default")));
12627#endif
12628
12629int fnord () { return 42; }
12630int main ()
12631{
12632  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12633  int status = $lt_dlunknown;
12634
12635  if (self)
12636    {
12637      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12638      else
12639        {
12640	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12641          else puts (dlerror ());
12642	}
12643      /* dlclose (self); */
12644    }
12645  else
12646    puts (dlerror ());
12647
12648  return status;
12649}
12650_LT_EOF
12651  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12652  (eval $ac_link) 2>&5
12653  ac_status=$?
12654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12656    (./conftest; exit; ) >&5 2>/dev/null
12657    lt_status=$?
12658    case x$lt_status in
12659      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12660      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12661      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12662    esac
12663  else :
12664    # compilation failed
12665    lt_cv_dlopen_self=no
12666  fi
12667fi
12668rm -fr conftest*
12669
12670
12671fi
12672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12673$as_echo "$lt_cv_dlopen_self" >&6; }
12674
12675    if test yes = "$lt_cv_dlopen_self"; then
12676      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12677      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12678$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12679if ${lt_cv_dlopen_self_static+:} false; then :
12680  $as_echo_n "(cached) " >&6
12681else
12682  	  if test yes = "$cross_compiling"; then :
12683  lt_cv_dlopen_self_static=cross
12684else
12685  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12686  lt_status=$lt_dlunknown
12687  cat > conftest.$ac_ext <<_LT_EOF
12688#line $LINENO "configure"
12689#include "confdefs.h"
12690
12691#if HAVE_DLFCN_H
12692#include <dlfcn.h>
12693#endif
12694
12695#include <stdio.h>
12696
12697#ifdef RTLD_GLOBAL
12698#  define LT_DLGLOBAL		RTLD_GLOBAL
12699#else
12700#  ifdef DL_GLOBAL
12701#    define LT_DLGLOBAL		DL_GLOBAL
12702#  else
12703#    define LT_DLGLOBAL		0
12704#  endif
12705#endif
12706
12707/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12708   find out it does not work in some platform. */
12709#ifndef LT_DLLAZY_OR_NOW
12710#  ifdef RTLD_LAZY
12711#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12712#  else
12713#    ifdef DL_LAZY
12714#      define LT_DLLAZY_OR_NOW		DL_LAZY
12715#    else
12716#      ifdef RTLD_NOW
12717#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12718#      else
12719#        ifdef DL_NOW
12720#          define LT_DLLAZY_OR_NOW	DL_NOW
12721#        else
12722#          define LT_DLLAZY_OR_NOW	0
12723#        endif
12724#      endif
12725#    endif
12726#  endif
12727#endif
12728
12729/* When -fvisibility=hidden is used, assume the code has been annotated
12730   correspondingly for the symbols needed.  */
12731#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12732int fnord () __attribute__((visibility("default")));
12733#endif
12734
12735int fnord () { return 42; }
12736int main ()
12737{
12738  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12739  int status = $lt_dlunknown;
12740
12741  if (self)
12742    {
12743      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12744      else
12745        {
12746	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12747          else puts (dlerror ());
12748	}
12749      /* dlclose (self); */
12750    }
12751  else
12752    puts (dlerror ());
12753
12754  return status;
12755}
12756_LT_EOF
12757  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12758  (eval $ac_link) 2>&5
12759  ac_status=$?
12760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12761  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12762    (./conftest; exit; ) >&5 2>/dev/null
12763    lt_status=$?
12764    case x$lt_status in
12765      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12766      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12767      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12768    esac
12769  else :
12770    # compilation failed
12771    lt_cv_dlopen_self_static=no
12772  fi
12773fi
12774rm -fr conftest*
12775
12776
12777fi
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12779$as_echo "$lt_cv_dlopen_self_static" >&6; }
12780    fi
12781
12782    CPPFLAGS=$save_CPPFLAGS
12783    LDFLAGS=$save_LDFLAGS
12784    LIBS=$save_LIBS
12785    ;;
12786  esac
12787
12788  case $lt_cv_dlopen_self in
12789  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12790  *) enable_dlopen_self=unknown ;;
12791  esac
12792
12793  case $lt_cv_dlopen_self_static in
12794  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12795  *) enable_dlopen_self_static=unknown ;;
12796  esac
12797fi
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815striplib=
12816old_striplib=
12817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12818$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12819if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12820  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12821  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12823$as_echo "yes" >&6; }
12824else
12825# FIXME - insert some real tests, host_os isn't really good enough
12826  case $host_os in
12827  darwin*)
12828    if test -n "$STRIP"; then
12829      striplib="$STRIP -x"
12830      old_striplib="$STRIP -S"
12831      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12832$as_echo "yes" >&6; }
12833    else
12834      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835$as_echo "no" >&6; }
12836    fi
12837    ;;
12838  *)
12839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840$as_echo "no" >&6; }
12841    ;;
12842  esac
12843fi
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856  # Report what library types will actually be built
12857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12858$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12860$as_echo "$can_build_shared" >&6; }
12861
12862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12863$as_echo_n "checking whether to build shared libraries... " >&6; }
12864  test no = "$can_build_shared" && enable_shared=no
12865
12866  # On AIX, shared libraries and static libraries use the same namespace, and
12867  # are all built from PIC.
12868  case $host_os in
12869  aix3*)
12870    test yes = "$enable_shared" && enable_static=no
12871    if test -n "$RANLIB"; then
12872      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12873      postinstall_cmds='$RANLIB $lib'
12874    fi
12875    ;;
12876
12877  aix[4-9]*)
12878    if test ia64 != "$host_cpu"; then
12879      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12880      yes,aix,yes) ;;			# shared object as lib.so file only
12881      yes,svr4,*) ;;			# shared object as lib.so archive member only
12882      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12883      esac
12884    fi
12885    ;;
12886  esac
12887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12888$as_echo "$enable_shared" >&6; }
12889
12890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12891$as_echo_n "checking whether to build static libraries... " >&6; }
12892  # Make sure either enable_shared or enable_static is yes.
12893  test yes = "$enable_shared" || enable_static=yes
12894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12895$as_echo "$enable_static" >&6; }
12896
12897
12898
12899
12900fi
12901ac_ext=c
12902ac_cpp='$CPP $CPPFLAGS'
12903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12905ac_compiler_gnu=$ac_cv_c_compiler_gnu
12906
12907CC=$lt_save_CC
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923        ac_config_commands="$ac_config_commands libtool"
12924
12925
12926
12927
12928# Only expand once:
12929
12930
12931
12932
12933# Check for library functions that SQLite can optionally use.
12934for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12935do :
12936  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12937ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12938if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12939  cat >>confdefs.h <<_ACEOF
12940#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12941_ACEOF
12942
12943fi
12944done
12945
12946ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12947if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12948  ac_have_decl=1
12949else
12950  ac_have_decl=0
12951fi
12952
12953cat >>confdefs.h <<_ACEOF
12954#define HAVE_DECL_STRERROR_R $ac_have_decl
12955_ACEOF
12956
12957for ac_func in strerror_r
12958do :
12959  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12960if test "x$ac_cv_func_strerror_r" = xyes; then :
12961  cat >>confdefs.h <<_ACEOF
12962#define HAVE_STRERROR_R 1
12963_ACEOF
12964
12965fi
12966done
12967
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12969$as_echo_n "checking whether strerror_r returns char *... " >&6; }
12970if ${ac_cv_func_strerror_r_char_p+:} false; then :
12971  $as_echo_n "(cached) " >&6
12972else
12973
12974    ac_cv_func_strerror_r_char_p=no
12975    if test $ac_cv_have_decl_strerror_r = yes; then
12976      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h.  */
12978$ac_includes_default
12979int
12980main ()
12981{
12982
12983	  char buf[100];
12984	  char x = *strerror_r (0, buf, sizeof buf);
12985	  char *p = strerror_r (0, buf, sizeof buf);
12986	  return !p || x;
12987
12988  ;
12989  return 0;
12990}
12991_ACEOF
12992if ac_fn_c_try_compile "$LINENO"; then :
12993  ac_cv_func_strerror_r_char_p=yes
12994fi
12995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996    else
12997      # strerror_r is not declared.  Choose between
12998      # systems that have relatively inaccessible declarations for the
12999      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13000      # former has a strerror_r that returns char*, while the latter
13001      # has a strerror_r that returns `int'.
13002      # This test should segfault on the DEC system.
13003      if test "$cross_compiling" = yes; then :
13004  :
13005else
13006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007/* end confdefs.h.  */
13008$ac_includes_default
13009	extern char *strerror_r ();
13010int
13011main ()
13012{
13013char buf[100];
13014	  char x = *strerror_r (0, buf, sizeof buf);
13015	  return ! isalpha (x);
13016  ;
13017  return 0;
13018}
13019_ACEOF
13020if ac_fn_c_try_run "$LINENO"; then :
13021  ac_cv_func_strerror_r_char_p=yes
13022fi
13023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13024  conftest.$ac_objext conftest.beam conftest.$ac_ext
13025fi
13026
13027    fi
13028
13029fi
13030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13031$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13032if test $ac_cv_func_strerror_r_char_p = yes; then
13033
13034$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13035
13036fi
13037
13038
13039ac_config_files="$ac_config_files Makefile sqlite3.pc"
13040
13041
13042
13043#-------------------------------------------------------------------------
13044# Two options to enable readline compatible libraries:
13045#
13046#   --enable-editline
13047#   --enable-readline
13048#
13049# Both are enabled by default. If, after command line processing both are
13050# still enabled, the script searches for editline first and automatically
13051# disables readline if it is found. So, to use readline explicitly, the
13052# user must pass "--disable-editline". To disable command line editing
13053# support altogether, "--disable-editline --disable-readline".
13054#
13055# When searching for either library, check for headers before libraries
13056# as some distros supply packages that contain libraries but not header
13057# files, which come as a separate development package.
13058#
13059# Check whether --enable-editline was given.
13060if test "${enable_editline+set}" = set; then :
13061  enableval=$enable_editline;
13062fi
13063
13064# Check whether --enable-readline was given.
13065if test "${enable_readline+set}" = set; then :
13066  enableval=$enable_readline;
13067fi
13068
13069
13070if  test x"$enable_editline" != xno ; then :
13071
13072  for ac_header in editline/readline.h
13073do :
13074  ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13075if test "x$ac_cv_header_editline_readline_h" = xyes; then :
13076  cat >>confdefs.h <<_ACEOF
13077#define HAVE_EDITLINE_READLINE_H 1
13078_ACEOF
13079
13080    sLIBS=$LIBS
13081    LIBS=""
13082    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13083$as_echo_n "checking for library containing readline... " >&6; }
13084if ${ac_cv_search_readline+:} false; then :
13085  $as_echo_n "(cached) " >&6
13086else
13087  ac_func_search_save_LIBS=$LIBS
13088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089/* end confdefs.h.  */
13090
13091/* Override any GCC internal prototype to avoid an error.
13092   Use char because int might match the return type of a GCC
13093   builtin and then its argument prototype would still apply.  */
13094#ifdef __cplusplus
13095extern "C"
13096#endif
13097char readline ();
13098int
13099main ()
13100{
13101return readline ();
13102  ;
13103  return 0;
13104}
13105_ACEOF
13106for ac_lib in '' edit; do
13107  if test -z "$ac_lib"; then
13108    ac_res="none required"
13109  else
13110    ac_res=-l$ac_lib
13111    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13112  fi
13113  if ac_fn_c_try_link "$LINENO"; then :
13114  ac_cv_search_readline=$ac_res
13115fi
13116rm -f core conftest.err conftest.$ac_objext \
13117    conftest$ac_exeext
13118  if ${ac_cv_search_readline+:} false; then :
13119  break
13120fi
13121done
13122if ${ac_cv_search_readline+:} false; then :
13123
13124else
13125  ac_cv_search_readline=no
13126fi
13127rm conftest.$ac_ext
13128LIBS=$ac_func_search_save_LIBS
13129fi
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13131$as_echo "$ac_cv_search_readline" >&6; }
13132ac_res=$ac_cv_search_readline
13133if test "$ac_res" != no; then :
13134  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13135
13136
13137$as_echo "#define HAVE_EDITLINE 1" >>confdefs.h
13138
13139      READLINE_LIBS=$LIBS
13140      enable_readline=no
13141
13142fi
13143
13144    { ac_cv_search_readline=; unset ac_cv_search_readline;}
13145    LIBS=$sLIBS
13146
13147fi
13148
13149done
13150
13151
13152fi
13153
13154if  test x"$enable_readline" != xno ; then :
13155
13156  for ac_header in readline/readline.h
13157do :
13158  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13159if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13160  cat >>confdefs.h <<_ACEOF
13161#define HAVE_READLINE_READLINE_H 1
13162_ACEOF
13163
13164    sLIBS=$LIBS
13165    LIBS=""
13166    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13167$as_echo_n "checking for library containing tgetent... " >&6; }
13168if ${ac_cv_search_tgetent+:} false; then :
13169  $as_echo_n "(cached) " >&6
13170else
13171  ac_func_search_save_LIBS=$LIBS
13172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173/* end confdefs.h.  */
13174
13175/* Override any GCC internal prototype to avoid an error.
13176   Use char because int might match the return type of a GCC
13177   builtin and then its argument prototype would still apply.  */
13178#ifdef __cplusplus
13179extern "C"
13180#endif
13181char tgetent ();
13182int
13183main ()
13184{
13185return tgetent ();
13186  ;
13187  return 0;
13188}
13189_ACEOF
13190for ac_lib in '' termcap curses ncurses ncursesw; do
13191  if test -z "$ac_lib"; then
13192    ac_res="none required"
13193  else
13194    ac_res=-l$ac_lib
13195    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13196  fi
13197  if ac_fn_c_try_link "$LINENO"; then :
13198  ac_cv_search_tgetent=$ac_res
13199fi
13200rm -f core conftest.err conftest.$ac_objext \
13201    conftest$ac_exeext
13202  if ${ac_cv_search_tgetent+:} false; then :
13203  break
13204fi
13205done
13206if ${ac_cv_search_tgetent+:} false; then :
13207
13208else
13209  ac_cv_search_tgetent=no
13210fi
13211rm conftest.$ac_ext
13212LIBS=$ac_func_search_save_LIBS
13213fi
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13215$as_echo "$ac_cv_search_tgetent" >&6; }
13216ac_res=$ac_cv_search_tgetent
13217if test "$ac_res" != no; then :
13218  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13219
13220fi
13221
13222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13223$as_echo_n "checking for library containing readline... " >&6; }
13224if ${ac_cv_search_readline+:} false; then :
13225  $as_echo_n "(cached) " >&6
13226else
13227  ac_func_search_save_LIBS=$LIBS
13228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229/* end confdefs.h.  */
13230
13231/* Override any GCC internal prototype to avoid an error.
13232   Use char because int might match the return type of a GCC
13233   builtin and then its argument prototype would still apply.  */
13234#ifdef __cplusplus
13235extern "C"
13236#endif
13237char readline ();
13238int
13239main ()
13240{
13241return readline ();
13242  ;
13243  return 0;
13244}
13245_ACEOF
13246for ac_lib in '' readline edit; do
13247  if test -z "$ac_lib"; then
13248    ac_res="none required"
13249  else
13250    ac_res=-l$ac_lib
13251    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13252  fi
13253  if ac_fn_c_try_link "$LINENO"; then :
13254  ac_cv_search_readline=$ac_res
13255fi
13256rm -f core conftest.err conftest.$ac_objext \
13257    conftest$ac_exeext
13258  if ${ac_cv_search_readline+:} false; then :
13259  break
13260fi
13261done
13262if ${ac_cv_search_readline+:} false; then :
13263
13264else
13265  ac_cv_search_readline=no
13266fi
13267rm conftest.$ac_ext
13268LIBS=$ac_func_search_save_LIBS
13269fi
13270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13271$as_echo "$ac_cv_search_readline" >&6; }
13272ac_res=$ac_cv_search_readline
13273if test "$ac_res" != no; then :
13274  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13275
13276
13277$as_echo "#define HAVE_READLINE 1" >>confdefs.h
13278
13279      READLINE_LIBS=$LIBS
13280
13281fi
13282
13283    LIBS=$sLIBS
13284
13285fi
13286
13287done
13288
13289
13290fi
13291
13292
13293#-----------------------------------------------------------------------
13294
13295#-----------------------------------------------------------------------
13296#   --enable-threadsafe
13297#
13298# Check whether --enable-threadsafe was given.
13299if test "${enable_threadsafe+set}" = set; then :
13300  enableval=$enable_threadsafe;
13301else
13302  enable_threadsafe=yes
13303fi
13304
13305THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
13306if test x"$enable_threadsafe" != "xno"; then
13307  THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
13308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13309$as_echo_n "checking for library containing pthread_create... " >&6; }
13310if ${ac_cv_search_pthread_create+:} false; then :
13311  $as_echo_n "(cached) " >&6
13312else
13313  ac_func_search_save_LIBS=$LIBS
13314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315/* end confdefs.h.  */
13316
13317/* Override any GCC internal prototype to avoid an error.
13318   Use char because int might match the return type of a GCC
13319   builtin and then its argument prototype would still apply.  */
13320#ifdef __cplusplus
13321extern "C"
13322#endif
13323char pthread_create ();
13324int
13325main ()
13326{
13327return pthread_create ();
13328  ;
13329  return 0;
13330}
13331_ACEOF
13332for ac_lib in '' pthread; do
13333  if test -z "$ac_lib"; then
13334    ac_res="none required"
13335  else
13336    ac_res=-l$ac_lib
13337    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13338  fi
13339  if ac_fn_c_try_link "$LINENO"; then :
13340  ac_cv_search_pthread_create=$ac_res
13341fi
13342rm -f core conftest.err conftest.$ac_objext \
13343    conftest$ac_exeext
13344  if ${ac_cv_search_pthread_create+:} false; then :
13345  break
13346fi
13347done
13348if ${ac_cv_search_pthread_create+:} false; then :
13349
13350else
13351  ac_cv_search_pthread_create=no
13352fi
13353rm conftest.$ac_ext
13354LIBS=$ac_func_search_save_LIBS
13355fi
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13357$as_echo "$ac_cv_search_pthread_create" >&6; }
13358ac_res=$ac_cv_search_pthread_create
13359if test "$ac_res" != no; then :
13360  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13361
13362fi
13363
13364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
13365$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
13366if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13367  $as_echo_n "(cached) " >&6
13368else
13369  ac_func_search_save_LIBS=$LIBS
13370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371/* end confdefs.h.  */
13372
13373/* Override any GCC internal prototype to avoid an error.
13374   Use char because int might match the return type of a GCC
13375   builtin and then its argument prototype would still apply.  */
13376#ifdef __cplusplus
13377extern "C"
13378#endif
13379char pthread_mutexattr_init ();
13380int
13381main ()
13382{
13383return pthread_mutexattr_init ();
13384  ;
13385  return 0;
13386}
13387_ACEOF
13388for ac_lib in '' pthread; do
13389  if test -z "$ac_lib"; then
13390    ac_res="none required"
13391  else
13392    ac_res=-l$ac_lib
13393    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13394  fi
13395  if ac_fn_c_try_link "$LINENO"; then :
13396  ac_cv_search_pthread_mutexattr_init=$ac_res
13397fi
13398rm -f core conftest.err conftest.$ac_objext \
13399    conftest$ac_exeext
13400  if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13401  break
13402fi
13403done
13404if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13405
13406else
13407  ac_cv_search_pthread_mutexattr_init=no
13408fi
13409rm conftest.$ac_ext
13410LIBS=$ac_func_search_save_LIBS
13411fi
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
13413$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
13414ac_res=$ac_cv_search_pthread_mutexattr_init
13415if test "$ac_res" != no; then :
13416  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13417
13418fi
13419
13420fi
13421
13422#-----------------------------------------------------------------------
13423
13424#-----------------------------------------------------------------------
13425#   --enable-dynamic-extensions
13426#
13427# Check whether --enable-dynamic-extensions was given.
13428if test "${enable_dynamic_extensions+set}" = set; then :
13429  enableval=$enable_dynamic_extensions;
13430else
13431  enable_dynamic_extensions=yes
13432fi
13433
13434if test x"$enable_dynamic_extensions" != "xno"; then
13435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13436$as_echo_n "checking for library containing dlopen... " >&6; }
13437if ${ac_cv_search_dlopen+:} false; then :
13438  $as_echo_n "(cached) " >&6
13439else
13440  ac_func_search_save_LIBS=$LIBS
13441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442/* end confdefs.h.  */
13443
13444/* Override any GCC internal prototype to avoid an error.
13445   Use char because int might match the return type of a GCC
13446   builtin and then its argument prototype would still apply.  */
13447#ifdef __cplusplus
13448extern "C"
13449#endif
13450char dlopen ();
13451int
13452main ()
13453{
13454return dlopen ();
13455  ;
13456  return 0;
13457}
13458_ACEOF
13459for ac_lib in '' dl; do
13460  if test -z "$ac_lib"; then
13461    ac_res="none required"
13462  else
13463    ac_res=-l$ac_lib
13464    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13465  fi
13466  if ac_fn_c_try_link "$LINENO"; then :
13467  ac_cv_search_dlopen=$ac_res
13468fi
13469rm -f core conftest.err conftest.$ac_objext \
13470    conftest$ac_exeext
13471  if ${ac_cv_search_dlopen+:} false; then :
13472  break
13473fi
13474done
13475if ${ac_cv_search_dlopen+:} false; then :
13476
13477else
13478  ac_cv_search_dlopen=no
13479fi
13480rm conftest.$ac_ext
13481LIBS=$ac_func_search_save_LIBS
13482fi
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13484$as_echo "$ac_cv_search_dlopen" >&6; }
13485ac_res=$ac_cv_search_dlopen
13486if test "$ac_res" != no; then :
13487  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13488
13489fi
13490
13491else
13492  DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
13493fi
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
13495$as_echo_n "checking for whether to support dynamic extensions... " >&6; }
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
13497$as_echo "$enable_dynamic_extensions" >&6; }
13498
13499#-----------------------------------------------------------------------
13500
13501#-----------------------------------------------------------------------
13502#   --enable-fts5
13503#
13504# Check whether --enable-fts5 was given.
13505if test "${enable_fts5+set}" = set; then :
13506  enableval=$enable_fts5;
13507else
13508  enable_fts5=no
13509fi
13510
13511if test x"$enable_fts5" = "xyes"; then
13512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13513$as_echo_n "checking for library containing log... " >&6; }
13514if ${ac_cv_search_log+:} false; then :
13515  $as_echo_n "(cached) " >&6
13516else
13517  ac_func_search_save_LIBS=$LIBS
13518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519/* end confdefs.h.  */
13520
13521/* Override any GCC internal prototype to avoid an error.
13522   Use char because int might match the return type of a GCC
13523   builtin and then its argument prototype would still apply.  */
13524#ifdef __cplusplus
13525extern "C"
13526#endif
13527char log ();
13528int
13529main ()
13530{
13531return log ();
13532  ;
13533  return 0;
13534}
13535_ACEOF
13536for ac_lib in '' m; do
13537  if test -z "$ac_lib"; then
13538    ac_res="none required"
13539  else
13540    ac_res=-l$ac_lib
13541    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13542  fi
13543  if ac_fn_c_try_link "$LINENO"; then :
13544  ac_cv_search_log=$ac_res
13545fi
13546rm -f core conftest.err conftest.$ac_objext \
13547    conftest$ac_exeext
13548  if ${ac_cv_search_log+:} false; then :
13549  break
13550fi
13551done
13552if ${ac_cv_search_log+:} false; then :
13553
13554else
13555  ac_cv_search_log=no
13556fi
13557rm conftest.$ac_ext
13558LIBS=$ac_func_search_save_LIBS
13559fi
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13561$as_echo "$ac_cv_search_log" >&6; }
13562ac_res=$ac_cv_search_log
13563if test "$ac_res" != no; then :
13564  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13565
13566fi
13567
13568  FTS5_FLAGS=-DSQLITE_ENABLE_FTS5
13569fi
13570
13571#-----------------------------------------------------------------------
13572
13573#-----------------------------------------------------------------------
13574#   --enable-json1
13575#
13576# Check whether --enable-json1 was given.
13577if test "${enable_json1+set}" = set; then :
13578  enableval=$enable_json1;
13579else
13580  enable_json1=no
13581fi
13582
13583if test x"$enable_json1" = "xyes"; then
13584  JSON1_FLAGS=-DSQLITE_ENABLE_JSON1
13585fi
13586
13587#-----------------------------------------------------------------------
13588
13589#-----------------------------------------------------------------------
13590#   --enable-session
13591#
13592# Check whether --enable-session was given.
13593if test "${enable_session+set}" = set; then :
13594  enableval=$enable_session;
13595else
13596  enable_session=no
13597fi
13598
13599if test x"$enable_session" = "xyes"; then
13600  SESSION_FLAGS="-DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK"
13601fi
13602
13603#-----------------------------------------------------------------------
13604
13605#-----------------------------------------------------------------------
13606#   --enable-static-shell
13607#
13608# Check whether --enable-static-shell was given.
13609if test "${enable_static_shell+set}" = set; then :
13610  enableval=$enable_static_shell;
13611else
13612  enable_static_shell=yes
13613fi
13614
13615if test x"$enable_static_shell" = "xyes"; then
13616  EXTRA_SHELL_OBJ=sqlite3-sqlite3.$OBJEXT
13617else
13618  EXTRA_SHELL_OBJ=libsqlite3.la
13619fi
13620
13621#-----------------------------------------------------------------------
13622
13623for ac_func in posix_fallocate
13624do :
13625  ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
13626if test "x$ac_cv_func_posix_fallocate" = xyes; then :
13627  cat >>confdefs.h <<_ACEOF
13628#define HAVE_POSIX_FALLOCATE 1
13629_ACEOF
13630
13631fi
13632done
13633
13634
13635#-----------------------------------------------------------------------
13636# UPDATE: Maybe it's better if users just set CFLAGS before invoking
13637# configure. This option doesn't really add much...
13638#
13639#   --enable-tempstore
13640#
13641# AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
13642#   [--enable-tempstore],
13643#   [in-memory temporary tables (never, no, yes, always) [default=no]])],
13644#   [], [enable_tempstore=no])
13645# AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
13646# case "$enable_tempstore" in
13647#   never )  TEMP_STORE=0 ;;
13648#   no )     TEMP_STORE=1 ;;
13649#   always ) TEMP_STORE=3 ;;
13650#   yes )    TEMP_STORE=3 ;;
13651#   * )
13652#     TEMP_STORE=1
13653#     enable_tempstore=yes
13654#   ;;
13655# esac
13656# AC_MSG_RESULT($enable_tempstore)
13657# AC_SUBST(TEMP_STORE)
13658#-----------------------------------------------------------------------
13659
13660cat >confcache <<\_ACEOF
13661# This file is a shell script that caches the results of configure
13662# tests run on this system so they can be shared between configure
13663# scripts and configure runs, see configure's option --config-cache.
13664# It is not useful on other systems.  If it contains results you don't
13665# want to keep, you may remove or edit it.
13666#
13667# config.status only pays attention to the cache file if you give it
13668# the --recheck option to rerun configure.
13669#
13670# `ac_cv_env_foo' variables (set or unset) will be overridden when
13671# loading this file, other *unset* `ac_cv_foo' will be assigned the
13672# following values.
13673
13674_ACEOF
13675
13676# The following way of writing the cache mishandles newlines in values,
13677# but we know of no workaround that is simple, portable, and efficient.
13678# So, we kill variables containing newlines.
13679# Ultrix sh set writes to stderr and can't be redirected directly,
13680# and sets the high bit in the cache file unless we assign to the vars.
13681(
13682  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13683    eval ac_val=\$$ac_var
13684    case $ac_val in #(
13685    *${as_nl}*)
13686      case $ac_var in #(
13687      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13688$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13689      esac
13690      case $ac_var in #(
13691      _ | IFS | as_nl) ;; #(
13692      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13693      *) { eval $ac_var=; unset $ac_var;} ;;
13694      esac ;;
13695    esac
13696  done
13697
13698  (set) 2>&1 |
13699    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13700    *${as_nl}ac_space=\ *)
13701      # `set' does not quote correctly, so add quotes: double-quote
13702      # substitution turns \\\\ into \\, and sed turns \\ into \.
13703      sed -n \
13704	"s/'/'\\\\''/g;
13705	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13706      ;; #(
13707    *)
13708      # `set' quotes correctly as required by POSIX, so do not add quotes.
13709      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13710      ;;
13711    esac |
13712    sort
13713) |
13714  sed '
13715     /^ac_cv_env_/b end
13716     t clear
13717     :clear
13718     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13719     t end
13720     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13721     :end' >>confcache
13722if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13723  if test -w "$cache_file"; then
13724    if test "x$cache_file" != "x/dev/null"; then
13725      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13726$as_echo "$as_me: updating cache $cache_file" >&6;}
13727      if test ! -f "$cache_file" || test -h "$cache_file"; then
13728	cat confcache >"$cache_file"
13729      else
13730        case $cache_file in #(
13731        */* | ?:*)
13732	  mv -f confcache "$cache_file"$$ &&
13733	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13734        *)
13735	  mv -f confcache "$cache_file" ;;
13736	esac
13737      fi
13738    fi
13739  else
13740    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13741$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13742  fi
13743fi
13744rm -f confcache
13745
13746test "x$prefix" = xNONE && prefix=$ac_default_prefix
13747# Let make expand exec_prefix.
13748test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13749
13750# Transform confdefs.h into DEFS.
13751# Protect against shell expansion while executing Makefile rules.
13752# Protect against Makefile macro expansion.
13753#
13754# If the first sed substitution is executed (which looks for macros that
13755# take arguments), then branch to the quote section.  Otherwise,
13756# look for a macro that doesn't take arguments.
13757ac_script='
13758:mline
13759/\\$/{
13760 N
13761 s,\\\n,,
13762 b mline
13763}
13764t clear
13765:clear
13766s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
13767t quote
13768s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
13769t quote
13770b any
13771:quote
13772s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13773s/\[/\\&/g
13774s/\]/\\&/g
13775s/\$/$$/g
13776H
13777:any
13778${
13779	g
13780	s/^\n//
13781	s/\n/ /g
13782	p
13783}
13784'
13785DEFS=`sed -n "$ac_script" confdefs.h`
13786
13787
13788ac_libobjs=
13789ac_ltlibobjs=
13790U=
13791for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13792  # 1. Remove the extension, and $U if already installed.
13793  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13794  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13795  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13796  #    will be set to the directory where LIBOBJS objects are built.
13797  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13798  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13799done
13800LIBOBJS=$ac_libobjs
13801
13802LTLIBOBJS=$ac_ltlibobjs
13803
13804
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13806$as_echo_n "checking that generated files are newer than configure... " >&6; }
13807   if test -n "$am_sleep_pid"; then
13808     # Hide warnings about reused PIDs.
13809     wait $am_sleep_pid 2>/dev/null
13810   fi
13811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13812$as_echo "done" >&6; }
13813 if test -n "$EXEEXT"; then
13814  am__EXEEXT_TRUE=
13815  am__EXEEXT_FALSE='#'
13816else
13817  am__EXEEXT_TRUE='#'
13818  am__EXEEXT_FALSE=
13819fi
13820
13821if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13822  as_fn_error $? "conditional \"AMDEP\" was never defined.
13823Usually this means the macro was only invoked conditionally." "$LINENO" 5
13824fi
13825if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13826  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13827Usually this means the macro was only invoked conditionally." "$LINENO" 5
13828fi
13829if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13830  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13831Usually this means the macro was only invoked conditionally." "$LINENO" 5
13832fi
13833
13834: "${CONFIG_STATUS=./config.status}"
13835ac_write_fail=0
13836ac_clean_files_save=$ac_clean_files
13837ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13838{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13839$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13840as_write_fail=0
13841cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13842#! $SHELL
13843# Generated by $as_me.
13844# Run this file to recreate the current configuration.
13845# Compiler output produced by configure, useful for debugging
13846# configure, is in config.log if it exists.
13847
13848debug=false
13849ac_cs_recheck=false
13850ac_cs_silent=false
13851
13852SHELL=\${CONFIG_SHELL-$SHELL}
13853export SHELL
13854_ASEOF
13855cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13856## -------------------- ##
13857## M4sh Initialization. ##
13858## -------------------- ##
13859
13860# Be more Bourne compatible
13861DUALCASE=1; export DUALCASE # for MKS sh
13862if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13863  emulate sh
13864  NULLCMD=:
13865  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13866  # is contrary to our usage.  Disable this feature.
13867  alias -g '${1+"$@"}'='"$@"'
13868  setopt NO_GLOB_SUBST
13869else
13870  case `(set -o) 2>/dev/null` in #(
13871  *posix*) :
13872    set -o posix ;; #(
13873  *) :
13874     ;;
13875esac
13876fi
13877
13878
13879as_nl='
13880'
13881export as_nl
13882# Printing a long string crashes Solaris 7 /usr/bin/printf.
13883as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13884as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13885as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13886# Prefer a ksh shell builtin over an external printf program on Solaris,
13887# but without wasting forks for bash or zsh.
13888if test -z "$BASH_VERSION$ZSH_VERSION" \
13889    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13890  as_echo='print -r --'
13891  as_echo_n='print -rn --'
13892elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13893  as_echo='printf %s\n'
13894  as_echo_n='printf %s'
13895else
13896  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13897    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13898    as_echo_n='/usr/ucb/echo -n'
13899  else
13900    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13901    as_echo_n_body='eval
13902      arg=$1;
13903      case $arg in #(
13904      *"$as_nl"*)
13905	expr "X$arg" : "X\\(.*\\)$as_nl";
13906	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13907      esac;
13908      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13909    '
13910    export as_echo_n_body
13911    as_echo_n='sh -c $as_echo_n_body as_echo'
13912  fi
13913  export as_echo_body
13914  as_echo='sh -c $as_echo_body as_echo'
13915fi
13916
13917# The user is always right.
13918if test "${PATH_SEPARATOR+set}" != set; then
13919  PATH_SEPARATOR=:
13920  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13921    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13922      PATH_SEPARATOR=';'
13923  }
13924fi
13925
13926
13927# IFS
13928# We need space, tab and new line, in precisely that order.  Quoting is
13929# there to prevent editors from complaining about space-tab.
13930# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13931# splitting by setting IFS to empty value.)
13932IFS=" ""	$as_nl"
13933
13934# Find who we are.  Look in the path if we contain no directory separator.
13935as_myself=
13936case $0 in #((
13937  *[\\/]* ) as_myself=$0 ;;
13938  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939for as_dir in $PATH
13940do
13941  IFS=$as_save_IFS
13942  test -z "$as_dir" && as_dir=.
13943    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13944  done
13945IFS=$as_save_IFS
13946
13947     ;;
13948esac
13949# We did not find ourselves, most probably we were run as `sh COMMAND'
13950# in which case we are not to be found in the path.
13951if test "x$as_myself" = x; then
13952  as_myself=$0
13953fi
13954if test ! -f "$as_myself"; then
13955  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13956  exit 1
13957fi
13958
13959# Unset variables that we do not need and which cause bugs (e.g. in
13960# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13961# suppresses any "Segmentation fault" message there.  '((' could
13962# trigger a bug in pdksh 5.2.14.
13963for as_var in BASH_ENV ENV MAIL MAILPATH
13964do eval test x\${$as_var+set} = xset \
13965  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13966done
13967PS1='$ '
13968PS2='> '
13969PS4='+ '
13970
13971# NLS nuisances.
13972LC_ALL=C
13973export LC_ALL
13974LANGUAGE=C
13975export LANGUAGE
13976
13977# CDPATH.
13978(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13979
13980
13981# as_fn_error STATUS ERROR [LINENO LOG_FD]
13982# ----------------------------------------
13983# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13984# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13985# script with STATUS, using 1 if that was 0.
13986as_fn_error ()
13987{
13988  as_status=$1; test $as_status -eq 0 && as_status=1
13989  if test "$4"; then
13990    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13991    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13992  fi
13993  $as_echo "$as_me: error: $2" >&2
13994  as_fn_exit $as_status
13995} # as_fn_error
13996
13997
13998# as_fn_set_status STATUS
13999# -----------------------
14000# Set $? to STATUS, without forking.
14001as_fn_set_status ()
14002{
14003  return $1
14004} # as_fn_set_status
14005
14006# as_fn_exit STATUS
14007# -----------------
14008# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14009as_fn_exit ()
14010{
14011  set +e
14012  as_fn_set_status $1
14013  exit $1
14014} # as_fn_exit
14015
14016# as_fn_unset VAR
14017# ---------------
14018# Portably unset VAR.
14019as_fn_unset ()
14020{
14021  { eval $1=; unset $1;}
14022}
14023as_unset=as_fn_unset
14024# as_fn_append VAR VALUE
14025# ----------------------
14026# Append the text in VALUE to the end of the definition contained in VAR. Take
14027# advantage of any shell optimizations that allow amortized linear growth over
14028# repeated appends, instead of the typical quadratic growth present in naive
14029# implementations.
14030if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14031  eval 'as_fn_append ()
14032  {
14033    eval $1+=\$2
14034  }'
14035else
14036  as_fn_append ()
14037  {
14038    eval $1=\$$1\$2
14039  }
14040fi # as_fn_append
14041
14042# as_fn_arith ARG...
14043# ------------------
14044# Perform arithmetic evaluation on the ARGs, and store the result in the
14045# global $as_val. Take advantage of shells that can avoid forks. The arguments
14046# must be portable across $(()) and expr.
14047if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14048  eval 'as_fn_arith ()
14049  {
14050    as_val=$(( $* ))
14051  }'
14052else
14053  as_fn_arith ()
14054  {
14055    as_val=`expr "$@" || test $? -eq 1`
14056  }
14057fi # as_fn_arith
14058
14059
14060if expr a : '\(a\)' >/dev/null 2>&1 &&
14061   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14062  as_expr=expr
14063else
14064  as_expr=false
14065fi
14066
14067if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14068  as_basename=basename
14069else
14070  as_basename=false
14071fi
14072
14073if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14074  as_dirname=dirname
14075else
14076  as_dirname=false
14077fi
14078
14079as_me=`$as_basename -- "$0" ||
14080$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14081	 X"$0" : 'X\(//\)$' \| \
14082	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14083$as_echo X/"$0" |
14084    sed '/^.*\/\([^/][^/]*\)\/*$/{
14085	    s//\1/
14086	    q
14087	  }
14088	  /^X\/\(\/\/\)$/{
14089	    s//\1/
14090	    q
14091	  }
14092	  /^X\/\(\/\).*/{
14093	    s//\1/
14094	    q
14095	  }
14096	  s/.*/./; q'`
14097
14098# Avoid depending upon Character Ranges.
14099as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14100as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14101as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14102as_cr_digits='0123456789'
14103as_cr_alnum=$as_cr_Letters$as_cr_digits
14104
14105ECHO_C= ECHO_N= ECHO_T=
14106case `echo -n x` in #(((((
14107-n*)
14108  case `echo 'xy\c'` in
14109  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14110  xy)  ECHO_C='\c';;
14111  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14112       ECHO_T='	';;
14113  esac;;
14114*)
14115  ECHO_N='-n';;
14116esac
14117
14118rm -f conf$$ conf$$.exe conf$$.file
14119if test -d conf$$.dir; then
14120  rm -f conf$$.dir/conf$$.file
14121else
14122  rm -f conf$$.dir
14123  mkdir conf$$.dir 2>/dev/null
14124fi
14125if (echo >conf$$.file) 2>/dev/null; then
14126  if ln -s conf$$.file conf$$ 2>/dev/null; then
14127    as_ln_s='ln -s'
14128    # ... but there are two gotchas:
14129    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14130    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14131    # In both cases, we have to default to `cp -pR'.
14132    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14133      as_ln_s='cp -pR'
14134  elif ln conf$$.file conf$$ 2>/dev/null; then
14135    as_ln_s=ln
14136  else
14137    as_ln_s='cp -pR'
14138  fi
14139else
14140  as_ln_s='cp -pR'
14141fi
14142rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14143rmdir conf$$.dir 2>/dev/null
14144
14145
14146# as_fn_mkdir_p
14147# -------------
14148# Create "$as_dir" as a directory, including parents if necessary.
14149as_fn_mkdir_p ()
14150{
14151
14152  case $as_dir in #(
14153  -*) as_dir=./$as_dir;;
14154  esac
14155  test -d "$as_dir" || eval $as_mkdir_p || {
14156    as_dirs=
14157    while :; do
14158      case $as_dir in #(
14159      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14160      *) as_qdir=$as_dir;;
14161      esac
14162      as_dirs="'$as_qdir' $as_dirs"
14163      as_dir=`$as_dirname -- "$as_dir" ||
14164$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14165	 X"$as_dir" : 'X\(//\)[^/]' \| \
14166	 X"$as_dir" : 'X\(//\)$' \| \
14167	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14168$as_echo X"$as_dir" |
14169    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14170	    s//\1/
14171	    q
14172	  }
14173	  /^X\(\/\/\)[^/].*/{
14174	    s//\1/
14175	    q
14176	  }
14177	  /^X\(\/\/\)$/{
14178	    s//\1/
14179	    q
14180	  }
14181	  /^X\(\/\).*/{
14182	    s//\1/
14183	    q
14184	  }
14185	  s/.*/./; q'`
14186      test -d "$as_dir" && break
14187    done
14188    test -z "$as_dirs" || eval "mkdir $as_dirs"
14189  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14190
14191
14192} # as_fn_mkdir_p
14193if mkdir -p . 2>/dev/null; then
14194  as_mkdir_p='mkdir -p "$as_dir"'
14195else
14196  test -d ./-p && rmdir ./-p
14197  as_mkdir_p=false
14198fi
14199
14200
14201# as_fn_executable_p FILE
14202# -----------------------
14203# Test if FILE is an executable regular file.
14204as_fn_executable_p ()
14205{
14206  test -f "$1" && test -x "$1"
14207} # as_fn_executable_p
14208as_test_x='test -x'
14209as_executable_p=as_fn_executable_p
14210
14211# Sed expression to map a string onto a valid CPP name.
14212as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14213
14214# Sed expression to map a string onto a valid variable name.
14215as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14216
14217
14218exec 6>&1
14219## ----------------------------------- ##
14220## Main body of $CONFIG_STATUS script. ##
14221## ----------------------------------- ##
14222_ASEOF
14223test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14224
14225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14226# Save the log message, to keep $0 and so on meaningful, and to
14227# report actual input values of CONFIG_FILES etc. instead of their
14228# values after options handling.
14229ac_log="
14230This file was extended by sqlite $as_me 3.14.1, which was
14231generated by GNU Autoconf 2.69.  Invocation command line was
14232
14233  CONFIG_FILES    = $CONFIG_FILES
14234  CONFIG_HEADERS  = $CONFIG_HEADERS
14235  CONFIG_LINKS    = $CONFIG_LINKS
14236  CONFIG_COMMANDS = $CONFIG_COMMANDS
14237  $ $0 $@
14238
14239on `(hostname || uname -n) 2>/dev/null | sed 1q`
14240"
14241
14242_ACEOF
14243
14244case $ac_config_files in *"
14245"*) set x $ac_config_files; shift; ac_config_files=$*;;
14246esac
14247
14248
14249
14250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14251# Files that config.status was made for.
14252config_files="$ac_config_files"
14253config_commands="$ac_config_commands"
14254
14255_ACEOF
14256
14257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14258ac_cs_usage="\
14259\`$as_me' instantiates files and other configuration actions
14260from templates according to the current configuration.  Unless the files
14261and actions are specified as TAGs, all are instantiated by default.
14262
14263Usage: $0 [OPTION]... [TAG]...
14264
14265  -h, --help       print this help, then exit
14266  -V, --version    print version number and configuration settings, then exit
14267      --config     print configuration, then exit
14268  -q, --quiet, --silent
14269                   do not print progress messages
14270  -d, --debug      don't remove temporary files
14271      --recheck    update $as_me by reconfiguring in the same conditions
14272      --file=FILE[:TEMPLATE]
14273                   instantiate the configuration file FILE
14274
14275Configuration files:
14276$config_files
14277
14278Configuration commands:
14279$config_commands
14280
14281Report bugs to <http://www.sqlite.org>."
14282
14283_ACEOF
14284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14285ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14286ac_cs_version="\\
14287sqlite config.status 3.14.1
14288configured by $0, generated by GNU Autoconf 2.69,
14289  with options \\"\$ac_cs_config\\"
14290
14291Copyright (C) 2012 Free Software Foundation, Inc.
14292This config.status script is free software; the Free Software Foundation
14293gives unlimited permission to copy, distribute and modify it."
14294
14295ac_pwd='$ac_pwd'
14296srcdir='$srcdir'
14297INSTALL='$INSTALL'
14298MKDIR_P='$MKDIR_P'
14299AWK='$AWK'
14300test -n "\$AWK" || AWK=awk
14301_ACEOF
14302
14303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14304# The default lists apply if the user does not specify any file.
14305ac_need_defaults=:
14306while test $# != 0
14307do
14308  case $1 in
14309  --*=?*)
14310    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14311    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14312    ac_shift=:
14313    ;;
14314  --*=)
14315    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14316    ac_optarg=
14317    ac_shift=:
14318    ;;
14319  *)
14320    ac_option=$1
14321    ac_optarg=$2
14322    ac_shift=shift
14323    ;;
14324  esac
14325
14326  case $ac_option in
14327  # Handling of the options.
14328  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14329    ac_cs_recheck=: ;;
14330  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14331    $as_echo "$ac_cs_version"; exit ;;
14332  --config | --confi | --conf | --con | --co | --c )
14333    $as_echo "$ac_cs_config"; exit ;;
14334  --debug | --debu | --deb | --de | --d | -d )
14335    debug=: ;;
14336  --file | --fil | --fi | --f )
14337    $ac_shift
14338    case $ac_optarg in
14339    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14340    '') as_fn_error $? "missing file argument" ;;
14341    esac
14342    as_fn_append CONFIG_FILES " '$ac_optarg'"
14343    ac_need_defaults=false;;
14344  --he | --h |  --help | --hel | -h )
14345    $as_echo "$ac_cs_usage"; exit ;;
14346  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14347  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14348    ac_cs_silent=: ;;
14349
14350  # This is an error.
14351  -*) as_fn_error $? "unrecognized option: \`$1'
14352Try \`$0 --help' for more information." ;;
14353
14354  *) as_fn_append ac_config_targets " $1"
14355     ac_need_defaults=false ;;
14356
14357  esac
14358  shift
14359done
14360
14361ac_configure_extra_args=
14362
14363if $ac_cs_silent; then
14364  exec 6>/dev/null
14365  ac_configure_extra_args="$ac_configure_extra_args --silent"
14366fi
14367
14368_ACEOF
14369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14370if \$ac_cs_recheck; then
14371  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14372  shift
14373  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14374  CONFIG_SHELL='$SHELL'
14375  export CONFIG_SHELL
14376  exec "\$@"
14377fi
14378
14379_ACEOF
14380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14381exec 5>>config.log
14382{
14383  echo
14384  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14385## Running $as_me. ##
14386_ASBOX
14387  $as_echo "$ac_log"
14388} >&5
14389
14390_ACEOF
14391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14392#
14393# INIT-COMMANDS
14394#
14395AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14396
14397
14398# The HP-UX ksh and POSIX shell print the target directory to stdout
14399# if CDPATH is set.
14400(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14401
14402sed_quote_subst='$sed_quote_subst'
14403double_quote_subst='$double_quote_subst'
14404delay_variable_subst='$delay_variable_subst'
14405macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14406macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14407enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14408enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14409pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14410enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14411shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14412SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14413ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14414PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14415host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14416host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14417host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14418build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14419build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14420build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14421SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14422Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14423GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14424EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14425FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14426LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14427NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14428LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14429max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14430ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14431exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14432lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14433lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14434lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14435lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14436lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14437reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14438reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14439OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14440deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14441file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14442file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14443want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14444DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14445sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14446AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14447AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14448archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14449STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14450RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14451old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14452old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14453old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14454lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14455CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14456CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14457compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14458GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14459lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14460lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14461lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14462lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14463lt_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"`'
14464lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14465nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14466lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14467lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14468objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14469MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14470lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14471lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14472lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14473lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14474lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14475need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14476MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14477DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14478NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14479LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14480OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14481OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14482libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14483shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14484extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14485archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14486enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14487export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14488whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14489compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14490old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14491old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14492archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14493archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14494module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14495module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14496with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14497allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14498no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14499hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14500hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14501hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14502hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14503hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14504hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14505hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14506inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14507link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14508always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14509export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14510exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14511include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14512prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14513postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14514file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14515variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14516need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14517need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14518version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14519runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14520shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14521shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14522libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14523library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14524soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14525install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14526postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14527postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14528finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14529finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14530hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14531sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14532configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14533configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14534hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14535enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14536enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14537enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14538old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14539striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14540
14541LTCC='$LTCC'
14542LTCFLAGS='$LTCFLAGS'
14543compiler='$compiler_DEFAULT'
14544
14545# A function that is used when there is no print builtin or printf.
14546func_fallback_echo ()
14547{
14548  eval 'cat <<_LTECHO_EOF
14549\$1
14550_LTECHO_EOF'
14551}
14552
14553# Quote evaled strings.
14554for var in SHELL \
14555ECHO \
14556PATH_SEPARATOR \
14557SED \
14558GREP \
14559EGREP \
14560FGREP \
14561LD \
14562NM \
14563LN_S \
14564lt_SP2NL \
14565lt_NL2SP \
14566reload_flag \
14567OBJDUMP \
14568deplibs_check_method \
14569file_magic_cmd \
14570file_magic_glob \
14571want_nocaseglob \
14572DLLTOOL \
14573sharedlib_from_linklib_cmd \
14574AR \
14575AR_FLAGS \
14576archiver_list_spec \
14577STRIP \
14578RANLIB \
14579CC \
14580CFLAGS \
14581compiler \
14582lt_cv_sys_global_symbol_pipe \
14583lt_cv_sys_global_symbol_to_cdecl \
14584lt_cv_sys_global_symbol_to_import \
14585lt_cv_sys_global_symbol_to_c_name_address \
14586lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14587lt_cv_nm_interface \
14588nm_file_list_spec \
14589lt_cv_truncate_bin \
14590lt_prog_compiler_no_builtin_flag \
14591lt_prog_compiler_pic \
14592lt_prog_compiler_wl \
14593lt_prog_compiler_static \
14594lt_cv_prog_compiler_c_o \
14595need_locks \
14596MANIFEST_TOOL \
14597DSYMUTIL \
14598NMEDIT \
14599LIPO \
14600OTOOL \
14601OTOOL64 \
14602shrext_cmds \
14603export_dynamic_flag_spec \
14604whole_archive_flag_spec \
14605compiler_needs_object \
14606with_gnu_ld \
14607allow_undefined_flag \
14608no_undefined_flag \
14609hardcode_libdir_flag_spec \
14610hardcode_libdir_separator \
14611exclude_expsyms \
14612include_expsyms \
14613file_list_spec \
14614variables_saved_for_relink \
14615libname_spec \
14616library_names_spec \
14617soname_spec \
14618install_override_mode \
14619finish_eval \
14620old_striplib \
14621striplib; do
14622    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14623    *[\\\\\\\`\\"\\\$]*)
14624      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14625      ;;
14626    *)
14627      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14628      ;;
14629    esac
14630done
14631
14632# Double-quote double-evaled strings.
14633for var in reload_cmds \
14634old_postinstall_cmds \
14635old_postuninstall_cmds \
14636old_archive_cmds \
14637extract_expsyms_cmds \
14638old_archive_from_new_cmds \
14639old_archive_from_expsyms_cmds \
14640archive_cmds \
14641archive_expsym_cmds \
14642module_cmds \
14643module_expsym_cmds \
14644export_symbols_cmds \
14645prelink_cmds \
14646postlink_cmds \
14647postinstall_cmds \
14648postuninstall_cmds \
14649finish_cmds \
14650sys_lib_search_path_spec \
14651configure_time_dlsearch_path \
14652configure_time_lt_sys_library_path; do
14653    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14654    *[\\\\\\\`\\"\\\$]*)
14655      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14656      ;;
14657    *)
14658      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14659      ;;
14660    esac
14661done
14662
14663ac_aux_dir='$ac_aux_dir'
14664
14665# See if we are running on zsh, and set the options that allow our
14666# commands through without removal of \ escapes INIT.
14667if test -n "\${ZSH_VERSION+set}"; then
14668   setopt NO_GLOB_SUBST
14669fi
14670
14671
14672    PACKAGE='$PACKAGE'
14673    VERSION='$VERSION'
14674    RM='$RM'
14675    ofile='$ofile'
14676
14677
14678
14679
14680_ACEOF
14681
14682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14683
14684# Handling of arguments.
14685for ac_config_target in $ac_config_targets
14686do
14687  case $ac_config_target in
14688    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14689    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14690    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14691    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14692
14693  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14694  esac
14695done
14696
14697
14698# If the user did not use the arguments to specify the items to instantiate,
14699# then the envvar interface is used.  Set only those that are not.
14700# We use the long form for the default assignment because of an extremely
14701# bizarre bug on SunOS 4.1.3.
14702if $ac_need_defaults; then
14703  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14704  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14705fi
14706
14707# Have a temporary directory for convenience.  Make it in the build tree
14708# simply because there is no reason against having it here, and in addition,
14709# creating and moving files from /tmp can sometimes cause problems.
14710# Hook for its removal unless debugging.
14711# Note that there is a small window in which the directory will not be cleaned:
14712# after its creation but before its name has been assigned to `$tmp'.
14713$debug ||
14714{
14715  tmp= ac_tmp=
14716  trap 'exit_status=$?
14717  : "${ac_tmp:=$tmp}"
14718  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14719' 0
14720  trap 'as_fn_exit 1' 1 2 13 15
14721}
14722# Create a (secure) tmp directory for tmp files.
14723
14724{
14725  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14726  test -d "$tmp"
14727}  ||
14728{
14729  tmp=./conf$$-$RANDOM
14730  (umask 077 && mkdir "$tmp")
14731} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14732ac_tmp=$tmp
14733
14734# Set up the scripts for CONFIG_FILES section.
14735# No need to generate them if there are no CONFIG_FILES.
14736# This happens for instance with `./config.status config.h'.
14737if test -n "$CONFIG_FILES"; then
14738
14739
14740ac_cr=`echo X | tr X '\015'`
14741# On cygwin, bash can eat \r inside `` if the user requested igncr.
14742# But we know of no other shell where ac_cr would be empty at this
14743# point, so we can use a bashism as a fallback.
14744if test "x$ac_cr" = x; then
14745  eval ac_cr=\$\'\\r\'
14746fi
14747ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14748if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14749  ac_cs_awk_cr='\\r'
14750else
14751  ac_cs_awk_cr=$ac_cr
14752fi
14753
14754echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14755_ACEOF
14756
14757
14758{
14759  echo "cat >conf$$subs.awk <<_ACEOF" &&
14760  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14761  echo "_ACEOF"
14762} >conf$$subs.sh ||
14763  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14764ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14765ac_delim='%!_!# '
14766for ac_last_try in false false false false false :; do
14767  . ./conf$$subs.sh ||
14768    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14769
14770  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14771  if test $ac_delim_n = $ac_delim_num; then
14772    break
14773  elif $ac_last_try; then
14774    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14775  else
14776    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14777  fi
14778done
14779rm -f conf$$subs.sh
14780
14781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14782cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14783_ACEOF
14784sed -n '
14785h
14786s/^/S["/; s/!.*/"]=/
14787p
14788g
14789s/^[^!]*!//
14790:repl
14791t repl
14792s/'"$ac_delim"'$//
14793t delim
14794:nl
14795h
14796s/\(.\{148\}\)..*/\1/
14797t more1
14798s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14799p
14800n
14801b repl
14802:more1
14803s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14804p
14805g
14806s/.\{148\}//
14807t nl
14808:delim
14809h
14810s/\(.\{148\}\)..*/\1/
14811t more2
14812s/["\\]/\\&/g; s/^/"/; s/$/"/
14813p
14814b
14815:more2
14816s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14817p
14818g
14819s/.\{148\}//
14820t delim
14821' <conf$$subs.awk | sed '
14822/^[^""]/{
14823  N
14824  s/\n//
14825}
14826' >>$CONFIG_STATUS || ac_write_fail=1
14827rm -f conf$$subs.awk
14828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14829_ACAWK
14830cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14831  for (key in S) S_is_set[key] = 1
14832  FS = ""
14833
14834}
14835{
14836  line = $ 0
14837  nfields = split(line, field, "@")
14838  substed = 0
14839  len = length(field[1])
14840  for (i = 2; i < nfields; i++) {
14841    key = field[i]
14842    keylen = length(key)
14843    if (S_is_set[key]) {
14844      value = S[key]
14845      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14846      len += length(value) + length(field[++i])
14847      substed = 1
14848    } else
14849      len += 1 + keylen
14850  }
14851
14852  print line
14853}
14854
14855_ACAWK
14856_ACEOF
14857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14858if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14859  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14860else
14861  cat
14862fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14863  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14864_ACEOF
14865
14866# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14867# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14868# trailing colons and then remove the whole line if VPATH becomes empty
14869# (actually we leave an empty line to preserve line numbers).
14870if test "x$srcdir" = x.; then
14871  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14872h
14873s///
14874s/^/:/
14875s/[	 ]*$/:/
14876s/:\$(srcdir):/:/g
14877s/:\${srcdir}:/:/g
14878s/:@srcdir@:/:/g
14879s/^:*//
14880s/:*$//
14881x
14882s/\(=[	 ]*\).*/\1/
14883G
14884s/\n//
14885s/^[^=]*=[	 ]*$//
14886}'
14887fi
14888
14889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14890fi # test -n "$CONFIG_FILES"
14891
14892
14893eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
14894shift
14895for ac_tag
14896do
14897  case $ac_tag in
14898  :[FHLC]) ac_mode=$ac_tag; continue;;
14899  esac
14900  case $ac_mode$ac_tag in
14901  :[FHL]*:*);;
14902  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14903  :[FH]-) ac_tag=-:-;;
14904  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14905  esac
14906  ac_save_IFS=$IFS
14907  IFS=:
14908  set x $ac_tag
14909  IFS=$ac_save_IFS
14910  shift
14911  ac_file=$1
14912  shift
14913
14914  case $ac_mode in
14915  :L) ac_source=$1;;
14916  :[FH])
14917    ac_file_inputs=
14918    for ac_f
14919    do
14920      case $ac_f in
14921      -) ac_f="$ac_tmp/stdin";;
14922      *) # Look for the file first in the build tree, then in the source tree
14923	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14924	 # because $ac_f cannot contain `:'.
14925	 test -f "$ac_f" ||
14926	   case $ac_f in
14927	   [\\/$]*) false;;
14928	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14929	   esac ||
14930	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14931      esac
14932      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14933      as_fn_append ac_file_inputs " '$ac_f'"
14934    done
14935
14936    # Let's still pretend it is `configure' which instantiates (i.e., don't
14937    # use $as_me), people would be surprised to read:
14938    #    /* config.h.  Generated by config.status.  */
14939    configure_input='Generated from '`
14940	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14941	`' by configure.'
14942    if test x"$ac_file" != x-; then
14943      configure_input="$ac_file.  $configure_input"
14944      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14945$as_echo "$as_me: creating $ac_file" >&6;}
14946    fi
14947    # Neutralize special characters interpreted by sed in replacement strings.
14948    case $configure_input in #(
14949    *\&* | *\|* | *\\* )
14950       ac_sed_conf_input=`$as_echo "$configure_input" |
14951       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14952    *) ac_sed_conf_input=$configure_input;;
14953    esac
14954
14955    case $ac_tag in
14956    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14957      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14958    esac
14959    ;;
14960  esac
14961
14962  ac_dir=`$as_dirname -- "$ac_file" ||
14963$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14964	 X"$ac_file" : 'X\(//\)[^/]' \| \
14965	 X"$ac_file" : 'X\(//\)$' \| \
14966	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14967$as_echo X"$ac_file" |
14968    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14969	    s//\1/
14970	    q
14971	  }
14972	  /^X\(\/\/\)[^/].*/{
14973	    s//\1/
14974	    q
14975	  }
14976	  /^X\(\/\/\)$/{
14977	    s//\1/
14978	    q
14979	  }
14980	  /^X\(\/\).*/{
14981	    s//\1/
14982	    q
14983	  }
14984	  s/.*/./; q'`
14985  as_dir="$ac_dir"; as_fn_mkdir_p
14986  ac_builddir=.
14987
14988case "$ac_dir" in
14989.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14990*)
14991  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14992  # A ".." for each directory in $ac_dir_suffix.
14993  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14994  case $ac_top_builddir_sub in
14995  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14996  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14997  esac ;;
14998esac
14999ac_abs_top_builddir=$ac_pwd
15000ac_abs_builddir=$ac_pwd$ac_dir_suffix
15001# for backward compatibility:
15002ac_top_builddir=$ac_top_build_prefix
15003
15004case $srcdir in
15005  .)  # We are building in place.
15006    ac_srcdir=.
15007    ac_top_srcdir=$ac_top_builddir_sub
15008    ac_abs_top_srcdir=$ac_pwd ;;
15009  [\\/]* | ?:[\\/]* )  # Absolute name.
15010    ac_srcdir=$srcdir$ac_dir_suffix;
15011    ac_top_srcdir=$srcdir
15012    ac_abs_top_srcdir=$srcdir ;;
15013  *) # Relative name.
15014    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15015    ac_top_srcdir=$ac_top_build_prefix$srcdir
15016    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15017esac
15018ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15019
15020
15021  case $ac_mode in
15022  :F)
15023  #
15024  # CONFIG_FILE
15025  #
15026
15027  case $INSTALL in
15028  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15029  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15030  esac
15031  ac_MKDIR_P=$MKDIR_P
15032  case $MKDIR_P in
15033  [\\/$]* | ?:[\\/]* ) ;;
15034  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15035  esac
15036_ACEOF
15037
15038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15039# If the template does not know about datarootdir, expand it.
15040# FIXME: This hack should be removed a few years after 2.60.
15041ac_datarootdir_hack=; ac_datarootdir_seen=
15042ac_sed_dataroot='
15043/datarootdir/ {
15044  p
15045  q
15046}
15047/@datadir@/p
15048/@docdir@/p
15049/@infodir@/p
15050/@localedir@/p
15051/@mandir@/p'
15052case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15053*datarootdir*) ac_datarootdir_seen=yes;;
15054*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15055  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15056$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15057_ACEOF
15058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15059  ac_datarootdir_hack='
15060  s&@datadir@&$datadir&g
15061  s&@docdir@&$docdir&g
15062  s&@infodir@&$infodir&g
15063  s&@localedir@&$localedir&g
15064  s&@mandir@&$mandir&g
15065  s&\\\${datarootdir}&$datarootdir&g' ;;
15066esac
15067_ACEOF
15068
15069# Neutralize VPATH when `$srcdir' = `.'.
15070# Shell code in configure.ac might set extrasub.
15071# FIXME: do we really want to maintain this feature?
15072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15073ac_sed_extra="$ac_vpsub
15074$extrasub
15075_ACEOF
15076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15077:t
15078/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15079s|@configure_input@|$ac_sed_conf_input|;t t
15080s&@top_builddir@&$ac_top_builddir_sub&;t t
15081s&@top_build_prefix@&$ac_top_build_prefix&;t t
15082s&@srcdir@&$ac_srcdir&;t t
15083s&@abs_srcdir@&$ac_abs_srcdir&;t t
15084s&@top_srcdir@&$ac_top_srcdir&;t t
15085s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15086s&@builddir@&$ac_builddir&;t t
15087s&@abs_builddir@&$ac_abs_builddir&;t t
15088s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15089s&@INSTALL@&$ac_INSTALL&;t t
15090s&@MKDIR_P@&$ac_MKDIR_P&;t t
15091$ac_datarootdir_hack
15092"
15093eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15094  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15095
15096test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15097  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15098  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15099      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15100  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15101which seems to be undefined.  Please make sure it is defined" >&5
15102$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15103which seems to be undefined.  Please make sure it is defined" >&2;}
15104
15105  rm -f "$ac_tmp/stdin"
15106  case $ac_file in
15107  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15108  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15109  esac \
15110  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15111 ;;
15112
15113
15114  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15115$as_echo "$as_me: executing $ac_file commands" >&6;}
15116 ;;
15117  esac
15118
15119
15120  case $ac_file$ac_mode in
15121    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15122  # Older Autoconf quotes --file arguments for eval, but not when files
15123  # are listed without --file.  Let's play safe and only enable the eval
15124  # if we detect the quoting.
15125  case $CONFIG_FILES in
15126  *\'*) eval set x "$CONFIG_FILES" ;;
15127  *)   set x $CONFIG_FILES ;;
15128  esac
15129  shift
15130  for mf
15131  do
15132    # Strip MF so we end up with the name of the file.
15133    mf=`echo "$mf" | sed -e 's/:.*$//'`
15134    # Check whether this is an Automake generated Makefile or not.
15135    # We used to match only the files named 'Makefile.in', but
15136    # some people rename them; so instead we look at the file content.
15137    # Grep'ing the first line is not enough: some people post-process
15138    # each Makefile.in and add a new line on top of each file to say so.
15139    # Grep'ing the whole file is not good either: AIX grep has a line
15140    # limit of 2048, but all sed's we know have understand at least 4000.
15141    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15142      dirpart=`$as_dirname -- "$mf" ||
15143$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15144	 X"$mf" : 'X\(//\)[^/]' \| \
15145	 X"$mf" : 'X\(//\)$' \| \
15146	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15147$as_echo X"$mf" |
15148    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15149	    s//\1/
15150	    q
15151	  }
15152	  /^X\(\/\/\)[^/].*/{
15153	    s//\1/
15154	    q
15155	  }
15156	  /^X\(\/\/\)$/{
15157	    s//\1/
15158	    q
15159	  }
15160	  /^X\(\/\).*/{
15161	    s//\1/
15162	    q
15163	  }
15164	  s/.*/./; q'`
15165    else
15166      continue
15167    fi
15168    # Extract the definition of DEPDIR, am__include, and am__quote
15169    # from the Makefile without running 'make'.
15170    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15171    test -z "$DEPDIR" && continue
15172    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15173    test -z "$am__include" && continue
15174    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15175    # Find all dependency output files, they are included files with
15176    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15177    # simplest approach to changing $(DEPDIR) to its actual value in the
15178    # expansion.
15179    for file in `sed -n "
15180      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15181	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15182      # Make sure the directory exists.
15183      test -f "$dirpart/$file" && continue
15184      fdir=`$as_dirname -- "$file" ||
15185$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15186	 X"$file" : 'X\(//\)[^/]' \| \
15187	 X"$file" : 'X\(//\)$' \| \
15188	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15189$as_echo X"$file" |
15190    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15191	    s//\1/
15192	    q
15193	  }
15194	  /^X\(\/\/\)[^/].*/{
15195	    s//\1/
15196	    q
15197	  }
15198	  /^X\(\/\/\)$/{
15199	    s//\1/
15200	    q
15201	  }
15202	  /^X\(\/\).*/{
15203	    s//\1/
15204	    q
15205	  }
15206	  s/.*/./; q'`
15207      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15208      # echo "creating $dirpart/$file"
15209      echo '# dummy' > "$dirpart/$file"
15210    done
15211  done
15212}
15213 ;;
15214    "libtool":C)
15215
15216    # See if we are running on zsh, and set the options that allow our
15217    # commands through without removal of \ escapes.
15218    if test -n "${ZSH_VERSION+set}"; then
15219      setopt NO_GLOB_SUBST
15220    fi
15221
15222    cfgfile=${ofile}T
15223    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15224    $RM "$cfgfile"
15225
15226    cat <<_LT_EOF >> "$cfgfile"
15227#! $SHELL
15228# Generated automatically by $as_me ($PACKAGE) $VERSION
15229# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15230# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15231
15232# Provide generalized library-building support services.
15233# Written by Gordon Matzigkeit, 1996
15234
15235# Copyright (C) 2014 Free Software Foundation, Inc.
15236# This is free software; see the source for copying conditions.  There is NO
15237# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15238
15239# GNU Libtool is free software; you can redistribute it and/or modify
15240# it under the terms of the GNU General Public License as published by
15241# the Free Software Foundation; either version 2 of of the License, or
15242# (at your option) any later version.
15243#
15244# As a special exception to the GNU General Public License, if you
15245# distribute this file as part of a program or library that is built
15246# using GNU Libtool, you may include this file under the  same
15247# distribution terms that you use for the rest of that program.
15248#
15249# GNU Libtool is distributed in the hope that it will be useful, but
15250# WITHOUT ANY WARRANTY; without even the implied warranty of
15251# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15252# GNU General Public License for more details.
15253#
15254# You should have received a copy of the GNU General Public License
15255# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15256
15257
15258# The names of the tagged configurations supported by this script.
15259available_tags=''
15260
15261# Configured defaults for sys_lib_dlsearch_path munging.
15262: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15263
15264# ### BEGIN LIBTOOL CONFIG
15265
15266# Which release of libtool.m4 was used?
15267macro_version=$macro_version
15268macro_revision=$macro_revision
15269
15270# Whether or not to build shared libraries.
15271build_libtool_libs=$enable_shared
15272
15273# Whether or not to build static libraries.
15274build_old_libs=$enable_static
15275
15276# What type of objects to build.
15277pic_mode=$pic_mode
15278
15279# Whether or not to optimize for fast installation.
15280fast_install=$enable_fast_install
15281
15282# Shared archive member basename,for filename based shared library versioning on AIX.
15283shared_archive_member_spec=$shared_archive_member_spec
15284
15285# Shell to use when invoking shell scripts.
15286SHELL=$lt_SHELL
15287
15288# An echo program that protects backslashes.
15289ECHO=$lt_ECHO
15290
15291# The PATH separator for the build system.
15292PATH_SEPARATOR=$lt_PATH_SEPARATOR
15293
15294# The host system.
15295host_alias=$host_alias
15296host=$host
15297host_os=$host_os
15298
15299# The build system.
15300build_alias=$build_alias
15301build=$build
15302build_os=$build_os
15303
15304# A sed program that does not truncate output.
15305SED=$lt_SED
15306
15307# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15308Xsed="\$SED -e 1s/^X//"
15309
15310# A grep program that handles long lines.
15311GREP=$lt_GREP
15312
15313# An ERE matcher.
15314EGREP=$lt_EGREP
15315
15316# A literal string matcher.
15317FGREP=$lt_FGREP
15318
15319# A BSD- or MS-compatible name lister.
15320NM=$lt_NM
15321
15322# Whether we need soft or hard links.
15323LN_S=$lt_LN_S
15324
15325# What is the maximum length of a command?
15326max_cmd_len=$max_cmd_len
15327
15328# Object file suffix (normally "o").
15329objext=$ac_objext
15330
15331# Executable file suffix (normally "").
15332exeext=$exeext
15333
15334# whether the shell understands "unset".
15335lt_unset=$lt_unset
15336
15337# turn spaces into newlines.
15338SP2NL=$lt_lt_SP2NL
15339
15340# turn newlines into spaces.
15341NL2SP=$lt_lt_NL2SP
15342
15343# convert \$build file names to \$host format.
15344to_host_file_cmd=$lt_cv_to_host_file_cmd
15345
15346# convert \$build files to toolchain format.
15347to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15348
15349# An object symbol dumper.
15350OBJDUMP=$lt_OBJDUMP
15351
15352# Method to check whether dependent libraries are shared objects.
15353deplibs_check_method=$lt_deplibs_check_method
15354
15355# Command to use when deplibs_check_method = "file_magic".
15356file_magic_cmd=$lt_file_magic_cmd
15357
15358# How to find potential files when deplibs_check_method = "file_magic".
15359file_magic_glob=$lt_file_magic_glob
15360
15361# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15362want_nocaseglob=$lt_want_nocaseglob
15363
15364# DLL creation program.
15365DLLTOOL=$lt_DLLTOOL
15366
15367# Command to associate shared and link libraries.
15368sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15369
15370# The archiver.
15371AR=$lt_AR
15372
15373# Flags to create an archive.
15374AR_FLAGS=$lt_AR_FLAGS
15375
15376# How to feed a file listing to the archiver.
15377archiver_list_spec=$lt_archiver_list_spec
15378
15379# A symbol stripping program.
15380STRIP=$lt_STRIP
15381
15382# Commands used to install an old-style archive.
15383RANLIB=$lt_RANLIB
15384old_postinstall_cmds=$lt_old_postinstall_cmds
15385old_postuninstall_cmds=$lt_old_postuninstall_cmds
15386
15387# Whether to use a lock for old archive extraction.
15388lock_old_archive_extraction=$lock_old_archive_extraction
15389
15390# A C compiler.
15391LTCC=$lt_CC
15392
15393# LTCC compiler flags.
15394LTCFLAGS=$lt_CFLAGS
15395
15396# Take the output of nm and produce a listing of raw symbols and C names.
15397global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15398
15399# Transform the output of nm in a proper C declaration.
15400global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15401
15402# Transform the output of nm into a list of symbols to manually relocate.
15403global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15404
15405# Transform the output of nm in a C name address pair.
15406global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15407
15408# Transform the output of nm in a C name address pair when lib prefix is needed.
15409global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15410
15411# The name lister interface.
15412nm_interface=$lt_lt_cv_nm_interface
15413
15414# Specify filename containing input files for \$NM.
15415nm_file_list_spec=$lt_nm_file_list_spec
15416
15417# The root where to search for dependent libraries,and where our libraries should be installed.
15418lt_sysroot=$lt_sysroot
15419
15420# Command to truncate a binary pipe.
15421lt_truncate_bin=$lt_lt_cv_truncate_bin
15422
15423# The name of the directory that contains temporary libtool files.
15424objdir=$objdir
15425
15426# Used to examine libraries when file_magic_cmd begins with "file".
15427MAGIC_CMD=$MAGIC_CMD
15428
15429# Must we lock files when doing compilation?
15430need_locks=$lt_need_locks
15431
15432# Manifest tool.
15433MANIFEST_TOOL=$lt_MANIFEST_TOOL
15434
15435# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15436DSYMUTIL=$lt_DSYMUTIL
15437
15438# Tool to change global to local symbols on Mac OS X.
15439NMEDIT=$lt_NMEDIT
15440
15441# Tool to manipulate fat objects and archives on Mac OS X.
15442LIPO=$lt_LIPO
15443
15444# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15445OTOOL=$lt_OTOOL
15446
15447# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15448OTOOL64=$lt_OTOOL64
15449
15450# Old archive suffix (normally "a").
15451libext=$libext
15452
15453# Shared library suffix (normally ".so").
15454shrext_cmds=$lt_shrext_cmds
15455
15456# The commands to extract the exported symbol list from a shared archive.
15457extract_expsyms_cmds=$lt_extract_expsyms_cmds
15458
15459# Variables whose values should be saved in libtool wrapper scripts and
15460# restored at link time.
15461variables_saved_for_relink=$lt_variables_saved_for_relink
15462
15463# Do we need the "lib" prefix for modules?
15464need_lib_prefix=$need_lib_prefix
15465
15466# Do we need a version for libraries?
15467need_version=$need_version
15468
15469# Library versioning type.
15470version_type=$version_type
15471
15472# Shared library runtime path variable.
15473runpath_var=$runpath_var
15474
15475# Shared library path variable.
15476shlibpath_var=$shlibpath_var
15477
15478# Is shlibpath searched before the hard-coded library search path?
15479shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15480
15481# Format of library name prefix.
15482libname_spec=$lt_libname_spec
15483
15484# List of archive names.  First name is the real one, the rest are links.
15485# The last name is the one that the linker finds with -lNAME
15486library_names_spec=$lt_library_names_spec
15487
15488# The coded name of the library, if different from the real name.
15489soname_spec=$lt_soname_spec
15490
15491# Permission mode override for installation of shared libraries.
15492install_override_mode=$lt_install_override_mode
15493
15494# Command to use after installation of a shared archive.
15495postinstall_cmds=$lt_postinstall_cmds
15496
15497# Command to use after uninstallation of a shared archive.
15498postuninstall_cmds=$lt_postuninstall_cmds
15499
15500# Commands used to finish a libtool library installation in a directory.
15501finish_cmds=$lt_finish_cmds
15502
15503# As "finish_cmds", except a single script fragment to be evaled but
15504# not shown.
15505finish_eval=$lt_finish_eval
15506
15507# Whether we should hardcode library paths into libraries.
15508hardcode_into_libs=$hardcode_into_libs
15509
15510# Compile-time system search path for libraries.
15511sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15512
15513# Detected run-time system search path for libraries.
15514sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15515
15516# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15517configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15518
15519# Whether dlopen is supported.
15520dlopen_support=$enable_dlopen
15521
15522# Whether dlopen of programs is supported.
15523dlopen_self=$enable_dlopen_self
15524
15525# Whether dlopen of statically linked programs is supported.
15526dlopen_self_static=$enable_dlopen_self_static
15527
15528# Commands to strip libraries.
15529old_striplib=$lt_old_striplib
15530striplib=$lt_striplib
15531
15532
15533# The linker used to build libraries.
15534LD=$lt_LD
15535
15536# How to create reloadable object files.
15537reload_flag=$lt_reload_flag
15538reload_cmds=$lt_reload_cmds
15539
15540# Commands used to build an old-style archive.
15541old_archive_cmds=$lt_old_archive_cmds
15542
15543# A language specific compiler.
15544CC=$lt_compiler
15545
15546# Is the compiler the GNU compiler?
15547with_gcc=$GCC
15548
15549# Compiler flag to turn off builtin functions.
15550no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15551
15552# Additional compiler flags for building library objects.
15553pic_flag=$lt_lt_prog_compiler_pic
15554
15555# How to pass a linker flag through the compiler.
15556wl=$lt_lt_prog_compiler_wl
15557
15558# Compiler flag to prevent dynamic linking.
15559link_static_flag=$lt_lt_prog_compiler_static
15560
15561# Does compiler simultaneously support -c and -o options?
15562compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15563
15564# Whether or not to add -lc for building shared libraries.
15565build_libtool_need_lc=$archive_cmds_need_lc
15566
15567# Whether or not to disallow shared libs when runtime libs are static.
15568allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15569
15570# Compiler flag to allow reflexive dlopens.
15571export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15572
15573# Compiler flag to generate shared objects directly from archives.
15574whole_archive_flag_spec=$lt_whole_archive_flag_spec
15575
15576# Whether the compiler copes with passing no objects directly.
15577compiler_needs_object=$lt_compiler_needs_object
15578
15579# Create an old-style archive from a shared archive.
15580old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15581
15582# Create a temporary old-style archive to link instead of a shared archive.
15583old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15584
15585# Commands used to build a shared archive.
15586archive_cmds=$lt_archive_cmds
15587archive_expsym_cmds=$lt_archive_expsym_cmds
15588
15589# Commands used to build a loadable module if different from building
15590# a shared archive.
15591module_cmds=$lt_module_cmds
15592module_expsym_cmds=$lt_module_expsym_cmds
15593
15594# Whether we are building with GNU ld or not.
15595with_gnu_ld=$lt_with_gnu_ld
15596
15597# Flag that allows shared libraries with undefined symbols to be built.
15598allow_undefined_flag=$lt_allow_undefined_flag
15599
15600# Flag that enforces no undefined symbols.
15601no_undefined_flag=$lt_no_undefined_flag
15602
15603# Flag to hardcode \$libdir into a binary during linking.
15604# This must work even if \$libdir does not exist
15605hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15606
15607# Whether we need a single "-rpath" flag with a separated argument.
15608hardcode_libdir_separator=$lt_hardcode_libdir_separator
15609
15610# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15611# DIR into the resulting binary.
15612hardcode_direct=$hardcode_direct
15613
15614# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15615# DIR into the resulting binary and the resulting library dependency is
15616# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15617# library is relocated.
15618hardcode_direct_absolute=$hardcode_direct_absolute
15619
15620# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15621# into the resulting binary.
15622hardcode_minus_L=$hardcode_minus_L
15623
15624# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15625# into the resulting binary.
15626hardcode_shlibpath_var=$hardcode_shlibpath_var
15627
15628# Set to "yes" if building a shared library automatically hardcodes DIR
15629# into the library and all subsequent libraries and executables linked
15630# against it.
15631hardcode_automatic=$hardcode_automatic
15632
15633# Set to yes if linker adds runtime paths of dependent libraries
15634# to runtime path list.
15635inherit_rpath=$inherit_rpath
15636
15637# Whether libtool must link a program against all its dependency libraries.
15638link_all_deplibs=$link_all_deplibs
15639
15640# Set to "yes" if exported symbols are required.
15641always_export_symbols=$always_export_symbols
15642
15643# The commands to list exported symbols.
15644export_symbols_cmds=$lt_export_symbols_cmds
15645
15646# Symbols that should not be listed in the preloaded symbols.
15647exclude_expsyms=$lt_exclude_expsyms
15648
15649# Symbols that must always be exported.
15650include_expsyms=$lt_include_expsyms
15651
15652# Commands necessary for linking programs (against libraries) with templates.
15653prelink_cmds=$lt_prelink_cmds
15654
15655# Commands necessary for finishing linking programs.
15656postlink_cmds=$lt_postlink_cmds
15657
15658# Specify filename containing input files.
15659file_list_spec=$lt_file_list_spec
15660
15661# How to hardcode a shared library path into an executable.
15662hardcode_action=$hardcode_action
15663
15664# ### END LIBTOOL CONFIG
15665
15666_LT_EOF
15667
15668    cat <<'_LT_EOF' >> "$cfgfile"
15669
15670# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15671
15672# func_munge_path_list VARIABLE PATH
15673# -----------------------------------
15674# VARIABLE is name of variable containing _space_ separated list of
15675# directories to be munged by the contents of PATH, which is string
15676# having a format:
15677# "DIR[:DIR]:"
15678#       string "DIR[ DIR]" will be prepended to VARIABLE
15679# ":DIR[:DIR]"
15680#       string "DIR[ DIR]" will be appended to VARIABLE
15681# "DIRP[:DIRP]::[DIRA:]DIRA"
15682#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15683#       "DIRA[ DIRA]" will be appended to VARIABLE
15684# "DIR[:DIR]"
15685#       VARIABLE will be replaced by "DIR[ DIR]"
15686func_munge_path_list ()
15687{
15688    case x$2 in
15689    x)
15690        ;;
15691    *:)
15692        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15693        ;;
15694    x:*)
15695        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15696        ;;
15697    *::*)
15698        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15699        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15700        ;;
15701    *)
15702        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15703        ;;
15704    esac
15705}
15706
15707
15708# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15709func_cc_basename ()
15710{
15711    for cc_temp in $*""; do
15712      case $cc_temp in
15713        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15714        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15715        \-*) ;;
15716        *) break;;
15717      esac
15718    done
15719    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15720}
15721
15722
15723# ### END FUNCTIONS SHARED WITH CONFIGURE
15724
15725_LT_EOF
15726
15727  case $host_os in
15728  aix3*)
15729    cat <<\_LT_EOF >> "$cfgfile"
15730# AIX sometimes has problems with the GCC collect2 program.  For some
15731# reason, if we set the COLLECT_NAMES environment variable, the problems
15732# vanish in a puff of smoke.
15733if test set != "${COLLECT_NAMES+set}"; then
15734  COLLECT_NAMES=
15735  export COLLECT_NAMES
15736fi
15737_LT_EOF
15738    ;;
15739  esac
15740
15741
15742ltmain=$ac_aux_dir/ltmain.sh
15743
15744
15745  # We use sed instead of cat because bash on DJGPP gets confused if
15746  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15747  # text mode, it properly converts lines to CR/LF.  This bash problem
15748  # is reportedly fixed, but why not run on old versions too?
15749  sed '$q' "$ltmain" >> "$cfgfile" \
15750     || (rm -f "$cfgfile"; exit 1)
15751
15752   mv -f "$cfgfile" "$ofile" ||
15753    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15754  chmod +x "$ofile"
15755
15756 ;;
15757
15758  esac
15759done # for ac_tag
15760
15761
15762as_fn_exit 0
15763_ACEOF
15764ac_clean_files=$ac_clean_files_save
15765
15766test $ac_write_fail = 0 ||
15767  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15768
15769
15770# configure is writing to config.log, and then calls config.status.
15771# config.status does its own redirection, appending to config.log.
15772# Unfortunately, on DOS this fails, as config.log is still kept open
15773# by configure, so config.status won't be able to write to it; its
15774# output is simply discarded.  So we exec the FD to /dev/null,
15775# effectively closing config.log, so it can be properly (re)opened and
15776# appended to by config.status.  When coming back to configure, we
15777# need to make the FD available again.
15778if test "$no_create" != yes; then
15779  ac_cs_success=:
15780  ac_config_status_args=
15781  test "$silent" = yes &&
15782    ac_config_status_args="$ac_config_status_args --quiet"
15783  exec 5>/dev/null
15784  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15785  exec 5>>config.log
15786  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15787  # would make configure fail if this is the last instruction.
15788  $ac_cs_success || as_fn_exit 1
15789fi
15790if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15791  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15792$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15793fi
15794
15795