xref: /sqlite-3.40.0/configure (revision 4dfe98a8)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.8.12.
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.8.12'
730PACKAGE_STRING='sqlite 3.8.12'
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_READLINE
778TARGET_READLINE_INC
779TARGET_READLINE_LIBS
780HAVE_TCL
781TCL_SHLIB_SUFFIX
782TCL_STUB_LIB_SPEC
783TCL_STUB_LIB_FLAG
784TCL_STUB_LIB_FILE
785TCL_LIB_SPEC
786TCL_LIB_FLAG
787TCL_LIB_FILE
788TCL_INCLUDE_SPEC
789TCL_SRC_DIR
790TCL_BIN_DIR
791TCL_VERSION
792TARGET_EXEEXT
793SQLITE_OS_WIN
794SQLITE_OS_UNIX
795BUILD_EXEEXT
796TEMP_STORE
797ALLOWRELEASE
798SQLITE_THREADSAFE
799BUILD_CC
800VERSION_NUMBER
801RELEASE
802VERSION
803program_prefix
804TCLLIBDIR
805TCLSH_CMD
806AWK
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_readline
900with_readline_lib
901with_readline_inc
902enable_debug
903enable_amalgamation
904enable_load_extension
905enable_gcov
906'
907      ac_precious_vars='build_alias
908host_alias
909target_alias
910CC
911CFLAGS
912LDFLAGS
913LIBS
914CPPFLAGS
915CPP
916TCLLIBDIR'
917
918
919# Initialize some variables set by options.
920ac_init_help=
921ac_init_version=false
922ac_unrecognized_opts=
923ac_unrecognized_sep=
924# The variables have the same names as the options, with
925# dashes changed to underlines.
926cache_file=/dev/null
927exec_prefix=NONE
928no_create=
929no_recursion=
930prefix=NONE
931program_prefix=NONE
932program_suffix=NONE
933program_transform_name=s,x,x,
934silent=
935site=
936srcdir=
937verbose=
938x_includes=NONE
939x_libraries=NONE
940
941# Installation directory options.
942# These are left unexpanded so users can "make install exec_prefix=/foo"
943# and all the variables that are supposed to be based on exec_prefix
944# by default will actually change.
945# Use braces instead of parens because sh, perl, etc. also accept them.
946# (The list follows the same order as the GNU Coding Standards.)
947bindir='${exec_prefix}/bin'
948sbindir='${exec_prefix}/sbin'
949libexecdir='${exec_prefix}/libexec'
950datarootdir='${prefix}/share'
951datadir='${datarootdir}'
952sysconfdir='${prefix}/etc'
953sharedstatedir='${prefix}/com'
954localstatedir='${prefix}/var'
955includedir='${prefix}/include'
956oldincludedir='/usr/include'
957docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958infodir='${datarootdir}/info'
959htmldir='${docdir}'
960dvidir='${docdir}'
961pdfdir='${docdir}'
962psdir='${docdir}'
963libdir='${exec_prefix}/lib'
964localedir='${datarootdir}/locale'
965mandir='${datarootdir}/man'
966
967ac_prev=
968ac_dashdash=
969for ac_option
970do
971  # If the previous option needs an argument, assign it.
972  if test -n "$ac_prev"; then
973    eval $ac_prev=\$ac_option
974    ac_prev=
975    continue
976  fi
977
978  case $ac_option in
979  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980  *=)   ac_optarg= ;;
981  *)    ac_optarg=yes ;;
982  esac
983
984  # Accept the important Cygnus configure options, so we can diagnose typos.
985
986  case $ac_dashdash$ac_option in
987  --)
988    ac_dashdash=yes ;;
989
990  -bindir | --bindir | --bindi | --bind | --bin | --bi)
991    ac_prev=bindir ;;
992  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993    bindir=$ac_optarg ;;
994
995  -build | --build | --buil | --bui | --bu)
996    ac_prev=build_alias ;;
997  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998    build_alias=$ac_optarg ;;
999
1000  -cache-file | --cache-file | --cache-fil | --cache-fi \
1001  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002    ac_prev=cache_file ;;
1003  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005    cache_file=$ac_optarg ;;
1006
1007  --config-cache | -C)
1008    cache_file=config.cache ;;
1009
1010  -datadir | --datadir | --datadi | --datad)
1011    ac_prev=datadir ;;
1012  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013    datadir=$ac_optarg ;;
1014
1015  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016  | --dataroo | --dataro | --datar)
1017    ac_prev=datarootdir ;;
1018  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020    datarootdir=$ac_optarg ;;
1021
1022  -disable-* | --disable-*)
1023    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024    # Reject names that are not valid shell variable names.
1025    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026      as_fn_error $? "invalid feature name: $ac_useropt"
1027    ac_useropt_orig=$ac_useropt
1028    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029    case $ac_user_opts in
1030      *"
1031"enable_$ac_useropt"
1032"*) ;;
1033      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034	 ac_unrecognized_sep=', ';;
1035    esac
1036    eval enable_$ac_useropt=no ;;
1037
1038  -docdir | --docdir | --docdi | --doc | --do)
1039    ac_prev=docdir ;;
1040  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041    docdir=$ac_optarg ;;
1042
1043  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044    ac_prev=dvidir ;;
1045  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046    dvidir=$ac_optarg ;;
1047
1048  -enable-* | --enable-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error $? "invalid feature name: $ac_useropt"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"enable_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060	 ac_unrecognized_sep=', ';;
1061    esac
1062    eval enable_$ac_useropt=\$ac_optarg ;;
1063
1064  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066  | --exec | --exe | --ex)
1067    ac_prev=exec_prefix ;;
1068  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070  | --exec=* | --exe=* | --ex=*)
1071    exec_prefix=$ac_optarg ;;
1072
1073  -gas | --gas | --ga | --g)
1074    # Obsolete; use --with-gas.
1075    with_gas=yes ;;
1076
1077  -help | --help | --hel | --he | -h)
1078    ac_init_help=long ;;
1079  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080    ac_init_help=recursive ;;
1081  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082    ac_init_help=short ;;
1083
1084  -host | --host | --hos | --ho)
1085    ac_prev=host_alias ;;
1086  -host=* | --host=* | --hos=* | --ho=*)
1087    host_alias=$ac_optarg ;;
1088
1089  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090    ac_prev=htmldir ;;
1091  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092  | --ht=*)
1093    htmldir=$ac_optarg ;;
1094
1095  -includedir | --includedir | --includedi | --included | --include \
1096  | --includ | --inclu | --incl | --inc)
1097    ac_prev=includedir ;;
1098  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099  | --includ=* | --inclu=* | --incl=* | --inc=*)
1100    includedir=$ac_optarg ;;
1101
1102  -infodir | --infodir | --infodi | --infod | --info | --inf)
1103    ac_prev=infodir ;;
1104  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105    infodir=$ac_optarg ;;
1106
1107  -libdir | --libdir | --libdi | --libd)
1108    ac_prev=libdir ;;
1109  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110    libdir=$ac_optarg ;;
1111
1112  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113  | --libexe | --libex | --libe)
1114    ac_prev=libexecdir ;;
1115  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116  | --libexe=* | --libex=* | --libe=*)
1117    libexecdir=$ac_optarg ;;
1118
1119  -localedir | --localedir | --localedi | --localed | --locale)
1120    ac_prev=localedir ;;
1121  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122    localedir=$ac_optarg ;;
1123
1124  -localstatedir | --localstatedir | --localstatedi | --localstated \
1125  | --localstate | --localstat | --localsta | --localst | --locals)
1126    ac_prev=localstatedir ;;
1127  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129    localstatedir=$ac_optarg ;;
1130
1131  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132    ac_prev=mandir ;;
1133  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134    mandir=$ac_optarg ;;
1135
1136  -nfp | --nfp | --nf)
1137    # Obsolete; use --without-fp.
1138    with_fp=no ;;
1139
1140  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141  | --no-cr | --no-c | -n)
1142    no_create=yes ;;
1143
1144  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146    no_recursion=yes ;;
1147
1148  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150  | --oldin | --oldi | --old | --ol | --o)
1151    ac_prev=oldincludedir ;;
1152  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155    oldincludedir=$ac_optarg ;;
1156
1157  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158    ac_prev=prefix ;;
1159  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160    prefix=$ac_optarg ;;
1161
1162  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163  | --program-pre | --program-pr | --program-p)
1164    ac_prev=program_prefix ;;
1165  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167    program_prefix=$ac_optarg ;;
1168
1169  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170  | --program-suf | --program-su | --program-s)
1171    ac_prev=program_suffix ;;
1172  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174    program_suffix=$ac_optarg ;;
1175
1176  -program-transform-name | --program-transform-name \
1177  | --program-transform-nam | --program-transform-na \
1178  | --program-transform-n | --program-transform- \
1179  | --program-transform | --program-transfor \
1180  | --program-transfo | --program-transf \
1181  | --program-trans | --program-tran \
1182  | --progr-tra | --program-tr | --program-t)
1183    ac_prev=program_transform_name ;;
1184  -program-transform-name=* | --program-transform-name=* \
1185  | --program-transform-nam=* | --program-transform-na=* \
1186  | --program-transform-n=* | --program-transform-=* \
1187  | --program-transform=* | --program-transfor=* \
1188  | --program-transfo=* | --program-transf=* \
1189  | --program-trans=* | --program-tran=* \
1190  | --progr-tra=* | --program-tr=* | --program-t=*)
1191    program_transform_name=$ac_optarg ;;
1192
1193  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194    ac_prev=pdfdir ;;
1195  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196    pdfdir=$ac_optarg ;;
1197
1198  -psdir | --psdir | --psdi | --psd | --ps)
1199    ac_prev=psdir ;;
1200  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201    psdir=$ac_optarg ;;
1202
1203  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204  | -silent | --silent | --silen | --sile | --sil)
1205    silent=yes ;;
1206
1207  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208    ac_prev=sbindir ;;
1209  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210  | --sbi=* | --sb=*)
1211    sbindir=$ac_optarg ;;
1212
1213  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215  | --sharedst | --shareds | --shared | --share | --shar \
1216  | --sha | --sh)
1217    ac_prev=sharedstatedir ;;
1218  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221  | --sha=* | --sh=*)
1222    sharedstatedir=$ac_optarg ;;
1223
1224  -site | --site | --sit)
1225    ac_prev=site ;;
1226  -site=* | --site=* | --sit=*)
1227    site=$ac_optarg ;;
1228
1229  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230    ac_prev=srcdir ;;
1231  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232    srcdir=$ac_optarg ;;
1233
1234  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235  | --syscon | --sysco | --sysc | --sys | --sy)
1236    ac_prev=sysconfdir ;;
1237  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239    sysconfdir=$ac_optarg ;;
1240
1241  -target | --target | --targe | --targ | --tar | --ta | --t)
1242    ac_prev=target_alias ;;
1243  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244    target_alias=$ac_optarg ;;
1245
1246  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247    verbose=yes ;;
1248
1249  -version | --version | --versio | --versi | --vers | -V)
1250    ac_init_version=: ;;
1251
1252  -with-* | --with-*)
1253    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256      as_fn_error $? "invalid package name: $ac_useropt"
1257    ac_useropt_orig=$ac_useropt
1258    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259    case $ac_user_opts in
1260      *"
1261"with_$ac_useropt"
1262"*) ;;
1263      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264	 ac_unrecognized_sep=', ';;
1265    esac
1266    eval with_$ac_useropt=\$ac_optarg ;;
1267
1268  -without-* | --without-*)
1269    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270    # Reject names that are not valid shell variable names.
1271    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272      as_fn_error $? "invalid package name: $ac_useropt"
1273    ac_useropt_orig=$ac_useropt
1274    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275    case $ac_user_opts in
1276      *"
1277"with_$ac_useropt"
1278"*) ;;
1279      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280	 ac_unrecognized_sep=', ';;
1281    esac
1282    eval with_$ac_useropt=no ;;
1283
1284  --x)
1285    # Obsolete; use --with-x.
1286    with_x=yes ;;
1287
1288  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289  | --x-incl | --x-inc | --x-in | --x-i)
1290    ac_prev=x_includes ;;
1291  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293    x_includes=$ac_optarg ;;
1294
1295  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297    ac_prev=x_libraries ;;
1298  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300    x_libraries=$ac_optarg ;;
1301
1302  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1303Try \`$0 --help' for more information"
1304    ;;
1305
1306  *=*)
1307    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308    # Reject names that are not valid shell variable names.
1309    case $ac_envvar in #(
1310      '' | [0-9]* | *[!_$as_cr_alnum]* )
1311      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1312    esac
1313    eval $ac_envvar=\$ac_optarg
1314    export $ac_envvar ;;
1315
1316  *)
1317    # FIXME: should be removed in autoconf 3.0.
1318    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1322    ;;
1323
1324  esac
1325done
1326
1327if test -n "$ac_prev"; then
1328  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329  as_fn_error $? "missing argument to $ac_option"
1330fi
1331
1332if test -n "$ac_unrecognized_opts"; then
1333  case $enable_option_checking in
1334    no) ;;
1335    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1336    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337  esac
1338fi
1339
1340# Check all directory arguments for consistency.
1341for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342		datadir sysconfdir sharedstatedir localstatedir includedir \
1343		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344		libdir localedir mandir
1345do
1346  eval ac_val=\$$ac_var
1347  # Remove trailing slashes.
1348  case $ac_val in
1349    */ )
1350      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351      eval $ac_var=\$ac_val;;
1352  esac
1353  # Be sure to have absolute directory names.
1354  case $ac_val in
1355    [\\/$]* | ?:[\\/]* )  continue;;
1356    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357  esac
1358  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370  if test "x$build_alias" = x; then
1371    cross_compiling=maybe
1372  elif test "x$build_alias" != "x$host_alias"; then
1373    cross_compiling=yes
1374  fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
1383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386  as_fn_error $? "working directory cannot be determined"
1387test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388  as_fn_error $? "pwd does not report name of working directory"
1389
1390
1391# Find the source files, if location was not specified.
1392if test -z "$srcdir"; then
1393  ac_srcdir_defaulted=yes
1394  # Try the directory containing this script, then the parent directory.
1395  ac_confdir=`$as_dirname -- "$as_myself" ||
1396$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397	 X"$as_myself" : 'X\(//\)[^/]' \| \
1398	 X"$as_myself" : 'X\(//\)$' \| \
1399	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400$as_echo X"$as_myself" |
1401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402	    s//\1/
1403	    q
1404	  }
1405	  /^X\(\/\/\)[^/].*/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)$/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\).*/{
1414	    s//\1/
1415	    q
1416	  }
1417	  s/.*/./; q'`
1418  srcdir=$ac_confdir
1419  if test ! -r "$srcdir/$ac_unique_file"; then
1420    srcdir=..
1421  fi
1422else
1423  ac_srcdir_defaulted=no
1424fi
1425if test ! -r "$srcdir/$ac_unique_file"; then
1426  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1428fi
1429ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430ac_abs_confdir=`(
1431	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432	pwd)`
1433# When building in place, set srcdir=.
1434if test "$ac_abs_confdir" = "$ac_pwd"; then
1435  srcdir=.
1436fi
1437# Remove unnecessary trailing slashes from srcdir.
1438# Double slashes in file names in object file debugging info
1439# mess up M-x gdb in Emacs.
1440case $srcdir in
1441*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442esac
1443for ac_var in $ac_precious_vars; do
1444  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445  eval ac_env_${ac_var}_value=\$${ac_var}
1446  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448done
1449
1450#
1451# Report the --help message.
1452#
1453if test "$ac_init_help" = "long"; then
1454  # Omit some internal or obsolete options to make the list less imposing.
1455  # This message is too long to be a string in the A/UX 3.1 sh.
1456  cat <<_ACEOF
1457\`configure' configures sqlite 3.8.12 to adapt to many kinds of systems.
1458
1459Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462VAR=VALUE.  See below for descriptions of some of the useful variables.
1463
1464Defaults for the options are specified in brackets.
1465
1466Configuration:
1467  -h, --help              display this help and exit
1468      --help=short        display options specific to this package
1469      --help=recursive    display the short help of all the included packages
1470  -V, --version           display version information and exit
1471  -q, --quiet, --silent   do not print \`checking ...' messages
1472      --cache-file=FILE   cache test results in FILE [disabled]
1473  -C, --config-cache      alias for \`--cache-file=config.cache'
1474  -n, --no-create         do not create output files
1475      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1476
1477Installation directories:
1478  --prefix=PREFIX         install architecture-independent files in PREFIX
1479                          [$ac_default_prefix]
1480  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1481                          [PREFIX]
1482
1483By default, \`make install' will install all the files in
1484\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1485an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486for instance \`--prefix=\$HOME'.
1487
1488For better control, use the options below.
1489
1490Fine tuning of the installation directories:
1491  --bindir=DIR            user executables [EPREFIX/bin]
1492  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1493  --libexecdir=DIR        program executables [EPREFIX/libexec]
1494  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1495  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1496  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1497  --libdir=DIR            object code libraries [EPREFIX/lib]
1498  --includedir=DIR        C header files [PREFIX/include]
1499  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1500  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1501  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1502  --infodir=DIR           info documentation [DATAROOTDIR/info]
1503  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1504  --mandir=DIR            man documentation [DATAROOTDIR/man]
1505  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1506  --htmldir=DIR           html documentation [DOCDIR]
1507  --dvidir=DIR            dvi documentation [DOCDIR]
1508  --pdfdir=DIR            pdf documentation [DOCDIR]
1509  --psdir=DIR             ps documentation [DOCDIR]
1510_ACEOF
1511
1512  cat <<\_ACEOF
1513
1514System types:
1515  --build=BUILD     configure for building on BUILD [guessed]
1516  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1517_ACEOF
1518fi
1519
1520if test -n "$ac_init_help"; then
1521  case $ac_init_help in
1522     short | recursive ) echo "Configuration of sqlite 3.8.12:";;
1523   esac
1524  cat <<\_ACEOF
1525
1526Optional Features:
1527  --disable-option-checking  ignore unrecognized --enable/--with options
1528  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1529  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1530  --enable-shared[=PKGS]  build shared libraries [default=yes]
1531  --enable-static[=PKGS]  build static libraries [default=yes]
1532  --enable-fast-install[=PKGS]
1533                          optimize for fast installation [default=yes]
1534  --disable-libtool-lock  avoid locking (might break parallel builds)
1535  --disable-largefile     omit support for large files
1536  --disable-threadsafe    Disable mutexing
1537  --enable-releasemode    Support libtool link to release mode
1538  --enable-tempstore      Use an in-ram database for temporary tables
1539                          (never,no,yes,always)
1540  --disable-tcl           do not build TCL extension
1541  --disable-readline      disable readline support [default=detect]
1542  --enable-debug          enable debugging & verbose explain
1543  --disable-amalgamation  Disable the amalgamation and instead build all files
1544                          separately
1545  --disable-load-extension
1546                          Disable loading of external extensions
1547  --enable-gcov           Enable coverage testing using gcov
1548
1549Optional Packages:
1550  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1551  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1552  --with-pic              try to use only PIC/non-PIC objects [default=use
1553                          both]
1554  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1555  --with-tcl=DIR          directory containing tcl configuration
1556                          (tclConfig.sh)
1557  --with-readline-lib     specify readline library
1558  --with-readline-inc     specify readline include paths
1559
1560Some influential environment variables:
1561  CC          C compiler command
1562  CFLAGS      C compiler flags
1563  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1564              nonstandard directory <lib dir>
1565  LIBS        libraries to pass to the linker, e.g. -l<library>
1566  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1567              you have headers in a nonstandard directory <include dir>
1568  CPP         C preprocessor
1569  TCLLIBDIR   Where to install tcl plugin
1570
1571Use these variables to override the choices made by `configure' or to help
1572it to find libraries and programs with nonstandard names/locations.
1573
1574Report bugs to the package provider.
1575_ACEOF
1576ac_status=$?
1577fi
1578
1579if test "$ac_init_help" = "recursive"; then
1580  # If there are subdirs, report their specific --help.
1581  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1582    test -d "$ac_dir" ||
1583      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1584      continue
1585    ac_builddir=.
1586
1587case "$ac_dir" in
1588.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589*)
1590  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1591  # A ".." for each directory in $ac_dir_suffix.
1592  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1593  case $ac_top_builddir_sub in
1594  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596  esac ;;
1597esac
1598ac_abs_top_builddir=$ac_pwd
1599ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600# for backward compatibility:
1601ac_top_builddir=$ac_top_build_prefix
1602
1603case $srcdir in
1604  .)  # We are building in place.
1605    ac_srcdir=.
1606    ac_top_srcdir=$ac_top_builddir_sub
1607    ac_abs_top_srcdir=$ac_pwd ;;
1608  [\\/]* | ?:[\\/]* )  # Absolute name.
1609    ac_srcdir=$srcdir$ac_dir_suffix;
1610    ac_top_srcdir=$srcdir
1611    ac_abs_top_srcdir=$srcdir ;;
1612  *) # Relative name.
1613    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614    ac_top_srcdir=$ac_top_build_prefix$srcdir
1615    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616esac
1617ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618
1619    cd "$ac_dir" || { ac_status=$?; continue; }
1620    # Check for guested configure.
1621    if test -f "$ac_srcdir/configure.gnu"; then
1622      echo &&
1623      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624    elif test -f "$ac_srcdir/configure"; then
1625      echo &&
1626      $SHELL "$ac_srcdir/configure" --help=recursive
1627    else
1628      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629    fi || ac_status=$?
1630    cd "$ac_pwd" || { ac_status=$?; break; }
1631  done
1632fi
1633
1634test -n "$ac_init_help" && exit $ac_status
1635if $ac_init_version; then
1636  cat <<\_ACEOF
1637sqlite configure 3.8.12
1638generated by GNU Autoconf 2.69
1639
1640Copyright (C) 2012 Free Software Foundation, Inc.
1641This configure script is free software; the Free Software Foundation
1642gives unlimited permission to copy, distribute and modify it.
1643_ACEOF
1644  exit
1645fi
1646
1647## ------------------------ ##
1648## Autoconf initialization. ##
1649## ------------------------ ##
1650
1651# ac_fn_c_try_compile LINENO
1652# --------------------------
1653# Try to compile conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_compile ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  rm -f conftest.$ac_objext
1658  if { { ac_try="$ac_compile"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665  (eval "$ac_compile") 2>conftest.err
1666  ac_status=$?
1667  if test -s conftest.err; then
1668    grep -v '^ *+' conftest.err >conftest.er1
1669    cat conftest.er1 >&5
1670    mv -f conftest.er1 conftest.err
1671  fi
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && {
1674	 test -z "$ac_c_werror_flag" ||
1675	 test ! -s conftest.err
1676       } && test -s conftest.$ac_objext; then :
1677  ac_retval=0
1678else
1679  $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682	ac_retval=1
1683fi
1684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685  as_fn_set_status $ac_retval
1686
1687} # ac_fn_c_try_compile
1688
1689# ac_fn_c_try_link LINENO
1690# -----------------------
1691# Try to link conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_link ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  rm -f conftest.$ac_objext conftest$ac_exeext
1696  if { { ac_try="$ac_link"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_link") 2>conftest.err
1704  ac_status=$?
1705  if test -s conftest.err; then
1706    grep -v '^ *+' conftest.err >conftest.er1
1707    cat conftest.er1 >&5
1708    mv -f conftest.er1 conftest.err
1709  fi
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && {
1712	 test -z "$ac_c_werror_flag" ||
1713	 test ! -s conftest.err
1714       } && test -s conftest$ac_exeext && {
1715	 test "$cross_compiling" = yes ||
1716	 test -x conftest$ac_exeext
1717       }; then :
1718  ac_retval=0
1719else
1720  $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723	ac_retval=1
1724fi
1725  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727  # interfere with the next link command; also delete a directory that is
1728  # left behind by Apple's compiler.  We do this before executing the actions.
1729  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731  as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_link
1734
1735# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736# -------------------------------------------------------
1737# Tests whether HEADER exists and can be compiled using the include files in
1738# INCLUDES, setting the cache variable VAR accordingly.
1739ac_fn_c_check_header_compile ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if eval \${$3+:} false; then :
1745  $as_echo_n "(cached) " >&6
1746else
1747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749$4
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753  eval "$3=yes"
1754else
1755  eval "$3=no"
1756fi
1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758fi
1759eval ac_res=\$$3
1760	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764} # ac_fn_c_check_header_compile
1765
1766# ac_fn_c_try_cpp LINENO
1767# ----------------------
1768# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1769ac_fn_c_try_cpp ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  if { { ac_try="$ac_cpp conftest.$ac_ext"
1773case "(($ac_try" in
1774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775  *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1780  ac_status=$?
1781  if test -s conftest.err; then
1782    grep -v '^ *+' conftest.err >conftest.er1
1783    cat conftest.er1 >&5
1784    mv -f conftest.er1 conftest.err
1785  fi
1786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787  test $ac_status = 0; } > conftest.i && {
1788	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1789	 test ! -s conftest.err
1790       }; then :
1791  ac_retval=0
1792else
1793  $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796    ac_retval=1
1797fi
1798  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799  as_fn_set_status $ac_retval
1800
1801} # ac_fn_c_try_cpp
1802
1803# ac_fn_c_try_run LINENO
1804# ----------------------
1805# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806# that executables *can* be run.
1807ac_fn_c_try_run ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  if { { ac_try="$ac_link"
1811case "(($ac_try" in
1812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813  *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817  (eval "$ac_link") 2>&5
1818  ac_status=$?
1819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821  { { case "(($ac_try" in
1822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823  *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827  (eval "$ac_try") 2>&5
1828  ac_status=$?
1829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830  test $ac_status = 0; }; }; then :
1831  ac_retval=0
1832else
1833  $as_echo "$as_me: program exited with status $ac_status" >&5
1834       $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837       ac_retval=$ac_status
1838fi
1839  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841  as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_run
1844
1845# ac_fn_c_check_func LINENO FUNC VAR
1846# ----------------------------------
1847# Tests whether FUNC exists, setting the cache variable VAR accordingly
1848ac_fn_c_check_func ()
1849{
1850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if eval \${$3+:} false; then :
1854  $as_echo_n "(cached) " >&6
1855else
1856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h.  */
1858/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1860#define $2 innocuous_$2
1861
1862/* System header to define __stub macros and hopefully few prototypes,
1863    which can conflict with char $2 (); below.
1864    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865    <limits.h> exists even on freestanding compilers.  */
1866
1867#ifdef __STDC__
1868# include <limits.h>
1869#else
1870# include <assert.h>
1871#endif
1872
1873#undef $2
1874
1875/* Override any GCC internal prototype to avoid an error.
1876   Use char because int might match the return type of a GCC
1877   builtin and then its argument prototype would still apply.  */
1878#ifdef __cplusplus
1879extern "C"
1880#endif
1881char $2 ();
1882/* The GNU C library defines this for functions which it implements
1883    to always fail with ENOSYS.  Some functions are actually named
1884    something starting with __ and the normal name is an alias.  */
1885#if defined __stub_$2 || defined __stub___$2
1886choke me
1887#endif
1888
1889int
1890main ()
1891{
1892return $2 ();
1893  ;
1894  return 0;
1895}
1896_ACEOF
1897if ac_fn_c_try_link "$LINENO"; then :
1898  eval "$3=yes"
1899else
1900  eval "$3=no"
1901fi
1902rm -f core conftest.err conftest.$ac_objext \
1903    conftest$ac_exeext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910} # ac_fn_c_check_func
1911
1912# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1913# -------------------------------------------
1914# Tests whether TYPE exists after having included INCLUDES, setting cache
1915# variable VAR accordingly.
1916ac_fn_c_check_type ()
1917{
1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920$as_echo_n "checking for $2... " >&6; }
1921if eval \${$3+:} false; then :
1922  $as_echo_n "(cached) " >&6
1923else
1924  eval "$3=no"
1925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h.  */
1927$4
1928int
1929main ()
1930{
1931if (sizeof ($2))
1932	 return 0;
1933  ;
1934  return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h.  */
1940$4
1941int
1942main ()
1943{
1944if (sizeof (($2)))
1945	    return 0;
1946  ;
1947  return 0;
1948}
1949_ACEOF
1950if ac_fn_c_try_compile "$LINENO"; then :
1951
1952else
1953  eval "$3=yes"
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958fi
1959eval ac_res=\$$3
1960	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964} # ac_fn_c_check_type
1965
1966# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967# -------------------------------------------------------
1968# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969# the include files in INCLUDES and setting the cache variable VAR
1970# accordingly.
1971ac_fn_c_check_header_mongrel ()
1972{
1973  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974  if eval \${$3+:} false; then :
1975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976$as_echo_n "checking for $2... " >&6; }
1977if eval \${$3+:} false; then :
1978  $as_echo_n "(cached) " >&6
1979fi
1980eval ac_res=\$$3
1981	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983else
1984  # Is the header compilable?
1985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986$as_echo_n "checking $2 usability... " >&6; }
1987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h.  */
1989$4
1990#include <$2>
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  ac_header_compiler=yes
1994else
1995  ac_header_compiler=no
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999$as_echo "$ac_header_compiler" >&6; }
2000
2001# Is the header present?
2002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003$as_echo_n "checking $2 presence... " >&6; }
2004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h.  */
2006#include <$2>
2007_ACEOF
2008if ac_fn_c_try_cpp "$LINENO"; then :
2009  ac_header_preproc=yes
2010else
2011  ac_header_preproc=no
2012fi
2013rm -f conftest.err conftest.i conftest.$ac_ext
2014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015$as_echo "$ac_header_preproc" >&6; }
2016
2017# So?  What about this header?
2018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019  yes:no: )
2020    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024    ;;
2025  no:yes:* )
2026    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2029$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2030    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2033$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&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    ;;
2037esac
2038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039$as_echo_n "checking for $2... " >&6; }
2040if eval \${$3+:} false; then :
2041  $as_echo_n "(cached) " >&6
2042else
2043  eval "$3=\$ac_header_compiler"
2044fi
2045eval ac_res=\$$3
2046	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
2048fi
2049  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051} # ac_fn_c_check_header_mongrel
2052cat >config.log <<_ACEOF
2053This file contains any messages produced by compilers while
2054running configure, to aid debugging if configure makes a mistake.
2055
2056It was created by sqlite $as_me 3.8.12, which was
2057generated by GNU Autoconf 2.69.  Invocation command line was
2058
2059  $ $0 $@
2060
2061_ACEOF
2062exec 5>>config.log
2063{
2064cat <<_ASUNAME
2065## --------- ##
2066## Platform. ##
2067## --------- ##
2068
2069hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2070uname -m = `(uname -m) 2>/dev/null || echo unknown`
2071uname -r = `(uname -r) 2>/dev/null || echo unknown`
2072uname -s = `(uname -s) 2>/dev/null || echo unknown`
2073uname -v = `(uname -v) 2>/dev/null || echo unknown`
2074
2075/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2076/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2077
2078/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2079/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2080/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2081/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2082/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2083/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2084/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2085
2086_ASUNAME
2087
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091  IFS=$as_save_IFS
2092  test -z "$as_dir" && as_dir=.
2093    $as_echo "PATH: $as_dir"
2094  done
2095IFS=$as_save_IFS
2096
2097} >&5
2098
2099cat >&5 <<_ACEOF
2100
2101
2102## ----------- ##
2103## Core tests. ##
2104## ----------- ##
2105
2106_ACEOF
2107
2108
2109# Keep a trace of the command line.
2110# Strip out --no-create and --no-recursion so they do not pile up.
2111# Strip out --silent because we don't want to record it for future runs.
2112# Also quote any args containing shell meta-characters.
2113# Make two passes to allow for proper duplicate-argument suppression.
2114ac_configure_args=
2115ac_configure_args0=
2116ac_configure_args1=
2117ac_must_keep_next=false
2118for ac_pass in 1 2
2119do
2120  for ac_arg
2121  do
2122    case $ac_arg in
2123    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2124    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2125    | -silent | --silent | --silen | --sile | --sil)
2126      continue ;;
2127    *\'*)
2128      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2129    esac
2130    case $ac_pass in
2131    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2132    2)
2133      as_fn_append ac_configure_args1 " '$ac_arg'"
2134      if test $ac_must_keep_next = true; then
2135	ac_must_keep_next=false # Got value, back to normal.
2136      else
2137	case $ac_arg in
2138	  *=* | --config-cache | -C | -disable-* | --disable-* \
2139	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2140	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2141	  | -with-* | --with-* | -without-* | --without-* | --x)
2142	    case "$ac_configure_args0 " in
2143	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2144	    esac
2145	    ;;
2146	  -* ) ac_must_keep_next=true ;;
2147	esac
2148      fi
2149      as_fn_append ac_configure_args " '$ac_arg'"
2150      ;;
2151    esac
2152  done
2153done
2154{ ac_configure_args0=; unset ac_configure_args0;}
2155{ ac_configure_args1=; unset ac_configure_args1;}
2156
2157# When interrupted or exit'd, cleanup temporary files, and complete
2158# config.log.  We remove comments because anyway the quotes in there
2159# would cause problems or look ugly.
2160# WARNING: Use '\'' to represent an apostrophe within the trap.
2161# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2162trap 'exit_status=$?
2163  # Save into config.log some information that might help in debugging.
2164  {
2165    echo
2166
2167    $as_echo "## ---------------- ##
2168## Cache variables. ##
2169## ---------------- ##"
2170    echo
2171    # The following way of writing the cache mishandles newlines in values,
2172(
2173  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2174    eval ac_val=\$$ac_var
2175    case $ac_val in #(
2176    *${as_nl}*)
2177      case $ac_var in #(
2178      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2179$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2180      esac
2181      case $ac_var in #(
2182      _ | IFS | as_nl) ;; #(
2183      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2184      *) { eval $ac_var=; unset $ac_var;} ;;
2185      esac ;;
2186    esac
2187  done
2188  (set) 2>&1 |
2189    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2190    *${as_nl}ac_space=\ *)
2191      sed -n \
2192	"s/'\''/'\''\\\\'\'''\''/g;
2193	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2194      ;; #(
2195    *)
2196      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2197      ;;
2198    esac |
2199    sort
2200)
2201    echo
2202
2203    $as_echo "## ----------------- ##
2204## Output variables. ##
2205## ----------------- ##"
2206    echo
2207    for ac_var in $ac_subst_vars
2208    do
2209      eval ac_val=\$$ac_var
2210      case $ac_val in
2211      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212      esac
2213      $as_echo "$ac_var='\''$ac_val'\''"
2214    done | sort
2215    echo
2216
2217    if test -n "$ac_subst_files"; then
2218      $as_echo "## ------------------- ##
2219## File substitutions. ##
2220## ------------------- ##"
2221      echo
2222      for ac_var in $ac_subst_files
2223      do
2224	eval ac_val=\$$ac_var
2225	case $ac_val in
2226	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227	esac
2228	$as_echo "$ac_var='\''$ac_val'\''"
2229      done | sort
2230      echo
2231    fi
2232
2233    if test -s confdefs.h; then
2234      $as_echo "## ----------- ##
2235## confdefs.h. ##
2236## ----------- ##"
2237      echo
2238      cat confdefs.h
2239      echo
2240    fi
2241    test "$ac_signal" != 0 &&
2242      $as_echo "$as_me: caught signal $ac_signal"
2243    $as_echo "$as_me: exit $exit_status"
2244  } >&5
2245  rm -f core *.core core.conftest.* &&
2246    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247    exit $exit_status
2248' 0
2249for ac_signal in 1 2 13 15; do
2250  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2251done
2252ac_signal=0
2253
2254# confdefs.h avoids OS command line length limits that DEFS can exceed.
2255rm -f -r conftest* confdefs.h
2256
2257$as_echo "/* confdefs.h */" > confdefs.h
2258
2259# Predefined preprocessor variables.
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_NAME "$PACKAGE_NAME"
2263_ACEOF
2264
2265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267_ACEOF
2268
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_VERSION "$PACKAGE_VERSION"
2271_ACEOF
2272
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_STRING "$PACKAGE_STRING"
2275_ACEOF
2276
2277cat >>confdefs.h <<_ACEOF
2278#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279_ACEOF
2280
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_URL "$PACKAGE_URL"
2283_ACEOF
2284
2285
2286# Let the site file select an alternate cache file if it wants to.
2287# Prefer an explicitly selected file to automatically selected ones.
2288ac_site_file1=NONE
2289ac_site_file2=NONE
2290if test -n "$CONFIG_SITE"; then
2291  # We do not want a PATH search for config.site.
2292  case $CONFIG_SITE in #((
2293    -*)  ac_site_file1=./$CONFIG_SITE;;
2294    */*) ac_site_file1=$CONFIG_SITE;;
2295    *)   ac_site_file1=./$CONFIG_SITE;;
2296  esac
2297elif test "x$prefix" != xNONE; then
2298  ac_site_file1=$prefix/share/config.site
2299  ac_site_file2=$prefix/etc/config.site
2300else
2301  ac_site_file1=$ac_default_prefix/share/config.site
2302  ac_site_file2=$ac_default_prefix/etc/config.site
2303fi
2304for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2305do
2306  test "x$ac_site_file" = xNONE && continue
2307  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2308    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2309$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2310    sed 's/^/| /' "$ac_site_file" >&5
2311    . "$ac_site_file" \
2312      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314as_fn_error $? "failed to load site script $ac_site_file
2315See \`config.log' for more details" "$LINENO" 5; }
2316  fi
2317done
2318
2319if test -r "$cache_file"; then
2320  # Some versions of bash will fail to source /dev/null (special files
2321  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2322  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2323    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2324$as_echo "$as_me: loading cache $cache_file" >&6;}
2325    case $cache_file in
2326      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2327      *)                      . "./$cache_file";;
2328    esac
2329  fi
2330else
2331  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2332$as_echo "$as_me: creating cache $cache_file" >&6;}
2333  >$cache_file
2334fi
2335
2336# Check that the precious variables saved in the cache have kept the same
2337# value.
2338ac_cache_corrupted=false
2339for ac_var in $ac_precious_vars; do
2340  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2341  eval ac_new_set=\$ac_env_${ac_var}_set
2342  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2343  eval ac_new_val=\$ac_env_${ac_var}_value
2344  case $ac_old_set,$ac_new_set in
2345    set,)
2346      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2347$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2348      ac_cache_corrupted=: ;;
2349    ,set)
2350      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2351$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2352      ac_cache_corrupted=: ;;
2353    ,);;
2354    *)
2355      if test "x$ac_old_val" != "x$ac_new_val"; then
2356	# differences in whitespace do not lead to failure.
2357	ac_old_val_w=`echo x $ac_old_val`
2358	ac_new_val_w=`echo x $ac_new_val`
2359	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2360	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2361$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362	  ac_cache_corrupted=:
2363	else
2364	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2365$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2366	  eval $ac_var=\$ac_old_val
2367	fi
2368	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2369$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2370	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2371$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2372      fi;;
2373  esac
2374  # Pass precious variables to config.status.
2375  if test "$ac_new_set" = set; then
2376    case $ac_new_val in
2377    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2378    *) ac_arg=$ac_var=$ac_new_val ;;
2379    esac
2380    case " $ac_configure_args " in
2381      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2382      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2383    esac
2384  fi
2385done
2386if $ac_cache_corrupted; then
2387  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2390$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2391  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2392fi
2393## -------------------- ##
2394## Main body of script. ##
2395## -------------------- ##
2396
2397ac_ext=c
2398ac_cpp='$CPP $CPPFLAGS'
2399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402
2403
2404
2405sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2406if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2407as_fn_error $? "configure script is out of date:
2408 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2409 top level VERSION file     = $sqlite_version_sanity_check
2410please regen with autoconf" "$LINENO" 5
2411fi
2412
2413#########
2414# Programs needed
2415#
2416case `pwd` in
2417  *\ * | *\	*)
2418    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2419$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2420esac
2421
2422
2423
2424macro_version='2.2.6'
2425macro_revision='1.3012'
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439ltmain="$ac_aux_dir/ltmain.sh"
2440
2441ac_aux_dir=
2442for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2443  if test -f "$ac_dir/install-sh"; then
2444    ac_aux_dir=$ac_dir
2445    ac_install_sh="$ac_aux_dir/install-sh -c"
2446    break
2447  elif test -f "$ac_dir/install.sh"; then
2448    ac_aux_dir=$ac_dir
2449    ac_install_sh="$ac_aux_dir/install.sh -c"
2450    break
2451  elif test -f "$ac_dir/shtool"; then
2452    ac_aux_dir=$ac_dir
2453    ac_install_sh="$ac_aux_dir/shtool install -c"
2454    break
2455  fi
2456done
2457if test -z "$ac_aux_dir"; then
2458  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2459fi
2460
2461# These three variables are undocumented and unsupported,
2462# and are intended to be withdrawn in a future Autoconf release.
2463# They can cause serious problems if a builder's source tree is in a directory
2464# whose full name contains unusual characters.
2465ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2466ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2467ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2468
2469
2470# Make sure we can run config.sub.
2471$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2472  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2473
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2475$as_echo_n "checking build system type... " >&6; }
2476if ${ac_cv_build+:} false; then :
2477  $as_echo_n "(cached) " >&6
2478else
2479  ac_build_alias=$build_alias
2480test "x$ac_build_alias" = x &&
2481  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2482test "x$ac_build_alias" = x &&
2483  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2484ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2485  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2486
2487fi
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2489$as_echo "$ac_cv_build" >&6; }
2490case $ac_cv_build in
2491*-*-*) ;;
2492*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2493esac
2494build=$ac_cv_build
2495ac_save_IFS=$IFS; IFS='-'
2496set x $ac_cv_build
2497shift
2498build_cpu=$1
2499build_vendor=$2
2500shift; shift
2501# Remember, the first character of IFS is used to create $*,
2502# except with old shells:
2503build_os=$*
2504IFS=$ac_save_IFS
2505case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2506
2507
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2509$as_echo_n "checking host system type... " >&6; }
2510if ${ac_cv_host+:} false; then :
2511  $as_echo_n "(cached) " >&6
2512else
2513  if test "x$host_alias" = x; then
2514  ac_cv_host=$ac_cv_build
2515else
2516  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2517    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2518fi
2519
2520fi
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2522$as_echo "$ac_cv_host" >&6; }
2523case $ac_cv_host in
2524*-*-*) ;;
2525*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2526esac
2527host=$ac_cv_host
2528ac_save_IFS=$IFS; IFS='-'
2529set x $ac_cv_host
2530shift
2531host_cpu=$1
2532host_vendor=$2
2533shift; shift
2534# Remember, the first character of IFS is used to create $*,
2535# except with old shells:
2536host_os=$*
2537IFS=$ac_save_IFS
2538case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2539
2540
2541ac_ext=c
2542ac_cpp='$CPP $CPPFLAGS'
2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546if test -n "$ac_tool_prefix"; then
2547  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2548set dummy ${ac_tool_prefix}gcc; ac_word=$2
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550$as_echo_n "checking for $ac_word... " >&6; }
2551if ${ac_cv_prog_CC+:} false; then :
2552  $as_echo_n "(cached) " >&6
2553else
2554  if test -n "$CC"; then
2555  ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560  IFS=$as_save_IFS
2561  test -z "$as_dir" && as_dir=.
2562    for ac_exec_ext in '' $ac_executable_extensions; do
2563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566    break 2
2567  fi
2568done
2569  done
2570IFS=$as_save_IFS
2571
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2577$as_echo "$CC" >&6; }
2578else
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580$as_echo "no" >&6; }
2581fi
2582
2583
2584fi
2585if test -z "$ac_cv_prog_CC"; then
2586  ac_ct_CC=$CC
2587  # Extract the first word of "gcc", so it can be a program name with args.
2588set dummy gcc; ac_word=$2
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590$as_echo_n "checking for $ac_word... " >&6; }
2591if ${ac_cv_prog_ac_ct_CC+:} false; then :
2592  $as_echo_n "(cached) " >&6
2593else
2594  if test -n "$ac_ct_CC"; then
2595  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600  IFS=$as_save_IFS
2601  test -z "$as_dir" && as_dir=.
2602    for ac_exec_ext in '' $ac_executable_extensions; do
2603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604    ac_cv_prog_ac_ct_CC="gcc"
2605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606    break 2
2607  fi
2608done
2609  done
2610IFS=$as_save_IFS
2611
2612fi
2613fi
2614ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615if test -n "$ac_ct_CC"; then
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2617$as_echo "$ac_ct_CC" >&6; }
2618else
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620$as_echo "no" >&6; }
2621fi
2622
2623  if test "x$ac_ct_CC" = x; then
2624    CC=""
2625  else
2626    case $cross_compiling:$ac_tool_warned in
2627yes:)
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2630ac_tool_warned=yes ;;
2631esac
2632    CC=$ac_ct_CC
2633  fi
2634else
2635  CC="$ac_cv_prog_CC"
2636fi
2637
2638if test -z "$CC"; then
2639          if test -n "$ac_tool_prefix"; then
2640    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2641set dummy ${ac_tool_prefix}cc; ac_word=$2
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643$as_echo_n "checking for $ac_word... " >&6; }
2644if ${ac_cv_prog_CC+:} false; then :
2645  $as_echo_n "(cached) " >&6
2646else
2647  if test -n "$CC"; then
2648  ac_cv_prog_CC="$CC" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653  IFS=$as_save_IFS
2654  test -z "$as_dir" && as_dir=.
2655    for ac_exec_ext in '' $ac_executable_extensions; do
2656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657    ac_cv_prog_CC="${ac_tool_prefix}cc"
2658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659    break 2
2660  fi
2661done
2662  done
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667CC=$ac_cv_prog_CC
2668if test -n "$CC"; then
2669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2670$as_echo "$CC" >&6; }
2671else
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673$as_echo "no" >&6; }
2674fi
2675
2676
2677  fi
2678fi
2679if test -z "$CC"; then
2680  # Extract the first word of "cc", so it can be a program name with args.
2681set dummy cc; ac_word=$2
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
2684if ${ac_cv_prog_CC+:} false; then :
2685  $as_echo_n "(cached) " >&6
2686else
2687  if test -n "$CC"; then
2688  ac_cv_prog_CC="$CC" # Let the user override the test.
2689else
2690  ac_prog_rejected=no
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694  IFS=$as_save_IFS
2695  test -z "$as_dir" && as_dir=.
2696    for ac_exec_ext in '' $ac_executable_extensions; do
2697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2699       ac_prog_rejected=yes
2700       continue
2701     fi
2702    ac_cv_prog_CC="cc"
2703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704    break 2
2705  fi
2706done
2707  done
2708IFS=$as_save_IFS
2709
2710if test $ac_prog_rejected = yes; then
2711  # We found a bogon in the path, so make sure we never use it.
2712  set dummy $ac_cv_prog_CC
2713  shift
2714  if test $# != 0; then
2715    # We chose a different compiler from the bogus one.
2716    # However, it has the same basename, so the bogon will be chosen
2717    # first if we set CC to just the basename; use the full file name.
2718    shift
2719    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2720  fi
2721fi
2722fi
2723fi
2724CC=$ac_cv_prog_CC
2725if test -n "$CC"; then
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727$as_echo "$CC" >&6; }
2728else
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730$as_echo "no" >&6; }
2731fi
2732
2733
2734fi
2735if test -z "$CC"; then
2736  if test -n "$ac_tool_prefix"; then
2737  for ac_prog in cl.exe
2738  do
2739    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742$as_echo_n "checking for $ac_word... " >&6; }
2743if ${ac_cv_prog_CC+:} false; then :
2744  $as_echo_n "(cached) " >&6
2745else
2746  if test -n "$CC"; then
2747  ac_cv_prog_CC="$CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752  IFS=$as_save_IFS
2753  test -z "$as_dir" && as_dir=.
2754    for ac_exec_ext in '' $ac_executable_extensions; do
2755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758    break 2
2759  fi
2760done
2761  done
2762IFS=$as_save_IFS
2763
2764fi
2765fi
2766CC=$ac_cv_prog_CC
2767if test -n "$CC"; then
2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769$as_echo "$CC" >&6; }
2770else
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
2773fi
2774
2775
2776    test -n "$CC" && break
2777  done
2778fi
2779if test -z "$CC"; then
2780  ac_ct_CC=$CC
2781  for ac_prog in cl.exe
2782do
2783  # Extract the first word of "$ac_prog", so it can be a program name with args.
2784set dummy $ac_prog; ac_word=$2
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786$as_echo_n "checking for $ac_word... " >&6; }
2787if ${ac_cv_prog_ac_ct_CC+:} false; then :
2788  $as_echo_n "(cached) " >&6
2789else
2790  if test -n "$ac_ct_CC"; then
2791  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796  IFS=$as_save_IFS
2797  test -z "$as_dir" && as_dir=.
2798    for ac_exec_ext in '' $ac_executable_extensions; do
2799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800    ac_cv_prog_ac_ct_CC="$ac_prog"
2801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802    break 2
2803  fi
2804done
2805  done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811if test -n "$ac_ct_CC"; then
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2813$as_echo "$ac_ct_CC" >&6; }
2814else
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816$as_echo "no" >&6; }
2817fi
2818
2819
2820  test -n "$ac_ct_CC" && break
2821done
2822
2823  if test "x$ac_ct_CC" = x; then
2824    CC=""
2825  else
2826    case $cross_compiling:$ac_tool_warned in
2827yes:)
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2830ac_tool_warned=yes ;;
2831esac
2832    CC=$ac_ct_CC
2833  fi
2834fi
2835
2836fi
2837
2838
2839test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841as_fn_error $? "no acceptable C compiler found in \$PATH
2842See \`config.log' for more details" "$LINENO" 5; }
2843
2844# Provide some information about the compiler.
2845$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2846set X $ac_compile
2847ac_compiler=$2
2848for ac_option in --version -v -V -qversion; do
2849  { { ac_try="$ac_compiler $ac_option >&5"
2850case "(($ac_try" in
2851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852  *) ac_try_echo=$ac_try;;
2853esac
2854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2855$as_echo "$ac_try_echo"; } >&5
2856  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2857  ac_status=$?
2858  if test -s conftest.err; then
2859    sed '10a\
2860... rest of stderr output deleted ...
2861         10q' conftest.err >conftest.er1
2862    cat conftest.er1 >&5
2863  fi
2864  rm -f conftest.er1 conftest.err
2865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2866  test $ac_status = 0; }
2867done
2868
2869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870/* end confdefs.h.  */
2871
2872int
2873main ()
2874{
2875
2876  ;
2877  return 0;
2878}
2879_ACEOF
2880ac_clean_files_save=$ac_clean_files
2881ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2882# Try to create an executable without -o first, disregard a.out.
2883# It will help us diagnose broken compilers, and finding out an intuition
2884# of exeext.
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2886$as_echo_n "checking whether the C compiler works... " >&6; }
2887ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2888
2889# The possible output files:
2890ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2891
2892ac_rmfiles=
2893for ac_file in $ac_files
2894do
2895  case $ac_file in
2896    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2897    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2898  esac
2899done
2900rm -f $ac_rmfiles
2901
2902if { { ac_try="$ac_link_default"
2903case "(($ac_try" in
2904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905  *) ac_try_echo=$ac_try;;
2906esac
2907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2908$as_echo "$ac_try_echo"; } >&5
2909  (eval "$ac_link_default") 2>&5
2910  ac_status=$?
2911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2912  test $ac_status = 0; }; then :
2913  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2914# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2915# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2916# so that the user can short-circuit this test for compilers unknown to
2917# Autoconf.
2918for ac_file in $ac_files ''
2919do
2920  test -f "$ac_file" || continue
2921  case $ac_file in
2922    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2923	;;
2924    [ab].out )
2925	# We found the default executable, but exeext='' is most
2926	# certainly right.
2927	break;;
2928    *.* )
2929	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2930	then :; else
2931	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932	fi
2933	# We set ac_cv_exeext here because the later test for it is not
2934	# safe: cross compilers may not add the suffix if given an `-o'
2935	# argument, so we may need to know it at that point already.
2936	# Even if this section looks crufty: it has the advantage of
2937	# actually working.
2938	break;;
2939    * )
2940	break;;
2941  esac
2942done
2943test "$ac_cv_exeext" = no && ac_cv_exeext=
2944
2945else
2946  ac_file=''
2947fi
2948if test -z "$ac_file"; then :
2949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950$as_echo "no" >&6; }
2951$as_echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2956as_fn_error 77 "C compiler cannot create executables
2957See \`config.log' for more details" "$LINENO" 5; }
2958else
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2960$as_echo "yes" >&6; }
2961fi
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2963$as_echo_n "checking for C compiler default output file name... " >&6; }
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2965$as_echo "$ac_file" >&6; }
2966ac_exeext=$ac_cv_exeext
2967
2968rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2969ac_clean_files=$ac_clean_files_save
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2971$as_echo_n "checking for suffix of executables... " >&6; }
2972if { { ac_try="$ac_link"
2973case "(($ac_try" in
2974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975  *) ac_try_echo=$ac_try;;
2976esac
2977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978$as_echo "$ac_try_echo"; } >&5
2979  (eval "$ac_link") 2>&5
2980  ac_status=$?
2981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982  test $ac_status = 0; }; then :
2983  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2984# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2985# work properly (i.e., refer to `conftest.exe'), while it won't with
2986# `rm'.
2987for ac_file in conftest.exe conftest conftest.*; do
2988  test -f "$ac_file" || continue
2989  case $ac_file in
2990    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2991    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2992	  break;;
2993    * ) break;;
2994  esac
2995done
2996else
2997  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3000See \`config.log' for more details" "$LINENO" 5; }
3001fi
3002rm -f conftest conftest$ac_cv_exeext
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3004$as_echo "$ac_cv_exeext" >&6; }
3005
3006rm -f conftest.$ac_ext
3007EXEEXT=$ac_cv_exeext
3008ac_exeext=$EXEEXT
3009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010/* end confdefs.h.  */
3011#include <stdio.h>
3012int
3013main ()
3014{
3015FILE *f = fopen ("conftest.out", "w");
3016 return ferror (f) || fclose (f) != 0;
3017
3018  ;
3019  return 0;
3020}
3021_ACEOF
3022ac_clean_files="$ac_clean_files conftest.out"
3023# Check that the compiler produces executables we can run.  If not, either
3024# the compiler is broken, or we cross compile.
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3026$as_echo_n "checking whether we are cross compiling... " >&6; }
3027if test "$cross_compiling" != yes; then
3028  { { ac_try="$ac_link"
3029case "(($ac_try" in
3030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031  *) ac_try_echo=$ac_try;;
3032esac
3033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034$as_echo "$ac_try_echo"; } >&5
3035  (eval "$ac_link") 2>&5
3036  ac_status=$?
3037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038  test $ac_status = 0; }
3039  if { ac_try='./conftest$ac_cv_exeext'
3040  { { case "(($ac_try" in
3041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042  *) ac_try_echo=$ac_try;;
3043esac
3044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045$as_echo "$ac_try_echo"; } >&5
3046  (eval "$ac_try") 2>&5
3047  ac_status=$?
3048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049  test $ac_status = 0; }; }; then
3050    cross_compiling=no
3051  else
3052    if test "$cross_compiling" = maybe; then
3053	cross_compiling=yes
3054    else
3055	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057as_fn_error $? "cannot run C compiled programs.
3058If you meant to cross compile, use \`--host'.
3059See \`config.log' for more details" "$LINENO" 5; }
3060    fi
3061  fi
3062fi
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3064$as_echo "$cross_compiling" >&6; }
3065
3066rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3067ac_clean_files=$ac_clean_files_save
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3069$as_echo_n "checking for suffix of object files... " >&6; }
3070if ${ac_cv_objext+:} false; then :
3071  $as_echo_n "(cached) " >&6
3072else
3073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074/* end confdefs.h.  */
3075
3076int
3077main ()
3078{
3079
3080  ;
3081  return 0;
3082}
3083_ACEOF
3084rm -f conftest.o conftest.obj
3085if { { ac_try="$ac_compile"
3086case "(($ac_try" in
3087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088  *) ac_try_echo=$ac_try;;
3089esac
3090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091$as_echo "$ac_try_echo"; } >&5
3092  (eval "$ac_compile") 2>&5
3093  ac_status=$?
3094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095  test $ac_status = 0; }; then :
3096  for ac_file in conftest.o conftest.obj conftest.*; do
3097  test -f "$ac_file" || continue;
3098  case $ac_file in
3099    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3100    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3101       break;;
3102  esac
3103done
3104else
3105  $as_echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110as_fn_error $? "cannot compute suffix of object files: cannot compile
3111See \`config.log' for more details" "$LINENO" 5; }
3112fi
3113rm -f conftest.$ac_cv_objext conftest.$ac_ext
3114fi
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3116$as_echo "$ac_cv_objext" >&6; }
3117OBJEXT=$ac_cv_objext
3118ac_objext=$OBJEXT
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3120$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3121if ${ac_cv_c_compiler_gnu+:} false; then :
3122  $as_echo_n "(cached) " >&6
3123else
3124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125/* end confdefs.h.  */
3126
3127int
3128main ()
3129{
3130#ifndef __GNUC__
3131       choke me
3132#endif
3133
3134  ;
3135  return 0;
3136}
3137_ACEOF
3138if ac_fn_c_try_compile "$LINENO"; then :
3139  ac_compiler_gnu=yes
3140else
3141  ac_compiler_gnu=no
3142fi
3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144ac_cv_c_compiler_gnu=$ac_compiler_gnu
3145
3146fi
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3148$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3149if test $ac_compiler_gnu = yes; then
3150  GCC=yes
3151else
3152  GCC=
3153fi
3154ac_test_CFLAGS=${CFLAGS+set}
3155ac_save_CFLAGS=$CFLAGS
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3157$as_echo_n "checking whether $CC accepts -g... " >&6; }
3158if ${ac_cv_prog_cc_g+:} false; then :
3159  $as_echo_n "(cached) " >&6
3160else
3161  ac_save_c_werror_flag=$ac_c_werror_flag
3162   ac_c_werror_flag=yes
3163   ac_cv_prog_cc_g=no
3164   CFLAGS="-g"
3165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166/* end confdefs.h.  */
3167
3168int
3169main ()
3170{
3171
3172  ;
3173  return 0;
3174}
3175_ACEOF
3176if ac_fn_c_try_compile "$LINENO"; then :
3177  ac_cv_prog_cc_g=yes
3178else
3179  CFLAGS=""
3180      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h.  */
3182
3183int
3184main ()
3185{
3186
3187  ;
3188  return 0;
3189}
3190_ACEOF
3191if ac_fn_c_try_compile "$LINENO"; then :
3192
3193else
3194  ac_c_werror_flag=$ac_save_c_werror_flag
3195	 CFLAGS="-g"
3196	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202
3203  ;
3204  return 0;
3205}
3206_ACEOF
3207if ac_fn_c_try_compile "$LINENO"; then :
3208  ac_cv_prog_cc_g=yes
3209fi
3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211fi
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213fi
3214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215   ac_c_werror_flag=$ac_save_c_werror_flag
3216fi
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3218$as_echo "$ac_cv_prog_cc_g" >&6; }
3219if test "$ac_test_CFLAGS" = set; then
3220  CFLAGS=$ac_save_CFLAGS
3221elif test $ac_cv_prog_cc_g = yes; then
3222  if test "$GCC" = yes; then
3223    CFLAGS="-g -O2"
3224  else
3225    CFLAGS="-g"
3226  fi
3227else
3228  if test "$GCC" = yes; then
3229    CFLAGS="-O2"
3230  else
3231    CFLAGS=
3232  fi
3233fi
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3235$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3236if ${ac_cv_prog_cc_c89+:} false; then :
3237  $as_echo_n "(cached) " >&6
3238else
3239  ac_cv_prog_cc_c89=no
3240ac_save_CC=$CC
3241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242/* end confdefs.h.  */
3243#include <stdarg.h>
3244#include <stdio.h>
3245struct stat;
3246/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3247struct buf { int x; };
3248FILE * (*rcsopen) (struct buf *, struct stat *, int);
3249static char *e (p, i)
3250     char **p;
3251     int i;
3252{
3253  return p[i];
3254}
3255static char *f (char * (*g) (char **, int), char **p, ...)
3256{
3257  char *s;
3258  va_list v;
3259  va_start (v,p);
3260  s = g (p, va_arg (v,int));
3261  va_end (v);
3262  return s;
3263}
3264
3265/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3266   function prototypes and stuff, but not '\xHH' hex character constants.
3267   These don't provoke an error unfortunately, instead are silently treated
3268   as 'x'.  The following induces an error, until -std is added to get
3269   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3270   array size at least.  It's necessary to write '\x00'==0 to get something
3271   that's true only with -std.  */
3272int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3273
3274/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3275   inside strings and character constants.  */
3276#define FOO(x) 'x'
3277int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3278
3279int test (int i, double x);
3280struct s1 {int (*f) (int a);};
3281struct s2 {int (*f) (double a);};
3282int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3283int argc;
3284char **argv;
3285int
3286main ()
3287{
3288return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3289  ;
3290  return 0;
3291}
3292_ACEOF
3293for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3294	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3295do
3296  CC="$ac_save_CC $ac_arg"
3297  if ac_fn_c_try_compile "$LINENO"; then :
3298  ac_cv_prog_cc_c89=$ac_arg
3299fi
3300rm -f core conftest.err conftest.$ac_objext
3301  test "x$ac_cv_prog_cc_c89" != "xno" && break
3302done
3303rm -f conftest.$ac_ext
3304CC=$ac_save_CC
3305
3306fi
3307# AC_CACHE_VAL
3308case "x$ac_cv_prog_cc_c89" in
3309  x)
3310    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3311$as_echo "none needed" >&6; } ;;
3312  xno)
3313    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3314$as_echo "unsupported" >&6; } ;;
3315  *)
3316    CC="$CC $ac_cv_prog_cc_c89"
3317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3318$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3319esac
3320if test "x$ac_cv_prog_cc_c89" != xno; then :
3321
3322fi
3323
3324ac_ext=c
3325ac_cpp='$CPP $CPPFLAGS'
3326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3331$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3332if ${ac_cv_path_SED+:} false; then :
3333  $as_echo_n "(cached) " >&6
3334else
3335            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3336     for ac_i in 1 2 3 4 5 6 7; do
3337       ac_script="$ac_script$as_nl$ac_script"
3338     done
3339     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3340     { ac_script=; unset ac_script;}
3341     if test -z "$SED"; then
3342  ac_path_SED_found=false
3343  # Loop through the user's path and test for each of PROGNAME-LIST
3344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345for as_dir in $PATH
3346do
3347  IFS=$as_save_IFS
3348  test -z "$as_dir" && as_dir=.
3349    for ac_prog in sed gsed; do
3350    for ac_exec_ext in '' $ac_executable_extensions; do
3351      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3352      as_fn_executable_p "$ac_path_SED" || continue
3353# Check for GNU ac_path_SED and select it if it is found.
3354  # Check for GNU $ac_path_SED
3355case `"$ac_path_SED" --version 2>&1` in
3356*GNU*)
3357  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3358*)
3359  ac_count=0
3360  $as_echo_n 0123456789 >"conftest.in"
3361  while :
3362  do
3363    cat "conftest.in" "conftest.in" >"conftest.tmp"
3364    mv "conftest.tmp" "conftest.in"
3365    cp "conftest.in" "conftest.nl"
3366    $as_echo '' >> "conftest.nl"
3367    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3368    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3369    as_fn_arith $ac_count + 1 && ac_count=$as_val
3370    if test $ac_count -gt ${ac_path_SED_max-0}; then
3371      # Best one so far, save it but keep looking for a better one
3372      ac_cv_path_SED="$ac_path_SED"
3373      ac_path_SED_max=$ac_count
3374    fi
3375    # 10*(2^10) chars as input seems more than enough
3376    test $ac_count -gt 10 && break
3377  done
3378  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3379esac
3380
3381      $ac_path_SED_found && break 3
3382    done
3383  done
3384  done
3385IFS=$as_save_IFS
3386  if test -z "$ac_cv_path_SED"; then
3387    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3388  fi
3389else
3390  ac_cv_path_SED=$SED
3391fi
3392
3393fi
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3395$as_echo "$ac_cv_path_SED" >&6; }
3396 SED="$ac_cv_path_SED"
3397  rm -f conftest.sed
3398
3399test -z "$SED" && SED=sed
3400Xsed="$SED -e 1s/^X//"
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3413$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3414if ${ac_cv_path_GREP+:} false; then :
3415  $as_echo_n "(cached) " >&6
3416else
3417  if test -z "$GREP"; then
3418  ac_path_GREP_found=false
3419  # Loop through the user's path and test for each of PROGNAME-LIST
3420  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3422do
3423  IFS=$as_save_IFS
3424  test -z "$as_dir" && as_dir=.
3425    for ac_prog in grep ggrep; do
3426    for ac_exec_ext in '' $ac_executable_extensions; do
3427      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3428      as_fn_executable_p "$ac_path_GREP" || continue
3429# Check for GNU ac_path_GREP and select it if it is found.
3430  # Check for GNU $ac_path_GREP
3431case `"$ac_path_GREP" --version 2>&1` in
3432*GNU*)
3433  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3434*)
3435  ac_count=0
3436  $as_echo_n 0123456789 >"conftest.in"
3437  while :
3438  do
3439    cat "conftest.in" "conftest.in" >"conftest.tmp"
3440    mv "conftest.tmp" "conftest.in"
3441    cp "conftest.in" "conftest.nl"
3442    $as_echo 'GREP' >> "conftest.nl"
3443    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3444    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3445    as_fn_arith $ac_count + 1 && ac_count=$as_val
3446    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3447      # Best one so far, save it but keep looking for a better one
3448      ac_cv_path_GREP="$ac_path_GREP"
3449      ac_path_GREP_max=$ac_count
3450    fi
3451    # 10*(2^10) chars as input seems more than enough
3452    test $ac_count -gt 10 && break
3453  done
3454  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3455esac
3456
3457      $ac_path_GREP_found && break 3
3458    done
3459  done
3460  done
3461IFS=$as_save_IFS
3462  if test -z "$ac_cv_path_GREP"; then
3463    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3464  fi
3465else
3466  ac_cv_path_GREP=$GREP
3467fi
3468
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3471$as_echo "$ac_cv_path_GREP" >&6; }
3472 GREP="$ac_cv_path_GREP"
3473
3474
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3476$as_echo_n "checking for egrep... " >&6; }
3477if ${ac_cv_path_EGREP+:} false; then :
3478  $as_echo_n "(cached) " >&6
3479else
3480  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3481   then ac_cv_path_EGREP="$GREP -E"
3482   else
3483     if test -z "$EGREP"; then
3484  ac_path_EGREP_found=false
3485  # Loop through the user's path and test for each of PROGNAME-LIST
3486  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3488do
3489  IFS=$as_save_IFS
3490  test -z "$as_dir" && as_dir=.
3491    for ac_prog in egrep; do
3492    for ac_exec_ext in '' $ac_executable_extensions; do
3493      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3494      as_fn_executable_p "$ac_path_EGREP" || continue
3495# Check for GNU ac_path_EGREP and select it if it is found.
3496  # Check for GNU $ac_path_EGREP
3497case `"$ac_path_EGREP" --version 2>&1` in
3498*GNU*)
3499  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3500*)
3501  ac_count=0
3502  $as_echo_n 0123456789 >"conftest.in"
3503  while :
3504  do
3505    cat "conftest.in" "conftest.in" >"conftest.tmp"
3506    mv "conftest.tmp" "conftest.in"
3507    cp "conftest.in" "conftest.nl"
3508    $as_echo 'EGREP' >> "conftest.nl"
3509    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3510    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3511    as_fn_arith $ac_count + 1 && ac_count=$as_val
3512    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3513      # Best one so far, save it but keep looking for a better one
3514      ac_cv_path_EGREP="$ac_path_EGREP"
3515      ac_path_EGREP_max=$ac_count
3516    fi
3517    # 10*(2^10) chars as input seems more than enough
3518    test $ac_count -gt 10 && break
3519  done
3520  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3521esac
3522
3523      $ac_path_EGREP_found && break 3
3524    done
3525  done
3526  done
3527IFS=$as_save_IFS
3528  if test -z "$ac_cv_path_EGREP"; then
3529    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3530  fi
3531else
3532  ac_cv_path_EGREP=$EGREP
3533fi
3534
3535   fi
3536fi
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3538$as_echo "$ac_cv_path_EGREP" >&6; }
3539 EGREP="$ac_cv_path_EGREP"
3540
3541
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3543$as_echo_n "checking for fgrep... " >&6; }
3544if ${ac_cv_path_FGREP+:} false; then :
3545  $as_echo_n "(cached) " >&6
3546else
3547  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3548   then ac_cv_path_FGREP="$GREP -F"
3549   else
3550     if test -z "$FGREP"; then
3551  ac_path_FGREP_found=false
3552  # Loop through the user's path and test for each of PROGNAME-LIST
3553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3555do
3556  IFS=$as_save_IFS
3557  test -z "$as_dir" && as_dir=.
3558    for ac_prog in fgrep; do
3559    for ac_exec_ext in '' $ac_executable_extensions; do
3560      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3561      as_fn_executable_p "$ac_path_FGREP" || continue
3562# Check for GNU ac_path_FGREP and select it if it is found.
3563  # Check for GNU $ac_path_FGREP
3564case `"$ac_path_FGREP" --version 2>&1` in
3565*GNU*)
3566  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3567*)
3568  ac_count=0
3569  $as_echo_n 0123456789 >"conftest.in"
3570  while :
3571  do
3572    cat "conftest.in" "conftest.in" >"conftest.tmp"
3573    mv "conftest.tmp" "conftest.in"
3574    cp "conftest.in" "conftest.nl"
3575    $as_echo 'FGREP' >> "conftest.nl"
3576    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3577    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3578    as_fn_arith $ac_count + 1 && ac_count=$as_val
3579    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3580      # Best one so far, save it but keep looking for a better one
3581      ac_cv_path_FGREP="$ac_path_FGREP"
3582      ac_path_FGREP_max=$ac_count
3583    fi
3584    # 10*(2^10) chars as input seems more than enough
3585    test $ac_count -gt 10 && break
3586  done
3587  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3588esac
3589
3590      $ac_path_FGREP_found && break 3
3591    done
3592  done
3593  done
3594IFS=$as_save_IFS
3595  if test -z "$ac_cv_path_FGREP"; then
3596    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3597  fi
3598else
3599  ac_cv_path_FGREP=$FGREP
3600fi
3601
3602   fi
3603fi
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3605$as_echo "$ac_cv_path_FGREP" >&6; }
3606 FGREP="$ac_cv_path_FGREP"
3607
3608
3609test -z "$GREP" && GREP=grep
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629# Check whether --with-gnu-ld was given.
3630if test "${with_gnu_ld+set}" = set; then :
3631  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3632else
3633  with_gnu_ld=no
3634fi
3635
3636ac_prog=ld
3637if test "$GCC" = yes; then
3638  # Check if gcc -print-prog-name=ld gives a path.
3639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3640$as_echo_n "checking for ld used by $CC... " >&6; }
3641  case $host in
3642  *-*-mingw*)
3643    # gcc leaves a trailing carriage return which upsets mingw
3644    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3645  *)
3646    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3647  esac
3648  case $ac_prog in
3649    # Accept absolute paths.
3650    [\\/]* | ?:[\\/]*)
3651      re_direlt='/[^/][^/]*/\.\./'
3652      # Canonicalize the pathname of ld
3653      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3654      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3655	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3656      done
3657      test -z "$LD" && LD="$ac_prog"
3658      ;;
3659  "")
3660    # If it fails, then pretend we aren't using GCC.
3661    ac_prog=ld
3662    ;;
3663  *)
3664    # If it is relative, then search for the first ld in PATH.
3665    with_gnu_ld=unknown
3666    ;;
3667  esac
3668elif test "$with_gnu_ld" = yes; then
3669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3670$as_echo_n "checking for GNU ld... " >&6; }
3671else
3672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3673$as_echo_n "checking for non-GNU ld... " >&6; }
3674fi
3675if ${lt_cv_path_LD+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  if test -z "$LD"; then
3679  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3680  for ac_dir in $PATH; do
3681    IFS="$lt_save_ifs"
3682    test -z "$ac_dir" && ac_dir=.
3683    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3684      lt_cv_path_LD="$ac_dir/$ac_prog"
3685      # Check to see if the program is GNU ld.  I'd rather use --version,
3686      # but apparently some variants of GNU ld only accept -v.
3687      # Break only if it was the GNU/non-GNU ld that we prefer.
3688      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3689      *GNU* | *'with BFD'*)
3690	test "$with_gnu_ld" != no && break
3691	;;
3692      *)
3693	test "$with_gnu_ld" != yes && break
3694	;;
3695      esac
3696    fi
3697  done
3698  IFS="$lt_save_ifs"
3699else
3700  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3701fi
3702fi
3703
3704LD="$lt_cv_path_LD"
3705if test -n "$LD"; then
3706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3707$as_echo "$LD" >&6; }
3708else
3709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710$as_echo "no" >&6; }
3711fi
3712test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3714$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3715if ${lt_cv_prog_gnu_ld+:} false; then :
3716  $as_echo_n "(cached) " >&6
3717else
3718  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3719case `$LD -v 2>&1 </dev/null` in
3720*GNU* | *'with BFD'*)
3721  lt_cv_prog_gnu_ld=yes
3722  ;;
3723*)
3724  lt_cv_prog_gnu_ld=no
3725  ;;
3726esac
3727fi
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3729$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3730with_gnu_ld=$lt_cv_prog_gnu_ld
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3741$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3742if ${lt_cv_path_NM+:} false; then :
3743  $as_echo_n "(cached) " >&6
3744else
3745  if test -n "$NM"; then
3746  # Let the user override the test.
3747  lt_cv_path_NM="$NM"
3748else
3749  lt_nm_to_check="${ac_tool_prefix}nm"
3750  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3751    lt_nm_to_check="$lt_nm_to_check nm"
3752  fi
3753  for lt_tmp_nm in $lt_nm_to_check; do
3754    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3755    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3756      IFS="$lt_save_ifs"
3757      test -z "$ac_dir" && ac_dir=.
3758      tmp_nm="$ac_dir/$lt_tmp_nm"
3759      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3760	# Check to see if the nm accepts a BSD-compat flag.
3761	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3762	#   nm: unknown option "B" ignored
3763	# Tru64's nm complains that /dev/null is an invalid object file
3764	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3765	*/dev/null* | *'Invalid file or object type'*)
3766	  lt_cv_path_NM="$tmp_nm -B"
3767	  break
3768	  ;;
3769	*)
3770	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3771	  */dev/null*)
3772	    lt_cv_path_NM="$tmp_nm -p"
3773	    break
3774	    ;;
3775	  *)
3776	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3777	    continue # so that we can try to find one that supports BSD flags
3778	    ;;
3779	  esac
3780	  ;;
3781	esac
3782      fi
3783    done
3784    IFS="$lt_save_ifs"
3785  done
3786  : ${lt_cv_path_NM=no}
3787fi
3788fi
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3790$as_echo "$lt_cv_path_NM" >&6; }
3791if test "$lt_cv_path_NM" != "no"; then
3792  NM="$lt_cv_path_NM"
3793else
3794  # Didn't find any BSD compatible name lister, look for dumpbin.
3795  if test -n "$ac_tool_prefix"; then
3796  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3797  do
3798    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801$as_echo_n "checking for $ac_word... " >&6; }
3802if ${ac_cv_prog_DUMPBIN+:} false; then :
3803  $as_echo_n "(cached) " >&6
3804else
3805  if test -n "$DUMPBIN"; then
3806  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811  IFS=$as_save_IFS
3812  test -z "$as_dir" && as_dir=.
3813    for ac_exec_ext in '' $ac_executable_extensions; do
3814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817    break 2
3818  fi
3819done
3820  done
3821IFS=$as_save_IFS
3822
3823fi
3824fi
3825DUMPBIN=$ac_cv_prog_DUMPBIN
3826if test -n "$DUMPBIN"; then
3827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3828$as_echo "$DUMPBIN" >&6; }
3829else
3830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832fi
3833
3834
3835    test -n "$DUMPBIN" && break
3836  done
3837fi
3838if test -z "$DUMPBIN"; then
3839  ac_ct_DUMPBIN=$DUMPBIN
3840  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3841do
3842  # Extract the first word of "$ac_prog", so it can be a program name with args.
3843set dummy $ac_prog; ac_word=$2
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845$as_echo_n "checking for $ac_word... " >&6; }
3846if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3847  $as_echo_n "(cached) " >&6
3848else
3849  if test -n "$ac_ct_DUMPBIN"; then
3850  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855  IFS=$as_save_IFS
3856  test -z "$as_dir" && as_dir=.
3857    for ac_exec_ext in '' $ac_executable_extensions; do
3858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861    break 2
3862  fi
3863done
3864  done
3865IFS=$as_save_IFS
3866
3867fi
3868fi
3869ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3870if test -n "$ac_ct_DUMPBIN"; then
3871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3872$as_echo "$ac_ct_DUMPBIN" >&6; }
3873else
3874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
3876fi
3877
3878
3879  test -n "$ac_ct_DUMPBIN" && break
3880done
3881
3882  if test "x$ac_ct_DUMPBIN" = x; then
3883    DUMPBIN=":"
3884  else
3885    case $cross_compiling:$ac_tool_warned in
3886yes:)
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3889ac_tool_warned=yes ;;
3890esac
3891    DUMPBIN=$ac_ct_DUMPBIN
3892  fi
3893fi
3894
3895
3896  if test "$DUMPBIN" != ":"; then
3897    NM="$DUMPBIN"
3898  fi
3899fi
3900test -z "$NM" && NM=nm
3901
3902
3903
3904
3905
3906
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3908$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3909if ${lt_cv_nm_interface+:} false; then :
3910  $as_echo_n "(cached) " >&6
3911else
3912  lt_cv_nm_interface="BSD nm"
3913  echo "int some_variable = 0;" > conftest.$ac_ext
3914  (eval echo "\"\$as_me:3914: $ac_compile\"" >&5)
3915  (eval "$ac_compile" 2>conftest.err)
3916  cat conftest.err >&5
3917  (eval echo "\"\$as_me:3917: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3918  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3919  cat conftest.err >&5
3920  (eval echo "\"\$as_me:3920: output\"" >&5)
3921  cat conftest.out >&5
3922  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3923    lt_cv_nm_interface="MS dumpbin"
3924  fi
3925  rm -f conftest*
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3928$as_echo "$lt_cv_nm_interface" >&6; }
3929
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3931$as_echo_n "checking whether ln -s works... " >&6; }
3932LN_S=$as_ln_s
3933if test "$LN_S" = "ln -s"; then
3934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935$as_echo "yes" >&6; }
3936else
3937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3938$as_echo "no, using $LN_S" >&6; }
3939fi
3940
3941# find the maximum length of command line arguments
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3943$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3944if ${lt_cv_sys_max_cmd_len+:} false; then :
3945  $as_echo_n "(cached) " >&6
3946else
3947    i=0
3948  teststring="ABCD"
3949
3950  case $build_os in
3951  msdosdjgpp*)
3952    # On DJGPP, this test can blow up pretty badly due to problems in libc
3953    # (any single argument exceeding 2000 bytes causes a buffer overrun
3954    # during glob expansion).  Even if it were fixed, the result of this
3955    # check would be larger than it should be.
3956    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3957    ;;
3958
3959  gnu*)
3960    # Under GNU Hurd, this test is not required because there is
3961    # no limit to the length of command line arguments.
3962    # Libtool will interpret -1 as no limit whatsoever
3963    lt_cv_sys_max_cmd_len=-1;
3964    ;;
3965
3966  cygwin* | mingw* | cegcc*)
3967    # On Win9x/ME, this test blows up -- it succeeds, but takes
3968    # about 5 minutes as the teststring grows exponentially.
3969    # Worse, since 9x/ME are not pre-emptively multitasking,
3970    # you end up with a "frozen" computer, even though with patience
3971    # the test eventually succeeds (with a max line length of 256k).
3972    # Instead, let's just punt: use the minimum linelength reported by
3973    # all of the supported platforms: 8192 (on NT/2K/XP).
3974    lt_cv_sys_max_cmd_len=8192;
3975    ;;
3976
3977  amigaos*)
3978    # On AmigaOS with pdksh, this test takes hours, literally.
3979    # So we just punt and use a minimum line length of 8192.
3980    lt_cv_sys_max_cmd_len=8192;
3981    ;;
3982
3983  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3984    # This has been around since 386BSD, at least.  Likely further.
3985    if test -x /sbin/sysctl; then
3986      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3987    elif test -x /usr/sbin/sysctl; then
3988      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3989    else
3990      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
3991    fi
3992    # And add a safety zone
3993    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3994    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3995    ;;
3996
3997  interix*)
3998    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3999    lt_cv_sys_max_cmd_len=196608
4000    ;;
4001
4002  osf*)
4003    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4004    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4005    # nice to cause kernel panics so lets avoid the loop below.
4006    # First set a reasonable default.
4007    lt_cv_sys_max_cmd_len=16384
4008    #
4009    if test -x /sbin/sysconfig; then
4010      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4011        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4012      esac
4013    fi
4014    ;;
4015  sco3.2v5*)
4016    lt_cv_sys_max_cmd_len=102400
4017    ;;
4018  sysv5* | sco5v6* | sysv4.2uw2*)
4019    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4020    if test -n "$kargmax"; then
4021      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4022    else
4023      lt_cv_sys_max_cmd_len=32768
4024    fi
4025    ;;
4026  *)
4027    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4028    if test -n "$lt_cv_sys_max_cmd_len"; then
4029      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4030      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4031    else
4032      # Make teststring a little bigger before we do anything with it.
4033      # a 1K string should be a reasonable start.
4034      for i in 1 2 3 4 5 6 7 8 ; do
4035        teststring=$teststring$teststring
4036      done
4037      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4038      # If test is not a shell built-in, we'll probably end up computing a
4039      # maximum length that is only half of the actual maximum length, but
4040      # we can't tell.
4041      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4042	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4043	      test $i != 17 # 1/2 MB should be enough
4044      do
4045        i=`expr $i + 1`
4046        teststring=$teststring$teststring
4047      done
4048      # Only check the string length outside the loop.
4049      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4050      teststring=
4051      # Add a significant safety factor because C++ compilers can tack on
4052      # massive amounts of additional arguments before passing them to the
4053      # linker.  It appears as though 1/2 is a usable value.
4054      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4055    fi
4056    ;;
4057  esac
4058
4059fi
4060
4061if test -n $lt_cv_sys_max_cmd_len ; then
4062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4063$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4064else
4065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4066$as_echo "none" >&6; }
4067fi
4068max_cmd_len=$lt_cv_sys_max_cmd_len
4069
4070
4071
4072
4073
4074
4075: ${CP="cp -f"}
4076: ${MV="mv -f"}
4077: ${RM="rm -f"}
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4080$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4081# Try some XSI features
4082xsi_shell=no
4083( _lt_dummy="a/b/c"
4084  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4085      = c,a/b,, \
4086    && eval 'test $(( 1 + 1 )) -eq 2 \
4087    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4088  && xsi_shell=yes
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4090$as_echo "$xsi_shell" >&6; }
4091
4092
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4094$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4095lt_shell_append=no
4096( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4097    >/dev/null 2>&1 \
4098  && lt_shell_append=yes
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4100$as_echo "$lt_shell_append" >&6; }
4101
4102
4103if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4104  lt_unset=unset
4105else
4106  lt_unset=false
4107fi
4108
4109
4110
4111
4112
4113# test EBCDIC or ASCII
4114case `echo X|tr X '\101'` in
4115 A) # ASCII based system
4116    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4117  lt_SP2NL='tr \040 \012'
4118  lt_NL2SP='tr \015\012 \040\040'
4119  ;;
4120 *) # EBCDIC based system
4121  lt_SP2NL='tr \100 \n'
4122  lt_NL2SP='tr \r\n \100\100'
4123  ;;
4124esac
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4135$as_echo_n "checking for $LD option to reload object files... " >&6; }
4136if ${lt_cv_ld_reload_flag+:} false; then :
4137  $as_echo_n "(cached) " >&6
4138else
4139  lt_cv_ld_reload_flag='-r'
4140fi
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4142$as_echo "$lt_cv_ld_reload_flag" >&6; }
4143reload_flag=$lt_cv_ld_reload_flag
4144case $reload_flag in
4145"" | " "*) ;;
4146*) reload_flag=" $reload_flag" ;;
4147esac
4148reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149case $host_os in
4150  darwin*)
4151    if test "$GCC" = yes; then
4152      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4153    else
4154      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4155    fi
4156    ;;
4157esac
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167if test -n "$ac_tool_prefix"; then
4168  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4169set dummy ${ac_tool_prefix}objdump; ac_word=$2
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171$as_echo_n "checking for $ac_word... " >&6; }
4172if ${ac_cv_prog_OBJDUMP+:} false; then :
4173  $as_echo_n "(cached) " >&6
4174else
4175  if test -n "$OBJDUMP"; then
4176  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4177else
4178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181  IFS=$as_save_IFS
4182  test -z "$as_dir" && as_dir=.
4183    for ac_exec_ext in '' $ac_executable_extensions; do
4184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187    break 2
4188  fi
4189done
4190  done
4191IFS=$as_save_IFS
4192
4193fi
4194fi
4195OBJDUMP=$ac_cv_prog_OBJDUMP
4196if test -n "$OBJDUMP"; then
4197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4198$as_echo "$OBJDUMP" >&6; }
4199else
4200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201$as_echo "no" >&6; }
4202fi
4203
4204
4205fi
4206if test -z "$ac_cv_prog_OBJDUMP"; then
4207  ac_ct_OBJDUMP=$OBJDUMP
4208  # Extract the first word of "objdump", so it can be a program name with args.
4209set dummy objdump; ac_word=$2
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
4212if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4213  $as_echo_n "(cached) " >&6
4214else
4215  if test -n "$ac_ct_OBJDUMP"; then
4216  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4217else
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221  IFS=$as_save_IFS
4222  test -z "$as_dir" && as_dir=.
4223    for ac_exec_ext in '' $ac_executable_extensions; do
4224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227    break 2
4228  fi
4229done
4230  done
4231IFS=$as_save_IFS
4232
4233fi
4234fi
4235ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4236if test -n "$ac_ct_OBJDUMP"; then
4237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4238$as_echo "$ac_ct_OBJDUMP" >&6; }
4239else
4240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
4242fi
4243
4244  if test "x$ac_ct_OBJDUMP" = x; then
4245    OBJDUMP="false"
4246  else
4247    case $cross_compiling:$ac_tool_warned in
4248yes:)
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4251ac_tool_warned=yes ;;
4252esac
4253    OBJDUMP=$ac_ct_OBJDUMP
4254  fi
4255else
4256  OBJDUMP="$ac_cv_prog_OBJDUMP"
4257fi
4258
4259test -z "$OBJDUMP" && OBJDUMP=objdump
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4270$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4271if ${lt_cv_deplibs_check_method+:} false; then :
4272  $as_echo_n "(cached) " >&6
4273else
4274  lt_cv_file_magic_cmd='$MAGIC_CMD'
4275lt_cv_file_magic_test_file=
4276lt_cv_deplibs_check_method='unknown'
4277# Need to set the preceding variable on all platforms that support
4278# interlibrary dependencies.
4279# 'none' -- dependencies not supported.
4280# `unknown' -- same as none, but documents that we really don't know.
4281# 'pass_all' -- all dependencies passed with no checks.
4282# 'test_compile' -- check by making test program.
4283# 'file_magic [[regex]]' -- check by looking for files in library path
4284# which responds to the $file_magic_cmd with a given extended regex.
4285# If you have `file' or equivalent on your system and you're not sure
4286# whether `pass_all' will *always* work, you probably want this one.
4287
4288case $host_os in
4289aix[4-9]*)
4290  lt_cv_deplibs_check_method=pass_all
4291  ;;
4292
4293beos*)
4294  lt_cv_deplibs_check_method=pass_all
4295  ;;
4296
4297bsdi[45]*)
4298  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4299  lt_cv_file_magic_cmd='/usr/bin/file -L'
4300  lt_cv_file_magic_test_file=/shlib/libc.so
4301  ;;
4302
4303cygwin*)
4304  # func_win32_libid is a shell function defined in ltmain.sh
4305  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4306  lt_cv_file_magic_cmd='func_win32_libid'
4307  ;;
4308
4309mingw* | pw32*)
4310  # Base MSYS/MinGW do not provide the 'file' command needed by
4311  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4312  # unless we find 'file', for example because we are cross-compiling.
4313  if ( file / ) >/dev/null 2>&1; then
4314    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4315    lt_cv_file_magic_cmd='func_win32_libid'
4316  else
4317    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4318    lt_cv_file_magic_cmd='$OBJDUMP -f'
4319  fi
4320  ;;
4321
4322cegcc)
4323  # use the weaker test based on 'objdump'. See mingw*.
4324  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4325  lt_cv_file_magic_cmd='$OBJDUMP -f'
4326  ;;
4327
4328darwin* | rhapsody*)
4329  lt_cv_deplibs_check_method=pass_all
4330  ;;
4331
4332freebsd* | dragonfly*)
4333  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4334    case $host_cpu in
4335    i*86 )
4336      # Not sure whether the presence of OpenBSD here was a mistake.
4337      # Let's accept both of them until this is cleared up.
4338      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4339      lt_cv_file_magic_cmd=/usr/bin/file
4340      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4341      ;;
4342    esac
4343  else
4344    lt_cv_deplibs_check_method=pass_all
4345  fi
4346  ;;
4347
4348gnu*)
4349  lt_cv_deplibs_check_method=pass_all
4350  ;;
4351
4352hpux10.20* | hpux11*)
4353  lt_cv_file_magic_cmd=/usr/bin/file
4354  case $host_cpu in
4355  ia64*)
4356    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4357    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4358    ;;
4359  hppa*64*)
4360    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]'
4361    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4362    ;;
4363  *)
4364    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4365    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4366    ;;
4367  esac
4368  ;;
4369
4370interix[3-9]*)
4371  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4372  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4373  ;;
4374
4375irix5* | irix6* | nonstopux*)
4376  case $LD in
4377  *-32|*"-32 ") libmagic=32-bit;;
4378  *-n32|*"-n32 ") libmagic=N32;;
4379  *-64|*"-64 ") libmagic=64-bit;;
4380  *) libmagic=never-match;;
4381  esac
4382  lt_cv_deplibs_check_method=pass_all
4383  ;;
4384
4385# This must be Linux ELF.
4386linux* | k*bsd*-gnu)
4387  lt_cv_deplibs_check_method=pass_all
4388  ;;
4389
4390netbsd*)
4391  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4392    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4393  else
4394    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4395  fi
4396  ;;
4397
4398newos6*)
4399  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4400  lt_cv_file_magic_cmd=/usr/bin/file
4401  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4402  ;;
4403
4404*nto* | *qnx*)
4405  lt_cv_deplibs_check_method=pass_all
4406  ;;
4407
4408openbsd*)
4409  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4410    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4411  else
4412    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4413  fi
4414  ;;
4415
4416osf3* | osf4* | osf5*)
4417  lt_cv_deplibs_check_method=pass_all
4418  ;;
4419
4420rdos*)
4421  lt_cv_deplibs_check_method=pass_all
4422  ;;
4423
4424solaris*)
4425  lt_cv_deplibs_check_method=pass_all
4426  ;;
4427
4428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4429  lt_cv_deplibs_check_method=pass_all
4430  ;;
4431
4432sysv4 | sysv4.3*)
4433  case $host_vendor in
4434  motorola)
4435    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]'
4436    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4437    ;;
4438  ncr)
4439    lt_cv_deplibs_check_method=pass_all
4440    ;;
4441  sequent)
4442    lt_cv_file_magic_cmd='/bin/file'
4443    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4444    ;;
4445  sni)
4446    lt_cv_file_magic_cmd='/bin/file'
4447    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4448    lt_cv_file_magic_test_file=/lib/libc.so
4449    ;;
4450  siemens)
4451    lt_cv_deplibs_check_method=pass_all
4452    ;;
4453  pc)
4454    lt_cv_deplibs_check_method=pass_all
4455    ;;
4456  esac
4457  ;;
4458
4459tpf*)
4460  lt_cv_deplibs_check_method=pass_all
4461  ;;
4462esac
4463
4464fi
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4466$as_echo "$lt_cv_deplibs_check_method" >&6; }
4467file_magic_cmd=$lt_cv_file_magic_cmd
4468deplibs_check_method=$lt_cv_deplibs_check_method
4469test -z "$deplibs_check_method" && deplibs_check_method=unknown
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482if test -n "$ac_tool_prefix"; then
4483  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4484set dummy ${ac_tool_prefix}ar; ac_word=$2
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486$as_echo_n "checking for $ac_word... " >&6; }
4487if ${ac_cv_prog_AR+:} false; then :
4488  $as_echo_n "(cached) " >&6
4489else
4490  if test -n "$AR"; then
4491  ac_cv_prog_AR="$AR" # Let the user override the test.
4492else
4493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494for as_dir in $PATH
4495do
4496  IFS=$as_save_IFS
4497  test -z "$as_dir" && as_dir=.
4498    for ac_exec_ext in '' $ac_executable_extensions; do
4499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500    ac_cv_prog_AR="${ac_tool_prefix}ar"
4501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502    break 2
4503  fi
4504done
4505  done
4506IFS=$as_save_IFS
4507
4508fi
4509fi
4510AR=$ac_cv_prog_AR
4511if test -n "$AR"; then
4512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4513$as_echo "$AR" >&6; }
4514else
4515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516$as_echo "no" >&6; }
4517fi
4518
4519
4520fi
4521if test -z "$ac_cv_prog_AR"; then
4522  ac_ct_AR=$AR
4523  # Extract the first word of "ar", so it can be a program name with args.
4524set dummy ar; ac_word=$2
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526$as_echo_n "checking for $ac_word... " >&6; }
4527if ${ac_cv_prog_ac_ct_AR+:} false; then :
4528  $as_echo_n "(cached) " >&6
4529else
4530  if test -n "$ac_ct_AR"; then
4531  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4532else
4533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536  IFS=$as_save_IFS
4537  test -z "$as_dir" && as_dir=.
4538    for ac_exec_ext in '' $ac_executable_extensions; do
4539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540    ac_cv_prog_ac_ct_AR="ar"
4541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542    break 2
4543  fi
4544done
4545  done
4546IFS=$as_save_IFS
4547
4548fi
4549fi
4550ac_ct_AR=$ac_cv_prog_ac_ct_AR
4551if test -n "$ac_ct_AR"; then
4552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4553$as_echo "$ac_ct_AR" >&6; }
4554else
4555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556$as_echo "no" >&6; }
4557fi
4558
4559  if test "x$ac_ct_AR" = x; then
4560    AR="false"
4561  else
4562    case $cross_compiling:$ac_tool_warned in
4563yes:)
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566ac_tool_warned=yes ;;
4567esac
4568    AR=$ac_ct_AR
4569  fi
4570else
4571  AR="$ac_cv_prog_AR"
4572fi
4573
4574test -z "$AR" && AR=ar
4575test -z "$AR_FLAGS" && AR_FLAGS=cru
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587if test -n "$ac_tool_prefix"; then
4588  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4589set dummy ${ac_tool_prefix}strip; ac_word=$2
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591$as_echo_n "checking for $ac_word... " >&6; }
4592if ${ac_cv_prog_STRIP+:} false; then :
4593  $as_echo_n "(cached) " >&6
4594else
4595  if test -n "$STRIP"; then
4596  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601  IFS=$as_save_IFS
4602  test -z "$as_dir" && as_dir=.
4603    for ac_exec_ext in '' $ac_executable_extensions; do
4604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607    break 2
4608  fi
4609done
4610  done
4611IFS=$as_save_IFS
4612
4613fi
4614fi
4615STRIP=$ac_cv_prog_STRIP
4616if test -n "$STRIP"; then
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4618$as_echo "$STRIP" >&6; }
4619else
4620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621$as_echo "no" >&6; }
4622fi
4623
4624
4625fi
4626if test -z "$ac_cv_prog_STRIP"; then
4627  ac_ct_STRIP=$STRIP
4628  # Extract the first word of "strip", so it can be a program name with args.
4629set dummy strip; ac_word=$2
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631$as_echo_n "checking for $ac_word... " >&6; }
4632if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635  if test -n "$ac_ct_STRIP"; then
4636  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4637else
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641  IFS=$as_save_IFS
4642  test -z "$as_dir" && as_dir=.
4643    for ac_exec_ext in '' $ac_executable_extensions; do
4644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645    ac_cv_prog_ac_ct_STRIP="strip"
4646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647    break 2
4648  fi
4649done
4650  done
4651IFS=$as_save_IFS
4652
4653fi
4654fi
4655ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4656if test -n "$ac_ct_STRIP"; then
4657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4658$as_echo "$ac_ct_STRIP" >&6; }
4659else
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661$as_echo "no" >&6; }
4662fi
4663
4664  if test "x$ac_ct_STRIP" = x; then
4665    STRIP=":"
4666  else
4667    case $cross_compiling:$ac_tool_warned in
4668yes:)
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4671ac_tool_warned=yes ;;
4672esac
4673    STRIP=$ac_ct_STRIP
4674  fi
4675else
4676  STRIP="$ac_cv_prog_STRIP"
4677fi
4678
4679test -z "$STRIP" && STRIP=:
4680
4681
4682
4683
4684
4685
4686if test -n "$ac_tool_prefix"; then
4687  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4688set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if ${ac_cv_prog_RANLIB+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  if test -n "$RANLIB"; then
4695  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700  IFS=$as_save_IFS
4701  test -z "$as_dir" && as_dir=.
4702    for ac_exec_ext in '' $ac_executable_extensions; do
4703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706    break 2
4707  fi
4708done
4709  done
4710IFS=$as_save_IFS
4711
4712fi
4713fi
4714RANLIB=$ac_cv_prog_RANLIB
4715if test -n "$RANLIB"; then
4716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4717$as_echo "$RANLIB" >&6; }
4718else
4719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720$as_echo "no" >&6; }
4721fi
4722
4723
4724fi
4725if test -z "$ac_cv_prog_RANLIB"; then
4726  ac_ct_RANLIB=$RANLIB
4727  # Extract the first word of "ranlib", so it can be a program name with args.
4728set dummy ranlib; ac_word=$2
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730$as_echo_n "checking for $ac_word... " >&6; }
4731if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4732  $as_echo_n "(cached) " >&6
4733else
4734  if test -n "$ac_ct_RANLIB"; then
4735  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740  IFS=$as_save_IFS
4741  test -z "$as_dir" && as_dir=.
4742    for ac_exec_ext in '' $ac_executable_extensions; do
4743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744    ac_cv_prog_ac_ct_RANLIB="ranlib"
4745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746    break 2
4747  fi
4748done
4749  done
4750IFS=$as_save_IFS
4751
4752fi
4753fi
4754ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4755if test -n "$ac_ct_RANLIB"; then
4756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4757$as_echo "$ac_ct_RANLIB" >&6; }
4758else
4759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760$as_echo "no" >&6; }
4761fi
4762
4763  if test "x$ac_ct_RANLIB" = x; then
4764    RANLIB=":"
4765  else
4766    case $cross_compiling:$ac_tool_warned in
4767yes:)
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770ac_tool_warned=yes ;;
4771esac
4772    RANLIB=$ac_ct_RANLIB
4773  fi
4774else
4775  RANLIB="$ac_cv_prog_RANLIB"
4776fi
4777
4778test -z "$RANLIB" && RANLIB=:
4779
4780
4781
4782
4783
4784
4785# Determine commands to create old-style static archives.
4786old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4787old_postinstall_cmds='chmod 644 $oldlib'
4788old_postuninstall_cmds=
4789
4790if test -n "$RANLIB"; then
4791  case $host_os in
4792  openbsd*)
4793    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4794    ;;
4795  *)
4796    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4797    ;;
4798  esac
4799  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4800fi
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835# If no C compiler was specified, use CC.
4836LTCC=${LTCC-"$CC"}
4837
4838# If no C compiler flags were specified, use CFLAGS.
4839LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4840
4841# Allow CC to be a program name with arguments.
4842compiler=$CC
4843
4844
4845# Check for command to grab the raw symbol name followed by C symbol from nm.
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4847$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4848if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4849  $as_echo_n "(cached) " >&6
4850else
4851
4852# These are sane defaults that work on at least a few old systems.
4853# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4854
4855# Character class describing NM global symbol codes.
4856symcode='[BCDEGRST]'
4857
4858# Regexp to match symbols that can be accessed directly from C.
4859sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4860
4861# Define system-specific variables.
4862case $host_os in
4863aix*)
4864  symcode='[BCDT]'
4865  ;;
4866cygwin* | mingw* | pw32* | cegcc*)
4867  symcode='[ABCDGISTW]'
4868  ;;
4869hpux*)
4870  if test "$host_cpu" = ia64; then
4871    symcode='[ABCDEGRST]'
4872  fi
4873  ;;
4874irix* | nonstopux*)
4875  symcode='[BCDEGRST]'
4876  ;;
4877osf*)
4878  symcode='[BCDEGQRST]'
4879  ;;
4880solaris*)
4881  symcode='[BDRT]'
4882  ;;
4883sco3.2v5*)
4884  symcode='[DT]'
4885  ;;
4886sysv4.2uw2*)
4887  symcode='[DT]'
4888  ;;
4889sysv5* | sco5v6* | unixware* | OpenUNIX*)
4890  symcode='[ABDT]'
4891  ;;
4892sysv4)
4893  symcode='[DFNSTU]'
4894  ;;
4895esac
4896
4897# If we're using GNU nm, then use its standard symbol codes.
4898case `$NM -V 2>&1` in
4899*GNU* | *'with BFD'*)
4900  symcode='[ABCDGIRSTW]' ;;
4901esac
4902
4903# Transform an extracted symbol line into a proper C declaration.
4904# Some systems (esp. on ia64) link data and code symbols differently,
4905# so use this general approach.
4906lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4907
4908# Transform an extracted symbol line into symbol name and symbol address
4909lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4910lt_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'"
4911
4912# Handle CRLF in mingw tool chain
4913opt_cr=
4914case $build_os in
4915mingw*)
4916  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4917  ;;
4918esac
4919
4920# Try without a prefix underscore, then with it.
4921for ac_symprfx in "" "_"; do
4922
4923  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4924  symxfrm="\\1 $ac_symprfx\\2 \\2"
4925
4926  # Write the raw and C identifiers.
4927  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4928    # Fake it for dumpbin and say T for any non-static function
4929    # and D for any global variable.
4930    # Also find C++ and __fastcall symbols from MSVC++,
4931    # which start with @ or ?.
4932    lt_cv_sys_global_symbol_pipe="$AWK '"\
4933"     {last_section=section; section=\$ 3};"\
4934"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4935"     \$ 0!~/External *\|/{next};"\
4936"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4937"     {if(hide[section]) next};"\
4938"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4939"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4940"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4941"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4942"     ' prfx=^$ac_symprfx"
4943  else
4944    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4945  fi
4946
4947  # Check to see that the pipe works correctly.
4948  pipe_works=no
4949
4950  rm -f conftest*
4951  cat > conftest.$ac_ext <<_LT_EOF
4952#ifdef __cplusplus
4953extern "C" {
4954#endif
4955char nm_test_var;
4956void nm_test_func(void);
4957void nm_test_func(void){}
4958#ifdef __cplusplus
4959}
4960#endif
4961int main(){nm_test_var='a';nm_test_func();return(0);}
4962_LT_EOF
4963
4964  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4965  (eval $ac_compile) 2>&5
4966  ac_status=$?
4967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4968  test $ac_status = 0; }; then
4969    # Now try to grab the symbols.
4970    nlist=conftest.nm
4971    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4972  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4973  ac_status=$?
4974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4975  test $ac_status = 0; } && test -s "$nlist"; then
4976      # Try sorting and uniquifying the output.
4977      if sort "$nlist" | uniq > "$nlist"T; then
4978	mv -f "$nlist"T "$nlist"
4979      else
4980	rm -f "$nlist"T
4981      fi
4982
4983      # Make sure that we snagged all the symbols we need.
4984      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4985	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4986	  cat <<_LT_EOF > conftest.$ac_ext
4987#ifdef __cplusplus
4988extern "C" {
4989#endif
4990
4991_LT_EOF
4992	  # Now generate the symbol file.
4993	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4994
4995	  cat <<_LT_EOF >> conftest.$ac_ext
4996
4997/* The mapping between symbol names and symbols.  */
4998const struct {
4999  const char *name;
5000  void       *address;
5001}
5002lt__PROGRAM__LTX_preloaded_symbols[] =
5003{
5004  { "@PROGRAM@", (void *) 0 },
5005_LT_EOF
5006	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5007	  cat <<\_LT_EOF >> conftest.$ac_ext
5008  {0, (void *) 0}
5009};
5010
5011/* This works around a problem in FreeBSD linker */
5012#ifdef FREEBSD_WORKAROUND
5013static const void *lt_preloaded_setup() {
5014  return lt__PROGRAM__LTX_preloaded_symbols;
5015}
5016#endif
5017
5018#ifdef __cplusplus
5019}
5020#endif
5021_LT_EOF
5022	  # Now try linking the two files.
5023	  mv conftest.$ac_objext conftstm.$ac_objext
5024	  lt_save_LIBS="$LIBS"
5025	  lt_save_CFLAGS="$CFLAGS"
5026	  LIBS="conftstm.$ac_objext"
5027	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5028	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5029  (eval $ac_link) 2>&5
5030  ac_status=$?
5031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5032  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5033	    pipe_works=yes
5034	  fi
5035	  LIBS="$lt_save_LIBS"
5036	  CFLAGS="$lt_save_CFLAGS"
5037	else
5038	  echo "cannot find nm_test_func in $nlist" >&5
5039	fi
5040      else
5041	echo "cannot find nm_test_var in $nlist" >&5
5042      fi
5043    else
5044      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5045    fi
5046  else
5047    echo "$progname: failed program was:" >&5
5048    cat conftest.$ac_ext >&5
5049  fi
5050  rm -rf conftest* conftst*
5051
5052  # Do not use the global_symbol_pipe unless it works.
5053  if test "$pipe_works" = yes; then
5054    break
5055  else
5056    lt_cv_sys_global_symbol_pipe=
5057  fi
5058done
5059
5060fi
5061
5062if test -z "$lt_cv_sys_global_symbol_pipe"; then
5063  lt_cv_sys_global_symbol_to_cdecl=
5064fi
5065if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5067$as_echo "failed" >&6; }
5068else
5069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5070$as_echo "ok" >&6; }
5071fi
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095# Check whether --enable-libtool-lock was given.
5096if test "${enable_libtool_lock+set}" = set; then :
5097  enableval=$enable_libtool_lock;
5098fi
5099
5100test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5101
5102# Some flags need to be propagated to the compiler or linker for good
5103# libtool support.
5104case $host in
5105ia64-*-hpux*)
5106  # Find out which ABI we are using.
5107  echo 'int i;' > conftest.$ac_ext
5108  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5109  (eval $ac_compile) 2>&5
5110  ac_status=$?
5111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5112  test $ac_status = 0; }; then
5113    case `/usr/bin/file conftest.$ac_objext` in
5114      *ELF-32*)
5115	HPUX_IA64_MODE="32"
5116	;;
5117      *ELF-64*)
5118	HPUX_IA64_MODE="64"
5119	;;
5120    esac
5121  fi
5122  rm -rf conftest*
5123  ;;
5124*-*-irix6*)
5125  # Find out which ABI we are using.
5126  echo '#line 5126 "configure"' > conftest.$ac_ext
5127  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5128  (eval $ac_compile) 2>&5
5129  ac_status=$?
5130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5131  test $ac_status = 0; }; then
5132    if test "$lt_cv_prog_gnu_ld" = yes; then
5133      case `/usr/bin/file conftest.$ac_objext` in
5134	*32-bit*)
5135	  LD="${LD-ld} -melf32bsmip"
5136	  ;;
5137	*N32*)
5138	  LD="${LD-ld} -melf32bmipn32"
5139	  ;;
5140	*64-bit*)
5141	  LD="${LD-ld} -melf64bmip"
5142	;;
5143      esac
5144    else
5145      case `/usr/bin/file conftest.$ac_objext` in
5146	*32-bit*)
5147	  LD="${LD-ld} -32"
5148	  ;;
5149	*N32*)
5150	  LD="${LD-ld} -n32"
5151	  ;;
5152	*64-bit*)
5153	  LD="${LD-ld} -64"
5154	  ;;
5155      esac
5156    fi
5157  fi
5158  rm -rf conftest*
5159  ;;
5160
5161x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5162s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5163  # Find out which ABI we are using.
5164  echo 'int i;' > conftest.$ac_ext
5165  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5166  (eval $ac_compile) 2>&5
5167  ac_status=$?
5168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5169  test $ac_status = 0; }; then
5170    case `/usr/bin/file conftest.o` in
5171      *32-bit*)
5172	case $host in
5173	  x86_64-*kfreebsd*-gnu)
5174	    LD="${LD-ld} -m elf_i386_fbsd"
5175	    ;;
5176	  x86_64-*linux*)
5177	    LD="${LD-ld} -m elf_i386"
5178	    ;;
5179	  ppc64-*linux*|powerpc64-*linux*)
5180	    LD="${LD-ld} -m elf32ppclinux"
5181	    ;;
5182	  s390x-*linux*)
5183	    LD="${LD-ld} -m elf_s390"
5184	    ;;
5185	  sparc64-*linux*)
5186	    LD="${LD-ld} -m elf32_sparc"
5187	    ;;
5188	esac
5189	;;
5190      *64-bit*)
5191	case $host in
5192	  x86_64-*kfreebsd*-gnu)
5193	    LD="${LD-ld} -m elf_x86_64_fbsd"
5194	    ;;
5195	  x86_64-*linux*)
5196	    LD="${LD-ld} -m elf_x86_64"
5197	    ;;
5198	  ppc*-*linux*|powerpc*-*linux*)
5199	    LD="${LD-ld} -m elf64ppc"
5200	    ;;
5201	  s390*-*linux*|s390*-*tpf*)
5202	    LD="${LD-ld} -m elf64_s390"
5203	    ;;
5204	  sparc*-*linux*)
5205	    LD="${LD-ld} -m elf64_sparc"
5206	    ;;
5207	esac
5208	;;
5209    esac
5210  fi
5211  rm -rf conftest*
5212  ;;
5213
5214*-*-sco3.2v5*)
5215  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5216  SAVE_CFLAGS="$CFLAGS"
5217  CFLAGS="$CFLAGS -belf"
5218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5219$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5220if ${lt_cv_cc_needs_belf+:} false; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  ac_ext=c
5224ac_cpp='$CPP $CPPFLAGS'
5225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228
5229     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230/* end confdefs.h.  */
5231
5232int
5233main ()
5234{
5235
5236  ;
5237  return 0;
5238}
5239_ACEOF
5240if ac_fn_c_try_link "$LINENO"; then :
5241  lt_cv_cc_needs_belf=yes
5242else
5243  lt_cv_cc_needs_belf=no
5244fi
5245rm -f core conftest.err conftest.$ac_objext \
5246    conftest$ac_exeext conftest.$ac_ext
5247     ac_ext=c
5248ac_cpp='$CPP $CPPFLAGS'
5249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252
5253fi
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5255$as_echo "$lt_cv_cc_needs_belf" >&6; }
5256  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5257    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5258    CFLAGS="$SAVE_CFLAGS"
5259  fi
5260  ;;
5261sparc*-*solaris*)
5262  # Find out which ABI we are using.
5263  echo 'int i;' > conftest.$ac_ext
5264  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5265  (eval $ac_compile) 2>&5
5266  ac_status=$?
5267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268  test $ac_status = 0; }; then
5269    case `/usr/bin/file conftest.o` in
5270    *64-bit*)
5271      case $lt_cv_prog_gnu_ld in
5272      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5273      *)
5274	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5275	  LD="${LD-ld} -64"
5276	fi
5277	;;
5278      esac
5279      ;;
5280    esac
5281  fi
5282  rm -rf conftest*
5283  ;;
5284esac
5285
5286need_locks="$enable_libtool_lock"
5287
5288
5289  case $host_os in
5290    rhapsody* | darwin*)
5291    if test -n "$ac_tool_prefix"; then
5292  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5293set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295$as_echo_n "checking for $ac_word... " >&6; }
5296if ${ac_cv_prog_DSYMUTIL+:} false; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  if test -n "$DSYMUTIL"; then
5300  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5301else
5302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH
5304do
5305  IFS=$as_save_IFS
5306  test -z "$as_dir" && as_dir=.
5307    for ac_exec_ext in '' $ac_executable_extensions; do
5308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311    break 2
5312  fi
5313done
5314  done
5315IFS=$as_save_IFS
5316
5317fi
5318fi
5319DSYMUTIL=$ac_cv_prog_DSYMUTIL
5320if test -n "$DSYMUTIL"; then
5321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5322$as_echo "$DSYMUTIL" >&6; }
5323else
5324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325$as_echo "no" >&6; }
5326fi
5327
5328
5329fi
5330if test -z "$ac_cv_prog_DSYMUTIL"; then
5331  ac_ct_DSYMUTIL=$DSYMUTIL
5332  # Extract the first word of "dsymutil", so it can be a program name with args.
5333set dummy dsymutil; ac_word=$2
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335$as_echo_n "checking for $ac_word... " >&6; }
5336if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5337  $as_echo_n "(cached) " >&6
5338else
5339  if test -n "$ac_ct_DSYMUTIL"; then
5340  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5341else
5342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH
5344do
5345  IFS=$as_save_IFS
5346  test -z "$as_dir" && as_dir=.
5347    for ac_exec_ext in '' $ac_executable_extensions; do
5348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351    break 2
5352  fi
5353done
5354  done
5355IFS=$as_save_IFS
5356
5357fi
5358fi
5359ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5360if test -n "$ac_ct_DSYMUTIL"; then
5361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5362$as_echo "$ac_ct_DSYMUTIL" >&6; }
5363else
5364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365$as_echo "no" >&6; }
5366fi
5367
5368  if test "x$ac_ct_DSYMUTIL" = x; then
5369    DSYMUTIL=":"
5370  else
5371    case $cross_compiling:$ac_tool_warned in
5372yes:)
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5375ac_tool_warned=yes ;;
5376esac
5377    DSYMUTIL=$ac_ct_DSYMUTIL
5378  fi
5379else
5380  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5381fi
5382
5383    if test -n "$ac_tool_prefix"; then
5384  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5385set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387$as_echo_n "checking for $ac_word... " >&6; }
5388if ${ac_cv_prog_NMEDIT+:} false; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  if test -n "$NMEDIT"; then
5392  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5393else
5394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in $PATH
5396do
5397  IFS=$as_save_IFS
5398  test -z "$as_dir" && as_dir=.
5399    for ac_exec_ext in '' $ac_executable_extensions; do
5400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403    break 2
5404  fi
5405done
5406  done
5407IFS=$as_save_IFS
5408
5409fi
5410fi
5411NMEDIT=$ac_cv_prog_NMEDIT
5412if test -n "$NMEDIT"; then
5413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5414$as_echo "$NMEDIT" >&6; }
5415else
5416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417$as_echo "no" >&6; }
5418fi
5419
5420
5421fi
5422if test -z "$ac_cv_prog_NMEDIT"; then
5423  ac_ct_NMEDIT=$NMEDIT
5424  # Extract the first word of "nmedit", so it can be a program name with args.
5425set dummy nmedit; ac_word=$2
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427$as_echo_n "checking for $ac_word... " >&6; }
5428if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5429  $as_echo_n "(cached) " >&6
5430else
5431  if test -n "$ac_ct_NMEDIT"; then
5432  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5433else
5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437  IFS=$as_save_IFS
5438  test -z "$as_dir" && as_dir=.
5439    for ac_exec_ext in '' $ac_executable_extensions; do
5440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443    break 2
5444  fi
5445done
5446  done
5447IFS=$as_save_IFS
5448
5449fi
5450fi
5451ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5452if test -n "$ac_ct_NMEDIT"; then
5453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5454$as_echo "$ac_ct_NMEDIT" >&6; }
5455else
5456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457$as_echo "no" >&6; }
5458fi
5459
5460  if test "x$ac_ct_NMEDIT" = x; then
5461    NMEDIT=":"
5462  else
5463    case $cross_compiling:$ac_tool_warned in
5464yes:)
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5467ac_tool_warned=yes ;;
5468esac
5469    NMEDIT=$ac_ct_NMEDIT
5470  fi
5471else
5472  NMEDIT="$ac_cv_prog_NMEDIT"
5473fi
5474
5475    if test -n "$ac_tool_prefix"; then
5476  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5477set dummy ${ac_tool_prefix}lipo; ac_word=$2
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479$as_echo_n "checking for $ac_word... " >&6; }
5480if ${ac_cv_prog_LIPO+:} false; then :
5481  $as_echo_n "(cached) " >&6
5482else
5483  if test -n "$LIPO"; then
5484  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489  IFS=$as_save_IFS
5490  test -z "$as_dir" && as_dir=.
5491    for ac_exec_ext in '' $ac_executable_extensions; do
5492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495    break 2
5496  fi
5497done
5498  done
5499IFS=$as_save_IFS
5500
5501fi
5502fi
5503LIPO=$ac_cv_prog_LIPO
5504if test -n "$LIPO"; then
5505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5506$as_echo "$LIPO" >&6; }
5507else
5508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509$as_echo "no" >&6; }
5510fi
5511
5512
5513fi
5514if test -z "$ac_cv_prog_LIPO"; then
5515  ac_ct_LIPO=$LIPO
5516  # Extract the first word of "lipo", so it can be a program name with args.
5517set dummy lipo; ac_word=$2
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519$as_echo_n "checking for $ac_word... " >&6; }
5520if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5521  $as_echo_n "(cached) " >&6
5522else
5523  if test -n "$ac_ct_LIPO"; then
5524  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5525else
5526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527for as_dir in $PATH
5528do
5529  IFS=$as_save_IFS
5530  test -z "$as_dir" && as_dir=.
5531    for ac_exec_ext in '' $ac_executable_extensions; do
5532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5533    ac_cv_prog_ac_ct_LIPO="lipo"
5534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535    break 2
5536  fi
5537done
5538  done
5539IFS=$as_save_IFS
5540
5541fi
5542fi
5543ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5544if test -n "$ac_ct_LIPO"; then
5545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5546$as_echo "$ac_ct_LIPO" >&6; }
5547else
5548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549$as_echo "no" >&6; }
5550fi
5551
5552  if test "x$ac_ct_LIPO" = x; then
5553    LIPO=":"
5554  else
5555    case $cross_compiling:$ac_tool_warned in
5556yes:)
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5559ac_tool_warned=yes ;;
5560esac
5561    LIPO=$ac_ct_LIPO
5562  fi
5563else
5564  LIPO="$ac_cv_prog_LIPO"
5565fi
5566
5567    if test -n "$ac_tool_prefix"; then
5568  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5569set dummy ${ac_tool_prefix}otool; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if ${ac_cv_prog_OTOOL+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  if test -n "$OTOOL"; then
5576  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581  IFS=$as_save_IFS
5582  test -z "$as_dir" && as_dir=.
5583    for ac_exec_ext in '' $ac_executable_extensions; do
5584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587    break 2
5588  fi
5589done
5590  done
5591IFS=$as_save_IFS
5592
5593fi
5594fi
5595OTOOL=$ac_cv_prog_OTOOL
5596if test -n "$OTOOL"; then
5597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5598$as_echo "$OTOOL" >&6; }
5599else
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605fi
5606if test -z "$ac_cv_prog_OTOOL"; then
5607  ac_ct_OTOOL=$OTOOL
5608  # Extract the first word of "otool", so it can be a program name with args.
5609set dummy otool; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  if test -n "$ac_ct_OTOOL"; then
5616  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5617else
5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621  IFS=$as_save_IFS
5622  test -z "$as_dir" && as_dir=.
5623    for ac_exec_ext in '' $ac_executable_extensions; do
5624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625    ac_cv_prog_ac_ct_OTOOL="otool"
5626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627    break 2
5628  fi
5629done
5630  done
5631IFS=$as_save_IFS
5632
5633fi
5634fi
5635ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5636if test -n "$ac_ct_OTOOL"; then
5637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5638$as_echo "$ac_ct_OTOOL" >&6; }
5639else
5640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641$as_echo "no" >&6; }
5642fi
5643
5644  if test "x$ac_ct_OTOOL" = x; then
5645    OTOOL=":"
5646  else
5647    case $cross_compiling:$ac_tool_warned in
5648yes:)
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651ac_tool_warned=yes ;;
5652esac
5653    OTOOL=$ac_ct_OTOOL
5654  fi
5655else
5656  OTOOL="$ac_cv_prog_OTOOL"
5657fi
5658
5659    if test -n "$ac_tool_prefix"; then
5660  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5661set dummy ${ac_tool_prefix}otool64; ac_word=$2
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663$as_echo_n "checking for $ac_word... " >&6; }
5664if ${ac_cv_prog_OTOOL64+:} false; then :
5665  $as_echo_n "(cached) " >&6
5666else
5667  if test -n "$OTOOL64"; then
5668  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5669else
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673  IFS=$as_save_IFS
5674  test -z "$as_dir" && as_dir=.
5675    for ac_exec_ext in '' $ac_executable_extensions; do
5676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679    break 2
5680  fi
5681done
5682  done
5683IFS=$as_save_IFS
5684
5685fi
5686fi
5687OTOOL64=$ac_cv_prog_OTOOL64
5688if test -n "$OTOOL64"; then
5689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5690$as_echo "$OTOOL64" >&6; }
5691else
5692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693$as_echo "no" >&6; }
5694fi
5695
5696
5697fi
5698if test -z "$ac_cv_prog_OTOOL64"; then
5699  ac_ct_OTOOL64=$OTOOL64
5700  # Extract the first word of "otool64", so it can be a program name with args.
5701set dummy otool64; ac_word=$2
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
5704if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5705  $as_echo_n "(cached) " >&6
5706else
5707  if test -n "$ac_ct_OTOOL64"; then
5708  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713  IFS=$as_save_IFS
5714  test -z "$as_dir" && as_dir=.
5715    for ac_exec_ext in '' $ac_executable_extensions; do
5716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717    ac_cv_prog_ac_ct_OTOOL64="otool64"
5718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719    break 2
5720  fi
5721done
5722  done
5723IFS=$as_save_IFS
5724
5725fi
5726fi
5727ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5728if test -n "$ac_ct_OTOOL64"; then
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5730$as_echo "$ac_ct_OTOOL64" >&6; }
5731else
5732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735
5736  if test "x$ac_ct_OTOOL64" = x; then
5737    OTOOL64=":"
5738  else
5739    case $cross_compiling:$ac_tool_warned in
5740yes:)
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5743ac_tool_warned=yes ;;
5744esac
5745    OTOOL64=$ac_ct_OTOOL64
5746  fi
5747else
5748  OTOOL64="$ac_cv_prog_OTOOL64"
5749fi
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5778$as_echo_n "checking for -single_module linker flag... " >&6; }
5779if ${lt_cv_apple_cc_single_mod+:} false; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782  lt_cv_apple_cc_single_mod=no
5783      if test -z "${LT_MULTI_MODULE}"; then
5784	# By default we will add the -single_module flag. You can override
5785	# by either setting the environment variable LT_MULTI_MODULE
5786	# non-empty at configure time, or by adding -multi_module to the
5787	# link flags.
5788	rm -rf libconftest.dylib*
5789	echo "int foo(void){return 1;}" > conftest.c
5790	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5791-dynamiclib -Wl,-single_module conftest.c" >&5
5792	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5793	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5794        _lt_result=$?
5795	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5796	  lt_cv_apple_cc_single_mod=yes
5797	else
5798	  cat conftest.err >&5
5799	fi
5800	rm -rf libconftest.dylib*
5801	rm -f conftest.*
5802      fi
5803fi
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5805$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5807$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5808if ${lt_cv_ld_exported_symbols_list+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  lt_cv_ld_exported_symbols_list=no
5812      save_LDFLAGS=$LDFLAGS
5813      echo "_main" > conftest.sym
5814      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5815      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h.  */
5817
5818int
5819main ()
5820{
5821
5822  ;
5823  return 0;
5824}
5825_ACEOF
5826if ac_fn_c_try_link "$LINENO"; then :
5827  lt_cv_ld_exported_symbols_list=yes
5828else
5829  lt_cv_ld_exported_symbols_list=no
5830fi
5831rm -f core conftest.err conftest.$ac_objext \
5832    conftest$ac_exeext conftest.$ac_ext
5833	LDFLAGS="$save_LDFLAGS"
5834
5835fi
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5837$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5838    case $host_os in
5839    rhapsody* | darwin1.[012])
5840      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5841    darwin1.*)
5842      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5843    darwin*) # darwin 5.x on
5844      # if running on 10.5 or later, the deployment target defaults
5845      # to the OS version, if on x86, and 10.4, the deployment
5846      # target defaults to 10.4. Don't you love it?
5847      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5848	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5849	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5850	10.[012]*)
5851	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5852	10.*)
5853	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5854      esac
5855    ;;
5856  esac
5857    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5858      _lt_dar_single_mod='$single_module'
5859    fi
5860    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5861      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5862    else
5863      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5864    fi
5865    if test "$DSYMUTIL" != ":"; then
5866      _lt_dsymutil='~$DSYMUTIL $lib || :'
5867    else
5868      _lt_dsymutil=
5869    fi
5870    ;;
5871  esac
5872
5873ac_ext=c
5874ac_cpp='$CPP $CPPFLAGS'
5875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877ac_compiler_gnu=$ac_cv_c_compiler_gnu
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5879$as_echo_n "checking how to run the C preprocessor... " >&6; }
5880# On Suns, sometimes $CPP names a directory.
5881if test -n "$CPP" && test -d "$CPP"; then
5882  CPP=
5883fi
5884if test -z "$CPP"; then
5885  if ${ac_cv_prog_CPP+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888      # Double quotes because CPP needs to be expanded
5889    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5890    do
5891      ac_preproc_ok=false
5892for ac_c_preproc_warn_flag in '' yes
5893do
5894  # Use a header file that comes with gcc, so configuring glibc
5895  # with a fresh cross-compiler works.
5896  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5897  # <limits.h> exists even on freestanding compilers.
5898  # On the NeXT, cc -E runs the code through the compiler's parser,
5899  # not just through cpp. "Syntax error" is here to catch this case.
5900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901/* end confdefs.h.  */
5902#ifdef __STDC__
5903# include <limits.h>
5904#else
5905# include <assert.h>
5906#endif
5907		     Syntax error
5908_ACEOF
5909if ac_fn_c_try_cpp "$LINENO"; then :
5910
5911else
5912  # Broken: fails on valid input.
5913continue
5914fi
5915rm -f conftest.err conftest.i conftest.$ac_ext
5916
5917  # OK, works on sane cases.  Now check whether nonexistent headers
5918  # can be detected and how.
5919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921#include <ac_nonexistent.h>
5922_ACEOF
5923if ac_fn_c_try_cpp "$LINENO"; then :
5924  # Broken: success on invalid input.
5925continue
5926else
5927  # Passes both tests.
5928ac_preproc_ok=:
5929break
5930fi
5931rm -f conftest.err conftest.i conftest.$ac_ext
5932
5933done
5934# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5935rm -f conftest.i conftest.err conftest.$ac_ext
5936if $ac_preproc_ok; then :
5937  break
5938fi
5939
5940    done
5941    ac_cv_prog_CPP=$CPP
5942
5943fi
5944  CPP=$ac_cv_prog_CPP
5945else
5946  ac_cv_prog_CPP=$CPP
5947fi
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5949$as_echo "$CPP" >&6; }
5950ac_preproc_ok=false
5951for ac_c_preproc_warn_flag in '' yes
5952do
5953  # Use a header file that comes with gcc, so configuring glibc
5954  # with a fresh cross-compiler works.
5955  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5956  # <limits.h> exists even on freestanding compilers.
5957  # On the NeXT, cc -E runs the code through the compiler's parser,
5958  # not just through cpp. "Syntax error" is here to catch this case.
5959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960/* end confdefs.h.  */
5961#ifdef __STDC__
5962# include <limits.h>
5963#else
5964# include <assert.h>
5965#endif
5966		     Syntax error
5967_ACEOF
5968if ac_fn_c_try_cpp "$LINENO"; then :
5969
5970else
5971  # Broken: fails on valid input.
5972continue
5973fi
5974rm -f conftest.err conftest.i conftest.$ac_ext
5975
5976  # OK, works on sane cases.  Now check whether nonexistent headers
5977  # can be detected and how.
5978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979/* end confdefs.h.  */
5980#include <ac_nonexistent.h>
5981_ACEOF
5982if ac_fn_c_try_cpp "$LINENO"; then :
5983  # Broken: success on invalid input.
5984continue
5985else
5986  # Passes both tests.
5987ac_preproc_ok=:
5988break
5989fi
5990rm -f conftest.err conftest.i conftest.$ac_ext
5991
5992done
5993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5994rm -f conftest.i conftest.err conftest.$ac_ext
5995if $ac_preproc_ok; then :
5996
5997else
5998  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6000as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6001See \`config.log' for more details" "$LINENO" 5; }
6002fi
6003
6004ac_ext=c
6005ac_cpp='$CPP $CPPFLAGS'
6006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009
6010
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6012$as_echo_n "checking for ANSI C header files... " >&6; }
6013if ${ac_cv_header_stdc+:} false; then :
6014  $as_echo_n "(cached) " >&6
6015else
6016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017/* end confdefs.h.  */
6018#include <stdlib.h>
6019#include <stdarg.h>
6020#include <string.h>
6021#include <float.h>
6022
6023int
6024main ()
6025{
6026
6027  ;
6028  return 0;
6029}
6030_ACEOF
6031if ac_fn_c_try_compile "$LINENO"; then :
6032  ac_cv_header_stdc=yes
6033else
6034  ac_cv_header_stdc=no
6035fi
6036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037
6038if test $ac_cv_header_stdc = yes; then
6039  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041/* end confdefs.h.  */
6042#include <string.h>
6043
6044_ACEOF
6045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6046  $EGREP "memchr" >/dev/null 2>&1; then :
6047
6048else
6049  ac_cv_header_stdc=no
6050fi
6051rm -f conftest*
6052
6053fi
6054
6055if test $ac_cv_header_stdc = yes; then
6056  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058/* end confdefs.h.  */
6059#include <stdlib.h>
6060
6061_ACEOF
6062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063  $EGREP "free" >/dev/null 2>&1; then :
6064
6065else
6066  ac_cv_header_stdc=no
6067fi
6068rm -f conftest*
6069
6070fi
6071
6072if test $ac_cv_header_stdc = yes; then
6073  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6074  if test "$cross_compiling" = yes; then :
6075  :
6076else
6077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078/* end confdefs.h.  */
6079#include <ctype.h>
6080#include <stdlib.h>
6081#if ((' ' & 0x0FF) == 0x020)
6082# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6083# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6084#else
6085# define ISLOWER(c) \
6086		   (('a' <= (c) && (c) <= 'i') \
6087		     || ('j' <= (c) && (c) <= 'r') \
6088		     || ('s' <= (c) && (c) <= 'z'))
6089# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6090#endif
6091
6092#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6093int
6094main ()
6095{
6096  int i;
6097  for (i = 0; i < 256; i++)
6098    if (XOR (islower (i), ISLOWER (i))
6099	|| toupper (i) != TOUPPER (i))
6100      return 2;
6101  return 0;
6102}
6103_ACEOF
6104if ac_fn_c_try_run "$LINENO"; then :
6105
6106else
6107  ac_cv_header_stdc=no
6108fi
6109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6110  conftest.$ac_objext conftest.beam conftest.$ac_ext
6111fi
6112
6113fi
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6116$as_echo "$ac_cv_header_stdc" >&6; }
6117if test $ac_cv_header_stdc = yes; then
6118
6119$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6120
6121fi
6122
6123# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6124for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6125		  inttypes.h stdint.h unistd.h
6126do :
6127  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6128ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6129"
6130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6131  cat >>confdefs.h <<_ACEOF
6132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6133_ACEOF
6134
6135fi
6136
6137done
6138
6139
6140for ac_header in dlfcn.h
6141do :
6142  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6143"
6144if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6145  cat >>confdefs.h <<_ACEOF
6146#define HAVE_DLFCN_H 1
6147_ACEOF
6148
6149fi
6150
6151done
6152
6153
6154
6155# Set options
6156
6157
6158
6159        enable_dlopen=no
6160
6161
6162  enable_win32_dll=no
6163
6164
6165            # Check whether --enable-shared was given.
6166if test "${enable_shared+set}" = set; then :
6167  enableval=$enable_shared; p=${PACKAGE-default}
6168    case $enableval in
6169    yes) enable_shared=yes ;;
6170    no) enable_shared=no ;;
6171    *)
6172      enable_shared=no
6173      # Look at the argument we got.  We use all the common list separators.
6174      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6175      for pkg in $enableval; do
6176	IFS="$lt_save_ifs"
6177	if test "X$pkg" = "X$p"; then
6178	  enable_shared=yes
6179	fi
6180      done
6181      IFS="$lt_save_ifs"
6182      ;;
6183    esac
6184else
6185  enable_shared=yes
6186fi
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196  # Check whether --enable-static was given.
6197if test "${enable_static+set}" = set; then :
6198  enableval=$enable_static; p=${PACKAGE-default}
6199    case $enableval in
6200    yes) enable_static=yes ;;
6201    no) enable_static=no ;;
6202    *)
6203     enable_static=no
6204      # Look at the argument we got.  We use all the common list separators.
6205      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6206      for pkg in $enableval; do
6207	IFS="$lt_save_ifs"
6208	if test "X$pkg" = "X$p"; then
6209	  enable_static=yes
6210	fi
6211      done
6212      IFS="$lt_save_ifs"
6213      ;;
6214    esac
6215else
6216  enable_static=yes
6217fi
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228# Check whether --with-pic was given.
6229if test "${with_pic+set}" = set; then :
6230  withval=$with_pic; pic_mode="$withval"
6231else
6232  pic_mode=default
6233fi
6234
6235
6236test -z "$pic_mode" && pic_mode=default
6237
6238
6239
6240
6241
6242
6243
6244  # Check whether --enable-fast-install was given.
6245if test "${enable_fast_install+set}" = set; then :
6246  enableval=$enable_fast_install; p=${PACKAGE-default}
6247    case $enableval in
6248    yes) enable_fast_install=yes ;;
6249    no) enable_fast_install=no ;;
6250    *)
6251      enable_fast_install=no
6252      # Look at the argument we got.  We use all the common list separators.
6253      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6254      for pkg in $enableval; do
6255	IFS="$lt_save_ifs"
6256	if test "X$pkg" = "X$p"; then
6257	  enable_fast_install=yes
6258	fi
6259      done
6260      IFS="$lt_save_ifs"
6261      ;;
6262    esac
6263else
6264  enable_fast_install=yes
6265fi
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277# This can be used to rebuild libtool when needed
6278LIBTOOL_DEPS="$ltmain"
6279
6280# Always use our own libtool.
6281LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307test -z "$LN_S" && LN_S="ln -s"
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322if test -n "${ZSH_VERSION+set}" ; then
6323   setopt NO_GLOB_SUBST
6324fi
6325
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6327$as_echo_n "checking for objdir... " >&6; }
6328if ${lt_cv_objdir+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331  rm -f .libs 2>/dev/null
6332mkdir .libs 2>/dev/null
6333if test -d .libs; then
6334  lt_cv_objdir=.libs
6335else
6336  # MS-DOS does not allow filenames that begin with a dot.
6337  lt_cv_objdir=_libs
6338fi
6339rmdir .libs 2>/dev/null
6340fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6342$as_echo "$lt_cv_objdir" >&6; }
6343objdir=$lt_cv_objdir
6344
6345
6346
6347
6348
6349cat >>confdefs.h <<_ACEOF
6350#define LT_OBJDIR "$lt_cv_objdir/"
6351_ACEOF
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369case $host_os in
6370aix3*)
6371  # AIX sometimes has problems with the GCC collect2 program.  For some
6372  # reason, if we set the COLLECT_NAMES environment variable, the problems
6373  # vanish in a puff of smoke.
6374  if test "X${COLLECT_NAMES+set}" != Xset; then
6375    COLLECT_NAMES=
6376    export COLLECT_NAMES
6377  fi
6378  ;;
6379esac
6380
6381# Sed substitution that helps us do robust quoting.  It backslashifies
6382# metacharacters that are still active within double-quoted strings.
6383sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6384
6385# Same as above, but do not quote variable references.
6386double_quote_subst='s/\(["`\\]\)/\\\1/g'
6387
6388# Sed substitution to delay expansion of an escaped shell variable in a
6389# double_quote_subst'ed string.
6390delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6391
6392# Sed substitution to delay expansion of an escaped single quote.
6393delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6394
6395# Sed substitution to avoid accidental globbing in evaled expressions
6396no_glob_subst='s/\*/\\\*/g'
6397
6398# Global variables:
6399ofile=libtool
6400can_build_shared=yes
6401
6402# All known linkers require a `.a' archive for static linking (except MSVC,
6403# which needs '.lib').
6404libext=a
6405
6406with_gnu_ld="$lt_cv_prog_gnu_ld"
6407
6408old_CC="$CC"
6409old_CFLAGS="$CFLAGS"
6410
6411# Set sane defaults for various variables
6412test -z "$CC" && CC=cc
6413test -z "$LTCC" && LTCC=$CC
6414test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6415test -z "$LD" && LD=ld
6416test -z "$ac_objext" && ac_objext=o
6417
6418for cc_temp in $compiler""; do
6419  case $cc_temp in
6420    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6421    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6422    \-*) ;;
6423    *) break;;
6424  esac
6425done
6426cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6427
6428
6429# Only perform the check for file, if the check method requires it
6430test -z "$MAGIC_CMD" && MAGIC_CMD=file
6431case $deplibs_check_method in
6432file_magic*)
6433  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6435$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6436if ${lt_cv_path_MAGIC_CMD+:} false; then :
6437  $as_echo_n "(cached) " >&6
6438else
6439  case $MAGIC_CMD in
6440[\\/*] |  ?:[\\/]*)
6441  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6442  ;;
6443*)
6444  lt_save_MAGIC_CMD="$MAGIC_CMD"
6445  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6446  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6447  for ac_dir in $ac_dummy; do
6448    IFS="$lt_save_ifs"
6449    test -z "$ac_dir" && ac_dir=.
6450    if test -f $ac_dir/${ac_tool_prefix}file; then
6451      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6452      if test -n "$file_magic_test_file"; then
6453	case $deplibs_check_method in
6454	"file_magic "*)
6455	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6456	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6457	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6458	    $EGREP "$file_magic_regex" > /dev/null; then
6459	    :
6460	  else
6461	    cat <<_LT_EOF 1>&2
6462
6463*** Warning: the command libtool uses to detect shared libraries,
6464*** $file_magic_cmd, produces output that libtool cannot recognize.
6465*** The result is that libtool may fail to recognize shared libraries
6466*** as such.  This will affect the creation of libtool libraries that
6467*** depend on shared libraries, but programs linked with such libtool
6468*** libraries will work regardless of this problem.  Nevertheless, you
6469*** may want to report the problem to your system manager and/or to
6470*** [email protected]
6471
6472_LT_EOF
6473	  fi ;;
6474	esac
6475      fi
6476      break
6477    fi
6478  done
6479  IFS="$lt_save_ifs"
6480  MAGIC_CMD="$lt_save_MAGIC_CMD"
6481  ;;
6482esac
6483fi
6484
6485MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6486if test -n "$MAGIC_CMD"; then
6487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6488$as_echo "$MAGIC_CMD" >&6; }
6489else
6490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491$as_echo "no" >&6; }
6492fi
6493
6494
6495
6496
6497
6498if test -z "$lt_cv_path_MAGIC_CMD"; then
6499  if test -n "$ac_tool_prefix"; then
6500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6501$as_echo_n "checking for file... " >&6; }
6502if ${lt_cv_path_MAGIC_CMD+:} false; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505  case $MAGIC_CMD in
6506[\\/*] |  ?:[\\/]*)
6507  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6508  ;;
6509*)
6510  lt_save_MAGIC_CMD="$MAGIC_CMD"
6511  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6512  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6513  for ac_dir in $ac_dummy; do
6514    IFS="$lt_save_ifs"
6515    test -z "$ac_dir" && ac_dir=.
6516    if test -f $ac_dir/file; then
6517      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6518      if test -n "$file_magic_test_file"; then
6519	case $deplibs_check_method in
6520	"file_magic "*)
6521	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6522	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6523	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6524	    $EGREP "$file_magic_regex" > /dev/null; then
6525	    :
6526	  else
6527	    cat <<_LT_EOF 1>&2
6528
6529*** Warning: the command libtool uses to detect shared libraries,
6530*** $file_magic_cmd, produces output that libtool cannot recognize.
6531*** The result is that libtool may fail to recognize shared libraries
6532*** as such.  This will affect the creation of libtool libraries that
6533*** depend on shared libraries, but programs linked with such libtool
6534*** libraries will work regardless of this problem.  Nevertheless, you
6535*** may want to report the problem to your system manager and/or to
6536*** [email protected]
6537
6538_LT_EOF
6539	  fi ;;
6540	esac
6541      fi
6542      break
6543    fi
6544  done
6545  IFS="$lt_save_ifs"
6546  MAGIC_CMD="$lt_save_MAGIC_CMD"
6547  ;;
6548esac
6549fi
6550
6551MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6552if test -n "$MAGIC_CMD"; then
6553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6554$as_echo "$MAGIC_CMD" >&6; }
6555else
6556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557$as_echo "no" >&6; }
6558fi
6559
6560
6561  else
6562    MAGIC_CMD=:
6563  fi
6564fi
6565
6566  fi
6567  ;;
6568esac
6569
6570# Use C for the default configuration in the libtool script
6571
6572lt_save_CC="$CC"
6573ac_ext=c
6574ac_cpp='$CPP $CPPFLAGS'
6575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577ac_compiler_gnu=$ac_cv_c_compiler_gnu
6578
6579
6580# Source file extension for C test sources.
6581ac_ext=c
6582
6583# Object file extension for compiled C test sources.
6584objext=o
6585objext=$objext
6586
6587# Code to be used in simple compile tests
6588lt_simple_compile_test_code="int some_variable = 0;"
6589
6590# Code to be used in simple link tests
6591lt_simple_link_test_code='int main(){return(0);}'
6592
6593
6594
6595
6596
6597
6598
6599# If no C compiler was specified, use CC.
6600LTCC=${LTCC-"$CC"}
6601
6602# If no C compiler flags were specified, use CFLAGS.
6603LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6604
6605# Allow CC to be a program name with arguments.
6606compiler=$CC
6607
6608# Save the default compiler, since it gets overwritten when the other
6609# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6610compiler_DEFAULT=$CC
6611
6612# save warnings/boilerplate of simple test code
6613ac_outfile=conftest.$ac_objext
6614echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6615eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6616_lt_compiler_boilerplate=`cat conftest.err`
6617$RM conftest*
6618
6619ac_outfile=conftest.$ac_objext
6620echo "$lt_simple_link_test_code" >conftest.$ac_ext
6621eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6622_lt_linker_boilerplate=`cat conftest.err`
6623$RM -r conftest*
6624
6625
6626if test -n "$compiler"; then
6627
6628lt_prog_compiler_no_builtin_flag=
6629
6630if test "$GCC" = yes; then
6631  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6632
6633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6634$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6635if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6636  $as_echo_n "(cached) " >&6
6637else
6638  lt_cv_prog_compiler_rtti_exceptions=no
6639   ac_outfile=conftest.$ac_objext
6640   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6641   lt_compiler_flag="-fno-rtti -fno-exceptions"
6642   # Insert the option either (1) after the last *FLAGS variable, or
6643   # (2) before a word containing "conftest.", or (3) at the end.
6644   # Note that $ac_compile itself does not contain backslashes and begins
6645   # with a dollar sign (not a hyphen), so the echo should work correctly.
6646   # The option is referenced via a variable to avoid confusing sed.
6647   lt_compile=`echo "$ac_compile" | $SED \
6648   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6649   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6650   -e 's:$: $lt_compiler_flag:'`
6651   (eval echo "\"\$as_me:6651: $lt_compile\"" >&5)
6652   (eval "$lt_compile" 2>conftest.err)
6653   ac_status=$?
6654   cat conftest.err >&5
6655   echo "$as_me:6655: \$? = $ac_status" >&5
6656   if (exit $ac_status) && test -s "$ac_outfile"; then
6657     # The compiler can only warn and ignore the option if not recognized
6658     # So say no if there are warnings other than the usual output.
6659     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6660     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6661     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6662       lt_cv_prog_compiler_rtti_exceptions=yes
6663     fi
6664   fi
6665   $RM conftest*
6666
6667fi
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6669$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6670
6671if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6672    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6673else
6674    :
6675fi
6676
6677fi
6678
6679
6680
6681
6682
6683
6684  lt_prog_compiler_wl=
6685lt_prog_compiler_pic=
6686lt_prog_compiler_static=
6687
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6689$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6690
6691  if test "$GCC" = yes; then
6692    lt_prog_compiler_wl='-Wl,'
6693    lt_prog_compiler_static='-static'
6694
6695    case $host_os in
6696      aix*)
6697      # All AIX code is PIC.
6698      if test "$host_cpu" = ia64; then
6699	# AIX 5 now supports IA64 processor
6700	lt_prog_compiler_static='-Bstatic'
6701      fi
6702      ;;
6703
6704    amigaos*)
6705      case $host_cpu in
6706      powerpc)
6707            # see comment about AmigaOS4 .so support
6708            lt_prog_compiler_pic='-fPIC'
6709        ;;
6710      m68k)
6711            # FIXME: we need at least 68020 code to build shared libraries, but
6712            # adding the `-m68020' flag to GCC prevents building anything better,
6713            # like `-m68040'.
6714            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6715        ;;
6716      esac
6717      ;;
6718
6719    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6720      # PIC is the default for these OSes.
6721      ;;
6722
6723    mingw* | cygwin* | pw32* | os2* | cegcc*)
6724      # This hack is so that the source file can tell whether it is being
6725      # built for inclusion in a dll (and should export symbols for example).
6726      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6727      # (--disable-auto-import) libraries
6728      lt_prog_compiler_pic='-DDLL_EXPORT'
6729      ;;
6730
6731    darwin* | rhapsody*)
6732      # PIC is the default on this platform
6733      # Common symbols not allowed in MH_DYLIB files
6734      lt_prog_compiler_pic='-fno-common'
6735      ;;
6736
6737    hpux*)
6738      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6739      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6740      # sets the default TLS model and affects inlining.
6741      case $host_cpu in
6742      hppa*64*)
6743	# +Z the default
6744	;;
6745      *)
6746	lt_prog_compiler_pic='-fPIC'
6747	;;
6748      esac
6749      ;;
6750
6751    interix[3-9]*)
6752      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6753      # Instead, we relocate shared libraries at runtime.
6754      ;;
6755
6756    msdosdjgpp*)
6757      # Just because we use GCC doesn't mean we suddenly get shared libraries
6758      # on systems that don't support them.
6759      lt_prog_compiler_can_build_shared=no
6760      enable_shared=no
6761      ;;
6762
6763    *nto* | *qnx*)
6764      # QNX uses GNU C++, but need to define -shared option too, otherwise
6765      # it will coredump.
6766      lt_prog_compiler_pic='-fPIC -shared'
6767      ;;
6768
6769    sysv4*MP*)
6770      if test -d /usr/nec; then
6771	lt_prog_compiler_pic=-Kconform_pic
6772      fi
6773      ;;
6774
6775    *)
6776      lt_prog_compiler_pic='-fPIC'
6777      ;;
6778    esac
6779  else
6780    # PORTME Check for flag to pass linker flags through the system compiler.
6781    case $host_os in
6782    aix*)
6783      lt_prog_compiler_wl='-Wl,'
6784      if test "$host_cpu" = ia64; then
6785	# AIX 5 now supports IA64 processor
6786	lt_prog_compiler_static='-Bstatic'
6787      else
6788	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6789      fi
6790      ;;
6791
6792    mingw* | cygwin* | pw32* | os2* | cegcc*)
6793      # This hack is so that the source file can tell whether it is being
6794      # built for inclusion in a dll (and should export symbols for example).
6795      lt_prog_compiler_pic='-DDLL_EXPORT'
6796      ;;
6797
6798    hpux9* | hpux10* | hpux11*)
6799      lt_prog_compiler_wl='-Wl,'
6800      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6801      # not for PA HP-UX.
6802      case $host_cpu in
6803      hppa*64*|ia64*)
6804	# +Z the default
6805	;;
6806      *)
6807	lt_prog_compiler_pic='+Z'
6808	;;
6809      esac
6810      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6811      lt_prog_compiler_static='${wl}-a ${wl}archive'
6812      ;;
6813
6814    irix5* | irix6* | nonstopux*)
6815      lt_prog_compiler_wl='-Wl,'
6816      # PIC (with -KPIC) is the default.
6817      lt_prog_compiler_static='-non_shared'
6818      ;;
6819
6820    linux* | k*bsd*-gnu)
6821      case $cc_basename in
6822      # old Intel for x86_64 which still supported -KPIC.
6823      ecc*)
6824	lt_prog_compiler_wl='-Wl,'
6825	lt_prog_compiler_pic='-KPIC'
6826	lt_prog_compiler_static='-static'
6827        ;;
6828      # icc used to be incompatible with GCC.
6829      # ICC 10 doesn't accept -KPIC any more.
6830      icc* | ifort*)
6831	lt_prog_compiler_wl='-Wl,'
6832	lt_prog_compiler_pic='-fPIC'
6833	lt_prog_compiler_static='-static'
6834        ;;
6835      # Lahey Fortran 8.1.
6836      lf95*)
6837	lt_prog_compiler_wl='-Wl,'
6838	lt_prog_compiler_pic='--shared'
6839	lt_prog_compiler_static='--static'
6840	;;
6841      pgcc* | pgf77* | pgf90* | pgf95*)
6842        # Portland Group compilers (*not* the Pentium gcc compiler,
6843	# which looks to be a dead project)
6844	lt_prog_compiler_wl='-Wl,'
6845	lt_prog_compiler_pic='-fpic'
6846	lt_prog_compiler_static='-Bstatic'
6847        ;;
6848      ccc*)
6849        lt_prog_compiler_wl='-Wl,'
6850        # All Alpha code is PIC.
6851        lt_prog_compiler_static='-non_shared'
6852        ;;
6853      xl*)
6854	# IBM XL C 8.0/Fortran 10.1 on PPC
6855	lt_prog_compiler_wl='-Wl,'
6856	lt_prog_compiler_pic='-qpic'
6857	lt_prog_compiler_static='-qstaticlink'
6858	;;
6859      *)
6860	case `$CC -V 2>&1 | sed 5q` in
6861	*Sun\ C*)
6862	  # Sun C 5.9
6863	  lt_prog_compiler_pic='-KPIC'
6864	  lt_prog_compiler_static='-Bstatic'
6865	  lt_prog_compiler_wl='-Wl,'
6866	  ;;
6867	*Sun\ F*)
6868	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
6869	  lt_prog_compiler_pic='-KPIC'
6870	  lt_prog_compiler_static='-Bstatic'
6871	  lt_prog_compiler_wl=''
6872	  ;;
6873	esac
6874	;;
6875      esac
6876      ;;
6877
6878    newsos6)
6879      lt_prog_compiler_pic='-KPIC'
6880      lt_prog_compiler_static='-Bstatic'
6881      ;;
6882
6883    *nto* | *qnx*)
6884      # QNX uses GNU C++, but need to define -shared option too, otherwise
6885      # it will coredump.
6886      lt_prog_compiler_pic='-fPIC -shared'
6887      ;;
6888
6889    osf3* | osf4* | osf5*)
6890      lt_prog_compiler_wl='-Wl,'
6891      # All OSF/1 code is PIC.
6892      lt_prog_compiler_static='-non_shared'
6893      ;;
6894
6895    rdos*)
6896      lt_prog_compiler_static='-non_shared'
6897      ;;
6898
6899    solaris*)
6900      lt_prog_compiler_pic='-KPIC'
6901      lt_prog_compiler_static='-Bstatic'
6902      case $cc_basename in
6903      f77* | f90* | f95*)
6904	lt_prog_compiler_wl='-Qoption ld ';;
6905      *)
6906	lt_prog_compiler_wl='-Wl,';;
6907      esac
6908      ;;
6909
6910    sunos4*)
6911      lt_prog_compiler_wl='-Qoption ld '
6912      lt_prog_compiler_pic='-PIC'
6913      lt_prog_compiler_static='-Bstatic'
6914      ;;
6915
6916    sysv4 | sysv4.2uw2* | sysv4.3*)
6917      lt_prog_compiler_wl='-Wl,'
6918      lt_prog_compiler_pic='-KPIC'
6919      lt_prog_compiler_static='-Bstatic'
6920      ;;
6921
6922    sysv4*MP*)
6923      if test -d /usr/nec ;then
6924	lt_prog_compiler_pic='-Kconform_pic'
6925	lt_prog_compiler_static='-Bstatic'
6926      fi
6927      ;;
6928
6929    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6930      lt_prog_compiler_wl='-Wl,'
6931      lt_prog_compiler_pic='-KPIC'
6932      lt_prog_compiler_static='-Bstatic'
6933      ;;
6934
6935    unicos*)
6936      lt_prog_compiler_wl='-Wl,'
6937      lt_prog_compiler_can_build_shared=no
6938      ;;
6939
6940    uts4*)
6941      lt_prog_compiler_pic='-pic'
6942      lt_prog_compiler_static='-Bstatic'
6943      ;;
6944
6945    *)
6946      lt_prog_compiler_can_build_shared=no
6947      ;;
6948    esac
6949  fi
6950
6951case $host_os in
6952  # For platforms which do not support PIC, -DPIC is meaningless:
6953  *djgpp*)
6954    lt_prog_compiler_pic=
6955    ;;
6956  *)
6957    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6958    ;;
6959esac
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6961$as_echo "$lt_prog_compiler_pic" >&6; }
6962
6963
6964
6965
6966
6967
6968#
6969# Check to make sure the PIC flag actually works.
6970#
6971if test -n "$lt_prog_compiler_pic"; then
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6973$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6974if ${lt_cv_prog_compiler_pic_works+:} false; then :
6975  $as_echo_n "(cached) " >&6
6976else
6977  lt_cv_prog_compiler_pic_works=no
6978   ac_outfile=conftest.$ac_objext
6979   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6980   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6981   # Insert the option either (1) after the last *FLAGS variable, or
6982   # (2) before a word containing "conftest.", or (3) at the end.
6983   # Note that $ac_compile itself does not contain backslashes and begins
6984   # with a dollar sign (not a hyphen), so the echo should work correctly.
6985   # The option is referenced via a variable to avoid confusing sed.
6986   lt_compile=`echo "$ac_compile" | $SED \
6987   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6988   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6989   -e 's:$: $lt_compiler_flag:'`
6990   (eval echo "\"\$as_me:6990: $lt_compile\"" >&5)
6991   (eval "$lt_compile" 2>conftest.err)
6992   ac_status=$?
6993   cat conftest.err >&5
6994   echo "$as_me:6994: \$? = $ac_status" >&5
6995   if (exit $ac_status) && test -s "$ac_outfile"; then
6996     # The compiler can only warn and ignore the option if not recognized
6997     # So say no if there are warnings other than the usual output.
6998     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6999     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7000     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7001       lt_cv_prog_compiler_pic_works=yes
7002     fi
7003   fi
7004   $RM conftest*
7005
7006fi
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7008$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7009
7010if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7011    case $lt_prog_compiler_pic in
7012     "" | " "*) ;;
7013     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7014     esac
7015else
7016    lt_prog_compiler_pic=
7017     lt_prog_compiler_can_build_shared=no
7018fi
7019
7020fi
7021
7022
7023
7024
7025
7026
7027#
7028# Check to make sure the static flag actually works.
7029#
7030wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7032$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7033if ${lt_cv_prog_compiler_static_works+:} false; then :
7034  $as_echo_n "(cached) " >&6
7035else
7036  lt_cv_prog_compiler_static_works=no
7037   save_LDFLAGS="$LDFLAGS"
7038   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7039   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7040   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7041     # The linker can only warn and ignore the option if not recognized
7042     # So say no if there are warnings
7043     if test -s conftest.err; then
7044       # Append any errors to the config.log.
7045       cat conftest.err 1>&5
7046       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7047       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7048       if diff conftest.exp conftest.er2 >/dev/null; then
7049         lt_cv_prog_compiler_static_works=yes
7050       fi
7051     else
7052       lt_cv_prog_compiler_static_works=yes
7053     fi
7054   fi
7055   $RM -r conftest*
7056   LDFLAGS="$save_LDFLAGS"
7057
7058fi
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7060$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7061
7062if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7063    :
7064else
7065    lt_prog_compiler_static=
7066fi
7067
7068
7069
7070
7071
7072
7073
7074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7075$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7076if ${lt_cv_prog_compiler_c_o+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  lt_cv_prog_compiler_c_o=no
7080   $RM -r conftest 2>/dev/null
7081   mkdir conftest
7082   cd conftest
7083   mkdir out
7084   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7085
7086   lt_compiler_flag="-o out/conftest2.$ac_objext"
7087   # Insert the option either (1) after the last *FLAGS variable, or
7088   # (2) before a word containing "conftest.", or (3) at the end.
7089   # Note that $ac_compile itself does not contain backslashes and begins
7090   # with a dollar sign (not a hyphen), so the echo should work correctly.
7091   lt_compile=`echo "$ac_compile" | $SED \
7092   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7093   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7094   -e 's:$: $lt_compiler_flag:'`
7095   (eval echo "\"\$as_me:7095: $lt_compile\"" >&5)
7096   (eval "$lt_compile" 2>out/conftest.err)
7097   ac_status=$?
7098   cat out/conftest.err >&5
7099   echo "$as_me:7099: \$? = $ac_status" >&5
7100   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7101   then
7102     # The compiler can only warn and ignore the option if not recognized
7103     # So say no if there are warnings
7104     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7105     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7106     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7107       lt_cv_prog_compiler_c_o=yes
7108     fi
7109   fi
7110   chmod u+w . 2>&5
7111   $RM conftest*
7112   # SGI C++ compiler will create directory out/ii_files/ for
7113   # template instantiation
7114   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7115   $RM out/* && rmdir out
7116   cd ..
7117   $RM -r conftest
7118   $RM conftest*
7119
7120fi
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7122$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7123
7124
7125
7126
7127
7128
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7130$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7131if ${lt_cv_prog_compiler_c_o+:} false; then :
7132  $as_echo_n "(cached) " >&6
7133else
7134  lt_cv_prog_compiler_c_o=no
7135   $RM -r conftest 2>/dev/null
7136   mkdir conftest
7137   cd conftest
7138   mkdir out
7139   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7140
7141   lt_compiler_flag="-o out/conftest2.$ac_objext"
7142   # Insert the option either (1) after the last *FLAGS variable, or
7143   # (2) before a word containing "conftest.", or (3) at the end.
7144   # Note that $ac_compile itself does not contain backslashes and begins
7145   # with a dollar sign (not a hyphen), so the echo should work correctly.
7146   lt_compile=`echo "$ac_compile" | $SED \
7147   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7148   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7149   -e 's:$: $lt_compiler_flag:'`
7150   (eval echo "\"\$as_me:7150: $lt_compile\"" >&5)
7151   (eval "$lt_compile" 2>out/conftest.err)
7152   ac_status=$?
7153   cat out/conftest.err >&5
7154   echo "$as_me:7154: \$? = $ac_status" >&5
7155   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7156   then
7157     # The compiler can only warn and ignore the option if not recognized
7158     # So say no if there are warnings
7159     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7160     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7161     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7162       lt_cv_prog_compiler_c_o=yes
7163     fi
7164   fi
7165   chmod u+w . 2>&5
7166   $RM conftest*
7167   # SGI C++ compiler will create directory out/ii_files/ for
7168   # template instantiation
7169   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7170   $RM out/* && rmdir out
7171   cd ..
7172   $RM -r conftest
7173   $RM conftest*
7174
7175fi
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7177$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7178
7179
7180
7181
7182hard_links="nottested"
7183if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7184  # do not overwrite the value of need_locks provided by the user
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7186$as_echo_n "checking if we can lock with hard links... " >&6; }
7187  hard_links=yes
7188  $RM conftest*
7189  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7190  touch conftest.a
7191  ln conftest.a conftest.b 2>&5 || hard_links=no
7192  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7194$as_echo "$hard_links" >&6; }
7195  if test "$hard_links" = no; then
7196    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7197$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7198    need_locks=warn
7199  fi
7200else
7201  need_locks=no
7202fi
7203
7204
7205
7206
7207
7208
7209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7210$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7211
7212  runpath_var=
7213  allow_undefined_flag=
7214  always_export_symbols=no
7215  archive_cmds=
7216  archive_expsym_cmds=
7217  compiler_needs_object=no
7218  enable_shared_with_static_runtimes=no
7219  export_dynamic_flag_spec=
7220  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7221  hardcode_automatic=no
7222  hardcode_direct=no
7223  hardcode_direct_absolute=no
7224  hardcode_libdir_flag_spec=
7225  hardcode_libdir_flag_spec_ld=
7226  hardcode_libdir_separator=
7227  hardcode_minus_L=no
7228  hardcode_shlibpath_var=unsupported
7229  inherit_rpath=no
7230  link_all_deplibs=unknown
7231  module_cmds=
7232  module_expsym_cmds=
7233  old_archive_from_new_cmds=
7234  old_archive_from_expsyms_cmds=
7235  thread_safe_flag_spec=
7236  whole_archive_flag_spec=
7237  # include_expsyms should be a list of space-separated symbols to be *always*
7238  # included in the symbol list
7239  include_expsyms=
7240  # exclude_expsyms can be an extended regexp of symbols to exclude
7241  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7242  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7243  # as well as any symbol that contains `d'.
7244  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7245  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7246  # platforms (ab)use it in PIC code, but their linkers get confused if
7247  # the symbol is explicitly referenced.  Since portable code cannot
7248  # rely on this symbol name, it's probably fine to never include it in
7249  # preloaded symbol tables.
7250  # Exclude shared library initialization/finalization symbols.
7251  extract_expsyms_cmds=
7252
7253  case $host_os in
7254  cygwin* | mingw* | pw32* | cegcc*)
7255    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7256    # When not using gcc, we currently assume that we are using
7257    # Microsoft Visual C++.
7258    if test "$GCC" != yes; then
7259      with_gnu_ld=no
7260    fi
7261    ;;
7262  interix*)
7263    # we just hope/assume this is gcc and not c89 (= MSVC++)
7264    with_gnu_ld=yes
7265    ;;
7266  openbsd*)
7267    with_gnu_ld=no
7268    ;;
7269  esac
7270
7271  ld_shlibs=yes
7272  if test "$with_gnu_ld" = yes; then
7273    # If archive_cmds runs LD, not CC, wlarc should be empty
7274    wlarc='${wl}'
7275
7276    # Set some defaults for GNU ld with shared library support. These
7277    # are reset later if shared libraries are not supported. Putting them
7278    # here allows them to be overridden if necessary.
7279    runpath_var=LD_RUN_PATH
7280    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7281    export_dynamic_flag_spec='${wl}--export-dynamic'
7282    # ancient GNU ld didn't support --whole-archive et. al.
7283    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7284      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7285    else
7286      whole_archive_flag_spec=
7287    fi
7288    supports_anon_versioning=no
7289    case `$LD -v 2>&1` in
7290      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7291      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7292      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7293      *\ 2.11.*) ;; # other 2.11 versions
7294      *) supports_anon_versioning=yes ;;
7295    esac
7296
7297    # See if GNU ld supports shared libraries.
7298    case $host_os in
7299    aix[3-9]*)
7300      # On AIX/PPC, the GNU linker is very broken
7301      if test "$host_cpu" != ia64; then
7302	ld_shlibs=no
7303	cat <<_LT_EOF 1>&2
7304
7305*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7306*** to be unable to reliably create shared libraries on AIX.
7307*** Therefore, libtool is disabling shared libraries support.  If you
7308*** really care for shared libraries, you may want to modify your PATH
7309*** so that a non-GNU linker is found, and then restart.
7310
7311_LT_EOF
7312      fi
7313      ;;
7314
7315    amigaos*)
7316      case $host_cpu in
7317      powerpc)
7318            # see comment about AmigaOS4 .so support
7319            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7320            archive_expsym_cmds=''
7321        ;;
7322      m68k)
7323            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)'
7324            hardcode_libdir_flag_spec='-L$libdir'
7325            hardcode_minus_L=yes
7326        ;;
7327      esac
7328      ;;
7329
7330    beos*)
7331      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7332	allow_undefined_flag=unsupported
7333	# Joseph Beckenbach <[email protected]> says some releases of gcc
7334	# support --undefined.  This deserves some investigation.  FIXME
7335	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7336      else
7337	ld_shlibs=no
7338      fi
7339      ;;
7340
7341    cygwin* | mingw* | pw32* | cegcc*)
7342      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7343      # as there is no search path for DLLs.
7344      hardcode_libdir_flag_spec='-L$libdir'
7345      allow_undefined_flag=unsupported
7346      always_export_symbols=no
7347      enable_shared_with_static_runtimes=yes
7348      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7349
7350      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7351        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7352	# If the export-symbols file already is a .def file (1st line
7353	# is EXPORTS), use it as is; otherwise, prepend...
7354	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7355	  cp $export_symbols $output_objdir/$soname.def;
7356	else
7357	  echo EXPORTS > $output_objdir/$soname.def;
7358	  cat $export_symbols >> $output_objdir/$soname.def;
7359	fi~
7360	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7361      else
7362	ld_shlibs=no
7363      fi
7364      ;;
7365
7366    interix[3-9]*)
7367      hardcode_direct=no
7368      hardcode_shlibpath_var=no
7369      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7370      export_dynamic_flag_spec='${wl}-E'
7371      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7372      # Instead, shared libraries are loaded at an image base (0x10000000 by
7373      # default) and relocated if they conflict, which is a slow very memory
7374      # consuming and fragmenting process.  To avoid this, we pick a random,
7375      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7376      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7377      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7378      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'
7379      ;;
7380
7381    gnu* | linux* | tpf* | k*bsd*-gnu)
7382      tmp_diet=no
7383      if test "$host_os" = linux-dietlibc; then
7384	case $cc_basename in
7385	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7386	esac
7387      fi
7388      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7389	 && test "$tmp_diet" = no
7390      then
7391	tmp_addflag=
7392	tmp_sharedflag='-shared'
7393	case $cc_basename,$host_cpu in
7394        pgcc*)				# Portland Group C compiler
7395	  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'
7396	  tmp_addflag=' $pic_flag'
7397	  ;;
7398	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7399	  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'
7400	  tmp_addflag=' $pic_flag -Mnomain' ;;
7401	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7402	  tmp_addflag=' -i_dynamic' ;;
7403	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7404	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7405	ifc* | ifort*)			# Intel Fortran compiler
7406	  tmp_addflag=' -nofor_main' ;;
7407	lf95*)				# Lahey Fortran 8.1
7408	  whole_archive_flag_spec=
7409	  tmp_sharedflag='--shared' ;;
7410	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7411	  tmp_sharedflag='-qmkshrobj'
7412	  tmp_addflag= ;;
7413	esac
7414	case `$CC -V 2>&1 | sed 5q` in
7415	*Sun\ C*)			# Sun C 5.9
7416	  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'
7417	  compiler_needs_object=yes
7418	  tmp_sharedflag='-G' ;;
7419	*Sun\ F*)			# Sun Fortran 8.3
7420	  tmp_sharedflag='-G' ;;
7421	esac
7422	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7423
7424        if test "x$supports_anon_versioning" = xyes; then
7425          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7426	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7427	    echo "local: *; };" >> $output_objdir/$libname.ver~
7428	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7429        fi
7430
7431	case $cc_basename in
7432	xlf*)
7433	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7434	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7435	  hardcode_libdir_flag_spec=
7436	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7437	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7438	  if test "x$supports_anon_versioning" = xyes; then
7439	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7440	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7441	      echo "local: *; };" >> $output_objdir/$libname.ver~
7442	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7443	  fi
7444	  ;;
7445	esac
7446      else
7447        ld_shlibs=no
7448      fi
7449      ;;
7450
7451    netbsd*)
7452      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7453	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7454	wlarc=
7455      else
7456	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7457	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7458      fi
7459      ;;
7460
7461    solaris*)
7462      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7463	ld_shlibs=no
7464	cat <<_LT_EOF 1>&2
7465
7466*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7467*** create shared libraries on Solaris systems.  Therefore, libtool
7468*** is disabling shared libraries support.  We urge you to upgrade GNU
7469*** binutils to release 2.9.1 or newer.  Another option is to modify
7470*** your PATH or compiler configuration so that the native linker is
7471*** used, and then restart.
7472
7473_LT_EOF
7474      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7475	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7476	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7477      else
7478	ld_shlibs=no
7479      fi
7480      ;;
7481
7482    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7483      case `$LD -v 2>&1` in
7484        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7485	ld_shlibs=no
7486	cat <<_LT_EOF 1>&2
7487
7488*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7489*** reliably create shared libraries on SCO systems.  Therefore, libtool
7490*** is disabling shared libraries support.  We urge you to upgrade GNU
7491*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7492*** your PATH or compiler configuration so that the native linker is
7493*** used, and then restart.
7494
7495_LT_EOF
7496	;;
7497	*)
7498	  # For security reasons, it is highly recommended that you always
7499	  # use absolute paths for naming shared libraries, and exclude the
7500	  # DT_RUNPATH tag from executables and libraries.  But doing so
7501	  # requires that you compile everything twice, which is a pain.
7502	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7503	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7504	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7505	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7506	  else
7507	    ld_shlibs=no
7508	  fi
7509	;;
7510      esac
7511      ;;
7512
7513    sunos4*)
7514      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7515      wlarc=
7516      hardcode_direct=yes
7517      hardcode_shlibpath_var=no
7518      ;;
7519
7520    *)
7521      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7522	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7523	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7524      else
7525	ld_shlibs=no
7526      fi
7527      ;;
7528    esac
7529
7530    if test "$ld_shlibs" = no; then
7531      runpath_var=
7532      hardcode_libdir_flag_spec=
7533      export_dynamic_flag_spec=
7534      whole_archive_flag_spec=
7535    fi
7536  else
7537    # PORTME fill in a description of your system's linker (not GNU ld)
7538    case $host_os in
7539    aix3*)
7540      allow_undefined_flag=unsupported
7541      always_export_symbols=yes
7542      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'
7543      # Note: this linker hardcodes the directories in LIBPATH if there
7544      # are no directories specified by -L.
7545      hardcode_minus_L=yes
7546      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7547	# Neither direct hardcoding nor static linking is supported with a
7548	# broken collect2.
7549	hardcode_direct=unsupported
7550      fi
7551      ;;
7552
7553    aix[4-9]*)
7554      if test "$host_cpu" = ia64; then
7555	# On IA64, the linker does run time linking by default, so we don't
7556	# have to do anything special.
7557	aix_use_runtimelinking=no
7558	exp_sym_flag='-Bexport'
7559	no_entry_flag=""
7560      else
7561	# If we're using GNU nm, then we don't want the "-C" option.
7562	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7563	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7564	  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'
7565	else
7566	  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'
7567	fi
7568	aix_use_runtimelinking=no
7569
7570	# Test if we are trying to use run time linking or normal
7571	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7572	# need to do runtime linking.
7573	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7574	  for ld_flag in $LDFLAGS; do
7575	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7576	    aix_use_runtimelinking=yes
7577	    break
7578	  fi
7579	  done
7580	  ;;
7581	esac
7582
7583	exp_sym_flag='-bexport'
7584	no_entry_flag='-bnoentry'
7585      fi
7586
7587      # When large executables or shared objects are built, AIX ld can
7588      # have problems creating the table of contents.  If linking a library
7589      # or program results in "error TOC overflow" add -mminimal-toc to
7590      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7591      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7592
7593      archive_cmds=''
7594      hardcode_direct=yes
7595      hardcode_direct_absolute=yes
7596      hardcode_libdir_separator=':'
7597      link_all_deplibs=yes
7598      file_list_spec='${wl}-f,'
7599
7600      if test "$GCC" = yes; then
7601	case $host_os in aix4.[012]|aix4.[012].*)
7602	# We only want to do this on AIX 4.2 and lower, the check
7603	# below for broken collect2 doesn't work under 4.3+
7604	  collect2name=`${CC} -print-prog-name=collect2`
7605	  if test -f "$collect2name" &&
7606	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7607	  then
7608	  # We have reworked collect2
7609	  :
7610	  else
7611	  # We have old collect2
7612	  hardcode_direct=unsupported
7613	  # It fails to find uninstalled libraries when the uninstalled
7614	  # path is not listed in the libpath.  Setting hardcode_minus_L
7615	  # to unsupported forces relinking
7616	  hardcode_minus_L=yes
7617	  hardcode_libdir_flag_spec='-L$libdir'
7618	  hardcode_libdir_separator=
7619	  fi
7620	  ;;
7621	esac
7622	shared_flag='-shared'
7623	if test "$aix_use_runtimelinking" = yes; then
7624	  shared_flag="$shared_flag "'${wl}-G'
7625	fi
7626      else
7627	# not using gcc
7628	if test "$host_cpu" = ia64; then
7629	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7630	# chokes on -Wl,-G. The following line is correct:
7631	  shared_flag='-G'
7632	else
7633	  if test "$aix_use_runtimelinking" = yes; then
7634	    shared_flag='${wl}-G'
7635	  else
7636	    shared_flag='${wl}-bM:SRE'
7637	  fi
7638	fi
7639      fi
7640
7641      export_dynamic_flag_spec='${wl}-bexpall'
7642      # It seems that -bexpall does not export symbols beginning with
7643      # underscore (_), so it is better to generate a list of symbols to export.
7644      always_export_symbols=yes
7645      if test "$aix_use_runtimelinking" = yes; then
7646	# Warning - without using the other runtime loading flags (-brtl),
7647	# -berok will link without error, but may produce a broken library.
7648	allow_undefined_flag='-berok'
7649        # Determine the default libpath from the value encoded in an
7650        # empty executable.
7651        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652/* end confdefs.h.  */
7653
7654int
7655main ()
7656{
7657
7658  ;
7659  return 0;
7660}
7661_ACEOF
7662if ac_fn_c_try_link "$LINENO"; then :
7663
7664lt_aix_libpath_sed='
7665    /Import File Strings/,/^$/ {
7666	/^0/ {
7667	    s/^0  *\(.*\)$/\1/
7668	    p
7669	}
7670    }'
7671aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7672# Check for a 64-bit object if we didn't find anything.
7673if test -z "$aix_libpath"; then
7674  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7675fi
7676fi
7677rm -f core conftest.err conftest.$ac_objext \
7678    conftest$ac_exeext conftest.$ac_ext
7679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7680
7681        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7682        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"
7683      else
7684	if test "$host_cpu" = ia64; then
7685	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7686	  allow_undefined_flag="-z nodefs"
7687	  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"
7688	else
7689	 # Determine the default libpath from the value encoded in an
7690	 # empty executable.
7691	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692/* end confdefs.h.  */
7693
7694int
7695main ()
7696{
7697
7698  ;
7699  return 0;
7700}
7701_ACEOF
7702if ac_fn_c_try_link "$LINENO"; then :
7703
7704lt_aix_libpath_sed='
7705    /Import File Strings/,/^$/ {
7706	/^0/ {
7707	    s/^0  *\(.*\)$/\1/
7708	    p
7709	}
7710    }'
7711aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7712# Check for a 64-bit object if we didn't find anything.
7713if test -z "$aix_libpath"; then
7714  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7715fi
7716fi
7717rm -f core conftest.err conftest.$ac_objext \
7718    conftest$ac_exeext conftest.$ac_ext
7719if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7720
7721	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7722	  # Warning - without using the other run time loading flags,
7723	  # -berok will link without error, but may produce a broken library.
7724	  no_undefined_flag=' ${wl}-bernotok'
7725	  allow_undefined_flag=' ${wl}-berok'
7726	  # Exported symbols can be pulled into shared objects from archives
7727	  whole_archive_flag_spec='$convenience'
7728	  archive_cmds_need_lc=yes
7729	  # This is similar to how AIX traditionally builds its shared libraries.
7730	  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'
7731	fi
7732      fi
7733      ;;
7734
7735    amigaos*)
7736      case $host_cpu in
7737      powerpc)
7738            # see comment about AmigaOS4 .so support
7739            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7740            archive_expsym_cmds=''
7741        ;;
7742      m68k)
7743            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)'
7744            hardcode_libdir_flag_spec='-L$libdir'
7745            hardcode_minus_L=yes
7746        ;;
7747      esac
7748      ;;
7749
7750    bsdi[45]*)
7751      export_dynamic_flag_spec=-rdynamic
7752      ;;
7753
7754    cygwin* | mingw* | pw32* | cegcc*)
7755      # When not using gcc, we currently assume that we are using
7756      # Microsoft Visual C++.
7757      # hardcode_libdir_flag_spec is actually meaningless, as there is
7758      # no search path for DLLs.
7759      hardcode_libdir_flag_spec=' '
7760      allow_undefined_flag=unsupported
7761      # Tell ltmain to make .lib files, not .a files.
7762      libext=lib
7763      # Tell ltmain to make .dll files, not .so files.
7764      shrext_cmds=".dll"
7765      # FIXME: Setting linknames here is a bad hack.
7766      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7767      # The linker will automatically build a .lib file if we build a DLL.
7768      old_archive_from_new_cmds='true'
7769      # FIXME: Should let the user specify the lib program.
7770      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7771      fix_srcfile_path='`cygpath -w "$srcfile"`'
7772      enable_shared_with_static_runtimes=yes
7773      ;;
7774
7775    darwin* | rhapsody*)
7776
7777
7778  archive_cmds_need_lc=no
7779  hardcode_direct=no
7780  hardcode_automatic=yes
7781  hardcode_shlibpath_var=unsupported
7782  whole_archive_flag_spec=''
7783  link_all_deplibs=yes
7784  allow_undefined_flag="$_lt_dar_allow_undefined"
7785  case $cc_basename in
7786     ifort*) _lt_dar_can_shared=yes ;;
7787     *) _lt_dar_can_shared=$GCC ;;
7788  esac
7789  if test "$_lt_dar_can_shared" = "yes"; then
7790    output_verbose_link_cmd=echo
7791    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7792    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7793    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}"
7794    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}"
7795
7796  else
7797  ld_shlibs=no
7798  fi
7799
7800      ;;
7801
7802    dgux*)
7803      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7804      hardcode_libdir_flag_spec='-L$libdir'
7805      hardcode_shlibpath_var=no
7806      ;;
7807
7808    freebsd1*)
7809      ld_shlibs=no
7810      ;;
7811
7812    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7813    # support.  Future versions do this automatically, but an explicit c++rt0.o
7814    # does not break anything, and helps significantly (at the cost of a little
7815    # extra space).
7816    freebsd2.2*)
7817      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7818      hardcode_libdir_flag_spec='-R$libdir'
7819      hardcode_direct=yes
7820      hardcode_shlibpath_var=no
7821      ;;
7822
7823    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7824    freebsd2*)
7825      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7826      hardcode_direct=yes
7827      hardcode_minus_L=yes
7828      hardcode_shlibpath_var=no
7829      ;;
7830
7831    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7832    freebsd* | dragonfly*)
7833      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7834      hardcode_libdir_flag_spec='-R$libdir'
7835      hardcode_direct=yes
7836      hardcode_shlibpath_var=no
7837      ;;
7838
7839    hpux9*)
7840      if test "$GCC" = yes; then
7841	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'
7842      else
7843	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'
7844      fi
7845      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7846      hardcode_libdir_separator=:
7847      hardcode_direct=yes
7848
7849      # hardcode_minus_L: Not really in the search PATH,
7850      # but as the default location of the library.
7851      hardcode_minus_L=yes
7852      export_dynamic_flag_spec='${wl}-E'
7853      ;;
7854
7855    hpux10*)
7856      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7857	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7858      else
7859	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7860      fi
7861      if test "$with_gnu_ld" = no; then
7862	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7863	hardcode_libdir_flag_spec_ld='+b $libdir'
7864	hardcode_libdir_separator=:
7865	hardcode_direct=yes
7866	hardcode_direct_absolute=yes
7867	export_dynamic_flag_spec='${wl}-E'
7868	# hardcode_minus_L: Not really in the search PATH,
7869	# but as the default location of the library.
7870	hardcode_minus_L=yes
7871      fi
7872      ;;
7873
7874    hpux11*)
7875      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7876	case $host_cpu in
7877	hppa*64*)
7878	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7879	  ;;
7880	ia64*)
7881	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7882	  ;;
7883	*)
7884	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7885	  ;;
7886	esac
7887      else
7888	case $host_cpu in
7889	hppa*64*)
7890	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7891	  ;;
7892	ia64*)
7893	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7894	  ;;
7895	*)
7896	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7897	  ;;
7898	esac
7899      fi
7900      if test "$with_gnu_ld" = no; then
7901	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7902	hardcode_libdir_separator=:
7903
7904	case $host_cpu in
7905	hppa*64*|ia64*)
7906	  hardcode_direct=no
7907	  hardcode_shlibpath_var=no
7908	  ;;
7909	*)
7910	  hardcode_direct=yes
7911	  hardcode_direct_absolute=yes
7912	  export_dynamic_flag_spec='${wl}-E'
7913
7914	  # hardcode_minus_L: Not really in the search PATH,
7915	  # but as the default location of the library.
7916	  hardcode_minus_L=yes
7917	  ;;
7918	esac
7919      fi
7920      ;;
7921
7922    irix5* | irix6* | nonstopux*)
7923      if test "$GCC" = yes; then
7924	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'
7925	# Try to use the -exported_symbol ld option, if it does not
7926	# work, assume that -exports_file does not work either and
7927	# implicitly export all symbols.
7928        save_LDFLAGS="$LDFLAGS"
7929        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7930        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931/* end confdefs.h.  */
7932int foo(void) {}
7933_ACEOF
7934if ac_fn_c_try_link "$LINENO"; then :
7935  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'
7936
7937fi
7938rm -f core conftest.err conftest.$ac_objext \
7939    conftest$ac_exeext conftest.$ac_ext
7940        LDFLAGS="$save_LDFLAGS"
7941      else
7942	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'
7943	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'
7944      fi
7945      archive_cmds_need_lc='no'
7946      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7947      hardcode_libdir_separator=:
7948      inherit_rpath=yes
7949      link_all_deplibs=yes
7950      ;;
7951
7952    netbsd*)
7953      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7954	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7955      else
7956	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7957      fi
7958      hardcode_libdir_flag_spec='-R$libdir'
7959      hardcode_direct=yes
7960      hardcode_shlibpath_var=no
7961      ;;
7962
7963    newsos6)
7964      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7965      hardcode_direct=yes
7966      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7967      hardcode_libdir_separator=:
7968      hardcode_shlibpath_var=no
7969      ;;
7970
7971    *nto* | *qnx*)
7972      ;;
7973
7974    openbsd*)
7975      if test -f /usr/libexec/ld.so; then
7976	hardcode_direct=yes
7977	hardcode_shlibpath_var=no
7978	hardcode_direct_absolute=yes
7979	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7980	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7981	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7982	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7983	  export_dynamic_flag_spec='${wl}-E'
7984	else
7985	  case $host_os in
7986	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7987	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7988	     hardcode_libdir_flag_spec='-R$libdir'
7989	     ;;
7990	   *)
7991	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7992	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7993	     ;;
7994	  esac
7995	fi
7996      else
7997	ld_shlibs=no
7998      fi
7999      ;;
8000
8001    os2*)
8002      hardcode_libdir_flag_spec='-L$libdir'
8003      hardcode_minus_L=yes
8004      allow_undefined_flag=unsupported
8005      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'
8006      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8007      ;;
8008
8009    osf3*)
8010      if test "$GCC" = yes; then
8011	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8012	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'
8013      else
8014	allow_undefined_flag=' -expect_unresolved \*'
8015	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'
8016      fi
8017      archive_cmds_need_lc='no'
8018      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8019      hardcode_libdir_separator=:
8020      ;;
8021
8022    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8023      if test "$GCC" = yes; then
8024	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8025	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'
8026	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8027      else
8028	allow_undefined_flag=' -expect_unresolved \*'
8029	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'
8030	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~
8031	$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'
8032
8033	# Both c and cxx compiler support -rpath directly
8034	hardcode_libdir_flag_spec='-rpath $libdir'
8035      fi
8036      archive_cmds_need_lc='no'
8037      hardcode_libdir_separator=:
8038      ;;
8039
8040    solaris*)
8041      no_undefined_flag=' -z defs'
8042      if test "$GCC" = yes; then
8043	wlarc='${wl}'
8044	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8045	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8046	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8047      else
8048	case `$CC -V 2>&1` in
8049	*"Compilers 5.0"*)
8050	  wlarc=''
8051	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8052	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8053	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8054	  ;;
8055	*)
8056	  wlarc='${wl}'
8057	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8058	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8059	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8060	  ;;
8061	esac
8062      fi
8063      hardcode_libdir_flag_spec='-R$libdir'
8064      hardcode_shlibpath_var=no
8065      case $host_os in
8066      solaris2.[0-5] | solaris2.[0-5].*) ;;
8067      *)
8068	# The compiler driver will combine and reorder linker options,
8069	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8070	# but is careful enough not to reorder.
8071	# Supported since Solaris 2.6 (maybe 2.5.1?)
8072	if test "$GCC" = yes; then
8073	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8074	else
8075	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8076	fi
8077	;;
8078      esac
8079      link_all_deplibs=yes
8080      ;;
8081
8082    sunos4*)
8083      if test "x$host_vendor" = xsequent; then
8084	# Use $CC to link under sequent, because it throws in some extra .o
8085	# files that make .init and .fini sections work.
8086	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8087      else
8088	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8089      fi
8090      hardcode_libdir_flag_spec='-L$libdir'
8091      hardcode_direct=yes
8092      hardcode_minus_L=yes
8093      hardcode_shlibpath_var=no
8094      ;;
8095
8096    sysv4)
8097      case $host_vendor in
8098	sni)
8099	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8100	  hardcode_direct=yes # is this really true???
8101	;;
8102	siemens)
8103	  ## LD is ld it makes a PLAMLIB
8104	  ## CC just makes a GrossModule.
8105	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8106	  reload_cmds='$CC -r -o $output$reload_objs'
8107	  hardcode_direct=no
8108        ;;
8109	motorola)
8110	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8111	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8112	;;
8113      esac
8114      runpath_var='LD_RUN_PATH'
8115      hardcode_shlibpath_var=no
8116      ;;
8117
8118    sysv4.3*)
8119      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8120      hardcode_shlibpath_var=no
8121      export_dynamic_flag_spec='-Bexport'
8122      ;;
8123
8124    sysv4*MP*)
8125      if test -d /usr/nec; then
8126	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8127	hardcode_shlibpath_var=no
8128	runpath_var=LD_RUN_PATH
8129	hardcode_runpath_var=yes
8130	ld_shlibs=yes
8131      fi
8132      ;;
8133
8134    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8135      no_undefined_flag='${wl}-z,text'
8136      archive_cmds_need_lc=no
8137      hardcode_shlibpath_var=no
8138      runpath_var='LD_RUN_PATH'
8139
8140      if test "$GCC" = yes; then
8141	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8142	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8143      else
8144	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8145	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8146      fi
8147      ;;
8148
8149    sysv5* | sco3.2v5* | sco5v6*)
8150      # Note: We can NOT use -z defs as we might desire, because we do not
8151      # link with -lc, and that would cause any symbols used from libc to
8152      # always be unresolved, which means just about no library would
8153      # ever link correctly.  If we're not using GNU ld we use -z text
8154      # though, which does catch some bad symbols but isn't as heavy-handed
8155      # as -z defs.
8156      no_undefined_flag='${wl}-z,text'
8157      allow_undefined_flag='${wl}-z,nodefs'
8158      archive_cmds_need_lc=no
8159      hardcode_shlibpath_var=no
8160      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8161      hardcode_libdir_separator=':'
8162      link_all_deplibs=yes
8163      export_dynamic_flag_spec='${wl}-Bexport'
8164      runpath_var='LD_RUN_PATH'
8165
8166      if test "$GCC" = yes; then
8167	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8168	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8169      else
8170	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8171	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8172      fi
8173      ;;
8174
8175    uts4*)
8176      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8177      hardcode_libdir_flag_spec='-L$libdir'
8178      hardcode_shlibpath_var=no
8179      ;;
8180
8181    *)
8182      ld_shlibs=no
8183      ;;
8184    esac
8185
8186    if test x$host_vendor = xsni; then
8187      case $host in
8188      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8189	export_dynamic_flag_spec='${wl}-Blargedynsym'
8190	;;
8191      esac
8192    fi
8193  fi
8194
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8196$as_echo "$ld_shlibs" >&6; }
8197test "$ld_shlibs" = no && can_build_shared=no
8198
8199with_gnu_ld=$with_gnu_ld
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215#
8216# Do we need to explicitly link libc?
8217#
8218case "x$archive_cmds_need_lc" in
8219x|xyes)
8220  # Assume -lc should be added
8221  archive_cmds_need_lc=yes
8222
8223  if test "$enable_shared" = yes && test "$GCC" = yes; then
8224    case $archive_cmds in
8225    *'~'*)
8226      # FIXME: we may have to deal with multi-command sequences.
8227      ;;
8228    '$CC '*)
8229      # Test whether the compiler implicitly links with -lc since on some
8230      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8231      # to ld, don't add -lc before -lgcc.
8232      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8233$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8234      $RM conftest*
8235      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8236
8237      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8238  (eval $ac_compile) 2>&5
8239  ac_status=$?
8240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8241  test $ac_status = 0; } 2>conftest.err; then
8242        soname=conftest
8243        lib=conftest
8244        libobjs=conftest.$ac_objext
8245        deplibs=
8246        wl=$lt_prog_compiler_wl
8247	pic_flag=$lt_prog_compiler_pic
8248        compiler_flags=-v
8249        linker_flags=-v
8250        verstring=
8251        output_objdir=.
8252        libname=conftest
8253        lt_save_allow_undefined_flag=$allow_undefined_flag
8254        allow_undefined_flag=
8255        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8256  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8257  ac_status=$?
8258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8259  test $ac_status = 0; }
8260        then
8261	  archive_cmds_need_lc=no
8262        else
8263	  archive_cmds_need_lc=yes
8264        fi
8265        allow_undefined_flag=$lt_save_allow_undefined_flag
8266      else
8267        cat conftest.err 1>&5
8268      fi
8269      $RM conftest*
8270      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8271$as_echo "$archive_cmds_need_lc" >&6; }
8272      ;;
8273    esac
8274  fi
8275  ;;
8276esac
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8435$as_echo_n "checking dynamic linker characteristics... " >&6; }
8436
8437if test "$GCC" = yes; then
8438  case $host_os in
8439    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8440    *) lt_awk_arg="/^libraries:/" ;;
8441  esac
8442  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8443  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8444    # if the path contains ";" then we assume it to be the separator
8445    # otherwise default to the standard path separator (i.e. ":") - it is
8446    # assumed that no part of a normal pathname contains ";" but that should
8447    # okay in the real world where ";" in dirpaths is itself problematic.
8448    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8449  else
8450    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8451  fi
8452  # Ok, now we have the path, separated by spaces, we can step through it
8453  # and add multilib dir if necessary.
8454  lt_tmp_lt_search_path_spec=
8455  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8456  for lt_sys_path in $lt_search_path_spec; do
8457    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8458      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8459    else
8460      test -d "$lt_sys_path" && \
8461	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8462    fi
8463  done
8464  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8465BEGIN {RS=" "; FS="/|\n";} {
8466  lt_foo="";
8467  lt_count=0;
8468  for (lt_i = NF; lt_i > 0; lt_i--) {
8469    if ($lt_i != "" && $lt_i != ".") {
8470      if ($lt_i == "..") {
8471        lt_count++;
8472      } else {
8473        if (lt_count == 0) {
8474          lt_foo="/" $lt_i lt_foo;
8475        } else {
8476          lt_count--;
8477        }
8478      }
8479    }
8480  }
8481  if (lt_foo != "") { lt_freq[lt_foo]++; }
8482  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8483}'`
8484  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8485else
8486  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8487fi
8488library_names_spec=
8489libname_spec='lib$name'
8490soname_spec=
8491shrext_cmds=".so"
8492postinstall_cmds=
8493postuninstall_cmds=
8494finish_cmds=
8495finish_eval=
8496shlibpath_var=
8497shlibpath_overrides_runpath=unknown
8498version_type=none
8499dynamic_linker="$host_os ld.so"
8500sys_lib_dlsearch_path_spec="/lib /usr/lib"
8501need_lib_prefix=unknown
8502hardcode_into_libs=no
8503
8504# when you set need_version to no, make sure it does not cause -set_version
8505# flags to be left without arguments
8506need_version=unknown
8507
8508case $host_os in
8509aix3*)
8510  version_type=linux
8511  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8512  shlibpath_var=LIBPATH
8513
8514  # AIX 3 has no versioning support, so we append a major version to the name.
8515  soname_spec='${libname}${release}${shared_ext}$major'
8516  ;;
8517
8518aix[4-9]*)
8519  version_type=linux
8520  need_lib_prefix=no
8521  need_version=no
8522  hardcode_into_libs=yes
8523  if test "$host_cpu" = ia64; then
8524    # AIX 5 supports IA64
8525    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8526    shlibpath_var=LD_LIBRARY_PATH
8527  else
8528    # With GCC up to 2.95.x, collect2 would create an import file
8529    # for dependence libraries.  The import file would start with
8530    # the line `#! .'.  This would cause the generated library to
8531    # depend on `.', always an invalid library.  This was fixed in
8532    # development snapshots of GCC prior to 3.0.
8533    case $host_os in
8534      aix4 | aix4.[01] | aix4.[01].*)
8535      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8536	   echo ' yes '
8537	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8538	:
8539      else
8540	can_build_shared=no
8541      fi
8542      ;;
8543    esac
8544    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8545    # soname into executable. Probably we can add versioning support to
8546    # collect2, so additional links can be useful in future.
8547    if test "$aix_use_runtimelinking" = yes; then
8548      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8549      # instead of lib<name>.a to let people know that these are not
8550      # typical AIX shared libraries.
8551      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552    else
8553      # We preserve .a as extension for shared libraries through AIX4.2
8554      # and later when we are not doing run time linking.
8555      library_names_spec='${libname}${release}.a $libname.a'
8556      soname_spec='${libname}${release}${shared_ext}$major'
8557    fi
8558    shlibpath_var=LIBPATH
8559  fi
8560  ;;
8561
8562amigaos*)
8563  case $host_cpu in
8564  powerpc)
8565    # Since July 2007 AmigaOS4 officially supports .so libraries.
8566    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8567    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8568    ;;
8569  m68k)
8570    library_names_spec='$libname.ixlibrary $libname.a'
8571    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8572    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'
8573    ;;
8574  esac
8575  ;;
8576
8577beos*)
8578  library_names_spec='${libname}${shared_ext}'
8579  dynamic_linker="$host_os ld.so"
8580  shlibpath_var=LIBRARY_PATH
8581  ;;
8582
8583bsdi[45]*)
8584  version_type=linux
8585  need_version=no
8586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8587  soname_spec='${libname}${release}${shared_ext}$major'
8588  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8589  shlibpath_var=LD_LIBRARY_PATH
8590  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8591  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8592  # the default ld.so.conf also contains /usr/contrib/lib and
8593  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8594  # libtool to hard-code these into programs
8595  ;;
8596
8597cygwin* | mingw* | pw32* | cegcc*)
8598  version_type=windows
8599  shrext_cmds=".dll"
8600  need_version=no
8601  need_lib_prefix=no
8602
8603  case $GCC,$host_os in
8604  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8605    library_names_spec='$libname.dll.a'
8606    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8607    postinstall_cmds='base_file=`basename \${file}`~
8608      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8609      dldir=$destdir/`dirname \$dlpath`~
8610      test -d \$dldir || mkdir -p \$dldir~
8611      $install_prog $dir/$dlname \$dldir/$dlname~
8612      chmod a+x \$dldir/$dlname~
8613      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8614        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8615      fi'
8616    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8617      dlpath=$dir/\$dldll~
8618       $RM \$dlpath'
8619    shlibpath_overrides_runpath=yes
8620
8621    case $host_os in
8622    cygwin*)
8623      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8624      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8625      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8626      ;;
8627    mingw* | cegcc*)
8628      # MinGW DLLs use traditional 'lib' prefix
8629      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8630      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8631      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8632        # It is most probably a Windows format PATH printed by
8633        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8634        # path with ; separators, and with drive letters. We can handle the
8635        # drive letters (cygwin fileutils understands them), so leave them,
8636        # especially as we might pass files found there to a mingw objdump,
8637        # which wouldn't understand a cygwinified path. Ahh.
8638        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8639      else
8640        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8641      fi
8642      ;;
8643    pw32*)
8644      # pw32 DLLs use 'pw' prefix rather than 'lib'
8645      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8646      ;;
8647    esac
8648    ;;
8649
8650  *)
8651    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8652    ;;
8653  esac
8654  dynamic_linker='Win32 ld.exe'
8655  # FIXME: first we should search . and the directory the executable is in
8656  shlibpath_var=PATH
8657  ;;
8658
8659darwin* | rhapsody*)
8660  dynamic_linker="$host_os dyld"
8661  version_type=darwin
8662  need_lib_prefix=no
8663  need_version=no
8664  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8665  soname_spec='${libname}${release}${major}$shared_ext'
8666  shlibpath_overrides_runpath=yes
8667  shlibpath_var=DYLD_LIBRARY_PATH
8668  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8669
8670  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8671  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8672  ;;
8673
8674dgux*)
8675  version_type=linux
8676  need_lib_prefix=no
8677  need_version=no
8678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8679  soname_spec='${libname}${release}${shared_ext}$major'
8680  shlibpath_var=LD_LIBRARY_PATH
8681  ;;
8682
8683freebsd1*)
8684  dynamic_linker=no
8685  ;;
8686
8687freebsd* | dragonfly*)
8688  # DragonFly does not have aout.  When/if they implement a new
8689  # versioning mechanism, adjust this.
8690  if test -x /usr/bin/objformat; then
8691    objformat=`/usr/bin/objformat`
8692  else
8693    case $host_os in
8694    freebsd[123]*) objformat=aout ;;
8695    *) objformat=elf ;;
8696    esac
8697  fi
8698  # Handle Gentoo/FreeBSD as it was Linux
8699  case $host_vendor in
8700    gentoo)
8701      version_type=linux ;;
8702    *)
8703      version_type=freebsd-$objformat ;;
8704  esac
8705
8706  case $version_type in
8707    freebsd-elf*)
8708      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8709      need_version=no
8710      need_lib_prefix=no
8711      ;;
8712    freebsd-*)
8713      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8714      need_version=yes
8715      ;;
8716    linux)
8717      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8718      soname_spec='${libname}${release}${shared_ext}$major'
8719      need_lib_prefix=no
8720      need_version=no
8721      ;;
8722  esac
8723  shlibpath_var=LD_LIBRARY_PATH
8724  case $host_os in
8725  freebsd2*)
8726    shlibpath_overrides_runpath=yes
8727    ;;
8728  freebsd3.[01]* | freebsdelf3.[01]*)
8729    shlibpath_overrides_runpath=yes
8730    hardcode_into_libs=yes
8731    ;;
8732  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8733  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8734    shlibpath_overrides_runpath=no
8735    hardcode_into_libs=yes
8736    ;;
8737  *) # from 4.6 on, and DragonFly
8738    shlibpath_overrides_runpath=yes
8739    hardcode_into_libs=yes
8740    ;;
8741  esac
8742  ;;
8743
8744gnu*)
8745  version_type=linux
8746  need_lib_prefix=no
8747  need_version=no
8748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8749  soname_spec='${libname}${release}${shared_ext}$major'
8750  shlibpath_var=LD_LIBRARY_PATH
8751  hardcode_into_libs=yes
8752  ;;
8753
8754hpux9* | hpux10* | hpux11*)
8755  # Give a soname corresponding to the major version so that dld.sl refuses to
8756  # link against other versions.
8757  version_type=sunos
8758  need_lib_prefix=no
8759  need_version=no
8760  case $host_cpu in
8761  ia64*)
8762    shrext_cmds='.so'
8763    hardcode_into_libs=yes
8764    dynamic_linker="$host_os dld.so"
8765    shlibpath_var=LD_LIBRARY_PATH
8766    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8767    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768    soname_spec='${libname}${release}${shared_ext}$major'
8769    if test "X$HPUX_IA64_MODE" = X32; then
8770      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8771    else
8772      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8773    fi
8774    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8775    ;;
8776  hppa*64*)
8777    shrext_cmds='.sl'
8778    hardcode_into_libs=yes
8779    dynamic_linker="$host_os dld.sl"
8780    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8781    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8782    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8783    soname_spec='${libname}${release}${shared_ext}$major'
8784    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8785    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8786    ;;
8787  *)
8788    shrext_cmds='.sl'
8789    dynamic_linker="$host_os dld.sl"
8790    shlibpath_var=SHLIB_PATH
8791    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8792    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8793    soname_spec='${libname}${release}${shared_ext}$major'
8794    ;;
8795  esac
8796  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8797  postinstall_cmds='chmod 555 $lib'
8798  ;;
8799
8800interix[3-9]*)
8801  version_type=linux
8802  need_lib_prefix=no
8803  need_version=no
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  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8807  shlibpath_var=LD_LIBRARY_PATH
8808  shlibpath_overrides_runpath=no
8809  hardcode_into_libs=yes
8810  ;;
8811
8812irix5* | irix6* | nonstopux*)
8813  case $host_os in
8814    nonstopux*) version_type=nonstopux ;;
8815    *)
8816	if test "$lt_cv_prog_gnu_ld" = yes; then
8817		version_type=linux
8818	else
8819		version_type=irix
8820	fi ;;
8821  esac
8822  need_lib_prefix=no
8823  need_version=no
8824  soname_spec='${libname}${release}${shared_ext}$major'
8825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8826  case $host_os in
8827  irix5* | nonstopux*)
8828    libsuff= shlibsuff=
8829    ;;
8830  *)
8831    case $LD in # libtool.m4 will add one of these switches to LD
8832    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8833      libsuff= shlibsuff= libmagic=32-bit;;
8834    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8835      libsuff=32 shlibsuff=N32 libmagic=N32;;
8836    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8837      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8838    *) libsuff= shlibsuff= libmagic=never-match;;
8839    esac
8840    ;;
8841  esac
8842  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8843  shlibpath_overrides_runpath=no
8844  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8845  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8846  hardcode_into_libs=yes
8847  ;;
8848
8849# No shared lib support for Linux oldld, aout, or coff.
8850linux*oldld* | linux*aout* | linux*coff*)
8851  dynamic_linker=no
8852  ;;
8853
8854# This must be Linux ELF.
8855linux* | k*bsd*-gnu)
8856  version_type=linux
8857  need_lib_prefix=no
8858  need_version=no
8859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860  soname_spec='${libname}${release}${shared_ext}$major'
8861  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8862  shlibpath_var=LD_LIBRARY_PATH
8863  shlibpath_overrides_runpath=no
8864  # Some binutils ld are patched to set DT_RUNPATH
8865  save_LDFLAGS=$LDFLAGS
8866  save_libdir=$libdir
8867  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8868       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870/* end confdefs.h.  */
8871
8872int
8873main ()
8874{
8875
8876  ;
8877  return 0;
8878}
8879_ACEOF
8880if ac_fn_c_try_link "$LINENO"; then :
8881  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8882  shlibpath_overrides_runpath=yes
8883fi
8884fi
8885rm -f core conftest.err conftest.$ac_objext \
8886    conftest$ac_exeext conftest.$ac_ext
8887  LDFLAGS=$save_LDFLAGS
8888  libdir=$save_libdir
8889
8890  # This implies no fast_install, which is unacceptable.
8891  # Some rework will be needed to allow for fast_install
8892  # before this can be enabled.
8893  hardcode_into_libs=yes
8894
8895  # Append ld.so.conf contents to the search path
8896  if test -f /etc/ld.so.conf; then
8897    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' ' '`
8898    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8899  fi
8900
8901  # We used to test for /lib/ld.so.1 and disable shared libraries on
8902  # powerpc, because MkLinux only supported shared libraries with the
8903  # GNU dynamic linker.  Since this was broken with cross compilers,
8904  # most powerpc-linux boxes support dynamic linking these days and
8905  # people can always --disable-shared, the test was removed, and we
8906  # assume the GNU/Linux dynamic linker is in use.
8907  dynamic_linker='GNU/Linux ld.so'
8908  ;;
8909
8910netbsd*)
8911  version_type=sunos
8912  need_lib_prefix=no
8913  need_version=no
8914  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8915    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8916    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8917    dynamic_linker='NetBSD (a.out) ld.so'
8918  else
8919    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8920    soname_spec='${libname}${release}${shared_ext}$major'
8921    dynamic_linker='NetBSD ld.elf_so'
8922  fi
8923  shlibpath_var=LD_LIBRARY_PATH
8924  shlibpath_overrides_runpath=yes
8925  hardcode_into_libs=yes
8926  ;;
8927
8928newsos6)
8929  version_type=linux
8930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931  shlibpath_var=LD_LIBRARY_PATH
8932  shlibpath_overrides_runpath=yes
8933  ;;
8934
8935*nto* | *qnx*)
8936  version_type=qnx
8937  need_lib_prefix=no
8938  need_version=no
8939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940  soname_spec='${libname}${release}${shared_ext}$major'
8941  shlibpath_var=LD_LIBRARY_PATH
8942  shlibpath_overrides_runpath=no
8943  hardcode_into_libs=yes
8944  dynamic_linker='ldqnx.so'
8945  ;;
8946
8947openbsd*)
8948  version_type=sunos
8949  sys_lib_dlsearch_path_spec="/usr/lib"
8950  need_lib_prefix=no
8951  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8952  case $host_os in
8953    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
8954    *)				need_version=no  ;;
8955  esac
8956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8957  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8958  shlibpath_var=LD_LIBRARY_PATH
8959  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8960    case $host_os in
8961      openbsd2.[89] | openbsd2.[89].*)
8962	shlibpath_overrides_runpath=no
8963	;;
8964      *)
8965	shlibpath_overrides_runpath=yes
8966	;;
8967      esac
8968  else
8969    shlibpath_overrides_runpath=yes
8970  fi
8971  ;;
8972
8973os2*)
8974  libname_spec='$name'
8975  shrext_cmds=".dll"
8976  need_lib_prefix=no
8977  library_names_spec='$libname${shared_ext} $libname.a'
8978  dynamic_linker='OS/2 ld.exe'
8979  shlibpath_var=LIBPATH
8980  ;;
8981
8982osf3* | osf4* | osf5*)
8983  version_type=osf
8984  need_lib_prefix=no
8985  need_version=no
8986  soname_spec='${libname}${release}${shared_ext}$major'
8987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8988  shlibpath_var=LD_LIBRARY_PATH
8989  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8990  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8991  ;;
8992
8993rdos*)
8994  dynamic_linker=no
8995  ;;
8996
8997solaris*)
8998  version_type=linux
8999  need_lib_prefix=no
9000  need_version=no
9001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002  soname_spec='${libname}${release}${shared_ext}$major'
9003  shlibpath_var=LD_LIBRARY_PATH
9004  shlibpath_overrides_runpath=yes
9005  hardcode_into_libs=yes
9006  # ldd complains unless libraries are executable
9007  postinstall_cmds='chmod +x $lib'
9008  ;;
9009
9010sunos4*)
9011  version_type=sunos
9012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9013  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9014  shlibpath_var=LD_LIBRARY_PATH
9015  shlibpath_overrides_runpath=yes
9016  if test "$with_gnu_ld" = yes; then
9017    need_lib_prefix=no
9018  fi
9019  need_version=yes
9020  ;;
9021
9022sysv4 | sysv4.3*)
9023  version_type=linux
9024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025  soname_spec='${libname}${release}${shared_ext}$major'
9026  shlibpath_var=LD_LIBRARY_PATH
9027  case $host_vendor in
9028    sni)
9029      shlibpath_overrides_runpath=no
9030      need_lib_prefix=no
9031      runpath_var=LD_RUN_PATH
9032      ;;
9033    siemens)
9034      need_lib_prefix=no
9035      ;;
9036    motorola)
9037      need_lib_prefix=no
9038      need_version=no
9039      shlibpath_overrides_runpath=no
9040      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9041      ;;
9042  esac
9043  ;;
9044
9045sysv4*MP*)
9046  if test -d /usr/nec ;then
9047    version_type=linux
9048    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9049    soname_spec='$libname${shared_ext}.$major'
9050    shlibpath_var=LD_LIBRARY_PATH
9051  fi
9052  ;;
9053
9054sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9055  version_type=freebsd-elf
9056  need_lib_prefix=no
9057  need_version=no
9058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9059  soname_spec='${libname}${release}${shared_ext}$major'
9060  shlibpath_var=LD_LIBRARY_PATH
9061  shlibpath_overrides_runpath=yes
9062  hardcode_into_libs=yes
9063  if test "$with_gnu_ld" = yes; then
9064    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9065  else
9066    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9067    case $host_os in
9068      sco3.2v5*)
9069        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9070	;;
9071    esac
9072  fi
9073  sys_lib_dlsearch_path_spec='/usr/lib'
9074  ;;
9075
9076tpf*)
9077  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9078  version_type=linux
9079  need_lib_prefix=no
9080  need_version=no
9081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082  shlibpath_var=LD_LIBRARY_PATH
9083  shlibpath_overrides_runpath=no
9084  hardcode_into_libs=yes
9085  ;;
9086
9087uts4*)
9088  version_type=linux
9089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090  soname_spec='${libname}${release}${shared_ext}$major'
9091  shlibpath_var=LD_LIBRARY_PATH
9092  ;;
9093
9094*)
9095  dynamic_linker=no
9096  ;;
9097esac
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9099$as_echo "$dynamic_linker" >&6; }
9100test "$dynamic_linker" = no && can_build_shared=no
9101
9102variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9103if test "$GCC" = yes; then
9104  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9105fi
9106
9107if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9108  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9109fi
9110if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9111  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9112fi
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9201$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9202hardcode_action=
9203if test -n "$hardcode_libdir_flag_spec" ||
9204   test -n "$runpath_var" ||
9205   test "X$hardcode_automatic" = "Xyes" ; then
9206
9207  # We can hardcode non-existent directories.
9208  if test "$hardcode_direct" != no &&
9209     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9210     # have to relink, otherwise we might link with an installed library
9211     # when we should be linking with a yet-to-be-installed one
9212     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9213     test "$hardcode_minus_L" != no; then
9214    # Linking always hardcodes the temporary library directory.
9215    hardcode_action=relink
9216  else
9217    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9218    hardcode_action=immediate
9219  fi
9220else
9221  # We cannot hardcode anything, or else we can only hardcode existing
9222  # directories.
9223  hardcode_action=unsupported
9224fi
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9226$as_echo "$hardcode_action" >&6; }
9227
9228if test "$hardcode_action" = relink ||
9229   test "$inherit_rpath" = yes; then
9230  # Fast installation is not supported
9231  enable_fast_install=no
9232elif test "$shlibpath_overrides_runpath" = yes ||
9233     test "$enable_shared" = no; then
9234  # Fast installation is not necessary
9235  enable_fast_install=needless
9236fi
9237
9238
9239
9240
9241
9242
9243  if test "x$enable_dlopen" != xyes; then
9244  enable_dlopen=unknown
9245  enable_dlopen_self=unknown
9246  enable_dlopen_self_static=unknown
9247else
9248  lt_cv_dlopen=no
9249  lt_cv_dlopen_libs=
9250
9251  case $host_os in
9252  beos*)
9253    lt_cv_dlopen="load_add_on"
9254    lt_cv_dlopen_libs=
9255    lt_cv_dlopen_self=yes
9256    ;;
9257
9258  mingw* | pw32* | cegcc*)
9259    lt_cv_dlopen="LoadLibrary"
9260    lt_cv_dlopen_libs=
9261    ;;
9262
9263  cygwin*)
9264    lt_cv_dlopen="dlopen"
9265    lt_cv_dlopen_libs=
9266    ;;
9267
9268  darwin*)
9269  # if libdl is installed we need to link against it
9270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9271$as_echo_n "checking for dlopen in -ldl... " >&6; }
9272if ${ac_cv_lib_dl_dlopen+:} false; then :
9273  $as_echo_n "(cached) " >&6
9274else
9275  ac_check_lib_save_LIBS=$LIBS
9276LIBS="-ldl  $LIBS"
9277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278/* end confdefs.h.  */
9279
9280/* Override any GCC internal prototype to avoid an error.
9281   Use char because int might match the return type of a GCC
9282   builtin and then its argument prototype would still apply.  */
9283#ifdef __cplusplus
9284extern "C"
9285#endif
9286char dlopen ();
9287int
9288main ()
9289{
9290return dlopen ();
9291  ;
9292  return 0;
9293}
9294_ACEOF
9295if ac_fn_c_try_link "$LINENO"; then :
9296  ac_cv_lib_dl_dlopen=yes
9297else
9298  ac_cv_lib_dl_dlopen=no
9299fi
9300rm -f core conftest.err conftest.$ac_objext \
9301    conftest$ac_exeext conftest.$ac_ext
9302LIBS=$ac_check_lib_save_LIBS
9303fi
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9305$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9306if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9307  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9308else
9309
9310    lt_cv_dlopen="dyld"
9311    lt_cv_dlopen_libs=
9312    lt_cv_dlopen_self=yes
9313
9314fi
9315
9316    ;;
9317
9318  *)
9319    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9320if test "x$ac_cv_func_shl_load" = xyes; then :
9321  lt_cv_dlopen="shl_load"
9322else
9323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9324$as_echo_n "checking for shl_load in -ldld... " >&6; }
9325if ${ac_cv_lib_dld_shl_load+:} false; then :
9326  $as_echo_n "(cached) " >&6
9327else
9328  ac_check_lib_save_LIBS=$LIBS
9329LIBS="-ldld  $LIBS"
9330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332
9333/* Override any GCC internal prototype to avoid an error.
9334   Use char because int might match the return type of a GCC
9335   builtin and then its argument prototype would still apply.  */
9336#ifdef __cplusplus
9337extern "C"
9338#endif
9339char shl_load ();
9340int
9341main ()
9342{
9343return shl_load ();
9344  ;
9345  return 0;
9346}
9347_ACEOF
9348if ac_fn_c_try_link "$LINENO"; then :
9349  ac_cv_lib_dld_shl_load=yes
9350else
9351  ac_cv_lib_dld_shl_load=no
9352fi
9353rm -f core conftest.err conftest.$ac_objext \
9354    conftest$ac_exeext conftest.$ac_ext
9355LIBS=$ac_check_lib_save_LIBS
9356fi
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9358$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9359if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9360  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9361else
9362  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9363if test "x$ac_cv_func_dlopen" = xyes; then :
9364  lt_cv_dlopen="dlopen"
9365else
9366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9367$as_echo_n "checking for dlopen in -ldl... " >&6; }
9368if ${ac_cv_lib_dl_dlopen+:} false; then :
9369  $as_echo_n "(cached) " >&6
9370else
9371  ac_check_lib_save_LIBS=$LIBS
9372LIBS="-ldl  $LIBS"
9373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h.  */
9375
9376/* Override any GCC internal prototype to avoid an error.
9377   Use char because int might match the return type of a GCC
9378   builtin and then its argument prototype would still apply.  */
9379#ifdef __cplusplus
9380extern "C"
9381#endif
9382char dlopen ();
9383int
9384main ()
9385{
9386return dlopen ();
9387  ;
9388  return 0;
9389}
9390_ACEOF
9391if ac_fn_c_try_link "$LINENO"; then :
9392  ac_cv_lib_dl_dlopen=yes
9393else
9394  ac_cv_lib_dl_dlopen=no
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397    conftest$ac_exeext conftest.$ac_ext
9398LIBS=$ac_check_lib_save_LIBS
9399fi
9400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9401$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9402if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9403  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9404else
9405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9406$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9407if ${ac_cv_lib_svld_dlopen+:} false; then :
9408  $as_echo_n "(cached) " >&6
9409else
9410  ac_check_lib_save_LIBS=$LIBS
9411LIBS="-lsvld  $LIBS"
9412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413/* end confdefs.h.  */
9414
9415/* Override any GCC internal prototype to avoid an error.
9416   Use char because int might match the return type of a GCC
9417   builtin and then its argument prototype would still apply.  */
9418#ifdef __cplusplus
9419extern "C"
9420#endif
9421char dlopen ();
9422int
9423main ()
9424{
9425return dlopen ();
9426  ;
9427  return 0;
9428}
9429_ACEOF
9430if ac_fn_c_try_link "$LINENO"; then :
9431  ac_cv_lib_svld_dlopen=yes
9432else
9433  ac_cv_lib_svld_dlopen=no
9434fi
9435rm -f core conftest.err conftest.$ac_objext \
9436    conftest$ac_exeext conftest.$ac_ext
9437LIBS=$ac_check_lib_save_LIBS
9438fi
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9440$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9441if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9442  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9443else
9444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9445$as_echo_n "checking for dld_link in -ldld... " >&6; }
9446if ${ac_cv_lib_dld_dld_link+:} false; then :
9447  $as_echo_n "(cached) " >&6
9448else
9449  ac_check_lib_save_LIBS=$LIBS
9450LIBS="-ldld  $LIBS"
9451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452/* end confdefs.h.  */
9453
9454/* Override any GCC internal prototype to avoid an error.
9455   Use char because int might match the return type of a GCC
9456   builtin and then its argument prototype would still apply.  */
9457#ifdef __cplusplus
9458extern "C"
9459#endif
9460char dld_link ();
9461int
9462main ()
9463{
9464return dld_link ();
9465  ;
9466  return 0;
9467}
9468_ACEOF
9469if ac_fn_c_try_link "$LINENO"; then :
9470  ac_cv_lib_dld_dld_link=yes
9471else
9472  ac_cv_lib_dld_dld_link=no
9473fi
9474rm -f core conftest.err conftest.$ac_objext \
9475    conftest$ac_exeext conftest.$ac_ext
9476LIBS=$ac_check_lib_save_LIBS
9477fi
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9479$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9480if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9481  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9482fi
9483
9484
9485fi
9486
9487
9488fi
9489
9490
9491fi
9492
9493
9494fi
9495
9496
9497fi
9498
9499    ;;
9500  esac
9501
9502  if test "x$lt_cv_dlopen" != xno; then
9503    enable_dlopen=yes
9504  else
9505    enable_dlopen=no
9506  fi
9507
9508  case $lt_cv_dlopen in
9509  dlopen)
9510    save_CPPFLAGS="$CPPFLAGS"
9511    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9512
9513    save_LDFLAGS="$LDFLAGS"
9514    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9515
9516    save_LIBS="$LIBS"
9517    LIBS="$lt_cv_dlopen_libs $LIBS"
9518
9519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9520$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9521if ${lt_cv_dlopen_self+:} false; then :
9522  $as_echo_n "(cached) " >&6
9523else
9524  	  if test "$cross_compiling" = yes; then :
9525  lt_cv_dlopen_self=cross
9526else
9527  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9528  lt_status=$lt_dlunknown
9529  cat > conftest.$ac_ext <<_LT_EOF
9530#line 9530 "configure"
9531#include "confdefs.h"
9532
9533#if HAVE_DLFCN_H
9534#include <dlfcn.h>
9535#endif
9536
9537#include <stdio.h>
9538
9539#ifdef RTLD_GLOBAL
9540#  define LT_DLGLOBAL		RTLD_GLOBAL
9541#else
9542#  ifdef DL_GLOBAL
9543#    define LT_DLGLOBAL		DL_GLOBAL
9544#  else
9545#    define LT_DLGLOBAL		0
9546#  endif
9547#endif
9548
9549/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9550   find out it does not work in some platform. */
9551#ifndef LT_DLLAZY_OR_NOW
9552#  ifdef RTLD_LAZY
9553#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9554#  else
9555#    ifdef DL_LAZY
9556#      define LT_DLLAZY_OR_NOW		DL_LAZY
9557#    else
9558#      ifdef RTLD_NOW
9559#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9560#      else
9561#        ifdef DL_NOW
9562#          define LT_DLLAZY_OR_NOW	DL_NOW
9563#        else
9564#          define LT_DLLAZY_OR_NOW	0
9565#        endif
9566#      endif
9567#    endif
9568#  endif
9569#endif
9570
9571void fnord() { int i=42;}
9572int main ()
9573{
9574  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9575  int status = $lt_dlunknown;
9576
9577  if (self)
9578    {
9579      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9580      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9581      /* dlclose (self); */
9582    }
9583  else
9584    puts (dlerror ());
9585
9586  return status;
9587}
9588_LT_EOF
9589  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9590  (eval $ac_link) 2>&5
9591  ac_status=$?
9592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9593  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9594    (./conftest; exit; ) >&5 2>/dev/null
9595    lt_status=$?
9596    case x$lt_status in
9597      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9598      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9599      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9600    esac
9601  else :
9602    # compilation failed
9603    lt_cv_dlopen_self=no
9604  fi
9605fi
9606rm -fr conftest*
9607
9608
9609fi
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9611$as_echo "$lt_cv_dlopen_self" >&6; }
9612
9613    if test "x$lt_cv_dlopen_self" = xyes; then
9614      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9615      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9616$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9617if ${lt_cv_dlopen_self_static+:} false; then :
9618  $as_echo_n "(cached) " >&6
9619else
9620  	  if test "$cross_compiling" = yes; then :
9621  lt_cv_dlopen_self_static=cross
9622else
9623  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9624  lt_status=$lt_dlunknown
9625  cat > conftest.$ac_ext <<_LT_EOF
9626#line 9626 "configure"
9627#include "confdefs.h"
9628
9629#if HAVE_DLFCN_H
9630#include <dlfcn.h>
9631#endif
9632
9633#include <stdio.h>
9634
9635#ifdef RTLD_GLOBAL
9636#  define LT_DLGLOBAL		RTLD_GLOBAL
9637#else
9638#  ifdef DL_GLOBAL
9639#    define LT_DLGLOBAL		DL_GLOBAL
9640#  else
9641#    define LT_DLGLOBAL		0
9642#  endif
9643#endif
9644
9645/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9646   find out it does not work in some platform. */
9647#ifndef LT_DLLAZY_OR_NOW
9648#  ifdef RTLD_LAZY
9649#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9650#  else
9651#    ifdef DL_LAZY
9652#      define LT_DLLAZY_OR_NOW		DL_LAZY
9653#    else
9654#      ifdef RTLD_NOW
9655#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9656#      else
9657#        ifdef DL_NOW
9658#          define LT_DLLAZY_OR_NOW	DL_NOW
9659#        else
9660#          define LT_DLLAZY_OR_NOW	0
9661#        endif
9662#      endif
9663#    endif
9664#  endif
9665#endif
9666
9667void fnord() { int i=42;}
9668int main ()
9669{
9670  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9671  int status = $lt_dlunknown;
9672
9673  if (self)
9674    {
9675      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9676      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9677      /* dlclose (self); */
9678    }
9679  else
9680    puts (dlerror ());
9681
9682  return status;
9683}
9684_LT_EOF
9685  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9686  (eval $ac_link) 2>&5
9687  ac_status=$?
9688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9689  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9690    (./conftest; exit; ) >&5 2>/dev/null
9691    lt_status=$?
9692    case x$lt_status in
9693      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9694      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9695      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9696    esac
9697  else :
9698    # compilation failed
9699    lt_cv_dlopen_self_static=no
9700  fi
9701fi
9702rm -fr conftest*
9703
9704
9705fi
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9707$as_echo "$lt_cv_dlopen_self_static" >&6; }
9708    fi
9709
9710    CPPFLAGS="$save_CPPFLAGS"
9711    LDFLAGS="$save_LDFLAGS"
9712    LIBS="$save_LIBS"
9713    ;;
9714  esac
9715
9716  case $lt_cv_dlopen_self in
9717  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9718  *) enable_dlopen_self=unknown ;;
9719  esac
9720
9721  case $lt_cv_dlopen_self_static in
9722  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9723  *) enable_dlopen_self_static=unknown ;;
9724  esac
9725fi
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743striplib=
9744old_striplib=
9745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9746$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9747if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9748  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9749  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9751$as_echo "yes" >&6; }
9752else
9753# FIXME - insert some real tests, host_os isn't really good enough
9754  case $host_os in
9755  darwin*)
9756    if test -n "$STRIP" ; then
9757      striplib="$STRIP -x"
9758      old_striplib="$STRIP -S"
9759      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9760$as_echo "yes" >&6; }
9761    else
9762      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763$as_echo "no" >&6; }
9764    fi
9765    ;;
9766  *)
9767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768$as_echo "no" >&6; }
9769    ;;
9770  esac
9771fi
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784  # Report which library types will actually be built
9785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9786$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9788$as_echo "$can_build_shared" >&6; }
9789
9790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9791$as_echo_n "checking whether to build shared libraries... " >&6; }
9792  test "$can_build_shared" = "no" && enable_shared=no
9793
9794  # On AIX, shared libraries and static libraries use the same namespace, and
9795  # are all built from PIC.
9796  case $host_os in
9797  aix3*)
9798    test "$enable_shared" = yes && enable_static=no
9799    if test -n "$RANLIB"; then
9800      archive_cmds="$archive_cmds~\$RANLIB \$lib"
9801      postinstall_cmds='$RANLIB $lib'
9802    fi
9803    ;;
9804
9805  aix[4-9]*)
9806    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9807      test "$enable_shared" = yes && enable_static=no
9808    fi
9809    ;;
9810  esac
9811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9812$as_echo "$enable_shared" >&6; }
9813
9814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9815$as_echo_n "checking whether to build static libraries... " >&6; }
9816  # Make sure either enable_shared or enable_static is yes.
9817  test "$enable_shared" = yes || enable_static=yes
9818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9819$as_echo "$enable_static" >&6; }
9820
9821
9822
9823
9824fi
9825ac_ext=c
9826ac_cpp='$CPP $CPPFLAGS'
9827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9829ac_compiler_gnu=$ac_cv_c_compiler_gnu
9830
9831CC="$lt_save_CC"
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845        ac_config_commands="$ac_config_commands libtool"
9846
9847
9848
9849
9850# Only expand once:
9851
9852
9853# Find a good install program.  We prefer a C program (faster),
9854# so one script is as good as another.  But avoid the broken or
9855# incompatible versions:
9856# SysV /etc/install, /usr/sbin/install
9857# SunOS /usr/etc/install
9858# IRIX /sbin/install
9859# AIX /bin/install
9860# AmigaOS /C/install, which installs bootblocks on floppy discs
9861# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9862# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9863# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9864# OS/2's system install, which has a completely different semantic
9865# ./install, which can be erroneously created by make from ./install.sh.
9866# Reject install programs that cannot install multiple files.
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9868$as_echo_n "checking for a BSD-compatible install... " >&6; }
9869if test -z "$INSTALL"; then
9870if ${ac_cv_path_install+:} false; then :
9871  $as_echo_n "(cached) " >&6
9872else
9873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874for as_dir in $PATH
9875do
9876  IFS=$as_save_IFS
9877  test -z "$as_dir" && as_dir=.
9878    # Account for people who put trailing slashes in PATH elements.
9879case $as_dir/ in #((
9880  ./ | .// | /[cC]/* | \
9881  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9882  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9883  /usr/ucb/* ) ;;
9884  *)
9885    # OSF1 and SCO ODT 3.0 have their own names for install.
9886    # Don't use installbsd from OSF since it installs stuff as root
9887    # by default.
9888    for ac_prog in ginstall scoinst install; do
9889      for ac_exec_ext in '' $ac_executable_extensions; do
9890	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9891	  if test $ac_prog = install &&
9892	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9893	    # AIX install.  It has an incompatible calling convention.
9894	    :
9895	  elif test $ac_prog = install &&
9896	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9897	    # program-specific install script used by HP pwplus--don't use.
9898	    :
9899	  else
9900	    rm -rf conftest.one conftest.two conftest.dir
9901	    echo one > conftest.one
9902	    echo two > conftest.two
9903	    mkdir conftest.dir
9904	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9905	      test -s conftest.one && test -s conftest.two &&
9906	      test -s conftest.dir/conftest.one &&
9907	      test -s conftest.dir/conftest.two
9908	    then
9909	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9910	      break 3
9911	    fi
9912	  fi
9913	fi
9914      done
9915    done
9916    ;;
9917esac
9918
9919  done
9920IFS=$as_save_IFS
9921
9922rm -rf conftest.one conftest.two conftest.dir
9923
9924fi
9925  if test "${ac_cv_path_install+set}" = set; then
9926    INSTALL=$ac_cv_path_install
9927  else
9928    # As a last resort, use the slow shell script.  Don't cache a
9929    # value for INSTALL within a source directory, because that will
9930    # break other packages using the cache if that directory is
9931    # removed, or if the value is a relative name.
9932    INSTALL=$ac_install_sh
9933  fi
9934fi
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9936$as_echo "$INSTALL" >&6; }
9937
9938# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9939# It thinks the first close brace ends the variable substitution.
9940test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9941
9942test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9943
9944test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9945
9946for ac_prog in gawk mawk nawk awk
9947do
9948  # Extract the first word of "$ac_prog", so it can be a program name with args.
9949set dummy $ac_prog; ac_word=$2
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951$as_echo_n "checking for $ac_word... " >&6; }
9952if ${ac_cv_prog_AWK+:} false; then :
9953  $as_echo_n "(cached) " >&6
9954else
9955  if test -n "$AWK"; then
9956  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9957else
9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959for as_dir in $PATH
9960do
9961  IFS=$as_save_IFS
9962  test -z "$as_dir" && as_dir=.
9963    for ac_exec_ext in '' $ac_executable_extensions; do
9964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9965    ac_cv_prog_AWK="$ac_prog"
9966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967    break 2
9968  fi
9969done
9970  done
9971IFS=$as_save_IFS
9972
9973fi
9974fi
9975AWK=$ac_cv_prog_AWK
9976if test -n "$AWK"; then
9977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9978$as_echo "$AWK" >&6; }
9979else
9980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981$as_echo "no" >&6; }
9982fi
9983
9984
9985  test -n "$AWK" && break
9986done
9987
9988
9989#########
9990# Enable large file support (if special flags are necessary)
9991#
9992# Check whether --enable-largefile was given.
9993if test "${enable_largefile+set}" = set; then :
9994  enableval=$enable_largefile;
9995fi
9996
9997if test "$enable_largefile" != no; then
9998
9999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10000$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10001if ${ac_cv_sys_largefile_CC+:} false; then :
10002  $as_echo_n "(cached) " >&6
10003else
10004  ac_cv_sys_largefile_CC=no
10005     if test "$GCC" != yes; then
10006       ac_save_CC=$CC
10007       while :; do
10008	 # IRIX 6.2 and later do not support large files by default,
10009	 # so use the C compiler's -n32 option if that helps.
10010	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011/* end confdefs.h.  */
10012#include <sys/types.h>
10013 /* Check that off_t can represent 2**63 - 1 correctly.
10014    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10015    since some C++ compilers masquerading as C compilers
10016    incorrectly reject 9223372036854775807.  */
10017#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10018  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10019		       && LARGE_OFF_T % 2147483647 == 1)
10020		      ? 1 : -1];
10021int
10022main ()
10023{
10024
10025  ;
10026  return 0;
10027}
10028_ACEOF
10029	 if ac_fn_c_try_compile "$LINENO"; then :
10030  break
10031fi
10032rm -f core conftest.err conftest.$ac_objext
10033	 CC="$CC -n32"
10034	 if ac_fn_c_try_compile "$LINENO"; then :
10035  ac_cv_sys_largefile_CC=' -n32'; break
10036fi
10037rm -f core conftest.err conftest.$ac_objext
10038	 break
10039       done
10040       CC=$ac_save_CC
10041       rm -f conftest.$ac_ext
10042    fi
10043fi
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10045$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10046  if test "$ac_cv_sys_largefile_CC" != no; then
10047    CC=$CC$ac_cv_sys_largefile_CC
10048  fi
10049
10050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10051$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10052if ${ac_cv_sys_file_offset_bits+:} false; then :
10053  $as_echo_n "(cached) " >&6
10054else
10055  while :; do
10056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h.  */
10058#include <sys/types.h>
10059 /* Check that off_t can represent 2**63 - 1 correctly.
10060    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10061    since some C++ compilers masquerading as C compilers
10062    incorrectly reject 9223372036854775807.  */
10063#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10064  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10065		       && LARGE_OFF_T % 2147483647 == 1)
10066		      ? 1 : -1];
10067int
10068main ()
10069{
10070
10071  ;
10072  return 0;
10073}
10074_ACEOF
10075if ac_fn_c_try_compile "$LINENO"; then :
10076  ac_cv_sys_file_offset_bits=no; break
10077fi
10078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080/* end confdefs.h.  */
10081#define _FILE_OFFSET_BITS 64
10082#include <sys/types.h>
10083 /* Check that off_t can represent 2**63 - 1 correctly.
10084    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10085    since some C++ compilers masquerading as C compilers
10086    incorrectly reject 9223372036854775807.  */
10087#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10088  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10089		       && LARGE_OFF_T % 2147483647 == 1)
10090		      ? 1 : -1];
10091int
10092main ()
10093{
10094
10095  ;
10096  return 0;
10097}
10098_ACEOF
10099if ac_fn_c_try_compile "$LINENO"; then :
10100  ac_cv_sys_file_offset_bits=64; break
10101fi
10102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10103  ac_cv_sys_file_offset_bits=unknown
10104  break
10105done
10106fi
10107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10108$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10109case $ac_cv_sys_file_offset_bits in #(
10110  no | unknown) ;;
10111  *)
10112cat >>confdefs.h <<_ACEOF
10113#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10114_ACEOF
10115;;
10116esac
10117rm -rf conftest*
10118  if test $ac_cv_sys_file_offset_bits = unknown; then
10119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10120$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10121if ${ac_cv_sys_large_files+:} false; then :
10122  $as_echo_n "(cached) " >&6
10123else
10124  while :; do
10125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126/* end confdefs.h.  */
10127#include <sys/types.h>
10128 /* Check that off_t can represent 2**63 - 1 correctly.
10129    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10130    since some C++ compilers masquerading as C compilers
10131    incorrectly reject 9223372036854775807.  */
10132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10133  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10134		       && LARGE_OFF_T % 2147483647 == 1)
10135		      ? 1 : -1];
10136int
10137main ()
10138{
10139
10140  ;
10141  return 0;
10142}
10143_ACEOF
10144if ac_fn_c_try_compile "$LINENO"; then :
10145  ac_cv_sys_large_files=no; break
10146fi
10147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h.  */
10150#define _LARGE_FILES 1
10151#include <sys/types.h>
10152 /* Check that off_t can represent 2**63 - 1 correctly.
10153    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10154    since some C++ compilers masquerading as C compilers
10155    incorrectly reject 9223372036854775807.  */
10156#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10157  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10158		       && LARGE_OFF_T % 2147483647 == 1)
10159		      ? 1 : -1];
10160int
10161main ()
10162{
10163
10164  ;
10165  return 0;
10166}
10167_ACEOF
10168if ac_fn_c_try_compile "$LINENO"; then :
10169  ac_cv_sys_large_files=1; break
10170fi
10171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172  ac_cv_sys_large_files=unknown
10173  break
10174done
10175fi
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10177$as_echo "$ac_cv_sys_large_files" >&6; }
10178case $ac_cv_sys_large_files in #(
10179  no | unknown) ;;
10180  *)
10181cat >>confdefs.h <<_ACEOF
10182#define _LARGE_FILES $ac_cv_sys_large_files
10183_ACEOF
10184;;
10185esac
10186rm -rf conftest*
10187  fi
10188
10189
10190fi
10191
10192
10193#########
10194# Check for needed/wanted data types
10195ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10196if test "x$ac_cv_type_int8_t" = xyes; then :
10197
10198cat >>confdefs.h <<_ACEOF
10199#define HAVE_INT8_T 1
10200_ACEOF
10201
10202
10203fi
10204ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10205if test "x$ac_cv_type_int16_t" = xyes; then :
10206
10207cat >>confdefs.h <<_ACEOF
10208#define HAVE_INT16_T 1
10209_ACEOF
10210
10211
10212fi
10213ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10214if test "x$ac_cv_type_int32_t" = xyes; then :
10215
10216cat >>confdefs.h <<_ACEOF
10217#define HAVE_INT32_T 1
10218_ACEOF
10219
10220
10221fi
10222ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10223if test "x$ac_cv_type_int64_t" = xyes; then :
10224
10225cat >>confdefs.h <<_ACEOF
10226#define HAVE_INT64_T 1
10227_ACEOF
10228
10229
10230fi
10231ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10232if test "x$ac_cv_type_intptr_t" = xyes; then :
10233
10234cat >>confdefs.h <<_ACEOF
10235#define HAVE_INTPTR_T 1
10236_ACEOF
10237
10238
10239fi
10240ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10241if test "x$ac_cv_type_uint8_t" = xyes; then :
10242
10243cat >>confdefs.h <<_ACEOF
10244#define HAVE_UINT8_T 1
10245_ACEOF
10246
10247
10248fi
10249ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10250if test "x$ac_cv_type_uint16_t" = xyes; then :
10251
10252cat >>confdefs.h <<_ACEOF
10253#define HAVE_UINT16_T 1
10254_ACEOF
10255
10256
10257fi
10258ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10259if test "x$ac_cv_type_uint32_t" = xyes; then :
10260
10261cat >>confdefs.h <<_ACEOF
10262#define HAVE_UINT32_T 1
10263_ACEOF
10264
10265
10266fi
10267ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10268if test "x$ac_cv_type_uint64_t" = xyes; then :
10269
10270cat >>confdefs.h <<_ACEOF
10271#define HAVE_UINT64_T 1
10272_ACEOF
10273
10274
10275fi
10276ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10277if test "x$ac_cv_type_uintptr_t" = xyes; then :
10278
10279cat >>confdefs.h <<_ACEOF
10280#define HAVE_UINTPTR_T 1
10281_ACEOF
10282
10283
10284fi
10285
10286
10287#########
10288# Check for needed/wanted headers
10289for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10290do :
10291  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10292ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10293if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10294  cat >>confdefs.h <<_ACEOF
10295#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10296_ACEOF
10297
10298fi
10299
10300done
10301
10302
10303#########
10304# Figure out whether or not we have these functions
10305#
10306for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime
10307do :
10308  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10309ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10310if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10311  cat >>confdefs.h <<_ACEOF
10312#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10313_ACEOF
10314
10315fi
10316done
10317
10318
10319#########
10320# By default, we use the amalgamation (this may be changed below...)
10321#
10322USE_AMALGAMATION=1
10323
10324#########
10325# See whether we can run specific tclsh versions known to work well;
10326# if not, then we fall back to plain tclsh.
10327# TODO: try other versions before falling back?
10328#
10329for ac_prog in tclsh8.6 tclsh8.5 tclsh
10330do
10331  # Extract the first word of "$ac_prog", so it can be a program name with args.
10332set dummy $ac_prog; ac_word=$2
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334$as_echo_n "checking for $ac_word... " >&6; }
10335if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10336  $as_echo_n "(cached) " >&6
10337else
10338  if test -n "$TCLSH_CMD"; then
10339  ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10340else
10341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342for as_dir in $PATH
10343do
10344  IFS=$as_save_IFS
10345  test -z "$as_dir" && as_dir=.
10346    for ac_exec_ext in '' $ac_executable_extensions; do
10347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10348    ac_cv_prog_TCLSH_CMD="$ac_prog"
10349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350    break 2
10351  fi
10352done
10353  done
10354IFS=$as_save_IFS
10355
10356fi
10357fi
10358TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10359if test -n "$TCLSH_CMD"; then
10360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10361$as_echo "$TCLSH_CMD" >&6; }
10362else
10363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364$as_echo "no" >&6; }
10365fi
10366
10367
10368  test -n "$TCLSH_CMD" && break
10369done
10370test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10371
10372if test "$TCLSH_CMD" = "none"; then
10373  # If we can't find a local tclsh, then building the amalgamation will fail.
10374  # We act as though --disable-amalgamation has been used.
10375  echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10376  USE_AMALGAMATION=0
10377  TCLSH_CMD="tclsh"
10378fi
10379
10380
10381
10382if test "x${TCLLIBDIR+set}" != "xset" ; then
10383  TCLLIBDIR='$(libdir)'
10384  for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10385    TCLLIBDIR=$i
10386    break
10387  done
10388  TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10389fi
10390
10391
10392#########
10393# Set up an appropriate program prefix
10394#
10395if test "$program_prefix" = "NONE"; then
10396  program_prefix=""
10397fi
10398
10399
10400VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10401{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10402$as_echo "$as_me: Version set to $VERSION" >&6;}
10403
10404RELEASE=`cat $srcdir/VERSION`
10405{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10406$as_echo "$as_me: Release set to $RELEASE" >&6;}
10407
10408VERSION_NUMBER=`cat $srcdir/VERSION \
10409                           | sed 's/[^0-9]/ /g' \
10410                | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
10412$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
10413
10414
10415#########
10416# Locate a compiler for the build machine.  This compiler should
10417# generate command-line programs that run on the build machine.
10418#
10419if test x"$cross_compiling" = xno; then
10420	BUILD_CC=$CC
10421	BUILD_CFLAGS=$CFLAGS
10422else
10423	if test "${BUILD_CC+set}" != set; then
10424		for ac_prog in gcc cc cl
10425do
10426  # Extract the first word of "$ac_prog", so it can be a program name with args.
10427set dummy $ac_prog; ac_word=$2
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429$as_echo_n "checking for $ac_word... " >&6; }
10430if ${ac_cv_prog_BUILD_CC+:} false; then :
10431  $as_echo_n "(cached) " >&6
10432else
10433  if test -n "$BUILD_CC"; then
10434  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10435else
10436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437for as_dir in $PATH
10438do
10439  IFS=$as_save_IFS
10440  test -z "$as_dir" && as_dir=.
10441    for ac_exec_ext in '' $ac_executable_extensions; do
10442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10443    ac_cv_prog_BUILD_CC="$ac_prog"
10444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10445    break 2
10446  fi
10447done
10448  done
10449IFS=$as_save_IFS
10450
10451fi
10452fi
10453BUILD_CC=$ac_cv_prog_BUILD_CC
10454if test -n "$BUILD_CC"; then
10455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10456$as_echo "$BUILD_CC" >&6; }
10457else
10458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459$as_echo "no" >&6; }
10460fi
10461
10462
10463  test -n "$BUILD_CC" && break
10464done
10465
10466	fi
10467	if test "${BUILD_CFLAGS+set}" != set; then
10468		BUILD_CFLAGS="-g"
10469	fi
10470fi
10471
10472
10473##########
10474# Do we want to support multithreaded use of sqlite
10475#
10476# Check whether --enable-threadsafe was given.
10477if test "${enable_threadsafe+set}" = set; then :
10478  enableval=$enable_threadsafe;
10479else
10480  enable_threadsafe=yes
10481fi
10482
10483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10484$as_echo_n "checking whether to support threadsafe operation... " >&6; }
10485if test "$enable_threadsafe" = "no"; then
10486  SQLITE_THREADSAFE=0
10487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488$as_echo "no" >&6; }
10489else
10490  SQLITE_THREADSAFE=1
10491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10492$as_echo "yes" >&6; }
10493fi
10494
10495
10496if test "$SQLITE_THREADSAFE" = "1"; then
10497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10498$as_echo_n "checking for library containing pthread_create... " >&6; }
10499if ${ac_cv_search_pthread_create+:} false; then :
10500  $as_echo_n "(cached) " >&6
10501else
10502  ac_func_search_save_LIBS=$LIBS
10503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504/* end confdefs.h.  */
10505
10506/* Override any GCC internal prototype to avoid an error.
10507   Use char because int might match the return type of a GCC
10508   builtin and then its argument prototype would still apply.  */
10509#ifdef __cplusplus
10510extern "C"
10511#endif
10512char pthread_create ();
10513int
10514main ()
10515{
10516return pthread_create ();
10517  ;
10518  return 0;
10519}
10520_ACEOF
10521for ac_lib in '' pthread; do
10522  if test -z "$ac_lib"; then
10523    ac_res="none required"
10524  else
10525    ac_res=-l$ac_lib
10526    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10527  fi
10528  if ac_fn_c_try_link "$LINENO"; then :
10529  ac_cv_search_pthread_create=$ac_res
10530fi
10531rm -f core conftest.err conftest.$ac_objext \
10532    conftest$ac_exeext
10533  if ${ac_cv_search_pthread_create+:} false; then :
10534  break
10535fi
10536done
10537if ${ac_cv_search_pthread_create+:} false; then :
10538
10539else
10540  ac_cv_search_pthread_create=no
10541fi
10542rm conftest.$ac_ext
10543LIBS=$ac_func_search_save_LIBS
10544fi
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10546$as_echo "$ac_cv_search_pthread_create" >&6; }
10547ac_res=$ac_cv_search_pthread_create
10548if test "$ac_res" != no; then :
10549  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10550
10551fi
10552
10553fi
10554
10555##########
10556# Do we want to support release
10557#
10558# Check whether --enable-releasemode was given.
10559if test "${enable_releasemode+set}" = set; then :
10560  enableval=$enable_releasemode;
10561else
10562  enable_releasemode=no
10563fi
10564
10565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10566$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10567if test "$enable_releasemode" = "no"; then
10568  ALLOWRELEASE=""
10569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570$as_echo "no" >&6; }
10571else
10572  ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10574$as_echo "yes" >&6; }
10575fi
10576
10577
10578##########
10579# Do we want temporary databases in memory
10580#
10581# Check whether --enable-tempstore was given.
10582if test "${enable_tempstore+set}" = set; then :
10583  enableval=$enable_tempstore;
10584else
10585  enable_tempstore=no
10586fi
10587
10588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10589$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10590case "$enable_tempstore" in
10591  never )
10592    TEMP_STORE=0
10593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10594$as_echo "never" >&6; }
10595  ;;
10596  no )
10597    TEMP_STORE=1
10598    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599$as_echo "no" >&6; }
10600  ;;
10601  yes )
10602     TEMP_STORE=2
10603    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10604$as_echo "yes" >&6; }
10605  ;;
10606  always )
10607     TEMP_STORE=3
10608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10609$as_echo "always" >&6; }
10610  ;;
10611  * )
10612    TEMP_STORE=1
10613    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614$as_echo "no" >&6; }
10615  ;;
10616esac
10617
10618
10619
10620###########
10621# Lots of things are different if we are compiling for Windows using
10622# the CYGWIN environment.  So check for that special case and handle
10623# things accordingly.
10624#
10625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10626$as_echo_n "checking if executables have the .exe suffix... " >&6; }
10627if test "$config_BUILD_EXEEXT" = ".exe"; then
10628  CYGWIN=yes
10629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630$as_echo "yes" >&6; }
10631else
10632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10633$as_echo "unknown" >&6; }
10634fi
10635if test "$CYGWIN" != "yes"; then
10636
10637case $host_os in
10638  *cygwin* ) CYGWIN=yes;;
10639	 * ) CYGWIN=no;;
10640esac
10641
10642fi
10643if test "$CYGWIN" = "yes"; then
10644  BUILD_EXEEXT=.exe
10645else
10646  BUILD_EXEEXT=$EXEEXT
10647fi
10648if test x"$cross_compiling" = xno; then
10649  TARGET_EXEEXT=$BUILD_EXEEXT
10650else
10651  TARGET_EXEEXT=$config_TARGET_EXEEXT
10652fi
10653if test "$TARGET_EXEEXT" = ".exe"; then
10654  SQLITE_OS_UNIX=0
10655  SQLITE_OS_WIN=1
10656  CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10657else
10658  SQLITE_OS_UNIX=1
10659  SQLITE_OS_WIN=0
10660  CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10661fi
10662
10663
10664
10665
10666
10667
10668##########
10669# Figure out all the parameters needed to compile against Tcl.
10670#
10671# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10672# macros in the in the tcl.m4 file of the standard TCL distribution.
10673# Those macros could not be used directly since we have to make some
10674# minor changes to accomodate systems that do not have TCL installed.
10675#
10676# Check whether --enable-tcl was given.
10677if test "${enable_tcl+set}" = set; then :
10678  enableval=$enable_tcl; use_tcl=$enableval
10679else
10680  use_tcl=yes
10681fi
10682
10683if test "${use_tcl}" = "yes" ; then
10684
10685# Check whether --with-tcl was given.
10686if test "${with_tcl+set}" = set; then :
10687  withval=$with_tcl; with_tclconfig=${withval}
10688fi
10689
10690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10691$as_echo_n "checking for Tcl configuration... " >&6; }
10692  if ${ac_cv_c_tclconfig+:} false; then :
10693  $as_echo_n "(cached) " >&6
10694else
10695
10696    # First check to see if --with-tcl was specified.
10697    if test x"${with_tclconfig}" != x ; then
10698      if test -f "${with_tclconfig}/tclConfig.sh" ; then
10699        ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10700      else
10701        as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10702      fi
10703    fi
10704
10705    # Start autosearch by asking tclsh
10706    if test x"${ac_cv_c_tclconfig}" = x ; then
10707      if test x"$cross_compiling" = xno; then
10708        for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10709        do
10710          if test -f "$i/tclConfig.sh" ; then
10711            ac_cv_c_tclconfig="$i"
10712            break
10713          fi
10714        done
10715      fi
10716    fi
10717
10718    # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10719    # So try again after applying corrections.
10720    if test x"${ac_cv_c_tclconfig}" = x ; then
10721      if test x"$cross_compiling" = xno; then
10722        for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10723        do
10724          if test -f "$i/tclConfig.sh" ; then
10725            ac_cv_c_tclconfig="$i"
10726            break
10727          fi
10728        done
10729      fi
10730    fi
10731
10732    # then check for a private Tcl installation
10733    if test x"${ac_cv_c_tclconfig}" = x ; then
10734      for i in \
10735            ../tcl \
10736            `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10737            `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10738            `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10739            ../../tcl \
10740            `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10741            `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10742            `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10743            ../../../tcl \
10744            `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10745            `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10746            `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10747      do
10748        if test -f "$i/unix/tclConfig.sh" ; then
10749          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10750          break
10751        fi
10752      done
10753    fi
10754
10755    # check in a few common install locations
10756    if test x"${ac_cv_c_tclconfig}" = x ; then
10757      for i in \
10758            `ls -d ${libdir} 2>/dev/null` \
10759            `ls -d /usr/local/lib 2>/dev/null` \
10760            `ls -d /usr/contrib/lib 2>/dev/null` \
10761            `ls -d /usr/lib 2>/dev/null`
10762      do
10763        if test -f "$i/tclConfig.sh" ; then
10764           ac_cv_c_tclconfig=`(cd $i; pwd)`
10765           break
10766        fi
10767      done
10768    fi
10769
10770    # check in a few other private locations
10771    if test x"${ac_cv_c_tclconfig}" = x ; then
10772      for i in \
10773         ${srcdir}/../tcl \
10774         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10775         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10776         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10777      do
10778        if test -f "$i/unix/tclConfig.sh" ; then
10779          ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10780          break
10781        fi
10782      done
10783    fi
10784
10785fi
10786
10787
10788  if test x"${ac_cv_c_tclconfig}" = x ; then
10789    use_tcl=no
10790    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10791$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10792    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10793$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10794    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10795$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10796  else
10797    TCL_BIN_DIR=${ac_cv_c_tclconfig}
10798    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10799$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10800
10801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10802$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10803    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10804      { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10805$as_echo "loading" >&6; }
10806      . $TCL_BIN_DIR/tclConfig.sh
10807    else
10808      { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10809$as_echo "file not found" >&6; }
10810    fi
10811
10812    #
10813    # If the TCL_BIN_DIR is the build directory (not the install directory),
10814    # then set the common variable name to the value of the build variables.
10815    # For example, the variable TCL_LIB_SPEC will be set to the value
10816    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10817    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10818    # installed and uninstalled version of Tcl.
10819    #
10820
10821    if test -f $TCL_BIN_DIR/Makefile ; then
10822      TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10823      TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10824      TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10825    fi
10826
10827    #
10828    # eval is required to do the TCL_DBGX substitution
10829    #
10830
10831    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10832    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10833    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10834
10835    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10836    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10837    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852  fi
10853fi
10854if test "${use_tcl}" = "no" ; then
10855  HAVE_TCL=""
10856else
10857  HAVE_TCL=1
10858fi
10859
10860
10861##########
10862# Figure out what C libraries are required to compile programs
10863# that use "readline()" library.
10864#
10865TARGET_READLINE_LIBS=""
10866TARGET_READLINE_INC=""
10867TARGET_HAVE_READLINE=0
10868# Check whether --enable-readline was given.
10869if test "${enable_readline+set}" = set; then :
10870  enableval=$enable_readline; with_readline=$enableval
10871else
10872  with_readline=auto
10873fi
10874
10875
10876if test x"$with_readline" != xno; then
10877	found="yes"
10878
10879
10880# Check whether --with-readline-lib was given.
10881if test "${with_readline_lib+set}" = set; then :
10882  withval=$with_readline_lib; with_readline_lib=$withval
10883else
10884  with_readline_lib="auto"
10885fi
10886
10887	if test "x$with_readline_lib" = xauto; then
10888		save_LIBS="$LIBS"
10889		LIBS=""
10890		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
10891$as_echo_n "checking for library containing tgetent... " >&6; }
10892if ${ac_cv_search_tgetent+:} false; then :
10893  $as_echo_n "(cached) " >&6
10894else
10895  ac_func_search_save_LIBS=$LIBS
10896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897/* end confdefs.h.  */
10898
10899/* Override any GCC internal prototype to avoid an error.
10900   Use char because int might match the return type of a GCC
10901   builtin and then its argument prototype would still apply.  */
10902#ifdef __cplusplus
10903extern "C"
10904#endif
10905char tgetent ();
10906int
10907main ()
10908{
10909return tgetent ();
10910  ;
10911  return 0;
10912}
10913_ACEOF
10914for ac_lib in '' readline ncurses curses termcap; do
10915  if test -z "$ac_lib"; then
10916    ac_res="none required"
10917  else
10918    ac_res=-l$ac_lib
10919    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10920  fi
10921  if ac_fn_c_try_link "$LINENO"; then :
10922  ac_cv_search_tgetent=$ac_res
10923fi
10924rm -f core conftest.err conftest.$ac_objext \
10925    conftest$ac_exeext
10926  if ${ac_cv_search_tgetent+:} false; then :
10927  break
10928fi
10929done
10930if ${ac_cv_search_tgetent+:} false; then :
10931
10932else
10933  ac_cv_search_tgetent=no
10934fi
10935rm conftest.$ac_ext
10936LIBS=$ac_func_search_save_LIBS
10937fi
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
10939$as_echo "$ac_cv_search_tgetent" >&6; }
10940ac_res=$ac_cv_search_tgetent
10941if test "$ac_res" != no; then :
10942  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10943  term_LIBS="$LIBS"
10944else
10945  term_LIBS=""
10946fi
10947
10948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
10949$as_echo_n "checking for readline in -lreadline... " >&6; }
10950if ${ac_cv_lib_readline_readline+:} false; then :
10951  $as_echo_n "(cached) " >&6
10952else
10953  ac_check_lib_save_LIBS=$LIBS
10954LIBS="-lreadline  $LIBS"
10955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956/* end confdefs.h.  */
10957
10958/* Override any GCC internal prototype to avoid an error.
10959   Use char because int might match the return type of a GCC
10960   builtin and then its argument prototype would still apply.  */
10961#ifdef __cplusplus
10962extern "C"
10963#endif
10964char readline ();
10965int
10966main ()
10967{
10968return readline ();
10969  ;
10970  return 0;
10971}
10972_ACEOF
10973if ac_fn_c_try_link "$LINENO"; then :
10974  ac_cv_lib_readline_readline=yes
10975else
10976  ac_cv_lib_readline_readline=no
10977fi
10978rm -f core conftest.err conftest.$ac_objext \
10979    conftest$ac_exeext conftest.$ac_ext
10980LIBS=$ac_check_lib_save_LIBS
10981fi
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
10983$as_echo "$ac_cv_lib_readline_readline" >&6; }
10984if test "x$ac_cv_lib_readline_readline" = xyes; then :
10985  TARGET_READLINE_LIBS="-lreadline"
10986else
10987  found="no"
10988fi
10989
10990		TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
10991		LIBS="$save_LIBS"
10992	else
10993		TARGET_READLINE_LIBS="$with_readline_lib"
10994	fi
10995
10996
10997# Check whether --with-readline-inc was given.
10998if test "${with_readline_inc+set}" = set; then :
10999  withval=$with_readline_inc; with_readline_inc=$withval
11000else
11001  with_readline_inc="auto"
11002fi
11003
11004	if test "x$with_readline_inc" = xauto; then
11005		ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11006if test "x$ac_cv_header_readline_h" = xyes; then :
11007  found="yes"
11008else
11009
11010			found="no"
11011			if test "$cross_compiling" != yes; then
11012				for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11013					for subdir in include include/readline; do
11014						as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11016$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11017if eval \${$as_ac_File+:} false; then :
11018  $as_echo_n "(cached) " >&6
11019else
11020  test "$cross_compiling" = yes &&
11021  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11022if test -r "$dir/$subdir/readline.h"; then
11023  eval "$as_ac_File=yes"
11024else
11025  eval "$as_ac_File=no"
11026fi
11027fi
11028eval ac_res=\$$as_ac_File
11029	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11030$as_echo "$ac_res" >&6; }
11031if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11032  found=yes
11033fi
11034
11035						if test "$found" = "yes"; then
11036							TARGET_READLINE_INC="-I$dir/$subdir"
11037							break
11038						fi
11039					done
11040					test "$found" = "yes" && break
11041				done
11042			fi
11043
11044fi
11045
11046
11047	else
11048		TARGET_READLINE_INC="$with_readline_inc"
11049	fi
11050
11051	if test x"$found" = xno; then
11052		TARGET_READLINE_LIBS=""
11053		TARGET_READLINE_INC=""
11054		TARGET_HAVE_READLINE=0
11055	else
11056		TARGET_HAVE_READLINE=1
11057	fi
11058fi
11059
11060
11061
11062
11063
11064##########
11065# Figure out what C libraries are required to compile programs
11066# that use "fdatasync()" function.
11067#
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11069$as_echo_n "checking for library containing fdatasync... " >&6; }
11070if ${ac_cv_search_fdatasync+:} false; then :
11071  $as_echo_n "(cached) " >&6
11072else
11073  ac_func_search_save_LIBS=$LIBS
11074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075/* end confdefs.h.  */
11076
11077/* Override any GCC internal prototype to avoid an error.
11078   Use char because int might match the return type of a GCC
11079   builtin and then its argument prototype would still apply.  */
11080#ifdef __cplusplus
11081extern "C"
11082#endif
11083char fdatasync ();
11084int
11085main ()
11086{
11087return fdatasync ();
11088  ;
11089  return 0;
11090}
11091_ACEOF
11092for ac_lib in '' rt; do
11093  if test -z "$ac_lib"; then
11094    ac_res="none required"
11095  else
11096    ac_res=-l$ac_lib
11097    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11098  fi
11099  if ac_fn_c_try_link "$LINENO"; then :
11100  ac_cv_search_fdatasync=$ac_res
11101fi
11102rm -f core conftest.err conftest.$ac_objext \
11103    conftest$ac_exeext
11104  if ${ac_cv_search_fdatasync+:} false; then :
11105  break
11106fi
11107done
11108if ${ac_cv_search_fdatasync+:} false; then :
11109
11110else
11111  ac_cv_search_fdatasync=no
11112fi
11113rm conftest.$ac_ext
11114LIBS=$ac_func_search_save_LIBS
11115fi
11116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11117$as_echo "$ac_cv_search_fdatasync" >&6; }
11118ac_res=$ac_cv_search_fdatasync
11119if test "$ac_res" != no; then :
11120  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11121
11122fi
11123
11124
11125#########
11126# check for debug enabled
11127# Check whether --enable-debug was given.
11128if test "${enable_debug+set}" = set; then :
11129  enableval=$enable_debug; use_debug=$enableval
11130else
11131  use_debug=no
11132fi
11133
11134if test "${use_debug}" = "yes" ; then
11135  TARGET_DEBUG="-DSQLITE_DEBUG=1"
11136else
11137  TARGET_DEBUG="-DNDEBUG"
11138fi
11139
11140
11141#########
11142# See whether we should use the amalgamation to build
11143# Check whether --enable-amalgamation was given.
11144if test "${enable_amalgamation+set}" = set; then :
11145  enableval=$enable_amalgamation; use_amalgamation=$enableval
11146else
11147  use_amalgamation=yes
11148fi
11149
11150if test "${use_amalgamation}" != "yes" ; then
11151  USE_AMALGAMATION=0
11152fi
11153
11154
11155#########
11156# See whether we should allow loadable extensions
11157# Check whether --enable-load-extension was given.
11158if test "${enable_load_extension+set}" = set; then :
11159  enableval=$enable_load_extension; use_loadextension=$enableval
11160else
11161  use_loadextension=yes
11162fi
11163
11164if test "${use_loadextension}" = "yes" ; then
11165  OPT_FEATURE_FLAGS=""
11166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11167$as_echo_n "checking for library containing dlopen... " >&6; }
11168if ${ac_cv_search_dlopen+:} false; then :
11169  $as_echo_n "(cached) " >&6
11170else
11171  ac_func_search_save_LIBS=$LIBS
11172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h.  */
11174
11175/* Override any GCC internal prototype to avoid an error.
11176   Use char because int might match the return type of a GCC
11177   builtin and then its argument prototype would still apply.  */
11178#ifdef __cplusplus
11179extern "C"
11180#endif
11181char dlopen ();
11182int
11183main ()
11184{
11185return dlopen ();
11186  ;
11187  return 0;
11188}
11189_ACEOF
11190for ac_lib in '' dl; do
11191  if test -z "$ac_lib"; then
11192    ac_res="none required"
11193  else
11194    ac_res=-l$ac_lib
11195    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11196  fi
11197  if ac_fn_c_try_link "$LINENO"; then :
11198  ac_cv_search_dlopen=$ac_res
11199fi
11200rm -f core conftest.err conftest.$ac_objext \
11201    conftest$ac_exeext
11202  if ${ac_cv_search_dlopen+:} false; then :
11203  break
11204fi
11205done
11206if ${ac_cv_search_dlopen+:} false; then :
11207
11208else
11209  ac_cv_search_dlopen=no
11210fi
11211rm conftest.$ac_ext
11212LIBS=$ac_func_search_save_LIBS
11213fi
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11215$as_echo "$ac_cv_search_dlopen" >&6; }
11216ac_res=$ac_cv_search_dlopen
11217if test "$ac_res" != no; then :
11218  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11219
11220fi
11221
11222else
11223  OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11224fi
11225
11226#########
11227# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
11228for option in $CFLAGS $CPPFLAGS
11229do
11230  case $option in
11231    -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11232    -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11233  esac
11234done
11235
11236
11237
11238# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11239ac_temp_CFLAGS=""
11240for option in $CFLAGS
11241do
11242  case $option in
11243    -DSQLITE_OMIT*) ;;
11244    -DSQLITE_ENABLE*) ;;
11245    *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11246  esac
11247done
11248CFLAGS=$ac_temp_CFLAGS
11249
11250
11251# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11252ac_temp_CPPFLAGS=""
11253for option in $CPPFLAGS
11254do
11255  case $option in
11256    -DSQLITE_OMIT*) ;;
11257    -DSQLITE_ENABLE*) ;;
11258    *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11259  esac
11260done
11261CPPFLAGS=$ac_temp_CPPFLAGS
11262
11263
11264# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11265ac_temp_BUILD_CFLAGS=""
11266for option in $BUILD_CFLAGS
11267do
11268  case $option in
11269    -DSQLITE_OMIT*) ;;
11270    -DSQLITE_ENABLE*) ;;
11271    *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11272  esac
11273done
11274BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11275
11276
11277#########
11278# See whether we should use GCOV
11279# Check whether --enable-gcov was given.
11280if test "${enable_gcov+set}" = set; then :
11281  enableval=$enable_gcov; use_gcov=$enableval
11282else
11283  use_gcov=no
11284fi
11285
11286if test "${use_gcov}" = "yes" ; then
11287  USE_GCOV=1
11288else
11289  USE_GCOV=0
11290fi
11291
11292
11293
11294#########
11295# Output the config header
11296ac_config_headers="$ac_config_headers config.h"
11297
11298
11299#########
11300# Generate the output files.
11301#
11302
11303ac_config_files="$ac_config_files Makefile sqlite3.pc"
11304
11305cat >confcache <<\_ACEOF
11306# This file is a shell script that caches the results of configure
11307# tests run on this system so they can be shared between configure
11308# scripts and configure runs, see configure's option --config-cache.
11309# It is not useful on other systems.  If it contains results you don't
11310# want to keep, you may remove or edit it.
11311#
11312# config.status only pays attention to the cache file if you give it
11313# the --recheck option to rerun configure.
11314#
11315# `ac_cv_env_foo' variables (set or unset) will be overridden when
11316# loading this file, other *unset* `ac_cv_foo' will be assigned the
11317# following values.
11318
11319_ACEOF
11320
11321# The following way of writing the cache mishandles newlines in values,
11322# but we know of no workaround that is simple, portable, and efficient.
11323# So, we kill variables containing newlines.
11324# Ultrix sh set writes to stderr and can't be redirected directly,
11325# and sets the high bit in the cache file unless we assign to the vars.
11326(
11327  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11328    eval ac_val=\$$ac_var
11329    case $ac_val in #(
11330    *${as_nl}*)
11331      case $ac_var in #(
11332      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11333$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11334      esac
11335      case $ac_var in #(
11336      _ | IFS | as_nl) ;; #(
11337      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11338      *) { eval $ac_var=; unset $ac_var;} ;;
11339      esac ;;
11340    esac
11341  done
11342
11343  (set) 2>&1 |
11344    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11345    *${as_nl}ac_space=\ *)
11346      # `set' does not quote correctly, so add quotes: double-quote
11347      # substitution turns \\\\ into \\, and sed turns \\ into \.
11348      sed -n \
11349	"s/'/'\\\\''/g;
11350	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11351      ;; #(
11352    *)
11353      # `set' quotes correctly as required by POSIX, so do not add quotes.
11354      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11355      ;;
11356    esac |
11357    sort
11358) |
11359  sed '
11360     /^ac_cv_env_/b end
11361     t clear
11362     :clear
11363     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11364     t end
11365     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11366     :end' >>confcache
11367if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11368  if test -w "$cache_file"; then
11369    if test "x$cache_file" != "x/dev/null"; then
11370      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11371$as_echo "$as_me: updating cache $cache_file" >&6;}
11372      if test ! -f "$cache_file" || test -h "$cache_file"; then
11373	cat confcache >"$cache_file"
11374      else
11375        case $cache_file in #(
11376        */* | ?:*)
11377	  mv -f confcache "$cache_file"$$ &&
11378	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11379        *)
11380	  mv -f confcache "$cache_file" ;;
11381	esac
11382      fi
11383    fi
11384  else
11385    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11386$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11387  fi
11388fi
11389rm -f confcache
11390
11391test "x$prefix" = xNONE && prefix=$ac_default_prefix
11392# Let make expand exec_prefix.
11393test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11394
11395DEFS=-DHAVE_CONFIG_H
11396
11397ac_libobjs=
11398ac_ltlibobjs=
11399U=
11400for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11401  # 1. Remove the extension, and $U if already installed.
11402  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11403  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11404  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11405  #    will be set to the directory where LIBOBJS objects are built.
11406  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11407  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11408done
11409LIBOBJS=$ac_libobjs
11410
11411LTLIBOBJS=$ac_ltlibobjs
11412
11413
11414
11415: "${CONFIG_STATUS=./config.status}"
11416ac_write_fail=0
11417ac_clean_files_save=$ac_clean_files
11418ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11420$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11421as_write_fail=0
11422cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11423#! $SHELL
11424# Generated by $as_me.
11425# Run this file to recreate the current configuration.
11426# Compiler output produced by configure, useful for debugging
11427# configure, is in config.log if it exists.
11428
11429debug=false
11430ac_cs_recheck=false
11431ac_cs_silent=false
11432
11433SHELL=\${CONFIG_SHELL-$SHELL}
11434export SHELL
11435_ASEOF
11436cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11437## -------------------- ##
11438## M4sh Initialization. ##
11439## -------------------- ##
11440
11441# Be more Bourne compatible
11442DUALCASE=1; export DUALCASE # for MKS sh
11443if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11444  emulate sh
11445  NULLCMD=:
11446  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11447  # is contrary to our usage.  Disable this feature.
11448  alias -g '${1+"$@"}'='"$@"'
11449  setopt NO_GLOB_SUBST
11450else
11451  case `(set -o) 2>/dev/null` in #(
11452  *posix*) :
11453    set -o posix ;; #(
11454  *) :
11455     ;;
11456esac
11457fi
11458
11459
11460as_nl='
11461'
11462export as_nl
11463# Printing a long string crashes Solaris 7 /usr/bin/printf.
11464as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11465as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11466as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11467# Prefer a ksh shell builtin over an external printf program on Solaris,
11468# but without wasting forks for bash or zsh.
11469if test -z "$BASH_VERSION$ZSH_VERSION" \
11470    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11471  as_echo='print -r --'
11472  as_echo_n='print -rn --'
11473elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11474  as_echo='printf %s\n'
11475  as_echo_n='printf %s'
11476else
11477  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11478    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11479    as_echo_n='/usr/ucb/echo -n'
11480  else
11481    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11482    as_echo_n_body='eval
11483      arg=$1;
11484      case $arg in #(
11485      *"$as_nl"*)
11486	expr "X$arg" : "X\\(.*\\)$as_nl";
11487	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11488      esac;
11489      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11490    '
11491    export as_echo_n_body
11492    as_echo_n='sh -c $as_echo_n_body as_echo'
11493  fi
11494  export as_echo_body
11495  as_echo='sh -c $as_echo_body as_echo'
11496fi
11497
11498# The user is always right.
11499if test "${PATH_SEPARATOR+set}" != set; then
11500  PATH_SEPARATOR=:
11501  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11502    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11503      PATH_SEPARATOR=';'
11504  }
11505fi
11506
11507
11508# IFS
11509# We need space, tab and new line, in precisely that order.  Quoting is
11510# there to prevent editors from complaining about space-tab.
11511# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11512# splitting by setting IFS to empty value.)
11513IFS=" ""	$as_nl"
11514
11515# Find who we are.  Look in the path if we contain no directory separator.
11516as_myself=
11517case $0 in #((
11518  *[\\/]* ) as_myself=$0 ;;
11519  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520for as_dir in $PATH
11521do
11522  IFS=$as_save_IFS
11523  test -z "$as_dir" && as_dir=.
11524    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11525  done
11526IFS=$as_save_IFS
11527
11528     ;;
11529esac
11530# We did not find ourselves, most probably we were run as `sh COMMAND'
11531# in which case we are not to be found in the path.
11532if test "x$as_myself" = x; then
11533  as_myself=$0
11534fi
11535if test ! -f "$as_myself"; then
11536  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11537  exit 1
11538fi
11539
11540# Unset variables that we do not need and which cause bugs (e.g. in
11541# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11542# suppresses any "Segmentation fault" message there.  '((' could
11543# trigger a bug in pdksh 5.2.14.
11544for as_var in BASH_ENV ENV MAIL MAILPATH
11545do eval test x\${$as_var+set} = xset \
11546  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11547done
11548PS1='$ '
11549PS2='> '
11550PS4='+ '
11551
11552# NLS nuisances.
11553LC_ALL=C
11554export LC_ALL
11555LANGUAGE=C
11556export LANGUAGE
11557
11558# CDPATH.
11559(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11560
11561
11562# as_fn_error STATUS ERROR [LINENO LOG_FD]
11563# ----------------------------------------
11564# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11565# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11566# script with STATUS, using 1 if that was 0.
11567as_fn_error ()
11568{
11569  as_status=$1; test $as_status -eq 0 && as_status=1
11570  if test "$4"; then
11571    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11572    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11573  fi
11574  $as_echo "$as_me: error: $2" >&2
11575  as_fn_exit $as_status
11576} # as_fn_error
11577
11578
11579# as_fn_set_status STATUS
11580# -----------------------
11581# Set $? to STATUS, without forking.
11582as_fn_set_status ()
11583{
11584  return $1
11585} # as_fn_set_status
11586
11587# as_fn_exit STATUS
11588# -----------------
11589# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11590as_fn_exit ()
11591{
11592  set +e
11593  as_fn_set_status $1
11594  exit $1
11595} # as_fn_exit
11596
11597# as_fn_unset VAR
11598# ---------------
11599# Portably unset VAR.
11600as_fn_unset ()
11601{
11602  { eval $1=; unset $1;}
11603}
11604as_unset=as_fn_unset
11605# as_fn_append VAR VALUE
11606# ----------------------
11607# Append the text in VALUE to the end of the definition contained in VAR. Take
11608# advantage of any shell optimizations that allow amortized linear growth over
11609# repeated appends, instead of the typical quadratic growth present in naive
11610# implementations.
11611if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11612  eval 'as_fn_append ()
11613  {
11614    eval $1+=\$2
11615  }'
11616else
11617  as_fn_append ()
11618  {
11619    eval $1=\$$1\$2
11620  }
11621fi # as_fn_append
11622
11623# as_fn_arith ARG...
11624# ------------------
11625# Perform arithmetic evaluation on the ARGs, and store the result in the
11626# global $as_val. Take advantage of shells that can avoid forks. The arguments
11627# must be portable across $(()) and expr.
11628if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11629  eval 'as_fn_arith ()
11630  {
11631    as_val=$(( $* ))
11632  }'
11633else
11634  as_fn_arith ()
11635  {
11636    as_val=`expr "$@" || test $? -eq 1`
11637  }
11638fi # as_fn_arith
11639
11640
11641if expr a : '\(a\)' >/dev/null 2>&1 &&
11642   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11643  as_expr=expr
11644else
11645  as_expr=false
11646fi
11647
11648if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11649  as_basename=basename
11650else
11651  as_basename=false
11652fi
11653
11654if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11655  as_dirname=dirname
11656else
11657  as_dirname=false
11658fi
11659
11660as_me=`$as_basename -- "$0" ||
11661$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11662	 X"$0" : 'X\(//\)$' \| \
11663	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11664$as_echo X/"$0" |
11665    sed '/^.*\/\([^/][^/]*\)\/*$/{
11666	    s//\1/
11667	    q
11668	  }
11669	  /^X\/\(\/\/\)$/{
11670	    s//\1/
11671	    q
11672	  }
11673	  /^X\/\(\/\).*/{
11674	    s//\1/
11675	    q
11676	  }
11677	  s/.*/./; q'`
11678
11679# Avoid depending upon Character Ranges.
11680as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11681as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11682as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11683as_cr_digits='0123456789'
11684as_cr_alnum=$as_cr_Letters$as_cr_digits
11685
11686ECHO_C= ECHO_N= ECHO_T=
11687case `echo -n x` in #(((((
11688-n*)
11689  case `echo 'xy\c'` in
11690  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11691  xy)  ECHO_C='\c';;
11692  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11693       ECHO_T='	';;
11694  esac;;
11695*)
11696  ECHO_N='-n';;
11697esac
11698
11699rm -f conf$$ conf$$.exe conf$$.file
11700if test -d conf$$.dir; then
11701  rm -f conf$$.dir/conf$$.file
11702else
11703  rm -f conf$$.dir
11704  mkdir conf$$.dir 2>/dev/null
11705fi
11706if (echo >conf$$.file) 2>/dev/null; then
11707  if ln -s conf$$.file conf$$ 2>/dev/null; then
11708    as_ln_s='ln -s'
11709    # ... but there are two gotchas:
11710    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11711    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11712    # In both cases, we have to default to `cp -pR'.
11713    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11714      as_ln_s='cp -pR'
11715  elif ln conf$$.file conf$$ 2>/dev/null; then
11716    as_ln_s=ln
11717  else
11718    as_ln_s='cp -pR'
11719  fi
11720else
11721  as_ln_s='cp -pR'
11722fi
11723rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11724rmdir conf$$.dir 2>/dev/null
11725
11726
11727# as_fn_mkdir_p
11728# -------------
11729# Create "$as_dir" as a directory, including parents if necessary.
11730as_fn_mkdir_p ()
11731{
11732
11733  case $as_dir in #(
11734  -*) as_dir=./$as_dir;;
11735  esac
11736  test -d "$as_dir" || eval $as_mkdir_p || {
11737    as_dirs=
11738    while :; do
11739      case $as_dir in #(
11740      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11741      *) as_qdir=$as_dir;;
11742      esac
11743      as_dirs="'$as_qdir' $as_dirs"
11744      as_dir=`$as_dirname -- "$as_dir" ||
11745$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11746	 X"$as_dir" : 'X\(//\)[^/]' \| \
11747	 X"$as_dir" : 'X\(//\)$' \| \
11748	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11749$as_echo X"$as_dir" |
11750    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11751	    s//\1/
11752	    q
11753	  }
11754	  /^X\(\/\/\)[^/].*/{
11755	    s//\1/
11756	    q
11757	  }
11758	  /^X\(\/\/\)$/{
11759	    s//\1/
11760	    q
11761	  }
11762	  /^X\(\/\).*/{
11763	    s//\1/
11764	    q
11765	  }
11766	  s/.*/./; q'`
11767      test -d "$as_dir" && break
11768    done
11769    test -z "$as_dirs" || eval "mkdir $as_dirs"
11770  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11771
11772
11773} # as_fn_mkdir_p
11774if mkdir -p . 2>/dev/null; then
11775  as_mkdir_p='mkdir -p "$as_dir"'
11776else
11777  test -d ./-p && rmdir ./-p
11778  as_mkdir_p=false
11779fi
11780
11781
11782# as_fn_executable_p FILE
11783# -----------------------
11784# Test if FILE is an executable regular file.
11785as_fn_executable_p ()
11786{
11787  test -f "$1" && test -x "$1"
11788} # as_fn_executable_p
11789as_test_x='test -x'
11790as_executable_p=as_fn_executable_p
11791
11792# Sed expression to map a string onto a valid CPP name.
11793as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11794
11795# Sed expression to map a string onto a valid variable name.
11796as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11797
11798
11799exec 6>&1
11800## ----------------------------------- ##
11801## Main body of $CONFIG_STATUS script. ##
11802## ----------------------------------- ##
11803_ASEOF
11804test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11805
11806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11807# Save the log message, to keep $0 and so on meaningful, and to
11808# report actual input values of CONFIG_FILES etc. instead of their
11809# values after options handling.
11810ac_log="
11811This file was extended by sqlite $as_me 3.8.12, which was
11812generated by GNU Autoconf 2.69.  Invocation command line was
11813
11814  CONFIG_FILES    = $CONFIG_FILES
11815  CONFIG_HEADERS  = $CONFIG_HEADERS
11816  CONFIG_LINKS    = $CONFIG_LINKS
11817  CONFIG_COMMANDS = $CONFIG_COMMANDS
11818  $ $0 $@
11819
11820on `(hostname || uname -n) 2>/dev/null | sed 1q`
11821"
11822
11823_ACEOF
11824
11825case $ac_config_files in *"
11826"*) set x $ac_config_files; shift; ac_config_files=$*;;
11827esac
11828
11829case $ac_config_headers in *"
11830"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11831esac
11832
11833
11834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11835# Files that config.status was made for.
11836config_files="$ac_config_files"
11837config_headers="$ac_config_headers"
11838config_commands="$ac_config_commands"
11839
11840_ACEOF
11841
11842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11843ac_cs_usage="\
11844\`$as_me' instantiates files and other configuration actions
11845from templates according to the current configuration.  Unless the files
11846and actions are specified as TAGs, all are instantiated by default.
11847
11848Usage: $0 [OPTION]... [TAG]...
11849
11850  -h, --help       print this help, then exit
11851  -V, --version    print version number and configuration settings, then exit
11852      --config     print configuration, then exit
11853  -q, --quiet, --silent
11854                   do not print progress messages
11855  -d, --debug      don't remove temporary files
11856      --recheck    update $as_me by reconfiguring in the same conditions
11857      --file=FILE[:TEMPLATE]
11858                   instantiate the configuration file FILE
11859      --header=FILE[:TEMPLATE]
11860                   instantiate the configuration header FILE
11861
11862Configuration files:
11863$config_files
11864
11865Configuration headers:
11866$config_headers
11867
11868Configuration commands:
11869$config_commands
11870
11871Report bugs to the package provider."
11872
11873_ACEOF
11874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11875ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11876ac_cs_version="\\
11877sqlite config.status 3.8.12
11878configured by $0, generated by GNU Autoconf 2.69,
11879  with options \\"\$ac_cs_config\\"
11880
11881Copyright (C) 2012 Free Software Foundation, Inc.
11882This config.status script is free software; the Free Software Foundation
11883gives unlimited permission to copy, distribute and modify it."
11884
11885ac_pwd='$ac_pwd'
11886srcdir='$srcdir'
11887INSTALL='$INSTALL'
11888AWK='$AWK'
11889test -n "\$AWK" || AWK=awk
11890_ACEOF
11891
11892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11893# The default lists apply if the user does not specify any file.
11894ac_need_defaults=:
11895while test $# != 0
11896do
11897  case $1 in
11898  --*=?*)
11899    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11900    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11901    ac_shift=:
11902    ;;
11903  --*=)
11904    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11905    ac_optarg=
11906    ac_shift=:
11907    ;;
11908  *)
11909    ac_option=$1
11910    ac_optarg=$2
11911    ac_shift=shift
11912    ;;
11913  esac
11914
11915  case $ac_option in
11916  # Handling of the options.
11917  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11918    ac_cs_recheck=: ;;
11919  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11920    $as_echo "$ac_cs_version"; exit ;;
11921  --config | --confi | --conf | --con | --co | --c )
11922    $as_echo "$ac_cs_config"; exit ;;
11923  --debug | --debu | --deb | --de | --d | -d )
11924    debug=: ;;
11925  --file | --fil | --fi | --f )
11926    $ac_shift
11927    case $ac_optarg in
11928    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11929    '') as_fn_error $? "missing file argument" ;;
11930    esac
11931    as_fn_append CONFIG_FILES " '$ac_optarg'"
11932    ac_need_defaults=false;;
11933  --header | --heade | --head | --hea )
11934    $ac_shift
11935    case $ac_optarg in
11936    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11937    esac
11938    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11939    ac_need_defaults=false;;
11940  --he | --h)
11941    # Conflict between --help and --header
11942    as_fn_error $? "ambiguous option: \`$1'
11943Try \`$0 --help' for more information.";;
11944  --help | --hel | -h )
11945    $as_echo "$ac_cs_usage"; exit ;;
11946  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11947  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11948    ac_cs_silent=: ;;
11949
11950  # This is an error.
11951  -*) as_fn_error $? "unrecognized option: \`$1'
11952Try \`$0 --help' for more information." ;;
11953
11954  *) as_fn_append ac_config_targets " $1"
11955     ac_need_defaults=false ;;
11956
11957  esac
11958  shift
11959done
11960
11961ac_configure_extra_args=
11962
11963if $ac_cs_silent; then
11964  exec 6>/dev/null
11965  ac_configure_extra_args="$ac_configure_extra_args --silent"
11966fi
11967
11968_ACEOF
11969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11970if \$ac_cs_recheck; then
11971  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11972  shift
11973  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11974  CONFIG_SHELL='$SHELL'
11975  export CONFIG_SHELL
11976  exec "\$@"
11977fi
11978
11979_ACEOF
11980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11981exec 5>>config.log
11982{
11983  echo
11984  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11985## Running $as_me. ##
11986_ASBOX
11987  $as_echo "$ac_log"
11988} >&5
11989
11990_ACEOF
11991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11992#
11993# INIT-COMMANDS
11994#
11995
11996
11997# The HP-UX ksh and POSIX shell print the target directory to stdout
11998# if CDPATH is set.
11999(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12000
12001sed_quote_subst='$sed_quote_subst'
12002double_quote_subst='$double_quote_subst'
12003delay_variable_subst='$delay_variable_subst'
12004macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12005macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12006enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12007enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12008pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12009enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12010host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12011host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12012host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12013build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12014build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12015build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12016SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12017Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12018GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12019EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12020FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12021LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12022NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12023LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12024max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12025ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12026exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12027lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12028lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12029lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12030reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12031reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12032OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12033deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12034file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12035AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12036AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12037STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12038RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12039old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12040old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12041old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12042CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12043CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12044compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12045GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12046lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12047lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12048lt_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"`'
12049lt_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"`'
12050objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12051SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12052ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12053MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12054lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12055lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12056lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12057lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12058lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12059need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12060DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12061NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12062LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12063OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12064OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12065libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12066shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12067extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12068archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12069enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12070export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12071whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12072compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12073old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12074old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12075archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12076archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12077module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12078module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12079with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12080allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12081no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12082hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12083hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12084hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12085hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12086hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12087hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12088hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12089hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12090inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12091link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12092fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12093always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12094export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12095exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12096include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12097prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12098file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12099variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12100need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12101need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12102version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12103runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12104shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12105shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12106libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12107library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12108soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12109postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12110postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12111finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12112finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12113hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12114sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12115sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12116hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12117enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12118enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12119enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12120old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12121striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12122
12123LTCC='$LTCC'
12124LTCFLAGS='$LTCFLAGS'
12125compiler='$compiler_DEFAULT'
12126
12127# Quote evaled strings.
12128for var in SED \
12129GREP \
12130EGREP \
12131FGREP \
12132LD \
12133NM \
12134LN_S \
12135lt_SP2NL \
12136lt_NL2SP \
12137reload_flag \
12138OBJDUMP \
12139deplibs_check_method \
12140file_magic_cmd \
12141AR \
12142AR_FLAGS \
12143STRIP \
12144RANLIB \
12145CC \
12146CFLAGS \
12147compiler \
12148lt_cv_sys_global_symbol_pipe \
12149lt_cv_sys_global_symbol_to_cdecl \
12150lt_cv_sys_global_symbol_to_c_name_address \
12151lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12152SHELL \
12153ECHO \
12154lt_prog_compiler_no_builtin_flag \
12155lt_prog_compiler_wl \
12156lt_prog_compiler_pic \
12157lt_prog_compiler_static \
12158lt_cv_prog_compiler_c_o \
12159need_locks \
12160DSYMUTIL \
12161NMEDIT \
12162LIPO \
12163OTOOL \
12164OTOOL64 \
12165shrext_cmds \
12166export_dynamic_flag_spec \
12167whole_archive_flag_spec \
12168compiler_needs_object \
12169with_gnu_ld \
12170allow_undefined_flag \
12171no_undefined_flag \
12172hardcode_libdir_flag_spec \
12173hardcode_libdir_flag_spec_ld \
12174hardcode_libdir_separator \
12175fix_srcfile_path \
12176exclude_expsyms \
12177include_expsyms \
12178file_list_spec \
12179variables_saved_for_relink \
12180libname_spec \
12181library_names_spec \
12182soname_spec \
12183finish_eval \
12184old_striplib \
12185striplib; do
12186    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12187    *[\\\\\\\`\\"\\\$]*)
12188      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12189      ;;
12190    *)
12191      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12192      ;;
12193    esac
12194done
12195
12196# Double-quote double-evaled strings.
12197for var in reload_cmds \
12198old_postinstall_cmds \
12199old_postuninstall_cmds \
12200old_archive_cmds \
12201extract_expsyms_cmds \
12202old_archive_from_new_cmds \
12203old_archive_from_expsyms_cmds \
12204archive_cmds \
12205archive_expsym_cmds \
12206module_cmds \
12207module_expsym_cmds \
12208export_symbols_cmds \
12209prelink_cmds \
12210postinstall_cmds \
12211postuninstall_cmds \
12212finish_cmds \
12213sys_lib_search_path_spec \
12214sys_lib_dlsearch_path_spec; do
12215    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12216    *[\\\\\\\`\\"\\\$]*)
12217      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12218      ;;
12219    *)
12220      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12221      ;;
12222    esac
12223done
12224
12225# Fix-up fallback echo if it was mangled by the above quoting rules.
12226case \$lt_ECHO in
12227*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12228  ;;
12229esac
12230
12231ac_aux_dir='$ac_aux_dir'
12232xsi_shell='$xsi_shell'
12233lt_shell_append='$lt_shell_append'
12234
12235# See if we are running on zsh, and set the options which allow our
12236# commands through without removal of \ escapes INIT.
12237if test -n "\${ZSH_VERSION+set}" ; then
12238   setopt NO_GLOB_SUBST
12239fi
12240
12241
12242    PACKAGE='$PACKAGE'
12243    VERSION='$VERSION'
12244    TIMESTAMP='$TIMESTAMP'
12245    RM='$RM'
12246    ofile='$ofile'
12247
12248
12249
12250
12251_ACEOF
12252
12253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12254
12255# Handling of arguments.
12256for ac_config_target in $ac_config_targets
12257do
12258  case $ac_config_target in
12259    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12260    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12261    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12262    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12263
12264  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12265  esac
12266done
12267
12268
12269# If the user did not use the arguments to specify the items to instantiate,
12270# then the envvar interface is used.  Set only those that are not.
12271# We use the long form for the default assignment because of an extremely
12272# bizarre bug on SunOS 4.1.3.
12273if $ac_need_defaults; then
12274  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12275  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12276  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12277fi
12278
12279# Have a temporary directory for convenience.  Make it in the build tree
12280# simply because there is no reason against having it here, and in addition,
12281# creating and moving files from /tmp can sometimes cause problems.
12282# Hook for its removal unless debugging.
12283# Note that there is a small window in which the directory will not be cleaned:
12284# after its creation but before its name has been assigned to `$tmp'.
12285$debug ||
12286{
12287  tmp= ac_tmp=
12288  trap 'exit_status=$?
12289  : "${ac_tmp:=$tmp}"
12290  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12291' 0
12292  trap 'as_fn_exit 1' 1 2 13 15
12293}
12294# Create a (secure) tmp directory for tmp files.
12295
12296{
12297  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12298  test -d "$tmp"
12299}  ||
12300{
12301  tmp=./conf$$-$RANDOM
12302  (umask 077 && mkdir "$tmp")
12303} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12304ac_tmp=$tmp
12305
12306# Set up the scripts for CONFIG_FILES section.
12307# No need to generate them if there are no CONFIG_FILES.
12308# This happens for instance with `./config.status config.h'.
12309if test -n "$CONFIG_FILES"; then
12310
12311
12312ac_cr=`echo X | tr X '\015'`
12313# On cygwin, bash can eat \r inside `` if the user requested igncr.
12314# But we know of no other shell where ac_cr would be empty at this
12315# point, so we can use a bashism as a fallback.
12316if test "x$ac_cr" = x; then
12317  eval ac_cr=\$\'\\r\'
12318fi
12319ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12320if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12321  ac_cs_awk_cr='\\r'
12322else
12323  ac_cs_awk_cr=$ac_cr
12324fi
12325
12326echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12327_ACEOF
12328
12329
12330{
12331  echo "cat >conf$$subs.awk <<_ACEOF" &&
12332  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12333  echo "_ACEOF"
12334} >conf$$subs.sh ||
12335  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12336ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12337ac_delim='%!_!# '
12338for ac_last_try in false false false false false :; do
12339  . ./conf$$subs.sh ||
12340    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12341
12342  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12343  if test $ac_delim_n = $ac_delim_num; then
12344    break
12345  elif $ac_last_try; then
12346    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12347  else
12348    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12349  fi
12350done
12351rm -f conf$$subs.sh
12352
12353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12354cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12355_ACEOF
12356sed -n '
12357h
12358s/^/S["/; s/!.*/"]=/
12359p
12360g
12361s/^[^!]*!//
12362:repl
12363t repl
12364s/'"$ac_delim"'$//
12365t delim
12366:nl
12367h
12368s/\(.\{148\}\)..*/\1/
12369t more1
12370s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12371p
12372n
12373b repl
12374:more1
12375s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12376p
12377g
12378s/.\{148\}//
12379t nl
12380:delim
12381h
12382s/\(.\{148\}\)..*/\1/
12383t more2
12384s/["\\]/\\&/g; s/^/"/; s/$/"/
12385p
12386b
12387:more2
12388s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12389p
12390g
12391s/.\{148\}//
12392t delim
12393' <conf$$subs.awk | sed '
12394/^[^""]/{
12395  N
12396  s/\n//
12397}
12398' >>$CONFIG_STATUS || ac_write_fail=1
12399rm -f conf$$subs.awk
12400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12401_ACAWK
12402cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12403  for (key in S) S_is_set[key] = 1
12404  FS = ""
12405
12406}
12407{
12408  line = $ 0
12409  nfields = split(line, field, "@")
12410  substed = 0
12411  len = length(field[1])
12412  for (i = 2; i < nfields; i++) {
12413    key = field[i]
12414    keylen = length(key)
12415    if (S_is_set[key]) {
12416      value = S[key]
12417      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12418      len += length(value) + length(field[++i])
12419      substed = 1
12420    } else
12421      len += 1 + keylen
12422  }
12423
12424  print line
12425}
12426
12427_ACAWK
12428_ACEOF
12429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12430if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12431  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12432else
12433  cat
12434fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12435  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12436_ACEOF
12437
12438# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12439# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12440# trailing colons and then remove the whole line if VPATH becomes empty
12441# (actually we leave an empty line to preserve line numbers).
12442if test "x$srcdir" = x.; then
12443  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12444h
12445s///
12446s/^/:/
12447s/[	 ]*$/:/
12448s/:\$(srcdir):/:/g
12449s/:\${srcdir}:/:/g
12450s/:@srcdir@:/:/g
12451s/^:*//
12452s/:*$//
12453x
12454s/\(=[	 ]*\).*/\1/
12455G
12456s/\n//
12457s/^[^=]*=[	 ]*$//
12458}'
12459fi
12460
12461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12462fi # test -n "$CONFIG_FILES"
12463
12464# Set up the scripts for CONFIG_HEADERS section.
12465# No need to generate them if there are no CONFIG_HEADERS.
12466# This happens for instance with `./config.status Makefile'.
12467if test -n "$CONFIG_HEADERS"; then
12468cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12469BEGIN {
12470_ACEOF
12471
12472# Transform confdefs.h into an awk script `defines.awk', embedded as
12473# here-document in config.status, that substitutes the proper values into
12474# config.h.in to produce config.h.
12475
12476# Create a delimiter string that does not exist in confdefs.h, to ease
12477# handling of long lines.
12478ac_delim='%!_!# '
12479for ac_last_try in false false :; do
12480  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12481  if test -z "$ac_tt"; then
12482    break
12483  elif $ac_last_try; then
12484    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12485  else
12486    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12487  fi
12488done
12489
12490# For the awk script, D is an array of macro values keyed by name,
12491# likewise P contains macro parameters if any.  Preserve backslash
12492# newline sequences.
12493
12494ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12495sed -n '
12496s/.\{148\}/&'"$ac_delim"'/g
12497t rset
12498:rset
12499s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12500t def
12501d
12502:def
12503s/\\$//
12504t bsnl
12505s/["\\]/\\&/g
12506s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12507D["\1"]=" \3"/p
12508s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12509d
12510:bsnl
12511s/["\\]/\\&/g
12512s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12513D["\1"]=" \3\\\\\\n"\\/p
12514t cont
12515s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12516t cont
12517d
12518:cont
12519n
12520s/.\{148\}/&'"$ac_delim"'/g
12521t clear
12522:clear
12523s/\\$//
12524t bsnlc
12525s/["\\]/\\&/g; s/^/"/; s/$/"/p
12526d
12527:bsnlc
12528s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12529b cont
12530' <confdefs.h | sed '
12531s/'"$ac_delim"'/"\\\
12532"/g' >>$CONFIG_STATUS || ac_write_fail=1
12533
12534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12535  for (key in D) D_is_set[key] = 1
12536  FS = ""
12537}
12538/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12539  line = \$ 0
12540  split(line, arg, " ")
12541  if (arg[1] == "#") {
12542    defundef = arg[2]
12543    mac1 = arg[3]
12544  } else {
12545    defundef = substr(arg[1], 2)
12546    mac1 = arg[2]
12547  }
12548  split(mac1, mac2, "(") #)
12549  macro = mac2[1]
12550  prefix = substr(line, 1, index(line, defundef) - 1)
12551  if (D_is_set[macro]) {
12552    # Preserve the white space surrounding the "#".
12553    print prefix "define", macro P[macro] D[macro]
12554    next
12555  } else {
12556    # Replace #undef with comments.  This is necessary, for example,
12557    # in the case of _POSIX_SOURCE, which is predefined and required
12558    # on some systems where configure will not decide to define it.
12559    if (defundef == "undef") {
12560      print "/*", prefix defundef, macro, "*/"
12561      next
12562    }
12563  }
12564}
12565{ print }
12566_ACAWK
12567_ACEOF
12568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12569  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12570fi # test -n "$CONFIG_HEADERS"
12571
12572
12573eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12574shift
12575for ac_tag
12576do
12577  case $ac_tag in
12578  :[FHLC]) ac_mode=$ac_tag; continue;;
12579  esac
12580  case $ac_mode$ac_tag in
12581  :[FHL]*:*);;
12582  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12583  :[FH]-) ac_tag=-:-;;
12584  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12585  esac
12586  ac_save_IFS=$IFS
12587  IFS=:
12588  set x $ac_tag
12589  IFS=$ac_save_IFS
12590  shift
12591  ac_file=$1
12592  shift
12593
12594  case $ac_mode in
12595  :L) ac_source=$1;;
12596  :[FH])
12597    ac_file_inputs=
12598    for ac_f
12599    do
12600      case $ac_f in
12601      -) ac_f="$ac_tmp/stdin";;
12602      *) # Look for the file first in the build tree, then in the source tree
12603	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12604	 # because $ac_f cannot contain `:'.
12605	 test -f "$ac_f" ||
12606	   case $ac_f in
12607	   [\\/$]*) false;;
12608	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12609	   esac ||
12610	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12611      esac
12612      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12613      as_fn_append ac_file_inputs " '$ac_f'"
12614    done
12615
12616    # Let's still pretend it is `configure' which instantiates (i.e., don't
12617    # use $as_me), people would be surprised to read:
12618    #    /* config.h.  Generated by config.status.  */
12619    configure_input='Generated from '`
12620	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12621	`' by configure.'
12622    if test x"$ac_file" != x-; then
12623      configure_input="$ac_file.  $configure_input"
12624      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12625$as_echo "$as_me: creating $ac_file" >&6;}
12626    fi
12627    # Neutralize special characters interpreted by sed in replacement strings.
12628    case $configure_input in #(
12629    *\&* | *\|* | *\\* )
12630       ac_sed_conf_input=`$as_echo "$configure_input" |
12631       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12632    *) ac_sed_conf_input=$configure_input;;
12633    esac
12634
12635    case $ac_tag in
12636    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12637      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12638    esac
12639    ;;
12640  esac
12641
12642  ac_dir=`$as_dirname -- "$ac_file" ||
12643$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12644	 X"$ac_file" : 'X\(//\)[^/]' \| \
12645	 X"$ac_file" : 'X\(//\)$' \| \
12646	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12647$as_echo X"$ac_file" |
12648    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12649	    s//\1/
12650	    q
12651	  }
12652	  /^X\(\/\/\)[^/].*/{
12653	    s//\1/
12654	    q
12655	  }
12656	  /^X\(\/\/\)$/{
12657	    s//\1/
12658	    q
12659	  }
12660	  /^X\(\/\).*/{
12661	    s//\1/
12662	    q
12663	  }
12664	  s/.*/./; q'`
12665  as_dir="$ac_dir"; as_fn_mkdir_p
12666  ac_builddir=.
12667
12668case "$ac_dir" in
12669.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12670*)
12671  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12672  # A ".." for each directory in $ac_dir_suffix.
12673  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12674  case $ac_top_builddir_sub in
12675  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12676  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12677  esac ;;
12678esac
12679ac_abs_top_builddir=$ac_pwd
12680ac_abs_builddir=$ac_pwd$ac_dir_suffix
12681# for backward compatibility:
12682ac_top_builddir=$ac_top_build_prefix
12683
12684case $srcdir in
12685  .)  # We are building in place.
12686    ac_srcdir=.
12687    ac_top_srcdir=$ac_top_builddir_sub
12688    ac_abs_top_srcdir=$ac_pwd ;;
12689  [\\/]* | ?:[\\/]* )  # Absolute name.
12690    ac_srcdir=$srcdir$ac_dir_suffix;
12691    ac_top_srcdir=$srcdir
12692    ac_abs_top_srcdir=$srcdir ;;
12693  *) # Relative name.
12694    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12695    ac_top_srcdir=$ac_top_build_prefix$srcdir
12696    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12697esac
12698ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12699
12700
12701  case $ac_mode in
12702  :F)
12703  #
12704  # CONFIG_FILE
12705  #
12706
12707  case $INSTALL in
12708  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12709  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12710  esac
12711_ACEOF
12712
12713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12714# If the template does not know about datarootdir, expand it.
12715# FIXME: This hack should be removed a few years after 2.60.
12716ac_datarootdir_hack=; ac_datarootdir_seen=
12717ac_sed_dataroot='
12718/datarootdir/ {
12719  p
12720  q
12721}
12722/@datadir@/p
12723/@docdir@/p
12724/@infodir@/p
12725/@localedir@/p
12726/@mandir@/p'
12727case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12728*datarootdir*) ac_datarootdir_seen=yes;;
12729*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12730  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12731$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12732_ACEOF
12733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12734  ac_datarootdir_hack='
12735  s&@datadir@&$datadir&g
12736  s&@docdir@&$docdir&g
12737  s&@infodir@&$infodir&g
12738  s&@localedir@&$localedir&g
12739  s&@mandir@&$mandir&g
12740  s&\\\${datarootdir}&$datarootdir&g' ;;
12741esac
12742_ACEOF
12743
12744# Neutralize VPATH when `$srcdir' = `.'.
12745# Shell code in configure.ac might set extrasub.
12746# FIXME: do we really want to maintain this feature?
12747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12748ac_sed_extra="$ac_vpsub
12749$extrasub
12750_ACEOF
12751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12752:t
12753/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12754s|@configure_input@|$ac_sed_conf_input|;t t
12755s&@top_builddir@&$ac_top_builddir_sub&;t t
12756s&@top_build_prefix@&$ac_top_build_prefix&;t t
12757s&@srcdir@&$ac_srcdir&;t t
12758s&@abs_srcdir@&$ac_abs_srcdir&;t t
12759s&@top_srcdir@&$ac_top_srcdir&;t t
12760s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12761s&@builddir@&$ac_builddir&;t t
12762s&@abs_builddir@&$ac_abs_builddir&;t t
12763s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12764s&@INSTALL@&$ac_INSTALL&;t t
12765$ac_datarootdir_hack
12766"
12767eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12768  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12769
12770test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12771  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12772  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12773      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12774  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12775which seems to be undefined.  Please make sure it is defined" >&5
12776$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12777which seems to be undefined.  Please make sure it is defined" >&2;}
12778
12779  rm -f "$ac_tmp/stdin"
12780  case $ac_file in
12781  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12782  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12783  esac \
12784  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12785 ;;
12786  :H)
12787  #
12788  # CONFIG_HEADER
12789  #
12790  if test x"$ac_file" != x-; then
12791    {
12792      $as_echo "/* $configure_input  */" \
12793      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12794    } >"$ac_tmp/config.h" \
12795      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12796    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12797      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12798$as_echo "$as_me: $ac_file is unchanged" >&6;}
12799    else
12800      rm -f "$ac_file"
12801      mv "$ac_tmp/config.h" "$ac_file" \
12802	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12803    fi
12804  else
12805    $as_echo "/* $configure_input  */" \
12806      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12807      || as_fn_error $? "could not create -" "$LINENO" 5
12808  fi
12809 ;;
12810
12811  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12812$as_echo "$as_me: executing $ac_file commands" >&6;}
12813 ;;
12814  esac
12815
12816
12817  case $ac_file$ac_mode in
12818    "libtool":C)
12819
12820    # See if we are running on zsh, and set the options which allow our
12821    # commands through without removal of \ escapes.
12822    if test -n "${ZSH_VERSION+set}" ; then
12823      setopt NO_GLOB_SUBST
12824    fi
12825
12826    cfgfile="${ofile}T"
12827    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12828    $RM "$cfgfile"
12829
12830    cat <<_LT_EOF >> "$cfgfile"
12831#! $SHELL
12832
12833# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12834# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12835# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12836# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12837#
12838#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12839#                 2006, 2007, 2008 Free Software Foundation, Inc.
12840#   Written by Gordon Matzigkeit, 1996
12841#
12842#   This file is part of GNU Libtool.
12843#
12844# GNU Libtool is free software; you can redistribute it and/or
12845# modify it under the terms of the GNU General Public License as
12846# published by the Free Software Foundation; either version 2 of
12847# the License, or (at your option) any later version.
12848#
12849# As a special exception to the GNU General Public License,
12850# if you distribute this file as part of a program or library that
12851# is built using GNU Libtool, you may include this file under the
12852# same distribution terms that you use for the rest of that program.
12853#
12854# GNU Libtool is distributed in the hope that it will be useful,
12855# but WITHOUT ANY WARRANTY; without even the implied warranty of
12856# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12857# GNU General Public License for more details.
12858#
12859# You should have received a copy of the GNU General Public License
12860# along with GNU Libtool; see the file COPYING.  If not, a copy
12861# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12862# obtained by writing to the Free Software Foundation, Inc.,
12863# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12864
12865
12866# The names of the tagged configurations supported by this script.
12867available_tags=""
12868
12869# ### BEGIN LIBTOOL CONFIG
12870
12871# Which release of libtool.m4 was used?
12872macro_version=$macro_version
12873macro_revision=$macro_revision
12874
12875# Whether or not to build shared libraries.
12876build_libtool_libs=$enable_shared
12877
12878# Whether or not to build static libraries.
12879build_old_libs=$enable_static
12880
12881# What type of objects to build.
12882pic_mode=$pic_mode
12883
12884# Whether or not to optimize for fast installation.
12885fast_install=$enable_fast_install
12886
12887# The host system.
12888host_alias=$host_alias
12889host=$host
12890host_os=$host_os
12891
12892# The build system.
12893build_alias=$build_alias
12894build=$build
12895build_os=$build_os
12896
12897# A sed program that does not truncate output.
12898SED=$lt_SED
12899
12900# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12901Xsed="\$SED -e 1s/^X//"
12902
12903# A grep program that handles long lines.
12904GREP=$lt_GREP
12905
12906# An ERE matcher.
12907EGREP=$lt_EGREP
12908
12909# A literal string matcher.
12910FGREP=$lt_FGREP
12911
12912# A BSD- or MS-compatible name lister.
12913NM=$lt_NM
12914
12915# Whether we need soft or hard links.
12916LN_S=$lt_LN_S
12917
12918# What is the maximum length of a command?
12919max_cmd_len=$max_cmd_len
12920
12921# Object file suffix (normally "o").
12922objext=$ac_objext
12923
12924# Executable file suffix (normally "").
12925exeext=$exeext
12926
12927# whether the shell understands "unset".
12928lt_unset=$lt_unset
12929
12930# turn spaces into newlines.
12931SP2NL=$lt_lt_SP2NL
12932
12933# turn newlines into spaces.
12934NL2SP=$lt_lt_NL2SP
12935
12936# How to create reloadable object files.
12937reload_flag=$lt_reload_flag
12938reload_cmds=$lt_reload_cmds
12939
12940# An object symbol dumper.
12941OBJDUMP=$lt_OBJDUMP
12942
12943# Method to check whether dependent libraries are shared objects.
12944deplibs_check_method=$lt_deplibs_check_method
12945
12946# Command to use when deplibs_check_method == "file_magic".
12947file_magic_cmd=$lt_file_magic_cmd
12948
12949# The archiver.
12950AR=$lt_AR
12951AR_FLAGS=$lt_AR_FLAGS
12952
12953# A symbol stripping program.
12954STRIP=$lt_STRIP
12955
12956# Commands used to install an old-style archive.
12957RANLIB=$lt_RANLIB
12958old_postinstall_cmds=$lt_old_postinstall_cmds
12959old_postuninstall_cmds=$lt_old_postuninstall_cmds
12960
12961# A C compiler.
12962LTCC=$lt_CC
12963
12964# LTCC compiler flags.
12965LTCFLAGS=$lt_CFLAGS
12966
12967# Take the output of nm and produce a listing of raw symbols and C names.
12968global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12969
12970# Transform the output of nm in a proper C declaration.
12971global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12972
12973# Transform the output of nm in a C name address pair.
12974global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12975
12976# Transform the output of nm in a C name address pair when lib prefix is needed.
12977global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12978
12979# The name of the directory that contains temporary libtool files.
12980objdir=$objdir
12981
12982# Shell to use when invoking shell scripts.
12983SHELL=$lt_SHELL
12984
12985# An echo program that does not interpret backslashes.
12986ECHO=$lt_ECHO
12987
12988# Used to examine libraries when file_magic_cmd begins with "file".
12989MAGIC_CMD=$MAGIC_CMD
12990
12991# Must we lock files when doing compilation?
12992need_locks=$lt_need_locks
12993
12994# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12995DSYMUTIL=$lt_DSYMUTIL
12996
12997# Tool to change global to local symbols on Mac OS X.
12998NMEDIT=$lt_NMEDIT
12999
13000# Tool to manipulate fat objects and archives on Mac OS X.
13001LIPO=$lt_LIPO
13002
13003# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13004OTOOL=$lt_OTOOL
13005
13006# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13007OTOOL64=$lt_OTOOL64
13008
13009# Old archive suffix (normally "a").
13010libext=$libext
13011
13012# Shared library suffix (normally ".so").
13013shrext_cmds=$lt_shrext_cmds
13014
13015# The commands to extract the exported symbol list from a shared archive.
13016extract_expsyms_cmds=$lt_extract_expsyms_cmds
13017
13018# Variables whose values should be saved in libtool wrapper scripts and
13019# restored at link time.
13020variables_saved_for_relink=$lt_variables_saved_for_relink
13021
13022# Do we need the "lib" prefix for modules?
13023need_lib_prefix=$need_lib_prefix
13024
13025# Do we need a version for libraries?
13026need_version=$need_version
13027
13028# Library versioning type.
13029version_type=$version_type
13030
13031# Shared library runtime path variable.
13032runpath_var=$runpath_var
13033
13034# Shared library path variable.
13035shlibpath_var=$shlibpath_var
13036
13037# Is shlibpath searched before the hard-coded library search path?
13038shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13039
13040# Format of library name prefix.
13041libname_spec=$lt_libname_spec
13042
13043# List of archive names.  First name is the real one, the rest are links.
13044# The last name is the one that the linker finds with -lNAME
13045library_names_spec=$lt_library_names_spec
13046
13047# The coded name of the library, if different from the real name.
13048soname_spec=$lt_soname_spec
13049
13050# Command to use after installation of a shared archive.
13051postinstall_cmds=$lt_postinstall_cmds
13052
13053# Command to use after uninstallation of a shared archive.
13054postuninstall_cmds=$lt_postuninstall_cmds
13055
13056# Commands used to finish a libtool library installation in a directory.
13057finish_cmds=$lt_finish_cmds
13058
13059# As "finish_cmds", except a single script fragment to be evaled but
13060# not shown.
13061finish_eval=$lt_finish_eval
13062
13063# Whether we should hardcode library paths into libraries.
13064hardcode_into_libs=$hardcode_into_libs
13065
13066# Compile-time system search path for libraries.
13067sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13068
13069# Run-time system search path for libraries.
13070sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13071
13072# Whether dlopen is supported.
13073dlopen_support=$enable_dlopen
13074
13075# Whether dlopen of programs is supported.
13076dlopen_self=$enable_dlopen_self
13077
13078# Whether dlopen of statically linked programs is supported.
13079dlopen_self_static=$enable_dlopen_self_static
13080
13081# Commands to strip libraries.
13082old_striplib=$lt_old_striplib
13083striplib=$lt_striplib
13084
13085
13086# The linker used to build libraries.
13087LD=$lt_LD
13088
13089# Commands used to build an old-style archive.
13090old_archive_cmds=$lt_old_archive_cmds
13091
13092# A language specific compiler.
13093CC=$lt_compiler
13094
13095# Is the compiler the GNU compiler?
13096with_gcc=$GCC
13097
13098# Compiler flag to turn off builtin functions.
13099no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13100
13101# How to pass a linker flag through the compiler.
13102wl=$lt_lt_prog_compiler_wl
13103
13104# Additional compiler flags for building library objects.
13105pic_flag=$lt_lt_prog_compiler_pic
13106
13107# Compiler flag to prevent dynamic linking.
13108link_static_flag=$lt_lt_prog_compiler_static
13109
13110# Does compiler simultaneously support -c and -o options?
13111compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13112
13113# Whether or not to add -lc for building shared libraries.
13114build_libtool_need_lc=$archive_cmds_need_lc
13115
13116# Whether or not to disallow shared libs when runtime libs are static.
13117allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13118
13119# Compiler flag to allow reflexive dlopens.
13120export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13121
13122# Compiler flag to generate shared objects directly from archives.
13123whole_archive_flag_spec=$lt_whole_archive_flag_spec
13124
13125# Whether the compiler copes with passing no objects directly.
13126compiler_needs_object=$lt_compiler_needs_object
13127
13128# Create an old-style archive from a shared archive.
13129old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13130
13131# Create a temporary old-style archive to link instead of a shared archive.
13132old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13133
13134# Commands used to build a shared archive.
13135archive_cmds=$lt_archive_cmds
13136archive_expsym_cmds=$lt_archive_expsym_cmds
13137
13138# Commands used to build a loadable module if different from building
13139# a shared archive.
13140module_cmds=$lt_module_cmds
13141module_expsym_cmds=$lt_module_expsym_cmds
13142
13143# Whether we are building with GNU ld or not.
13144with_gnu_ld=$lt_with_gnu_ld
13145
13146# Flag that allows shared libraries with undefined symbols to be built.
13147allow_undefined_flag=$lt_allow_undefined_flag
13148
13149# Flag that enforces no undefined symbols.
13150no_undefined_flag=$lt_no_undefined_flag
13151
13152# Flag to hardcode \$libdir into a binary during linking.
13153# This must work even if \$libdir does not exist
13154hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13155
13156# If ld is used when linking, flag to hardcode \$libdir into a binary
13157# during linking.  This must work even if \$libdir does not exist.
13158hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13159
13160# Whether we need a single "-rpath" flag with a separated argument.
13161hardcode_libdir_separator=$lt_hardcode_libdir_separator
13162
13163# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13164# DIR into the resulting binary.
13165hardcode_direct=$hardcode_direct
13166
13167# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13168# DIR into the resulting binary and the resulting library dependency is
13169# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13170# library is relocated.
13171hardcode_direct_absolute=$hardcode_direct_absolute
13172
13173# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13174# into the resulting binary.
13175hardcode_minus_L=$hardcode_minus_L
13176
13177# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13178# into the resulting binary.
13179hardcode_shlibpath_var=$hardcode_shlibpath_var
13180
13181# Set to "yes" if building a shared library automatically hardcodes DIR
13182# into the library and all subsequent libraries and executables linked
13183# against it.
13184hardcode_automatic=$hardcode_automatic
13185
13186# Set to yes if linker adds runtime paths of dependent libraries
13187# to runtime path list.
13188inherit_rpath=$inherit_rpath
13189
13190# Whether libtool must link a program against all its dependency libraries.
13191link_all_deplibs=$link_all_deplibs
13192
13193# Fix the shell variable \$srcfile for the compiler.
13194fix_srcfile_path=$lt_fix_srcfile_path
13195
13196# Set to "yes" if exported symbols are required.
13197always_export_symbols=$always_export_symbols
13198
13199# The commands to list exported symbols.
13200export_symbols_cmds=$lt_export_symbols_cmds
13201
13202# Symbols that should not be listed in the preloaded symbols.
13203exclude_expsyms=$lt_exclude_expsyms
13204
13205# Symbols that must always be exported.
13206include_expsyms=$lt_include_expsyms
13207
13208# Commands necessary for linking programs (against libraries) with templates.
13209prelink_cmds=$lt_prelink_cmds
13210
13211# Specify filename containing input files.
13212file_list_spec=$lt_file_list_spec
13213
13214# How to hardcode a shared library path into an executable.
13215hardcode_action=$hardcode_action
13216
13217# ### END LIBTOOL CONFIG
13218
13219_LT_EOF
13220
13221  case $host_os in
13222  aix3*)
13223    cat <<\_LT_EOF >> "$cfgfile"
13224# AIX sometimes has problems with the GCC collect2 program.  For some
13225# reason, if we set the COLLECT_NAMES environment variable, the problems
13226# vanish in a puff of smoke.
13227if test "X${COLLECT_NAMES+set}" != Xset; then
13228  COLLECT_NAMES=
13229  export COLLECT_NAMES
13230fi
13231_LT_EOF
13232    ;;
13233  esac
13234
13235
13236ltmain="$ac_aux_dir/ltmain.sh"
13237
13238
13239  # We use sed instead of cat because bash on DJGPP gets confused if
13240  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13241  # text mode, it properly converts lines to CR/LF.  This bash problem
13242  # is reportedly fixed, but why not run on old versions too?
13243  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13244    || (rm -f "$cfgfile"; exit 1)
13245
13246  case $xsi_shell in
13247  yes)
13248    cat << \_LT_EOF >> "$cfgfile"
13249
13250# func_dirname file append nondir_replacement
13251# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13252# otherwise set result to NONDIR_REPLACEMENT.
13253func_dirname ()
13254{
13255  case ${1} in
13256    */*) func_dirname_result="${1%/*}${2}" ;;
13257    *  ) func_dirname_result="${3}" ;;
13258  esac
13259}
13260
13261# func_basename file
13262func_basename ()
13263{
13264  func_basename_result="${1##*/}"
13265}
13266
13267# func_dirname_and_basename file append nondir_replacement
13268# perform func_basename and func_dirname in a single function
13269# call:
13270#   dirname:  Compute the dirname of FILE.  If nonempty,
13271#             add APPEND to the result, otherwise set result
13272#             to NONDIR_REPLACEMENT.
13273#             value returned in "$func_dirname_result"
13274#   basename: Compute filename of FILE.
13275#             value retuned in "$func_basename_result"
13276# Implementation must be kept synchronized with func_dirname
13277# and func_basename. For efficiency, we do not delegate to
13278# those functions but instead duplicate the functionality here.
13279func_dirname_and_basename ()
13280{
13281  case ${1} in
13282    */*) func_dirname_result="${1%/*}${2}" ;;
13283    *  ) func_dirname_result="${3}" ;;
13284  esac
13285  func_basename_result="${1##*/}"
13286}
13287
13288# func_stripname prefix suffix name
13289# strip PREFIX and SUFFIX off of NAME.
13290# PREFIX and SUFFIX must not contain globbing or regex special
13291# characters, hashes, percent signs, but SUFFIX may contain a leading
13292# dot (in which case that matches only a dot).
13293func_stripname ()
13294{
13295  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13296  # positional parameters, so assign one to ordinary parameter first.
13297  func_stripname_result=${3}
13298  func_stripname_result=${func_stripname_result#"${1}"}
13299  func_stripname_result=${func_stripname_result%"${2}"}
13300}
13301
13302# func_opt_split
13303func_opt_split ()
13304{
13305  func_opt_split_opt=${1%%=*}
13306  func_opt_split_arg=${1#*=}
13307}
13308
13309# func_lo2o object
13310func_lo2o ()
13311{
13312  case ${1} in
13313    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13314    *)    func_lo2o_result=${1} ;;
13315  esac
13316}
13317
13318# func_xform libobj-or-source
13319func_xform ()
13320{
13321  func_xform_result=${1%.*}.lo
13322}
13323
13324# func_arith arithmetic-term...
13325func_arith ()
13326{
13327  func_arith_result=$(( $* ))
13328}
13329
13330# func_len string
13331# STRING may not start with a hyphen.
13332func_len ()
13333{
13334  func_len_result=${#1}
13335}
13336
13337_LT_EOF
13338    ;;
13339  *) # Bourne compatible functions.
13340    cat << \_LT_EOF >> "$cfgfile"
13341
13342# func_dirname file append nondir_replacement
13343# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13344# otherwise set result to NONDIR_REPLACEMENT.
13345func_dirname ()
13346{
13347  # Extract subdirectory from the argument.
13348  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13349  if test "X$func_dirname_result" = "X${1}"; then
13350    func_dirname_result="${3}"
13351  else
13352    func_dirname_result="$func_dirname_result${2}"
13353  fi
13354}
13355
13356# func_basename file
13357func_basename ()
13358{
13359  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13360}
13361
13362
13363# func_stripname prefix suffix name
13364# strip PREFIX and SUFFIX off of NAME.
13365# PREFIX and SUFFIX must not contain globbing or regex special
13366# characters, hashes, percent signs, but SUFFIX may contain a leading
13367# dot (in which case that matches only a dot).
13368# func_strip_suffix prefix name
13369func_stripname ()
13370{
13371  case ${2} in
13372    .*) func_stripname_result=`$ECHO "X${3}" \
13373           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13374    *)  func_stripname_result=`$ECHO "X${3}" \
13375           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13376  esac
13377}
13378
13379# sed scripts:
13380my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13381my_sed_long_arg='1s/^-[^=]*=//'
13382
13383# func_opt_split
13384func_opt_split ()
13385{
13386  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13387  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13388}
13389
13390# func_lo2o object
13391func_lo2o ()
13392{
13393  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13394}
13395
13396# func_xform libobj-or-source
13397func_xform ()
13398{
13399  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13400}
13401
13402# func_arith arithmetic-term...
13403func_arith ()
13404{
13405  func_arith_result=`expr "$@"`
13406}
13407
13408# func_len string
13409# STRING may not start with a hyphen.
13410func_len ()
13411{
13412  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13413}
13414
13415_LT_EOF
13416esac
13417
13418case $lt_shell_append in
13419  yes)
13420    cat << \_LT_EOF >> "$cfgfile"
13421
13422# func_append var value
13423# Append VALUE to the end of shell variable VAR.
13424func_append ()
13425{
13426  eval "$1+=\$2"
13427}
13428_LT_EOF
13429    ;;
13430  *)
13431    cat << \_LT_EOF >> "$cfgfile"
13432
13433# func_append var value
13434# Append VALUE to the end of shell variable VAR.
13435func_append ()
13436{
13437  eval "$1=\$$1\$2"
13438}
13439
13440_LT_EOF
13441    ;;
13442  esac
13443
13444
13445  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13446    || (rm -f "$cfgfile"; exit 1)
13447
13448  mv -f "$cfgfile" "$ofile" ||
13449    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13450  chmod +x "$ofile"
13451
13452 ;;
13453
13454  esac
13455done # for ac_tag
13456
13457
13458as_fn_exit 0
13459_ACEOF
13460ac_clean_files=$ac_clean_files_save
13461
13462test $ac_write_fail = 0 ||
13463  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13464
13465
13466# configure is writing to config.log, and then calls config.status.
13467# config.status does its own redirection, appending to config.log.
13468# Unfortunately, on DOS this fails, as config.log is still kept open
13469# by configure, so config.status won't be able to write to it; its
13470# output is simply discarded.  So we exec the FD to /dev/null,
13471# effectively closing config.log, so it can be properly (re)opened and
13472# appended to by config.status.  When coming back to configure, we
13473# need to make the FD available again.
13474if test "$no_create" != yes; then
13475  ac_cs_success=:
13476  ac_config_status_args=
13477  test "$silent" = yes &&
13478    ac_config_status_args="$ac_config_status_args --quiet"
13479  exec 5>/dev/null
13480  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13481  exec 5>>config.log
13482  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13483  # would make configure fail if this is the last instruction.
13484  $ac_cs_success || as_fn_exit 1
13485fi
13486if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13487  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13488$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13489fi
13490
13491