xref: /sqlite-3.40.0/configure (revision 7aa3ebee)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.12.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell [email protected] about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558# Check that we are running under the correct shell.
559SHELL=${CONFIG_SHELL-/bin/sh}
560
561case X$lt_ECHO in
562X*--fallback-echo)
563  # Remove one level of quotation (which was required for Make).
564  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
565  ;;
566esac
567
568ECHO=${lt_ECHO-echo}
569if test "X$1" = X--no-reexec; then
570  # Discard the --no-reexec flag, and continue.
571  shift
572elif test "X$1" = X--fallback-echo; then
573  # Avoid inline document here, it may be left over
574  :
575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576  # Yippee, $ECHO works!
577  :
578else
579  # Restart under the correct shell.
580  exec $SHELL "$0" --no-reexec ${1+"$@"}
581fi
582
583if test "X$1" = X--fallback-echo; then
584  # used as fallback echo
585  shift
586  cat <<_LT_EOF
587$*
588_LT_EOF
589  exit 0
590fi
591
592# The HP-UX ksh and POSIX shell print the target directory to stdout
593# if CDPATH is set.
594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596if test -z "$lt_ECHO"; then
597  if test "X${echo_test_string+set}" != Xset; then
598    # find a string as large as possible, as long as the shell can cope with it
599    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603      then
604        break
605      fi
606    done
607  fi
608
609  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611     test "X$echo_testing_string" = "X$echo_test_string"; then
612    :
613  else
614    # The Solaris, AIX, and Digital Unix default echo programs unquote
615    # backslashes.  This makes it impossible to quote backslashes using
616    #   echo "$something" | sed 's/\\/\\\\/g'
617    #
618    # So, first we look for a working echo in the user's PATH.
619
620    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621    for dir in $PATH /usr/ucb; do
622      IFS="$lt_save_ifs"
623      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626         test "X$echo_testing_string" = "X$echo_test_string"; then
627        ECHO="$dir/echo"
628        break
629      fi
630    done
631    IFS="$lt_save_ifs"
632
633    if test "X$ECHO" = Xecho; then
634      # We didn't find a better echo, so look for alternatives.
635      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637         test "X$echo_testing_string" = "X$echo_test_string"; then
638        # This shell has a builtin print -r that does the trick.
639        ECHO='print -r'
640      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641	   test "X$CONFIG_SHELL" != X/bin/ksh; then
642        # If we have ksh, try running configure again with it.
643        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644        export ORIGINAL_CONFIG_SHELL
645        CONFIG_SHELL=/bin/ksh
646        export CONFIG_SHELL
647        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648      else
649        # Try using printf.
650        ECHO='printf %s\n'
651        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653	   test "X$echo_testing_string" = "X$echo_test_string"; then
654	  # Cool, printf works
655	  :
656        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657	     test "X$echo_testing_string" = 'X\t' &&
658	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659	     test "X$echo_testing_string" = "X$echo_test_string"; then
660	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661	  export CONFIG_SHELL
662	  SHELL="$CONFIG_SHELL"
663	  export SHELL
664	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
665        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666	     test "X$echo_testing_string" = 'X\t' &&
667	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668	     test "X$echo_testing_string" = "X$echo_test_string"; then
669	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
670        else
671	  # maybe with a smaller string...
672	  prev=:
673
674	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676	    then
677	      break
678	    fi
679	    prev="$cmd"
680	  done
681
682	  if test "$prev" != 'sed 50q "$0"'; then
683	    echo_test_string=`eval $prev`
684	    export echo_test_string
685	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686	  else
687	    # Oops.  We lost completely, so just stick with echo.
688	    ECHO=echo
689	  fi
690        fi
691      fi
692    fi
693  fi
694fi
695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
698lt_ECHO=$ECHO
699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701fi
702
703
704
705
706test -n "$DJDIR" || exec 7<&0 </dev/null
707exec 6>&1
708
709# Name of the host.
710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
711# so uname gets run too.
712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714#
715# Initializations.
716#
717ac_default_prefix=/usr/local
718ac_clean_files=
719ac_config_libobj_dir=.
720LIBOBJS=
721cross_compiling=no
722subdirs=
723MFLAGS=
724MAKEFLAGS=
725
726# Identity of this package.
727PACKAGE_NAME='sqlite'
728PACKAGE_TARNAME='sqlite'
729PACKAGE_VERSION='3.12.0'
730PACKAGE_STRING='sqlite 3.12.0'
731PACKAGE_BUGREPORT=''
732PACKAGE_URL=''
733
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748#  include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753#  include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='LTLIBOBJS
771LIBOBJS
772BUILD_CFLAGS
773USE_GCOV
774OPT_FEATURE_FLAGS
775USE_AMALGAMATION
776TARGET_DEBUG
777TARGET_HAVE_EDITLINE
778TARGET_HAVE_READLINE
779TARGET_READLINE_INC
780TARGET_READLINE_LIBS
781HAVE_TCL
782TCL_SHLIB_SUFFIX
783TCL_STUB_LIB_SPEC
784TCL_STUB_LIB_FLAG
785TCL_STUB_LIB_FILE
786TCL_LIB_SPEC
787TCL_LIB_FLAG
788TCL_LIB_FILE
789TCL_INCLUDE_SPEC
790TCL_SRC_DIR
791TCL_BIN_DIR
792TCL_VERSION
793TARGET_EXEEXT
794SQLITE_OS_WIN
795SQLITE_OS_UNIX
796BUILD_EXEEXT
797TEMP_STORE
798ALLOWRELEASE
799SQLITE_THREADSAFE
800BUILD_CC
801VERSION_NUMBER
802RELEASE
803VERSION
804program_prefix
805TCLLIBDIR
806TCLSH_CMD
807INSTALL_DATA
808INSTALL_SCRIPT
809INSTALL_PROGRAM
810CPP
811OTOOL64
812OTOOL
813LIPO
814NMEDIT
815DSYMUTIL
816lt_ECHO
817RANLIB
818STRIP
819AR
820OBJDUMP
821LN_S
822NM
823ac_ct_DUMPBIN
824DUMPBIN
825LD
826FGREP
827EGREP
828GREP
829SED
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837host_os
838host_vendor
839host_cpu
840host
841build_os
842build_vendor
843build_cpu
844build
845LIBTOOL
846target_alias
847host_alias
848build_alias
849LIBS
850ECHO_T
851ECHO_N
852ECHO_C
853DEFS
854mandir
855localedir
856libdir
857psdir
858pdfdir
859dvidir
860htmldir
861infodir
862docdir
863oldincludedir
864includedir
865localstatedir
866sharedstatedir
867sysconfdir
868datadir
869datarootdir
870libexecdir
871sbindir
872bindir
873program_transform_name
874prefix
875exec_prefix
876PACKAGE_URL
877PACKAGE_BUGREPORT
878PACKAGE_STRING
879PACKAGE_VERSION
880PACKAGE_TARNAME
881PACKAGE_NAME
882PATH_SEPARATOR
883SHELL'
884ac_subst_files=''
885ac_user_opts='
886enable_option_checking
887enable_shared
888enable_static
889with_pic
890enable_fast_install
891with_gnu_ld
892enable_libtool_lock
893enable_largefile
894enable_threadsafe
895enable_releasemode
896enable_tempstore
897enable_tcl
898with_tcl
899enable_editline
900enable_readline
901with_readline_lib
902with_readline_inc
903enable_debug
904enable_amalgamation
905enable_load_extension
906enable_fts3
907enable_fts4
908enable_fts5
909enable_json1
910enable_rtree
911enable_gcov
912'
913      ac_precious_vars='build_alias
914host_alias
915target_alias
916CC
917CFLAGS
918LDFLAGS
919LIBS
920CPPFLAGS
921CPP
922TCLLIBDIR'
923
924
925# Initialize some variables set by options.
926ac_init_help=
927ac_init_version=false
928ac_unrecognized_opts=
929ac_unrecognized_sep=
930# The variables have the same names as the options, with
931# dashes changed to underlines.
932cache_file=/dev/null
933exec_prefix=NONE
934no_create=
935no_recursion=
936prefix=NONE
937program_prefix=NONE
938program_suffix=NONE
939program_transform_name=s,x,x,
940silent=
941site=
942srcdir=
943verbose=
944x_includes=NONE
945x_libraries=NONE
946
947# Installation directory options.
948# These are left unexpanded so users can "make install exec_prefix=/foo"
949# and all the variables that are supposed to be based on exec_prefix
950# by default will actually change.
951# Use braces instead of parens because sh, perl, etc. also accept them.
952# (The list follows the same order as the GNU Coding Standards.)
953bindir='${exec_prefix}/bin'
954sbindir='${exec_prefix}/sbin'
955libexecdir='${exec_prefix}/libexec'
956datarootdir='${prefix}/share'
957datadir='${datarootdir}'
958sysconfdir='${prefix}/etc'
959sharedstatedir='${prefix}/com'
960localstatedir='${prefix}/var'
961includedir='${prefix}/include'
962oldincludedir='/usr/include'
963docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964infodir='${datarootdir}/info'
965htmldir='${docdir}'
966dvidir='${docdir}'
967pdfdir='${docdir}'
968psdir='${docdir}'
969libdir='${exec_prefix}/lib'
970localedir='${datarootdir}/locale'
971mandir='${datarootdir}/man'
972
973ac_prev=
974ac_dashdash=
975for ac_option
976do
977  # If the previous option needs an argument, assign it.
978  if test -n "$ac_prev"; then
979    eval $ac_prev=\$ac_option
980    ac_prev=
981    continue
982  fi
983
984  case $ac_option in
985  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986  *=)   ac_optarg= ;;
987  *)    ac_optarg=yes ;;
988  esac
989
990  # Accept the important Cygnus configure options, so we can diagnose typos.
991
992  case $ac_dashdash$ac_option in
993  --)
994    ac_dashdash=yes ;;
995
996  -bindir | --bindir | --bindi | --bind | --bin | --bi)
997    ac_prev=bindir ;;
998  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999    bindir=$ac_optarg ;;
1000
1001  -build | --build | --buil | --bui | --bu)
1002    ac_prev=build_alias ;;
1003  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004    build_alias=$ac_optarg ;;
1005
1006  -cache-file | --cache-file | --cache-fil | --cache-fi \
1007  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008    ac_prev=cache_file ;;
1009  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011    cache_file=$ac_optarg ;;
1012
1013  --config-cache | -C)
1014    cache_file=config.cache ;;
1015
1016  -datadir | --datadir | --datadi | --datad)
1017    ac_prev=datadir ;;
1018  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019    datadir=$ac_optarg ;;
1020
1021  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022  | --dataroo | --dataro | --datar)
1023    ac_prev=datarootdir ;;
1024  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026    datarootdir=$ac_optarg ;;
1027
1028  -disable-* | --disable-*)
1029    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030    # Reject names that are not valid shell variable names.
1031    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032      as_fn_error $? "invalid feature name: $ac_useropt"
1033    ac_useropt_orig=$ac_useropt
1034    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035    case $ac_user_opts in
1036      *"
1037"enable_$ac_useropt"
1038"*) ;;
1039      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040	 ac_unrecognized_sep=', ';;
1041    esac
1042    eval enable_$ac_useropt=no ;;
1043
1044  -docdir | --docdir | --docdi | --doc | --do)
1045    ac_prev=docdir ;;
1046  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047    docdir=$ac_optarg ;;
1048
1049  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050    ac_prev=dvidir ;;
1051  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052    dvidir=$ac_optarg ;;
1053
1054  -enable-* | --enable-*)
1055    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056    # Reject names that are not valid shell variable names.
1057    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058      as_fn_error $? "invalid feature name: $ac_useropt"
1059    ac_useropt_orig=$ac_useropt
1060    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061    case $ac_user_opts in
1062      *"
1063"enable_$ac_useropt"
1064"*) ;;
1065      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066	 ac_unrecognized_sep=', ';;
1067    esac
1068    eval enable_$ac_useropt=\$ac_optarg ;;
1069
1070  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072  | --exec | --exe | --ex)
1073    ac_prev=exec_prefix ;;
1074  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076  | --exec=* | --exe=* | --ex=*)
1077    exec_prefix=$ac_optarg ;;
1078
1079  -gas | --gas | --ga | --g)
1080    # Obsolete; use --with-gas.
1081    with_gas=yes ;;
1082
1083  -help | --help | --hel | --he | -h)
1084    ac_init_help=long ;;
1085  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086    ac_init_help=recursive ;;
1087  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088    ac_init_help=short ;;
1089
1090  -host | --host | --hos | --ho)
1091    ac_prev=host_alias ;;
1092  -host=* | --host=* | --hos=* | --ho=*)
1093    host_alias=$ac_optarg ;;
1094
1095  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096    ac_prev=htmldir ;;
1097  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098  | --ht=*)
1099    htmldir=$ac_optarg ;;
1100
1101  -includedir | --includedir | --includedi | --included | --include \
1102  | --includ | --inclu | --incl | --inc)
1103    ac_prev=includedir ;;
1104  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105  | --includ=* | --inclu=* | --incl=* | --inc=*)
1106    includedir=$ac_optarg ;;
1107
1108  -infodir | --infodir | --infodi | --infod | --info | --inf)
1109    ac_prev=infodir ;;
1110  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111    infodir=$ac_optarg ;;
1112
1113  -libdir | --libdir | --libdi | --libd)
1114    ac_prev=libdir ;;
1115  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116    libdir=$ac_optarg ;;
1117
1118  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119  | --libexe | --libex | --libe)
1120    ac_prev=libexecdir ;;
1121  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122  | --libexe=* | --libex=* | --libe=*)
1123    libexecdir=$ac_optarg ;;
1124
1125  -localedir | --localedir | --localedi | --localed | --locale)
1126    ac_prev=localedir ;;
1127  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128    localedir=$ac_optarg ;;
1129
1130  -localstatedir | --localstatedir | --localstatedi | --localstated \
1131  | --localstate | --localstat | --localsta | --localst | --locals)
1132    ac_prev=localstatedir ;;
1133  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135    localstatedir=$ac_optarg ;;
1136
1137  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138    ac_prev=mandir ;;
1139  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140    mandir=$ac_optarg ;;
1141
1142  -nfp | --nfp | --nf)
1143    # Obsolete; use --without-fp.
1144    with_fp=no ;;
1145
1146  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147  | --no-cr | --no-c | -n)
1148    no_create=yes ;;
1149
1150  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152    no_recursion=yes ;;
1153
1154  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156  | --oldin | --oldi | --old | --ol | --o)
1157    ac_prev=oldincludedir ;;
1158  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161    oldincludedir=$ac_optarg ;;
1162
1163  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164    ac_prev=prefix ;;
1165  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166    prefix=$ac_optarg ;;
1167
1168  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169  | --program-pre | --program-pr | --program-p)
1170    ac_prev=program_prefix ;;
1171  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173    program_prefix=$ac_optarg ;;
1174
1175  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176  | --program-suf | --program-su | --program-s)
1177    ac_prev=program_suffix ;;
1178  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180    program_suffix=$ac_optarg ;;
1181
1182  -program-transform-name | --program-transform-name \
1183  | --program-transform-nam | --program-transform-na \
1184  | --program-transform-n | --program-transform- \
1185  | --program-transform | --program-transfor \
1186  | --program-transfo | --program-transf \
1187  | --program-trans | --program-tran \
1188  | --progr-tra | --program-tr | --program-t)
1189    ac_prev=program_transform_name ;;
1190  -program-transform-name=* | --program-transform-name=* \
1191  | --program-transform-nam=* | --program-transform-na=* \
1192  | --program-transform-n=* | --program-transform-=* \
1193  | --program-transform=* | --program-transfor=* \
1194  | --program-transfo=* | --program-transf=* \
1195  | --program-trans=* | --program-tran=* \
1196  | --progr-tra=* | --program-tr=* | --program-t=*)
1197    program_transform_name=$ac_optarg ;;
1198
1199  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200    ac_prev=pdfdir ;;
1201  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202    pdfdir=$ac_optarg ;;
1203
1204  -psdir | --psdir | --psdi | --psd | --ps)
1205    ac_prev=psdir ;;
1206  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207    psdir=$ac_optarg ;;
1208
1209  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210  | -silent | --silent | --silen | --sile | --sil)
1211    silent=yes ;;
1212
1213  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214    ac_prev=sbindir ;;
1215  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216  | --sbi=* | --sb=*)
1217    sbindir=$ac_optarg ;;
1218
1219  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221  | --sharedst | --shareds | --shared | --share | --shar \
1222  | --sha | --sh)
1223    ac_prev=sharedstatedir ;;
1224  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227  | --sha=* | --sh=*)
1228    sharedstatedir=$ac_optarg ;;
1229
1230  -site | --site | --sit)
1231    ac_prev=site ;;
1232  -site=* | --site=* | --sit=*)
1233    site=$ac_optarg ;;
1234
1235  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236    ac_prev=srcdir ;;
1237  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238    srcdir=$ac_optarg ;;
1239
1240  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241  | --syscon | --sysco | --sysc | --sys | --sy)
1242    ac_prev=sysconfdir ;;
1243  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245    sysconfdir=$ac_optarg ;;
1246
1247  -target | --target | --targe | --targ | --tar | --ta | --t)
1248    ac_prev=target_alias ;;
1249  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250    target_alias=$ac_optarg ;;
1251
1252  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253    verbose=yes ;;
1254
1255  -version | --version | --versio | --versi | --vers | -V)
1256    ac_init_version=: ;;
1257
1258  -with-* | --with-*)
1259    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260    # Reject names that are not valid shell variable names.
1261    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262      as_fn_error $? "invalid package name: $ac_useropt"
1263    ac_useropt_orig=$ac_useropt
1264    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265    case $ac_user_opts in
1266      *"
1267"with_$ac_useropt"
1268"*) ;;
1269      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270	 ac_unrecognized_sep=', ';;
1271    esac
1272    eval with_$ac_useropt=\$ac_optarg ;;
1273
1274  -without-* | --without-*)
1275    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276    # Reject names that are not valid shell variable names.
1277    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278      as_fn_error $? "invalid package name: $ac_useropt"
1279    ac_useropt_orig=$ac_useropt
1280    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281    case $ac_user_opts in
1282      *"
1283"with_$ac_useropt"
1284"*) ;;
1285      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286	 ac_unrecognized_sep=', ';;
1287    esac
1288    eval with_$ac_useropt=no ;;
1289
1290  --x)
1291    # Obsolete; use --with-x.
1292    with_x=yes ;;
1293
1294  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295  | --x-incl | --x-inc | --x-in | --x-i)
1296    ac_prev=x_includes ;;
1297  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299    x_includes=$ac_optarg ;;
1300
1301  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303    ac_prev=x_libraries ;;
1304  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306    x_libraries=$ac_optarg ;;
1307
1308  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1309Try \`$0 --help' for more information"
1310    ;;
1311
1312  *=*)
1313    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314    # Reject names that are not valid shell variable names.
1315    case $ac_envvar in #(
1316      '' | [0-9]* | *[!_$as_cr_alnum]* )
1317      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318    esac
1319    eval $ac_envvar=\$ac_optarg
1320    export $ac_envvar ;;
1321
1322  *)
1323    # FIXME: should be removed in autoconf 3.0.
1324    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328    ;;
1329
1330  esac
1331done
1332
1333if test -n "$ac_prev"; then
1334  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335  as_fn_error $? "missing argument to $ac_option"
1336fi
1337
1338if test -n "$ac_unrecognized_opts"; then
1339  case $enable_option_checking in
1340    no) ;;
1341    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1342    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343  esac
1344fi
1345
1346# Check all directory arguments for consistency.
1347for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348		datadir sysconfdir sharedstatedir localstatedir includedir \
1349		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350		libdir localedir mandir
1351do
1352  eval ac_val=\$$ac_var
1353  # Remove trailing slashes.
1354  case $ac_val in
1355    */ )
1356      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357      eval $ac_var=\$ac_val;;
1358  esac
1359  # Be sure to have absolute directory names.
1360  case $ac_val in
1361    [\\/$]* | ?:[\\/]* )  continue;;
1362    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363  esac
1364  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1365done
1366
1367# There might be people who depend on the old broken behavior: `$host'
1368# used to hold the argument of --host etc.
1369# FIXME: To remove some day.
1370build=$build_alias
1371host=$host_alias
1372target=$target_alias
1373
1374# FIXME: To remove some day.
1375if test "x$host_alias" != x; then
1376  if test "x$build_alias" = x; then
1377    cross_compiling=maybe
1378  elif test "x$build_alias" != "x$host_alias"; then
1379    cross_compiling=yes
1380  fi
1381fi
1382
1383ac_tool_prefix=
1384test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386test "$silent" = yes && exec 6>/dev/null
1387
1388
1389ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390ac_ls_di=`ls -di .` &&
1391ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392  as_fn_error $? "working directory cannot be determined"
1393test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394  as_fn_error $? "pwd does not report name of working directory"
1395
1396
1397# Find the source files, if location was not specified.
1398if test -z "$srcdir"; then
1399  ac_srcdir_defaulted=yes
1400  # Try the directory containing this script, then the parent directory.
1401  ac_confdir=`$as_dirname -- "$as_myself" ||
1402$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403	 X"$as_myself" : 'X\(//\)[^/]' \| \
1404	 X"$as_myself" : 'X\(//\)$' \| \
1405	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406$as_echo X"$as_myself" |
1407    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408	    s//\1/
1409	    q
1410	  }
1411	  /^X\(\/\/\)[^/].*/{
1412	    s//\1/
1413	    q
1414	  }
1415	  /^X\(\/\/\)$/{
1416	    s//\1/
1417	    q
1418	  }
1419	  /^X\(\/\).*/{
1420	    s//\1/
1421	    q
1422	  }
1423	  s/.*/./; q'`
1424  srcdir=$ac_confdir
1425  if test ! -r "$srcdir/$ac_unique_file"; then
1426    srcdir=..
1427  fi
1428else
1429  ac_srcdir_defaulted=no
1430fi
1431if test ! -r "$srcdir/$ac_unique_file"; then
1432  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1434fi
1435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436ac_abs_confdir=`(
1437	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438	pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441  srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451  eval ac_env_${ac_var}_value=\$${ac_var}
1452  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
1455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460  # Omit some internal or obsolete options to make the list less imposing.
1461  # This message is too long to be a string in the A/UX 3.1 sh.
1462  cat <<_ACEOF
1463\`configure' configures sqlite 3.12.0 to adapt to many kinds of systems.
1464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE.  See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473  -h, --help              display this help and exit
1474      --help=short        display options specific to this package
1475      --help=recursive    display the short help of all the included packages
1476  -V, --version           display version information and exit
1477  -q, --quiet, --silent   do not print \`checking ...' messages
1478      --cache-file=FILE   cache test results in FILE [disabled]
1479  -C, --config-cache      alias for \`--cache-file=config.cache'
1480  -n, --no-create         do not create output files
1481      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1482
1483Installation directories:
1484  --prefix=PREFIX         install architecture-independent files in PREFIX
1485                          [$ac_default_prefix]
1486  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1487                          [PREFIX]
1488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
1497  --bindir=DIR            user executables [EPREFIX/bin]
1498  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1499  --libexecdir=DIR        program executables [EPREFIX/libexec]
1500  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1501  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1502  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1503  --libdir=DIR            object code libraries [EPREFIX/lib]
1504  --includedir=DIR        C header files [PREFIX/include]
1505  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1506  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1507  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1508  --infodir=DIR           info documentation [DATAROOTDIR/info]
1509  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1510  --mandir=DIR            man documentation [DATAROOTDIR/man]
1511  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1512  --htmldir=DIR           html documentation [DOCDIR]
1513  --dvidir=DIR            dvi documentation [DOCDIR]
1514  --pdfdir=DIR            pdf documentation [DOCDIR]
1515  --psdir=DIR             ps documentation [DOCDIR]
1516_ACEOF
1517
1518  cat <<\_ACEOF
1519
1520System types:
1521  --build=BUILD     configure for building on BUILD [guessed]
1522  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1523_ACEOF
1524fi
1525
1526if test -n "$ac_init_help"; then
1527  case $ac_init_help in
1528     short | recursive ) echo "Configuration of sqlite 3.12.0:";;
1529   esac
1530  cat <<\_ACEOF
1531
1532Optional Features:
1533  --disable-option-checking  ignore unrecognized --enable/--with options
1534  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536  --enable-shared[=PKGS]  build shared libraries [default=yes]
1537  --enable-static[=PKGS]  build static libraries [default=yes]
1538  --enable-fast-install[=PKGS]
1539                          optimize for fast installation [default=yes]
1540  --disable-libtool-lock  avoid locking (might break parallel builds)
1541  --disable-largefile     omit support for large files
1542  --disable-threadsafe    Disable mutexing
1543  --enable-releasemode    Support libtool link to release mode
1544  --enable-tempstore      Use an in-ram database for temporary tables
1545                          (never,no,yes,always)
1546  --disable-tcl           do not build TCL extension
1547  --enable-editline       enable BSD editline support
1548  --disable-readline      disable readline support
1549  --enable-debug          enable debugging & verbose explain
1550  --disable-amalgamation  Disable the amalgamation and instead build all files
1551                          separately
1552  --disable-load-extension
1553                          Disable loading of external extensions
1554  --enable-fts3           Enable the FTS3 extension
1555  --enable-fts4           Enable the FTS4 extension
1556  --enable-fts5           Enable the FTS5 extension
1557  --enable-json1          Enable the JSON1 extension
1558  --enable-rtree          Enable the RTREE extension
1559  --enable-gcov           Enable coverage testing using gcov
1560
1561Optional Packages:
1562  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1563  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1564  --with-pic              try to use only PIC/non-PIC objects [default=use
1565                          both]
1566  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1567  --with-tcl=DIR          directory containing tcl configuration
1568                          (tclConfig.sh)
1569  --with-readline-lib     specify readline library
1570  --with-readline-inc     specify readline include paths
1571
1572Some influential environment variables:
1573  CC          C compiler command
1574  CFLAGS      C compiler flags
1575  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1576              nonstandard directory <lib dir>
1577  LIBS        libraries to pass to the linker, e.g. -l<library>
1578  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579              you have headers in a nonstandard directory <include dir>
1580  CPP         C preprocessor
1581  TCLLIBDIR   Where to install tcl plugin
1582
1583Use these variables to override the choices made by `configure' or to help
1584it to find libraries and programs with nonstandard names/locations.
1585
1586Report bugs to the package provider.
1587_ACEOF
1588ac_status=$?
1589fi
1590
1591if test "$ac_init_help" = "recursive"; then
1592  # If there are subdirs, report their specific --help.
1593  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594    test -d "$ac_dir" ||
1595      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596      continue
1597    ac_builddir=.
1598
1599case "$ac_dir" in
1600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601*)
1602  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1603  # A ".." for each directory in $ac_dir_suffix.
1604  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1605  case $ac_top_builddir_sub in
1606  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608  esac ;;
1609esac
1610ac_abs_top_builddir=$ac_pwd
1611ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612# for backward compatibility:
1613ac_top_builddir=$ac_top_build_prefix
1614
1615case $srcdir in
1616  .)  # We are building in place.
1617    ac_srcdir=.
1618    ac_top_srcdir=$ac_top_builddir_sub
1619    ac_abs_top_srcdir=$ac_pwd ;;
1620  [\\/]* | ?:[\\/]* )  # Absolute name.
1621    ac_srcdir=$srcdir$ac_dir_suffix;
1622    ac_top_srcdir=$srcdir
1623    ac_abs_top_srcdir=$srcdir ;;
1624  *) # Relative name.
1625    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626    ac_top_srcdir=$ac_top_build_prefix$srcdir
1627    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628esac
1629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1630
1631    cd "$ac_dir" || { ac_status=$?; continue; }
1632    # Check for guested configure.
1633    if test -f "$ac_srcdir/configure.gnu"; then
1634      echo &&
1635      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636    elif test -f "$ac_srcdir/configure"; then
1637      echo &&
1638      $SHELL "$ac_srcdir/configure" --help=recursive
1639    else
1640      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641    fi || ac_status=$?
1642    cd "$ac_pwd" || { ac_status=$?; break; }
1643  done
1644fi
1645
1646test -n "$ac_init_help" && exit $ac_status
1647if $ac_init_version; then
1648  cat <<\_ACEOF
1649sqlite configure 3.12.0
1650generated by GNU Autoconf 2.69
1651
1652Copyright (C) 2012 Free Software Foundation, Inc.
1653This configure script is free software; the Free Software Foundation
1654gives unlimited permission to copy, distribute and modify it.
1655_ACEOF
1656  exit
1657fi
1658
1659## ------------------------ ##
1660## Autoconf initialization. ##
1661## ------------------------ ##
1662
1663# ac_fn_c_try_compile LINENO
1664# --------------------------
1665# Try to compile conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_compile ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  rm -f conftest.$ac_objext
1670  if { { ac_try="$ac_compile"
1671case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677  (eval "$ac_compile") 2>conftest.err
1678  ac_status=$?
1679  if test -s conftest.err; then
1680    grep -v '^ *+' conftest.err >conftest.er1
1681    cat conftest.er1 >&5
1682    mv -f conftest.er1 conftest.err
1683  fi
1684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; } && {
1686	 test -z "$ac_c_werror_flag" ||
1687	 test ! -s conftest.err
1688       } && test -s conftest.$ac_objext; then :
1689  ac_retval=0
1690else
1691  $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694	ac_retval=1
1695fi
1696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697  as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_compile
1700
1701# ac_fn_c_try_link LINENO
1702# -----------------------
1703# Try to link conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_c_try_link ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  rm -f conftest.$ac_objext conftest$ac_exeext
1708  if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_link") 2>conftest.err
1716  ac_status=$?
1717  if test -s conftest.err; then
1718    grep -v '^ *+' conftest.err >conftest.er1
1719    cat conftest.er1 >&5
1720    mv -f conftest.er1 conftest.err
1721  fi
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; } && {
1724	 test -z "$ac_c_werror_flag" ||
1725	 test ! -s conftest.err
1726       } && test -s conftest$ac_exeext && {
1727	 test "$cross_compiling" = yes ||
1728	 test -x conftest$ac_exeext
1729       }; then :
1730  ac_retval=0
1731else
1732  $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735	ac_retval=1
1736fi
1737  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1738  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1739  # interfere with the next link command; also delete a directory that is
1740  # left behind by Apple's compiler.  We do this before executing the actions.
1741  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743  as_fn_set_status $ac_retval
1744
1745} # ac_fn_c_try_link
1746
1747# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748# -------------------------------------------------------
1749# Tests whether HEADER exists and can be compiled using the include files in
1750# INCLUDES, setting the cache variable VAR accordingly.
1751ac_fn_c_check_header_compile ()
1752{
1753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755$as_echo_n "checking for $2... " >&6; }
1756if eval \${$3+:} false; then :
1757  $as_echo_n "(cached) " >&6
1758else
1759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h.  */
1761$4
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765  eval "$3=yes"
1766else
1767  eval "$3=no"
1768fi
1769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770fi
1771eval ac_res=\$$3
1772	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773$as_echo "$ac_res" >&6; }
1774  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776} # ac_fn_c_check_header_compile
1777
1778# ac_fn_c_try_cpp LINENO
1779# ----------------------
1780# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1781ac_fn_c_try_cpp ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  if { { ac_try="$ac_cpp conftest.$ac_ext"
1785case "(($ac_try" in
1786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787  *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1792  ac_status=$?
1793  if test -s conftest.err; then
1794    grep -v '^ *+' conftest.err >conftest.er1
1795    cat conftest.er1 >&5
1796    mv -f conftest.er1 conftest.err
1797  fi
1798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799  test $ac_status = 0; } > conftest.i && {
1800	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1801	 test ! -s conftest.err
1802       }; then :
1803  ac_retval=0
1804else
1805  $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808    ac_retval=1
1809fi
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811  as_fn_set_status $ac_retval
1812
1813} # ac_fn_c_try_cpp
1814
1815# ac_fn_c_try_run LINENO
1816# ----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818# that executables *can* be run.
1819ac_fn_c_try_run ()
1820{
1821  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822  if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825  *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829  (eval "$ac_link") 2>&5
1830  ac_status=$?
1831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833  { { case "(($ac_try" in
1834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835  *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839  (eval "$ac_try") 2>&5
1840  ac_status=$?
1841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842  test $ac_status = 0; }; }; then :
1843  ac_retval=0
1844else
1845  $as_echo "$as_me: program exited with status $ac_status" >&5
1846       $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849       ac_retval=$ac_status
1850fi
1851  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853  as_fn_set_status $ac_retval
1854
1855} # ac_fn_c_try_run
1856
1857# ac_fn_c_check_func LINENO FUNC VAR
1858# ----------------------------------
1859# Tests whether FUNC exists, setting the cache variable VAR accordingly
1860ac_fn_c_check_func ()
1861{
1862  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if eval \${$3+:} false; then :
1866  $as_echo_n "(cached) " >&6
1867else
1868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h.  */
1870/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1872#define $2 innocuous_$2
1873
1874/* System header to define __stub macros and hopefully few prototypes,
1875    which can conflict with char $2 (); below.
1876    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877    <limits.h> exists even on freestanding compilers.  */
1878
1879#ifdef __STDC__
1880# include <limits.h>
1881#else
1882# include <assert.h>
1883#endif
1884
1885#undef $2
1886
1887/* Override any GCC internal prototype to avoid an error.
1888   Use char because int might match the return type of a GCC
1889   builtin and then its argument prototype would still apply.  */
1890#ifdef __cplusplus
1891extern "C"
1892#endif
1893char $2 ();
1894/* The GNU C library defines this for functions which it implements
1895    to always fail with ENOSYS.  Some functions are actually named
1896    something starting with __ and the normal name is an alias.  */
1897#if defined __stub_$2 || defined __stub___$2
1898choke me
1899#endif
1900
1901int
1902main ()
1903{
1904return $2 ();
1905  ;
1906  return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_link "$LINENO"; then :
1910  eval "$3=yes"
1911else
1912  eval "$3=no"
1913fi
1914rm -f core conftest.err conftest.$ac_objext \
1915    conftest$ac_exeext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_func
1923
1924# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1925# -------------------------------------------
1926# Tests whether TYPE exists after having included INCLUDES, setting cache
1927# variable VAR accordingly.
1928ac_fn_c_check_type ()
1929{
1930  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932$as_echo_n "checking for $2... " >&6; }
1933if eval \${$3+:} false; then :
1934  $as_echo_n "(cached) " >&6
1935else
1936  eval "$3=no"
1937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939$4
1940int
1941main ()
1942{
1943if (sizeof ($2))
1944	 return 0;
1945  ;
1946  return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_compile "$LINENO"; then :
1950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h.  */
1952$4
1953int
1954main ()
1955{
1956if (sizeof (($2)))
1957	    return 0;
1958  ;
1959  return 0;
1960}
1961_ACEOF
1962if ac_fn_c_try_compile "$LINENO"; then :
1963
1964else
1965  eval "$3=yes"
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968fi
1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970fi
1971eval ac_res=\$$3
1972	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976} # ac_fn_c_check_type
1977
1978# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1979# -------------------------------------------------------
1980# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1981# the include files in INCLUDES and setting the cache variable VAR
1982# accordingly.
1983ac_fn_c_check_header_mongrel ()
1984{
1985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986  if eval \${$3+:} false; then :
1987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988$as_echo_n "checking for $2... " >&6; }
1989if eval \${$3+:} false; then :
1990  $as_echo_n "(cached) " >&6
1991fi
1992eval ac_res=\$$3
1993	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995else
1996  # Is the header compilable?
1997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1998$as_echo_n "checking $2 usability... " >&6; }
1999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001$4
2002#include <$2>
2003_ACEOF
2004if ac_fn_c_try_compile "$LINENO"; then :
2005  ac_header_compiler=yes
2006else
2007  ac_header_compiler=no
2008fi
2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2011$as_echo "$ac_header_compiler" >&6; }
2012
2013# Is the header present?
2014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2015$as_echo_n "checking $2 presence... " >&6; }
2016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h.  */
2018#include <$2>
2019_ACEOF
2020if ac_fn_c_try_cpp "$LINENO"; then :
2021  ac_header_preproc=yes
2022else
2023  ac_header_preproc=no
2024fi
2025rm -f conftest.err conftest.i conftest.$ac_ext
2026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2027$as_echo "$ac_header_preproc" >&6; }
2028
2029# So?  What about this header?
2030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2031  yes:no: )
2032    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2033$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2034    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036    ;;
2037  no:yes:* )
2038    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2039$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2040    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2041$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2042    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2043$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2044    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2045$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2046    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2048    ;;
2049esac
2050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051$as_echo_n "checking for $2... " >&6; }
2052if eval \${$3+:} false; then :
2053  $as_echo_n "(cached) " >&6
2054else
2055  eval "$3=\$ac_header_compiler"
2056fi
2057eval ac_res=\$$3
2058	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059$as_echo "$ac_res" >&6; }
2060fi
2061  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063} # ac_fn_c_check_header_mongrel
2064cat >config.log <<_ACEOF
2065This file contains any messages produced by compilers while
2066running configure, to aid debugging if configure makes a mistake.
2067
2068It was created by sqlite $as_me 3.12.0, which was
2069generated by GNU Autoconf 2.69.  Invocation command line was
2070
2071  $ $0 $@
2072
2073_ACEOF
2074exec 5>>config.log
2075{
2076cat <<_ASUNAME
2077## --------- ##
2078## Platform. ##
2079## --------- ##
2080
2081hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086
2087/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2089
2090/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2091/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2092/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2093/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2094/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2095/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2096/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2097
2098_ASUNAME
2099
2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103  IFS=$as_save_IFS
2104  test -z "$as_dir" && as_dir=.
2105    $as_echo "PATH: $as_dir"
2106  done
2107IFS=$as_save_IFS
2108
2109} >&5
2110
2111cat >&5 <<_ACEOF
2112
2113
2114## ----------- ##
2115## Core tests. ##
2116## ----------- ##
2117
2118_ACEOF
2119
2120
2121# Keep a trace of the command line.
2122# Strip out --no-create and --no-recursion so they do not pile up.
2123# Strip out --silent because we don't want to record it for future runs.
2124# Also quote any args containing shell meta-characters.
2125# Make two passes to allow for proper duplicate-argument suppression.
2126ac_configure_args=
2127ac_configure_args0=
2128ac_configure_args1=
2129ac_must_keep_next=false
2130for ac_pass in 1 2
2131do
2132  for ac_arg
2133  do
2134    case $ac_arg in
2135    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137    | -silent | --silent | --silen | --sile | --sil)
2138      continue ;;
2139    *\'*)
2140      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141    esac
2142    case $ac_pass in
2143    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2144    2)
2145      as_fn_append ac_configure_args1 " '$ac_arg'"
2146      if test $ac_must_keep_next = true; then
2147	ac_must_keep_next=false # Got value, back to normal.
2148      else
2149	case $ac_arg in
2150	  *=* | --config-cache | -C | -disable-* | --disable-* \
2151	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153	  | -with-* | --with-* | -without-* | --without-* | --x)
2154	    case "$ac_configure_args0 " in
2155	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156	    esac
2157	    ;;
2158	  -* ) ac_must_keep_next=true ;;
2159	esac
2160      fi
2161      as_fn_append ac_configure_args " '$ac_arg'"
2162      ;;
2163    esac
2164  done
2165done
2166{ ac_configure_args0=; unset ac_configure_args0;}
2167{ ac_configure_args1=; unset ac_configure_args1;}
2168
2169# When interrupted or exit'd, cleanup temporary files, and complete
2170# config.log.  We remove comments because anyway the quotes in there
2171# would cause problems or look ugly.
2172# WARNING: Use '\'' to represent an apostrophe within the trap.
2173# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2174trap 'exit_status=$?
2175  # Save into config.log some information that might help in debugging.
2176  {
2177    echo
2178
2179    $as_echo "## ---------------- ##
2180## Cache variables. ##
2181## ---------------- ##"
2182    echo
2183    # The following way of writing the cache mishandles newlines in values,
2184(
2185  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2186    eval ac_val=\$$ac_var
2187    case $ac_val in #(
2188    *${as_nl}*)
2189      case $ac_var in #(
2190      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2191$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2192      esac
2193      case $ac_var in #(
2194      _ | IFS | as_nl) ;; #(
2195      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2196      *) { eval $ac_var=; unset $ac_var;} ;;
2197      esac ;;
2198    esac
2199  done
2200  (set) 2>&1 |
2201    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2202    *${as_nl}ac_space=\ *)
2203      sed -n \
2204	"s/'\''/'\''\\\\'\'''\''/g;
2205	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2206      ;; #(
2207    *)
2208      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2209      ;;
2210    esac |
2211    sort
2212)
2213    echo
2214
2215    $as_echo "## ----------------- ##
2216## Output variables. ##
2217## ----------------- ##"
2218    echo
2219    for ac_var in $ac_subst_vars
2220    do
2221      eval ac_val=\$$ac_var
2222      case $ac_val in
2223      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224      esac
2225      $as_echo "$ac_var='\''$ac_val'\''"
2226    done | sort
2227    echo
2228
2229    if test -n "$ac_subst_files"; then
2230      $as_echo "## ------------------- ##
2231## File substitutions. ##
2232## ------------------- ##"
2233      echo
2234      for ac_var in $ac_subst_files
2235      do
2236	eval ac_val=\$$ac_var
2237	case $ac_val in
2238	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239	esac
2240	$as_echo "$ac_var='\''$ac_val'\''"
2241      done | sort
2242      echo
2243    fi
2244
2245    if test -s confdefs.h; then
2246      $as_echo "## ----------- ##
2247## confdefs.h. ##
2248## ----------- ##"
2249      echo
2250      cat confdefs.h
2251      echo
2252    fi
2253    test "$ac_signal" != 0 &&
2254      $as_echo "$as_me: caught signal $ac_signal"
2255    $as_echo "$as_me: exit $exit_status"
2256  } >&5
2257  rm -f core *.core core.conftest.* &&
2258    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2259    exit $exit_status
2260' 0
2261for ac_signal in 1 2 13 15; do
2262  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2263done
2264ac_signal=0
2265
2266# confdefs.h avoids OS command line length limits that DEFS can exceed.
2267rm -f -r conftest* confdefs.h
2268
2269$as_echo "/* confdefs.h */" > confdefs.h
2270
2271# Predefined preprocessor variables.
2272
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_NAME "$PACKAGE_NAME"
2275_ACEOF
2276
2277cat >>confdefs.h <<_ACEOF
2278#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2279_ACEOF
2280
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_VERSION "$PACKAGE_VERSION"
2283_ACEOF
2284
2285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_STRING "$PACKAGE_STRING"
2287_ACEOF
2288
2289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2291_ACEOF
2292
2293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_URL "$PACKAGE_URL"
2295_ACEOF
2296
2297
2298# Let the site file select an alternate cache file if it wants to.
2299# Prefer an explicitly selected file to automatically selected ones.
2300ac_site_file1=NONE
2301ac_site_file2=NONE
2302if test -n "$CONFIG_SITE"; then
2303  # We do not want a PATH search for config.site.
2304  case $CONFIG_SITE in #((
2305    -*)  ac_site_file1=./$CONFIG_SITE;;
2306    */*) ac_site_file1=$CONFIG_SITE;;
2307    *)   ac_site_file1=./$CONFIG_SITE;;
2308  esac
2309elif test "x$prefix" != xNONE; then
2310  ac_site_file1=$prefix/share/config.site
2311  ac_site_file2=$prefix/etc/config.site
2312else
2313  ac_site_file1=$ac_default_prefix/share/config.site
2314  ac_site_file2=$ac_default_prefix/etc/config.site
2315fi
2316for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2317do
2318  test "x$ac_site_file" = xNONE && continue
2319  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2320    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2321$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2322    sed 's/^/| /' "$ac_site_file" >&5
2323    . "$ac_site_file" \
2324      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326as_fn_error $? "failed to load site script $ac_site_file
2327See \`config.log' for more details" "$LINENO" 5; }
2328  fi
2329done
2330
2331if test -r "$cache_file"; then
2332  # Some versions of bash will fail to source /dev/null (special files
2333  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2334  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2335    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2336$as_echo "$as_me: loading cache $cache_file" >&6;}
2337    case $cache_file in
2338      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2339      *)                      . "./$cache_file";;
2340    esac
2341  fi
2342else
2343  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2344$as_echo "$as_me: creating cache $cache_file" >&6;}
2345  >$cache_file
2346fi
2347
2348# Check that the precious variables saved in the cache have kept the same
2349# value.
2350ac_cache_corrupted=false
2351for ac_var in $ac_precious_vars; do
2352  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2353  eval ac_new_set=\$ac_env_${ac_var}_set
2354  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2355  eval ac_new_val=\$ac_env_${ac_var}_value
2356  case $ac_old_set,$ac_new_set in
2357    set,)
2358      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2359$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2360      ac_cache_corrupted=: ;;
2361    ,set)
2362      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2363$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2364      ac_cache_corrupted=: ;;
2365    ,);;
2366    *)
2367      if test "x$ac_old_val" != "x$ac_new_val"; then
2368	# differences in whitespace do not lead to failure.
2369	ac_old_val_w=`echo x $ac_old_val`
2370	ac_new_val_w=`echo x $ac_new_val`
2371	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2372	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2373$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2374	  ac_cache_corrupted=:
2375	else
2376	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2377$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2378	  eval $ac_var=\$ac_old_val
2379	fi
2380	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2381$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2382	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2383$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2384      fi;;
2385  esac
2386  # Pass precious variables to config.status.
2387  if test "$ac_new_set" = set; then
2388    case $ac_new_val in
2389    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2390    *) ac_arg=$ac_var=$ac_new_val ;;
2391    esac
2392    case " $ac_configure_args " in
2393      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2394      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2395    esac
2396  fi
2397done
2398if $ac_cache_corrupted; then
2399  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2402$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2403  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2404fi
2405## -------------------- ##
2406## Main body of script. ##
2407## -------------------- ##
2408
2409ac_ext=c
2410ac_cpp='$CPP $CPPFLAGS'
2411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414
2415
2416
2417sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2418if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2419as_fn_error $? "configure script is out of date:
2420 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2421 top level VERSION file     = $sqlite_version_sanity_check
2422please regen with autoconf" "$LINENO" 5
2423fi
2424
2425#########
2426# Programs needed
2427#
2428case `pwd` in
2429  *\ * | *\	*)
2430    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2431$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2432esac
2433
2434
2435
2436macro_version='2.2.6'
2437macro_revision='1.3012'
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451ltmain="$ac_aux_dir/ltmain.sh"
2452
2453ac_aux_dir=
2454for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2455  if test -f "$ac_dir/install-sh"; then
2456    ac_aux_dir=$ac_dir
2457    ac_install_sh="$ac_aux_dir/install-sh -c"
2458    break
2459  elif test -f "$ac_dir/install.sh"; then
2460    ac_aux_dir=$ac_dir
2461    ac_install_sh="$ac_aux_dir/install.sh -c"
2462    break
2463  elif test -f "$ac_dir/shtool"; then
2464    ac_aux_dir=$ac_dir
2465    ac_install_sh="$ac_aux_dir/shtool install -c"
2466    break
2467  fi
2468done
2469if test -z "$ac_aux_dir"; then
2470  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2471fi
2472
2473# These three variables are undocumented and unsupported,
2474# and are intended to be withdrawn in a future Autoconf release.
2475# They can cause serious problems if a builder's source tree is in a directory
2476# whose full name contains unusual characters.
2477ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2478ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2479ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2480
2481
2482# Make sure we can run config.sub.
2483$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2484  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2485
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2487$as_echo_n "checking build system type... " >&6; }
2488if ${ac_cv_build+:} false; then :
2489  $as_echo_n "(cached) " >&6
2490else
2491  ac_build_alias=$build_alias
2492test "x$ac_build_alias" = x &&
2493  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2494test "x$ac_build_alias" = x &&
2495  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2496ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2497  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2498
2499fi
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2501$as_echo "$ac_cv_build" >&6; }
2502case $ac_cv_build in
2503*-*-*) ;;
2504*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2505esac
2506build=$ac_cv_build
2507ac_save_IFS=$IFS; IFS='-'
2508set x $ac_cv_build
2509shift
2510build_cpu=$1
2511build_vendor=$2
2512shift; shift
2513# Remember, the first character of IFS is used to create $*,
2514# except with old shells:
2515build_os=$*
2516IFS=$ac_save_IFS
2517case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2518
2519
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2521$as_echo_n "checking host system type... " >&6; }
2522if ${ac_cv_host+:} false; then :
2523  $as_echo_n "(cached) " >&6
2524else
2525  if test "x$host_alias" = x; then
2526  ac_cv_host=$ac_cv_build
2527else
2528  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2529    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2530fi
2531
2532fi
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2534$as_echo "$ac_cv_host" >&6; }
2535case $ac_cv_host in
2536*-*-*) ;;
2537*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2538esac
2539host=$ac_cv_host
2540ac_save_IFS=$IFS; IFS='-'
2541set x $ac_cv_host
2542shift
2543host_cpu=$1
2544host_vendor=$2
2545shift; shift
2546# Remember, the first character of IFS is used to create $*,
2547# except with old shells:
2548host_os=$*
2549IFS=$ac_save_IFS
2550case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2551
2552
2553ac_ext=c
2554ac_cpp='$CPP $CPPFLAGS'
2555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558if test -n "$ac_tool_prefix"; then
2559  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2560set dummy ${ac_tool_prefix}gcc; ac_word=$2
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562$as_echo_n "checking for $ac_word... " >&6; }
2563if ${ac_cv_prog_CC+:} false; then :
2564  $as_echo_n "(cached) " >&6
2565else
2566  if test -n "$CC"; then
2567  ac_cv_prog_CC="$CC" # Let the user override the test.
2568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572  IFS=$as_save_IFS
2573  test -z "$as_dir" && as_dir=.
2574    for ac_exec_ext in '' $ac_executable_extensions; do
2575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2578    break 2
2579  fi
2580done
2581  done
2582IFS=$as_save_IFS
2583
2584fi
2585fi
2586CC=$ac_cv_prog_CC
2587if test -n "$CC"; then
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2589$as_echo "$CC" >&6; }
2590else
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592$as_echo "no" >&6; }
2593fi
2594
2595
2596fi
2597if test -z "$ac_cv_prog_CC"; then
2598  ac_ct_CC=$CC
2599  # Extract the first word of "gcc", so it can be a program name with args.
2600set dummy gcc; ac_word=$2
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602$as_echo_n "checking for $ac_word... " >&6; }
2603if ${ac_cv_prog_ac_ct_CC+:} false; then :
2604  $as_echo_n "(cached) " >&6
2605else
2606  if test -n "$ac_ct_CC"; then
2607  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612  IFS=$as_save_IFS
2613  test -z "$as_dir" && as_dir=.
2614    for ac_exec_ext in '' $ac_executable_extensions; do
2615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616    ac_cv_prog_ac_ct_CC="gcc"
2617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618    break 2
2619  fi
2620done
2621  done
2622IFS=$as_save_IFS
2623
2624fi
2625fi
2626ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627if test -n "$ac_ct_CC"; then
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2629$as_echo "$ac_ct_CC" >&6; }
2630else
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632$as_echo "no" >&6; }
2633fi
2634
2635  if test "x$ac_ct_CC" = x; then
2636    CC=""
2637  else
2638    case $cross_compiling:$ac_tool_warned in
2639yes:)
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2642ac_tool_warned=yes ;;
2643esac
2644    CC=$ac_ct_CC
2645  fi
2646else
2647  CC="$ac_cv_prog_CC"
2648fi
2649
2650if test -z "$CC"; then
2651          if test -n "$ac_tool_prefix"; then
2652    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2653set dummy ${ac_tool_prefix}cc; ac_word=$2
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655$as_echo_n "checking for $ac_word... " >&6; }
2656if ${ac_cv_prog_CC+:} false; then :
2657  $as_echo_n "(cached) " >&6
2658else
2659  if test -n "$CC"; then
2660  ac_cv_prog_CC="$CC" # Let the user override the test.
2661else
2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665  IFS=$as_save_IFS
2666  test -z "$as_dir" && as_dir=.
2667    for ac_exec_ext in '' $ac_executable_extensions; do
2668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669    ac_cv_prog_CC="${ac_tool_prefix}cc"
2670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671    break 2
2672  fi
2673done
2674  done
2675IFS=$as_save_IFS
2676
2677fi
2678fi
2679CC=$ac_cv_prog_CC
2680if test -n "$CC"; then
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2682$as_echo "$CC" >&6; }
2683else
2684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685$as_echo "no" >&6; }
2686fi
2687
2688
2689  fi
2690fi
2691if test -z "$CC"; then
2692  # Extract the first word of "cc", so it can be a program name with args.
2693set dummy cc; ac_word=$2
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695$as_echo_n "checking for $ac_word... " >&6; }
2696if ${ac_cv_prog_CC+:} false; then :
2697  $as_echo_n "(cached) " >&6
2698else
2699  if test -n "$CC"; then
2700  ac_cv_prog_CC="$CC" # Let the user override the test.
2701else
2702  ac_prog_rejected=no
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706  IFS=$as_save_IFS
2707  test -z "$as_dir" && as_dir=.
2708    for ac_exec_ext in '' $ac_executable_extensions; do
2709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2711       ac_prog_rejected=yes
2712       continue
2713     fi
2714    ac_cv_prog_CC="cc"
2715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716    break 2
2717  fi
2718done
2719  done
2720IFS=$as_save_IFS
2721
2722if test $ac_prog_rejected = yes; then
2723  # We found a bogon in the path, so make sure we never use it.
2724  set dummy $ac_cv_prog_CC
2725  shift
2726  if test $# != 0; then
2727    # We chose a different compiler from the bogus one.
2728    # However, it has the same basename, so the bogon will be chosen
2729    # first if we set CC to just the basename; use the full file name.
2730    shift
2731    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2732  fi
2733fi
2734fi
2735fi
2736CC=$ac_cv_prog_CC
2737if test -n "$CC"; then
2738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2739$as_echo "$CC" >&6; }
2740else
2741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742$as_echo "no" >&6; }
2743fi
2744
2745
2746fi
2747if test -z "$CC"; then
2748  if test -n "$ac_tool_prefix"; then
2749  for ac_prog in cl.exe
2750  do
2751    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2752set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if ${ac_cv_prog_CC+:} false; then :
2756  $as_echo_n "(cached) " >&6
2757else
2758  if test -n "$CC"; then
2759  ac_cv_prog_CC="$CC" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764  IFS=$as_save_IFS
2765  test -z "$as_dir" && as_dir=.
2766    for ac_exec_ext in '' $ac_executable_extensions; do
2767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770    break 2
2771  fi
2772done
2773  done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778CC=$ac_cv_prog_CC
2779if test -n "$CC"; then
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781$as_echo "$CC" >&6; }
2782else
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787
2788    test -n "$CC" && break
2789  done
2790fi
2791if test -z "$CC"; then
2792  ac_ct_CC=$CC
2793  for ac_prog in cl.exe
2794do
2795  # Extract the first word of "$ac_prog", so it can be a program name with args.
2796set dummy $ac_prog; ac_word=$2
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798$as_echo_n "checking for $ac_word... " >&6; }
2799if ${ac_cv_prog_ac_ct_CC+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  if test -n "$ac_ct_CC"; then
2803  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808  IFS=$as_save_IFS
2809  test -z "$as_dir" && as_dir=.
2810    for ac_exec_ext in '' $ac_executable_extensions; do
2811  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812    ac_cv_prog_ac_ct_CC="$ac_prog"
2813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814    break 2
2815  fi
2816done
2817  done
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822ac_ct_CC=$ac_cv_prog_ac_ct_CC
2823if test -n "$ac_ct_CC"; then
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2825$as_echo "$ac_ct_CC" >&6; }
2826else
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828$as_echo "no" >&6; }
2829fi
2830
2831
2832  test -n "$ac_ct_CC" && break
2833done
2834
2835  if test "x$ac_ct_CC" = x; then
2836    CC=""
2837  else
2838    case $cross_compiling:$ac_tool_warned in
2839yes:)
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842ac_tool_warned=yes ;;
2843esac
2844    CC=$ac_ct_CC
2845  fi
2846fi
2847
2848fi
2849
2850
2851test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853as_fn_error $? "no acceptable C compiler found in \$PATH
2854See \`config.log' for more details" "$LINENO" 5; }
2855
2856# Provide some information about the compiler.
2857$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2858set X $ac_compile
2859ac_compiler=$2
2860for ac_option in --version -v -V -qversion; do
2861  { { ac_try="$ac_compiler $ac_option >&5"
2862case "(($ac_try" in
2863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864  *) ac_try_echo=$ac_try;;
2865esac
2866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2867$as_echo "$ac_try_echo"; } >&5
2868  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2869  ac_status=$?
2870  if test -s conftest.err; then
2871    sed '10a\
2872... rest of stderr output deleted ...
2873         10q' conftest.err >conftest.er1
2874    cat conftest.er1 >&5
2875  fi
2876  rm -f conftest.er1 conftest.err
2877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878  test $ac_status = 0; }
2879done
2880
2881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882/* end confdefs.h.  */
2883
2884int
2885main ()
2886{
2887
2888  ;
2889  return 0;
2890}
2891_ACEOF
2892ac_clean_files_save=$ac_clean_files
2893ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2894# Try to create an executable without -o first, disregard a.out.
2895# It will help us diagnose broken compilers, and finding out an intuition
2896# of exeext.
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2898$as_echo_n "checking whether the C compiler works... " >&6; }
2899ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2900
2901# The possible output files:
2902ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2903
2904ac_rmfiles=
2905for ac_file in $ac_files
2906do
2907  case $ac_file in
2908    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2909    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2910  esac
2911done
2912rm -f $ac_rmfiles
2913
2914if { { ac_try="$ac_link_default"
2915case "(($ac_try" in
2916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917  *) ac_try_echo=$ac_try;;
2918esac
2919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920$as_echo "$ac_try_echo"; } >&5
2921  (eval "$ac_link_default") 2>&5
2922  ac_status=$?
2923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924  test $ac_status = 0; }; then :
2925  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2926# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2927# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2928# so that the user can short-circuit this test for compilers unknown to
2929# Autoconf.
2930for ac_file in $ac_files ''
2931do
2932  test -f "$ac_file" || continue
2933  case $ac_file in
2934    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2935	;;
2936    [ab].out )
2937	# We found the default executable, but exeext='' is most
2938	# certainly right.
2939	break;;
2940    *.* )
2941	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2942	then :; else
2943	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944	fi
2945	# We set ac_cv_exeext here because the later test for it is not
2946	# safe: cross compilers may not add the suffix if given an `-o'
2947	# argument, so we may need to know it at that point already.
2948	# Even if this section looks crufty: it has the advantage of
2949	# actually working.
2950	break;;
2951    * )
2952	break;;
2953  esac
2954done
2955test "$ac_cv_exeext" = no && ac_cv_exeext=
2956
2957else
2958  ac_file=''
2959fi
2960if test -z "$ac_file"; then :
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963$as_echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968as_fn_error 77 "C compiler cannot create executables
2969See \`config.log' for more details" "$LINENO" 5; }
2970else
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972$as_echo "yes" >&6; }
2973fi
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2975$as_echo_n "checking for C compiler default output file name... " >&6; }
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2977$as_echo "$ac_file" >&6; }
2978ac_exeext=$ac_cv_exeext
2979
2980rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2981ac_clean_files=$ac_clean_files_save
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2983$as_echo_n "checking for suffix of executables... " >&6; }
2984if { { ac_try="$ac_link"
2985case "(($ac_try" in
2986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987  *) ac_try_echo=$ac_try;;
2988esac
2989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990$as_echo "$ac_try_echo"; } >&5
2991  (eval "$ac_link") 2>&5
2992  ac_status=$?
2993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994  test $ac_status = 0; }; then :
2995  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2996# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2997# work properly (i.e., refer to `conftest.exe'), while it won't with
2998# `rm'.
2999for ac_file in conftest.exe conftest conftest.*; do
3000  test -f "$ac_file" || continue
3001  case $ac_file in
3002    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3003    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004	  break;;
3005    * ) break;;
3006  esac
3007done
3008else
3009  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3012See \`config.log' for more details" "$LINENO" 5; }
3013fi
3014rm -f conftest conftest$ac_cv_exeext
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3016$as_echo "$ac_cv_exeext" >&6; }
3017
3018rm -f conftest.$ac_ext
3019EXEEXT=$ac_cv_exeext
3020ac_exeext=$EXEEXT
3021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h.  */
3023#include <stdio.h>
3024int
3025main ()
3026{
3027FILE *f = fopen ("conftest.out", "w");
3028 return ferror (f) || fclose (f) != 0;
3029
3030  ;
3031  return 0;
3032}
3033_ACEOF
3034ac_clean_files="$ac_clean_files conftest.out"
3035# Check that the compiler produces executables we can run.  If not, either
3036# the compiler is broken, or we cross compile.
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3038$as_echo_n "checking whether we are cross compiling... " >&6; }
3039if test "$cross_compiling" != yes; then
3040  { { ac_try="$ac_link"
3041case "(($ac_try" in
3042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043  *) ac_try_echo=$ac_try;;
3044esac
3045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046$as_echo "$ac_try_echo"; } >&5
3047  (eval "$ac_link") 2>&5
3048  ac_status=$?
3049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050  test $ac_status = 0; }
3051  if { ac_try='./conftest$ac_cv_exeext'
3052  { { case "(($ac_try" in
3053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054  *) ac_try_echo=$ac_try;;
3055esac
3056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057$as_echo "$ac_try_echo"; } >&5
3058  (eval "$ac_try") 2>&5
3059  ac_status=$?
3060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061  test $ac_status = 0; }; }; then
3062    cross_compiling=no
3063  else
3064    if test "$cross_compiling" = maybe; then
3065	cross_compiling=yes
3066    else
3067	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069as_fn_error $? "cannot run C compiled programs.
3070If you meant to cross compile, use \`--host'.
3071See \`config.log' for more details" "$LINENO" 5; }
3072    fi
3073  fi
3074fi
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3076$as_echo "$cross_compiling" >&6; }
3077
3078rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3079ac_clean_files=$ac_clean_files_save
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3081$as_echo_n "checking for suffix of object files... " >&6; }
3082if ${ac_cv_objext+:} false; then :
3083  $as_echo_n "(cached) " >&6
3084else
3085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086/* end confdefs.h.  */
3087
3088int
3089main ()
3090{
3091
3092  ;
3093  return 0;
3094}
3095_ACEOF
3096rm -f conftest.o conftest.obj
3097if { { ac_try="$ac_compile"
3098case "(($ac_try" in
3099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100  *) ac_try_echo=$ac_try;;
3101esac
3102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103$as_echo "$ac_try_echo"; } >&5
3104  (eval "$ac_compile") 2>&5
3105  ac_status=$?
3106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107  test $ac_status = 0; }; then :
3108  for ac_file in conftest.o conftest.obj conftest.*; do
3109  test -f "$ac_file" || continue;
3110  case $ac_file in
3111    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3112    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3113       break;;
3114  esac
3115done
3116else
3117  $as_echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122as_fn_error $? "cannot compute suffix of object files: cannot compile
3123See \`config.log' for more details" "$LINENO" 5; }
3124fi
3125rm -f conftest.$ac_cv_objext conftest.$ac_ext
3126fi
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3128$as_echo "$ac_cv_objext" >&6; }
3129OBJEXT=$ac_cv_objext
3130ac_objext=$OBJEXT
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3132$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3133if ${ac_cv_c_compiler_gnu+:} false; then :
3134  $as_echo_n "(cached) " >&6
3135else
3136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137/* end confdefs.h.  */
3138
3139int
3140main ()
3141{
3142#ifndef __GNUC__
3143       choke me
3144#endif
3145
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150if ac_fn_c_try_compile "$LINENO"; then :
3151  ac_compiler_gnu=yes
3152else
3153  ac_compiler_gnu=no
3154fi
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156ac_cv_c_compiler_gnu=$ac_compiler_gnu
3157
3158fi
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3160$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3161if test $ac_compiler_gnu = yes; then
3162  GCC=yes
3163else
3164  GCC=
3165fi
3166ac_test_CFLAGS=${CFLAGS+set}
3167ac_save_CFLAGS=$CFLAGS
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3169$as_echo_n "checking whether $CC accepts -g... " >&6; }
3170if ${ac_cv_prog_cc_g+:} false; then :
3171  $as_echo_n "(cached) " >&6
3172else
3173  ac_save_c_werror_flag=$ac_c_werror_flag
3174   ac_c_werror_flag=yes
3175   ac_cv_prog_cc_g=no
3176   CFLAGS="-g"
3177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178/* end confdefs.h.  */
3179
3180int
3181main ()
3182{
3183
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188if ac_fn_c_try_compile "$LINENO"; then :
3189  ac_cv_prog_cc_g=yes
3190else
3191  CFLAGS=""
3192      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193/* end confdefs.h.  */
3194
3195int
3196main ()
3197{
3198
3199  ;
3200  return 0;
3201}
3202_ACEOF
3203if ac_fn_c_try_compile "$LINENO"; then :
3204
3205else
3206  ac_c_werror_flag=$ac_save_c_werror_flag
3207	 CFLAGS="-g"
3208	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209/* end confdefs.h.  */
3210
3211int
3212main ()
3213{
3214
3215  ;
3216  return 0;
3217}
3218_ACEOF
3219if ac_fn_c_try_compile "$LINENO"; then :
3220  ac_cv_prog_cc_g=yes
3221fi
3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223fi
3224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225fi
3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227   ac_c_werror_flag=$ac_save_c_werror_flag
3228fi
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3230$as_echo "$ac_cv_prog_cc_g" >&6; }
3231if test "$ac_test_CFLAGS" = set; then
3232  CFLAGS=$ac_save_CFLAGS
3233elif test $ac_cv_prog_cc_g = yes; then
3234  if test "$GCC" = yes; then
3235    CFLAGS="-g -O2"
3236  else
3237    CFLAGS="-g"
3238  fi
3239else
3240  if test "$GCC" = yes; then
3241    CFLAGS="-O2"
3242  else
3243    CFLAGS=
3244  fi
3245fi
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3247$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3248if ${ac_cv_prog_cc_c89+:} false; then :
3249  $as_echo_n "(cached) " >&6
3250else
3251  ac_cv_prog_cc_c89=no
3252ac_save_CC=$CC
3253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h.  */
3255#include <stdarg.h>
3256#include <stdio.h>
3257struct stat;
3258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3259struct buf { int x; };
3260FILE * (*rcsopen) (struct buf *, struct stat *, int);
3261static char *e (p, i)
3262     char **p;
3263     int i;
3264{
3265  return p[i];
3266}
3267static char *f (char * (*g) (char **, int), char **p, ...)
3268{
3269  char *s;
3270  va_list v;
3271  va_start (v,p);
3272  s = g (p, va_arg (v,int));
3273  va_end (v);
3274  return s;
3275}
3276
3277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3278   function prototypes and stuff, but not '\xHH' hex character constants.
3279   These don't provoke an error unfortunately, instead are silently treated
3280   as 'x'.  The following induces an error, until -std is added to get
3281   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3282   array size at least.  It's necessary to write '\x00'==0 to get something
3283   that's true only with -std.  */
3284int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3285
3286/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3287   inside strings and character constants.  */
3288#define FOO(x) 'x'
3289int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3290
3291int test (int i, double x);
3292struct s1 {int (*f) (int a);};
3293struct s2 {int (*f) (double a);};
3294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295int argc;
3296char **argv;
3297int
3298main ()
3299{
3300return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3301  ;
3302  return 0;
3303}
3304_ACEOF
3305for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3306	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3307do
3308  CC="$ac_save_CC $ac_arg"
3309  if ac_fn_c_try_compile "$LINENO"; then :
3310  ac_cv_prog_cc_c89=$ac_arg
3311fi
3312rm -f core conftest.err conftest.$ac_objext
3313  test "x$ac_cv_prog_cc_c89" != "xno" && break
3314done
3315rm -f conftest.$ac_ext
3316CC=$ac_save_CC
3317
3318fi
3319# AC_CACHE_VAL
3320case "x$ac_cv_prog_cc_c89" in
3321  x)
3322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3323$as_echo "none needed" >&6; } ;;
3324  xno)
3325    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3326$as_echo "unsupported" >&6; } ;;
3327  *)
3328    CC="$CC $ac_cv_prog_cc_c89"
3329    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3330$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3331esac
3332if test "x$ac_cv_prog_cc_c89" != xno; then :
3333
3334fi
3335
3336ac_ext=c
3337ac_cpp='$CPP $CPPFLAGS'
3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3343$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3344if ${ac_cv_path_SED+:} false; then :
3345  $as_echo_n "(cached) " >&6
3346else
3347            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3348     for ac_i in 1 2 3 4 5 6 7; do
3349       ac_script="$ac_script$as_nl$ac_script"
3350     done
3351     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3352     { ac_script=; unset ac_script;}
3353     if test -z "$SED"; then
3354  ac_path_SED_found=false
3355  # Loop through the user's path and test for each of PROGNAME-LIST
3356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357for as_dir in $PATH
3358do
3359  IFS=$as_save_IFS
3360  test -z "$as_dir" && as_dir=.
3361    for ac_prog in sed gsed; do
3362    for ac_exec_ext in '' $ac_executable_extensions; do
3363      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3364      as_fn_executable_p "$ac_path_SED" || continue
3365# Check for GNU ac_path_SED and select it if it is found.
3366  # Check for GNU $ac_path_SED
3367case `"$ac_path_SED" --version 2>&1` in
3368*GNU*)
3369  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3370*)
3371  ac_count=0
3372  $as_echo_n 0123456789 >"conftest.in"
3373  while :
3374  do
3375    cat "conftest.in" "conftest.in" >"conftest.tmp"
3376    mv "conftest.tmp" "conftest.in"
3377    cp "conftest.in" "conftest.nl"
3378    $as_echo '' >> "conftest.nl"
3379    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3380    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3381    as_fn_arith $ac_count + 1 && ac_count=$as_val
3382    if test $ac_count -gt ${ac_path_SED_max-0}; then
3383      # Best one so far, save it but keep looking for a better one
3384      ac_cv_path_SED="$ac_path_SED"
3385      ac_path_SED_max=$ac_count
3386    fi
3387    # 10*(2^10) chars as input seems more than enough
3388    test $ac_count -gt 10 && break
3389  done
3390  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3391esac
3392
3393      $ac_path_SED_found && break 3
3394    done
3395  done
3396  done
3397IFS=$as_save_IFS
3398  if test -z "$ac_cv_path_SED"; then
3399    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3400  fi
3401else
3402  ac_cv_path_SED=$SED
3403fi
3404
3405fi
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3407$as_echo "$ac_cv_path_SED" >&6; }
3408 SED="$ac_cv_path_SED"
3409  rm -f conftest.sed
3410
3411test -z "$SED" && SED=sed
3412Xsed="$SED -e 1s/^X//"
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3425$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3426if ${ac_cv_path_GREP+:} false; then :
3427  $as_echo_n "(cached) " >&6
3428else
3429  if test -z "$GREP"; then
3430  ac_path_GREP_found=false
3431  # Loop through the user's path and test for each of PROGNAME-LIST
3432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3434do
3435  IFS=$as_save_IFS
3436  test -z "$as_dir" && as_dir=.
3437    for ac_prog in grep ggrep; do
3438    for ac_exec_ext in '' $ac_executable_extensions; do
3439      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3440      as_fn_executable_p "$ac_path_GREP" || continue
3441# Check for GNU ac_path_GREP and select it if it is found.
3442  # Check for GNU $ac_path_GREP
3443case `"$ac_path_GREP" --version 2>&1` in
3444*GNU*)
3445  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3446*)
3447  ac_count=0
3448  $as_echo_n 0123456789 >"conftest.in"
3449  while :
3450  do
3451    cat "conftest.in" "conftest.in" >"conftest.tmp"
3452    mv "conftest.tmp" "conftest.in"
3453    cp "conftest.in" "conftest.nl"
3454    $as_echo 'GREP' >> "conftest.nl"
3455    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3456    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3457    as_fn_arith $ac_count + 1 && ac_count=$as_val
3458    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3459      # Best one so far, save it but keep looking for a better one
3460      ac_cv_path_GREP="$ac_path_GREP"
3461      ac_path_GREP_max=$ac_count
3462    fi
3463    # 10*(2^10) chars as input seems more than enough
3464    test $ac_count -gt 10 && break
3465  done
3466  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3467esac
3468
3469      $ac_path_GREP_found && break 3
3470    done
3471  done
3472  done
3473IFS=$as_save_IFS
3474  if test -z "$ac_cv_path_GREP"; then
3475    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3476  fi
3477else
3478  ac_cv_path_GREP=$GREP
3479fi
3480
3481fi
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3483$as_echo "$ac_cv_path_GREP" >&6; }
3484 GREP="$ac_cv_path_GREP"
3485
3486
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3488$as_echo_n "checking for egrep... " >&6; }
3489if ${ac_cv_path_EGREP+:} false; then :
3490  $as_echo_n "(cached) " >&6
3491else
3492  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3493   then ac_cv_path_EGREP="$GREP -E"
3494   else
3495     if test -z "$EGREP"; then
3496  ac_path_EGREP_found=false
3497  # Loop through the user's path and test for each of PROGNAME-LIST
3498  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3500do
3501  IFS=$as_save_IFS
3502  test -z "$as_dir" && as_dir=.
3503    for ac_prog in egrep; do
3504    for ac_exec_ext in '' $ac_executable_extensions; do
3505      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3506      as_fn_executable_p "$ac_path_EGREP" || continue
3507# Check for GNU ac_path_EGREP and select it if it is found.
3508  # Check for GNU $ac_path_EGREP
3509case `"$ac_path_EGREP" --version 2>&1` in
3510*GNU*)
3511  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3512*)
3513  ac_count=0
3514  $as_echo_n 0123456789 >"conftest.in"
3515  while :
3516  do
3517    cat "conftest.in" "conftest.in" >"conftest.tmp"
3518    mv "conftest.tmp" "conftest.in"
3519    cp "conftest.in" "conftest.nl"
3520    $as_echo 'EGREP' >> "conftest.nl"
3521    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3522    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3523    as_fn_arith $ac_count + 1 && ac_count=$as_val
3524    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3525      # Best one so far, save it but keep looking for a better one
3526      ac_cv_path_EGREP="$ac_path_EGREP"
3527      ac_path_EGREP_max=$ac_count
3528    fi
3529    # 10*(2^10) chars as input seems more than enough
3530    test $ac_count -gt 10 && break
3531  done
3532  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3533esac
3534
3535      $ac_path_EGREP_found && break 3
3536    done
3537  done
3538  done
3539IFS=$as_save_IFS
3540  if test -z "$ac_cv_path_EGREP"; then
3541    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3542  fi
3543else
3544  ac_cv_path_EGREP=$EGREP
3545fi
3546
3547   fi
3548fi
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3550$as_echo "$ac_cv_path_EGREP" >&6; }
3551 EGREP="$ac_cv_path_EGREP"
3552
3553
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3555$as_echo_n "checking for fgrep... " >&6; }
3556if ${ac_cv_path_FGREP+:} false; then :
3557  $as_echo_n "(cached) " >&6
3558else
3559  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3560   then ac_cv_path_FGREP="$GREP -F"
3561   else
3562     if test -z "$FGREP"; then
3563  ac_path_FGREP_found=false
3564  # Loop through the user's path and test for each of PROGNAME-LIST
3565  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3567do
3568  IFS=$as_save_IFS
3569  test -z "$as_dir" && as_dir=.
3570    for ac_prog in fgrep; do
3571    for ac_exec_ext in '' $ac_executable_extensions; do
3572      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3573      as_fn_executable_p "$ac_path_FGREP" || continue
3574# Check for GNU ac_path_FGREP and select it if it is found.
3575  # Check for GNU $ac_path_FGREP
3576case `"$ac_path_FGREP" --version 2>&1` in
3577*GNU*)
3578  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3579*)
3580  ac_count=0
3581  $as_echo_n 0123456789 >"conftest.in"
3582  while :
3583  do
3584    cat "conftest.in" "conftest.in" >"conftest.tmp"
3585    mv "conftest.tmp" "conftest.in"
3586    cp "conftest.in" "conftest.nl"
3587    $as_echo 'FGREP' >> "conftest.nl"
3588    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3589    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3590    as_fn_arith $ac_count + 1 && ac_count=$as_val
3591    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3592      # Best one so far, save it but keep looking for a better one
3593      ac_cv_path_FGREP="$ac_path_FGREP"
3594      ac_path_FGREP_max=$ac_count
3595    fi
3596    # 10*(2^10) chars as input seems more than enough
3597    test $ac_count -gt 10 && break
3598  done
3599  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3600esac
3601
3602      $ac_path_FGREP_found && break 3
3603    done
3604  done
3605  done
3606IFS=$as_save_IFS
3607  if test -z "$ac_cv_path_FGREP"; then
3608    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3609  fi
3610else
3611  ac_cv_path_FGREP=$FGREP
3612fi
3613
3614   fi
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3617$as_echo "$ac_cv_path_FGREP" >&6; }
3618 FGREP="$ac_cv_path_FGREP"
3619
3620
3621test -z "$GREP" && GREP=grep
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641# Check whether --with-gnu-ld was given.
3642if test "${with_gnu_ld+set}" = set; then :
3643  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3644else
3645  with_gnu_ld=no
3646fi
3647
3648ac_prog=ld
3649if test "$GCC" = yes; then
3650  # Check if gcc -print-prog-name=ld gives a path.
3651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3652$as_echo_n "checking for ld used by $CC... " >&6; }
3653  case $host in
3654  *-*-mingw*)
3655    # gcc leaves a trailing carriage return which upsets mingw
3656    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3657  *)
3658    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3659  esac
3660  case $ac_prog in
3661    # Accept absolute paths.
3662    [\\/]* | ?:[\\/]*)
3663      re_direlt='/[^/][^/]*/\.\./'
3664      # Canonicalize the pathname of ld
3665      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3666      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3667	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3668      done
3669      test -z "$LD" && LD="$ac_prog"
3670      ;;
3671  "")
3672    # If it fails, then pretend we aren't using GCC.
3673    ac_prog=ld
3674    ;;
3675  *)
3676    # If it is relative, then search for the first ld in PATH.
3677    with_gnu_ld=unknown
3678    ;;
3679  esac
3680elif test "$with_gnu_ld" = yes; then
3681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3682$as_echo_n "checking for GNU ld... " >&6; }
3683else
3684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3685$as_echo_n "checking for non-GNU ld... " >&6; }
3686fi
3687if ${lt_cv_path_LD+:} false; then :
3688  $as_echo_n "(cached) " >&6
3689else
3690  if test -z "$LD"; then
3691  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3692  for ac_dir in $PATH; do
3693    IFS="$lt_save_ifs"
3694    test -z "$ac_dir" && ac_dir=.
3695    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3696      lt_cv_path_LD="$ac_dir/$ac_prog"
3697      # Check to see if the program is GNU ld.  I'd rather use --version,
3698      # but apparently some variants of GNU ld only accept -v.
3699      # Break only if it was the GNU/non-GNU ld that we prefer.
3700      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3701      *GNU* | *'with BFD'*)
3702	test "$with_gnu_ld" != no && break
3703	;;
3704      *)
3705	test "$with_gnu_ld" != yes && break
3706	;;
3707      esac
3708    fi
3709  done
3710  IFS="$lt_save_ifs"
3711else
3712  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3713fi
3714fi
3715
3716LD="$lt_cv_path_LD"
3717if test -n "$LD"; then
3718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3719$as_echo "$LD" >&6; }
3720else
3721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722$as_echo "no" >&6; }
3723fi
3724test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3726$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3727if ${lt_cv_prog_gnu_ld+:} false; then :
3728  $as_echo_n "(cached) " >&6
3729else
3730  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3731case `$LD -v 2>&1 </dev/null` in
3732*GNU* | *'with BFD'*)
3733  lt_cv_prog_gnu_ld=yes
3734  ;;
3735*)
3736  lt_cv_prog_gnu_ld=no
3737  ;;
3738esac
3739fi
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3741$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3742with_gnu_ld=$lt_cv_prog_gnu_ld
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3753$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3754if ${lt_cv_path_NM+:} false; then :
3755  $as_echo_n "(cached) " >&6
3756else
3757  if test -n "$NM"; then
3758  # Let the user override the test.
3759  lt_cv_path_NM="$NM"
3760else
3761  lt_nm_to_check="${ac_tool_prefix}nm"
3762  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3763    lt_nm_to_check="$lt_nm_to_check nm"
3764  fi
3765  for lt_tmp_nm in $lt_nm_to_check; do
3766    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3767    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3768      IFS="$lt_save_ifs"
3769      test -z "$ac_dir" && ac_dir=.
3770      tmp_nm="$ac_dir/$lt_tmp_nm"
3771      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3772	# Check to see if the nm accepts a BSD-compat flag.
3773	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3774	#   nm: unknown option "B" ignored
3775	# Tru64's nm complains that /dev/null is an invalid object file
3776	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3777	*/dev/null* | *'Invalid file or object type'*)
3778	  lt_cv_path_NM="$tmp_nm -B"
3779	  break
3780	  ;;
3781	*)
3782	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3783	  */dev/null*)
3784	    lt_cv_path_NM="$tmp_nm -p"
3785	    break
3786	    ;;
3787	  *)
3788	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3789	    continue # so that we can try to find one that supports BSD flags
3790	    ;;
3791	  esac
3792	  ;;
3793	esac
3794      fi
3795    done
3796    IFS="$lt_save_ifs"
3797  done
3798  : ${lt_cv_path_NM=no}
3799fi
3800fi
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3802$as_echo "$lt_cv_path_NM" >&6; }
3803if test "$lt_cv_path_NM" != "no"; then
3804  NM="$lt_cv_path_NM"
3805else
3806  # Didn't find any BSD compatible name lister, look for dumpbin.
3807  if test -n "$ac_tool_prefix"; then
3808  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3809  do
3810    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813$as_echo_n "checking for $ac_word... " >&6; }
3814if ${ac_cv_prog_DUMPBIN+:} false; then :
3815  $as_echo_n "(cached) " >&6
3816else
3817  if test -n "$DUMPBIN"; then
3818  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3819else
3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821for as_dir in $PATH
3822do
3823  IFS=$as_save_IFS
3824  test -z "$as_dir" && as_dir=.
3825    for ac_exec_ext in '' $ac_executable_extensions; do
3826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829    break 2
3830  fi
3831done
3832  done
3833IFS=$as_save_IFS
3834
3835fi
3836fi
3837DUMPBIN=$ac_cv_prog_DUMPBIN
3838if test -n "$DUMPBIN"; then
3839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3840$as_echo "$DUMPBIN" >&6; }
3841else
3842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843$as_echo "no" >&6; }
3844fi
3845
3846
3847    test -n "$DUMPBIN" && break
3848  done
3849fi
3850if test -z "$DUMPBIN"; then
3851  ac_ct_DUMPBIN=$DUMPBIN
3852  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3853do
3854  # Extract the first word of "$ac_prog", so it can be a program name with args.
3855set dummy $ac_prog; ac_word=$2
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857$as_echo_n "checking for $ac_word... " >&6; }
3858if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3859  $as_echo_n "(cached) " >&6
3860else
3861  if test -n "$ac_ct_DUMPBIN"; then
3862  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3863else
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867  IFS=$as_save_IFS
3868  test -z "$as_dir" && as_dir=.
3869    for ac_exec_ext in '' $ac_executable_extensions; do
3870  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3871    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873    break 2
3874  fi
3875done
3876  done
3877IFS=$as_save_IFS
3878
3879fi
3880fi
3881ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3882if test -n "$ac_ct_DUMPBIN"; then
3883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3884$as_echo "$ac_ct_DUMPBIN" >&6; }
3885else
3886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887$as_echo "no" >&6; }
3888fi
3889
3890
3891  test -n "$ac_ct_DUMPBIN" && break
3892done
3893
3894  if test "x$ac_ct_DUMPBIN" = x; then
3895    DUMPBIN=":"
3896  else
3897    case $cross_compiling:$ac_tool_warned in
3898yes:)
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3901ac_tool_warned=yes ;;
3902esac
3903    DUMPBIN=$ac_ct_DUMPBIN
3904  fi
3905fi
3906
3907
3908  if test "$DUMPBIN" != ":"; then
3909    NM="$DUMPBIN"
3910  fi
3911fi
3912test -z "$NM" && NM=nm
3913
3914
3915
3916
3917
3918
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3920$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3921if ${lt_cv_nm_interface+:} false; then :
3922  $as_echo_n "(cached) " >&6
3923else
3924  lt_cv_nm_interface="BSD nm"
3925  echo "int some_variable = 0;" > conftest.$ac_ext
3926  (eval echo "\"\$as_me:3926: $ac_compile\"" >&5)
3927  (eval "$ac_compile" 2>conftest.err)
3928  cat conftest.err >&5
3929  (eval echo "\"\$as_me:3929: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3930  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3931  cat conftest.err >&5
3932  (eval echo "\"\$as_me:3932: output\"" >&5)
3933  cat conftest.out >&5
3934  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3935    lt_cv_nm_interface="MS dumpbin"
3936  fi
3937  rm -f conftest*
3938fi
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3940$as_echo "$lt_cv_nm_interface" >&6; }
3941
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3943$as_echo_n "checking whether ln -s works... " >&6; }
3944LN_S=$as_ln_s
3945if test "$LN_S" = "ln -s"; then
3946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947$as_echo "yes" >&6; }
3948else
3949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3950$as_echo "no, using $LN_S" >&6; }
3951fi
3952
3953# find the maximum length of command line arguments
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3955$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3956if ${lt_cv_sys_max_cmd_len+:} false; then :
3957  $as_echo_n "(cached) " >&6
3958else
3959    i=0
3960  teststring="ABCD"
3961
3962  case $build_os in
3963  msdosdjgpp*)
3964    # On DJGPP, this test can blow up pretty badly due to problems in libc
3965    # (any single argument exceeding 2000 bytes causes a buffer overrun
3966    # during glob expansion).  Even if it were fixed, the result of this
3967    # check would be larger than it should be.
3968    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3969    ;;
3970
3971  gnu*)
3972    # Under GNU Hurd, this test is not required because there is
3973    # no limit to the length of command line arguments.
3974    # Libtool will interpret -1 as no limit whatsoever
3975    lt_cv_sys_max_cmd_len=-1;
3976    ;;
3977
3978  cygwin* | mingw* | cegcc*)
3979    # On Win9x/ME, this test blows up -- it succeeds, but takes
3980    # about 5 minutes as the teststring grows exponentially.
3981    # Worse, since 9x/ME are not pre-emptively multitasking,
3982    # you end up with a "frozen" computer, even though with patience
3983    # the test eventually succeeds (with a max line length of 256k).
3984    # Instead, let's just punt: use the minimum linelength reported by
3985    # all of the supported platforms: 8192 (on NT/2K/XP).
3986    lt_cv_sys_max_cmd_len=8192;
3987    ;;
3988
3989  amigaos*)
3990    # On AmigaOS with pdksh, this test takes hours, literally.
3991    # So we just punt and use a minimum line length of 8192.
3992    lt_cv_sys_max_cmd_len=8192;
3993    ;;
3994
3995  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3996    # This has been around since 386BSD, at least.  Likely further.
3997    if test -x /sbin/sysctl; then
3998      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3999    elif test -x /usr/sbin/sysctl; then
4000      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4001    else
4002      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4003    fi
4004    # And add a safety zone
4005    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4006    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4007    ;;
4008
4009  interix*)
4010    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4011    lt_cv_sys_max_cmd_len=196608
4012    ;;
4013
4014  osf*)
4015    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4016    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4017    # nice to cause kernel panics so lets avoid the loop below.
4018    # First set a reasonable default.
4019    lt_cv_sys_max_cmd_len=16384
4020    #
4021    if test -x /sbin/sysconfig; then
4022      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4023        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4024      esac
4025    fi
4026    ;;
4027  sco3.2v5*)
4028    lt_cv_sys_max_cmd_len=102400
4029    ;;
4030  sysv5* | sco5v6* | sysv4.2uw2*)
4031    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4032    if test -n "$kargmax"; then
4033      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4034    else
4035      lt_cv_sys_max_cmd_len=32768
4036    fi
4037    ;;
4038  *)
4039    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4040    if test -n "$lt_cv_sys_max_cmd_len"; then
4041      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4042      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4043    else
4044      # Make teststring a little bigger before we do anything with it.
4045      # a 1K string should be a reasonable start.
4046      for i in 1 2 3 4 5 6 7 8 ; do
4047        teststring=$teststring$teststring
4048      done
4049      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4050      # If test is not a shell built-in, we'll probably end up computing a
4051      # maximum length that is only half of the actual maximum length, but
4052      # we can't tell.
4053      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4054	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4055	      test $i != 17 # 1/2 MB should be enough
4056      do
4057        i=`expr $i + 1`
4058        teststring=$teststring$teststring
4059      done
4060      # Only check the string length outside the loop.
4061      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4062      teststring=
4063      # Add a significant safety factor because C++ compilers can tack on
4064      # massive amounts of additional arguments before passing them to the
4065      # linker.  It appears as though 1/2 is a usable value.
4066      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4067    fi
4068    ;;
4069  esac
4070
4071fi
4072
4073if test -n $lt_cv_sys_max_cmd_len ; then
4074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4075$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4076else
4077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4078$as_echo "none" >&6; }
4079fi
4080max_cmd_len=$lt_cv_sys_max_cmd_len
4081
4082
4083
4084
4085
4086
4087: ${CP="cp -f"}
4088: ${MV="mv -f"}
4089: ${RM="rm -f"}
4090
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4092$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4093# Try some XSI features
4094xsi_shell=no
4095( _lt_dummy="a/b/c"
4096  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4097      = c,a/b,, \
4098    && eval 'test $(( 1 + 1 )) -eq 2 \
4099    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4100  && xsi_shell=yes
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4102$as_echo "$xsi_shell" >&6; }
4103
4104
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4106$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4107lt_shell_append=no
4108( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4109    >/dev/null 2>&1 \
4110  && lt_shell_append=yes
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4112$as_echo "$lt_shell_append" >&6; }
4113
4114
4115if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4116  lt_unset=unset
4117else
4118  lt_unset=false
4119fi
4120
4121
4122
4123
4124
4125# test EBCDIC or ASCII
4126case `echo X|tr X '\101'` in
4127 A) # ASCII based system
4128    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4129  lt_SP2NL='tr \040 \012'
4130  lt_NL2SP='tr \015\012 \040\040'
4131  ;;
4132 *) # EBCDIC based system
4133  lt_SP2NL='tr \100 \n'
4134  lt_NL2SP='tr \r\n \100\100'
4135  ;;
4136esac
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4147$as_echo_n "checking for $LD option to reload object files... " >&6; }
4148if ${lt_cv_ld_reload_flag+:} false; then :
4149  $as_echo_n "(cached) " >&6
4150else
4151  lt_cv_ld_reload_flag='-r'
4152fi
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4154$as_echo "$lt_cv_ld_reload_flag" >&6; }
4155reload_flag=$lt_cv_ld_reload_flag
4156case $reload_flag in
4157"" | " "*) ;;
4158*) reload_flag=" $reload_flag" ;;
4159esac
4160reload_cmds='$LD$reload_flag -o $output$reload_objs'
4161case $host_os in
4162  darwin*)
4163    if test "$GCC" = yes; then
4164      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4165    else
4166      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4167    fi
4168    ;;
4169esac
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179if test -n "$ac_tool_prefix"; then
4180  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4181set dummy ${ac_tool_prefix}objdump; ac_word=$2
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183$as_echo_n "checking for $ac_word... " >&6; }
4184if ${ac_cv_prog_OBJDUMP+:} false; then :
4185  $as_echo_n "(cached) " >&6
4186else
4187  if test -n "$OBJDUMP"; then
4188  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4189else
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193  IFS=$as_save_IFS
4194  test -z "$as_dir" && as_dir=.
4195    for ac_exec_ext in '' $ac_executable_extensions; do
4196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199    break 2
4200  fi
4201done
4202  done
4203IFS=$as_save_IFS
4204
4205fi
4206fi
4207OBJDUMP=$ac_cv_prog_OBJDUMP
4208if test -n "$OBJDUMP"; then
4209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4210$as_echo "$OBJDUMP" >&6; }
4211else
4212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213$as_echo "no" >&6; }
4214fi
4215
4216
4217fi
4218if test -z "$ac_cv_prog_OBJDUMP"; then
4219  ac_ct_OBJDUMP=$OBJDUMP
4220  # Extract the first word of "objdump", so it can be a program name with args.
4221set dummy objdump; ac_word=$2
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223$as_echo_n "checking for $ac_word... " >&6; }
4224if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4225  $as_echo_n "(cached) " >&6
4226else
4227  if test -n "$ac_ct_OBJDUMP"; then
4228  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4229else
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233  IFS=$as_save_IFS
4234  test -z "$as_dir" && as_dir=.
4235    for ac_exec_ext in '' $ac_executable_extensions; do
4236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239    break 2
4240  fi
4241done
4242  done
4243IFS=$as_save_IFS
4244
4245fi
4246fi
4247ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4248if test -n "$ac_ct_OBJDUMP"; then
4249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4250$as_echo "$ac_ct_OBJDUMP" >&6; }
4251else
4252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
4254fi
4255
4256  if test "x$ac_ct_OBJDUMP" = x; then
4257    OBJDUMP="false"
4258  else
4259    case $cross_compiling:$ac_tool_warned in
4260yes:)
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4263ac_tool_warned=yes ;;
4264esac
4265    OBJDUMP=$ac_ct_OBJDUMP
4266  fi
4267else
4268  OBJDUMP="$ac_cv_prog_OBJDUMP"
4269fi
4270
4271test -z "$OBJDUMP" && OBJDUMP=objdump
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4282$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4283if ${lt_cv_deplibs_check_method+:} false; then :
4284  $as_echo_n "(cached) " >&6
4285else
4286  lt_cv_file_magic_cmd='$MAGIC_CMD'
4287lt_cv_file_magic_test_file=
4288lt_cv_deplibs_check_method='unknown'
4289# Need to set the preceding variable on all platforms that support
4290# interlibrary dependencies.
4291# 'none' -- dependencies not supported.
4292# `unknown' -- same as none, but documents that we really don't know.
4293# 'pass_all' -- all dependencies passed with no checks.
4294# 'test_compile' -- check by making test program.
4295# 'file_magic [[regex]]' -- check by looking for files in library path
4296# which responds to the $file_magic_cmd with a given extended regex.
4297# If you have `file' or equivalent on your system and you're not sure
4298# whether `pass_all' will *always* work, you probably want this one.
4299
4300case $host_os in
4301aix[4-9]*)
4302  lt_cv_deplibs_check_method=pass_all
4303  ;;
4304
4305beos*)
4306  lt_cv_deplibs_check_method=pass_all
4307  ;;
4308
4309bsdi[45]*)
4310  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4311  lt_cv_file_magic_cmd='/usr/bin/file -L'
4312  lt_cv_file_magic_test_file=/shlib/libc.so
4313  ;;
4314
4315cygwin*)
4316  # func_win32_libid is a shell function defined in ltmain.sh
4317  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4318  lt_cv_file_magic_cmd='func_win32_libid'
4319  ;;
4320
4321mingw* | pw32*)
4322  # Base MSYS/MinGW do not provide the 'file' command needed by
4323  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4324  # unless we find 'file', for example because we are cross-compiling.
4325  if ( file / ) >/dev/null 2>&1; then
4326    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4327    lt_cv_file_magic_cmd='func_win32_libid'
4328  else
4329    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4330    lt_cv_file_magic_cmd='$OBJDUMP -f'
4331  fi
4332  ;;
4333
4334cegcc)
4335  # use the weaker test based on 'objdump'. See mingw*.
4336  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4337  lt_cv_file_magic_cmd='$OBJDUMP -f'
4338  ;;
4339
4340darwin* | rhapsody*)
4341  lt_cv_deplibs_check_method=pass_all
4342  ;;
4343
4344freebsd* | dragonfly*)
4345  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4346    case $host_cpu in
4347    i*86 )
4348      # Not sure whether the presence of OpenBSD here was a mistake.
4349      # Let's accept both of them until this is cleared up.
4350      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4351      lt_cv_file_magic_cmd=/usr/bin/file
4352      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4353      ;;
4354    esac
4355  else
4356    lt_cv_deplibs_check_method=pass_all
4357  fi
4358  ;;
4359
4360gnu*)
4361  lt_cv_deplibs_check_method=pass_all
4362  ;;
4363
4364hpux10.20* | hpux11*)
4365  lt_cv_file_magic_cmd=/usr/bin/file
4366  case $host_cpu in
4367  ia64*)
4368    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4369    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4370    ;;
4371  hppa*64*)
4372    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4373    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4374    ;;
4375  *)
4376    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4377    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4378    ;;
4379  esac
4380  ;;
4381
4382interix[3-9]*)
4383  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4384  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4385  ;;
4386
4387irix5* | irix6* | nonstopux*)
4388  case $LD in
4389  *-32|*"-32 ") libmagic=32-bit;;
4390  *-n32|*"-n32 ") libmagic=N32;;
4391  *-64|*"-64 ") libmagic=64-bit;;
4392  *) libmagic=never-match;;
4393  esac
4394  lt_cv_deplibs_check_method=pass_all
4395  ;;
4396
4397# This must be Linux ELF.
4398linux* | k*bsd*-gnu)
4399  lt_cv_deplibs_check_method=pass_all
4400  ;;
4401
4402netbsd*)
4403  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4404    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4405  else
4406    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4407  fi
4408  ;;
4409
4410newos6*)
4411  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4412  lt_cv_file_magic_cmd=/usr/bin/file
4413  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4414  ;;
4415
4416*nto* | *qnx*)
4417  lt_cv_deplibs_check_method=pass_all
4418  ;;
4419
4420openbsd*)
4421  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4422    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4423  else
4424    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4425  fi
4426  ;;
4427
4428osf3* | osf4* | osf5*)
4429  lt_cv_deplibs_check_method=pass_all
4430  ;;
4431
4432rdos*)
4433  lt_cv_deplibs_check_method=pass_all
4434  ;;
4435
4436solaris*)
4437  lt_cv_deplibs_check_method=pass_all
4438  ;;
4439
4440sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4441  lt_cv_deplibs_check_method=pass_all
4442  ;;
4443
4444sysv4 | sysv4.3*)
4445  case $host_vendor in
4446  motorola)
4447    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]'
4448    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4449    ;;
4450  ncr)
4451    lt_cv_deplibs_check_method=pass_all
4452    ;;
4453  sequent)
4454    lt_cv_file_magic_cmd='/bin/file'
4455    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4456    ;;
4457  sni)
4458    lt_cv_file_magic_cmd='/bin/file'
4459    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4460    lt_cv_file_magic_test_file=/lib/libc.so
4461    ;;
4462  siemens)
4463    lt_cv_deplibs_check_method=pass_all
4464    ;;
4465  pc)
4466    lt_cv_deplibs_check_method=pass_all
4467    ;;
4468  esac
4469  ;;
4470
4471tpf*)
4472  lt_cv_deplibs_check_method=pass_all
4473  ;;
4474esac
4475
4476fi
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4478$as_echo "$lt_cv_deplibs_check_method" >&6; }
4479file_magic_cmd=$lt_cv_file_magic_cmd
4480deplibs_check_method=$lt_cv_deplibs_check_method
4481test -z "$deplibs_check_method" && deplibs_check_method=unknown
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494if test -n "$ac_tool_prefix"; then
4495  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4496set dummy ${ac_tool_prefix}ar; ac_word=$2
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498$as_echo_n "checking for $ac_word... " >&6; }
4499if ${ac_cv_prog_AR+:} false; then :
4500  $as_echo_n "(cached) " >&6
4501else
4502  if test -n "$AR"; then
4503  ac_cv_prog_AR="$AR" # Let the user override the test.
4504else
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508  IFS=$as_save_IFS
4509  test -z "$as_dir" && as_dir=.
4510    for ac_exec_ext in '' $ac_executable_extensions; do
4511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512    ac_cv_prog_AR="${ac_tool_prefix}ar"
4513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514    break 2
4515  fi
4516done
4517  done
4518IFS=$as_save_IFS
4519
4520fi
4521fi
4522AR=$ac_cv_prog_AR
4523if test -n "$AR"; then
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4525$as_echo "$AR" >&6; }
4526else
4527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528$as_echo "no" >&6; }
4529fi
4530
4531
4532fi
4533if test -z "$ac_cv_prog_AR"; then
4534  ac_ct_AR=$AR
4535  # Extract the first word of "ar", so it can be a program name with args.
4536set dummy ar; ac_word=$2
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538$as_echo_n "checking for $ac_word... " >&6; }
4539if ${ac_cv_prog_ac_ct_AR+:} false; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542  if test -n "$ac_ct_AR"; then
4543  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4544else
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548  IFS=$as_save_IFS
4549  test -z "$as_dir" && as_dir=.
4550    for ac_exec_ext in '' $ac_executable_extensions; do
4551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552    ac_cv_prog_ac_ct_AR="ar"
4553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554    break 2
4555  fi
4556done
4557  done
4558IFS=$as_save_IFS
4559
4560fi
4561fi
4562ac_ct_AR=$ac_cv_prog_ac_ct_AR
4563if test -n "$ac_ct_AR"; then
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4565$as_echo "$ac_ct_AR" >&6; }
4566else
4567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568$as_echo "no" >&6; }
4569fi
4570
4571  if test "x$ac_ct_AR" = x; then
4572    AR="false"
4573  else
4574    case $cross_compiling:$ac_tool_warned in
4575yes:)
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4578ac_tool_warned=yes ;;
4579esac
4580    AR=$ac_ct_AR
4581  fi
4582else
4583  AR="$ac_cv_prog_AR"
4584fi
4585
4586test -z "$AR" && AR=ar
4587test -z "$AR_FLAGS" && AR_FLAGS=cru
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599if test -n "$ac_tool_prefix"; then
4600  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4601set dummy ${ac_tool_prefix}strip; ac_word=$2
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603$as_echo_n "checking for $ac_word... " >&6; }
4604if ${ac_cv_prog_STRIP+:} false; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607  if test -n "$STRIP"; then
4608  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4609else
4610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611for as_dir in $PATH
4612do
4613  IFS=$as_save_IFS
4614  test -z "$as_dir" && as_dir=.
4615    for ac_exec_ext in '' $ac_executable_extensions; do
4616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4617    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619    break 2
4620  fi
4621done
4622  done
4623IFS=$as_save_IFS
4624
4625fi
4626fi
4627STRIP=$ac_cv_prog_STRIP
4628if test -n "$STRIP"; then
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4630$as_echo "$STRIP" >&6; }
4631else
4632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633$as_echo "no" >&6; }
4634fi
4635
4636
4637fi
4638if test -z "$ac_cv_prog_STRIP"; then
4639  ac_ct_STRIP=$STRIP
4640  # Extract the first word of "strip", so it can be a program name with args.
4641set dummy strip; ac_word=$2
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643$as_echo_n "checking for $ac_word... " >&6; }
4644if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647  if test -n "$ac_ct_STRIP"; then
4648  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653  IFS=$as_save_IFS
4654  test -z "$as_dir" && as_dir=.
4655    for ac_exec_ext in '' $ac_executable_extensions; do
4656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657    ac_cv_prog_ac_ct_STRIP="strip"
4658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659    break 2
4660  fi
4661done
4662  done
4663IFS=$as_save_IFS
4664
4665fi
4666fi
4667ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4668if test -n "$ac_ct_STRIP"; then
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4670$as_echo "$ac_ct_STRIP" >&6; }
4671else
4672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673$as_echo "no" >&6; }
4674fi
4675
4676  if test "x$ac_ct_STRIP" = x; then
4677    STRIP=":"
4678  else
4679    case $cross_compiling:$ac_tool_warned in
4680yes:)
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683ac_tool_warned=yes ;;
4684esac
4685    STRIP=$ac_ct_STRIP
4686  fi
4687else
4688  STRIP="$ac_cv_prog_STRIP"
4689fi
4690
4691test -z "$STRIP" && STRIP=:
4692
4693
4694
4695
4696
4697
4698if test -n "$ac_tool_prefix"; then
4699  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4700set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702$as_echo_n "checking for $ac_word... " >&6; }
4703if ${ac_cv_prog_RANLIB+:} false; then :
4704  $as_echo_n "(cached) " >&6
4705else
4706  if test -n "$RANLIB"; then
4707  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712  IFS=$as_save_IFS
4713  test -z "$as_dir" && as_dir=.
4714    for ac_exec_ext in '' $ac_executable_extensions; do
4715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718    break 2
4719  fi
4720done
4721  done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726RANLIB=$ac_cv_prog_RANLIB
4727if test -n "$RANLIB"; then
4728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4729$as_echo "$RANLIB" >&6; }
4730else
4731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732$as_echo "no" >&6; }
4733fi
4734
4735
4736fi
4737if test -z "$ac_cv_prog_RANLIB"; then
4738  ac_ct_RANLIB=$RANLIB
4739  # Extract the first word of "ranlib", so it can be a program name with args.
4740set dummy ranlib; ac_word=$2
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742$as_echo_n "checking for $ac_word... " >&6; }
4743if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  if test -n "$ac_ct_RANLIB"; then
4747  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754    for ac_exec_ext in '' $ac_executable_extensions; do
4755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756    ac_cv_prog_ac_ct_RANLIB="ranlib"
4757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758    break 2
4759  fi
4760done
4761  done
4762IFS=$as_save_IFS
4763
4764fi
4765fi
4766ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4767if test -n "$ac_ct_RANLIB"; then
4768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4769$as_echo "$ac_ct_RANLIB" >&6; }
4770else
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772$as_echo "no" >&6; }
4773fi
4774
4775  if test "x$ac_ct_RANLIB" = x; then
4776    RANLIB=":"
4777  else
4778    case $cross_compiling:$ac_tool_warned in
4779yes:)
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782ac_tool_warned=yes ;;
4783esac
4784    RANLIB=$ac_ct_RANLIB
4785  fi
4786else
4787  RANLIB="$ac_cv_prog_RANLIB"
4788fi
4789
4790test -z "$RANLIB" && RANLIB=:
4791
4792
4793
4794
4795
4796
4797# Determine commands to create old-style static archives.
4798old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4799old_postinstall_cmds='chmod 644 $oldlib'
4800old_postuninstall_cmds=
4801
4802if test -n "$RANLIB"; then
4803  case $host_os in
4804  openbsd*)
4805    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4806    ;;
4807  *)
4808    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4809    ;;
4810  esac
4811  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4812fi
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847# If no C compiler was specified, use CC.
4848LTCC=${LTCC-"$CC"}
4849
4850# If no C compiler flags were specified, use CFLAGS.
4851LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4852
4853# Allow CC to be a program name with arguments.
4854compiler=$CC
4855
4856
4857# Check for command to grab the raw symbol name followed by C symbol from nm.
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4859$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4860if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4861  $as_echo_n "(cached) " >&6
4862else
4863
4864# These are sane defaults that work on at least a few old systems.
4865# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4866
4867# Character class describing NM global symbol codes.
4868symcode='[BCDEGRST]'
4869
4870# Regexp to match symbols that can be accessed directly from C.
4871sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4872
4873# Define system-specific variables.
4874case $host_os in
4875aix*)
4876  symcode='[BCDT]'
4877  ;;
4878cygwin* | mingw* | pw32* | cegcc*)
4879  symcode='[ABCDGISTW]'
4880  ;;
4881hpux*)
4882  if test "$host_cpu" = ia64; then
4883    symcode='[ABCDEGRST]'
4884  fi
4885  ;;
4886irix* | nonstopux*)
4887  symcode='[BCDEGRST]'
4888  ;;
4889osf*)
4890  symcode='[BCDEGQRST]'
4891  ;;
4892solaris*)
4893  symcode='[BDRT]'
4894  ;;
4895sco3.2v5*)
4896  symcode='[DT]'
4897  ;;
4898sysv4.2uw2*)
4899  symcode='[DT]'
4900  ;;
4901sysv5* | sco5v6* | unixware* | OpenUNIX*)
4902  symcode='[ABDT]'
4903  ;;
4904sysv4)
4905  symcode='[DFNSTU]'
4906  ;;
4907esac
4908
4909# If we're using GNU nm, then use its standard symbol codes.
4910case `$NM -V 2>&1` in
4911*GNU* | *'with BFD'*)
4912  symcode='[ABCDGIRSTW]' ;;
4913esac
4914
4915# Transform an extracted symbol line into a proper C declaration.
4916# Some systems (esp. on ia64) link data and code symbols differently,
4917# so use this general approach.
4918lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4919
4920# Transform an extracted symbol line into symbol name and symbol address
4921lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4922lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4923
4924# Handle CRLF in mingw tool chain
4925opt_cr=
4926case $build_os in
4927mingw*)
4928  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4929  ;;
4930esac
4931
4932# Try without a prefix underscore, then with it.
4933for ac_symprfx in "" "_"; do
4934
4935  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4936  symxfrm="\\1 $ac_symprfx\\2 \\2"
4937
4938  # Write the raw and C identifiers.
4939  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4940    # Fake it for dumpbin and say T for any non-static function
4941    # and D for any global variable.
4942    # Also find C++ and __fastcall symbols from MSVC++,
4943    # which start with @ or ?.
4944    lt_cv_sys_global_symbol_pipe="$AWK '"\
4945"     {last_section=section; section=\$ 3};"\
4946"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4947"     \$ 0!~/External *\|/{next};"\
4948"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4949"     {if(hide[section]) next};"\
4950"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4951"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4952"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4953"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4954"     ' prfx=^$ac_symprfx"
4955  else
4956    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4957  fi
4958
4959  # Check to see that the pipe works correctly.
4960  pipe_works=no
4961
4962  rm -f conftest*
4963  cat > conftest.$ac_ext <<_LT_EOF
4964#ifdef __cplusplus
4965extern "C" {
4966#endif
4967char nm_test_var;
4968void nm_test_func(void);
4969void nm_test_func(void){}
4970#ifdef __cplusplus
4971}
4972#endif
4973int main(){nm_test_var='a';nm_test_func();return(0);}
4974_LT_EOF
4975
4976  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4977  (eval $ac_compile) 2>&5
4978  ac_status=$?
4979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4980  test $ac_status = 0; }; then
4981    # Now try to grab the symbols.
4982    nlist=conftest.nm
4983    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4984  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4985  ac_status=$?
4986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987  test $ac_status = 0; } && test -s "$nlist"; then
4988      # Try sorting and uniquifying the output.
4989      if sort "$nlist" | uniq > "$nlist"T; then
4990	mv -f "$nlist"T "$nlist"
4991      else
4992	rm -f "$nlist"T
4993      fi
4994
4995      # Make sure that we snagged all the symbols we need.
4996      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4997	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4998	  cat <<_LT_EOF > conftest.$ac_ext
4999#ifdef __cplusplus
5000extern "C" {
5001#endif
5002
5003_LT_EOF
5004	  # Now generate the symbol file.
5005	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5006
5007	  cat <<_LT_EOF >> conftest.$ac_ext
5008
5009/* The mapping between symbol names and symbols.  */
5010const struct {
5011  const char *name;
5012  void       *address;
5013}
5014lt__PROGRAM__LTX_preloaded_symbols[] =
5015{
5016  { "@PROGRAM@", (void *) 0 },
5017_LT_EOF
5018	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5019	  cat <<\_LT_EOF >> conftest.$ac_ext
5020  {0, (void *) 0}
5021};
5022
5023/* This works around a problem in FreeBSD linker */
5024#ifdef FREEBSD_WORKAROUND
5025static const void *lt_preloaded_setup() {
5026  return lt__PROGRAM__LTX_preloaded_symbols;
5027}
5028#endif
5029
5030#ifdef __cplusplus
5031}
5032#endif
5033_LT_EOF
5034	  # Now try linking the two files.
5035	  mv conftest.$ac_objext conftstm.$ac_objext
5036	  lt_save_LIBS="$LIBS"
5037	  lt_save_CFLAGS="$CFLAGS"
5038	  LIBS="conftstm.$ac_objext"
5039	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5040	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5041  (eval $ac_link) 2>&5
5042  ac_status=$?
5043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5045	    pipe_works=yes
5046	  fi
5047	  LIBS="$lt_save_LIBS"
5048	  CFLAGS="$lt_save_CFLAGS"
5049	else
5050	  echo "cannot find nm_test_func in $nlist" >&5
5051	fi
5052      else
5053	echo "cannot find nm_test_var in $nlist" >&5
5054      fi
5055    else
5056      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5057    fi
5058  else
5059    echo "$progname: failed program was:" >&5
5060    cat conftest.$ac_ext >&5
5061  fi
5062  rm -rf conftest* conftst*
5063
5064  # Do not use the global_symbol_pipe unless it works.
5065  if test "$pipe_works" = yes; then
5066    break
5067  else
5068    lt_cv_sys_global_symbol_pipe=
5069  fi
5070done
5071
5072fi
5073
5074if test -z "$lt_cv_sys_global_symbol_pipe"; then
5075  lt_cv_sys_global_symbol_to_cdecl=
5076fi
5077if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5079$as_echo "failed" >&6; }
5080else
5081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5082$as_echo "ok" >&6; }
5083fi
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107# Check whether --enable-libtool-lock was given.
5108if test "${enable_libtool_lock+set}" = set; then :
5109  enableval=$enable_libtool_lock;
5110fi
5111
5112test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5113
5114# Some flags need to be propagated to the compiler or linker for good
5115# libtool support.
5116case $host in
5117ia64-*-hpux*)
5118  # Find out which ABI we are using.
5119  echo 'int i;' > conftest.$ac_ext
5120  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5121  (eval $ac_compile) 2>&5
5122  ac_status=$?
5123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5124  test $ac_status = 0; }; then
5125    case `/usr/bin/file conftest.$ac_objext` in
5126      *ELF-32*)
5127	HPUX_IA64_MODE="32"
5128	;;
5129      *ELF-64*)
5130	HPUX_IA64_MODE="64"
5131	;;
5132    esac
5133  fi
5134  rm -rf conftest*
5135  ;;
5136*-*-irix6*)
5137  # Find out which ABI we are using.
5138  echo '#line 5138 "configure"' > conftest.$ac_ext
5139  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5140  (eval $ac_compile) 2>&5
5141  ac_status=$?
5142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5143  test $ac_status = 0; }; then
5144    if test "$lt_cv_prog_gnu_ld" = yes; then
5145      case `/usr/bin/file conftest.$ac_objext` in
5146	*32-bit*)
5147	  LD="${LD-ld} -melf32bsmip"
5148	  ;;
5149	*N32*)
5150	  LD="${LD-ld} -melf32bmipn32"
5151	  ;;
5152	*64-bit*)
5153	  LD="${LD-ld} -melf64bmip"
5154	;;
5155      esac
5156    else
5157      case `/usr/bin/file conftest.$ac_objext` in
5158	*32-bit*)
5159	  LD="${LD-ld} -32"
5160	  ;;
5161	*N32*)
5162	  LD="${LD-ld} -n32"
5163	  ;;
5164	*64-bit*)
5165	  LD="${LD-ld} -64"
5166	  ;;
5167      esac
5168    fi
5169  fi
5170  rm -rf conftest*
5171  ;;
5172
5173x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5174s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5175  # Find out which ABI we are using.
5176  echo 'int i;' > conftest.$ac_ext
5177  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5178  (eval $ac_compile) 2>&5
5179  ac_status=$?
5180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5181  test $ac_status = 0; }; then
5182    case `/usr/bin/file conftest.o` in
5183      *32-bit*)
5184	case $host in
5185	  x86_64-*kfreebsd*-gnu)
5186	    LD="${LD-ld} -m elf_i386_fbsd"
5187	    ;;
5188	  x86_64-*linux*)
5189	    LD="${LD-ld} -m elf_i386"
5190	    ;;
5191	  ppc64-*linux*|powerpc64-*linux*)
5192	    LD="${LD-ld} -m elf32ppclinux"
5193	    ;;
5194	  s390x-*linux*)
5195	    LD="${LD-ld} -m elf_s390"
5196	    ;;
5197	  sparc64-*linux*)
5198	    LD="${LD-ld} -m elf32_sparc"
5199	    ;;
5200	esac
5201	;;
5202      *64-bit*)
5203	case $host in
5204	  x86_64-*kfreebsd*-gnu)
5205	    LD="${LD-ld} -m elf_x86_64_fbsd"
5206	    ;;
5207	  x86_64-*linux*)
5208	    LD="${LD-ld} -m elf_x86_64"
5209	    ;;
5210	  ppc*-*linux*|powerpc*-*linux*)
5211	    LD="${LD-ld} -m elf64ppc"
5212	    ;;
5213	  s390*-*linux*|s390*-*tpf*)
5214	    LD="${LD-ld} -m elf64_s390"
5215	    ;;
5216	  sparc*-*linux*)
5217	    LD="${LD-ld} -m elf64_sparc"
5218	    ;;
5219	esac
5220	;;
5221    esac
5222  fi
5223  rm -rf conftest*
5224  ;;
5225
5226*-*-sco3.2v5*)
5227  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5228  SAVE_CFLAGS="$CFLAGS"
5229  CFLAGS="$CFLAGS -belf"
5230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5231$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5232if ${lt_cv_cc_needs_belf+:} false; then :
5233  $as_echo_n "(cached) " >&6
5234else
5235  ac_ext=c
5236ac_cpp='$CPP $CPPFLAGS'
5237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239ac_compiler_gnu=$ac_cv_c_compiler_gnu
5240
5241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242/* end confdefs.h.  */
5243
5244int
5245main ()
5246{
5247
5248  ;
5249  return 0;
5250}
5251_ACEOF
5252if ac_fn_c_try_link "$LINENO"; then :
5253  lt_cv_cc_needs_belf=yes
5254else
5255  lt_cv_cc_needs_belf=no
5256fi
5257rm -f core conftest.err conftest.$ac_objext \
5258    conftest$ac_exeext conftest.$ac_ext
5259     ac_ext=c
5260ac_cpp='$CPP $CPPFLAGS'
5261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264
5265fi
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5267$as_echo "$lt_cv_cc_needs_belf" >&6; }
5268  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5269    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5270    CFLAGS="$SAVE_CFLAGS"
5271  fi
5272  ;;
5273sparc*-*solaris*)
5274  # Find out which ABI we are using.
5275  echo 'int i;' > conftest.$ac_ext
5276  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5277  (eval $ac_compile) 2>&5
5278  ac_status=$?
5279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5280  test $ac_status = 0; }; then
5281    case `/usr/bin/file conftest.o` in
5282    *64-bit*)
5283      case $lt_cv_prog_gnu_ld in
5284      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5285      *)
5286	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5287	  LD="${LD-ld} -64"
5288	fi
5289	;;
5290      esac
5291      ;;
5292    esac
5293  fi
5294  rm -rf conftest*
5295  ;;
5296esac
5297
5298need_locks="$enable_libtool_lock"
5299
5300
5301  case $host_os in
5302    rhapsody* | darwin*)
5303    if test -n "$ac_tool_prefix"; then
5304  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5305set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307$as_echo_n "checking for $ac_word... " >&6; }
5308if ${ac_cv_prog_DSYMUTIL+:} false; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  if test -n "$DSYMUTIL"; then
5312  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5313else
5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317  IFS=$as_save_IFS
5318  test -z "$as_dir" && as_dir=.
5319    for ac_exec_ext in '' $ac_executable_extensions; do
5320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323    break 2
5324  fi
5325done
5326  done
5327IFS=$as_save_IFS
5328
5329fi
5330fi
5331DSYMUTIL=$ac_cv_prog_DSYMUTIL
5332if test -n "$DSYMUTIL"; then
5333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5334$as_echo "$DSYMUTIL" >&6; }
5335else
5336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337$as_echo "no" >&6; }
5338fi
5339
5340
5341fi
5342if test -z "$ac_cv_prog_DSYMUTIL"; then
5343  ac_ct_DSYMUTIL=$DSYMUTIL
5344  # Extract the first word of "dsymutil", so it can be a program name with args.
5345set dummy dsymutil; ac_word=$2
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347$as_echo_n "checking for $ac_word... " >&6; }
5348if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5349  $as_echo_n "(cached) " >&6
5350else
5351  if test -n "$ac_ct_DSYMUTIL"; then
5352  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5353else
5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355for as_dir in $PATH
5356do
5357  IFS=$as_save_IFS
5358  test -z "$as_dir" && as_dir=.
5359    for ac_exec_ext in '' $ac_executable_extensions; do
5360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363    break 2
5364  fi
5365done
5366  done
5367IFS=$as_save_IFS
5368
5369fi
5370fi
5371ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5372if test -n "$ac_ct_DSYMUTIL"; then
5373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5374$as_echo "$ac_ct_DSYMUTIL" >&6; }
5375else
5376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377$as_echo "no" >&6; }
5378fi
5379
5380  if test "x$ac_ct_DSYMUTIL" = x; then
5381    DSYMUTIL=":"
5382  else
5383    case $cross_compiling:$ac_tool_warned in
5384yes:)
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5387ac_tool_warned=yes ;;
5388esac
5389    DSYMUTIL=$ac_ct_DSYMUTIL
5390  fi
5391else
5392  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5393fi
5394
5395    if test -n "$ac_tool_prefix"; then
5396  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5397set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399$as_echo_n "checking for $ac_word... " >&6; }
5400if ${ac_cv_prog_NMEDIT+:} false; then :
5401  $as_echo_n "(cached) " >&6
5402else
5403  if test -n "$NMEDIT"; then
5404  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409  IFS=$as_save_IFS
5410  test -z "$as_dir" && as_dir=.
5411    for ac_exec_ext in '' $ac_executable_extensions; do
5412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415    break 2
5416  fi
5417done
5418  done
5419IFS=$as_save_IFS
5420
5421fi
5422fi
5423NMEDIT=$ac_cv_prog_NMEDIT
5424if test -n "$NMEDIT"; then
5425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5426$as_echo "$NMEDIT" >&6; }
5427else
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429$as_echo "no" >&6; }
5430fi
5431
5432
5433fi
5434if test -z "$ac_cv_prog_NMEDIT"; then
5435  ac_ct_NMEDIT=$NMEDIT
5436  # Extract the first word of "nmedit", so it can be a program name with args.
5437set dummy nmedit; ac_word=$2
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439$as_echo_n "checking for $ac_word... " >&6; }
5440if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5441  $as_echo_n "(cached) " >&6
5442else
5443  if test -n "$ac_ct_NMEDIT"; then
5444  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5445else
5446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447for as_dir in $PATH
5448do
5449  IFS=$as_save_IFS
5450  test -z "$as_dir" && as_dir=.
5451    for ac_exec_ext in '' $ac_executable_extensions; do
5452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455    break 2
5456  fi
5457done
5458  done
5459IFS=$as_save_IFS
5460
5461fi
5462fi
5463ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5464if test -n "$ac_ct_NMEDIT"; then
5465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5466$as_echo "$ac_ct_NMEDIT" >&6; }
5467else
5468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }
5470fi
5471
5472  if test "x$ac_ct_NMEDIT" = x; then
5473    NMEDIT=":"
5474  else
5475    case $cross_compiling:$ac_tool_warned in
5476yes:)
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5479ac_tool_warned=yes ;;
5480esac
5481    NMEDIT=$ac_ct_NMEDIT
5482  fi
5483else
5484  NMEDIT="$ac_cv_prog_NMEDIT"
5485fi
5486
5487    if test -n "$ac_tool_prefix"; then
5488  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5489set dummy ${ac_tool_prefix}lipo; ac_word=$2
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491$as_echo_n "checking for $ac_word... " >&6; }
5492if ${ac_cv_prog_LIPO+:} false; then :
5493  $as_echo_n "(cached) " >&6
5494else
5495  if test -n "$LIPO"; then
5496  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501  IFS=$as_save_IFS
5502  test -z "$as_dir" && as_dir=.
5503    for ac_exec_ext in '' $ac_executable_extensions; do
5504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507    break 2
5508  fi
5509done
5510  done
5511IFS=$as_save_IFS
5512
5513fi
5514fi
5515LIPO=$ac_cv_prog_LIPO
5516if test -n "$LIPO"; then
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5518$as_echo "$LIPO" >&6; }
5519else
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521$as_echo "no" >&6; }
5522fi
5523
5524
5525fi
5526if test -z "$ac_cv_prog_LIPO"; then
5527  ac_ct_LIPO=$LIPO
5528  # Extract the first word of "lipo", so it can be a program name with args.
5529set dummy lipo; ac_word=$2
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531$as_echo_n "checking for $ac_word... " >&6; }
5532if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535  if test -n "$ac_ct_LIPO"; then
5536  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5537else
5538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541  IFS=$as_save_IFS
5542  test -z "$as_dir" && as_dir=.
5543    for ac_exec_ext in '' $ac_executable_extensions; do
5544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545    ac_cv_prog_ac_ct_LIPO="lipo"
5546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547    break 2
5548  fi
5549done
5550  done
5551IFS=$as_save_IFS
5552
5553fi
5554fi
5555ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5556if test -n "$ac_ct_LIPO"; then
5557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5558$as_echo "$ac_ct_LIPO" >&6; }
5559else
5560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561$as_echo "no" >&6; }
5562fi
5563
5564  if test "x$ac_ct_LIPO" = x; then
5565    LIPO=":"
5566  else
5567    case $cross_compiling:$ac_tool_warned in
5568yes:)
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5571ac_tool_warned=yes ;;
5572esac
5573    LIPO=$ac_ct_LIPO
5574  fi
5575else
5576  LIPO="$ac_cv_prog_LIPO"
5577fi
5578
5579    if test -n "$ac_tool_prefix"; then
5580  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5581set dummy ${ac_tool_prefix}otool; ac_word=$2
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583$as_echo_n "checking for $ac_word... " >&6; }
5584if ${ac_cv_prog_OTOOL+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  if test -n "$OTOOL"; then
5588  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5589else
5590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH
5592do
5593  IFS=$as_save_IFS
5594  test -z "$as_dir" && as_dir=.
5595    for ac_exec_ext in '' $ac_executable_extensions; do
5596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599    break 2
5600  fi
5601done
5602  done
5603IFS=$as_save_IFS
5604
5605fi
5606fi
5607OTOOL=$ac_cv_prog_OTOOL
5608if test -n "$OTOOL"; then
5609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5610$as_echo "$OTOOL" >&6; }
5611else
5612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613$as_echo "no" >&6; }
5614fi
5615
5616
5617fi
5618if test -z "$ac_cv_prog_OTOOL"; then
5619  ac_ct_OTOOL=$OTOOL
5620  # Extract the first word of "otool", so it can be a program name with args.
5621set dummy otool; ac_word=$2
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623$as_echo_n "checking for $ac_word... " >&6; }
5624if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5625  $as_echo_n "(cached) " >&6
5626else
5627  if test -n "$ac_ct_OTOOL"; then
5628  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633  IFS=$as_save_IFS
5634  test -z "$as_dir" && as_dir=.
5635    for ac_exec_ext in '' $ac_executable_extensions; do
5636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637    ac_cv_prog_ac_ct_OTOOL="otool"
5638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639    break 2
5640  fi
5641done
5642  done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5648if test -n "$ac_ct_OTOOL"; then
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5650$as_echo "$ac_ct_OTOOL" >&6; }
5651else
5652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
5654fi
5655
5656  if test "x$ac_ct_OTOOL" = x; then
5657    OTOOL=":"
5658  else
5659    case $cross_compiling:$ac_tool_warned in
5660yes:)
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663ac_tool_warned=yes ;;
5664esac
5665    OTOOL=$ac_ct_OTOOL
5666  fi
5667else
5668  OTOOL="$ac_cv_prog_OTOOL"
5669fi
5670
5671    if test -n "$ac_tool_prefix"; then
5672  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5673set dummy ${ac_tool_prefix}otool64; ac_word=$2
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675$as_echo_n "checking for $ac_word... " >&6; }
5676if ${ac_cv_prog_OTOOL64+:} false; then :
5677  $as_echo_n "(cached) " >&6
5678else
5679  if test -n "$OTOOL64"; then
5680  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5681else
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685  IFS=$as_save_IFS
5686  test -z "$as_dir" && as_dir=.
5687    for ac_exec_ext in '' $ac_executable_extensions; do
5688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691    break 2
5692  fi
5693done
5694  done
5695IFS=$as_save_IFS
5696
5697fi
5698fi
5699OTOOL64=$ac_cv_prog_OTOOL64
5700if test -n "$OTOOL64"; then
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5702$as_echo "$OTOOL64" >&6; }
5703else
5704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705$as_echo "no" >&6; }
5706fi
5707
5708
5709fi
5710if test -z "$ac_cv_prog_OTOOL64"; then
5711  ac_ct_OTOOL64=$OTOOL64
5712  # Extract the first word of "otool64", so it can be a program name with args.
5713set dummy otool64; ac_word=$2
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715$as_echo_n "checking for $ac_word... " >&6; }
5716if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5717  $as_echo_n "(cached) " >&6
5718else
5719  if test -n "$ac_ct_OTOOL64"; then
5720  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725  IFS=$as_save_IFS
5726  test -z "$as_dir" && as_dir=.
5727    for ac_exec_ext in '' $ac_executable_extensions; do
5728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729    ac_cv_prog_ac_ct_OTOOL64="otool64"
5730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731    break 2
5732  fi
5733done
5734  done
5735IFS=$as_save_IFS
5736
5737fi
5738fi
5739ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5740if test -n "$ac_ct_OTOOL64"; then
5741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5742$as_echo "$ac_ct_OTOOL64" >&6; }
5743else
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745$as_echo "no" >&6; }
5746fi
5747
5748  if test "x$ac_ct_OTOOL64" = x; then
5749    OTOOL64=":"
5750  else
5751    case $cross_compiling:$ac_tool_warned in
5752yes:)
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5755ac_tool_warned=yes ;;
5756esac
5757    OTOOL64=$ac_ct_OTOOL64
5758  fi
5759else
5760  OTOOL64="$ac_cv_prog_OTOOL64"
5761fi
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5790$as_echo_n "checking for -single_module linker flag... " >&6; }
5791if ${lt_cv_apple_cc_single_mod+:} false; then :
5792  $as_echo_n "(cached) " >&6
5793else
5794  lt_cv_apple_cc_single_mod=no
5795      if test -z "${LT_MULTI_MODULE}"; then
5796	# By default we will add the -single_module flag. You can override
5797	# by either setting the environment variable LT_MULTI_MODULE
5798	# non-empty at configure time, or by adding -multi_module to the
5799	# link flags.
5800	rm -rf libconftest.dylib*
5801	echo "int foo(void){return 1;}" > conftest.c
5802	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5803-dynamiclib -Wl,-single_module conftest.c" >&5
5804	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5805	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5806        _lt_result=$?
5807	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5808	  lt_cv_apple_cc_single_mod=yes
5809	else
5810	  cat conftest.err >&5
5811	fi
5812	rm -rf libconftest.dylib*
5813	rm -f conftest.*
5814      fi
5815fi
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5817$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5819$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5820if ${lt_cv_ld_exported_symbols_list+:} false; then :
5821  $as_echo_n "(cached) " >&6
5822else
5823  lt_cv_ld_exported_symbols_list=no
5824      save_LDFLAGS=$LDFLAGS
5825      echo "_main" > conftest.sym
5826      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5827      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828/* end confdefs.h.  */
5829
5830int
5831main ()
5832{
5833
5834  ;
5835  return 0;
5836}
5837_ACEOF
5838if ac_fn_c_try_link "$LINENO"; then :
5839  lt_cv_ld_exported_symbols_list=yes
5840else
5841  lt_cv_ld_exported_symbols_list=no
5842fi
5843rm -f core conftest.err conftest.$ac_objext \
5844    conftest$ac_exeext conftest.$ac_ext
5845	LDFLAGS="$save_LDFLAGS"
5846
5847fi
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5849$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5850    case $host_os in
5851    rhapsody* | darwin1.[012])
5852      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5853    darwin1.*)
5854      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5855    darwin*) # darwin 5.x on
5856      # if running on 10.5 or later, the deployment target defaults
5857      # to the OS version, if on x86, and 10.4, the deployment
5858      # target defaults to 10.4. Don't you love it?
5859      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5860	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5861	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5862	10.[012]*)
5863	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5864	10.*)
5865	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5866      esac
5867    ;;
5868  esac
5869    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5870      _lt_dar_single_mod='$single_module'
5871    fi
5872    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5873      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5874    else
5875      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5876    fi
5877    if test "$DSYMUTIL" != ":"; then
5878      _lt_dsymutil='~$DSYMUTIL $lib || :'
5879    else
5880      _lt_dsymutil=
5881    fi
5882    ;;
5883  esac
5884
5885ac_ext=c
5886ac_cpp='$CPP $CPPFLAGS'
5887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889ac_compiler_gnu=$ac_cv_c_compiler_gnu
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5891$as_echo_n "checking how to run the C preprocessor... " >&6; }
5892# On Suns, sometimes $CPP names a directory.
5893if test -n "$CPP" && test -d "$CPP"; then
5894  CPP=
5895fi
5896if test -z "$CPP"; then
5897  if ${ac_cv_prog_CPP+:} false; then :
5898  $as_echo_n "(cached) " >&6
5899else
5900      # Double quotes because CPP needs to be expanded
5901    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5902    do
5903      ac_preproc_ok=false
5904for ac_c_preproc_warn_flag in '' yes
5905do
5906  # Use a header file that comes with gcc, so configuring glibc
5907  # with a fresh cross-compiler works.
5908  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909  # <limits.h> exists even on freestanding compilers.
5910  # On the NeXT, cc -E runs the code through the compiler's parser,
5911  # not just through cpp. "Syntax error" is here to catch this case.
5912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h.  */
5914#ifdef __STDC__
5915# include <limits.h>
5916#else
5917# include <assert.h>
5918#endif
5919		     Syntax error
5920_ACEOF
5921if ac_fn_c_try_cpp "$LINENO"; then :
5922
5923else
5924  # Broken: fails on valid input.
5925continue
5926fi
5927rm -f conftest.err conftest.i conftest.$ac_ext
5928
5929  # OK, works on sane cases.  Now check whether nonexistent headers
5930  # can be detected and how.
5931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932/* end confdefs.h.  */
5933#include <ac_nonexistent.h>
5934_ACEOF
5935if ac_fn_c_try_cpp "$LINENO"; then :
5936  # Broken: success on invalid input.
5937continue
5938else
5939  # Passes both tests.
5940ac_preproc_ok=:
5941break
5942fi
5943rm -f conftest.err conftest.i conftest.$ac_ext
5944
5945done
5946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5947rm -f conftest.i conftest.err conftest.$ac_ext
5948if $ac_preproc_ok; then :
5949  break
5950fi
5951
5952    done
5953    ac_cv_prog_CPP=$CPP
5954
5955fi
5956  CPP=$ac_cv_prog_CPP
5957else
5958  ac_cv_prog_CPP=$CPP
5959fi
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5961$as_echo "$CPP" >&6; }
5962ac_preproc_ok=false
5963for ac_c_preproc_warn_flag in '' yes
5964do
5965  # Use a header file that comes with gcc, so configuring glibc
5966  # with a fresh cross-compiler works.
5967  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968  # <limits.h> exists even on freestanding compilers.
5969  # On the NeXT, cc -E runs the code through the compiler's parser,
5970  # not just through cpp. "Syntax error" is here to catch this case.
5971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973#ifdef __STDC__
5974# include <limits.h>
5975#else
5976# include <assert.h>
5977#endif
5978		     Syntax error
5979_ACEOF
5980if ac_fn_c_try_cpp "$LINENO"; then :
5981
5982else
5983  # Broken: fails on valid input.
5984continue
5985fi
5986rm -f conftest.err conftest.i conftest.$ac_ext
5987
5988  # OK, works on sane cases.  Now check whether nonexistent headers
5989  # can be detected and how.
5990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991/* end confdefs.h.  */
5992#include <ac_nonexistent.h>
5993_ACEOF
5994if ac_fn_c_try_cpp "$LINENO"; then :
5995  # Broken: success on invalid input.
5996continue
5997else
5998  # Passes both tests.
5999ac_preproc_ok=:
6000break
6001fi
6002rm -f conftest.err conftest.i conftest.$ac_ext
6003
6004done
6005# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006rm -f conftest.i conftest.err conftest.$ac_ext
6007if $ac_preproc_ok; then :
6008
6009else
6010  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6013See \`config.log' for more details" "$LINENO" 5; }
6014fi
6015
6016ac_ext=c
6017ac_cpp='$CPP $CPPFLAGS'
6018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021
6022
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6024$as_echo_n "checking for ANSI C header files... " >&6; }
6025if ${ac_cv_header_stdc+:} false; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030#include <stdlib.h>
6031#include <stdarg.h>
6032#include <string.h>
6033#include <float.h>
6034
6035int
6036main ()
6037{
6038
6039  ;
6040  return 0;
6041}
6042_ACEOF
6043if ac_fn_c_try_compile "$LINENO"; then :
6044  ac_cv_header_stdc=yes
6045else
6046  ac_cv_header_stdc=no
6047fi
6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049
6050if test $ac_cv_header_stdc = yes; then
6051  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h.  */
6054#include <string.h>
6055
6056_ACEOF
6057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6058  $EGREP "memchr" >/dev/null 2>&1; then :
6059
6060else
6061  ac_cv_header_stdc=no
6062fi
6063rm -f conftest*
6064
6065fi
6066
6067if test $ac_cv_header_stdc = yes; then
6068  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h.  */
6071#include <stdlib.h>
6072
6073_ACEOF
6074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6075  $EGREP "free" >/dev/null 2>&1; then :
6076
6077else
6078  ac_cv_header_stdc=no
6079fi
6080rm -f conftest*
6081
6082fi
6083
6084if test $ac_cv_header_stdc = yes; then
6085  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6086  if test "$cross_compiling" = yes; then :
6087  :
6088else
6089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h.  */
6091#include <ctype.h>
6092#include <stdlib.h>
6093#if ((' ' & 0x0FF) == 0x020)
6094# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6095# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6096#else
6097# define ISLOWER(c) \
6098		   (('a' <= (c) && (c) <= 'i') \
6099		     || ('j' <= (c) && (c) <= 'r') \
6100		     || ('s' <= (c) && (c) <= 'z'))
6101# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6102#endif
6103
6104#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6105int
6106main ()
6107{
6108  int i;
6109  for (i = 0; i < 256; i++)
6110    if (XOR (islower (i), ISLOWER (i))
6111	|| toupper (i) != TOUPPER (i))
6112      return 2;
6113  return 0;
6114}
6115_ACEOF
6116if ac_fn_c_try_run "$LINENO"; then :
6117
6118else
6119  ac_cv_header_stdc=no
6120fi
6121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6122  conftest.$ac_objext conftest.beam conftest.$ac_ext
6123fi
6124
6125fi
6126fi
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6128$as_echo "$ac_cv_header_stdc" >&6; }
6129if test $ac_cv_header_stdc = yes; then
6130
6131$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6132
6133fi
6134
6135# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6136for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6137		  inttypes.h stdint.h unistd.h
6138do :
6139  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6140ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6141"
6142if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6143  cat >>confdefs.h <<_ACEOF
6144#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145_ACEOF
6146
6147fi
6148
6149done
6150
6151
6152for ac_header in dlfcn.h
6153do :
6154  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6155"
6156if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6157  cat >>confdefs.h <<_ACEOF
6158#define HAVE_DLFCN_H 1
6159_ACEOF
6160
6161fi
6162
6163done
6164
6165
6166
6167# Set options
6168
6169
6170
6171        enable_dlopen=no
6172
6173
6174  enable_win32_dll=no
6175
6176
6177            # Check whether --enable-shared was given.
6178if test "${enable_shared+set}" = set; then :
6179  enableval=$enable_shared; p=${PACKAGE-default}
6180    case $enableval in
6181    yes) enable_shared=yes ;;
6182    no) enable_shared=no ;;
6183    *)
6184      enable_shared=no
6185      # Look at the argument we got.  We use all the common list separators.
6186      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6187      for pkg in $enableval; do
6188	IFS="$lt_save_ifs"
6189	if test "X$pkg" = "X$p"; then
6190	  enable_shared=yes
6191	fi
6192      done
6193      IFS="$lt_save_ifs"
6194      ;;
6195    esac
6196else
6197  enable_shared=yes
6198fi
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208  # Check whether --enable-static was given.
6209if test "${enable_static+set}" = set; then :
6210  enableval=$enable_static; p=${PACKAGE-default}
6211    case $enableval in
6212    yes) enable_static=yes ;;
6213    no) enable_static=no ;;
6214    *)
6215     enable_static=no
6216      # Look at the argument we got.  We use all the common list separators.
6217      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6218      for pkg in $enableval; do
6219	IFS="$lt_save_ifs"
6220	if test "X$pkg" = "X$p"; then
6221	  enable_static=yes
6222	fi
6223      done
6224      IFS="$lt_save_ifs"
6225      ;;
6226    esac
6227else
6228  enable_static=yes
6229fi
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240# Check whether --with-pic was given.
6241if test "${with_pic+set}" = set; then :
6242  withval=$with_pic; pic_mode="$withval"
6243else
6244  pic_mode=default
6245fi
6246
6247
6248test -z "$pic_mode" && pic_mode=default
6249
6250
6251
6252
6253
6254
6255
6256  # Check whether --enable-fast-install was given.
6257if test "${enable_fast_install+set}" = set; then :
6258  enableval=$enable_fast_install; p=${PACKAGE-default}
6259    case $enableval in
6260    yes) enable_fast_install=yes ;;
6261    no) enable_fast_install=no ;;
6262    *)
6263      enable_fast_install=no
6264      # Look at the argument we got.  We use all the common list separators.
6265      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6266      for pkg in $enableval; do
6267	IFS="$lt_save_ifs"
6268	if test "X$pkg" = "X$p"; then
6269	  enable_fast_install=yes
6270	fi
6271      done
6272      IFS="$lt_save_ifs"
6273      ;;
6274    esac
6275else
6276  enable_fast_install=yes
6277fi
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289# This can be used to rebuild libtool when needed
6290LIBTOOL_DEPS="$ltmain"
6291
6292# Always use our own libtool.
6293LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319test -z "$LN_S" && LN_S="ln -s"
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334if test -n "${ZSH_VERSION+set}" ; then
6335   setopt NO_GLOB_SUBST
6336fi
6337
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6339$as_echo_n "checking for objdir... " >&6; }
6340if ${lt_cv_objdir+:} false; then :
6341  $as_echo_n "(cached) " >&6
6342else
6343  rm -f .libs 2>/dev/null
6344mkdir .libs 2>/dev/null
6345if test -d .libs; then
6346  lt_cv_objdir=.libs
6347else
6348  # MS-DOS does not allow filenames that begin with a dot.
6349  lt_cv_objdir=_libs
6350fi
6351rmdir .libs 2>/dev/null
6352fi
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6354$as_echo "$lt_cv_objdir" >&6; }
6355objdir=$lt_cv_objdir
6356
6357
6358
6359
6360
6361cat >>confdefs.h <<_ACEOF
6362#define LT_OBJDIR "$lt_cv_objdir/"
6363_ACEOF
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381case $host_os in
6382aix3*)
6383  # AIX sometimes has problems with the GCC collect2 program.  For some
6384  # reason, if we set the COLLECT_NAMES environment variable, the problems
6385  # vanish in a puff of smoke.
6386  if test "X${COLLECT_NAMES+set}" != Xset; then
6387    COLLECT_NAMES=
6388    export COLLECT_NAMES
6389  fi
6390  ;;
6391esac
6392
6393# Sed substitution that helps us do robust quoting.  It backslashifies
6394# metacharacters that are still active within double-quoted strings.
6395sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6396
6397# Same as above, but do not quote variable references.
6398double_quote_subst='s/\(["`\\]\)/\\\1/g'
6399
6400# Sed substitution to delay expansion of an escaped shell variable in a
6401# double_quote_subst'ed string.
6402delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6403
6404# Sed substitution to delay expansion of an escaped single quote.
6405delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6406
6407# Sed substitution to avoid accidental globbing in evaled expressions
6408no_glob_subst='s/\*/\\\*/g'
6409
6410# Global variables:
6411ofile=libtool
6412can_build_shared=yes
6413
6414# All known linkers require a `.a' archive for static linking (except MSVC,
6415# which needs '.lib').
6416libext=a
6417
6418with_gnu_ld="$lt_cv_prog_gnu_ld"
6419
6420old_CC="$CC"
6421old_CFLAGS="$CFLAGS"
6422
6423# Set sane defaults for various variables
6424test -z "$CC" && CC=cc
6425test -z "$LTCC" && LTCC=$CC
6426test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6427test -z "$LD" && LD=ld
6428test -z "$ac_objext" && ac_objext=o
6429
6430for cc_temp in $compiler""; do
6431  case $cc_temp in
6432    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6433    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6434    \-*) ;;
6435    *) break;;
6436  esac
6437done
6438cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6439
6440
6441# Only perform the check for file, if the check method requires it
6442test -z "$MAGIC_CMD" && MAGIC_CMD=file
6443case $deplibs_check_method in
6444file_magic*)
6445  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6447$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6448if ${lt_cv_path_MAGIC_CMD+:} false; then :
6449  $as_echo_n "(cached) " >&6
6450else
6451  case $MAGIC_CMD in
6452[\\/*] |  ?:[\\/]*)
6453  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6454  ;;
6455*)
6456  lt_save_MAGIC_CMD="$MAGIC_CMD"
6457  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6458  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6459  for ac_dir in $ac_dummy; do
6460    IFS="$lt_save_ifs"
6461    test -z "$ac_dir" && ac_dir=.
6462    if test -f $ac_dir/${ac_tool_prefix}file; then
6463      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6464      if test -n "$file_magic_test_file"; then
6465	case $deplibs_check_method in
6466	"file_magic "*)
6467	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6468	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6469	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6470	    $EGREP "$file_magic_regex" > /dev/null; then
6471	    :
6472	  else
6473	    cat <<_LT_EOF 1>&2
6474
6475*** Warning: the command libtool uses to detect shared libraries,
6476*** $file_magic_cmd, produces output that libtool cannot recognize.
6477*** The result is that libtool may fail to recognize shared libraries
6478*** as such.  This will affect the creation of libtool libraries that
6479*** depend on shared libraries, but programs linked with such libtool
6480*** libraries will work regardless of this problem.  Nevertheless, you
6481*** may want to report the problem to your system manager and/or to
6482*** [email protected]
6483
6484_LT_EOF
6485	  fi ;;
6486	esac
6487      fi
6488      break
6489    fi
6490  done
6491  IFS="$lt_save_ifs"
6492  MAGIC_CMD="$lt_save_MAGIC_CMD"
6493  ;;
6494esac
6495fi
6496
6497MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6498if test -n "$MAGIC_CMD"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6500$as_echo "$MAGIC_CMD" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506
6507
6508
6509
6510if test -z "$lt_cv_path_MAGIC_CMD"; then
6511  if test -n "$ac_tool_prefix"; then
6512    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6513$as_echo_n "checking for file... " >&6; }
6514if ${lt_cv_path_MAGIC_CMD+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  case $MAGIC_CMD in
6518[\\/*] |  ?:[\\/]*)
6519  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6520  ;;
6521*)
6522  lt_save_MAGIC_CMD="$MAGIC_CMD"
6523  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6524  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6525  for ac_dir in $ac_dummy; do
6526    IFS="$lt_save_ifs"
6527    test -z "$ac_dir" && ac_dir=.
6528    if test -f $ac_dir/file; then
6529      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6530      if test -n "$file_magic_test_file"; then
6531	case $deplibs_check_method in
6532	"file_magic "*)
6533	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6534	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6535	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6536	    $EGREP "$file_magic_regex" > /dev/null; then
6537	    :
6538	  else
6539	    cat <<_LT_EOF 1>&2
6540
6541*** Warning: the command libtool uses to detect shared libraries,
6542*** $file_magic_cmd, produces output that libtool cannot recognize.
6543*** The result is that libtool may fail to recognize shared libraries
6544*** as such.  This will affect the creation of libtool libraries that
6545*** depend on shared libraries, but programs linked with such libtool
6546*** libraries will work regardless of this problem.  Nevertheless, you
6547*** may want to report the problem to your system manager and/or to
6548*** [email protected]
6549
6550_LT_EOF
6551	  fi ;;
6552	esac
6553      fi
6554      break
6555    fi
6556  done
6557  IFS="$lt_save_ifs"
6558  MAGIC_CMD="$lt_save_MAGIC_CMD"
6559  ;;
6560esac
6561fi
6562
6563MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6564if test -n "$MAGIC_CMD"; then
6565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6566$as_echo "$MAGIC_CMD" >&6; }
6567else
6568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572
6573  else
6574    MAGIC_CMD=:
6575  fi
6576fi
6577
6578  fi
6579  ;;
6580esac
6581
6582# Use C for the default configuration in the libtool script
6583
6584lt_save_CC="$CC"
6585ac_ext=c
6586ac_cpp='$CPP $CPPFLAGS'
6587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6589ac_compiler_gnu=$ac_cv_c_compiler_gnu
6590
6591
6592# Source file extension for C test sources.
6593ac_ext=c
6594
6595# Object file extension for compiled C test sources.
6596objext=o
6597objext=$objext
6598
6599# Code to be used in simple compile tests
6600lt_simple_compile_test_code="int some_variable = 0;"
6601
6602# Code to be used in simple link tests
6603lt_simple_link_test_code='int main(){return(0);}'
6604
6605
6606
6607
6608
6609
6610
6611# If no C compiler was specified, use CC.
6612LTCC=${LTCC-"$CC"}
6613
6614# If no C compiler flags were specified, use CFLAGS.
6615LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6616
6617# Allow CC to be a program name with arguments.
6618compiler=$CC
6619
6620# Save the default compiler, since it gets overwritten when the other
6621# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6622compiler_DEFAULT=$CC
6623
6624# save warnings/boilerplate of simple test code
6625ac_outfile=conftest.$ac_objext
6626echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6627eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6628_lt_compiler_boilerplate=`cat conftest.err`
6629$RM conftest*
6630
6631ac_outfile=conftest.$ac_objext
6632echo "$lt_simple_link_test_code" >conftest.$ac_ext
6633eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6634_lt_linker_boilerplate=`cat conftest.err`
6635$RM -r conftest*
6636
6637
6638if test -n "$compiler"; then
6639
6640lt_prog_compiler_no_builtin_flag=
6641
6642if test "$GCC" = yes; then
6643  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6644
6645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6646$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6647if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650  lt_cv_prog_compiler_rtti_exceptions=no
6651   ac_outfile=conftest.$ac_objext
6652   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6653   lt_compiler_flag="-fno-rtti -fno-exceptions"
6654   # Insert the option either (1) after the last *FLAGS variable, or
6655   # (2) before a word containing "conftest.", or (3) at the end.
6656   # Note that $ac_compile itself does not contain backslashes and begins
6657   # with a dollar sign (not a hyphen), so the echo should work correctly.
6658   # The option is referenced via a variable to avoid confusing sed.
6659   lt_compile=`echo "$ac_compile" | $SED \
6660   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6661   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6662   -e 's:$: $lt_compiler_flag:'`
6663   (eval echo "\"\$as_me:6663: $lt_compile\"" >&5)
6664   (eval "$lt_compile" 2>conftest.err)
6665   ac_status=$?
6666   cat conftest.err >&5
6667   echo "$as_me:6667: \$? = $ac_status" >&5
6668   if (exit $ac_status) && test -s "$ac_outfile"; then
6669     # The compiler can only warn and ignore the option if not recognized
6670     # So say no if there are warnings other than the usual output.
6671     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6672     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6673     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6674       lt_cv_prog_compiler_rtti_exceptions=yes
6675     fi
6676   fi
6677   $RM conftest*
6678
6679fi
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6681$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6682
6683if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6684    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6685else
6686    :
6687fi
6688
6689fi
6690
6691
6692
6693
6694
6695
6696  lt_prog_compiler_wl=
6697lt_prog_compiler_pic=
6698lt_prog_compiler_static=
6699
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6701$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6702
6703  if test "$GCC" = yes; then
6704    lt_prog_compiler_wl='-Wl,'
6705    lt_prog_compiler_static='-static'
6706
6707    case $host_os in
6708      aix*)
6709      # All AIX code is PIC.
6710      if test "$host_cpu" = ia64; then
6711	# AIX 5 now supports IA64 processor
6712	lt_prog_compiler_static='-Bstatic'
6713      fi
6714      ;;
6715
6716    amigaos*)
6717      case $host_cpu in
6718      powerpc)
6719            # see comment about AmigaOS4 .so support
6720            lt_prog_compiler_pic='-fPIC'
6721        ;;
6722      m68k)
6723            # FIXME: we need at least 68020 code to build shared libraries, but
6724            # adding the `-m68020' flag to GCC prevents building anything better,
6725            # like `-m68040'.
6726            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6727        ;;
6728      esac
6729      ;;
6730
6731    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6732      # PIC is the default for these OSes.
6733      ;;
6734
6735    mingw* | cygwin* | pw32* | os2* | cegcc*)
6736      # This hack is so that the source file can tell whether it is being
6737      # built for inclusion in a dll (and should export symbols for example).
6738      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6739      # (--disable-auto-import) libraries
6740      lt_prog_compiler_pic='-DDLL_EXPORT'
6741      ;;
6742
6743    darwin* | rhapsody*)
6744      # PIC is the default on this platform
6745      # Common symbols not allowed in MH_DYLIB files
6746      lt_prog_compiler_pic='-fno-common'
6747      ;;
6748
6749    hpux*)
6750      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6751      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6752      # sets the default TLS model and affects inlining.
6753      case $host_cpu in
6754      hppa*64*)
6755	# +Z the default
6756	;;
6757      *)
6758	lt_prog_compiler_pic='-fPIC'
6759	;;
6760      esac
6761      ;;
6762
6763    interix[3-9]*)
6764      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6765      # Instead, we relocate shared libraries at runtime.
6766      ;;
6767
6768    msdosdjgpp*)
6769      # Just because we use GCC doesn't mean we suddenly get shared libraries
6770      # on systems that don't support them.
6771      lt_prog_compiler_can_build_shared=no
6772      enable_shared=no
6773      ;;
6774
6775    *nto* | *qnx*)
6776      # QNX uses GNU C++, but need to define -shared option too, otherwise
6777      # it will coredump.
6778      lt_prog_compiler_pic='-fPIC -shared'
6779      ;;
6780
6781    sysv4*MP*)
6782      if test -d /usr/nec; then
6783	lt_prog_compiler_pic=-Kconform_pic
6784      fi
6785      ;;
6786
6787    *)
6788      lt_prog_compiler_pic='-fPIC'
6789      ;;
6790    esac
6791  else
6792    # PORTME Check for flag to pass linker flags through the system compiler.
6793    case $host_os in
6794    aix*)
6795      lt_prog_compiler_wl='-Wl,'
6796      if test "$host_cpu" = ia64; then
6797	# AIX 5 now supports IA64 processor
6798	lt_prog_compiler_static='-Bstatic'
6799      else
6800	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6801      fi
6802      ;;
6803
6804    mingw* | cygwin* | pw32* | os2* | cegcc*)
6805      # This hack is so that the source file can tell whether it is being
6806      # built for inclusion in a dll (and should export symbols for example).
6807      lt_prog_compiler_pic='-DDLL_EXPORT'
6808      ;;
6809
6810    hpux9* | hpux10* | hpux11*)
6811      lt_prog_compiler_wl='-Wl,'
6812      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6813      # not for PA HP-UX.
6814      case $host_cpu in
6815      hppa*64*|ia64*)
6816	# +Z the default
6817	;;
6818      *)
6819	lt_prog_compiler_pic='+Z'
6820	;;
6821      esac
6822      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6823      lt_prog_compiler_static='${wl}-a ${wl}archive'
6824      ;;
6825
6826    irix5* | irix6* | nonstopux*)
6827      lt_prog_compiler_wl='-Wl,'
6828      # PIC (with -KPIC) is the default.
6829      lt_prog_compiler_static='-non_shared'
6830      ;;
6831
6832    linux* | k*bsd*-gnu)
6833      case $cc_basename in
6834      # old Intel for x86_64 which still supported -KPIC.
6835      ecc*)
6836	lt_prog_compiler_wl='-Wl,'
6837	lt_prog_compiler_pic='-KPIC'
6838	lt_prog_compiler_static='-static'
6839        ;;
6840      # icc used to be incompatible with GCC.
6841      # ICC 10 doesn't accept -KPIC any more.
6842      icc* | ifort*)
6843	lt_prog_compiler_wl='-Wl,'
6844	lt_prog_compiler_pic='-fPIC'
6845	lt_prog_compiler_static='-static'
6846        ;;
6847      # Lahey Fortran 8.1.
6848      lf95*)
6849	lt_prog_compiler_wl='-Wl,'
6850	lt_prog_compiler_pic='--shared'
6851	lt_prog_compiler_static='--static'
6852	;;
6853      pgcc* | pgf77* | pgf90* | pgf95*)
6854        # Portland Group compilers (*not* the Pentium gcc compiler,
6855	# which looks to be a dead project)
6856	lt_prog_compiler_wl='-Wl,'
6857	lt_prog_compiler_pic='-fpic'
6858	lt_prog_compiler_static='-Bstatic'
6859        ;;
6860      ccc*)
6861        lt_prog_compiler_wl='-Wl,'
6862        # All Alpha code is PIC.
6863        lt_prog_compiler_static='-non_shared'
6864        ;;
6865      xl*)
6866	# IBM XL C 8.0/Fortran 10.1 on PPC
6867	lt_prog_compiler_wl='-Wl,'
6868	lt_prog_compiler_pic='-qpic'
6869	lt_prog_compiler_static='-qstaticlink'
6870	;;
6871      *)
6872	case `$CC -V 2>&1 | sed 5q` in
6873	*Sun\ C*)
6874	  # Sun C 5.9
6875	  lt_prog_compiler_pic='-KPIC'
6876	  lt_prog_compiler_static='-Bstatic'
6877	  lt_prog_compiler_wl='-Wl,'
6878	  ;;
6879	*Sun\ F*)
6880	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
6881	  lt_prog_compiler_pic='-KPIC'
6882	  lt_prog_compiler_static='-Bstatic'
6883	  lt_prog_compiler_wl=''
6884	  ;;
6885	esac
6886	;;
6887      esac
6888      ;;
6889
6890    newsos6)
6891      lt_prog_compiler_pic='-KPIC'
6892      lt_prog_compiler_static='-Bstatic'
6893      ;;
6894
6895    *nto* | *qnx*)
6896      # QNX uses GNU C++, but need to define -shared option too, otherwise
6897      # it will coredump.
6898      lt_prog_compiler_pic='-fPIC -shared'
6899      ;;
6900
6901    osf3* | osf4* | osf5*)
6902      lt_prog_compiler_wl='-Wl,'
6903      # All OSF/1 code is PIC.
6904      lt_prog_compiler_static='-non_shared'
6905      ;;
6906
6907    rdos*)
6908      lt_prog_compiler_static='-non_shared'
6909      ;;
6910
6911    solaris*)
6912      lt_prog_compiler_pic='-KPIC'
6913      lt_prog_compiler_static='-Bstatic'
6914      case $cc_basename in
6915      f77* | f90* | f95*)
6916	lt_prog_compiler_wl='-Qoption ld ';;
6917      *)
6918	lt_prog_compiler_wl='-Wl,';;
6919      esac
6920      ;;
6921
6922    sunos4*)
6923      lt_prog_compiler_wl='-Qoption ld '
6924      lt_prog_compiler_pic='-PIC'
6925      lt_prog_compiler_static='-Bstatic'
6926      ;;
6927
6928    sysv4 | sysv4.2uw2* | sysv4.3*)
6929      lt_prog_compiler_wl='-Wl,'
6930      lt_prog_compiler_pic='-KPIC'
6931      lt_prog_compiler_static='-Bstatic'
6932      ;;
6933
6934    sysv4*MP*)
6935      if test -d /usr/nec ;then
6936	lt_prog_compiler_pic='-Kconform_pic'
6937	lt_prog_compiler_static='-Bstatic'
6938      fi
6939      ;;
6940
6941    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6942      lt_prog_compiler_wl='-Wl,'
6943      lt_prog_compiler_pic='-KPIC'
6944      lt_prog_compiler_static='-Bstatic'
6945      ;;
6946
6947    unicos*)
6948      lt_prog_compiler_wl='-Wl,'
6949      lt_prog_compiler_can_build_shared=no
6950      ;;
6951
6952    uts4*)
6953      lt_prog_compiler_pic='-pic'
6954      lt_prog_compiler_static='-Bstatic'
6955      ;;
6956
6957    *)
6958      lt_prog_compiler_can_build_shared=no
6959      ;;
6960    esac
6961  fi
6962
6963case $host_os in
6964  # For platforms which do not support PIC, -DPIC is meaningless:
6965  *djgpp*)
6966    lt_prog_compiler_pic=
6967    ;;
6968  *)
6969    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6970    ;;
6971esac
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6973$as_echo "$lt_prog_compiler_pic" >&6; }
6974
6975
6976
6977
6978
6979
6980#
6981# Check to make sure the PIC flag actually works.
6982#
6983if test -n "$lt_prog_compiler_pic"; then
6984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6985$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6986if ${lt_cv_prog_compiler_pic_works+:} false; then :
6987  $as_echo_n "(cached) " >&6
6988else
6989  lt_cv_prog_compiler_pic_works=no
6990   ac_outfile=conftest.$ac_objext
6991   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6992   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6993   # Insert the option either (1) after the last *FLAGS variable, or
6994   # (2) before a word containing "conftest.", or (3) at the end.
6995   # Note that $ac_compile itself does not contain backslashes and begins
6996   # with a dollar sign (not a hyphen), so the echo should work correctly.
6997   # The option is referenced via a variable to avoid confusing sed.
6998   lt_compile=`echo "$ac_compile" | $SED \
6999   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7000   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7001   -e 's:$: $lt_compiler_flag:'`
7002   (eval echo "\"\$as_me:7002: $lt_compile\"" >&5)
7003   (eval "$lt_compile" 2>conftest.err)
7004   ac_status=$?
7005   cat conftest.err >&5
7006   echo "$as_me:7006: \$? = $ac_status" >&5
7007   if (exit $ac_status) && test -s "$ac_outfile"; then
7008     # The compiler can only warn and ignore the option if not recognized
7009     # So say no if there are warnings other than the usual output.
7010     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7011     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7012     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7013       lt_cv_prog_compiler_pic_works=yes
7014     fi
7015   fi
7016   $RM conftest*
7017
7018fi
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7020$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7021
7022if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7023    case $lt_prog_compiler_pic in
7024     "" | " "*) ;;
7025     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7026     esac
7027else
7028    lt_prog_compiler_pic=
7029     lt_prog_compiler_can_build_shared=no
7030fi
7031
7032fi
7033
7034
7035
7036
7037
7038
7039#
7040# Check to make sure the static flag actually works.
7041#
7042wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7044$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7045if ${lt_cv_prog_compiler_static_works+:} false; then :
7046  $as_echo_n "(cached) " >&6
7047else
7048  lt_cv_prog_compiler_static_works=no
7049   save_LDFLAGS="$LDFLAGS"
7050   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7051   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7052   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7053     # The linker can only warn and ignore the option if not recognized
7054     # So say no if there are warnings
7055     if test -s conftest.err; then
7056       # Append any errors to the config.log.
7057       cat conftest.err 1>&5
7058       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7059       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7060       if diff conftest.exp conftest.er2 >/dev/null; then
7061         lt_cv_prog_compiler_static_works=yes
7062       fi
7063     else
7064       lt_cv_prog_compiler_static_works=yes
7065     fi
7066   fi
7067   $RM -r conftest*
7068   LDFLAGS="$save_LDFLAGS"
7069
7070fi
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7072$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7073
7074if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7075    :
7076else
7077    lt_prog_compiler_static=
7078fi
7079
7080
7081
7082
7083
7084
7085
7086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7087$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7088if ${lt_cv_prog_compiler_c_o+:} false; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091  lt_cv_prog_compiler_c_o=no
7092   $RM -r conftest 2>/dev/null
7093   mkdir conftest
7094   cd conftest
7095   mkdir out
7096   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7097
7098   lt_compiler_flag="-o out/conftest2.$ac_objext"
7099   # Insert the option either (1) after the last *FLAGS variable, or
7100   # (2) before a word containing "conftest.", or (3) at the end.
7101   # Note that $ac_compile itself does not contain backslashes and begins
7102   # with a dollar sign (not a hyphen), so the echo should work correctly.
7103   lt_compile=`echo "$ac_compile" | $SED \
7104   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7105   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7106   -e 's:$: $lt_compiler_flag:'`
7107   (eval echo "\"\$as_me:7107: $lt_compile\"" >&5)
7108   (eval "$lt_compile" 2>out/conftest.err)
7109   ac_status=$?
7110   cat out/conftest.err >&5
7111   echo "$as_me:7111: \$? = $ac_status" >&5
7112   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7113   then
7114     # The compiler can only warn and ignore the option if not recognized
7115     # So say no if there are warnings
7116     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7117     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7118     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7119       lt_cv_prog_compiler_c_o=yes
7120     fi
7121   fi
7122   chmod u+w . 2>&5
7123   $RM conftest*
7124   # SGI C++ compiler will create directory out/ii_files/ for
7125   # template instantiation
7126   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7127   $RM out/* && rmdir out
7128   cd ..
7129   $RM -r conftest
7130   $RM conftest*
7131
7132fi
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7134$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7135
7136
7137
7138
7139
7140
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7142$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7143if ${lt_cv_prog_compiler_c_o+:} false; then :
7144  $as_echo_n "(cached) " >&6
7145else
7146  lt_cv_prog_compiler_c_o=no
7147   $RM -r conftest 2>/dev/null
7148   mkdir conftest
7149   cd conftest
7150   mkdir out
7151   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7152
7153   lt_compiler_flag="-o out/conftest2.$ac_objext"
7154   # Insert the option either (1) after the last *FLAGS variable, or
7155   # (2) before a word containing "conftest.", or (3) at the end.
7156   # Note that $ac_compile itself does not contain backslashes and begins
7157   # with a dollar sign (not a hyphen), so the echo should work correctly.
7158   lt_compile=`echo "$ac_compile" | $SED \
7159   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7160   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7161   -e 's:$: $lt_compiler_flag:'`
7162   (eval echo "\"\$as_me:7162: $lt_compile\"" >&5)
7163   (eval "$lt_compile" 2>out/conftest.err)
7164   ac_status=$?
7165   cat out/conftest.err >&5
7166   echo "$as_me:7166: \$? = $ac_status" >&5
7167   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7168   then
7169     # The compiler can only warn and ignore the option if not recognized
7170     # So say no if there are warnings
7171     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7172     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7173     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7174       lt_cv_prog_compiler_c_o=yes
7175     fi
7176   fi
7177   chmod u+w . 2>&5
7178   $RM conftest*
7179   # SGI C++ compiler will create directory out/ii_files/ for
7180   # template instantiation
7181   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7182   $RM out/* && rmdir out
7183   cd ..
7184   $RM -r conftest
7185   $RM conftest*
7186
7187fi
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7189$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7190
7191
7192
7193
7194hard_links="nottested"
7195if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7196  # do not overwrite the value of need_locks provided by the user
7197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7198$as_echo_n "checking if we can lock with hard links... " >&6; }
7199  hard_links=yes
7200  $RM conftest*
7201  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7202  touch conftest.a
7203  ln conftest.a conftest.b 2>&5 || hard_links=no
7204  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7206$as_echo "$hard_links" >&6; }
7207  if test "$hard_links" = no; then
7208    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7209$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7210    need_locks=warn
7211  fi
7212else
7213  need_locks=no
7214fi
7215
7216
7217
7218
7219
7220
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7222$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7223
7224  runpath_var=
7225  allow_undefined_flag=
7226  always_export_symbols=no
7227  archive_cmds=
7228  archive_expsym_cmds=
7229  compiler_needs_object=no
7230  enable_shared_with_static_runtimes=no
7231  export_dynamic_flag_spec=
7232  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7233  hardcode_automatic=no
7234  hardcode_direct=no
7235  hardcode_direct_absolute=no
7236  hardcode_libdir_flag_spec=
7237  hardcode_libdir_flag_spec_ld=
7238  hardcode_libdir_separator=
7239  hardcode_minus_L=no
7240  hardcode_shlibpath_var=unsupported
7241  inherit_rpath=no
7242  link_all_deplibs=unknown
7243  module_cmds=
7244  module_expsym_cmds=
7245  old_archive_from_new_cmds=
7246  old_archive_from_expsyms_cmds=
7247  thread_safe_flag_spec=
7248  whole_archive_flag_spec=
7249  # include_expsyms should be a list of space-separated symbols to be *always*
7250  # included in the symbol list
7251  include_expsyms=
7252  # exclude_expsyms can be an extended regexp of symbols to exclude
7253  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7254  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7255  # as well as any symbol that contains `d'.
7256  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7257  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7258  # platforms (ab)use it in PIC code, but their linkers get confused if
7259  # the symbol is explicitly referenced.  Since portable code cannot
7260  # rely on this symbol name, it's probably fine to never include it in
7261  # preloaded symbol tables.
7262  # Exclude shared library initialization/finalization symbols.
7263  extract_expsyms_cmds=
7264
7265  case $host_os in
7266  cygwin* | mingw* | pw32* | cegcc*)
7267    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7268    # When not using gcc, we currently assume that we are using
7269    # Microsoft Visual C++.
7270    if test "$GCC" != yes; then
7271      with_gnu_ld=no
7272    fi
7273    ;;
7274  interix*)
7275    # we just hope/assume this is gcc and not c89 (= MSVC++)
7276    with_gnu_ld=yes
7277    ;;
7278  openbsd*)
7279    with_gnu_ld=no
7280    ;;
7281  esac
7282
7283  ld_shlibs=yes
7284  if test "$with_gnu_ld" = yes; then
7285    # If archive_cmds runs LD, not CC, wlarc should be empty
7286    wlarc='${wl}'
7287
7288    # Set some defaults for GNU ld with shared library support. These
7289    # are reset later if shared libraries are not supported. Putting them
7290    # here allows them to be overridden if necessary.
7291    runpath_var=LD_RUN_PATH
7292    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7293    export_dynamic_flag_spec='${wl}--export-dynamic'
7294    # ancient GNU ld didn't support --whole-archive et. al.
7295    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7296      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7297    else
7298      whole_archive_flag_spec=
7299    fi
7300    supports_anon_versioning=no
7301    case `$LD -v 2>&1` in
7302      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7303      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7304      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7305      *\ 2.11.*) ;; # other 2.11 versions
7306      *) supports_anon_versioning=yes ;;
7307    esac
7308
7309    # See if GNU ld supports shared libraries.
7310    case $host_os in
7311    aix[3-9]*)
7312      # On AIX/PPC, the GNU linker is very broken
7313      if test "$host_cpu" != ia64; then
7314	ld_shlibs=no
7315	cat <<_LT_EOF 1>&2
7316
7317*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7318*** to be unable to reliably create shared libraries on AIX.
7319*** Therefore, libtool is disabling shared libraries support.  If you
7320*** really care for shared libraries, you may want to modify your PATH
7321*** so that a non-GNU linker is found, and then restart.
7322
7323_LT_EOF
7324      fi
7325      ;;
7326
7327    amigaos*)
7328      case $host_cpu in
7329      powerpc)
7330            # see comment about AmigaOS4 .so support
7331            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7332            archive_expsym_cmds=''
7333        ;;
7334      m68k)
7335            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)'
7336            hardcode_libdir_flag_spec='-L$libdir'
7337            hardcode_minus_L=yes
7338        ;;
7339      esac
7340      ;;
7341
7342    beos*)
7343      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7344	allow_undefined_flag=unsupported
7345	# Joseph Beckenbach <[email protected]> says some releases of gcc
7346	# support --undefined.  This deserves some investigation.  FIXME
7347	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7348      else
7349	ld_shlibs=no
7350      fi
7351      ;;
7352
7353    cygwin* | mingw* | pw32* | cegcc*)
7354      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7355      # as there is no search path for DLLs.
7356      hardcode_libdir_flag_spec='-L$libdir'
7357      allow_undefined_flag=unsupported
7358      always_export_symbols=no
7359      enable_shared_with_static_runtimes=yes
7360      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7361
7362      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7363        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7364	# If the export-symbols file already is a .def file (1st line
7365	# is EXPORTS), use it as is; otherwise, prepend...
7366	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7367	  cp $export_symbols $output_objdir/$soname.def;
7368	else
7369	  echo EXPORTS > $output_objdir/$soname.def;
7370	  cat $export_symbols >> $output_objdir/$soname.def;
7371	fi~
7372	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7373      else
7374	ld_shlibs=no
7375      fi
7376      ;;
7377
7378    interix[3-9]*)
7379      hardcode_direct=no
7380      hardcode_shlibpath_var=no
7381      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7382      export_dynamic_flag_spec='${wl}-E'
7383      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7384      # Instead, shared libraries are loaded at an image base (0x10000000 by
7385      # default) and relocated if they conflict, which is a slow very memory
7386      # consuming and fragmenting process.  To avoid this, we pick a random,
7387      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7388      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7389      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7390      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'
7391      ;;
7392
7393    gnu* | linux* | tpf* | k*bsd*-gnu)
7394      tmp_diet=no
7395      if test "$host_os" = linux-dietlibc; then
7396	case $cc_basename in
7397	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7398	esac
7399      fi
7400      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7401	 && test "$tmp_diet" = no
7402      then
7403	tmp_addflag=
7404	tmp_sharedflag='-shared'
7405	case $cc_basename,$host_cpu in
7406        pgcc*)				# Portland Group C compiler
7407	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7408	  tmp_addflag=' $pic_flag'
7409	  ;;
7410	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7411	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7412	  tmp_addflag=' $pic_flag -Mnomain' ;;
7413	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7414	  tmp_addflag=' -i_dynamic' ;;
7415	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7416	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7417	ifc* | ifort*)			# Intel Fortran compiler
7418	  tmp_addflag=' -nofor_main' ;;
7419	lf95*)				# Lahey Fortran 8.1
7420	  whole_archive_flag_spec=
7421	  tmp_sharedflag='--shared' ;;
7422	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7423	  tmp_sharedflag='-qmkshrobj'
7424	  tmp_addflag= ;;
7425	esac
7426	case `$CC -V 2>&1 | sed 5q` in
7427	*Sun\ C*)			# Sun C 5.9
7428	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7429	  compiler_needs_object=yes
7430	  tmp_sharedflag='-G' ;;
7431	*Sun\ F*)			# Sun Fortran 8.3
7432	  tmp_sharedflag='-G' ;;
7433	esac
7434	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7435
7436        if test "x$supports_anon_versioning" = xyes; then
7437          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7438	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7439	    echo "local: *; };" >> $output_objdir/$libname.ver~
7440	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7441        fi
7442
7443	case $cc_basename in
7444	xlf*)
7445	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7446	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7447	  hardcode_libdir_flag_spec=
7448	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7449	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7450	  if test "x$supports_anon_versioning" = xyes; then
7451	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7452	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7453	      echo "local: *; };" >> $output_objdir/$libname.ver~
7454	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7455	  fi
7456	  ;;
7457	esac
7458      else
7459        ld_shlibs=no
7460      fi
7461      ;;
7462
7463    netbsd*)
7464      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7465	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7466	wlarc=
7467      else
7468	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7469	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7470      fi
7471      ;;
7472
7473    solaris*)
7474      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7475	ld_shlibs=no
7476	cat <<_LT_EOF 1>&2
7477
7478*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7479*** create shared libraries on Solaris systems.  Therefore, libtool
7480*** is disabling shared libraries support.  We urge you to upgrade GNU
7481*** binutils to release 2.9.1 or newer.  Another option is to modify
7482*** your PATH or compiler configuration so that the native linker is
7483*** used, and then restart.
7484
7485_LT_EOF
7486      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7487	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7489      else
7490	ld_shlibs=no
7491      fi
7492      ;;
7493
7494    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7495      case `$LD -v 2>&1` in
7496        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7497	ld_shlibs=no
7498	cat <<_LT_EOF 1>&2
7499
7500*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7501*** reliably create shared libraries on SCO systems.  Therefore, libtool
7502*** is disabling shared libraries support.  We urge you to upgrade GNU
7503*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7504*** your PATH or compiler configuration so that the native linker is
7505*** used, and then restart.
7506
7507_LT_EOF
7508	;;
7509	*)
7510	  # For security reasons, it is highly recommended that you always
7511	  # use absolute paths for naming shared libraries, and exclude the
7512	  # DT_RUNPATH tag from executables and libraries.  But doing so
7513	  # requires that you compile everything twice, which is a pain.
7514	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7515	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7516	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7518	  else
7519	    ld_shlibs=no
7520	  fi
7521	;;
7522      esac
7523      ;;
7524
7525    sunos4*)
7526      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7527      wlarc=
7528      hardcode_direct=yes
7529      hardcode_shlibpath_var=no
7530      ;;
7531
7532    *)
7533      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7534	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7535	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7536      else
7537	ld_shlibs=no
7538      fi
7539      ;;
7540    esac
7541
7542    if test "$ld_shlibs" = no; then
7543      runpath_var=
7544      hardcode_libdir_flag_spec=
7545      export_dynamic_flag_spec=
7546      whole_archive_flag_spec=
7547    fi
7548  else
7549    # PORTME fill in a description of your system's linker (not GNU ld)
7550    case $host_os in
7551    aix3*)
7552      allow_undefined_flag=unsupported
7553      always_export_symbols=yes
7554      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'
7555      # Note: this linker hardcodes the directories in LIBPATH if there
7556      # are no directories specified by -L.
7557      hardcode_minus_L=yes
7558      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7559	# Neither direct hardcoding nor static linking is supported with a
7560	# broken collect2.
7561	hardcode_direct=unsupported
7562      fi
7563      ;;
7564
7565    aix[4-9]*)
7566      if test "$host_cpu" = ia64; then
7567	# On IA64, the linker does run time linking by default, so we don't
7568	# have to do anything special.
7569	aix_use_runtimelinking=no
7570	exp_sym_flag='-Bexport'
7571	no_entry_flag=""
7572      else
7573	# If we're using GNU nm, then we don't want the "-C" option.
7574	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7575	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7576	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7577	else
7578	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7579	fi
7580	aix_use_runtimelinking=no
7581
7582	# Test if we are trying to use run time linking or normal
7583	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7584	# need to do runtime linking.
7585	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7586	  for ld_flag in $LDFLAGS; do
7587	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7588	    aix_use_runtimelinking=yes
7589	    break
7590	  fi
7591	  done
7592	  ;;
7593	esac
7594
7595	exp_sym_flag='-bexport'
7596	no_entry_flag='-bnoentry'
7597      fi
7598
7599      # When large executables or shared objects are built, AIX ld can
7600      # have problems creating the table of contents.  If linking a library
7601      # or program results in "error TOC overflow" add -mminimal-toc to
7602      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7603      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7604
7605      archive_cmds=''
7606      hardcode_direct=yes
7607      hardcode_direct_absolute=yes
7608      hardcode_libdir_separator=':'
7609      link_all_deplibs=yes
7610      file_list_spec='${wl}-f,'
7611
7612      if test "$GCC" = yes; then
7613	case $host_os in aix4.[012]|aix4.[012].*)
7614	# We only want to do this on AIX 4.2 and lower, the check
7615	# below for broken collect2 doesn't work under 4.3+
7616	  collect2name=`${CC} -print-prog-name=collect2`
7617	  if test -f "$collect2name" &&
7618	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7619	  then
7620	  # We have reworked collect2
7621	  :
7622	  else
7623	  # We have old collect2
7624	  hardcode_direct=unsupported
7625	  # It fails to find uninstalled libraries when the uninstalled
7626	  # path is not listed in the libpath.  Setting hardcode_minus_L
7627	  # to unsupported forces relinking
7628	  hardcode_minus_L=yes
7629	  hardcode_libdir_flag_spec='-L$libdir'
7630	  hardcode_libdir_separator=
7631	  fi
7632	  ;;
7633	esac
7634	shared_flag='-shared'
7635	if test "$aix_use_runtimelinking" = yes; then
7636	  shared_flag="$shared_flag "'${wl}-G'
7637	fi
7638      else
7639	# not using gcc
7640	if test "$host_cpu" = ia64; then
7641	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7642	# chokes on -Wl,-G. The following line is correct:
7643	  shared_flag='-G'
7644	else
7645	  if test "$aix_use_runtimelinking" = yes; then
7646	    shared_flag='${wl}-G'
7647	  else
7648	    shared_flag='${wl}-bM:SRE'
7649	  fi
7650	fi
7651      fi
7652
7653      export_dynamic_flag_spec='${wl}-bexpall'
7654      # It seems that -bexpall does not export symbols beginning with
7655      # underscore (_), so it is better to generate a list of symbols to export.
7656      always_export_symbols=yes
7657      if test "$aix_use_runtimelinking" = yes; then
7658	# Warning - without using the other runtime loading flags (-brtl),
7659	# -berok will link without error, but may produce a broken library.
7660	allow_undefined_flag='-berok'
7661        # Determine the default libpath from the value encoded in an
7662        # empty executable.
7663        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h.  */
7665
7666int
7667main ()
7668{
7669
7670  ;
7671  return 0;
7672}
7673_ACEOF
7674if ac_fn_c_try_link "$LINENO"; then :
7675
7676lt_aix_libpath_sed='
7677    /Import File Strings/,/^$/ {
7678	/^0/ {
7679	    s/^0  *\(.*\)$/\1/
7680	    p
7681	}
7682    }'
7683aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7684# Check for a 64-bit object if we didn't find anything.
7685if test -z "$aix_libpath"; then
7686  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7687fi
7688fi
7689rm -f core conftest.err conftest.$ac_objext \
7690    conftest$ac_exeext conftest.$ac_ext
7691if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7692
7693        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7694        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7695      else
7696	if test "$host_cpu" = ia64; then
7697	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7698	  allow_undefined_flag="-z nodefs"
7699	  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"
7700	else
7701	 # Determine the default libpath from the value encoded in an
7702	 # empty executable.
7703	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704/* end confdefs.h.  */
7705
7706int
7707main ()
7708{
7709
7710  ;
7711  return 0;
7712}
7713_ACEOF
7714if ac_fn_c_try_link "$LINENO"; then :
7715
7716lt_aix_libpath_sed='
7717    /Import File Strings/,/^$/ {
7718	/^0/ {
7719	    s/^0  *\(.*\)$/\1/
7720	    p
7721	}
7722    }'
7723aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7724# Check for a 64-bit object if we didn't find anything.
7725if test -z "$aix_libpath"; then
7726  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7727fi
7728fi
7729rm -f core conftest.err conftest.$ac_objext \
7730    conftest$ac_exeext conftest.$ac_ext
7731if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7732
7733	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7734	  # Warning - without using the other run time loading flags,
7735	  # -berok will link without error, but may produce a broken library.
7736	  no_undefined_flag=' ${wl}-bernotok'
7737	  allow_undefined_flag=' ${wl}-berok'
7738	  # Exported symbols can be pulled into shared objects from archives
7739	  whole_archive_flag_spec='$convenience'
7740	  archive_cmds_need_lc=yes
7741	  # This is similar to how AIX traditionally builds its shared libraries.
7742	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7743	fi
7744      fi
7745      ;;
7746
7747    amigaos*)
7748      case $host_cpu in
7749      powerpc)
7750            # see comment about AmigaOS4 .so support
7751            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7752            archive_expsym_cmds=''
7753        ;;
7754      m68k)
7755            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)'
7756            hardcode_libdir_flag_spec='-L$libdir'
7757            hardcode_minus_L=yes
7758        ;;
7759      esac
7760      ;;
7761
7762    bsdi[45]*)
7763      export_dynamic_flag_spec=-rdynamic
7764      ;;
7765
7766    cygwin* | mingw* | pw32* | cegcc*)
7767      # When not using gcc, we currently assume that we are using
7768      # Microsoft Visual C++.
7769      # hardcode_libdir_flag_spec is actually meaningless, as there is
7770      # no search path for DLLs.
7771      hardcode_libdir_flag_spec=' '
7772      allow_undefined_flag=unsupported
7773      # Tell ltmain to make .lib files, not .a files.
7774      libext=lib
7775      # Tell ltmain to make .dll files, not .so files.
7776      shrext_cmds=".dll"
7777      # FIXME: Setting linknames here is a bad hack.
7778      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7779      # The linker will automatically build a .lib file if we build a DLL.
7780      old_archive_from_new_cmds='true'
7781      # FIXME: Should let the user specify the lib program.
7782      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7783      fix_srcfile_path='`cygpath -w "$srcfile"`'
7784      enable_shared_with_static_runtimes=yes
7785      ;;
7786
7787    darwin* | rhapsody*)
7788
7789
7790  archive_cmds_need_lc=no
7791  hardcode_direct=no
7792  hardcode_automatic=yes
7793  hardcode_shlibpath_var=unsupported
7794  whole_archive_flag_spec=''
7795  link_all_deplibs=yes
7796  allow_undefined_flag="$_lt_dar_allow_undefined"
7797  case $cc_basename in
7798     ifort*) _lt_dar_can_shared=yes ;;
7799     *) _lt_dar_can_shared=$GCC ;;
7800  esac
7801  if test "$_lt_dar_can_shared" = "yes"; then
7802    output_verbose_link_cmd=echo
7803    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7804    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7805    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}"
7806    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}"
7807
7808  else
7809  ld_shlibs=no
7810  fi
7811
7812      ;;
7813
7814    dgux*)
7815      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816      hardcode_libdir_flag_spec='-L$libdir'
7817      hardcode_shlibpath_var=no
7818      ;;
7819
7820    freebsd1*)
7821      ld_shlibs=no
7822      ;;
7823
7824    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7825    # support.  Future versions do this automatically, but an explicit c++rt0.o
7826    # does not break anything, and helps significantly (at the cost of a little
7827    # extra space).
7828    freebsd2.2*)
7829      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7830      hardcode_libdir_flag_spec='-R$libdir'
7831      hardcode_direct=yes
7832      hardcode_shlibpath_var=no
7833      ;;
7834
7835    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7836    freebsd2*)
7837      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7838      hardcode_direct=yes
7839      hardcode_minus_L=yes
7840      hardcode_shlibpath_var=no
7841      ;;
7842
7843    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7844    freebsd* | dragonfly*)
7845      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7846      hardcode_libdir_flag_spec='-R$libdir'
7847      hardcode_direct=yes
7848      hardcode_shlibpath_var=no
7849      ;;
7850
7851    hpux9*)
7852      if test "$GCC" = yes; then
7853	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7854      else
7855	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7856      fi
7857      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7858      hardcode_libdir_separator=:
7859      hardcode_direct=yes
7860
7861      # hardcode_minus_L: Not really in the search PATH,
7862      # but as the default location of the library.
7863      hardcode_minus_L=yes
7864      export_dynamic_flag_spec='${wl}-E'
7865      ;;
7866
7867    hpux10*)
7868      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7869	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7870      else
7871	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7872      fi
7873      if test "$with_gnu_ld" = no; then
7874	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7875	hardcode_libdir_flag_spec_ld='+b $libdir'
7876	hardcode_libdir_separator=:
7877	hardcode_direct=yes
7878	hardcode_direct_absolute=yes
7879	export_dynamic_flag_spec='${wl}-E'
7880	# hardcode_minus_L: Not really in the search PATH,
7881	# but as the default location of the library.
7882	hardcode_minus_L=yes
7883      fi
7884      ;;
7885
7886    hpux11*)
7887      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7888	case $host_cpu in
7889	hppa*64*)
7890	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7891	  ;;
7892	ia64*)
7893	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7894	  ;;
7895	*)
7896	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7897	  ;;
7898	esac
7899      else
7900	case $host_cpu in
7901	hppa*64*)
7902	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7903	  ;;
7904	ia64*)
7905	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7906	  ;;
7907	*)
7908	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7909	  ;;
7910	esac
7911      fi
7912      if test "$with_gnu_ld" = no; then
7913	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7914	hardcode_libdir_separator=:
7915
7916	case $host_cpu in
7917	hppa*64*|ia64*)
7918	  hardcode_direct=no
7919	  hardcode_shlibpath_var=no
7920	  ;;
7921	*)
7922	  hardcode_direct=yes
7923	  hardcode_direct_absolute=yes
7924	  export_dynamic_flag_spec='${wl}-E'
7925
7926	  # hardcode_minus_L: Not really in the search PATH,
7927	  # but as the default location of the library.
7928	  hardcode_minus_L=yes
7929	  ;;
7930	esac
7931      fi
7932      ;;
7933
7934    irix5* | irix6* | nonstopux*)
7935      if test "$GCC" = yes; then
7936	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7937	# Try to use the -exported_symbol ld option, if it does not
7938	# work, assume that -exports_file does not work either and
7939	# implicitly export all symbols.
7940        save_LDFLAGS="$LDFLAGS"
7941        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7942        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943/* end confdefs.h.  */
7944int foo(void) {}
7945_ACEOF
7946if ac_fn_c_try_link "$LINENO"; then :
7947  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7948
7949fi
7950rm -f core conftest.err conftest.$ac_objext \
7951    conftest$ac_exeext conftest.$ac_ext
7952        LDFLAGS="$save_LDFLAGS"
7953      else
7954	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7955	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7956      fi
7957      archive_cmds_need_lc='no'
7958      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7959      hardcode_libdir_separator=:
7960      inherit_rpath=yes
7961      link_all_deplibs=yes
7962      ;;
7963
7964    netbsd*)
7965      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7966	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7967      else
7968	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7969      fi
7970      hardcode_libdir_flag_spec='-R$libdir'
7971      hardcode_direct=yes
7972      hardcode_shlibpath_var=no
7973      ;;
7974
7975    newsos6)
7976      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7977      hardcode_direct=yes
7978      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7979      hardcode_libdir_separator=:
7980      hardcode_shlibpath_var=no
7981      ;;
7982
7983    *nto* | *qnx*)
7984      ;;
7985
7986    openbsd*)
7987      if test -f /usr/libexec/ld.so; then
7988	hardcode_direct=yes
7989	hardcode_shlibpath_var=no
7990	hardcode_direct_absolute=yes
7991	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7992	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7993	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7994	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7995	  export_dynamic_flag_spec='${wl}-E'
7996	else
7997	  case $host_os in
7998	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7999	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8000	     hardcode_libdir_flag_spec='-R$libdir'
8001	     ;;
8002	   *)
8003	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8004	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8005	     ;;
8006	  esac
8007	fi
8008      else
8009	ld_shlibs=no
8010      fi
8011      ;;
8012
8013    os2*)
8014      hardcode_libdir_flag_spec='-L$libdir'
8015      hardcode_minus_L=yes
8016      allow_undefined_flag=unsupported
8017      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8018      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8019      ;;
8020
8021    osf3*)
8022      if test "$GCC" = yes; then
8023	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8024	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8025      else
8026	allow_undefined_flag=' -expect_unresolved \*'
8027	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8028      fi
8029      archive_cmds_need_lc='no'
8030      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8031      hardcode_libdir_separator=:
8032      ;;
8033
8034    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8035      if test "$GCC" = yes; then
8036	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8037	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8038	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8039      else
8040	allow_undefined_flag=' -expect_unresolved \*'
8041	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8042	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~
8043	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8044
8045	# Both c and cxx compiler support -rpath directly
8046	hardcode_libdir_flag_spec='-rpath $libdir'
8047      fi
8048      archive_cmds_need_lc='no'
8049      hardcode_libdir_separator=:
8050      ;;
8051
8052    solaris*)
8053      no_undefined_flag=' -z defs'
8054      if test "$GCC" = yes; then
8055	wlarc='${wl}'
8056	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8057	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8058	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8059      else
8060	case `$CC -V 2>&1` in
8061	*"Compilers 5.0"*)
8062	  wlarc=''
8063	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8064	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8065	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8066	  ;;
8067	*)
8068	  wlarc='${wl}'
8069	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8070	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8071	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8072	  ;;
8073	esac
8074      fi
8075      hardcode_libdir_flag_spec='-R$libdir'
8076      hardcode_shlibpath_var=no
8077      case $host_os in
8078      solaris2.[0-5] | solaris2.[0-5].*) ;;
8079      *)
8080	# The compiler driver will combine and reorder linker options,
8081	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8082	# but is careful enough not to reorder.
8083	# Supported since Solaris 2.6 (maybe 2.5.1?)
8084	if test "$GCC" = yes; then
8085	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8086	else
8087	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8088	fi
8089	;;
8090      esac
8091      link_all_deplibs=yes
8092      ;;
8093
8094    sunos4*)
8095      if test "x$host_vendor" = xsequent; then
8096	# Use $CC to link under sequent, because it throws in some extra .o
8097	# files that make .init and .fini sections work.
8098	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8099      else
8100	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8101      fi
8102      hardcode_libdir_flag_spec='-L$libdir'
8103      hardcode_direct=yes
8104      hardcode_minus_L=yes
8105      hardcode_shlibpath_var=no
8106      ;;
8107
8108    sysv4)
8109      case $host_vendor in
8110	sni)
8111	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8112	  hardcode_direct=yes # is this really true???
8113	;;
8114	siemens)
8115	  ## LD is ld it makes a PLAMLIB
8116	  ## CC just makes a GrossModule.
8117	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8118	  reload_cmds='$CC -r -o $output$reload_objs'
8119	  hardcode_direct=no
8120        ;;
8121	motorola)
8122	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8123	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8124	;;
8125      esac
8126      runpath_var='LD_RUN_PATH'
8127      hardcode_shlibpath_var=no
8128      ;;
8129
8130    sysv4.3*)
8131      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8132      hardcode_shlibpath_var=no
8133      export_dynamic_flag_spec='-Bexport'
8134      ;;
8135
8136    sysv4*MP*)
8137      if test -d /usr/nec; then
8138	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8139	hardcode_shlibpath_var=no
8140	runpath_var=LD_RUN_PATH
8141	hardcode_runpath_var=yes
8142	ld_shlibs=yes
8143      fi
8144      ;;
8145
8146    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8147      no_undefined_flag='${wl}-z,text'
8148      archive_cmds_need_lc=no
8149      hardcode_shlibpath_var=no
8150      runpath_var='LD_RUN_PATH'
8151
8152      if test "$GCC" = yes; then
8153	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8154	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8155      else
8156	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8157	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8158      fi
8159      ;;
8160
8161    sysv5* | sco3.2v5* | sco5v6*)
8162      # Note: We can NOT use -z defs as we might desire, because we do not
8163      # link with -lc, and that would cause any symbols used from libc to
8164      # always be unresolved, which means just about no library would
8165      # ever link correctly.  If we're not using GNU ld we use -z text
8166      # though, which does catch some bad symbols but isn't as heavy-handed
8167      # as -z defs.
8168      no_undefined_flag='${wl}-z,text'
8169      allow_undefined_flag='${wl}-z,nodefs'
8170      archive_cmds_need_lc=no
8171      hardcode_shlibpath_var=no
8172      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8173      hardcode_libdir_separator=':'
8174      link_all_deplibs=yes
8175      export_dynamic_flag_spec='${wl}-Bexport'
8176      runpath_var='LD_RUN_PATH'
8177
8178      if test "$GCC" = yes; then
8179	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8180	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8181      else
8182	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8183	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8184      fi
8185      ;;
8186
8187    uts4*)
8188      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8189      hardcode_libdir_flag_spec='-L$libdir'
8190      hardcode_shlibpath_var=no
8191      ;;
8192
8193    *)
8194      ld_shlibs=no
8195      ;;
8196    esac
8197
8198    if test x$host_vendor = xsni; then
8199      case $host in
8200      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8201	export_dynamic_flag_spec='${wl}-Blargedynsym'
8202	;;
8203      esac
8204    fi
8205  fi
8206
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8208$as_echo "$ld_shlibs" >&6; }
8209test "$ld_shlibs" = no && can_build_shared=no
8210
8211with_gnu_ld=$with_gnu_ld
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227#
8228# Do we need to explicitly link libc?
8229#
8230case "x$archive_cmds_need_lc" in
8231x|xyes)
8232  # Assume -lc should be added
8233  archive_cmds_need_lc=yes
8234
8235  if test "$enable_shared" = yes && test "$GCC" = yes; then
8236    case $archive_cmds in
8237    *'~'*)
8238      # FIXME: we may have to deal with multi-command sequences.
8239      ;;
8240    '$CC '*)
8241      # Test whether the compiler implicitly links with -lc since on some
8242      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8243      # to ld, don't add -lc before -lgcc.
8244      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8245$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8246      $RM conftest*
8247      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248
8249      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8250  (eval $ac_compile) 2>&5
8251  ac_status=$?
8252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8253  test $ac_status = 0; } 2>conftest.err; then
8254        soname=conftest
8255        lib=conftest
8256        libobjs=conftest.$ac_objext
8257        deplibs=
8258        wl=$lt_prog_compiler_wl
8259	pic_flag=$lt_prog_compiler_pic
8260        compiler_flags=-v
8261        linker_flags=-v
8262        verstring=
8263        output_objdir=.
8264        libname=conftest
8265        lt_save_allow_undefined_flag=$allow_undefined_flag
8266        allow_undefined_flag=
8267        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8268  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8269  ac_status=$?
8270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8271  test $ac_status = 0; }
8272        then
8273	  archive_cmds_need_lc=no
8274        else
8275	  archive_cmds_need_lc=yes
8276        fi
8277        allow_undefined_flag=$lt_save_allow_undefined_flag
8278      else
8279        cat conftest.err 1>&5
8280      fi
8281      $RM conftest*
8282      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8283$as_echo "$archive_cmds_need_lc" >&6; }
8284      ;;
8285    esac
8286  fi
8287  ;;
8288esac
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8447$as_echo_n "checking dynamic linker characteristics... " >&6; }
8448
8449if test "$GCC" = yes; then
8450  case $host_os in
8451    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8452    *) lt_awk_arg="/^libraries:/" ;;
8453  esac
8454  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8455  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8456    # if the path contains ";" then we assume it to be the separator
8457    # otherwise default to the standard path separator (i.e. ":") - it is
8458    # assumed that no part of a normal pathname contains ";" but that should
8459    # okay in the real world where ";" in dirpaths is itself problematic.
8460    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8461  else
8462    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8463  fi
8464  # Ok, now we have the path, separated by spaces, we can step through it
8465  # and add multilib dir if necessary.
8466  lt_tmp_lt_search_path_spec=
8467  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8468  for lt_sys_path in $lt_search_path_spec; do
8469    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8470      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8471    else
8472      test -d "$lt_sys_path" && \
8473	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8474    fi
8475  done
8476  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8477BEGIN {RS=" "; FS="/|\n";} {
8478  lt_foo="";
8479  lt_count=0;
8480  for (lt_i = NF; lt_i > 0; lt_i--) {
8481    if ($lt_i != "" && $lt_i != ".") {
8482      if ($lt_i == "..") {
8483        lt_count++;
8484      } else {
8485        if (lt_count == 0) {
8486          lt_foo="/" $lt_i lt_foo;
8487        } else {
8488          lt_count--;
8489        }
8490      }
8491    }
8492  }
8493  if (lt_foo != "") { lt_freq[lt_foo]++; }
8494  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8495}'`
8496  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8497else
8498  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8499fi
8500library_names_spec=
8501libname_spec='lib$name'
8502soname_spec=
8503shrext_cmds=".so"
8504postinstall_cmds=
8505postuninstall_cmds=
8506finish_cmds=
8507finish_eval=
8508shlibpath_var=
8509shlibpath_overrides_runpath=unknown
8510version_type=none
8511dynamic_linker="$host_os ld.so"
8512sys_lib_dlsearch_path_spec="/lib /usr/lib"
8513need_lib_prefix=unknown
8514hardcode_into_libs=no
8515
8516# when you set need_version to no, make sure it does not cause -set_version
8517# flags to be left without arguments
8518need_version=unknown
8519
8520case $host_os in
8521aix3*)
8522  version_type=linux
8523  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8524  shlibpath_var=LIBPATH
8525
8526  # AIX 3 has no versioning support, so we append a major version to the name.
8527  soname_spec='${libname}${release}${shared_ext}$major'
8528  ;;
8529
8530aix[4-9]*)
8531  version_type=linux
8532  need_lib_prefix=no
8533  need_version=no
8534  hardcode_into_libs=yes
8535  if test "$host_cpu" = ia64; then
8536    # AIX 5 supports IA64
8537    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8538    shlibpath_var=LD_LIBRARY_PATH
8539  else
8540    # With GCC up to 2.95.x, collect2 would create an import file
8541    # for dependence libraries.  The import file would start with
8542    # the line `#! .'.  This would cause the generated library to
8543    # depend on `.', always an invalid library.  This was fixed in
8544    # development snapshots of GCC prior to 3.0.
8545    case $host_os in
8546      aix4 | aix4.[01] | aix4.[01].*)
8547      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8548	   echo ' yes '
8549	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8550	:
8551      else
8552	can_build_shared=no
8553      fi
8554      ;;
8555    esac
8556    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8557    # soname into executable. Probably we can add versioning support to
8558    # collect2, so additional links can be useful in future.
8559    if test "$aix_use_runtimelinking" = yes; then
8560      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8561      # instead of lib<name>.a to let people know that these are not
8562      # typical AIX shared libraries.
8563      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8564    else
8565      # We preserve .a as extension for shared libraries through AIX4.2
8566      # and later when we are not doing run time linking.
8567      library_names_spec='${libname}${release}.a $libname.a'
8568      soname_spec='${libname}${release}${shared_ext}$major'
8569    fi
8570    shlibpath_var=LIBPATH
8571  fi
8572  ;;
8573
8574amigaos*)
8575  case $host_cpu in
8576  powerpc)
8577    # Since July 2007 AmigaOS4 officially supports .so libraries.
8578    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8579    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8580    ;;
8581  m68k)
8582    library_names_spec='$libname.ixlibrary $libname.a'
8583    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8584    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8585    ;;
8586  esac
8587  ;;
8588
8589beos*)
8590  library_names_spec='${libname}${shared_ext}'
8591  dynamic_linker="$host_os ld.so"
8592  shlibpath_var=LIBRARY_PATH
8593  ;;
8594
8595bsdi[45]*)
8596  version_type=linux
8597  need_version=no
8598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8599  soname_spec='${libname}${release}${shared_ext}$major'
8600  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8601  shlibpath_var=LD_LIBRARY_PATH
8602  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8603  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8604  # the default ld.so.conf also contains /usr/contrib/lib and
8605  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8606  # libtool to hard-code these into programs
8607  ;;
8608
8609cygwin* | mingw* | pw32* | cegcc*)
8610  version_type=windows
8611  shrext_cmds=".dll"
8612  need_version=no
8613  need_lib_prefix=no
8614
8615  case $GCC,$host_os in
8616  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8617    library_names_spec='$libname.dll.a'
8618    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8619    postinstall_cmds='base_file=`basename \${file}`~
8620      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8621      dldir=$destdir/`dirname \$dlpath`~
8622      test -d \$dldir || mkdir -p \$dldir~
8623      $install_prog $dir/$dlname \$dldir/$dlname~
8624      chmod a+x \$dldir/$dlname~
8625      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8626        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8627      fi'
8628    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8629      dlpath=$dir/\$dldll~
8630       $RM \$dlpath'
8631    shlibpath_overrides_runpath=yes
8632
8633    case $host_os in
8634    cygwin*)
8635      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8636      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8637      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8638      ;;
8639    mingw* | cegcc*)
8640      # MinGW DLLs use traditional 'lib' prefix
8641      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8642      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8643      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8644        # It is most probably a Windows format PATH printed by
8645        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8646        # path with ; separators, and with drive letters. We can handle the
8647        # drive letters (cygwin fileutils understands them), so leave them,
8648        # especially as we might pass files found there to a mingw objdump,
8649        # which wouldn't understand a cygwinified path. Ahh.
8650        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8651      else
8652        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8653      fi
8654      ;;
8655    pw32*)
8656      # pw32 DLLs use 'pw' prefix rather than 'lib'
8657      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8658      ;;
8659    esac
8660    ;;
8661
8662  *)
8663    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8664    ;;
8665  esac
8666  dynamic_linker='Win32 ld.exe'
8667  # FIXME: first we should search . and the directory the executable is in
8668  shlibpath_var=PATH
8669  ;;
8670
8671darwin* | rhapsody*)
8672  dynamic_linker="$host_os dyld"
8673  version_type=darwin
8674  need_lib_prefix=no
8675  need_version=no
8676  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8677  soname_spec='${libname}${release}${major}$shared_ext'
8678  shlibpath_overrides_runpath=yes
8679  shlibpath_var=DYLD_LIBRARY_PATH
8680  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8681
8682  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8683  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8684  ;;
8685
8686dgux*)
8687  version_type=linux
8688  need_lib_prefix=no
8689  need_version=no
8690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8691  soname_spec='${libname}${release}${shared_ext}$major'
8692  shlibpath_var=LD_LIBRARY_PATH
8693  ;;
8694
8695freebsd1*)
8696  dynamic_linker=no
8697  ;;
8698
8699freebsd* | dragonfly*)
8700  # DragonFly does not have aout.  When/if they implement a new
8701  # versioning mechanism, adjust this.
8702  if test -x /usr/bin/objformat; then
8703    objformat=`/usr/bin/objformat`
8704  else
8705    case $host_os in
8706    freebsd[123]*) objformat=aout ;;
8707    *) objformat=elf ;;
8708    esac
8709  fi
8710  # Handle Gentoo/FreeBSD as it was Linux
8711  case $host_vendor in
8712    gentoo)
8713      version_type=linux ;;
8714    *)
8715      version_type=freebsd-$objformat ;;
8716  esac
8717
8718  case $version_type in
8719    freebsd-elf*)
8720      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8721      need_version=no
8722      need_lib_prefix=no
8723      ;;
8724    freebsd-*)
8725      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8726      need_version=yes
8727      ;;
8728    linux)
8729      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8730      soname_spec='${libname}${release}${shared_ext}$major'
8731      need_lib_prefix=no
8732      need_version=no
8733      ;;
8734  esac
8735  shlibpath_var=LD_LIBRARY_PATH
8736  case $host_os in
8737  freebsd2*)
8738    shlibpath_overrides_runpath=yes
8739    ;;
8740  freebsd3.[01]* | freebsdelf3.[01]*)
8741    shlibpath_overrides_runpath=yes
8742    hardcode_into_libs=yes
8743    ;;
8744  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8745  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8746    shlibpath_overrides_runpath=no
8747    hardcode_into_libs=yes
8748    ;;
8749  *) # from 4.6 on, and DragonFly
8750    shlibpath_overrides_runpath=yes
8751    hardcode_into_libs=yes
8752    ;;
8753  esac
8754  ;;
8755
8756gnu*)
8757  version_type=linux
8758  need_lib_prefix=no
8759  need_version=no
8760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8761  soname_spec='${libname}${release}${shared_ext}$major'
8762  shlibpath_var=LD_LIBRARY_PATH
8763  hardcode_into_libs=yes
8764  ;;
8765
8766hpux9* | hpux10* | hpux11*)
8767  # Give a soname corresponding to the major version so that dld.sl refuses to
8768  # link against other versions.
8769  version_type=sunos
8770  need_lib_prefix=no
8771  need_version=no
8772  case $host_cpu in
8773  ia64*)
8774    shrext_cmds='.so'
8775    hardcode_into_libs=yes
8776    dynamic_linker="$host_os dld.so"
8777    shlibpath_var=LD_LIBRARY_PATH
8778    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8779    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780    soname_spec='${libname}${release}${shared_ext}$major'
8781    if test "X$HPUX_IA64_MODE" = X32; then
8782      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8783    else
8784      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8785    fi
8786    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8787    ;;
8788  hppa*64*)
8789    shrext_cmds='.sl'
8790    hardcode_into_libs=yes
8791    dynamic_linker="$host_os dld.sl"
8792    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8793    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8794    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8795    soname_spec='${libname}${release}${shared_ext}$major'
8796    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8797    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8798    ;;
8799  *)
8800    shrext_cmds='.sl'
8801    dynamic_linker="$host_os dld.sl"
8802    shlibpath_var=SHLIB_PATH
8803    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8804    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8805    soname_spec='${libname}${release}${shared_ext}$major'
8806    ;;
8807  esac
8808  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8809  postinstall_cmds='chmod 555 $lib'
8810  ;;
8811
8812interix[3-9]*)
8813  version_type=linux
8814  need_lib_prefix=no
8815  need_version=no
8816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8817  soname_spec='${libname}${release}${shared_ext}$major'
8818  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8819  shlibpath_var=LD_LIBRARY_PATH
8820  shlibpath_overrides_runpath=no
8821  hardcode_into_libs=yes
8822  ;;
8823
8824irix5* | irix6* | nonstopux*)
8825  case $host_os in
8826    nonstopux*) version_type=nonstopux ;;
8827    *)
8828	if test "$lt_cv_prog_gnu_ld" = yes; then
8829		version_type=linux
8830	else
8831		version_type=irix
8832	fi ;;
8833  esac
8834  need_lib_prefix=no
8835  need_version=no
8836  soname_spec='${libname}${release}${shared_ext}$major'
8837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8838  case $host_os in
8839  irix5* | nonstopux*)
8840    libsuff= shlibsuff=
8841    ;;
8842  *)
8843    case $LD in # libtool.m4 will add one of these switches to LD
8844    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8845      libsuff= shlibsuff= libmagic=32-bit;;
8846    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8847      libsuff=32 shlibsuff=N32 libmagic=N32;;
8848    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8849      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8850    *) libsuff= shlibsuff= libmagic=never-match;;
8851    esac
8852    ;;
8853  esac
8854  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8855  shlibpath_overrides_runpath=no
8856  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8857  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8858  hardcode_into_libs=yes
8859  ;;
8860
8861# No shared lib support for Linux oldld, aout, or coff.
8862linux*oldld* | linux*aout* | linux*coff*)
8863  dynamic_linker=no
8864  ;;
8865
8866# This must be Linux ELF.
8867linux* | k*bsd*-gnu)
8868  version_type=linux
8869  need_lib_prefix=no
8870  need_version=no
8871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872  soname_spec='${libname}${release}${shared_ext}$major'
8873  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8874  shlibpath_var=LD_LIBRARY_PATH
8875  shlibpath_overrides_runpath=no
8876  # Some binutils ld are patched to set DT_RUNPATH
8877  save_LDFLAGS=$LDFLAGS
8878  save_libdir=$libdir
8879  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8880       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882/* end confdefs.h.  */
8883
8884int
8885main ()
8886{
8887
8888  ;
8889  return 0;
8890}
8891_ACEOF
8892if ac_fn_c_try_link "$LINENO"; then :
8893  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8894  shlibpath_overrides_runpath=yes
8895fi
8896fi
8897rm -f core conftest.err conftest.$ac_objext \
8898    conftest$ac_exeext conftest.$ac_ext
8899  LDFLAGS=$save_LDFLAGS
8900  libdir=$save_libdir
8901
8902  # This implies no fast_install, which is unacceptable.
8903  # Some rework will be needed to allow for fast_install
8904  # before this can be enabled.
8905  hardcode_into_libs=yes
8906
8907  # Append ld.so.conf contents to the search path
8908  if test -f /etc/ld.so.conf; then
8909    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;/^$/d' | tr '\n' ' '`
8910    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8911  fi
8912
8913  # We used to test for /lib/ld.so.1 and disable shared libraries on
8914  # powerpc, because MkLinux only supported shared libraries with the
8915  # GNU dynamic linker.  Since this was broken with cross compilers,
8916  # most powerpc-linux boxes support dynamic linking these days and
8917  # people can always --disable-shared, the test was removed, and we
8918  # assume the GNU/Linux dynamic linker is in use.
8919  dynamic_linker='GNU/Linux ld.so'
8920  ;;
8921
8922netbsd*)
8923  version_type=sunos
8924  need_lib_prefix=no
8925  need_version=no
8926  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8927    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8928    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8929    dynamic_linker='NetBSD (a.out) ld.so'
8930  else
8931    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8932    soname_spec='${libname}${release}${shared_ext}$major'
8933    dynamic_linker='NetBSD ld.elf_so'
8934  fi
8935  shlibpath_var=LD_LIBRARY_PATH
8936  shlibpath_overrides_runpath=yes
8937  hardcode_into_libs=yes
8938  ;;
8939
8940newsos6)
8941  version_type=linux
8942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8943  shlibpath_var=LD_LIBRARY_PATH
8944  shlibpath_overrides_runpath=yes
8945  ;;
8946
8947*nto* | *qnx*)
8948  version_type=qnx
8949  need_lib_prefix=no
8950  need_version=no
8951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952  soname_spec='${libname}${release}${shared_ext}$major'
8953  shlibpath_var=LD_LIBRARY_PATH
8954  shlibpath_overrides_runpath=no
8955  hardcode_into_libs=yes
8956  dynamic_linker='ldqnx.so'
8957  ;;
8958
8959openbsd*)
8960  version_type=sunos
8961  sys_lib_dlsearch_path_spec="/usr/lib"
8962  need_lib_prefix=no
8963  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8964  case $host_os in
8965    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
8966    *)				need_version=no  ;;
8967  esac
8968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8969  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8970  shlibpath_var=LD_LIBRARY_PATH
8971  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8972    case $host_os in
8973      openbsd2.[89] | openbsd2.[89].*)
8974	shlibpath_overrides_runpath=no
8975	;;
8976      *)
8977	shlibpath_overrides_runpath=yes
8978	;;
8979      esac
8980  else
8981    shlibpath_overrides_runpath=yes
8982  fi
8983  ;;
8984
8985os2*)
8986  libname_spec='$name'
8987  shrext_cmds=".dll"
8988  need_lib_prefix=no
8989  library_names_spec='$libname${shared_ext} $libname.a'
8990  dynamic_linker='OS/2 ld.exe'
8991  shlibpath_var=LIBPATH
8992  ;;
8993
8994osf3* | osf4* | osf5*)
8995  version_type=osf
8996  need_lib_prefix=no
8997  need_version=no
8998  soname_spec='${libname}${release}${shared_ext}$major'
8999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000  shlibpath_var=LD_LIBRARY_PATH
9001  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9002  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9003  ;;
9004
9005rdos*)
9006  dynamic_linker=no
9007  ;;
9008
9009solaris*)
9010  version_type=linux
9011  need_lib_prefix=no
9012  need_version=no
9013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014  soname_spec='${libname}${release}${shared_ext}$major'
9015  shlibpath_var=LD_LIBRARY_PATH
9016  shlibpath_overrides_runpath=yes
9017  hardcode_into_libs=yes
9018  # ldd complains unless libraries are executable
9019  postinstall_cmds='chmod +x $lib'
9020  ;;
9021
9022sunos4*)
9023  version_type=sunos
9024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9025  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9026  shlibpath_var=LD_LIBRARY_PATH
9027  shlibpath_overrides_runpath=yes
9028  if test "$with_gnu_ld" = yes; then
9029    need_lib_prefix=no
9030  fi
9031  need_version=yes
9032  ;;
9033
9034sysv4 | sysv4.3*)
9035  version_type=linux
9036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037  soname_spec='${libname}${release}${shared_ext}$major'
9038  shlibpath_var=LD_LIBRARY_PATH
9039  case $host_vendor in
9040    sni)
9041      shlibpath_overrides_runpath=no
9042      need_lib_prefix=no
9043      runpath_var=LD_RUN_PATH
9044      ;;
9045    siemens)
9046      need_lib_prefix=no
9047      ;;
9048    motorola)
9049      need_lib_prefix=no
9050      need_version=no
9051      shlibpath_overrides_runpath=no
9052      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9053      ;;
9054  esac
9055  ;;
9056
9057sysv4*MP*)
9058  if test -d /usr/nec ;then
9059    version_type=linux
9060    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9061    soname_spec='$libname${shared_ext}.$major'
9062    shlibpath_var=LD_LIBRARY_PATH
9063  fi
9064  ;;
9065
9066sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9067  version_type=freebsd-elf
9068  need_lib_prefix=no
9069  need_version=no
9070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9071  soname_spec='${libname}${release}${shared_ext}$major'
9072  shlibpath_var=LD_LIBRARY_PATH
9073  shlibpath_overrides_runpath=yes
9074  hardcode_into_libs=yes
9075  if test "$with_gnu_ld" = yes; then
9076    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9077  else
9078    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9079    case $host_os in
9080      sco3.2v5*)
9081        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9082	;;
9083    esac
9084  fi
9085  sys_lib_dlsearch_path_spec='/usr/lib'
9086  ;;
9087
9088tpf*)
9089  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9090  version_type=linux
9091  need_lib_prefix=no
9092  need_version=no
9093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094  shlibpath_var=LD_LIBRARY_PATH
9095  shlibpath_overrides_runpath=no
9096  hardcode_into_libs=yes
9097  ;;
9098
9099uts4*)
9100  version_type=linux
9101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102  soname_spec='${libname}${release}${shared_ext}$major'
9103  shlibpath_var=LD_LIBRARY_PATH
9104  ;;
9105
9106*)
9107  dynamic_linker=no
9108  ;;
9109esac
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9111$as_echo "$dynamic_linker" >&6; }
9112test "$dynamic_linker" = no && can_build_shared=no
9113
9114variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9115if test "$GCC" = yes; then
9116  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9117fi
9118
9119if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9120  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9121fi
9122if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9123  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9124fi
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9213$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9214hardcode_action=
9215if test -n "$hardcode_libdir_flag_spec" ||
9216   test -n "$runpath_var" ||
9217   test "X$hardcode_automatic" = "Xyes" ; then
9218
9219  # We can hardcode non-existent directories.
9220  if test "$hardcode_direct" != no &&
9221     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9222     # have to relink, otherwise we might link with an installed library
9223     # when we should be linking with a yet-to-be-installed one
9224     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9225     test "$hardcode_minus_L" != no; then
9226    # Linking always hardcodes the temporary library directory.
9227    hardcode_action=relink
9228  else
9229    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9230    hardcode_action=immediate
9231  fi
9232else
9233  # We cannot hardcode anything, or else we can only hardcode existing
9234  # directories.
9235  hardcode_action=unsupported
9236fi
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9238$as_echo "$hardcode_action" >&6; }
9239
9240if test "$hardcode_action" = relink ||
9241   test "$inherit_rpath" = yes; then
9242  # Fast installation is not supported
9243  enable_fast_install=no
9244elif test "$shlibpath_overrides_runpath" = yes ||
9245     test "$enable_shared" = no; then
9246  # Fast installation is not necessary
9247  enable_fast_install=needless
9248fi
9249
9250
9251
9252
9253
9254
9255  if test "x$enable_dlopen" != xyes; then
9256  enable_dlopen=unknown
9257  enable_dlopen_self=unknown
9258  enable_dlopen_self_static=unknown
9259else
9260  lt_cv_dlopen=no
9261  lt_cv_dlopen_libs=
9262
9263  case $host_os in
9264  beos*)
9265    lt_cv_dlopen="load_add_on"
9266    lt_cv_dlopen_libs=
9267    lt_cv_dlopen_self=yes
9268    ;;
9269
9270  mingw* | pw32* | cegcc*)
9271    lt_cv_dlopen="LoadLibrary"
9272    lt_cv_dlopen_libs=
9273    ;;
9274
9275  cygwin*)
9276    lt_cv_dlopen="dlopen"
9277    lt_cv_dlopen_libs=
9278    ;;
9279
9280  darwin*)
9281  # if libdl is installed we need to link against it
9282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9283$as_echo_n "checking for dlopen in -ldl... " >&6; }
9284if ${ac_cv_lib_dl_dlopen+:} false; then :
9285  $as_echo_n "(cached) " >&6
9286else
9287  ac_check_lib_save_LIBS=$LIBS
9288LIBS="-ldl  $LIBS"
9289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290/* end confdefs.h.  */
9291
9292/* Override any GCC internal prototype to avoid an error.
9293   Use char because int might match the return type of a GCC
9294   builtin and then its argument prototype would still apply.  */
9295#ifdef __cplusplus
9296extern "C"
9297#endif
9298char dlopen ();
9299int
9300main ()
9301{
9302return dlopen ();
9303  ;
9304  return 0;
9305}
9306_ACEOF
9307if ac_fn_c_try_link "$LINENO"; then :
9308  ac_cv_lib_dl_dlopen=yes
9309else
9310  ac_cv_lib_dl_dlopen=no
9311fi
9312rm -f core conftest.err conftest.$ac_objext \
9313    conftest$ac_exeext conftest.$ac_ext
9314LIBS=$ac_check_lib_save_LIBS
9315fi
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9317$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9318if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9319  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9320else
9321
9322    lt_cv_dlopen="dyld"
9323    lt_cv_dlopen_libs=
9324    lt_cv_dlopen_self=yes
9325
9326fi
9327
9328    ;;
9329
9330  *)
9331    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9332if test "x$ac_cv_func_shl_load" = xyes; then :
9333  lt_cv_dlopen="shl_load"
9334else
9335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9336$as_echo_n "checking for shl_load in -ldld... " >&6; }
9337if ${ac_cv_lib_dld_shl_load+:} false; then :
9338  $as_echo_n "(cached) " >&6
9339else
9340  ac_check_lib_save_LIBS=$LIBS
9341LIBS="-ldld  $LIBS"
9342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343/* end confdefs.h.  */
9344
9345/* Override any GCC internal prototype to avoid an error.
9346   Use char because int might match the return type of a GCC
9347   builtin and then its argument prototype would still apply.  */
9348#ifdef __cplusplus
9349extern "C"
9350#endif
9351char shl_load ();
9352int
9353main ()
9354{
9355return shl_load ();
9356  ;
9357  return 0;
9358}
9359_ACEOF
9360if ac_fn_c_try_link "$LINENO"; then :
9361  ac_cv_lib_dld_shl_load=yes
9362else
9363  ac_cv_lib_dld_shl_load=no
9364fi
9365rm -f core conftest.err conftest.$ac_objext \
9366    conftest$ac_exeext conftest.$ac_ext
9367LIBS=$ac_check_lib_save_LIBS
9368fi
9369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9370$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9371if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9372  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9373else
9374  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9375if test "x$ac_cv_func_dlopen" = xyes; then :
9376  lt_cv_dlopen="dlopen"
9377else
9378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9379$as_echo_n "checking for dlopen in -ldl... " >&6; }
9380if ${ac_cv_lib_dl_dlopen+:} false; then :
9381  $as_echo_n "(cached) " >&6
9382else
9383  ac_check_lib_save_LIBS=$LIBS
9384LIBS="-ldl  $LIBS"
9385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386/* end confdefs.h.  */
9387
9388/* Override any GCC internal prototype to avoid an error.
9389   Use char because int might match the return type of a GCC
9390   builtin and then its argument prototype would still apply.  */
9391#ifdef __cplusplus
9392extern "C"
9393#endif
9394char dlopen ();
9395int
9396main ()
9397{
9398return dlopen ();
9399  ;
9400  return 0;
9401}
9402_ACEOF
9403if ac_fn_c_try_link "$LINENO"; then :
9404  ac_cv_lib_dl_dlopen=yes
9405else
9406  ac_cv_lib_dl_dlopen=no
9407fi
9408rm -f core conftest.err conftest.$ac_objext \
9409    conftest$ac_exeext conftest.$ac_ext
9410LIBS=$ac_check_lib_save_LIBS
9411fi
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9413$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9414if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9415  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9416else
9417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9418$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9419if ${ac_cv_lib_svld_dlopen+:} false; then :
9420  $as_echo_n "(cached) " >&6
9421else
9422  ac_check_lib_save_LIBS=$LIBS
9423LIBS="-lsvld  $LIBS"
9424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425/* end confdefs.h.  */
9426
9427/* Override any GCC internal prototype to avoid an error.
9428   Use char because int might match the return type of a GCC
9429   builtin and then its argument prototype would still apply.  */
9430#ifdef __cplusplus
9431extern "C"
9432#endif
9433char dlopen ();
9434int
9435main ()
9436{
9437return dlopen ();
9438  ;
9439  return 0;
9440}
9441_ACEOF
9442if ac_fn_c_try_link "$LINENO"; then :
9443  ac_cv_lib_svld_dlopen=yes
9444else
9445  ac_cv_lib_svld_dlopen=no
9446fi
9447rm -f core conftest.err conftest.$ac_objext \
9448    conftest$ac_exeext conftest.$ac_ext
9449LIBS=$ac_check_lib_save_LIBS
9450fi
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9452$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9453if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9454  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9455else
9456  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9457$as_echo_n "checking for dld_link in -ldld... " >&6; }
9458if ${ac_cv_lib_dld_dld_link+:} false; then :
9459  $as_echo_n "(cached) " >&6
9460else
9461  ac_check_lib_save_LIBS=$LIBS
9462LIBS="-ldld  $LIBS"
9463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464/* end confdefs.h.  */
9465
9466/* Override any GCC internal prototype to avoid an error.
9467   Use char because int might match the return type of a GCC
9468   builtin and then its argument prototype would still apply.  */
9469#ifdef __cplusplus
9470extern "C"
9471#endif
9472char dld_link ();
9473int
9474main ()
9475{
9476return dld_link ();
9477  ;
9478  return 0;
9479}
9480_ACEOF
9481if ac_fn_c_try_link "$LINENO"; then :
9482  ac_cv_lib_dld_dld_link=yes
9483else
9484  ac_cv_lib_dld_dld_link=no
9485fi
9486rm -f core conftest.err conftest.$ac_objext \
9487    conftest$ac_exeext conftest.$ac_ext
9488LIBS=$ac_check_lib_save_LIBS
9489fi
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9491$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9492if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9493  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9494fi
9495
9496
9497fi
9498
9499
9500fi
9501
9502
9503fi
9504
9505
9506fi
9507
9508
9509fi
9510
9511    ;;
9512  esac
9513
9514  if test "x$lt_cv_dlopen" != xno; then
9515    enable_dlopen=yes
9516  else
9517    enable_dlopen=no
9518  fi
9519
9520  case $lt_cv_dlopen in
9521  dlopen)
9522    save_CPPFLAGS="$CPPFLAGS"
9523    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9524
9525    save_LDFLAGS="$LDFLAGS"
9526    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9527
9528    save_LIBS="$LIBS"
9529    LIBS="$lt_cv_dlopen_libs $LIBS"
9530
9531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9532$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9533if ${lt_cv_dlopen_self+:} false; then :
9534  $as_echo_n "(cached) " >&6
9535else
9536  	  if test "$cross_compiling" = yes; then :
9537  lt_cv_dlopen_self=cross
9538else
9539  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9540  lt_status=$lt_dlunknown
9541  cat > conftest.$ac_ext <<_LT_EOF
9542#line 9542 "configure"
9543#include "confdefs.h"
9544
9545#if HAVE_DLFCN_H
9546#include <dlfcn.h>
9547#endif
9548
9549#include <stdio.h>
9550
9551#ifdef RTLD_GLOBAL
9552#  define LT_DLGLOBAL		RTLD_GLOBAL
9553#else
9554#  ifdef DL_GLOBAL
9555#    define LT_DLGLOBAL		DL_GLOBAL
9556#  else
9557#    define LT_DLGLOBAL		0
9558#  endif
9559#endif
9560
9561/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9562   find out it does not work in some platform. */
9563#ifndef LT_DLLAZY_OR_NOW
9564#  ifdef RTLD_LAZY
9565#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9566#  else
9567#    ifdef DL_LAZY
9568#      define LT_DLLAZY_OR_NOW		DL_LAZY
9569#    else
9570#      ifdef RTLD_NOW
9571#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9572#      else
9573#        ifdef DL_NOW
9574#          define LT_DLLAZY_OR_NOW	DL_NOW
9575#        else
9576#          define LT_DLLAZY_OR_NOW	0
9577#        endif
9578#      endif
9579#    endif
9580#  endif
9581#endif
9582
9583void fnord() { int i=42;}
9584int main ()
9585{
9586  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9587  int status = $lt_dlunknown;
9588
9589  if (self)
9590    {
9591      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9592      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9593      /* dlclose (self); */
9594    }
9595  else
9596    puts (dlerror ());
9597
9598  return status;
9599}
9600_LT_EOF
9601  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9602  (eval $ac_link) 2>&5
9603  ac_status=$?
9604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9605  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9606    (./conftest; exit; ) >&5 2>/dev/null
9607    lt_status=$?
9608    case x$lt_status in
9609      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9610      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9611      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9612    esac
9613  else :
9614    # compilation failed
9615    lt_cv_dlopen_self=no
9616  fi
9617fi
9618rm -fr conftest*
9619
9620
9621fi
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9623$as_echo "$lt_cv_dlopen_self" >&6; }
9624
9625    if test "x$lt_cv_dlopen_self" = xyes; then
9626      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9627      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9628$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9629if ${lt_cv_dlopen_self_static+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  	  if test "$cross_compiling" = yes; then :
9633  lt_cv_dlopen_self_static=cross
9634else
9635  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9636  lt_status=$lt_dlunknown
9637  cat > conftest.$ac_ext <<_LT_EOF
9638#line 9638 "configure"
9639#include "confdefs.h"
9640
9641#if HAVE_DLFCN_H
9642#include <dlfcn.h>
9643#endif
9644
9645#include <stdio.h>
9646
9647#ifdef RTLD_GLOBAL
9648#  define LT_DLGLOBAL		RTLD_GLOBAL
9649#else
9650#  ifdef DL_GLOBAL
9651#    define LT_DLGLOBAL		DL_GLOBAL
9652#  else
9653#    define LT_DLGLOBAL		0
9654#  endif
9655#endif
9656
9657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9658   find out it does not work in some platform. */
9659#ifndef LT_DLLAZY_OR_NOW
9660#  ifdef RTLD_LAZY
9661#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9662#  else
9663#    ifdef DL_LAZY
9664#      define LT_DLLAZY_OR_NOW		DL_LAZY
9665#    else
9666#      ifdef RTLD_NOW
9667#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9668#      else
9669#        ifdef DL_NOW
9670#          define LT_DLLAZY_OR_NOW	DL_NOW
9671#        else
9672#          define LT_DLLAZY_OR_NOW	0
9673#        endif
9674#      endif
9675#    endif
9676#  endif
9677#endif
9678
9679void fnord() { int i=42;}
9680int main ()
9681{
9682  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9683  int status = $lt_dlunknown;
9684
9685  if (self)
9686    {
9687      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9688      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9689      /* dlclose (self); */
9690    }
9691  else
9692    puts (dlerror ());
9693
9694  return status;
9695}
9696_LT_EOF
9697  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9698  (eval $ac_link) 2>&5
9699  ac_status=$?
9700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9701  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9702    (./conftest; exit; ) >&5 2>/dev/null
9703    lt_status=$?
9704    case x$lt_status in
9705      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9706      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9707      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9708    esac
9709  else :
9710    # compilation failed
9711    lt_cv_dlopen_self_static=no
9712  fi
9713fi
9714rm -fr conftest*
9715
9716
9717fi
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9719$as_echo "$lt_cv_dlopen_self_static" >&6; }
9720    fi
9721
9722    CPPFLAGS="$save_CPPFLAGS"
9723    LDFLAGS="$save_LDFLAGS"
9724    LIBS="$save_LIBS"
9725    ;;
9726  esac
9727
9728  case $lt_cv_dlopen_self in
9729  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9730  *) enable_dlopen_self=unknown ;;
9731  esac
9732
9733  case $lt_cv_dlopen_self_static in
9734  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9735  *) enable_dlopen_self_static=unknown ;;
9736  esac
9737fi
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755striplib=
9756old_striplib=
9757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9758$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9759if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9760  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9761  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9763$as_echo "yes" >&6; }
9764else
9765# FIXME - insert some real tests, host_os isn't really good enough
9766  case $host_os in
9767  darwin*)
9768    if test -n "$STRIP" ; then
9769      striplib="$STRIP -x"
9770      old_striplib="$STRIP -S"
9771      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9772$as_echo "yes" >&6; }
9773    else
9774      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775$as_echo "no" >&6; }
9776    fi
9777    ;;
9778  *)
9779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780$as_echo "no" >&6; }
9781    ;;
9782  esac
9783fi
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796  # Report which library types will actually be built
9797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9798$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9800$as_echo "$can_build_shared" >&6; }
9801
9802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9803$as_echo_n "checking whether to build shared libraries... " >&6; }
9804  test "$can_build_shared" = "no" && enable_shared=no
9805
9806  # On AIX, shared libraries and static libraries use the same namespace, and
9807  # are all built from PIC.
9808  case $host_os in
9809  aix3*)
9810    test "$enable_shared" = yes && enable_static=no
9811    if test -n "$RANLIB"; then
9812      archive_cmds="$archive_cmds~\$RANLIB \$lib"
9813      postinstall_cmds='$RANLIB $lib'
9814    fi
9815    ;;
9816
9817  aix[4-9]*)
9818    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9819      test "$enable_shared" = yes && enable_static=no
9820    fi
9821    ;;
9822  esac
9823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9824$as_echo "$enable_shared" >&6; }
9825
9826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9827$as_echo_n "checking whether to build static libraries... " >&6; }
9828  # Make sure either enable_shared or enable_static is yes.
9829  test "$enable_shared" = yes || enable_static=yes
9830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9831$as_echo "$enable_static" >&6; }
9832
9833
9834
9835
9836fi
9837ac_ext=c
9838ac_cpp='$CPP $CPPFLAGS'
9839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9841ac_compiler_gnu=$ac_cv_c_compiler_gnu
9842
9843CC="$lt_save_CC"
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857        ac_config_commands="$ac_config_commands libtool"
9858
9859
9860
9861
9862# Only expand once:
9863
9864
9865# Find a good install program.  We prefer a C program (faster),
9866# so one script is as good as another.  But avoid the broken or
9867# incompatible versions:
9868# SysV /etc/install, /usr/sbin/install
9869# SunOS /usr/etc/install
9870# IRIX /sbin/install
9871# AIX /bin/install
9872# AmigaOS /C/install, which installs bootblocks on floppy discs
9873# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9874# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9875# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9876# OS/2's system install, which has a completely different semantic
9877# ./install, which can be erroneously created by make from ./install.sh.
9878# Reject install programs that cannot install multiple files.
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9880$as_echo_n "checking for a BSD-compatible install... " >&6; }
9881if test -z "$INSTALL"; then
9882if ${ac_cv_path_install+:} false; then :
9883  $as_echo_n "(cached) " >&6
9884else
9885  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886for as_dir in $PATH
9887do
9888  IFS=$as_save_IFS
9889  test -z "$as_dir" && as_dir=.
9890    # Account for people who put trailing slashes in PATH elements.
9891case $as_dir/ in #((
9892  ./ | .// | /[cC]/* | \
9893  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9894  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9895  /usr/ucb/* ) ;;
9896  *)
9897    # OSF1 and SCO ODT 3.0 have their own names for install.
9898    # Don't use installbsd from OSF since it installs stuff as root
9899    # by default.
9900    for ac_prog in ginstall scoinst install; do
9901      for ac_exec_ext in '' $ac_executable_extensions; do
9902	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9903	  if test $ac_prog = install &&
9904	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9905	    # AIX install.  It has an incompatible calling convention.
9906	    :
9907	  elif test $ac_prog = install &&
9908	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9909	    # program-specific install script used by HP pwplus--don't use.
9910	    :
9911	  else
9912	    rm -rf conftest.one conftest.two conftest.dir
9913	    echo one > conftest.one
9914	    echo two > conftest.two
9915	    mkdir conftest.dir
9916	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9917	      test -s conftest.one && test -s conftest.two &&
9918	      test -s conftest.dir/conftest.one &&
9919	      test -s conftest.dir/conftest.two
9920	    then
9921	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9922	      break 3
9923	    fi
9924	  fi
9925	fi
9926      done
9927    done
9928    ;;
9929esac
9930
9931  done
9932IFS=$as_save_IFS
9933
9934rm -rf conftest.one conftest.two conftest.dir
9935
9936fi
9937  if test "${ac_cv_path_install+set}" = set; then
9938    INSTALL=$ac_cv_path_install
9939  else
9940    # As a last resort, use the slow shell script.  Don't cache a
9941    # value for INSTALL within a source directory, because that will
9942    # break other packages using the cache if that directory is
9943    # removed, or if the value is a relative name.
9944    INSTALL=$ac_install_sh
9945  fi
9946fi
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9948$as_echo "$INSTALL" >&6; }
9949
9950# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9951# It thinks the first close brace ends the variable substitution.
9952test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9953
9954test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9955
9956test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9957
9958
9959#########
9960# Enable large file support (if special flags are necessary)
9961#
9962# Check whether --enable-largefile was given.
9963if test "${enable_largefile+set}" = set; then :
9964  enableval=$enable_largefile;
9965fi
9966
9967if test "$enable_largefile" != no; then
9968
9969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9970$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9971if ${ac_cv_sys_largefile_CC+:} false; then :
9972  $as_echo_n "(cached) " >&6
9973else
9974  ac_cv_sys_largefile_CC=no
9975     if test "$GCC" != yes; then
9976       ac_save_CC=$CC
9977       while :; do
9978	 # IRIX 6.2 and later do not support large files by default,
9979	 # so use the C compiler's -n32 option if that helps.
9980	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981/* end confdefs.h.  */
9982#include <sys/types.h>
9983 /* Check that off_t can represent 2**63 - 1 correctly.
9984    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9985    since some C++ compilers masquerading as C compilers
9986    incorrectly reject 9223372036854775807.  */
9987#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9988  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9989		       && LARGE_OFF_T % 2147483647 == 1)
9990		      ? 1 : -1];
9991int
9992main ()
9993{
9994
9995  ;
9996  return 0;
9997}
9998_ACEOF
9999	 if ac_fn_c_try_compile "$LINENO"; then :
10000  break
10001fi
10002rm -f core conftest.err conftest.$ac_objext
10003	 CC="$CC -n32"
10004	 if ac_fn_c_try_compile "$LINENO"; then :
10005  ac_cv_sys_largefile_CC=' -n32'; break
10006fi
10007rm -f core conftest.err conftest.$ac_objext
10008	 break
10009       done
10010       CC=$ac_save_CC
10011       rm -f conftest.$ac_ext
10012    fi
10013fi
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10015$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10016  if test "$ac_cv_sys_largefile_CC" != no; then
10017    CC=$CC$ac_cv_sys_largefile_CC
10018  fi
10019
10020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10021$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10022if ${ac_cv_sys_file_offset_bits+:} false; then :
10023  $as_echo_n "(cached) " >&6
10024else
10025  while :; do
10026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027/* end confdefs.h.  */
10028#include <sys/types.h>
10029 /* Check that off_t can represent 2**63 - 1 correctly.
10030    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10031    since some C++ compilers masquerading as C compilers
10032    incorrectly reject 9223372036854775807.  */
10033#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10034  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10035		       && LARGE_OFF_T % 2147483647 == 1)
10036		      ? 1 : -1];
10037int
10038main ()
10039{
10040
10041  ;
10042  return 0;
10043}
10044_ACEOF
10045if ac_fn_c_try_compile "$LINENO"; then :
10046  ac_cv_sys_file_offset_bits=no; break
10047fi
10048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h.  */
10051#define _FILE_OFFSET_BITS 64
10052#include <sys/types.h>
10053 /* Check that off_t can represent 2**63 - 1 correctly.
10054    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10055    since some C++ compilers masquerading as C compilers
10056    incorrectly reject 9223372036854775807.  */
10057#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10058  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10059		       && LARGE_OFF_T % 2147483647 == 1)
10060		      ? 1 : -1];
10061int
10062main ()
10063{
10064
10065  ;
10066  return 0;
10067}
10068_ACEOF
10069if ac_fn_c_try_compile "$LINENO"; then :
10070  ac_cv_sys_file_offset_bits=64; break
10071fi
10072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073  ac_cv_sys_file_offset_bits=unknown
10074  break
10075done
10076fi
10077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10078$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10079case $ac_cv_sys_file_offset_bits in #(
10080  no | unknown) ;;
10081  *)
10082cat >>confdefs.h <<_ACEOF
10083#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10084_ACEOF
10085;;
10086esac
10087rm -rf conftest*
10088  if test $ac_cv_sys_file_offset_bits = unknown; then
10089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10090$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10091if ${ac_cv_sys_large_files+:} false; then :
10092  $as_echo_n "(cached) " >&6
10093else
10094  while :; do
10095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096/* end confdefs.h.  */
10097#include <sys/types.h>
10098 /* Check that off_t can represent 2**63 - 1 correctly.
10099    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10100    since some C++ compilers masquerading as C compilers
10101    incorrectly reject 9223372036854775807.  */
10102#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10103  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10104		       && LARGE_OFF_T % 2147483647 == 1)
10105		      ? 1 : -1];
10106int
10107main ()
10108{
10109
10110  ;
10111  return 0;
10112}
10113_ACEOF
10114if ac_fn_c_try_compile "$LINENO"; then :
10115  ac_cv_sys_large_files=no; break
10116fi
10117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119/* end confdefs.h.  */
10120#define _LARGE_FILES 1
10121#include <sys/types.h>
10122 /* Check that off_t can represent 2**63 - 1 correctly.
10123    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10124    since some C++ compilers masquerading as C compilers
10125    incorrectly reject 9223372036854775807.  */
10126#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10127  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10128		       && LARGE_OFF_T % 2147483647 == 1)
10129		      ? 1 : -1];
10130int
10131main ()
10132{
10133
10134  ;
10135  return 0;
10136}
10137_ACEOF
10138if ac_fn_c_try_compile "$LINENO"; then :
10139  ac_cv_sys_large_files=1; break
10140fi
10141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142  ac_cv_sys_large_files=unknown
10143  break
10144done
10145fi
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10147$as_echo "$ac_cv_sys_large_files" >&6; }
10148case $ac_cv_sys_large_files in #(
10149  no | unknown) ;;
10150  *)
10151cat >>confdefs.h <<_ACEOF
10152#define _LARGE_FILES $ac_cv_sys_large_files
10153_ACEOF
10154;;
10155esac
10156rm -rf conftest*
10157  fi
10158
10159
10160fi
10161
10162
10163#########
10164# Check for needed/wanted data types
10165ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10166if test "x$ac_cv_type_int8_t" = xyes; then :
10167
10168cat >>confdefs.h <<_ACEOF
10169#define HAVE_INT8_T 1
10170_ACEOF
10171
10172
10173fi
10174ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10175if test "x$ac_cv_type_int16_t" = xyes; then :
10176
10177cat >>confdefs.h <<_ACEOF
10178#define HAVE_INT16_T 1
10179_ACEOF
10180
10181
10182fi
10183ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10184if test "x$ac_cv_type_int32_t" = xyes; then :
10185
10186cat >>confdefs.h <<_ACEOF
10187#define HAVE_INT32_T 1
10188_ACEOF
10189
10190
10191fi
10192ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10193if test "x$ac_cv_type_int64_t" = xyes; then :
10194
10195cat >>confdefs.h <<_ACEOF
10196#define HAVE_INT64_T 1
10197_ACEOF
10198
10199
10200fi
10201ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10202if test "x$ac_cv_type_intptr_t" = xyes; then :
10203
10204cat >>confdefs.h <<_ACEOF
10205#define HAVE_INTPTR_T 1
10206_ACEOF
10207
10208
10209fi
10210ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10211if test "x$ac_cv_type_uint8_t" = xyes; then :
10212
10213cat >>confdefs.h <<_ACEOF
10214#define HAVE_UINT8_T 1
10215_ACEOF
10216
10217
10218fi
10219ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10220if test "x$ac_cv_type_uint16_t" = xyes; then :
10221
10222cat >>confdefs.h <<_ACEOF
10223#define HAVE_UINT16_T 1
10224_ACEOF
10225
10226
10227fi
10228ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10229if test "x$ac_cv_type_uint32_t" = xyes; then :
10230
10231cat >>confdefs.h <<_ACEOF
10232#define HAVE_UINT32_T 1
10233_ACEOF
10234
10235
10236fi
10237ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10238if test "x$ac_cv_type_uint64_t" = xyes; then :
10239
10240cat >>confdefs.h <<_ACEOF
10241#define HAVE_UINT64_T 1
10242_ACEOF
10243
10244
10245fi
10246ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10247if test "x$ac_cv_type_uintptr_t" = xyes; then :
10248
10249cat >>confdefs.h <<_ACEOF
10250#define HAVE_UINTPTR_T 1
10251_ACEOF
10252
10253
10254fi
10255
10256
10257#########
10258# Check for needed/wanted headers
10259for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10260do :
10261  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10262ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10263if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10264  cat >>confdefs.h <<_ACEOF
10265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10266_ACEOF
10267
10268fi
10269
10270done
10271
10272
10273#########
10274# Figure out whether or not we have these functions
10275#
10276for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime
10277do :
10278  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10280if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10281  cat >>confdefs.h <<_ACEOF
10282#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10283_ACEOF
10284
10285fi
10286done
10287
10288
10289#########
10290# By default, we use the amalgamation (this may be changed below...)
10291#
10292USE_AMALGAMATION=1
10293
10294#########
10295# See whether we can run specific tclsh versions known to work well;
10296# if not, then we fall back to plain tclsh.
10297# TODO: try other versions before falling back?
10298#
10299for ac_prog in tclsh8.6 tclsh8.5 tclsh
10300do
10301  # Extract the first word of "$ac_prog", so it can be a program name with args.
10302set dummy $ac_prog; ac_word=$2
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304$as_echo_n "checking for $ac_word... " >&6; }
10305if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10306  $as_echo_n "(cached) " >&6
10307else
10308  if test -n "$TCLSH_CMD"; then
10309  ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10310else
10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314  IFS=$as_save_IFS
10315  test -z "$as_dir" && as_dir=.
10316    for ac_exec_ext in '' $ac_executable_extensions; do
10317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318    ac_cv_prog_TCLSH_CMD="$ac_prog"
10319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320    break 2
10321  fi
10322done
10323  done
10324IFS=$as_save_IFS
10325
10326fi
10327fi
10328TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10329if test -n "$TCLSH_CMD"; then
10330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10331$as_echo "$TCLSH_CMD" >&6; }
10332else
10333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334$as_echo "no" >&6; }
10335fi
10336
10337
10338  test -n "$TCLSH_CMD" && break
10339done
10340test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10341
10342if test "$TCLSH_CMD" = "none"; then
10343  # If we can't find a local tclsh, then building the amalgamation will fail.
10344  # We act as though --disable-amalgamation has been used.
10345  echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10346  USE_AMALGAMATION=0
10347  TCLSH_CMD="tclsh"
10348fi
10349
10350
10351
10352if test "x${TCLLIBDIR+set}" != "xset" ; then
10353  TCLLIBDIR='$(libdir)'
10354  for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10355    TCLLIBDIR=$i
10356    break
10357  done
10358  TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10359fi
10360
10361
10362#########
10363# Set up an appropriate program prefix
10364#
10365if test "$program_prefix" = "NONE"; then
10366  program_prefix=""
10367fi
10368
10369
10370VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10372$as_echo "$as_me: Version set to $VERSION" >&6;}
10373
10374RELEASE=`cat $srcdir/VERSION`
10375{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10376$as_echo "$as_me: Release set to $RELEASE" >&6;}
10377
10378VERSION_NUMBER=`cat $srcdir/VERSION \
10379                           | sed 's/[^0-9]/ /g' \
10380                | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
10382$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
10383
10384
10385#########
10386# Locate a compiler for the build machine.  This compiler should
10387# generate command-line programs that run on the build machine.
10388#
10389if test x"$cross_compiling" = xno; then
10390	BUILD_CC=$CC
10391	BUILD_CFLAGS=$CFLAGS
10392else
10393	if test "${BUILD_CC+set}" != set; then
10394		for ac_prog in gcc cc cl
10395do
10396  # Extract the first word of "$ac_prog", so it can be a program name with args.
10397set dummy $ac_prog; ac_word=$2
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399$as_echo_n "checking for $ac_word... " >&6; }
10400if ${ac_cv_prog_BUILD_CC+:} false; then :
10401  $as_echo_n "(cached) " >&6
10402else
10403  if test -n "$BUILD_CC"; then
10404  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10405else
10406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407for as_dir in $PATH
10408do
10409  IFS=$as_save_IFS
10410  test -z "$as_dir" && as_dir=.
10411    for ac_exec_ext in '' $ac_executable_extensions; do
10412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10413    ac_cv_prog_BUILD_CC="$ac_prog"
10414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10415    break 2
10416  fi
10417done
10418  done
10419IFS=$as_save_IFS
10420
10421fi
10422fi
10423BUILD_CC=$ac_cv_prog_BUILD_CC
10424if test -n "$BUILD_CC"; then
10425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10426$as_echo "$BUILD_CC" >&6; }
10427else
10428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429$as_echo "no" >&6; }
10430fi
10431
10432
10433  test -n "$BUILD_CC" && break
10434done
10435
10436	fi
10437	if test "${BUILD_CFLAGS+set}" != set; then
10438		BUILD_CFLAGS="-g"
10439	fi
10440fi
10441
10442
10443##########
10444# Do we want to support multithreaded use of sqlite
10445#
10446# Check whether --enable-threadsafe was given.
10447if test "${enable_threadsafe+set}" = set; then :
10448  enableval=$enable_threadsafe;
10449else
10450  enable_threadsafe=yes
10451fi
10452
10453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10454$as_echo_n "checking whether to support threadsafe operation... " >&6; }
10455if test "$enable_threadsafe" = "no"; then
10456  SQLITE_THREADSAFE=0
10457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458$as_echo "no" >&6; }
10459else
10460  SQLITE_THREADSAFE=1
10461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10462$as_echo "yes" >&6; }
10463fi
10464
10465
10466if test "$SQLITE_THREADSAFE" = "1"; then
10467  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10468$as_echo_n "checking for library containing pthread_create... " >&6; }
10469if ${ac_cv_search_pthread_create+:} false; then :
10470  $as_echo_n "(cached) " >&6
10471else
10472  ac_func_search_save_LIBS=$LIBS
10473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474/* end confdefs.h.  */
10475
10476/* Override any GCC internal prototype to avoid an error.
10477   Use char because int might match the return type of a GCC
10478   builtin and then its argument prototype would still apply.  */
10479#ifdef __cplusplus
10480extern "C"
10481#endif
10482char pthread_create ();
10483int
10484main ()
10485{
10486return pthread_create ();
10487  ;
10488  return 0;
10489}
10490_ACEOF
10491for ac_lib in '' pthread; do
10492  if test -z "$ac_lib"; then
10493    ac_res="none required"
10494  else
10495    ac_res=-l$ac_lib
10496    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10497  fi
10498  if ac_fn_c_try_link "$LINENO"; then :
10499  ac_cv_search_pthread_create=$ac_res
10500fi
10501rm -f core conftest.err conftest.$ac_objext \
10502    conftest$ac_exeext
10503  if ${ac_cv_search_pthread_create+:} false; then :
10504  break
10505fi
10506done
10507if ${ac_cv_search_pthread_create+:} false; then :
10508
10509else
10510  ac_cv_search_pthread_create=no
10511fi
10512rm conftest.$ac_ext
10513LIBS=$ac_func_search_save_LIBS
10514fi
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10516$as_echo "$ac_cv_search_pthread_create" >&6; }
10517ac_res=$ac_cv_search_pthread_create
10518if test "$ac_res" != no; then :
10519  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10520
10521fi
10522
10523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10524$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10525if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10526  $as_echo_n "(cached) " >&6
10527else
10528  ac_func_search_save_LIBS=$LIBS
10529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530/* end confdefs.h.  */
10531
10532/* Override any GCC internal prototype to avoid an error.
10533   Use char because int might match the return type of a GCC
10534   builtin and then its argument prototype would still apply.  */
10535#ifdef __cplusplus
10536extern "C"
10537#endif
10538char pthread_mutexattr_init ();
10539int
10540main ()
10541{
10542return pthread_mutexattr_init ();
10543  ;
10544  return 0;
10545}
10546_ACEOF
10547for ac_lib in '' pthread; do
10548  if test -z "$ac_lib"; then
10549    ac_res="none required"
10550  else
10551    ac_res=-l$ac_lib
10552    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10553  fi
10554  if ac_fn_c_try_link "$LINENO"; then :
10555  ac_cv_search_pthread_mutexattr_init=$ac_res
10556fi
10557rm -f core conftest.err conftest.$ac_objext \
10558    conftest$ac_exeext
10559  if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10560  break
10561fi
10562done
10563if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10564
10565else
10566  ac_cv_search_pthread_mutexattr_init=no
10567fi
10568rm conftest.$ac_ext
10569LIBS=$ac_func_search_save_LIBS
10570fi
10571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10572$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10573ac_res=$ac_cv_search_pthread_mutexattr_init
10574if test "$ac_res" != no; then :
10575  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10576
10577fi
10578
10579fi
10580
10581##########
10582# Do we want to support release
10583#
10584# Check whether --enable-releasemode was given.
10585if test "${enable_releasemode+set}" = set; then :
10586  enableval=$enable_releasemode;
10587else
10588  enable_releasemode=no
10589fi
10590
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10592$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10593if test "$enable_releasemode" = "no"; then
10594  ALLOWRELEASE=""
10595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596$as_echo "no" >&6; }
10597else
10598  ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10600$as_echo "yes" >&6; }
10601fi
10602
10603
10604##########
10605# Do we want temporary databases in memory
10606#
10607# Check whether --enable-tempstore was given.
10608if test "${enable_tempstore+set}" = set; then :
10609  enableval=$enable_tempstore;
10610else
10611  enable_tempstore=no
10612fi
10613
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10615$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10616case "$enable_tempstore" in
10617  never )
10618    TEMP_STORE=0
10619    { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10620$as_echo "never" >&6; }
10621  ;;
10622  no )
10623    TEMP_STORE=1
10624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625$as_echo "no" >&6; }
10626  ;;
10627  yes )
10628     TEMP_STORE=2
10629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630$as_echo "yes" >&6; }
10631  ;;
10632  always )
10633     TEMP_STORE=3
10634    { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10635$as_echo "always" >&6; }
10636  ;;
10637  * )
10638    TEMP_STORE=1
10639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640$as_echo "no" >&6; }
10641  ;;
10642esac
10643
10644
10645
10646###########
10647# Lots of things are different if we are compiling for Windows using
10648# the CYGWIN environment.  So check for that special case and handle
10649# things accordingly.
10650#
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10652$as_echo_n "checking if executables have the .exe suffix... " >&6; }
10653if test "$config_BUILD_EXEEXT" = ".exe"; then
10654  CYGWIN=yes
10655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10656$as_echo "yes" >&6; }
10657else
10658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10659$as_echo "unknown" >&6; }
10660fi
10661if test "$CYGWIN" != "yes"; then
10662
10663case $host_os in
10664  *cygwin* ) CYGWIN=yes;;
10665	 * ) CYGWIN=no;;
10666esac
10667
10668fi
10669if test "$CYGWIN" = "yes"; then
10670  BUILD_EXEEXT=.exe
10671else
10672  BUILD_EXEEXT=$EXEEXT
10673fi
10674if test x"$cross_compiling" = xno; then
10675  TARGET_EXEEXT=$BUILD_EXEEXT
10676else
10677  TARGET_EXEEXT=$config_TARGET_EXEEXT
10678fi
10679if test "$TARGET_EXEEXT" = ".exe"; then
10680  SQLITE_OS_UNIX=0
10681  SQLITE_OS_WIN=1
10682  CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10683else
10684  SQLITE_OS_UNIX=1
10685  SQLITE_OS_WIN=0
10686  CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10687fi
10688
10689
10690
10691
10692
10693
10694##########
10695# Figure out all the parameters needed to compile against Tcl.
10696#
10697# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10698# macros in the in the tcl.m4 file of the standard TCL distribution.
10699# Those macros could not be used directly since we have to make some
10700# minor changes to accomodate systems that do not have TCL installed.
10701#
10702# Check whether --enable-tcl was given.
10703if test "${enable_tcl+set}" = set; then :
10704  enableval=$enable_tcl; use_tcl=$enableval
10705else
10706  use_tcl=yes
10707fi
10708
10709if test "${use_tcl}" = "yes" ; then
10710
10711# Check whether --with-tcl was given.
10712if test "${with_tcl+set}" = set; then :
10713  withval=$with_tcl; with_tclconfig=${withval}
10714fi
10715
10716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10717$as_echo_n "checking for Tcl configuration... " >&6; }
10718  if ${ac_cv_c_tclconfig+:} false; then :
10719  $as_echo_n "(cached) " >&6
10720else
10721
10722    # First check to see if --with-tcl was specified.
10723    if test x"${with_tclconfig}" != x ; then
10724      if test -f "${with_tclconfig}/tclConfig.sh" ; then
10725        ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10726      else
10727        as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10728      fi
10729    fi
10730
10731    # Start autosearch by asking tclsh
10732    if test x"${ac_cv_c_tclconfig}" = x ; then
10733      if test x"$cross_compiling" = xno; then
10734        for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10735        do
10736          if test -f "$i/tclConfig.sh" ; then
10737            ac_cv_c_tclconfig="$i"
10738            break
10739          fi
10740        done
10741      fi
10742    fi
10743
10744    # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10745    # So try again after applying corrections.
10746    if test x"${ac_cv_c_tclconfig}" = x ; then
10747      if test x"$cross_compiling" = xno; then
10748        for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10749        do
10750          if test -f "$i/tclConfig.sh" ; then
10751            ac_cv_c_tclconfig="$i"
10752            break
10753          fi
10754        done
10755      fi
10756    fi
10757
10758    # then check for a private Tcl installation
10759    if test x"${ac_cv_c_tclconfig}" = x ; then
10760      for i in \
10761            ../tcl \
10762            `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10763            `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10764            `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10765            ../../tcl \
10766            `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10767            `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10768            `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10769            ../../../tcl \
10770            `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10771            `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10772            `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10773      do
10774        if test -f "$i/unix/tclConfig.sh" ; then
10775          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10776          break
10777        fi
10778      done
10779    fi
10780
10781    # check in a few common install locations
10782    if test x"${ac_cv_c_tclconfig}" = x ; then
10783      for i in \
10784            `ls -d ${libdir} 2>/dev/null` \
10785            `ls -d /usr/local/lib 2>/dev/null` \
10786            `ls -d /usr/contrib/lib 2>/dev/null` \
10787            `ls -d /usr/lib 2>/dev/null`
10788      do
10789        if test -f "$i/tclConfig.sh" ; then
10790           ac_cv_c_tclconfig=`(cd $i; pwd)`
10791           break
10792        fi
10793      done
10794    fi
10795
10796    # check in a few other private locations
10797    if test x"${ac_cv_c_tclconfig}" = x ; then
10798      for i in \
10799         ${srcdir}/../tcl \
10800         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10801         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10802         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10803      do
10804        if test -f "$i/unix/tclConfig.sh" ; then
10805          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10806          break
10807        fi
10808      done
10809    fi
10810
10811fi
10812
10813
10814  if test x"${ac_cv_c_tclconfig}" = x ; then
10815    use_tcl=no
10816    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10817$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10818    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10819$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10821$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10822  else
10823    TCL_BIN_DIR=${ac_cv_c_tclconfig}
10824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10825$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10826
10827    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10828$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10829    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10830      { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10831$as_echo "loading" >&6; }
10832      . $TCL_BIN_DIR/tclConfig.sh
10833    else
10834      { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10835$as_echo "file not found" >&6; }
10836    fi
10837
10838    #
10839    # If the TCL_BIN_DIR is the build directory (not the install directory),
10840    # then set the common variable name to the value of the build variables.
10841    # For example, the variable TCL_LIB_SPEC will be set to the value
10842    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10843    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10844    # installed and uninstalled version of Tcl.
10845    #
10846
10847    if test -f $TCL_BIN_DIR/Makefile ; then
10848      TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10849      TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10850      TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10851    fi
10852
10853    #
10854    # eval is required to do the TCL_DBGX substitution
10855    #
10856
10857    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10858    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10859    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10860
10861    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10862    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10863    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878  fi
10879fi
10880if test "${use_tcl}" = "no" ; then
10881  HAVE_TCL=""
10882else
10883  HAVE_TCL=1
10884fi
10885
10886
10887##########
10888# Figure out what C libraries are required to compile programs
10889# that use "readline()" library.
10890#
10891TARGET_READLINE_LIBS=""
10892TARGET_READLINE_INC=""
10893TARGET_HAVE_READLINE=0
10894TARGET_HAVE_EDITLINE=0
10895# Check whether --enable-editline was given.
10896if test "${enable_editline+set}" = set; then :
10897  enableval=$enable_editline; with_editline=$enableval
10898else
10899  with_editline=auto
10900fi
10901
10902# Check whether --enable-readline was given.
10903if test "${enable_readline+set}" = set; then :
10904  enableval=$enable_readline; with_readline=$enableval
10905else
10906  with_readline=auto
10907fi
10908
10909
10910if test x"$with_editline" != xno; then
10911        sLIBS=$LIBS
10912        LIBS=""
10913	TARGET_HAVE_EDITLINE=1
10914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10915$as_echo_n "checking for library containing readline... " >&6; }
10916if ${ac_cv_search_readline+:} false; then :
10917  $as_echo_n "(cached) " >&6
10918else
10919  ac_func_search_save_LIBS=$LIBS
10920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921/* end confdefs.h.  */
10922
10923/* Override any GCC internal prototype to avoid an error.
10924   Use char because int might match the return type of a GCC
10925   builtin and then its argument prototype would still apply.  */
10926#ifdef __cplusplus
10927extern "C"
10928#endif
10929char readline ();
10930int
10931main ()
10932{
10933return readline ();
10934  ;
10935  return 0;
10936}
10937_ACEOF
10938for ac_lib in '' edit; do
10939  if test -z "$ac_lib"; then
10940    ac_res="none required"
10941  else
10942    ac_res=-l$ac_lib
10943    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10944  fi
10945  if ac_fn_c_try_link "$LINENO"; then :
10946  ac_cv_search_readline=$ac_res
10947fi
10948rm -f core conftest.err conftest.$ac_objext \
10949    conftest$ac_exeext
10950  if ${ac_cv_search_readline+:} false; then :
10951  break
10952fi
10953done
10954if ${ac_cv_search_readline+:} false; then :
10955
10956else
10957  ac_cv_search_readline=no
10958fi
10959rm conftest.$ac_ext
10960LIBS=$ac_func_search_save_LIBS
10961fi
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10963$as_echo "$ac_cv_search_readline" >&6; }
10964ac_res=$ac_cv_search_readline
10965if test "$ac_res" != no; then :
10966  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10967  with_readline=no
10968else
10969  TARGET_HAVE_EDITLINE=0
10970fi
10971
10972        TARGET_READLINE_LIBS=$LIBS
10973        LIBS=$sLIBS
10974fi
10975if test x"$with_readline" != xno; then
10976	found="yes"
10977
10978
10979# Check whether --with-readline-lib was given.
10980if test "${with_readline_lib+set}" = set; then :
10981  withval=$with_readline_lib; with_readline_lib=$withval
10982else
10983  with_readline_lib="auto"
10984fi
10985
10986	if test "x$with_readline_lib" = xauto; then
10987		save_LIBS="$LIBS"
10988		LIBS=""
10989		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
10990$as_echo_n "checking for library containing tgetent... " >&6; }
10991if ${ac_cv_search_tgetent+:} false; then :
10992  $as_echo_n "(cached) " >&6
10993else
10994  ac_func_search_save_LIBS=$LIBS
10995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996/* end confdefs.h.  */
10997
10998/* Override any GCC internal prototype to avoid an error.
10999   Use char because int might match the return type of a GCC
11000   builtin and then its argument prototype would still apply.  */
11001#ifdef __cplusplus
11002extern "C"
11003#endif
11004char tgetent ();
11005int
11006main ()
11007{
11008return tgetent ();
11009  ;
11010  return 0;
11011}
11012_ACEOF
11013for ac_lib in '' readline ncurses curses termcap; do
11014  if test -z "$ac_lib"; then
11015    ac_res="none required"
11016  else
11017    ac_res=-l$ac_lib
11018    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11019  fi
11020  if ac_fn_c_try_link "$LINENO"; then :
11021  ac_cv_search_tgetent=$ac_res
11022fi
11023rm -f core conftest.err conftest.$ac_objext \
11024    conftest$ac_exeext
11025  if ${ac_cv_search_tgetent+:} false; then :
11026  break
11027fi
11028done
11029if ${ac_cv_search_tgetent+:} false; then :
11030
11031else
11032  ac_cv_search_tgetent=no
11033fi
11034rm conftest.$ac_ext
11035LIBS=$ac_func_search_save_LIBS
11036fi
11037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11038$as_echo "$ac_cv_search_tgetent" >&6; }
11039ac_res=$ac_cv_search_tgetent
11040if test "$ac_res" != no; then :
11041  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11042  term_LIBS="$LIBS"
11043else
11044  term_LIBS=""
11045fi
11046
11047		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11048$as_echo_n "checking for readline in -lreadline... " >&6; }
11049if ${ac_cv_lib_readline_readline+:} false; then :
11050  $as_echo_n "(cached) " >&6
11051else
11052  ac_check_lib_save_LIBS=$LIBS
11053LIBS="-lreadline  $LIBS"
11054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055/* end confdefs.h.  */
11056
11057/* Override any GCC internal prototype to avoid an error.
11058   Use char because int might match the return type of a GCC
11059   builtin and then its argument prototype would still apply.  */
11060#ifdef __cplusplus
11061extern "C"
11062#endif
11063char readline ();
11064int
11065main ()
11066{
11067return readline ();
11068  ;
11069  return 0;
11070}
11071_ACEOF
11072if ac_fn_c_try_link "$LINENO"; then :
11073  ac_cv_lib_readline_readline=yes
11074else
11075  ac_cv_lib_readline_readline=no
11076fi
11077rm -f core conftest.err conftest.$ac_objext \
11078    conftest$ac_exeext conftest.$ac_ext
11079LIBS=$ac_check_lib_save_LIBS
11080fi
11081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11082$as_echo "$ac_cv_lib_readline_readline" >&6; }
11083if test "x$ac_cv_lib_readline_readline" = xyes; then :
11084  TARGET_READLINE_LIBS="-lreadline"
11085else
11086  found="no"
11087fi
11088
11089		TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11090		LIBS="$save_LIBS"
11091	else
11092		TARGET_READLINE_LIBS="$with_readline_lib"
11093	fi
11094
11095
11096# Check whether --with-readline-inc was given.
11097if test "${with_readline_inc+set}" = set; then :
11098  withval=$with_readline_inc; with_readline_inc=$withval
11099else
11100  with_readline_inc="auto"
11101fi
11102
11103	if test "x$with_readline_inc" = xauto; then
11104		ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11105if test "x$ac_cv_header_readline_h" = xyes; then :
11106  found="yes"
11107else
11108
11109			found="no"
11110			if test "$cross_compiling" != yes; then
11111				for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11112					for subdir in include include/readline; do
11113						as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11115$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11116if eval \${$as_ac_File+:} false; then :
11117  $as_echo_n "(cached) " >&6
11118else
11119  test "$cross_compiling" = yes &&
11120  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11121if test -r "$dir/$subdir/readline.h"; then
11122  eval "$as_ac_File=yes"
11123else
11124  eval "$as_ac_File=no"
11125fi
11126fi
11127eval ac_res=\$$as_ac_File
11128	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11129$as_echo "$ac_res" >&6; }
11130if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11131  found=yes
11132fi
11133
11134						if test "$found" = "yes"; then
11135							TARGET_READLINE_INC="-I$dir/$subdir"
11136							break
11137						fi
11138					done
11139					test "$found" = "yes" && break
11140				done
11141			fi
11142
11143fi
11144
11145
11146	else
11147		TARGET_READLINE_INC="$with_readline_inc"
11148	fi
11149
11150	if test x"$found" = xno; then
11151		TARGET_READLINE_LIBS=""
11152		TARGET_READLINE_INC=""
11153		TARGET_HAVE_READLINE=0
11154	else
11155		TARGET_HAVE_READLINE=1
11156	fi
11157fi
11158
11159
11160
11161
11162
11163
11164##########
11165# Figure out what C libraries are required to compile programs
11166# that use "fdatasync()" function.
11167#
11168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11169$as_echo_n "checking for library containing fdatasync... " >&6; }
11170if ${ac_cv_search_fdatasync+:} false; then :
11171  $as_echo_n "(cached) " >&6
11172else
11173  ac_func_search_save_LIBS=$LIBS
11174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175/* end confdefs.h.  */
11176
11177/* Override any GCC internal prototype to avoid an error.
11178   Use char because int might match the return type of a GCC
11179   builtin and then its argument prototype would still apply.  */
11180#ifdef __cplusplus
11181extern "C"
11182#endif
11183char fdatasync ();
11184int
11185main ()
11186{
11187return fdatasync ();
11188  ;
11189  return 0;
11190}
11191_ACEOF
11192for ac_lib in '' rt; do
11193  if test -z "$ac_lib"; then
11194    ac_res="none required"
11195  else
11196    ac_res=-l$ac_lib
11197    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11198  fi
11199  if ac_fn_c_try_link "$LINENO"; then :
11200  ac_cv_search_fdatasync=$ac_res
11201fi
11202rm -f core conftest.err conftest.$ac_objext \
11203    conftest$ac_exeext
11204  if ${ac_cv_search_fdatasync+:} false; then :
11205  break
11206fi
11207done
11208if ${ac_cv_search_fdatasync+:} false; then :
11209
11210else
11211  ac_cv_search_fdatasync=no
11212fi
11213rm conftest.$ac_ext
11214LIBS=$ac_func_search_save_LIBS
11215fi
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11217$as_echo "$ac_cv_search_fdatasync" >&6; }
11218ac_res=$ac_cv_search_fdatasync
11219if test "$ac_res" != no; then :
11220  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11221
11222fi
11223
11224
11225#########
11226# check for debug enabled
11227# Check whether --enable-debug was given.
11228if test "${enable_debug+set}" = set; then :
11229  enableval=$enable_debug; use_debug=$enableval
11230else
11231  use_debug=no
11232fi
11233
11234if test "${use_debug}" = "yes" ; then
11235  TARGET_DEBUG="-DSQLITE_DEBUG=1"
11236else
11237  TARGET_DEBUG="-DNDEBUG"
11238fi
11239
11240
11241#########
11242# See whether we should use the amalgamation to build
11243# Check whether --enable-amalgamation was given.
11244if test "${enable_amalgamation+set}" = set; then :
11245  enableval=$enable_amalgamation; use_amalgamation=$enableval
11246else
11247  use_amalgamation=yes
11248fi
11249
11250if test "${use_amalgamation}" != "yes" ; then
11251  USE_AMALGAMATION=0
11252fi
11253
11254
11255#########
11256# See whether we should allow loadable extensions
11257# Check whether --enable-load-extension was given.
11258if test "${enable_load_extension+set}" = set; then :
11259  enableval=$enable_load_extension; use_loadextension=$enableval
11260else
11261  use_loadextension=yes
11262fi
11263
11264if test "${use_loadextension}" = "yes" ; then
11265  OPT_FEATURE_FLAGS=""
11266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11267$as_echo_n "checking for library containing dlopen... " >&6; }
11268if ${ac_cv_search_dlopen+:} false; then :
11269  $as_echo_n "(cached) " >&6
11270else
11271  ac_func_search_save_LIBS=$LIBS
11272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273/* end confdefs.h.  */
11274
11275/* Override any GCC internal prototype to avoid an error.
11276   Use char because int might match the return type of a GCC
11277   builtin and then its argument prototype would still apply.  */
11278#ifdef __cplusplus
11279extern "C"
11280#endif
11281char dlopen ();
11282int
11283main ()
11284{
11285return dlopen ();
11286  ;
11287  return 0;
11288}
11289_ACEOF
11290for ac_lib in '' dl; do
11291  if test -z "$ac_lib"; then
11292    ac_res="none required"
11293  else
11294    ac_res=-l$ac_lib
11295    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11296  fi
11297  if ac_fn_c_try_link "$LINENO"; then :
11298  ac_cv_search_dlopen=$ac_res
11299fi
11300rm -f core conftest.err conftest.$ac_objext \
11301    conftest$ac_exeext
11302  if ${ac_cv_search_dlopen+:} false; then :
11303  break
11304fi
11305done
11306if ${ac_cv_search_dlopen+:} false; then :
11307
11308else
11309  ac_cv_search_dlopen=no
11310fi
11311rm conftest.$ac_ext
11312LIBS=$ac_func_search_save_LIBS
11313fi
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11315$as_echo "$ac_cv_search_dlopen" >&6; }
11316ac_res=$ac_cv_search_dlopen
11317if test "$ac_res" != no; then :
11318  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11319
11320fi
11321
11322else
11323  OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11324fi
11325
11326#########
11327# See whether we should enable Full Text Search extensions
11328# Check whether --enable-fts3 was given.
11329if test "${enable_fts3+set}" = set; then :
11330  enableval=$enable_fts3; enable_fts3=yes
11331else
11332  enable_fts3=no
11333fi
11334
11335if test "${enable_fts3}" = "yes" ; then
11336  OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3"
11337fi
11338# Check whether --enable-fts4 was given.
11339if test "${enable_fts4+set}" = set; then :
11340  enableval=$enable_fts4; enable_fts4=yes
11341else
11342  enable_fts4=no
11343fi
11344
11345if test "${enable_fts4}" = "yes" ; then
11346  OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4"
11347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11348$as_echo_n "checking for library containing log... " >&6; }
11349if ${ac_cv_search_log+:} false; then :
11350  $as_echo_n "(cached) " >&6
11351else
11352  ac_func_search_save_LIBS=$LIBS
11353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354/* end confdefs.h.  */
11355
11356/* Override any GCC internal prototype to avoid an error.
11357   Use char because int might match the return type of a GCC
11358   builtin and then its argument prototype would still apply.  */
11359#ifdef __cplusplus
11360extern "C"
11361#endif
11362char log ();
11363int
11364main ()
11365{
11366return log ();
11367  ;
11368  return 0;
11369}
11370_ACEOF
11371for ac_lib in '' m; do
11372  if test -z "$ac_lib"; then
11373    ac_res="none required"
11374  else
11375    ac_res=-l$ac_lib
11376    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11377  fi
11378  if ac_fn_c_try_link "$LINENO"; then :
11379  ac_cv_search_log=$ac_res
11380fi
11381rm -f core conftest.err conftest.$ac_objext \
11382    conftest$ac_exeext
11383  if ${ac_cv_search_log+:} false; then :
11384  break
11385fi
11386done
11387if ${ac_cv_search_log+:} false; then :
11388
11389else
11390  ac_cv_search_log=no
11391fi
11392rm conftest.$ac_ext
11393LIBS=$ac_func_search_save_LIBS
11394fi
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11396$as_echo "$ac_cv_search_log" >&6; }
11397ac_res=$ac_cv_search_log
11398if test "$ac_res" != no; then :
11399  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11400
11401fi
11402
11403fi
11404# Check whether --enable-fts5 was given.
11405if test "${enable_fts5+set}" = set; then :
11406  enableval=$enable_fts5; enable_fts5=yes
11407else
11408  enable_fts5=no
11409fi
11410
11411if test "${enable_fts5}" = "yes" ; then
11412  OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5"
11413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11414$as_echo_n "checking for library containing log... " >&6; }
11415if ${ac_cv_search_log+:} false; then :
11416  $as_echo_n "(cached) " >&6
11417else
11418  ac_func_search_save_LIBS=$LIBS
11419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420/* end confdefs.h.  */
11421
11422/* Override any GCC internal prototype to avoid an error.
11423   Use char because int might match the return type of a GCC
11424   builtin and then its argument prototype would still apply.  */
11425#ifdef __cplusplus
11426extern "C"
11427#endif
11428char log ();
11429int
11430main ()
11431{
11432return log ();
11433  ;
11434  return 0;
11435}
11436_ACEOF
11437for ac_lib in '' m; do
11438  if test -z "$ac_lib"; then
11439    ac_res="none required"
11440  else
11441    ac_res=-l$ac_lib
11442    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11443  fi
11444  if ac_fn_c_try_link "$LINENO"; then :
11445  ac_cv_search_log=$ac_res
11446fi
11447rm -f core conftest.err conftest.$ac_objext \
11448    conftest$ac_exeext
11449  if ${ac_cv_search_log+:} false; then :
11450  break
11451fi
11452done
11453if ${ac_cv_search_log+:} false; then :
11454
11455else
11456  ac_cv_search_log=no
11457fi
11458rm conftest.$ac_ext
11459LIBS=$ac_func_search_save_LIBS
11460fi
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11462$as_echo "$ac_cv_search_log" >&6; }
11463ac_res=$ac_cv_search_log
11464if test "$ac_res" != no; then :
11465  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11466
11467fi
11468
11469fi
11470
11471#########
11472# See whether we should enable JSON1
11473# Check whether --enable-json1 was given.
11474if test "${enable_json1+set}" = set; then :
11475  enableval=$enable_json1; enable_json1=yes
11476else
11477  enable_json1=no
11478fi
11479
11480if test "${enable_json1}" = "yes" ; then
11481  OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1"
11482fi
11483
11484#########
11485# See whether we should enable RTREE
11486# Check whether --enable-rtree was given.
11487if test "${enable_rtree+set}" = set; then :
11488  enableval=$enable_rtree; enable_rtree=yes
11489else
11490  enable_rtree=no
11491fi
11492
11493if test "${enable_rtree}" = "yes" ; then
11494  OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE"
11495fi
11496
11497#########
11498# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
11499for option in $CFLAGS $CPPFLAGS
11500do
11501  case $option in
11502    -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11503    -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11504  esac
11505done
11506
11507
11508
11509# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11510ac_temp_CFLAGS=""
11511for option in $CFLAGS
11512do
11513  case $option in
11514    -DSQLITE_OMIT*) ;;
11515    -DSQLITE_ENABLE*) ;;
11516    *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11517  esac
11518done
11519CFLAGS=$ac_temp_CFLAGS
11520
11521
11522# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11523ac_temp_CPPFLAGS=""
11524for option in $CPPFLAGS
11525do
11526  case $option in
11527    -DSQLITE_OMIT*) ;;
11528    -DSQLITE_ENABLE*) ;;
11529    *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11530  esac
11531done
11532CPPFLAGS=$ac_temp_CPPFLAGS
11533
11534
11535# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11536ac_temp_BUILD_CFLAGS=""
11537for option in $BUILD_CFLAGS
11538do
11539  case $option in
11540    -DSQLITE_OMIT*) ;;
11541    -DSQLITE_ENABLE*) ;;
11542    *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11543  esac
11544done
11545BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11546
11547
11548#########
11549# See whether we should use GCOV
11550# Check whether --enable-gcov was given.
11551if test "${enable_gcov+set}" = set; then :
11552  enableval=$enable_gcov; use_gcov=$enableval
11553else
11554  use_gcov=no
11555fi
11556
11557if test "${use_gcov}" = "yes" ; then
11558  USE_GCOV=1
11559else
11560  USE_GCOV=0
11561fi
11562
11563
11564
11565#########
11566# Output the config header
11567ac_config_headers="$ac_config_headers config.h"
11568
11569
11570#########
11571# Generate the output files.
11572#
11573
11574ac_config_files="$ac_config_files Makefile sqlite3.pc"
11575
11576cat >confcache <<\_ACEOF
11577# This file is a shell script that caches the results of configure
11578# tests run on this system so they can be shared between configure
11579# scripts and configure runs, see configure's option --config-cache.
11580# It is not useful on other systems.  If it contains results you don't
11581# want to keep, you may remove or edit it.
11582#
11583# config.status only pays attention to the cache file if you give it
11584# the --recheck option to rerun configure.
11585#
11586# `ac_cv_env_foo' variables (set or unset) will be overridden when
11587# loading this file, other *unset* `ac_cv_foo' will be assigned the
11588# following values.
11589
11590_ACEOF
11591
11592# The following way of writing the cache mishandles newlines in values,
11593# but we know of no workaround that is simple, portable, and efficient.
11594# So, we kill variables containing newlines.
11595# Ultrix sh set writes to stderr and can't be redirected directly,
11596# and sets the high bit in the cache file unless we assign to the vars.
11597(
11598  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11599    eval ac_val=\$$ac_var
11600    case $ac_val in #(
11601    *${as_nl}*)
11602      case $ac_var in #(
11603      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11604$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11605      esac
11606      case $ac_var in #(
11607      _ | IFS | as_nl) ;; #(
11608      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11609      *) { eval $ac_var=; unset $ac_var;} ;;
11610      esac ;;
11611    esac
11612  done
11613
11614  (set) 2>&1 |
11615    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11616    *${as_nl}ac_space=\ *)
11617      # `set' does not quote correctly, so add quotes: double-quote
11618      # substitution turns \\\\ into \\, and sed turns \\ into \.
11619      sed -n \
11620	"s/'/'\\\\''/g;
11621	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11622      ;; #(
11623    *)
11624      # `set' quotes correctly as required by POSIX, so do not add quotes.
11625      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11626      ;;
11627    esac |
11628    sort
11629) |
11630  sed '
11631     /^ac_cv_env_/b end
11632     t clear
11633     :clear
11634     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11635     t end
11636     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11637     :end' >>confcache
11638if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11639  if test -w "$cache_file"; then
11640    if test "x$cache_file" != "x/dev/null"; then
11641      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11642$as_echo "$as_me: updating cache $cache_file" >&6;}
11643      if test ! -f "$cache_file" || test -h "$cache_file"; then
11644	cat confcache >"$cache_file"
11645      else
11646        case $cache_file in #(
11647        */* | ?:*)
11648	  mv -f confcache "$cache_file"$$ &&
11649	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11650        *)
11651	  mv -f confcache "$cache_file" ;;
11652	esac
11653      fi
11654    fi
11655  else
11656    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11657$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11658  fi
11659fi
11660rm -f confcache
11661
11662test "x$prefix" = xNONE && prefix=$ac_default_prefix
11663# Let make expand exec_prefix.
11664test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11665
11666DEFS=-DHAVE_CONFIG_H
11667
11668ac_libobjs=
11669ac_ltlibobjs=
11670U=
11671for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11672  # 1. Remove the extension, and $U if already installed.
11673  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11674  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11675  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11676  #    will be set to the directory where LIBOBJS objects are built.
11677  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11678  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11679done
11680LIBOBJS=$ac_libobjs
11681
11682LTLIBOBJS=$ac_ltlibobjs
11683
11684
11685
11686: "${CONFIG_STATUS=./config.status}"
11687ac_write_fail=0
11688ac_clean_files_save=$ac_clean_files
11689ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11691$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11692as_write_fail=0
11693cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11694#! $SHELL
11695# Generated by $as_me.
11696# Run this file to recreate the current configuration.
11697# Compiler output produced by configure, useful for debugging
11698# configure, is in config.log if it exists.
11699
11700debug=false
11701ac_cs_recheck=false
11702ac_cs_silent=false
11703
11704SHELL=\${CONFIG_SHELL-$SHELL}
11705export SHELL
11706_ASEOF
11707cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11708## -------------------- ##
11709## M4sh Initialization. ##
11710## -------------------- ##
11711
11712# Be more Bourne compatible
11713DUALCASE=1; export DUALCASE # for MKS sh
11714if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11715  emulate sh
11716  NULLCMD=:
11717  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11718  # is contrary to our usage.  Disable this feature.
11719  alias -g '${1+"$@"}'='"$@"'
11720  setopt NO_GLOB_SUBST
11721else
11722  case `(set -o) 2>/dev/null` in #(
11723  *posix*) :
11724    set -o posix ;; #(
11725  *) :
11726     ;;
11727esac
11728fi
11729
11730
11731as_nl='
11732'
11733export as_nl
11734# Printing a long string crashes Solaris 7 /usr/bin/printf.
11735as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11736as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11737as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11738# Prefer a ksh shell builtin over an external printf program on Solaris,
11739# but without wasting forks for bash or zsh.
11740if test -z "$BASH_VERSION$ZSH_VERSION" \
11741    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11742  as_echo='print -r --'
11743  as_echo_n='print -rn --'
11744elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11745  as_echo='printf %s\n'
11746  as_echo_n='printf %s'
11747else
11748  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11749    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11750    as_echo_n='/usr/ucb/echo -n'
11751  else
11752    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11753    as_echo_n_body='eval
11754      arg=$1;
11755      case $arg in #(
11756      *"$as_nl"*)
11757	expr "X$arg" : "X\\(.*\\)$as_nl";
11758	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11759      esac;
11760      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11761    '
11762    export as_echo_n_body
11763    as_echo_n='sh -c $as_echo_n_body as_echo'
11764  fi
11765  export as_echo_body
11766  as_echo='sh -c $as_echo_body as_echo'
11767fi
11768
11769# The user is always right.
11770if test "${PATH_SEPARATOR+set}" != set; then
11771  PATH_SEPARATOR=:
11772  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11773    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11774      PATH_SEPARATOR=';'
11775  }
11776fi
11777
11778
11779# IFS
11780# We need space, tab and new line, in precisely that order.  Quoting is
11781# there to prevent editors from complaining about space-tab.
11782# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11783# splitting by setting IFS to empty value.)
11784IFS=" ""	$as_nl"
11785
11786# Find who we are.  Look in the path if we contain no directory separator.
11787as_myself=
11788case $0 in #((
11789  *[\\/]* ) as_myself=$0 ;;
11790  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791for as_dir in $PATH
11792do
11793  IFS=$as_save_IFS
11794  test -z "$as_dir" && as_dir=.
11795    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11796  done
11797IFS=$as_save_IFS
11798
11799     ;;
11800esac
11801# We did not find ourselves, most probably we were run as `sh COMMAND'
11802# in which case we are not to be found in the path.
11803if test "x$as_myself" = x; then
11804  as_myself=$0
11805fi
11806if test ! -f "$as_myself"; then
11807  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11808  exit 1
11809fi
11810
11811# Unset variables that we do not need and which cause bugs (e.g. in
11812# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11813# suppresses any "Segmentation fault" message there.  '((' could
11814# trigger a bug in pdksh 5.2.14.
11815for as_var in BASH_ENV ENV MAIL MAILPATH
11816do eval test x\${$as_var+set} = xset \
11817  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11818done
11819PS1='$ '
11820PS2='> '
11821PS4='+ '
11822
11823# NLS nuisances.
11824LC_ALL=C
11825export LC_ALL
11826LANGUAGE=C
11827export LANGUAGE
11828
11829# CDPATH.
11830(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11831
11832
11833# as_fn_error STATUS ERROR [LINENO LOG_FD]
11834# ----------------------------------------
11835# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11836# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11837# script with STATUS, using 1 if that was 0.
11838as_fn_error ()
11839{
11840  as_status=$1; test $as_status -eq 0 && as_status=1
11841  if test "$4"; then
11842    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11843    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11844  fi
11845  $as_echo "$as_me: error: $2" >&2
11846  as_fn_exit $as_status
11847} # as_fn_error
11848
11849
11850# as_fn_set_status STATUS
11851# -----------------------
11852# Set $? to STATUS, without forking.
11853as_fn_set_status ()
11854{
11855  return $1
11856} # as_fn_set_status
11857
11858# as_fn_exit STATUS
11859# -----------------
11860# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11861as_fn_exit ()
11862{
11863  set +e
11864  as_fn_set_status $1
11865  exit $1
11866} # as_fn_exit
11867
11868# as_fn_unset VAR
11869# ---------------
11870# Portably unset VAR.
11871as_fn_unset ()
11872{
11873  { eval $1=; unset $1;}
11874}
11875as_unset=as_fn_unset
11876# as_fn_append VAR VALUE
11877# ----------------------
11878# Append the text in VALUE to the end of the definition contained in VAR. Take
11879# advantage of any shell optimizations that allow amortized linear growth over
11880# repeated appends, instead of the typical quadratic growth present in naive
11881# implementations.
11882if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11883  eval 'as_fn_append ()
11884  {
11885    eval $1+=\$2
11886  }'
11887else
11888  as_fn_append ()
11889  {
11890    eval $1=\$$1\$2
11891  }
11892fi # as_fn_append
11893
11894# as_fn_arith ARG...
11895# ------------------
11896# Perform arithmetic evaluation on the ARGs, and store the result in the
11897# global $as_val. Take advantage of shells that can avoid forks. The arguments
11898# must be portable across $(()) and expr.
11899if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11900  eval 'as_fn_arith ()
11901  {
11902    as_val=$(( $* ))
11903  }'
11904else
11905  as_fn_arith ()
11906  {
11907    as_val=`expr "$@" || test $? -eq 1`
11908  }
11909fi # as_fn_arith
11910
11911
11912if expr a : '\(a\)' >/dev/null 2>&1 &&
11913   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11914  as_expr=expr
11915else
11916  as_expr=false
11917fi
11918
11919if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11920  as_basename=basename
11921else
11922  as_basename=false
11923fi
11924
11925if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11926  as_dirname=dirname
11927else
11928  as_dirname=false
11929fi
11930
11931as_me=`$as_basename -- "$0" ||
11932$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11933	 X"$0" : 'X\(//\)$' \| \
11934	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11935$as_echo X/"$0" |
11936    sed '/^.*\/\([^/][^/]*\)\/*$/{
11937	    s//\1/
11938	    q
11939	  }
11940	  /^X\/\(\/\/\)$/{
11941	    s//\1/
11942	    q
11943	  }
11944	  /^X\/\(\/\).*/{
11945	    s//\1/
11946	    q
11947	  }
11948	  s/.*/./; q'`
11949
11950# Avoid depending upon Character Ranges.
11951as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11952as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11953as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11954as_cr_digits='0123456789'
11955as_cr_alnum=$as_cr_Letters$as_cr_digits
11956
11957ECHO_C= ECHO_N= ECHO_T=
11958case `echo -n x` in #(((((
11959-n*)
11960  case `echo 'xy\c'` in
11961  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11962  xy)  ECHO_C='\c';;
11963  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11964       ECHO_T='	';;
11965  esac;;
11966*)
11967  ECHO_N='-n';;
11968esac
11969
11970rm -f conf$$ conf$$.exe conf$$.file
11971if test -d conf$$.dir; then
11972  rm -f conf$$.dir/conf$$.file
11973else
11974  rm -f conf$$.dir
11975  mkdir conf$$.dir 2>/dev/null
11976fi
11977if (echo >conf$$.file) 2>/dev/null; then
11978  if ln -s conf$$.file conf$$ 2>/dev/null; then
11979    as_ln_s='ln -s'
11980    # ... but there are two gotchas:
11981    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11982    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11983    # In both cases, we have to default to `cp -pR'.
11984    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11985      as_ln_s='cp -pR'
11986  elif ln conf$$.file conf$$ 2>/dev/null; then
11987    as_ln_s=ln
11988  else
11989    as_ln_s='cp -pR'
11990  fi
11991else
11992  as_ln_s='cp -pR'
11993fi
11994rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11995rmdir conf$$.dir 2>/dev/null
11996
11997
11998# as_fn_mkdir_p
11999# -------------
12000# Create "$as_dir" as a directory, including parents if necessary.
12001as_fn_mkdir_p ()
12002{
12003
12004  case $as_dir in #(
12005  -*) as_dir=./$as_dir;;
12006  esac
12007  test -d "$as_dir" || eval $as_mkdir_p || {
12008    as_dirs=
12009    while :; do
12010      case $as_dir in #(
12011      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12012      *) as_qdir=$as_dir;;
12013      esac
12014      as_dirs="'$as_qdir' $as_dirs"
12015      as_dir=`$as_dirname -- "$as_dir" ||
12016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12017	 X"$as_dir" : 'X\(//\)[^/]' \| \
12018	 X"$as_dir" : 'X\(//\)$' \| \
12019	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12020$as_echo X"$as_dir" |
12021    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12022	    s//\1/
12023	    q
12024	  }
12025	  /^X\(\/\/\)[^/].*/{
12026	    s//\1/
12027	    q
12028	  }
12029	  /^X\(\/\/\)$/{
12030	    s//\1/
12031	    q
12032	  }
12033	  /^X\(\/\).*/{
12034	    s//\1/
12035	    q
12036	  }
12037	  s/.*/./; q'`
12038      test -d "$as_dir" && break
12039    done
12040    test -z "$as_dirs" || eval "mkdir $as_dirs"
12041  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12042
12043
12044} # as_fn_mkdir_p
12045if mkdir -p . 2>/dev/null; then
12046  as_mkdir_p='mkdir -p "$as_dir"'
12047else
12048  test -d ./-p && rmdir ./-p
12049  as_mkdir_p=false
12050fi
12051
12052
12053# as_fn_executable_p FILE
12054# -----------------------
12055# Test if FILE is an executable regular file.
12056as_fn_executable_p ()
12057{
12058  test -f "$1" && test -x "$1"
12059} # as_fn_executable_p
12060as_test_x='test -x'
12061as_executable_p=as_fn_executable_p
12062
12063# Sed expression to map a string onto a valid CPP name.
12064as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12065
12066# Sed expression to map a string onto a valid variable name.
12067as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12068
12069
12070exec 6>&1
12071## ----------------------------------- ##
12072## Main body of $CONFIG_STATUS script. ##
12073## ----------------------------------- ##
12074_ASEOF
12075test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12076
12077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12078# Save the log message, to keep $0 and so on meaningful, and to
12079# report actual input values of CONFIG_FILES etc. instead of their
12080# values after options handling.
12081ac_log="
12082This file was extended by sqlite $as_me 3.12.0, which was
12083generated by GNU Autoconf 2.69.  Invocation command line was
12084
12085  CONFIG_FILES    = $CONFIG_FILES
12086  CONFIG_HEADERS  = $CONFIG_HEADERS
12087  CONFIG_LINKS    = $CONFIG_LINKS
12088  CONFIG_COMMANDS = $CONFIG_COMMANDS
12089  $ $0 $@
12090
12091on `(hostname || uname -n) 2>/dev/null | sed 1q`
12092"
12093
12094_ACEOF
12095
12096case $ac_config_files in *"
12097"*) set x $ac_config_files; shift; ac_config_files=$*;;
12098esac
12099
12100case $ac_config_headers in *"
12101"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12102esac
12103
12104
12105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12106# Files that config.status was made for.
12107config_files="$ac_config_files"
12108config_headers="$ac_config_headers"
12109config_commands="$ac_config_commands"
12110
12111_ACEOF
12112
12113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12114ac_cs_usage="\
12115\`$as_me' instantiates files and other configuration actions
12116from templates according to the current configuration.  Unless the files
12117and actions are specified as TAGs, all are instantiated by default.
12118
12119Usage: $0 [OPTION]... [TAG]...
12120
12121  -h, --help       print this help, then exit
12122  -V, --version    print version number and configuration settings, then exit
12123      --config     print configuration, then exit
12124  -q, --quiet, --silent
12125                   do not print progress messages
12126  -d, --debug      don't remove temporary files
12127      --recheck    update $as_me by reconfiguring in the same conditions
12128      --file=FILE[:TEMPLATE]
12129                   instantiate the configuration file FILE
12130      --header=FILE[:TEMPLATE]
12131                   instantiate the configuration header FILE
12132
12133Configuration files:
12134$config_files
12135
12136Configuration headers:
12137$config_headers
12138
12139Configuration commands:
12140$config_commands
12141
12142Report bugs to the package provider."
12143
12144_ACEOF
12145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12146ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12147ac_cs_version="\\
12148sqlite config.status 3.12.0
12149configured by $0, generated by GNU Autoconf 2.69,
12150  with options \\"\$ac_cs_config\\"
12151
12152Copyright (C) 2012 Free Software Foundation, Inc.
12153This config.status script is free software; the Free Software Foundation
12154gives unlimited permission to copy, distribute and modify it."
12155
12156ac_pwd='$ac_pwd'
12157srcdir='$srcdir'
12158INSTALL='$INSTALL'
12159test -n "\$AWK" || AWK=awk
12160_ACEOF
12161
12162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12163# The default lists apply if the user does not specify any file.
12164ac_need_defaults=:
12165while test $# != 0
12166do
12167  case $1 in
12168  --*=?*)
12169    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12170    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12171    ac_shift=:
12172    ;;
12173  --*=)
12174    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12175    ac_optarg=
12176    ac_shift=:
12177    ;;
12178  *)
12179    ac_option=$1
12180    ac_optarg=$2
12181    ac_shift=shift
12182    ;;
12183  esac
12184
12185  case $ac_option in
12186  # Handling of the options.
12187  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12188    ac_cs_recheck=: ;;
12189  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12190    $as_echo "$ac_cs_version"; exit ;;
12191  --config | --confi | --conf | --con | --co | --c )
12192    $as_echo "$ac_cs_config"; exit ;;
12193  --debug | --debu | --deb | --de | --d | -d )
12194    debug=: ;;
12195  --file | --fil | --fi | --f )
12196    $ac_shift
12197    case $ac_optarg in
12198    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12199    '') as_fn_error $? "missing file argument" ;;
12200    esac
12201    as_fn_append CONFIG_FILES " '$ac_optarg'"
12202    ac_need_defaults=false;;
12203  --header | --heade | --head | --hea )
12204    $ac_shift
12205    case $ac_optarg in
12206    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12207    esac
12208    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12209    ac_need_defaults=false;;
12210  --he | --h)
12211    # Conflict between --help and --header
12212    as_fn_error $? "ambiguous option: \`$1'
12213Try \`$0 --help' for more information.";;
12214  --help | --hel | -h )
12215    $as_echo "$ac_cs_usage"; exit ;;
12216  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12217  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12218    ac_cs_silent=: ;;
12219
12220  # This is an error.
12221  -*) as_fn_error $? "unrecognized option: \`$1'
12222Try \`$0 --help' for more information." ;;
12223
12224  *) as_fn_append ac_config_targets " $1"
12225     ac_need_defaults=false ;;
12226
12227  esac
12228  shift
12229done
12230
12231ac_configure_extra_args=
12232
12233if $ac_cs_silent; then
12234  exec 6>/dev/null
12235  ac_configure_extra_args="$ac_configure_extra_args --silent"
12236fi
12237
12238_ACEOF
12239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12240if \$ac_cs_recheck; then
12241  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12242  shift
12243  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12244  CONFIG_SHELL='$SHELL'
12245  export CONFIG_SHELL
12246  exec "\$@"
12247fi
12248
12249_ACEOF
12250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12251exec 5>>config.log
12252{
12253  echo
12254  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12255## Running $as_me. ##
12256_ASBOX
12257  $as_echo "$ac_log"
12258} >&5
12259
12260_ACEOF
12261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12262#
12263# INIT-COMMANDS
12264#
12265
12266
12267# The HP-UX ksh and POSIX shell print the target directory to stdout
12268# if CDPATH is set.
12269(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12270
12271sed_quote_subst='$sed_quote_subst'
12272double_quote_subst='$double_quote_subst'
12273delay_variable_subst='$delay_variable_subst'
12274macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12275macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12276enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12277enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12278pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12279enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12280host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12281host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12282host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12283build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12284build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12285build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12286SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12287Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12288GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12289EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12290FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12291LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12292NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12293LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12294max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12295ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12296exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12297lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12298lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12299lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12300reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12301reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12302OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12303deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12304file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12305AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12306AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12307STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12308RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12309old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12310old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12311old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12312CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12313CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12314compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12315GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12316lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12317lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12318lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12319lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12320objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12321SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12322ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12323MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12324lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12325lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12326lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12327lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12328lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12329need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12330DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12331NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12332LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12333OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12334OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12335libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12336shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12337extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12338archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12339enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12340export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12341whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12342compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12343old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12344old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12345archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12346archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12347module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12348module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12349with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12350allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12351no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12352hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12353hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12354hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12355hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12356hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12357hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12358hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12359hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12360inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12361link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12362fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12363always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12364export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12365exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12366include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12367prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12368file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12369variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12370need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12371need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12372version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12373runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12374shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12375shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12376libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12377library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12378soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12379postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12380postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12381finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12382finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12383hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12384sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12385sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12386hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12387enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12388enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12389enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12390old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12391striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12392
12393LTCC='$LTCC'
12394LTCFLAGS='$LTCFLAGS'
12395compiler='$compiler_DEFAULT'
12396
12397# Quote evaled strings.
12398for var in SED \
12399GREP \
12400EGREP \
12401FGREP \
12402LD \
12403NM \
12404LN_S \
12405lt_SP2NL \
12406lt_NL2SP \
12407reload_flag \
12408OBJDUMP \
12409deplibs_check_method \
12410file_magic_cmd \
12411AR \
12412AR_FLAGS \
12413STRIP \
12414RANLIB \
12415CC \
12416CFLAGS \
12417compiler \
12418lt_cv_sys_global_symbol_pipe \
12419lt_cv_sys_global_symbol_to_cdecl \
12420lt_cv_sys_global_symbol_to_c_name_address \
12421lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12422SHELL \
12423ECHO \
12424lt_prog_compiler_no_builtin_flag \
12425lt_prog_compiler_wl \
12426lt_prog_compiler_pic \
12427lt_prog_compiler_static \
12428lt_cv_prog_compiler_c_o \
12429need_locks \
12430DSYMUTIL \
12431NMEDIT \
12432LIPO \
12433OTOOL \
12434OTOOL64 \
12435shrext_cmds \
12436export_dynamic_flag_spec \
12437whole_archive_flag_spec \
12438compiler_needs_object \
12439with_gnu_ld \
12440allow_undefined_flag \
12441no_undefined_flag \
12442hardcode_libdir_flag_spec \
12443hardcode_libdir_flag_spec_ld \
12444hardcode_libdir_separator \
12445fix_srcfile_path \
12446exclude_expsyms \
12447include_expsyms \
12448file_list_spec \
12449variables_saved_for_relink \
12450libname_spec \
12451library_names_spec \
12452soname_spec \
12453finish_eval \
12454old_striplib \
12455striplib; do
12456    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12457    *[\\\\\\\`\\"\\\$]*)
12458      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12459      ;;
12460    *)
12461      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12462      ;;
12463    esac
12464done
12465
12466# Double-quote double-evaled strings.
12467for var in reload_cmds \
12468old_postinstall_cmds \
12469old_postuninstall_cmds \
12470old_archive_cmds \
12471extract_expsyms_cmds \
12472old_archive_from_new_cmds \
12473old_archive_from_expsyms_cmds \
12474archive_cmds \
12475archive_expsym_cmds \
12476module_cmds \
12477module_expsym_cmds \
12478export_symbols_cmds \
12479prelink_cmds \
12480postinstall_cmds \
12481postuninstall_cmds \
12482finish_cmds \
12483sys_lib_search_path_spec \
12484sys_lib_dlsearch_path_spec; do
12485    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12486    *[\\\\\\\`\\"\\\$]*)
12487      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12488      ;;
12489    *)
12490      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12491      ;;
12492    esac
12493done
12494
12495# Fix-up fallback echo if it was mangled by the above quoting rules.
12496case \$lt_ECHO in
12497*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12498  ;;
12499esac
12500
12501ac_aux_dir='$ac_aux_dir'
12502xsi_shell='$xsi_shell'
12503lt_shell_append='$lt_shell_append'
12504
12505# See if we are running on zsh, and set the options which allow our
12506# commands through without removal of \ escapes INIT.
12507if test -n "\${ZSH_VERSION+set}" ; then
12508   setopt NO_GLOB_SUBST
12509fi
12510
12511
12512    PACKAGE='$PACKAGE'
12513    VERSION='$VERSION'
12514    TIMESTAMP='$TIMESTAMP'
12515    RM='$RM'
12516    ofile='$ofile'
12517
12518
12519
12520
12521_ACEOF
12522
12523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12524
12525# Handling of arguments.
12526for ac_config_target in $ac_config_targets
12527do
12528  case $ac_config_target in
12529    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12530    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12531    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12532    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12533
12534  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12535  esac
12536done
12537
12538
12539# If the user did not use the arguments to specify the items to instantiate,
12540# then the envvar interface is used.  Set only those that are not.
12541# We use the long form for the default assignment because of an extremely
12542# bizarre bug on SunOS 4.1.3.
12543if $ac_need_defaults; then
12544  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12545  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12546  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12547fi
12548
12549# Have a temporary directory for convenience.  Make it in the build tree
12550# simply because there is no reason against having it here, and in addition,
12551# creating and moving files from /tmp can sometimes cause problems.
12552# Hook for its removal unless debugging.
12553# Note that there is a small window in which the directory will not be cleaned:
12554# after its creation but before its name has been assigned to `$tmp'.
12555$debug ||
12556{
12557  tmp= ac_tmp=
12558  trap 'exit_status=$?
12559  : "${ac_tmp:=$tmp}"
12560  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12561' 0
12562  trap 'as_fn_exit 1' 1 2 13 15
12563}
12564# Create a (secure) tmp directory for tmp files.
12565
12566{
12567  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12568  test -d "$tmp"
12569}  ||
12570{
12571  tmp=./conf$$-$RANDOM
12572  (umask 077 && mkdir "$tmp")
12573} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12574ac_tmp=$tmp
12575
12576# Set up the scripts for CONFIG_FILES section.
12577# No need to generate them if there are no CONFIG_FILES.
12578# This happens for instance with `./config.status config.h'.
12579if test -n "$CONFIG_FILES"; then
12580
12581
12582ac_cr=`echo X | tr X '\015'`
12583# On cygwin, bash can eat \r inside `` if the user requested igncr.
12584# But we know of no other shell where ac_cr would be empty at this
12585# point, so we can use a bashism as a fallback.
12586if test "x$ac_cr" = x; then
12587  eval ac_cr=\$\'\\r\'
12588fi
12589ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12590if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12591  ac_cs_awk_cr='\\r'
12592else
12593  ac_cs_awk_cr=$ac_cr
12594fi
12595
12596echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12597_ACEOF
12598
12599
12600{
12601  echo "cat >conf$$subs.awk <<_ACEOF" &&
12602  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12603  echo "_ACEOF"
12604} >conf$$subs.sh ||
12605  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12606ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12607ac_delim='%!_!# '
12608for ac_last_try in false false false false false :; do
12609  . ./conf$$subs.sh ||
12610    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12611
12612  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12613  if test $ac_delim_n = $ac_delim_num; then
12614    break
12615  elif $ac_last_try; then
12616    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12617  else
12618    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12619  fi
12620done
12621rm -f conf$$subs.sh
12622
12623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12624cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12625_ACEOF
12626sed -n '
12627h
12628s/^/S["/; s/!.*/"]=/
12629p
12630g
12631s/^[^!]*!//
12632:repl
12633t repl
12634s/'"$ac_delim"'$//
12635t delim
12636:nl
12637h
12638s/\(.\{148\}\)..*/\1/
12639t more1
12640s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12641p
12642n
12643b repl
12644:more1
12645s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12646p
12647g
12648s/.\{148\}//
12649t nl
12650:delim
12651h
12652s/\(.\{148\}\)..*/\1/
12653t more2
12654s/["\\]/\\&/g; s/^/"/; s/$/"/
12655p
12656b
12657:more2
12658s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12659p
12660g
12661s/.\{148\}//
12662t delim
12663' <conf$$subs.awk | sed '
12664/^[^""]/{
12665  N
12666  s/\n//
12667}
12668' >>$CONFIG_STATUS || ac_write_fail=1
12669rm -f conf$$subs.awk
12670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12671_ACAWK
12672cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12673  for (key in S) S_is_set[key] = 1
12674  FS = ""
12675
12676}
12677{
12678  line = $ 0
12679  nfields = split(line, field, "@")
12680  substed = 0
12681  len = length(field[1])
12682  for (i = 2; i < nfields; i++) {
12683    key = field[i]
12684    keylen = length(key)
12685    if (S_is_set[key]) {
12686      value = S[key]
12687      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12688      len += length(value) + length(field[++i])
12689      substed = 1
12690    } else
12691      len += 1 + keylen
12692  }
12693
12694  print line
12695}
12696
12697_ACAWK
12698_ACEOF
12699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12700if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12701  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12702else
12703  cat
12704fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12705  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12706_ACEOF
12707
12708# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12709# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12710# trailing colons and then remove the whole line if VPATH becomes empty
12711# (actually we leave an empty line to preserve line numbers).
12712if test "x$srcdir" = x.; then
12713  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12714h
12715s///
12716s/^/:/
12717s/[	 ]*$/:/
12718s/:\$(srcdir):/:/g
12719s/:\${srcdir}:/:/g
12720s/:@srcdir@:/:/g
12721s/^:*//
12722s/:*$//
12723x
12724s/\(=[	 ]*\).*/\1/
12725G
12726s/\n//
12727s/^[^=]*=[	 ]*$//
12728}'
12729fi
12730
12731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12732fi # test -n "$CONFIG_FILES"
12733
12734# Set up the scripts for CONFIG_HEADERS section.
12735# No need to generate them if there are no CONFIG_HEADERS.
12736# This happens for instance with `./config.status Makefile'.
12737if test -n "$CONFIG_HEADERS"; then
12738cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12739BEGIN {
12740_ACEOF
12741
12742# Transform confdefs.h into an awk script `defines.awk', embedded as
12743# here-document in config.status, that substitutes the proper values into
12744# config.h.in to produce config.h.
12745
12746# Create a delimiter string that does not exist in confdefs.h, to ease
12747# handling of long lines.
12748ac_delim='%!_!# '
12749for ac_last_try in false false :; do
12750  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12751  if test -z "$ac_tt"; then
12752    break
12753  elif $ac_last_try; then
12754    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12755  else
12756    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12757  fi
12758done
12759
12760# For the awk script, D is an array of macro values keyed by name,
12761# likewise P contains macro parameters if any.  Preserve backslash
12762# newline sequences.
12763
12764ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12765sed -n '
12766s/.\{148\}/&'"$ac_delim"'/g
12767t rset
12768:rset
12769s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12770t def
12771d
12772:def
12773s/\\$//
12774t bsnl
12775s/["\\]/\\&/g
12776s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12777D["\1"]=" \3"/p
12778s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12779d
12780:bsnl
12781s/["\\]/\\&/g
12782s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12783D["\1"]=" \3\\\\\\n"\\/p
12784t cont
12785s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12786t cont
12787d
12788:cont
12789n
12790s/.\{148\}/&'"$ac_delim"'/g
12791t clear
12792:clear
12793s/\\$//
12794t bsnlc
12795s/["\\]/\\&/g; s/^/"/; s/$/"/p
12796d
12797:bsnlc
12798s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12799b cont
12800' <confdefs.h | sed '
12801s/'"$ac_delim"'/"\\\
12802"/g' >>$CONFIG_STATUS || ac_write_fail=1
12803
12804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12805  for (key in D) D_is_set[key] = 1
12806  FS = ""
12807}
12808/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12809  line = \$ 0
12810  split(line, arg, " ")
12811  if (arg[1] == "#") {
12812    defundef = arg[2]
12813    mac1 = arg[3]
12814  } else {
12815    defundef = substr(arg[1], 2)
12816    mac1 = arg[2]
12817  }
12818  split(mac1, mac2, "(") #)
12819  macro = mac2[1]
12820  prefix = substr(line, 1, index(line, defundef) - 1)
12821  if (D_is_set[macro]) {
12822    # Preserve the white space surrounding the "#".
12823    print prefix "define", macro P[macro] D[macro]
12824    next
12825  } else {
12826    # Replace #undef with comments.  This is necessary, for example,
12827    # in the case of _POSIX_SOURCE, which is predefined and required
12828    # on some systems where configure will not decide to define it.
12829    if (defundef == "undef") {
12830      print "/*", prefix defundef, macro, "*/"
12831      next
12832    }
12833  }
12834}
12835{ print }
12836_ACAWK
12837_ACEOF
12838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12839  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12840fi # test -n "$CONFIG_HEADERS"
12841
12842
12843eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12844shift
12845for ac_tag
12846do
12847  case $ac_tag in
12848  :[FHLC]) ac_mode=$ac_tag; continue;;
12849  esac
12850  case $ac_mode$ac_tag in
12851  :[FHL]*:*);;
12852  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12853  :[FH]-) ac_tag=-:-;;
12854  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12855  esac
12856  ac_save_IFS=$IFS
12857  IFS=:
12858  set x $ac_tag
12859  IFS=$ac_save_IFS
12860  shift
12861  ac_file=$1
12862  shift
12863
12864  case $ac_mode in
12865  :L) ac_source=$1;;
12866  :[FH])
12867    ac_file_inputs=
12868    for ac_f
12869    do
12870      case $ac_f in
12871      -) ac_f="$ac_tmp/stdin";;
12872      *) # Look for the file first in the build tree, then in the source tree
12873	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12874	 # because $ac_f cannot contain `:'.
12875	 test -f "$ac_f" ||
12876	   case $ac_f in
12877	   [\\/$]*) false;;
12878	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12879	   esac ||
12880	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12881      esac
12882      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12883      as_fn_append ac_file_inputs " '$ac_f'"
12884    done
12885
12886    # Let's still pretend it is `configure' which instantiates (i.e., don't
12887    # use $as_me), people would be surprised to read:
12888    #    /* config.h.  Generated by config.status.  */
12889    configure_input='Generated from '`
12890	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12891	`' by configure.'
12892    if test x"$ac_file" != x-; then
12893      configure_input="$ac_file.  $configure_input"
12894      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12895$as_echo "$as_me: creating $ac_file" >&6;}
12896    fi
12897    # Neutralize special characters interpreted by sed in replacement strings.
12898    case $configure_input in #(
12899    *\&* | *\|* | *\\* )
12900       ac_sed_conf_input=`$as_echo "$configure_input" |
12901       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12902    *) ac_sed_conf_input=$configure_input;;
12903    esac
12904
12905    case $ac_tag in
12906    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12907      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12908    esac
12909    ;;
12910  esac
12911
12912  ac_dir=`$as_dirname -- "$ac_file" ||
12913$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12914	 X"$ac_file" : 'X\(//\)[^/]' \| \
12915	 X"$ac_file" : 'X\(//\)$' \| \
12916	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12917$as_echo X"$ac_file" |
12918    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12919	    s//\1/
12920	    q
12921	  }
12922	  /^X\(\/\/\)[^/].*/{
12923	    s//\1/
12924	    q
12925	  }
12926	  /^X\(\/\/\)$/{
12927	    s//\1/
12928	    q
12929	  }
12930	  /^X\(\/\).*/{
12931	    s//\1/
12932	    q
12933	  }
12934	  s/.*/./; q'`
12935  as_dir="$ac_dir"; as_fn_mkdir_p
12936  ac_builddir=.
12937
12938case "$ac_dir" in
12939.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12940*)
12941  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12942  # A ".." for each directory in $ac_dir_suffix.
12943  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12944  case $ac_top_builddir_sub in
12945  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12946  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12947  esac ;;
12948esac
12949ac_abs_top_builddir=$ac_pwd
12950ac_abs_builddir=$ac_pwd$ac_dir_suffix
12951# for backward compatibility:
12952ac_top_builddir=$ac_top_build_prefix
12953
12954case $srcdir in
12955  .)  # We are building in place.
12956    ac_srcdir=.
12957    ac_top_srcdir=$ac_top_builddir_sub
12958    ac_abs_top_srcdir=$ac_pwd ;;
12959  [\\/]* | ?:[\\/]* )  # Absolute name.
12960    ac_srcdir=$srcdir$ac_dir_suffix;
12961    ac_top_srcdir=$srcdir
12962    ac_abs_top_srcdir=$srcdir ;;
12963  *) # Relative name.
12964    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12965    ac_top_srcdir=$ac_top_build_prefix$srcdir
12966    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12967esac
12968ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12969
12970
12971  case $ac_mode in
12972  :F)
12973  #
12974  # CONFIG_FILE
12975  #
12976
12977  case $INSTALL in
12978  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12979  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12980  esac
12981_ACEOF
12982
12983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12984# If the template does not know about datarootdir, expand it.
12985# FIXME: This hack should be removed a few years after 2.60.
12986ac_datarootdir_hack=; ac_datarootdir_seen=
12987ac_sed_dataroot='
12988/datarootdir/ {
12989  p
12990  q
12991}
12992/@datadir@/p
12993/@docdir@/p
12994/@infodir@/p
12995/@localedir@/p
12996/@mandir@/p'
12997case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12998*datarootdir*) ac_datarootdir_seen=yes;;
12999*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13000  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13001$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13002_ACEOF
13003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13004  ac_datarootdir_hack='
13005  s&@datadir@&$datadir&g
13006  s&@docdir@&$docdir&g
13007  s&@infodir@&$infodir&g
13008  s&@localedir@&$localedir&g
13009  s&@mandir@&$mandir&g
13010  s&\\\${datarootdir}&$datarootdir&g' ;;
13011esac
13012_ACEOF
13013
13014# Neutralize VPATH when `$srcdir' = `.'.
13015# Shell code in configure.ac might set extrasub.
13016# FIXME: do we really want to maintain this feature?
13017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13018ac_sed_extra="$ac_vpsub
13019$extrasub
13020_ACEOF
13021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13022:t
13023/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13024s|@configure_input@|$ac_sed_conf_input|;t t
13025s&@top_builddir@&$ac_top_builddir_sub&;t t
13026s&@top_build_prefix@&$ac_top_build_prefix&;t t
13027s&@srcdir@&$ac_srcdir&;t t
13028s&@abs_srcdir@&$ac_abs_srcdir&;t t
13029s&@top_srcdir@&$ac_top_srcdir&;t t
13030s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13031s&@builddir@&$ac_builddir&;t t
13032s&@abs_builddir@&$ac_abs_builddir&;t t
13033s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13034s&@INSTALL@&$ac_INSTALL&;t t
13035$ac_datarootdir_hack
13036"
13037eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13038  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13039
13040test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13041  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13042  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13043      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13044  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13045which seems to be undefined.  Please make sure it is defined" >&5
13046$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13047which seems to be undefined.  Please make sure it is defined" >&2;}
13048
13049  rm -f "$ac_tmp/stdin"
13050  case $ac_file in
13051  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13052  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13053  esac \
13054  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13055 ;;
13056  :H)
13057  #
13058  # CONFIG_HEADER
13059  #
13060  if test x"$ac_file" != x-; then
13061    {
13062      $as_echo "/* $configure_input  */" \
13063      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13064    } >"$ac_tmp/config.h" \
13065      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13066    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13067      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13068$as_echo "$as_me: $ac_file is unchanged" >&6;}
13069    else
13070      rm -f "$ac_file"
13071      mv "$ac_tmp/config.h" "$ac_file" \
13072	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13073    fi
13074  else
13075    $as_echo "/* $configure_input  */" \
13076      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13077      || as_fn_error $? "could not create -" "$LINENO" 5
13078  fi
13079 ;;
13080
13081  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13082$as_echo "$as_me: executing $ac_file commands" >&6;}
13083 ;;
13084  esac
13085
13086
13087  case $ac_file$ac_mode in
13088    "libtool":C)
13089
13090    # See if we are running on zsh, and set the options which allow our
13091    # commands through without removal of \ escapes.
13092    if test -n "${ZSH_VERSION+set}" ; then
13093      setopt NO_GLOB_SUBST
13094    fi
13095
13096    cfgfile="${ofile}T"
13097    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13098    $RM "$cfgfile"
13099
13100    cat <<_LT_EOF >> "$cfgfile"
13101#! $SHELL
13102
13103# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13104# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13105# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13106# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13107#
13108#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13109#                 2006, 2007, 2008 Free Software Foundation, Inc.
13110#   Written by Gordon Matzigkeit, 1996
13111#
13112#   This file is part of GNU Libtool.
13113#
13114# GNU Libtool is free software; you can redistribute it and/or
13115# modify it under the terms of the GNU General Public License as
13116# published by the Free Software Foundation; either version 2 of
13117# the License, or (at your option) any later version.
13118#
13119# As a special exception to the GNU General Public License,
13120# if you distribute this file as part of a program or library that
13121# is built using GNU Libtool, you may include this file under the
13122# same distribution terms that you use for the rest of that program.
13123#
13124# GNU Libtool is distributed in the hope that it will be useful,
13125# but WITHOUT ANY WARRANTY; without even the implied warranty of
13126# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13127# GNU General Public License for more details.
13128#
13129# You should have received a copy of the GNU General Public License
13130# along with GNU Libtool; see the file COPYING.  If not, a copy
13131# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13132# obtained by writing to the Free Software Foundation, Inc.,
13133# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13134
13135
13136# The names of the tagged configurations supported by this script.
13137available_tags=""
13138
13139# ### BEGIN LIBTOOL CONFIG
13140
13141# Which release of libtool.m4 was used?
13142macro_version=$macro_version
13143macro_revision=$macro_revision
13144
13145# Whether or not to build shared libraries.
13146build_libtool_libs=$enable_shared
13147
13148# Whether or not to build static libraries.
13149build_old_libs=$enable_static
13150
13151# What type of objects to build.
13152pic_mode=$pic_mode
13153
13154# Whether or not to optimize for fast installation.
13155fast_install=$enable_fast_install
13156
13157# The host system.
13158host_alias=$host_alias
13159host=$host
13160host_os=$host_os
13161
13162# The build system.
13163build_alias=$build_alias
13164build=$build
13165build_os=$build_os
13166
13167# A sed program that does not truncate output.
13168SED=$lt_SED
13169
13170# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13171Xsed="\$SED -e 1s/^X//"
13172
13173# A grep program that handles long lines.
13174GREP=$lt_GREP
13175
13176# An ERE matcher.
13177EGREP=$lt_EGREP
13178
13179# A literal string matcher.
13180FGREP=$lt_FGREP
13181
13182# A BSD- or MS-compatible name lister.
13183NM=$lt_NM
13184
13185# Whether we need soft or hard links.
13186LN_S=$lt_LN_S
13187
13188# What is the maximum length of a command?
13189max_cmd_len=$max_cmd_len
13190
13191# Object file suffix (normally "o").
13192objext=$ac_objext
13193
13194# Executable file suffix (normally "").
13195exeext=$exeext
13196
13197# whether the shell understands "unset".
13198lt_unset=$lt_unset
13199
13200# turn spaces into newlines.
13201SP2NL=$lt_lt_SP2NL
13202
13203# turn newlines into spaces.
13204NL2SP=$lt_lt_NL2SP
13205
13206# How to create reloadable object files.
13207reload_flag=$lt_reload_flag
13208reload_cmds=$lt_reload_cmds
13209
13210# An object symbol dumper.
13211OBJDUMP=$lt_OBJDUMP
13212
13213# Method to check whether dependent libraries are shared objects.
13214deplibs_check_method=$lt_deplibs_check_method
13215
13216# Command to use when deplibs_check_method == "file_magic".
13217file_magic_cmd=$lt_file_magic_cmd
13218
13219# The archiver.
13220AR=$lt_AR
13221AR_FLAGS=$lt_AR_FLAGS
13222
13223# A symbol stripping program.
13224STRIP=$lt_STRIP
13225
13226# Commands used to install an old-style archive.
13227RANLIB=$lt_RANLIB
13228old_postinstall_cmds=$lt_old_postinstall_cmds
13229old_postuninstall_cmds=$lt_old_postuninstall_cmds
13230
13231# A C compiler.
13232LTCC=$lt_CC
13233
13234# LTCC compiler flags.
13235LTCFLAGS=$lt_CFLAGS
13236
13237# Take the output of nm and produce a listing of raw symbols and C names.
13238global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13239
13240# Transform the output of nm in a proper C declaration.
13241global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13242
13243# Transform the output of nm in a C name address pair.
13244global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13245
13246# Transform the output of nm in a C name address pair when lib prefix is needed.
13247global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13248
13249# The name of the directory that contains temporary libtool files.
13250objdir=$objdir
13251
13252# Shell to use when invoking shell scripts.
13253SHELL=$lt_SHELL
13254
13255# An echo program that does not interpret backslashes.
13256ECHO=$lt_ECHO
13257
13258# Used to examine libraries when file_magic_cmd begins with "file".
13259MAGIC_CMD=$MAGIC_CMD
13260
13261# Must we lock files when doing compilation?
13262need_locks=$lt_need_locks
13263
13264# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13265DSYMUTIL=$lt_DSYMUTIL
13266
13267# Tool to change global to local symbols on Mac OS X.
13268NMEDIT=$lt_NMEDIT
13269
13270# Tool to manipulate fat objects and archives on Mac OS X.
13271LIPO=$lt_LIPO
13272
13273# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13274OTOOL=$lt_OTOOL
13275
13276# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13277OTOOL64=$lt_OTOOL64
13278
13279# Old archive suffix (normally "a").
13280libext=$libext
13281
13282# Shared library suffix (normally ".so").
13283shrext_cmds=$lt_shrext_cmds
13284
13285# The commands to extract the exported symbol list from a shared archive.
13286extract_expsyms_cmds=$lt_extract_expsyms_cmds
13287
13288# Variables whose values should be saved in libtool wrapper scripts and
13289# restored at link time.
13290variables_saved_for_relink=$lt_variables_saved_for_relink
13291
13292# Do we need the "lib" prefix for modules?
13293need_lib_prefix=$need_lib_prefix
13294
13295# Do we need a version for libraries?
13296need_version=$need_version
13297
13298# Library versioning type.
13299version_type=$version_type
13300
13301# Shared library runtime path variable.
13302runpath_var=$runpath_var
13303
13304# Shared library path variable.
13305shlibpath_var=$shlibpath_var
13306
13307# Is shlibpath searched before the hard-coded library search path?
13308shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13309
13310# Format of library name prefix.
13311libname_spec=$lt_libname_spec
13312
13313# List of archive names.  First name is the real one, the rest are links.
13314# The last name is the one that the linker finds with -lNAME
13315library_names_spec=$lt_library_names_spec
13316
13317# The coded name of the library, if different from the real name.
13318soname_spec=$lt_soname_spec
13319
13320# Command to use after installation of a shared archive.
13321postinstall_cmds=$lt_postinstall_cmds
13322
13323# Command to use after uninstallation of a shared archive.
13324postuninstall_cmds=$lt_postuninstall_cmds
13325
13326# Commands used to finish a libtool library installation in a directory.
13327finish_cmds=$lt_finish_cmds
13328
13329# As "finish_cmds", except a single script fragment to be evaled but
13330# not shown.
13331finish_eval=$lt_finish_eval
13332
13333# Whether we should hardcode library paths into libraries.
13334hardcode_into_libs=$hardcode_into_libs
13335
13336# Compile-time system search path for libraries.
13337sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13338
13339# Run-time system search path for libraries.
13340sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13341
13342# Whether dlopen is supported.
13343dlopen_support=$enable_dlopen
13344
13345# Whether dlopen of programs is supported.
13346dlopen_self=$enable_dlopen_self
13347
13348# Whether dlopen of statically linked programs is supported.
13349dlopen_self_static=$enable_dlopen_self_static
13350
13351# Commands to strip libraries.
13352old_striplib=$lt_old_striplib
13353striplib=$lt_striplib
13354
13355
13356# The linker used to build libraries.
13357LD=$lt_LD
13358
13359# Commands used to build an old-style archive.
13360old_archive_cmds=$lt_old_archive_cmds
13361
13362# A language specific compiler.
13363CC=$lt_compiler
13364
13365# Is the compiler the GNU compiler?
13366with_gcc=$GCC
13367
13368# Compiler flag to turn off builtin functions.
13369no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13370
13371# How to pass a linker flag through the compiler.
13372wl=$lt_lt_prog_compiler_wl
13373
13374# Additional compiler flags for building library objects.
13375pic_flag=$lt_lt_prog_compiler_pic
13376
13377# Compiler flag to prevent dynamic linking.
13378link_static_flag=$lt_lt_prog_compiler_static
13379
13380# Does compiler simultaneously support -c and -o options?
13381compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13382
13383# Whether or not to add -lc for building shared libraries.
13384build_libtool_need_lc=$archive_cmds_need_lc
13385
13386# Whether or not to disallow shared libs when runtime libs are static.
13387allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13388
13389# Compiler flag to allow reflexive dlopens.
13390export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13391
13392# Compiler flag to generate shared objects directly from archives.
13393whole_archive_flag_spec=$lt_whole_archive_flag_spec
13394
13395# Whether the compiler copes with passing no objects directly.
13396compiler_needs_object=$lt_compiler_needs_object
13397
13398# Create an old-style archive from a shared archive.
13399old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13400
13401# Create a temporary old-style archive to link instead of a shared archive.
13402old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13403
13404# Commands used to build a shared archive.
13405archive_cmds=$lt_archive_cmds
13406archive_expsym_cmds=$lt_archive_expsym_cmds
13407
13408# Commands used to build a loadable module if different from building
13409# a shared archive.
13410module_cmds=$lt_module_cmds
13411module_expsym_cmds=$lt_module_expsym_cmds
13412
13413# Whether we are building with GNU ld or not.
13414with_gnu_ld=$lt_with_gnu_ld
13415
13416# Flag that allows shared libraries with undefined symbols to be built.
13417allow_undefined_flag=$lt_allow_undefined_flag
13418
13419# Flag that enforces no undefined symbols.
13420no_undefined_flag=$lt_no_undefined_flag
13421
13422# Flag to hardcode \$libdir into a binary during linking.
13423# This must work even if \$libdir does not exist
13424hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13425
13426# If ld is used when linking, flag to hardcode \$libdir into a binary
13427# during linking.  This must work even if \$libdir does not exist.
13428hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13429
13430# Whether we need a single "-rpath" flag with a separated argument.
13431hardcode_libdir_separator=$lt_hardcode_libdir_separator
13432
13433# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13434# DIR into the resulting binary.
13435hardcode_direct=$hardcode_direct
13436
13437# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13438# DIR into the resulting binary and the resulting library dependency is
13439# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13440# library is relocated.
13441hardcode_direct_absolute=$hardcode_direct_absolute
13442
13443# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13444# into the resulting binary.
13445hardcode_minus_L=$hardcode_minus_L
13446
13447# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13448# into the resulting binary.
13449hardcode_shlibpath_var=$hardcode_shlibpath_var
13450
13451# Set to "yes" if building a shared library automatically hardcodes DIR
13452# into the library and all subsequent libraries and executables linked
13453# against it.
13454hardcode_automatic=$hardcode_automatic
13455
13456# Set to yes if linker adds runtime paths of dependent libraries
13457# to runtime path list.
13458inherit_rpath=$inherit_rpath
13459
13460# Whether libtool must link a program against all its dependency libraries.
13461link_all_deplibs=$link_all_deplibs
13462
13463# Fix the shell variable \$srcfile for the compiler.
13464fix_srcfile_path=$lt_fix_srcfile_path
13465
13466# Set to "yes" if exported symbols are required.
13467always_export_symbols=$always_export_symbols
13468
13469# The commands to list exported symbols.
13470export_symbols_cmds=$lt_export_symbols_cmds
13471
13472# Symbols that should not be listed in the preloaded symbols.
13473exclude_expsyms=$lt_exclude_expsyms
13474
13475# Symbols that must always be exported.
13476include_expsyms=$lt_include_expsyms
13477
13478# Commands necessary for linking programs (against libraries) with templates.
13479prelink_cmds=$lt_prelink_cmds
13480
13481# Specify filename containing input files.
13482file_list_spec=$lt_file_list_spec
13483
13484# How to hardcode a shared library path into an executable.
13485hardcode_action=$hardcode_action
13486
13487# ### END LIBTOOL CONFIG
13488
13489_LT_EOF
13490
13491  case $host_os in
13492  aix3*)
13493    cat <<\_LT_EOF >> "$cfgfile"
13494# AIX sometimes has problems with the GCC collect2 program.  For some
13495# reason, if we set the COLLECT_NAMES environment variable, the problems
13496# vanish in a puff of smoke.
13497if test "X${COLLECT_NAMES+set}" != Xset; then
13498  COLLECT_NAMES=
13499  export COLLECT_NAMES
13500fi
13501_LT_EOF
13502    ;;
13503  esac
13504
13505
13506ltmain="$ac_aux_dir/ltmain.sh"
13507
13508
13509  # We use sed instead of cat because bash on DJGPP gets confused if
13510  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13511  # text mode, it properly converts lines to CR/LF.  This bash problem
13512  # is reportedly fixed, but why not run on old versions too?
13513  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13514    || (rm -f "$cfgfile"; exit 1)
13515
13516  case $xsi_shell in
13517  yes)
13518    cat << \_LT_EOF >> "$cfgfile"
13519
13520# func_dirname file append nondir_replacement
13521# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13522# otherwise set result to NONDIR_REPLACEMENT.
13523func_dirname ()
13524{
13525  case ${1} in
13526    */*) func_dirname_result="${1%/*}${2}" ;;
13527    *  ) func_dirname_result="${3}" ;;
13528  esac
13529}
13530
13531# func_basename file
13532func_basename ()
13533{
13534  func_basename_result="${1##*/}"
13535}
13536
13537# func_dirname_and_basename file append nondir_replacement
13538# perform func_basename and func_dirname in a single function
13539# call:
13540#   dirname:  Compute the dirname of FILE.  If nonempty,
13541#             add APPEND to the result, otherwise set result
13542#             to NONDIR_REPLACEMENT.
13543#             value returned in "$func_dirname_result"
13544#   basename: Compute filename of FILE.
13545#             value retuned in "$func_basename_result"
13546# Implementation must be kept synchronized with func_dirname
13547# and func_basename. For efficiency, we do not delegate to
13548# those functions but instead duplicate the functionality here.
13549func_dirname_and_basename ()
13550{
13551  case ${1} in
13552    */*) func_dirname_result="${1%/*}${2}" ;;
13553    *  ) func_dirname_result="${3}" ;;
13554  esac
13555  func_basename_result="${1##*/}"
13556}
13557
13558# func_stripname prefix suffix name
13559# strip PREFIX and SUFFIX off of NAME.
13560# PREFIX and SUFFIX must not contain globbing or regex special
13561# characters, hashes, percent signs, but SUFFIX may contain a leading
13562# dot (in which case that matches only a dot).
13563func_stripname ()
13564{
13565  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13566  # positional parameters, so assign one to ordinary parameter first.
13567  func_stripname_result=${3}
13568  func_stripname_result=${func_stripname_result#"${1}"}
13569  func_stripname_result=${func_stripname_result%"${2}"}
13570}
13571
13572# func_opt_split
13573func_opt_split ()
13574{
13575  func_opt_split_opt=${1%%=*}
13576  func_opt_split_arg=${1#*=}
13577}
13578
13579# func_lo2o object
13580func_lo2o ()
13581{
13582  case ${1} in
13583    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13584    *)    func_lo2o_result=${1} ;;
13585  esac
13586}
13587
13588# func_xform libobj-or-source
13589func_xform ()
13590{
13591  func_xform_result=${1%.*}.lo
13592}
13593
13594# func_arith arithmetic-term...
13595func_arith ()
13596{
13597  func_arith_result=$(( $* ))
13598}
13599
13600# func_len string
13601# STRING may not start with a hyphen.
13602func_len ()
13603{
13604  func_len_result=${#1}
13605}
13606
13607_LT_EOF
13608    ;;
13609  *) # Bourne compatible functions.
13610    cat << \_LT_EOF >> "$cfgfile"
13611
13612# func_dirname file append nondir_replacement
13613# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13614# otherwise set result to NONDIR_REPLACEMENT.
13615func_dirname ()
13616{
13617  # Extract subdirectory from the argument.
13618  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13619  if test "X$func_dirname_result" = "X${1}"; then
13620    func_dirname_result="${3}"
13621  else
13622    func_dirname_result="$func_dirname_result${2}"
13623  fi
13624}
13625
13626# func_basename file
13627func_basename ()
13628{
13629  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13630}
13631
13632
13633# func_stripname prefix suffix name
13634# strip PREFIX and SUFFIX off of NAME.
13635# PREFIX and SUFFIX must not contain globbing or regex special
13636# characters, hashes, percent signs, but SUFFIX may contain a leading
13637# dot (in which case that matches only a dot).
13638# func_strip_suffix prefix name
13639func_stripname ()
13640{
13641  case ${2} in
13642    .*) func_stripname_result=`$ECHO "X${3}" \
13643           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13644    *)  func_stripname_result=`$ECHO "X${3}" \
13645           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13646  esac
13647}
13648
13649# sed scripts:
13650my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13651my_sed_long_arg='1s/^-[^=]*=//'
13652
13653# func_opt_split
13654func_opt_split ()
13655{
13656  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13657  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13658}
13659
13660# func_lo2o object
13661func_lo2o ()
13662{
13663  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13664}
13665
13666# func_xform libobj-or-source
13667func_xform ()
13668{
13669  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13670}
13671
13672# func_arith arithmetic-term...
13673func_arith ()
13674{
13675  func_arith_result=`expr "$@"`
13676}
13677
13678# func_len string
13679# STRING may not start with a hyphen.
13680func_len ()
13681{
13682  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13683}
13684
13685_LT_EOF
13686esac
13687
13688case $lt_shell_append in
13689  yes)
13690    cat << \_LT_EOF >> "$cfgfile"
13691
13692# func_append var value
13693# Append VALUE to the end of shell variable VAR.
13694func_append ()
13695{
13696  eval "$1+=\$2"
13697}
13698_LT_EOF
13699    ;;
13700  *)
13701    cat << \_LT_EOF >> "$cfgfile"
13702
13703# func_append var value
13704# Append VALUE to the end of shell variable VAR.
13705func_append ()
13706{
13707  eval "$1=\$$1\$2"
13708}
13709
13710_LT_EOF
13711    ;;
13712  esac
13713
13714
13715  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13716    || (rm -f "$cfgfile"; exit 1)
13717
13718  mv -f "$cfgfile" "$ofile" ||
13719    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13720  chmod +x "$ofile"
13721
13722 ;;
13723
13724  esac
13725done # for ac_tag
13726
13727
13728as_fn_exit 0
13729_ACEOF
13730ac_clean_files=$ac_clean_files_save
13731
13732test $ac_write_fail = 0 ||
13733  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13734
13735
13736# configure is writing to config.log, and then calls config.status.
13737# config.status does its own redirection, appending to config.log.
13738# Unfortunately, on DOS this fails, as config.log is still kept open
13739# by configure, so config.status won't be able to write to it; its
13740# output is simply discarded.  So we exec the FD to /dev/null,
13741# effectively closing config.log, so it can be properly (re)opened and
13742# appended to by config.status.  When coming back to configure, we
13743# need to make the FD available again.
13744if test "$no_create" != yes; then
13745  ac_cs_success=:
13746  ac_config_status_args=
13747  test "$silent" = yes &&
13748    ac_config_status_args="$ac_config_status_args --quiet"
13749  exec 5>/dev/null
13750  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13751  exec 5>>config.log
13752  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13753  # would make configure fail if this is the last instruction.
13754  $ac_cs_success || as_fn_exit 1
13755fi
13756if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13757  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13758$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13759fi
13760
13761