]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/sqlite3/configure
MFC r333352 & r342183:
[FreeBSD/FreeBSD.git] / contrib / sqlite3 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.26.0.
4 #
5 # Report bugs to <http://www.sqlite.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://www.sqlite.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='sqlite'
592 PACKAGE_TARNAME='sqlite'
593 PACKAGE_VERSION='3.26.0'
594 PACKAGE_STRING='sqlite 3.26.0'
595 PACKAGE_BUGREPORT='http://www.sqlite.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="sqlite3.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 SHELL_CFLAGS
640 EXTRA_SHELL_OBJ
641 READLINE_LIBS
642 BUILD_CFLAGS
643 CPP
644 LT_SYS_LIBRARY_PATH
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 MANIFEST_TOOL
651 RANLIB
652 ac_ct_AR
653 AR
654 DLLTOOL
655 OBJDUMP
656 LN_S
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 EGREP
663 GREP
664 SED
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 LIBTOOL
674 am__fastdepCC_FALSE
675 am__fastdepCC_TRUE
676 CCDEPMODE
677 am__nodep
678 AMDEPBACKSLASH
679 AMDEP_FALSE
680 AMDEP_TRUE
681 am__quote
682 am__include
683 DEPDIR
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
690 CC
691 AM_BACKSLASH
692 AM_DEFAULT_VERBOSITY
693 AM_DEFAULT_V
694 AM_V
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_silent_rules
760 enable_largefile
761 enable_dependency_tracking
762 enable_shared
763 enable_static
764 with_pic
765 enable_fast_install
766 with_aix_soname
767 with_gnu_ld
768 with_sysroot
769 enable_libtool_lock
770 enable_editline
771 enable_readline
772 enable_threadsafe
773 enable_dynamic_extensions
774 enable_fts4
775 enable_fts3
776 enable_fts5
777 enable_json1
778 enable_rtree
779 enable_session
780 enable_debug
781 enable_static_shell
782 '
783       ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 LT_SYS_LIBRARY_PATH
792 CPP'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 ac_unrecognized_opts=
799 ac_unrecognized_sep=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
816
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847   # If the previous option needs an argument, assign it.
848   if test -n "$ac_prev"; then
849     eval $ac_prev=\$ac_option
850     ac_prev=
851     continue
852   fi
853
854   case $ac_option in
855   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856   *=)   ac_optarg= ;;
857   *)    ac_optarg=yes ;;
858   esac
859
860   # Accept the important Cygnus configure options, so we can diagnose typos.
861
862   case $ac_dashdash$ac_option in
863   --)
864     ac_dashdash=yes ;;
865
866   -bindir | --bindir | --bindi | --bind | --bin | --bi)
867     ac_prev=bindir ;;
868   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869     bindir=$ac_optarg ;;
870
871   -build | --build | --buil | --bui | --bu)
872     ac_prev=build_alias ;;
873   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874     build_alias=$ac_optarg ;;
875
876   -cache-file | --cache-file | --cache-fil | --cache-fi \
877   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878     ac_prev=cache_file ;;
879   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881     cache_file=$ac_optarg ;;
882
883   --config-cache | -C)
884     cache_file=config.cache ;;
885
886   -datadir | --datadir | --datadi | --datad)
887     ac_prev=datadir ;;
888   -datadir=* | --datadir=* | --datadi=* | --datad=*)
889     datadir=$ac_optarg ;;
890
891   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892   | --dataroo | --dataro | --datar)
893     ac_prev=datarootdir ;;
894   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896     datarootdir=$ac_optarg ;;
897
898   -disable-* | --disable-*)
899     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900     # Reject names that are not valid shell variable names.
901     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902       as_fn_error $? "invalid feature name: $ac_useropt"
903     ac_useropt_orig=$ac_useropt
904     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905     case $ac_user_opts in
906       *"
907 "enable_$ac_useropt"
908 "*) ;;
909       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910          ac_unrecognized_sep=', ';;
911     esac
912     eval enable_$ac_useropt=no ;;
913
914   -docdir | --docdir | --docdi | --doc | --do)
915     ac_prev=docdir ;;
916   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917     docdir=$ac_optarg ;;
918
919   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920     ac_prev=dvidir ;;
921   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922     dvidir=$ac_optarg ;;
923
924   -enable-* | --enable-*)
925     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928       as_fn_error $? "invalid feature name: $ac_useropt"
929     ac_useropt_orig=$ac_useropt
930     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931     case $ac_user_opts in
932       *"
933 "enable_$ac_useropt"
934 "*) ;;
935       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936          ac_unrecognized_sep=', ';;
937     esac
938     eval enable_$ac_useropt=\$ac_optarg ;;
939
940   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942   | --exec | --exe | --ex)
943     ac_prev=exec_prefix ;;
944   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946   | --exec=* | --exe=* | --ex=*)
947     exec_prefix=$ac_optarg ;;
948
949   -gas | --gas | --ga | --g)
950     # Obsolete; use --with-gas.
951     with_gas=yes ;;
952
953   -help | --help | --hel | --he | -h)
954     ac_init_help=long ;;
955   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956     ac_init_help=recursive ;;
957   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958     ac_init_help=short ;;
959
960   -host | --host | --hos | --ho)
961     ac_prev=host_alias ;;
962   -host=* | --host=* | --hos=* | --ho=*)
963     host_alias=$ac_optarg ;;
964
965   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966     ac_prev=htmldir ;;
967   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968   | --ht=*)
969     htmldir=$ac_optarg ;;
970
971   -includedir | --includedir | --includedi | --included | --include \
972   | --includ | --inclu | --incl | --inc)
973     ac_prev=includedir ;;
974   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975   | --includ=* | --inclu=* | --incl=* | --inc=*)
976     includedir=$ac_optarg ;;
977
978   -infodir | --infodir | --infodi | --infod | --info | --inf)
979     ac_prev=infodir ;;
980   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981     infodir=$ac_optarg ;;
982
983   -libdir | --libdir | --libdi | --libd)
984     ac_prev=libdir ;;
985   -libdir=* | --libdir=* | --libdi=* | --libd=*)
986     libdir=$ac_optarg ;;
987
988   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989   | --libexe | --libex | --libe)
990     ac_prev=libexecdir ;;
991   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992   | --libexe=* | --libex=* | --libe=*)
993     libexecdir=$ac_optarg ;;
994
995   -localedir | --localedir | --localedi | --localed | --locale)
996     ac_prev=localedir ;;
997   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998     localedir=$ac_optarg ;;
999
1000   -localstatedir | --localstatedir | --localstatedi | --localstated \
1001   | --localstate | --localstat | --localsta | --localst | --locals)
1002     ac_prev=localstatedir ;;
1003   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005     localstatedir=$ac_optarg ;;
1006
1007   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008     ac_prev=mandir ;;
1009   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010     mandir=$ac_optarg ;;
1011
1012   -nfp | --nfp | --nf)
1013     # Obsolete; use --without-fp.
1014     with_fp=no ;;
1015
1016   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017   | --no-cr | --no-c | -n)
1018     no_create=yes ;;
1019
1020   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022     no_recursion=yes ;;
1023
1024   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026   | --oldin | --oldi | --old | --ol | --o)
1027     ac_prev=oldincludedir ;;
1028   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031     oldincludedir=$ac_optarg ;;
1032
1033   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034     ac_prev=prefix ;;
1035   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036     prefix=$ac_optarg ;;
1037
1038   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039   | --program-pre | --program-pr | --program-p)
1040     ac_prev=program_prefix ;;
1041   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043     program_prefix=$ac_optarg ;;
1044
1045   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046   | --program-suf | --program-su | --program-s)
1047     ac_prev=program_suffix ;;
1048   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050     program_suffix=$ac_optarg ;;
1051
1052   -program-transform-name | --program-transform-name \
1053   | --program-transform-nam | --program-transform-na \
1054   | --program-transform-n | --program-transform- \
1055   | --program-transform | --program-transfor \
1056   | --program-transfo | --program-transf \
1057   | --program-trans | --program-tran \
1058   | --progr-tra | --program-tr | --program-t)
1059     ac_prev=program_transform_name ;;
1060   -program-transform-name=* | --program-transform-name=* \
1061   | --program-transform-nam=* | --program-transform-na=* \
1062   | --program-transform-n=* | --program-transform-=* \
1063   | --program-transform=* | --program-transfor=* \
1064   | --program-transfo=* | --program-transf=* \
1065   | --program-trans=* | --program-tran=* \
1066   | --progr-tra=* | --program-tr=* | --program-t=*)
1067     program_transform_name=$ac_optarg ;;
1068
1069   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070     ac_prev=pdfdir ;;
1071   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072     pdfdir=$ac_optarg ;;
1073
1074   -psdir | --psdir | --psdi | --psd | --ps)
1075     ac_prev=psdir ;;
1076   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077     psdir=$ac_optarg ;;
1078
1079   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080   | -silent | --silent | --silen | --sile | --sil)
1081     silent=yes ;;
1082
1083   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084     ac_prev=sbindir ;;
1085   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086   | --sbi=* | --sb=*)
1087     sbindir=$ac_optarg ;;
1088
1089   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091   | --sharedst | --shareds | --shared | --share | --shar \
1092   | --sha | --sh)
1093     ac_prev=sharedstatedir ;;
1094   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097   | --sha=* | --sh=*)
1098     sharedstatedir=$ac_optarg ;;
1099
1100   -site | --site | --sit)
1101     ac_prev=site ;;
1102   -site=* | --site=* | --sit=*)
1103     site=$ac_optarg ;;
1104
1105   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106     ac_prev=srcdir ;;
1107   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108     srcdir=$ac_optarg ;;
1109
1110   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111   | --syscon | --sysco | --sysc | --sys | --sy)
1112     ac_prev=sysconfdir ;;
1113   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115     sysconfdir=$ac_optarg ;;
1116
1117   -target | --target | --targe | --targ | --tar | --ta | --t)
1118     ac_prev=target_alias ;;
1119   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120     target_alias=$ac_optarg ;;
1121
1122   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123     verbose=yes ;;
1124
1125   -version | --version | --versio | --versi | --vers | -V)
1126     ac_init_version=: ;;
1127
1128   -with-* | --with-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       as_fn_error $? "invalid package name: $ac_useropt"
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval with_$ac_useropt=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148       as_fn_error $? "invalid package name: $ac_useropt"
1149     ac_useropt_orig=$ac_useropt
1150     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151     case $ac_user_opts in
1152       *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156          ac_unrecognized_sep=', ';;
1157     esac
1158     eval with_$ac_useropt=no ;;
1159
1160   --x)
1161     # Obsolete; use --with-x.
1162     with_x=yes ;;
1163
1164   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165   | --x-incl | --x-inc | --x-in | --x-i)
1166     ac_prev=x_includes ;;
1167   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169     x_includes=$ac_optarg ;;
1170
1171   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173     ac_prev=x_libraries ;;
1174   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176     x_libraries=$ac_optarg ;;
1177
1178   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1180     ;;
1181
1182   *=*)
1183     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184     # Reject names that are not valid shell variable names.
1185     case $ac_envvar in #(
1186       '' | [0-9]* | *[!_$as_cr_alnum]* )
1187       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188     esac
1189     eval $ac_envvar=\$ac_optarg
1190     export $ac_envvar ;;
1191
1192   *)
1193     # FIXME: should be removed in autoconf 3.0.
1194     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198     ;;
1199
1200   esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205   as_fn_error $? "missing argument to $ac_option"
1206 fi
1207
1208 if test -n "$ac_unrecognized_opts"; then
1209   case $enable_option_checking in
1210     no) ;;
1211     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213   esac
1214 fi
1215
1216 # Check all directory arguments for consistency.
1217 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218                 datadir sysconfdir sharedstatedir localstatedir includedir \
1219                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220                 libdir localedir mandir
1221 do
1222   eval ac_val=\$$ac_var
1223   # Remove trailing slashes.
1224   case $ac_val in
1225     */ )
1226       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227       eval $ac_var=\$ac_val;;
1228   esac
1229   # Be sure to have absolute directory names.
1230   case $ac_val in
1231     [\\/$]* | ?:[\\/]* )  continue;;
1232     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233   esac
1234   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1236
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1243
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246   if test "x$build_alias" = x; then
1247     cross_compiling=maybe
1248   elif test "x$build_alias" != "x$host_alias"; then
1249     cross_compiling=yes
1250   fi
1251 fi
1252
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256 test "$silent" = yes && exec 6>/dev/null
1257
1258
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262   as_fn_error $? "working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264   as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269   ac_srcdir_defaulted=yes
1270   # Try the directory containing this script, then the parent directory.
1271   ac_confdir=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273          X"$as_myself" : 'X\(//\)[^/]' \| \
1274          X"$as_myself" : 'X\(//\)$' \| \
1275          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278             s//\1/
1279             q
1280           }
1281           /^X\(\/\/\)[^/].*/{
1282             s//\1/
1283             q
1284           }
1285           /^X\(\/\/\)$/{
1286             s//\1/
1287             q
1288           }
1289           /^X\(\/\).*/{
1290             s//\1/
1291             q
1292           }
1293           s/.*/./; q'`
1294   srcdir=$ac_confdir
1295   if test ! -r "$srcdir/$ac_unique_file"; then
1296     srcdir=..
1297   fi
1298 else
1299   ac_srcdir_defaulted=no
1300 fi
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308         pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311   srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321   eval ac_env_${ac_var}_value=\$${ac_var}
1322   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330   # Omit some internal or obsolete options to make the list less imposing.
1331   # This message is too long to be a string in the A/UX 3.1 sh.
1332   cat <<_ACEOF
1333 \`configure' configures sqlite 3.26.0 to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE.  See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343   -h, --help              display this help and exit
1344       --help=short        display options specific to this package
1345       --help=recursive    display the short help of all the included packages
1346   -V, --version           display version information and exit
1347   -q, --quiet, --silent   do not print \`checking ...' messages
1348       --cache-file=FILE   cache test results in FILE [disabled]
1349   -C, --config-cache      alias for \`--cache-file=config.cache'
1350   -n, --no-create         do not create output files
1351       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354   --prefix=PREFIX         install architecture-independent files in PREFIX
1355                           [$ac_default_prefix]
1356   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357                           [PREFIX]
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367   --bindir=DIR            user executables [EPREFIX/bin]
1368   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1369   --libexecdir=DIR        program executables [EPREFIX/libexec]
1370   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1371   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1372   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1373   --libdir=DIR            object code libraries [EPREFIX/lib]
1374   --includedir=DIR        C header files [PREFIX/include]
1375   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1376   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1377   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1378   --infodir=DIR           info documentation [DATAROOTDIR/info]
1379   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1380   --mandir=DIR            man documentation [DATAROOTDIR/man]
1381   --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1382   --htmldir=DIR           html documentation [DOCDIR]
1383   --dvidir=DIR            dvi documentation [DOCDIR]
1384   --pdfdir=DIR            pdf documentation [DOCDIR]
1385   --psdir=DIR             ps documentation [DOCDIR]
1386 _ACEOF
1387
1388   cat <<\_ACEOF
1389
1390 Program names:
1391   --program-prefix=PREFIX            prepend PREFIX to installed program names
1392   --program-suffix=SUFFIX            append SUFFIX to installed program names
1393   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1394
1395 System types:
1396   --build=BUILD     configure for building on BUILD [guessed]
1397   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1398 _ACEOF
1399 fi
1400
1401 if test -n "$ac_init_help"; then
1402   case $ac_init_help in
1403      short | recursive ) echo "Configuration of sqlite 3.26.0:";;
1404    esac
1405   cat <<\_ACEOF
1406
1407 Optional Features:
1408   --disable-option-checking  ignore unrecognized --enable/--with options
1409   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1410   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1411   --enable-silent-rules   less verbose build output (undo: "make V=1")
1412   --disable-silent-rules  verbose build output (undo: "make V=0")
1413   --disable-largefile     omit support for large files
1414   --enable-dependency-tracking
1415                           do not reject slow dependency extractors
1416   --disable-dependency-tracking
1417                           speeds up one-time build
1418   --enable-shared[=PKGS]  build shared libraries [default=yes]
1419   --enable-static[=PKGS]  build static libraries [default=yes]
1420   --enable-fast-install[=PKGS]
1421                           optimize for fast installation [default=yes]
1422   --disable-libtool-lock  avoid locking (might break parallel builds)
1423   --enable-editline       use BSD libedit
1424   --enable-readline       use readline
1425   --enable-threadsafe     build a thread-safe library [default=yes]
1426   --enable-dynamic-extensions
1427                           support loadable extensions [default=yes]
1428   --enable-fts4           include fts4 support [default=yes]
1429   --enable-fts3           include fts3 support [default=no]
1430   --enable-fts5           include fts5 support [default=yes]
1431   --enable-json1          include json1 support [default=yes]
1432   --enable-rtree          include rtree support [default=yes]
1433   --enable-session        enable the session extension [default=no]
1434   --enable-debug          build with debugging features enabled [default=no]
1435   --enable-static-shell   statically link libsqlite3 into shell tool
1436                           [default=yes]
1437
1438 Optional Packages:
1439   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1442                           both]
1443   --with-aix-soname=aix|svr4|both
1444                           shared library versioning (aka "SONAME") variant to
1445                           provide on AIX, [default=aix].
1446   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1447   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1448                           compiler's sysroot if not specified).
1449
1450 Some influential environment variables:
1451   CC          C compiler command
1452   CFLAGS      C compiler flags
1453   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1454               nonstandard directory <lib dir>
1455   LIBS        libraries to pass to the linker, e.g. -l<library>
1456   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457               you have headers in a nonstandard directory <include dir>
1458   LT_SYS_LIBRARY_PATH
1459               User-defined run-time library search path.
1460   CPP         C preprocessor
1461
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1464
1465 Report bugs to <http://www.sqlite.org>.
1466 _ACEOF
1467 ac_status=$?
1468 fi
1469
1470 if test "$ac_init_help" = "recursive"; then
1471   # If there are subdirs, report their specific --help.
1472   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473     test -d "$ac_dir" ||
1474       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475       continue
1476     ac_builddir=.
1477
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *)
1481   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482   # A ".." for each directory in $ac_dir_suffix.
1483   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484   case $ac_top_builddir_sub in
1485   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487   esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1493
1494 case $srcdir in
1495   .)  # We are building in place.
1496     ac_srcdir=.
1497     ac_top_srcdir=$ac_top_builddir_sub
1498     ac_abs_top_srcdir=$ac_pwd ;;
1499   [\\/]* | ?:[\\/]* )  # Absolute name.
1500     ac_srcdir=$srcdir$ac_dir_suffix;
1501     ac_top_srcdir=$srcdir
1502     ac_abs_top_srcdir=$srcdir ;;
1503   *) # Relative name.
1504     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505     ac_top_srcdir=$ac_top_build_prefix$srcdir
1506     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510     cd "$ac_dir" || { ac_status=$?; continue; }
1511     # Check for guested configure.
1512     if test -f "$ac_srcdir/configure.gnu"; then
1513       echo &&
1514       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515     elif test -f "$ac_srcdir/configure"; then
1516       echo &&
1517       $SHELL "$ac_srcdir/configure" --help=recursive
1518     else
1519       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520     fi || ac_status=$?
1521     cd "$ac_pwd" || { ac_status=$?; break; }
1522   done
1523 fi
1524
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1527   cat <<\_ACEOF
1528 sqlite configure 3.26.0
1529 generated by GNU Autoconf 2.69
1530
1531 Copyright (C) 2012 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1534 _ACEOF
1535   exit
1536 fi
1537
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1541
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1546 {
1547   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548   rm -f conftest.$ac_objext
1549   if { { ac_try="$ac_compile"
1550 case "(($ac_try" in
1551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552   *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556   (eval "$ac_compile") 2>conftest.err
1557   ac_status=$?
1558   if test -s conftest.err; then
1559     grep -v '^ *+' conftest.err >conftest.er1
1560     cat conftest.er1 >&5
1561     mv -f conftest.er1 conftest.err
1562   fi
1563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564   test $ac_status = 0; } && {
1565          test -z "$ac_c_werror_flag" ||
1566          test ! -s conftest.err
1567        } && test -s conftest.$ac_objext; then :
1568   ac_retval=0
1569 else
1570   $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1572
1573         ac_retval=1
1574 fi
1575   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576   as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_compile
1579
1580 # ac_fn_c_try_link LINENO
1581 # -----------------------
1582 # Try to link conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_link ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   rm -f conftest.$ac_objext conftest$ac_exeext
1587   if { { ac_try="$ac_link"
1588 case "(($ac_try" in
1589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590   *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594   (eval "$ac_link") 2>conftest.err
1595   ac_status=$?
1596   if test -s conftest.err; then
1597     grep -v '^ *+' conftest.err >conftest.er1
1598     cat conftest.er1 >&5
1599     mv -f conftest.er1 conftest.err
1600   fi
1601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602   test $ac_status = 0; } && {
1603          test -z "$ac_c_werror_flag" ||
1604          test ! -s conftest.err
1605        } && test -s conftest$ac_exeext && {
1606          test "$cross_compiling" = yes ||
1607          test -x conftest$ac_exeext
1608        }; then :
1609   ac_retval=0
1610 else
1611   $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614         ac_retval=1
1615 fi
1616   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1617   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1618   # interfere with the next link command; also delete a directory that is
1619   # left behind by Apple's compiler.  We do this before executing the actions.
1620   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622   as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_link
1625
1626 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists and can be compiled using the include files in
1629 # INCLUDES, setting the cache variable VAR accordingly.
1630 ac_fn_c_check_header_compile ()
1631 {
1632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if eval \${$3+:} false; then :
1636   $as_echo_n "(cached) " >&6
1637 else
1638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h.  */
1640 $4
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644   eval "$3=yes"
1645 else
1646   eval "$3=no"
1647 fi
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 fi
1650 eval ac_res=\$$3
1651                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655 } # ac_fn_c_check_header_compile
1656
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_cpp ()
1661 {
1662   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663   if { { ac_try="$ac_cpp conftest.$ac_ext"
1664 case "(($ac_try" in
1665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666   *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671   ac_status=$?
1672   if test -s conftest.err; then
1673     grep -v '^ *+' conftest.err >conftest.er1
1674     cat conftest.er1 >&5
1675     mv -f conftest.er1 conftest.err
1676   fi
1677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678   test $ac_status = 0; } > conftest.i && {
1679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680          test ! -s conftest.err
1681        }; then :
1682   ac_retval=0
1683 else
1684   $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687     ac_retval=1
1688 fi
1689   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690   as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_cpp
1693
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1699 {
1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701   if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704   *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708   (eval "$ac_link") 2>&5
1709   ac_status=$?
1710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712   { { case "(($ac_try" in
1713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714   *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718   (eval "$ac_try") 2>&5
1719   ac_status=$?
1720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721   test $ac_status = 0; }; }; then :
1722   ac_retval=0
1723 else
1724   $as_echo "$as_me: program exited with status $ac_status" >&5
1725        $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728        ac_retval=$ac_status
1729 fi
1730   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732   as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_run
1735
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
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; }
1744 if eval \${$3+:} false; then :
1745   $as_echo_n "(cached) " >&6
1746 else
1747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h.  */
1749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1751 #define $2 innocuous_$2
1752
1753 /* System header to define __stub macros and hopefully few prototypes,
1754     which can conflict with char $2 (); below.
1755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1756     <limits.h> exists even on freestanding compilers.  */
1757
1758 #ifdef __STDC__
1759 # include <limits.h>
1760 #else
1761 # include <assert.h>
1762 #endif
1763
1764 #undef $2
1765
1766 /* Override any GCC internal prototype to avoid an error.
1767    Use char because int might match the return type of a GCC
1768    builtin and then its argument prototype would still apply.  */
1769 #ifdef __cplusplus
1770 extern "C"
1771 #endif
1772 char $2 ();
1773 /* The GNU C library defines this for functions which it implements
1774     to always fail with ENOSYS.  Some functions are actually named
1775     something starting with __ and the normal name is an alias.  */
1776 #if defined __stub_$2 || defined __stub___$2
1777 choke me
1778 #endif
1779
1780 int
1781 main ()
1782 {
1783 return $2 ();
1784   ;
1785   return 0;
1786 }
1787 _ACEOF
1788 if ac_fn_c_try_link "$LINENO"; then :
1789   eval "$3=yes"
1790 else
1791   eval "$3=no"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext \
1794     conftest$ac_exeext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } # ac_fn_c_check_func
1802
1803 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1804 # ---------------------------------------------
1805 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1806 # accordingly.
1807 ac_fn_c_check_decl ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   as_decl_name=`echo $2|sed 's/ *(.*//'`
1811   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1813 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1814 if eval \${$3+:} false; then :
1815   $as_echo_n "(cached) " >&6
1816 else
1817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h.  */
1819 $4
1820 int
1821 main ()
1822 {
1823 #ifndef $as_decl_name
1824 #ifdef __cplusplus
1825   (void) $as_decl_use;
1826 #else
1827   (void) $as_decl_name;
1828 #endif
1829 #endif
1830
1831   ;
1832   return 0;
1833 }
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836   eval "$3=yes"
1837 else
1838   eval "$3=no"
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 fi
1842 eval ac_res=\$$3
1843                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_c_check_decl
1848
1849 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1850 # -------------------------------------------------------
1851 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1852 # the include files in INCLUDES and setting the cache variable VAR
1853 # accordingly.
1854 ac_fn_c_check_header_mongrel ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   if eval \${$3+:} false; then :
1858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861   $as_echo_n "(cached) " >&6
1862 fi
1863 eval ac_res=\$$3
1864                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 else
1867   # Is the header compilable?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1869 $as_echo_n "checking $2 usability... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h.  */
1872 $4
1873 #include <$2>
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876   ac_header_compiler=yes
1877 else
1878   ac_header_compiler=no
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1882 $as_echo "$ac_header_compiler" >&6; }
1883
1884 # Is the header present?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1886 $as_echo_n "checking $2 presence... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h.  */
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_cpp "$LINENO"; then :
1892   ac_header_preproc=yes
1893 else
1894   ac_header_preproc=no
1895 fi
1896 rm -f conftest.err conftest.i conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1898 $as_echo "$ac_header_preproc" >&6; }
1899
1900 # So?  What about this header?
1901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1902   yes:no: )
1903     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1904 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1905     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907     ;;
1908   no:yes:* )
1909     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1910 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1912 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1914 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1915     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1916 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1917     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919 ( $as_echo "## ------------------------------------ ##
1920 ## Report this to http://www.sqlite.org ##
1921 ## ------------------------------------ ##"
1922      ) | sed "s/^/$as_me: WARNING:     /" >&2
1923     ;;
1924 esac
1925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928   $as_echo_n "(cached) " >&6
1929 else
1930   eval "$3=\$ac_header_compiler"
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 fi
1936   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938 } # ac_fn_c_check_header_mongrel
1939 cat >config.log <<_ACEOF
1940 This file contains any messages produced by compilers while
1941 running configure, to aid debugging if configure makes a mistake.
1942
1943 It was created by sqlite $as_me 3.26.0, which was
1944 generated by GNU Autoconf 2.69.  Invocation command line was
1945
1946   $ $0 $@
1947
1948 _ACEOF
1949 exec 5>>config.log
1950 {
1951 cat <<_ASUNAME
1952 ## --------- ##
1953 ## Platform. ##
1954 ## --------- ##
1955
1956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1957 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1958 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1959 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1960 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1961
1962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1963 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1964
1965 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1966 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1968 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1969 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1970 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1971 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1972
1973 _ASUNAME
1974
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980     $as_echo "PATH: $as_dir"
1981   done
1982 IFS=$as_save_IFS
1983
1984 } >&5
1985
1986 cat >&5 <<_ACEOF
1987
1988
1989 ## ----------- ##
1990 ## Core tests. ##
1991 ## ----------- ##
1992
1993 _ACEOF
1994
1995
1996 # Keep a trace of the command line.
1997 # Strip out --no-create and --no-recursion so they do not pile up.
1998 # Strip out --silent because we don't want to record it for future runs.
1999 # Also quote any args containing shell meta-characters.
2000 # Make two passes to allow for proper duplicate-argument suppression.
2001 ac_configure_args=
2002 ac_configure_args0=
2003 ac_configure_args1=
2004 ac_must_keep_next=false
2005 for ac_pass in 1 2
2006 do
2007   for ac_arg
2008   do
2009     case $ac_arg in
2010     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2011     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2012     | -silent | --silent | --silen | --sile | --sil)
2013       continue ;;
2014     *\'*)
2015       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2016     esac
2017     case $ac_pass in
2018     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2019     2)
2020       as_fn_append ac_configure_args1 " '$ac_arg'"
2021       if test $ac_must_keep_next = true; then
2022         ac_must_keep_next=false # Got value, back to normal.
2023       else
2024         case $ac_arg in
2025           *=* | --config-cache | -C | -disable-* | --disable-* \
2026           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2027           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2028           | -with-* | --with-* | -without-* | --without-* | --x)
2029             case "$ac_configure_args0 " in
2030               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2031             esac
2032             ;;
2033           -* ) ac_must_keep_next=true ;;
2034         esac
2035       fi
2036       as_fn_append ac_configure_args " '$ac_arg'"
2037       ;;
2038     esac
2039   done
2040 done
2041 { ac_configure_args0=; unset ac_configure_args0;}
2042 { ac_configure_args1=; unset ac_configure_args1;}
2043
2044 # When interrupted or exit'd, cleanup temporary files, and complete
2045 # config.log.  We remove comments because anyway the quotes in there
2046 # would cause problems or look ugly.
2047 # WARNING: Use '\'' to represent an apostrophe within the trap.
2048 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2049 trap 'exit_status=$?
2050   # Save into config.log some information that might help in debugging.
2051   {
2052     echo
2053
2054     $as_echo "## ---------------- ##
2055 ## Cache variables. ##
2056 ## ---------------- ##"
2057     echo
2058     # The following way of writing the cache mishandles newlines in values,
2059 (
2060   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2061     eval ac_val=\$$ac_var
2062     case $ac_val in #(
2063     *${as_nl}*)
2064       case $ac_var in #(
2065       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2067       esac
2068       case $ac_var in #(
2069       _ | IFS | as_nl) ;; #(
2070       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2071       *) { eval $ac_var=; unset $ac_var;} ;;
2072       esac ;;
2073     esac
2074   done
2075   (set) 2>&1 |
2076     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2077     *${as_nl}ac_space=\ *)
2078       sed -n \
2079         "s/'\''/'\''\\\\'\'''\''/g;
2080           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2081       ;; #(
2082     *)
2083       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2084       ;;
2085     esac |
2086     sort
2087 )
2088     echo
2089
2090     $as_echo "## ----------------- ##
2091 ## Output variables. ##
2092 ## ----------------- ##"
2093     echo
2094     for ac_var in $ac_subst_vars
2095     do
2096       eval ac_val=\$$ac_var
2097       case $ac_val in
2098       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099       esac
2100       $as_echo "$ac_var='\''$ac_val'\''"
2101     done | sort
2102     echo
2103
2104     if test -n "$ac_subst_files"; then
2105       $as_echo "## ------------------- ##
2106 ## File substitutions. ##
2107 ## ------------------- ##"
2108       echo
2109       for ac_var in $ac_subst_files
2110       do
2111         eval ac_val=\$$ac_var
2112         case $ac_val in
2113         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114         esac
2115         $as_echo "$ac_var='\''$ac_val'\''"
2116       done | sort
2117       echo
2118     fi
2119
2120     if test -s confdefs.h; then
2121       $as_echo "## ----------- ##
2122 ## confdefs.h. ##
2123 ## ----------- ##"
2124       echo
2125       cat confdefs.h
2126       echo
2127     fi
2128     test "$ac_signal" != 0 &&
2129       $as_echo "$as_me: caught signal $ac_signal"
2130     $as_echo "$as_me: exit $exit_status"
2131   } >&5
2132   rm -f core *.core core.conftest.* &&
2133     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2134     exit $exit_status
2135 ' 0
2136 for ac_signal in 1 2 13 15; do
2137   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2138 done
2139 ac_signal=0
2140
2141 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2142 rm -f -r conftest* confdefs.h
2143
2144 $as_echo "/* confdefs.h */" > confdefs.h
2145
2146 # Predefined preprocessor variables.
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_NAME "$PACKAGE_NAME"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_STRING "$PACKAGE_STRING"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_URL "$PACKAGE_URL"
2170 _ACEOF
2171
2172
2173 # Let the site file select an alternate cache file if it wants to.
2174 # Prefer an explicitly selected file to automatically selected ones.
2175 ac_site_file1=NONE
2176 ac_site_file2=NONE
2177 if test -n "$CONFIG_SITE"; then
2178   # We do not want a PATH search for config.site.
2179   case $CONFIG_SITE in #((
2180     -*)  ac_site_file1=./$CONFIG_SITE;;
2181     */*) ac_site_file1=$CONFIG_SITE;;
2182     *)   ac_site_file1=./$CONFIG_SITE;;
2183   esac
2184 elif test "x$prefix" != xNONE; then
2185   ac_site_file1=$prefix/share/config.site
2186   ac_site_file2=$prefix/etc/config.site
2187 else
2188   ac_site_file1=$ac_default_prefix/share/config.site
2189   ac_site_file2=$ac_default_prefix/etc/config.site
2190 fi
2191 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2192 do
2193   test "x$ac_site_file" = xNONE && continue
2194   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2195     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2196 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2197     sed 's/^/| /' "$ac_site_file" >&5
2198     . "$ac_site_file" \
2199       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201 as_fn_error $? "failed to load site script $ac_site_file
2202 See \`config.log' for more details" "$LINENO" 5; }
2203   fi
2204 done
2205
2206 if test -r "$cache_file"; then
2207   # Some versions of bash will fail to source /dev/null (special files
2208   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2209   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2210     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2211 $as_echo "$as_me: loading cache $cache_file" >&6;}
2212     case $cache_file in
2213       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2214       *)                      . "./$cache_file";;
2215     esac
2216   fi
2217 else
2218   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2219 $as_echo "$as_me: creating cache $cache_file" >&6;}
2220   >$cache_file
2221 fi
2222
2223 # Check that the precious variables saved in the cache have kept the same
2224 # value.
2225 ac_cache_corrupted=false
2226 for ac_var in $ac_precious_vars; do
2227   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2228   eval ac_new_set=\$ac_env_${ac_var}_set
2229   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2230   eval ac_new_val=\$ac_env_${ac_var}_value
2231   case $ac_old_set,$ac_new_set in
2232     set,)
2233       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2234 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2235       ac_cache_corrupted=: ;;
2236     ,set)
2237       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2238 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2239       ac_cache_corrupted=: ;;
2240     ,);;
2241     *)
2242       if test "x$ac_old_val" != "x$ac_new_val"; then
2243         # differences in whitespace do not lead to failure.
2244         ac_old_val_w=`echo x $ac_old_val`
2245         ac_new_val_w=`echo x $ac_new_val`
2246         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2247           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2248 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2249           ac_cache_corrupted=:
2250         else
2251           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2252 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2253           eval $ac_var=\$ac_old_val
2254         fi
2255         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2256 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2257         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2258 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2259       fi;;
2260   esac
2261   # Pass precious variables to config.status.
2262   if test "$ac_new_set" = set; then
2263     case $ac_new_val in
2264     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2265     *) ac_arg=$ac_var=$ac_new_val ;;
2266     esac
2267     case " $ac_configure_args " in
2268       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2269       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2270     esac
2271   fi
2272 done
2273 if $ac_cache_corrupted; then
2274   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2277 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2278   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2279 fi
2280 ## -------------------- ##
2281 ## Main body of script. ##
2282 ## -------------------- ##
2283
2284 ac_ext=c
2285 ac_cpp='$CPP $CPPFLAGS'
2286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289
2290
2291
2292 ac_aux_dir=
2293 for ac_dir in . "$srcdir"/.; do
2294   if test -f "$ac_dir/install-sh"; then
2295     ac_aux_dir=$ac_dir
2296     ac_install_sh="$ac_aux_dir/install-sh -c"
2297     break
2298   elif test -f "$ac_dir/install.sh"; then
2299     ac_aux_dir=$ac_dir
2300     ac_install_sh="$ac_aux_dir/install.sh -c"
2301     break
2302   elif test -f "$ac_dir/shtool"; then
2303     ac_aux_dir=$ac_dir
2304     ac_install_sh="$ac_aux_dir/shtool install -c"
2305     break
2306   fi
2307 done
2308 if test -z "$ac_aux_dir"; then
2309   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2310 fi
2311
2312 # These three variables are undocumented and unsupported,
2313 # and are intended to be withdrawn in a future Autoconf release.
2314 # They can cause serious problems if a builder's source tree is in a directory
2315 # whose full name contains unusual characters.
2316 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2317 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2318 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2319
2320
2321
2322 # Use automake.
2323 am__api_version='1.15'
2324
2325 # Find a good install program.  We prefer a C program (faster),
2326 # so one script is as good as another.  But avoid the broken or
2327 # incompatible versions:
2328 # SysV /etc/install, /usr/sbin/install
2329 # SunOS /usr/etc/install
2330 # IRIX /sbin/install
2331 # AIX /bin/install
2332 # AmigaOS /C/install, which installs bootblocks on floppy discs
2333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336 # OS/2's system install, which has a completely different semantic
2337 # ./install, which can be erroneously created by make from ./install.sh.
2338 # Reject install programs that cannot install multiple files.
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2340 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2341 if test -z "$INSTALL"; then
2342 if ${ac_cv_path_install+:} false; then :
2343   $as_echo_n "(cached) " >&6
2344 else
2345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350     # Account for people who put trailing slashes in PATH elements.
2351 case $as_dir/ in #((
2352   ./ | .// | /[cC]/* | \
2353   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2354   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2355   /usr/ucb/* ) ;;
2356   *)
2357     # OSF1 and SCO ODT 3.0 have their own names for install.
2358     # Don't use installbsd from OSF since it installs stuff as root
2359     # by default.
2360     for ac_prog in ginstall scoinst install; do
2361       for ac_exec_ext in '' $ac_executable_extensions; do
2362         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2363           if test $ac_prog = install &&
2364             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365             # AIX install.  It has an incompatible calling convention.
2366             :
2367           elif test $ac_prog = install &&
2368             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369             # program-specific install script used by HP pwplus--don't use.
2370             :
2371           else
2372             rm -rf conftest.one conftest.two conftest.dir
2373             echo one > conftest.one
2374             echo two > conftest.two
2375             mkdir conftest.dir
2376             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377               test -s conftest.one && test -s conftest.two &&
2378               test -s conftest.dir/conftest.one &&
2379               test -s conftest.dir/conftest.two
2380             then
2381               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2382               break 3
2383             fi
2384           fi
2385         fi
2386       done
2387     done
2388     ;;
2389 esac
2390
2391   done
2392 IFS=$as_save_IFS
2393
2394 rm -rf conftest.one conftest.two conftest.dir
2395
2396 fi
2397   if test "${ac_cv_path_install+set}" = set; then
2398     INSTALL=$ac_cv_path_install
2399   else
2400     # As a last resort, use the slow shell script.  Don't cache a
2401     # value for INSTALL within a source directory, because that will
2402     # break other packages using the cache if that directory is
2403     # removed, or if the value is a relative name.
2404     INSTALL=$ac_install_sh
2405   fi
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2408 $as_echo "$INSTALL" >&6; }
2409
2410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411 # It thinks the first close brace ends the variable substitution.
2412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413
2414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2415
2416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2419 $as_echo_n "checking whether build environment is sane... " >&6; }
2420 # Reject unsafe characters in $srcdir or the absolute working directory
2421 # name.  Accept space and tab only in the latter.
2422 am_lf='
2423 '
2424 case `pwd` in
2425   *[\\\"\#\$\&\'\`$am_lf]*)
2426     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2427 esac
2428 case $srcdir in
2429   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2430     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2431 esac
2432
2433 # Do 'set' in a subshell so we don't clobber the current shell's
2434 # arguments.  Must try -L first in case configure is actually a
2435 # symlink; some systems play weird games with the mod time of symlinks
2436 # (eg FreeBSD returns the mod time of the symlink's containing
2437 # directory).
2438 if (
2439    am_has_slept=no
2440    for am_try in 1 2; do
2441      echo "timestamp, slept: $am_has_slept" > conftest.file
2442      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2443      if test "$*" = "X"; then
2444         # -L didn't work.
2445         set X `ls -t "$srcdir/configure" conftest.file`
2446      fi
2447      if test "$*" != "X $srcdir/configure conftest.file" \
2448         && test "$*" != "X conftest.file $srcdir/configure"; then
2449
2450         # If neither matched, then we have a broken ls.  This can happen
2451         # if, for instance, CONFIG_SHELL is bash and it inherits a
2452         # broken ls alias from the environment.  This has actually
2453         # happened.  Such a system could not be considered "sane".
2454         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2455   alias in your environment" "$LINENO" 5
2456      fi
2457      if test "$2" = conftest.file || test $am_try -eq 2; then
2458        break
2459      fi
2460      # Just in case.
2461      sleep 1
2462      am_has_slept=yes
2463    done
2464    test "$2" = conftest.file
2465    )
2466 then
2467    # Ok.
2468    :
2469 else
2470    as_fn_error $? "newly created file is older than distributed files!
2471 Check your system clock" "$LINENO" 5
2472 fi
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2474 $as_echo "yes" >&6; }
2475 # If we didn't sleep, we still need to ensure time stamps of config.status and
2476 # generated files are strictly newer.
2477 am_sleep_pid=
2478 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2479   ( sleep 1 ) &
2480   am_sleep_pid=$!
2481 fi
2482
2483 rm -f conftest.file
2484
2485 test "$program_prefix" != NONE &&
2486   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2487 # Use a double $ so make ignores it.
2488 test "$program_suffix" != NONE &&
2489   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2490 # Double any \ or $.
2491 # By default was `s,x,x', remove it if useless.
2492 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2493 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2494
2495 # Expand $ac_aux_dir to an absolute path.
2496 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2497
2498 if test x"${MISSING+set}" != xset; then
2499   case $am_aux_dir in
2500   *\ * | *\     *)
2501     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2502   *)
2503     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2504   esac
2505 fi
2506 # Use eval to expand $SHELL
2507 if eval "$MISSING --is-lightweight"; then
2508   am_missing_run="$MISSING "
2509 else
2510   am_missing_run=
2511   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2512 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2513 fi
2514
2515 if test x"${install_sh+set}" != xset; then
2516   case $am_aux_dir in
2517   *\ * | *\     *)
2518     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2519   *)
2520     install_sh="\${SHELL} $am_aux_dir/install-sh"
2521   esac
2522 fi
2523
2524 # Installed binaries are usually stripped using 'strip' when the user
2525 # run "make install-strip".  However 'strip' might not be the right
2526 # tool to use in cross-compilation environments, therefore Automake
2527 # will honor the 'STRIP' environment variable to overrule this program.
2528 if test "$cross_compiling" != no; then
2529   if test -n "$ac_tool_prefix"; then
2530   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}strip; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if ${ac_cv_prog_STRIP+:} false; then :
2535   $as_echo_n "(cached) " >&6
2536 else
2537   if test -n "$STRIP"; then
2538   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545     for ac_exec_ext in '' $ac_executable_extensions; do
2546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552   done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 STRIP=$ac_cv_prog_STRIP
2558 if test -n "$STRIP"; then
2559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2560 $as_echo "$STRIP" >&6; }
2561 else
2562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2564 fi
2565
2566
2567 fi
2568 if test -z "$ac_cv_prog_STRIP"; then
2569   ac_ct_STRIP=$STRIP
2570   # Extract the first word of "strip", so it can be a program name with args.
2571 set dummy strip; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577   if test -n "$ac_ct_STRIP"; then
2578   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585     for ac_exec_ext in '' $ac_executable_extensions; do
2586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587     ac_cv_prog_ac_ct_STRIP="strip"
2588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592   done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2598 if test -n "$ac_ct_STRIP"; then
2599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2600 $as_echo "$ac_ct_STRIP" >&6; }
2601 else
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 fi
2605
2606   if test "x$ac_ct_STRIP" = x; then
2607     STRIP=":"
2608   else
2609     case $cross_compiling:$ac_tool_warned in
2610 yes:)
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615     STRIP=$ac_ct_STRIP
2616   fi
2617 else
2618   STRIP="$ac_cv_prog_STRIP"
2619 fi
2620
2621 fi
2622 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2625 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2626 if test -z "$MKDIR_P"; then
2627   if ${ac_cv_path_mkdir+:} false; then :
2628   $as_echo_n "(cached) " >&6
2629 else
2630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635     for ac_prog in mkdir gmkdir; do
2636          for ac_exec_ext in '' $ac_executable_extensions; do
2637            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2638            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2639              'mkdir (GNU coreutils) '* | \
2640              'mkdir (coreutils) '* | \
2641              'mkdir (fileutils) '4.1*)
2642                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2643                break 3;;
2644            esac
2645          done
2646        done
2647   done
2648 IFS=$as_save_IFS
2649
2650 fi
2651
2652   test -d ./--version && rmdir ./--version
2653   if test "${ac_cv_path_mkdir+set}" = set; then
2654     MKDIR_P="$ac_cv_path_mkdir -p"
2655   else
2656     # As a last resort, use the slow shell script.  Don't cache a
2657     # value for MKDIR_P within a source directory, because that will
2658     # break other packages using the cache if that directory is
2659     # removed, or if the value is a relative name.
2660     MKDIR_P="$ac_install_sh -d"
2661   fi
2662 fi
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2664 $as_echo "$MKDIR_P" >&6; }
2665
2666 for ac_prog in gawk mawk nawk awk
2667 do
2668   # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_AWK+:} false; then :
2673   $as_echo_n "(cached) " >&6
2674 else
2675   if test -n "$AWK"; then
2676   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683     for ac_exec_ext in '' $ac_executable_extensions; do
2684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685     ac_cv_prog_AWK="$ac_prog"
2686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690   done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 AWK=$ac_cv_prog_AWK
2696 if test -n "$AWK"; then
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2698 $as_echo "$AWK" >&6; }
2699 else
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 fi
2703
2704
2705   test -n "$AWK" && break
2706 done
2707
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2710 set x ${MAKE-make}
2711 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2712 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2713   $as_echo_n "(cached) " >&6
2714 else
2715   cat >conftest.make <<\_ACEOF
2716 SHELL = /bin/sh
2717 all:
2718         @echo '@@@%%%=$(MAKE)=@@@%%%'
2719 _ACEOF
2720 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2721 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2722   *@@@%%%=?*=@@@%%%*)
2723     eval ac_cv_prog_make_${ac_make}_set=yes;;
2724   *)
2725     eval ac_cv_prog_make_${ac_make}_set=no;;
2726 esac
2727 rm -f conftest.make
2728 fi
2729 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2731 $as_echo "yes" >&6; }
2732   SET_MAKE=
2733 else
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736   SET_MAKE="MAKE=${MAKE-make}"
2737 fi
2738
2739 rm -rf .tst 2>/dev/null
2740 mkdir .tst 2>/dev/null
2741 if test -d .tst; then
2742   am__leading_dot=.
2743 else
2744   am__leading_dot=_
2745 fi
2746 rmdir .tst 2>/dev/null
2747
2748 # Check whether --enable-silent-rules was given.
2749 if test "${enable_silent_rules+set}" = set; then :
2750   enableval=$enable_silent_rules;
2751 fi
2752
2753 case $enable_silent_rules in # (((
2754   yes) AM_DEFAULT_VERBOSITY=0;;
2755    no) AM_DEFAULT_VERBOSITY=1;;
2756     *) AM_DEFAULT_VERBOSITY=1;;
2757 esac
2758 am_make=${MAKE-make}
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2760 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2761 if ${am_cv_make_support_nested_variables+:} false; then :
2762   $as_echo_n "(cached) " >&6
2763 else
2764   if $as_echo 'TRUE=$(BAR$(V))
2765 BAR0=false
2766 BAR1=true
2767 V=1
2768 am__doit:
2769         @$(TRUE)
2770 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2771   am_cv_make_support_nested_variables=yes
2772 else
2773   am_cv_make_support_nested_variables=no
2774 fi
2775 fi
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2777 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2778 if test $am_cv_make_support_nested_variables = yes; then
2779     AM_V='$(V)'
2780   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2781 else
2782   AM_V=$AM_DEFAULT_VERBOSITY
2783   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2784 fi
2785 AM_BACKSLASH='\'
2786
2787 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2788   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2789   # is not polluted with repeated "-I."
2790   am__isrc=' -I$(srcdir)'
2791   # test to see if srcdir already configured
2792   if test -f $srcdir/config.status; then
2793     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2794   fi
2795 fi
2796
2797 # test whether we have cygpath
2798 if test -z "$CYGPATH_W"; then
2799   if (cygpath --version) >/dev/null 2>/dev/null; then
2800     CYGPATH_W='cygpath -w'
2801   else
2802     CYGPATH_W=echo
2803   fi
2804 fi
2805
2806
2807 # Define the identity of the package.
2808  PACKAGE='sqlite'
2809  VERSION='3.26.0'
2810
2811
2812 cat >>confdefs.h <<_ACEOF
2813 #define PACKAGE "$PACKAGE"
2814 _ACEOF
2815
2816
2817 cat >>confdefs.h <<_ACEOF
2818 #define VERSION "$VERSION"
2819 _ACEOF
2820
2821 # Some tools Automake needs.
2822
2823 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2824
2825
2826 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2827
2828
2829 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2830
2831
2832 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2833
2834
2835 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2836
2837 # For better backward compatibility.  To be removed once Automake 1.9.x
2838 # dies out for good.  For more background, see:
2839 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2840 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2841 mkdir_p='$(MKDIR_P)'
2842
2843 # We need awk for the "check" target (and possibly the TAP driver).  The
2844 # system "awk" is bad on some platforms.
2845 # Always define AMTAR for backward compatibility.  Yes, it's still used
2846 # in the wild :-(  We should find a proper way to deprecate it ...
2847 AMTAR='$${TAR-tar}'
2848
2849
2850 # We'll loop over all known methods to create a tar archive until one works.
2851 _am_tools='gnutar  pax cpio none'
2852
2853 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2854
2855
2856
2857
2858
2859
2860 # POSIX will say in a future version that running "rm -f" with no argument
2861 # is OK; and we want to be able to make that assumption in our Makefile
2862 # recipes.  So use an aggressive probe to check that the usage we want is
2863 # actually supported "in the wild" to an acceptable degree.
2864 # See automake bug#10828.
2865 # To make any issue more visible, cause the running configure to be aborted
2866 # by default if the 'rm' program in use doesn't match our expectations; the
2867 # user can still override this though.
2868 if rm -f && rm -fr && rm -rf; then : OK; else
2869   cat >&2 <<'END'
2870 Oops!
2871
2872 Your 'rm' program seems unable to run without file operands specified
2873 on the command line, even when the '-f' option is present.  This is contrary
2874 to the behaviour of most rm programs out there, and not conforming with
2875 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2876
2877 Please tell bug-automake@gnu.org about your system, including the value
2878 of your $PATH and any error possibly output before this message.  This
2879 can help us improve future automake versions.
2880
2881 END
2882   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2883     echo 'Configuration will proceed anyway, since you have set the' >&2
2884     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2885     echo >&2
2886   else
2887     cat >&2 <<'END'
2888 Aborting the configuration process, to ensure you take notice of the issue.
2889
2890 You can download and install GNU coreutils to get an 'rm' implementation
2891 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2892
2893 If you want to complete the configuration process using your problematic
2894 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2895 to "yes", and re-run configure.
2896
2897 END
2898     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2899   fi
2900 fi
2901
2902
2903 DEPDIR="${am__leading_dot}deps"
2904
2905 ac_config_commands="$ac_config_commands depfiles"
2906
2907
2908 am_make=${MAKE-make}
2909 cat > confinc << 'END'
2910 am__doit:
2911         @echo this is the am__doit target
2912 .PHONY: am__doit
2913 END
2914 # If we don't find an include directive, just comment out the code.
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2916 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2917 am__include="#"
2918 am__quote=
2919 _am_result=none
2920 # First try GNU make style include.
2921 echo "include confinc" > confmf
2922 # Ignore all kinds of additional output from 'make'.
2923 case `$am_make -s -f confmf 2> /dev/null` in #(
2924 *the\ am__doit\ target*)
2925   am__include=include
2926   am__quote=
2927   _am_result=GNU
2928   ;;
2929 esac
2930 # Now try BSD make style include.
2931 if test "$am__include" = "#"; then
2932    echo '.include "confinc"' > confmf
2933    case `$am_make -s -f confmf 2> /dev/null` in #(
2934    *the\ am__doit\ target*)
2935      am__include=.include
2936      am__quote="\""
2937      _am_result=BSD
2938      ;;
2939    esac
2940 fi
2941
2942
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2944 $as_echo "$_am_result" >&6; }
2945 rm -f confinc confmf
2946
2947 # Check whether --enable-dependency-tracking was given.
2948 if test "${enable_dependency_tracking+set}" = set; then :
2949   enableval=$enable_dependency_tracking;
2950 fi
2951
2952 if test "x$enable_dependency_tracking" != xno; then
2953   am_depcomp="$ac_aux_dir/depcomp"
2954   AMDEPBACKSLASH='\'
2955   am__nodep='_no'
2956 fi
2957  if test "x$enable_dependency_tracking" != xno; then
2958   AMDEP_TRUE=
2959   AMDEP_FALSE='#'
2960 else
2961   AMDEP_TRUE='#'
2962   AMDEP_FALSE=
2963 fi
2964
2965
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 if test -n "$ac_tool_prefix"; then
2972   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977   $as_echo_n "(cached) " >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985   IFS=$as_save_IFS
2986   test -z "$as_dir" && as_dir=.
2987     for ac_exec_ext in '' $ac_executable_extensions; do
2988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991     break 2
2992   fi
2993 done
2994   done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 CC=$ac_cv_prog_CC
3000 if test -n "$CC"; then
3001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3003 else
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008
3009 fi
3010 if test -z "$ac_cv_prog_CC"; then
3011   ac_ct_CC=$CC
3012   # Extract the first word of "gcc", so it can be a program name with args.
3013 set dummy gcc; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3017   $as_echo_n "(cached) " >&6
3018 else
3019   if test -n "$ac_ct_CC"; then
3020   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025   IFS=$as_save_IFS
3026   test -z "$as_dir" && as_dir=.
3027     for ac_exec_ext in '' $ac_executable_extensions; do
3028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3029     ac_cv_prog_ac_ct_CC="gcc"
3030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031     break 2
3032   fi
3033 done
3034   done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040 if test -n "$ac_ct_CC"; then
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042 $as_echo "$ac_ct_CC" >&6; }
3043 else
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048   if test "x$ac_ct_CC" = x; then
3049     CC=""
3050   else
3051     case $cross_compiling:$ac_tool_warned in
3052 yes:)
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055 ac_tool_warned=yes ;;
3056 esac
3057     CC=$ac_ct_CC
3058   fi
3059 else
3060   CC="$ac_cv_prog_CC"
3061 fi
3062
3063 if test -z "$CC"; then
3064           if test -n "$ac_tool_prefix"; then
3065     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}cc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_CC+:} false; then :
3070   $as_echo_n "(cached) " >&6
3071 else
3072   if test -n "$CC"; then
3073   ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080     for ac_exec_ext in '' $ac_executable_extensions; do
3081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082     ac_cv_prog_CC="${ac_tool_prefix}cc"
3083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087   done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3096 else
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102   fi
3103 fi
3104 if test -z "$CC"; then
3105   # Extract the first word of "cc", so it can be a program name with args.
3106 set dummy cc; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_CC+:} false; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   if test -n "$CC"; then
3113   ac_cv_prog_CC="$CC" # Let the user override the test.
3114 else
3115   ac_prog_rejected=no
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119   IFS=$as_save_IFS
3120   test -z "$as_dir" && as_dir=.
3121     for ac_exec_ext in '' $ac_executable_extensions; do
3122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3124        ac_prog_rejected=yes
3125        continue
3126      fi
3127     ac_cv_prog_CC="cc"
3128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132   done
3133 IFS=$as_save_IFS
3134
3135 if test $ac_prog_rejected = yes; then
3136   # We found a bogon in the path, so make sure we never use it.
3137   set dummy $ac_cv_prog_CC
3138   shift
3139   if test $# != 0; then
3140     # We chose a different compiler from the bogus one.
3141     # However, it has the same basename, so the bogon will be chosen
3142     # first if we set CC to just the basename; use the full file name.
3143     shift
3144     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3145   fi
3146 fi
3147 fi
3148 fi
3149 CC=$ac_cv_prog_CC
3150 if test -n "$CC"; then
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3153 else
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158
3159 fi
3160 if test -z "$CC"; then
3161   if test -n "$ac_tool_prefix"; then
3162   for ac_prog in cl.exe
3163   do
3164     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   if test -n "$CC"; then
3172   ac_cv_prog_CC="$CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201     test -n "$CC" && break
3202   done
3203 fi
3204 if test -z "$CC"; then
3205   ac_ct_CC=$CC
3206   for ac_prog in cl.exe
3207 do
3208   # Extract the first word of "$ac_prog", so it can be a program name with args.
3209 set dummy $ac_prog; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3213   $as_echo_n "(cached) " >&6
3214 else
3215   if test -n "$ac_ct_CC"; then
3216   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223     for ac_exec_ext in '' $ac_executable_extensions; do
3224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225     ac_cv_prog_ac_ct_CC="$ac_prog"
3226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227     break 2
3228   fi
3229 done
3230   done
3231 IFS=$as_save_IFS
3232
3233 fi
3234 fi
3235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3236 if test -n "$ac_ct_CC"; then
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3238 $as_echo "$ac_ct_CC" >&6; }
3239 else
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244
3245   test -n "$ac_ct_CC" && break
3246 done
3247
3248   if test "x$ac_ct_CC" = x; then
3249     CC=""
3250   else
3251     case $cross_compiling:$ac_tool_warned in
3252 yes:)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255 ac_tool_warned=yes ;;
3256 esac
3257     CC=$ac_ct_CC
3258   fi
3259 fi
3260
3261 fi
3262
3263
3264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error $? "no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details" "$LINENO" 5; }
3268
3269 # Provide some information about the compiler.
3270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3271 set X $ac_compile
3272 ac_compiler=$2
3273 for ac_option in --version -v -V -qversion; do
3274   { { ac_try="$ac_compiler $ac_option >&5"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3282   ac_status=$?
3283   if test -s conftest.err; then
3284     sed '10a\
3285 ... rest of stderr output deleted ...
3286          10q' conftest.err >conftest.er1
3287     cat conftest.er1 >&5
3288   fi
3289   rm -f conftest.er1 conftest.err
3290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291   test $ac_status = 0; }
3292 done
3293
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h.  */
3296
3297 int
3298 main ()
3299 {
3300
3301   ;
3302   return 0;
3303 }
3304 _ACEOF
3305 ac_clean_files_save=$ac_clean_files
3306 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3307 # Try to create an executable without -o first, disregard a.out.
3308 # It will help us diagnose broken compilers, and finding out an intuition
3309 # of exeext.
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3311 $as_echo_n "checking whether the C compiler works... " >&6; }
3312 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3313
3314 # The possible output files:
3315 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3316
3317 ac_rmfiles=
3318 for ac_file in $ac_files
3319 do
3320   case $ac_file in
3321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3322     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3323   esac
3324 done
3325 rm -f $ac_rmfiles
3326
3327 if { { ac_try="$ac_link_default"
3328 case "(($ac_try" in
3329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330   *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334   (eval "$ac_link_default") 2>&5
3335   ac_status=$?
3336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337   test $ac_status = 0; }; then :
3338   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3340 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3341 # so that the user can short-circuit this test for compilers unknown to
3342 # Autoconf.
3343 for ac_file in $ac_files ''
3344 do
3345   test -f "$ac_file" || continue
3346   case $ac_file in
3347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3348         ;;
3349     [ab].out )
3350         # We found the default executable, but exeext='' is most
3351         # certainly right.
3352         break;;
3353     *.* )
3354         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3355         then :; else
3356            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357         fi
3358         # We set ac_cv_exeext here because the later test for it is not
3359         # safe: cross compilers may not add the suffix if given an `-o'
3360         # argument, so we may need to know it at that point already.
3361         # Even if this section looks crufty: it has the advantage of
3362         # actually working.
3363         break;;
3364     * )
3365         break;;
3366   esac
3367 done
3368 test "$ac_cv_exeext" = no && ac_cv_exeext=
3369
3370 else
3371   ac_file=''
3372 fi
3373 if test -z "$ac_file"; then :
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error 77 "C compiler cannot create executables
3382 See \`config.log' for more details" "$LINENO" 5; }
3383 else
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3385 $as_echo "yes" >&6; }
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3388 $as_echo_n "checking for C compiler default output file name... " >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3390 $as_echo "$ac_file" >&6; }
3391 ac_exeext=$ac_cv_exeext
3392
3393 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3394 ac_clean_files=$ac_clean_files_save
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3396 $as_echo_n "checking for suffix of executables... " >&6; }
3397 if { { ac_try="$ac_link"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403 $as_echo "$ac_try_echo"; } >&5
3404   (eval "$ac_link") 2>&5
3405   ac_status=$?
3406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407   test $ac_status = 0; }; then :
3408   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3409 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3410 # work properly (i.e., refer to `conftest.exe'), while it won't with
3411 # `rm'.
3412 for ac_file in conftest.exe conftest conftest.*; do
3413   test -f "$ac_file" || continue
3414   case $ac_file in
3415     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417           break;;
3418     * ) break;;
3419   esac
3420 done
3421 else
3422   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3425 See \`config.log' for more details" "$LINENO" 5; }
3426 fi
3427 rm -f conftest conftest$ac_cv_exeext
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3429 $as_echo "$ac_cv_exeext" >&6; }
3430
3431 rm -f conftest.$ac_ext
3432 EXEEXT=$ac_cv_exeext
3433 ac_exeext=$EXEEXT
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h.  */
3436 #include <stdio.h>
3437 int
3438 main ()
3439 {
3440 FILE *f = fopen ("conftest.out", "w");
3441  return ferror (f) || fclose (f) != 0;
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 ac_clean_files="$ac_clean_files conftest.out"
3448 # Check that the compiler produces executables we can run.  If not, either
3449 # the compiler is broken, or we cross compile.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3451 $as_echo_n "checking whether we are cross compiling... " >&6; }
3452 if test "$cross_compiling" != yes; then
3453   { { ac_try="$ac_link"
3454 case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460   (eval "$ac_link") 2>&5
3461   ac_status=$?
3462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463   test $ac_status = 0; }
3464   if { ac_try='./conftest$ac_cv_exeext'
3465   { { case "(($ac_try" in
3466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467   *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471   (eval "$ac_try") 2>&5
3472   ac_status=$?
3473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474   test $ac_status = 0; }; }; then
3475     cross_compiling=no
3476   else
3477     if test "$cross_compiling" = maybe; then
3478         cross_compiling=yes
3479     else
3480         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 as_fn_error $? "cannot run C compiled programs.
3483 If you meant to cross compile, use \`--host'.
3484 See \`config.log' for more details" "$LINENO" 5; }
3485     fi
3486   fi
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3489 $as_echo "$cross_compiling" >&6; }
3490
3491 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3492 ac_clean_files=$ac_clean_files_save
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3494 $as_echo_n "checking for suffix of object files... " >&6; }
3495 if ${ac_cv_objext+:} false; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 rm -f conftest.o conftest.obj
3510 if { { ac_try="$ac_compile"
3511 case "(($ac_try" in
3512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513   *) ac_try_echo=$ac_try;;
3514 esac
3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517   (eval "$ac_compile") 2>&5
3518   ac_status=$?
3519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520   test $ac_status = 0; }; then :
3521   for ac_file in conftest.o conftest.obj conftest.*; do
3522   test -f "$ac_file" || continue;
3523   case $ac_file in
3524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3525     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3526        break;;
3527   esac
3528 done
3529 else
3530   $as_echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "cannot compute suffix of object files: cannot compile
3536 See \`config.log' for more details" "$LINENO" 5; }
3537 fi
3538 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3541 $as_echo "$ac_cv_objext" >&6; }
3542 OBJEXT=$ac_cv_objext
3543 ac_objext=$OBJEXT
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3546 if ${ac_cv_c_compiler_gnu+:} false; then :
3547   $as_echo_n "(cached) " >&6
3548 else
3549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551
3552 int
3553 main ()
3554 {
3555 #ifndef __GNUC__
3556        choke me
3557 #endif
3558
3559   ;
3560   return 0;
3561 }
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564   ac_compiler_gnu=yes
3565 else
3566   ac_compiler_gnu=no
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3570
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3574 if test $ac_compiler_gnu = yes; then
3575   GCC=yes
3576 else
3577   GCC=
3578 fi
3579 ac_test_CFLAGS=${CFLAGS+set}
3580 ac_save_CFLAGS=$CFLAGS
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3583 if ${ac_cv_prog_cc_g+:} false; then :
3584   $as_echo_n "(cached) " >&6
3585 else
3586   ac_save_c_werror_flag=$ac_c_werror_flag
3587    ac_c_werror_flag=yes
3588    ac_cv_prog_cc_g=no
3589    CFLAGS="-g"
3590    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h.  */
3592
3593 int
3594 main ()
3595 {
3596
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602   ac_cv_prog_cc_g=yes
3603 else
3604   CFLAGS=""
3605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h.  */
3607
3608 int
3609 main ()
3610 {
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617
3618 else
3619   ac_c_werror_flag=$ac_save_c_werror_flag
3620          CFLAGS="-g"
3621          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h.  */
3623
3624 int
3625 main ()
3626 {
3627
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633   ac_cv_prog_cc_g=yes
3634 fi
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 fi
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 fi
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640    ac_c_werror_flag=$ac_save_c_werror_flag
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3643 $as_echo "$ac_cv_prog_cc_g" >&6; }
3644 if test "$ac_test_CFLAGS" = set; then
3645   CFLAGS=$ac_save_CFLAGS
3646 elif test $ac_cv_prog_cc_g = yes; then
3647   if test "$GCC" = yes; then
3648     CFLAGS="-g -O2"
3649   else
3650     CFLAGS="-g"
3651   fi
3652 else
3653   if test "$GCC" = yes; then
3654     CFLAGS="-O2"
3655   else
3656     CFLAGS=
3657   fi
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3661 if ${ac_cv_prog_cc_c89+:} false; then :
3662   $as_echo_n "(cached) " >&6
3663 else
3664   ac_cv_prog_cc_c89=no
3665 ac_save_CC=$CC
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h.  */
3668 #include <stdarg.h>
3669 #include <stdio.h>
3670 struct stat;
3671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3672 struct buf { int x; };
3673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3674 static char *e (p, i)
3675      char **p;
3676      int i;
3677 {
3678   return p[i];
3679 }
3680 static char *f (char * (*g) (char **, int), char **p, ...)
3681 {
3682   char *s;
3683   va_list v;
3684   va_start (v,p);
3685   s = g (p, va_arg (v,int));
3686   va_end (v);
3687   return s;
3688 }
3689
3690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3691    function prototypes and stuff, but not '\xHH' hex character constants.
3692    These don't provoke an error unfortunately, instead are silently treated
3693    as 'x'.  The following induces an error, until -std is added to get
3694    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3695    array size at least.  It's necessary to write '\x00'==0 to get something
3696    that's true only with -std.  */
3697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698
3699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3700    inside strings and character constants.  */
3701 #define FOO(x) 'x'
3702 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703
3704 int test (int i, double x);
3705 struct s1 {int (*f) (int a);};
3706 struct s2 {int (*f) (double a);};
3707 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3708 int argc;
3709 char **argv;
3710 int
3711 main ()
3712 {
3713 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3714   ;
3715   return 0;
3716 }
3717 _ACEOF
3718 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3719         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720 do
3721   CC="$ac_save_CC $ac_arg"
3722   if ac_fn_c_try_compile "$LINENO"; then :
3723   ac_cv_prog_cc_c89=$ac_arg
3724 fi
3725 rm -f core conftest.err conftest.$ac_objext
3726   test "x$ac_cv_prog_cc_c89" != "xno" && break
3727 done
3728 rm -f conftest.$ac_ext
3729 CC=$ac_save_CC
3730
3731 fi
3732 # AC_CACHE_VAL
3733 case "x$ac_cv_prog_cc_c89" in
3734   x)
3735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3736 $as_echo "none needed" >&6; } ;;
3737   xno)
3738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3739 $as_echo "unsupported" >&6; } ;;
3740   *)
3741     CC="$CC $ac_cv_prog_cc_c89"
3742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744 esac
3745 if test "x$ac_cv_prog_cc_c89" != xno; then :
3746
3747 fi
3748
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755 ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3761 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3762 if ${am_cv_prog_cc_c_o+:} false; then :
3763   $as_echo_n "(cached) " >&6
3764 else
3765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h.  */
3767
3768 int
3769 main ()
3770 {
3771
3772   ;
3773   return 0;
3774 }
3775 _ACEOF
3776   # Make sure it works both with $CC and with simple cc.
3777   # Following AC_PROG_CC_C_O, we do the test twice because some
3778   # compilers refuse to overwrite an existing .o file with -o,
3779   # though they will create one.
3780   am_cv_prog_cc_c_o=yes
3781   for am_i in 1 2; do
3782     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3783    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3784    ac_status=$?
3785    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786    (exit $ac_status); } \
3787          && test -f conftest2.$ac_objext; then
3788       : OK
3789     else
3790       am_cv_prog_cc_c_o=no
3791       break
3792     fi
3793   done
3794   rm -f core conftest*
3795   unset am_i
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3798 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3799 if test "$am_cv_prog_cc_c_o" != yes; then
3800    # Losing compiler, so override with the script.
3801    # FIXME: It is wrong to rewrite CC.
3802    # But if we don't then we get into trouble of one sort or another.
3803    # A longer-term fix would be to have automake use am__CC in this case,
3804    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3805    CC="$am_aux_dir/compile $CC"
3806 fi
3807 ac_ext=c
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
3813
3814 depcc="$CC"   am_compiler_list=
3815
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3817 $as_echo_n "checking dependency style of $depcc... " >&6; }
3818 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3819   $as_echo_n "(cached) " >&6
3820 else
3821   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3822   # We make a subdir and do the tests there.  Otherwise we can end up
3823   # making bogus files that we don't know about and never remove.  For
3824   # instance it was reported that on HP-UX the gcc test will end up
3825   # making a dummy file named 'D' -- because '-MD' means "put the output
3826   # in D".
3827   rm -rf conftest.dir
3828   mkdir conftest.dir
3829   # Copy depcomp to subdir because otherwise we won't find it if we're
3830   # using a relative directory.
3831   cp "$am_depcomp" conftest.dir
3832   cd conftest.dir
3833   # We will build objects and dependencies in a subdirectory because
3834   # it helps to detect inapplicable dependency modes.  For instance
3835   # both Tru64's cc and ICC support -MD to output dependencies as a
3836   # side effect of compilation, but ICC will put the dependencies in
3837   # the current directory while Tru64 will put them in the object
3838   # directory.
3839   mkdir sub
3840
3841   am_cv_CC_dependencies_compiler_type=none
3842   if test "$am_compiler_list" = ""; then
3843      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3844   fi
3845   am__universal=false
3846   case " $depcc " in #(
3847      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3848      esac
3849
3850   for depmode in $am_compiler_list; do
3851     # Setup a source with many dependencies, because some compilers
3852     # like to wrap large dependency lists on column 80 (with \), and
3853     # we should not choose a depcomp mode which is confused by this.
3854     #
3855     # We need to recreate these files for each test, as the compiler may
3856     # overwrite some of them when testing with obscure command lines.
3857     # This happens at least with the AIX C compiler.
3858     : > sub/conftest.c
3859     for i in 1 2 3 4 5 6; do
3860       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3861       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3862       # Solaris 10 /bin/sh.
3863       echo '/* dummy */' > sub/conftst$i.h
3864     done
3865     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3866
3867     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3868     # mode.  It turns out that the SunPro C++ compiler does not properly
3869     # handle '-M -o', and we need to detect this.  Also, some Intel
3870     # versions had trouble with output in subdirs.
3871     am__obj=sub/conftest.${OBJEXT-o}
3872     am__minus_obj="-o $am__obj"
3873     case $depmode in
3874     gcc)
3875       # This depmode causes a compiler race in universal mode.
3876       test "$am__universal" = false || continue
3877       ;;
3878     nosideeffect)
3879       # After this tag, mechanisms are not by side-effect, so they'll
3880       # only be used when explicitly requested.
3881       if test "x$enable_dependency_tracking" = xyes; then
3882         continue
3883       else
3884         break
3885       fi
3886       ;;
3887     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3888       # This compiler won't grok '-c -o', but also, the minuso test has
3889       # not run yet.  These depmodes are late enough in the game, and
3890       # so weak that their functioning should not be impacted.
3891       am__obj=conftest.${OBJEXT-o}
3892       am__minus_obj=
3893       ;;
3894     none) break ;;
3895     esac
3896     if depmode=$depmode \
3897        source=sub/conftest.c object=$am__obj \
3898        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3899        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3900          >/dev/null 2>conftest.err &&
3901        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3902        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3903        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3904        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3905       # icc doesn't choke on unknown options, it will just issue warnings
3906       # or remarks (even with -Werror).  So we grep stderr for any message
3907       # that says an option was ignored or not supported.
3908       # When given -MP, icc 7.0 and 7.1 complain thusly:
3909       #   icc: Command line warning: ignoring option '-M'; no argument required
3910       # The diagnosis changed in icc 8.0:
3911       #   icc: Command line remark: option '-MP' not supported
3912       if (grep 'ignoring option' conftest.err ||
3913           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3914         am_cv_CC_dependencies_compiler_type=$depmode
3915         break
3916       fi
3917     fi
3918   done
3919
3920   cd ..
3921   rm -rf conftest.dir
3922 else
3923   am_cv_CC_dependencies_compiler_type=none
3924 fi
3925
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3928 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3929 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3930
3931  if
3932   test "x$enable_dependency_tracking" != xno \
3933   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3934   am__fastdepCC_TRUE=
3935   am__fastdepCC_FALSE='#'
3936 else
3937   am__fastdepCC_TRUE='#'
3938   am__fastdepCC_FALSE=
3939 fi
3940
3941
3942
3943 # Check whether --enable-largefile was given.
3944 if test "${enable_largefile+set}" = set; then :
3945   enableval=$enable_largefile;
3946 fi
3947
3948 if test "$enable_largefile" != no; then
3949
3950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3951 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3952 if ${ac_cv_sys_largefile_CC+:} false; then :
3953   $as_echo_n "(cached) " >&6
3954 else
3955   ac_cv_sys_largefile_CC=no
3956      if test "$GCC" != yes; then
3957        ac_save_CC=$CC
3958        while :; do
3959          # IRIX 6.2 and later do not support large files by default,
3960          # so use the C compiler's -n32 option if that helps.
3961          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h.  */
3963 #include <sys/types.h>
3964  /* Check that off_t can represent 2**63 - 1 correctly.
3965     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3966     since some C++ compilers masquerading as C compilers
3967     incorrectly reject 9223372036854775807.  */
3968 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3969   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3970                        && LARGE_OFF_T % 2147483647 == 1)
3971                       ? 1 : -1];
3972 int
3973 main ()
3974 {
3975
3976   ;
3977   return 0;
3978 }
3979 _ACEOF
3980          if ac_fn_c_try_compile "$LINENO"; then :
3981   break
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext
3984          CC="$CC -n32"
3985          if ac_fn_c_try_compile "$LINENO"; then :
3986   ac_cv_sys_largefile_CC=' -n32'; break
3987 fi
3988 rm -f core conftest.err conftest.$ac_objext
3989          break
3990        done
3991        CC=$ac_save_CC
3992        rm -f conftest.$ac_ext
3993     fi
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3996 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3997   if test "$ac_cv_sys_largefile_CC" != no; then
3998     CC=$CC$ac_cv_sys_largefile_CC
3999   fi
4000
4001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4002 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4003 if ${ac_cv_sys_file_offset_bits+:} false; then :
4004   $as_echo_n "(cached) " >&6
4005 else
4006   while :; do
4007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h.  */
4009 #include <sys/types.h>
4010  /* Check that off_t can represent 2**63 - 1 correctly.
4011     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4012     since some C++ compilers masquerading as C compilers
4013     incorrectly reject 9223372036854775807.  */
4014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4015   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4016                        && LARGE_OFF_T % 2147483647 == 1)
4017                       ? 1 : -1];
4018 int
4019 main ()
4020 {
4021
4022   ;
4023   return 0;
4024 }
4025 _ACEOF
4026 if ac_fn_c_try_compile "$LINENO"; then :
4027   ac_cv_sys_file_offset_bits=no; break
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h.  */
4032 #define _FILE_OFFSET_BITS 64
4033 #include <sys/types.h>
4034  /* Check that off_t can represent 2**63 - 1 correctly.
4035     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4036     since some C++ compilers masquerading as C compilers
4037     incorrectly reject 9223372036854775807.  */
4038 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4039   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4040                        && LARGE_OFF_T % 2147483647 == 1)
4041                       ? 1 : -1];
4042 int
4043 main ()
4044 {
4045
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051   ac_cv_sys_file_offset_bits=64; break
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054   ac_cv_sys_file_offset_bits=unknown
4055   break
4056 done
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4059 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4060 case $ac_cv_sys_file_offset_bits in #(
4061   no | unknown) ;;
4062   *)
4063 cat >>confdefs.h <<_ACEOF
4064 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4065 _ACEOF
4066 ;;
4067 esac
4068 rm -rf conftest*
4069   if test $ac_cv_sys_file_offset_bits = unknown; then
4070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4071 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4072 if ${ac_cv_sys_large_files+:} false; then :
4073   $as_echo_n "(cached) " >&6
4074 else
4075   while :; do
4076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078 #include <sys/types.h>
4079  /* Check that off_t can represent 2**63 - 1 correctly.
4080     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4081     since some C++ compilers masquerading as C compilers
4082     incorrectly reject 9223372036854775807.  */
4083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4084   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4085                        && LARGE_OFF_T % 2147483647 == 1)
4086                       ? 1 : -1];
4087 int
4088 main ()
4089 {
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 if ac_fn_c_try_compile "$LINENO"; then :
4096   ac_cv_sys_large_files=no; break
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h.  */
4101 #define _LARGE_FILES 1
4102 #include <sys/types.h>
4103  /* Check that off_t can represent 2**63 - 1 correctly.
4104     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4105     since some C++ compilers masquerading as C compilers
4106     incorrectly reject 9223372036854775807.  */
4107 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4108   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4109                        && LARGE_OFF_T % 2147483647 == 1)
4110                       ? 1 : -1];
4111 int
4112 main ()
4113 {
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120   ac_cv_sys_large_files=1; break
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123   ac_cv_sys_large_files=unknown
4124   break
4125 done
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4128 $as_echo "$ac_cv_sys_large_files" >&6; }
4129 case $ac_cv_sys_large_files in #(
4130   no | unknown) ;;
4131   *)
4132 cat >>confdefs.h <<_ACEOF
4133 #define _LARGE_FILES $ac_cv_sys_large_files
4134 _ACEOF
4135 ;;
4136 esac
4137 rm -rf conftest*
4138   fi
4139
4140
4141 fi
4142
4143
4144 # Check for required programs.
4145 ac_ext=c
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 if test -n "$ac_tool_prefix"; then
4151   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4152 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if ${ac_cv_prog_CC+:} false; then :
4156   $as_echo_n "(cached) " >&6
4157 else
4158   if test -n "$CC"; then
4159   ac_cv_prog_CC="$CC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164   IFS=$as_save_IFS
4165   test -z "$as_dir" && as_dir=.
4166     for ac_exec_ext in '' $ac_executable_extensions; do
4167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170     break 2
4171   fi
4172 done
4173   done
4174 IFS=$as_save_IFS
4175
4176 fi
4177 fi
4178 CC=$ac_cv_prog_CC
4179 if test -n "$CC"; then
4180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4181 $as_echo "$CC" >&6; }
4182 else
4183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4185 fi
4186
4187
4188 fi
4189 if test -z "$ac_cv_prog_CC"; then
4190   ac_ct_CC=$CC
4191   # Extract the first word of "gcc", so it can be a program name with args.
4192 set dummy gcc; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4196   $as_echo_n "(cached) " >&6
4197 else
4198   if test -n "$ac_ct_CC"; then
4199   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206     for ac_exec_ext in '' $ac_executable_extensions; do
4207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4208     ac_cv_prog_ac_ct_CC="gcc"
4209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210     break 2
4211   fi
4212 done
4213   done
4214 IFS=$as_save_IFS
4215
4216 fi
4217 fi
4218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4219 if test -n "$ac_ct_CC"; then
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4221 $as_echo "$ac_ct_CC" >&6; }
4222 else
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4225 fi
4226
4227   if test "x$ac_ct_CC" = x; then
4228     CC=""
4229   else
4230     case $cross_compiling:$ac_tool_warned in
4231 yes:)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4234 ac_tool_warned=yes ;;
4235 esac
4236     CC=$ac_ct_CC
4237   fi
4238 else
4239   CC="$ac_cv_prog_CC"
4240 fi
4241
4242 if test -z "$CC"; then
4243           if test -n "$ac_tool_prefix"; then
4244     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}cc; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if ${ac_cv_prog_CC+:} false; then :
4249   $as_echo_n "(cached) " >&6
4250 else
4251   if test -n "$CC"; then
4252   ac_cv_prog_CC="$CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257   IFS=$as_save_IFS
4258   test -z "$as_dir" && as_dir=.
4259     for ac_exec_ext in '' $ac_executable_extensions; do
4260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261     ac_cv_prog_CC="${ac_tool_prefix}cc"
4262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263     break 2
4264   fi
4265 done
4266   done
4267 IFS=$as_save_IFS
4268
4269 fi
4270 fi
4271 CC=$ac_cv_prog_CC
4272 if test -n "$CC"; then
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4275 else
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4278 fi
4279
4280
4281   fi
4282 fi
4283 if test -z "$CC"; then
4284   # Extract the first word of "cc", so it can be a program name with args.
4285 set dummy cc; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if ${ac_cv_prog_CC+:} false; then :
4289   $as_echo_n "(cached) " >&6
4290 else
4291   if test -n "$CC"; then
4292   ac_cv_prog_CC="$CC" # Let the user override the test.
4293 else
4294   ac_prog_rejected=no
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300     for ac_exec_ext in '' $ac_executable_extensions; do
4301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4303        ac_prog_rejected=yes
4304        continue
4305      fi
4306     ac_cv_prog_CC="cc"
4307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308     break 2
4309   fi
4310 done
4311   done
4312 IFS=$as_save_IFS
4313
4314 if test $ac_prog_rejected = yes; then
4315   # We found a bogon in the path, so make sure we never use it.
4316   set dummy $ac_cv_prog_CC
4317   shift
4318   if test $# != 0; then
4319     # We chose a different compiler from the bogus one.
4320     # However, it has the same basename, so the bogon will be chosen
4321     # first if we set CC to just the basename; use the full file name.
4322     shift
4323     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4324   fi
4325 fi
4326 fi
4327 fi
4328 CC=$ac_cv_prog_CC
4329 if test -n "$CC"; then
4330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4331 $as_echo "$CC" >&6; }
4332 else
4333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4336
4337
4338 fi
4339 if test -z "$CC"; then
4340   if test -n "$ac_tool_prefix"; then
4341   for ac_prog in cl.exe
4342   do
4343     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_CC+:} false; then :
4348   $as_echo_n "(cached) " >&6
4349 else
4350   if test -n "$CC"; then
4351   ac_cv_prog_CC="$CC" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4355 do
4356   IFS=$as_save_IFS
4357   test -z "$as_dir" && as_dir=.
4358     for ac_exec_ext in '' $ac_executable_extensions; do
4359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362     break 2
4363   fi
4364 done
4365   done
4366 IFS=$as_save_IFS
4367
4368 fi
4369 fi
4370 CC=$ac_cv_prog_CC
4371 if test -n "$CC"; then
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4373 $as_echo "$CC" >&6; }
4374 else
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4377 fi
4378
4379
4380     test -n "$CC" && break
4381   done
4382 fi
4383 if test -z "$CC"; then
4384   ac_ct_CC=$CC
4385   for ac_prog in cl.exe
4386 do
4387   # Extract the first word of "$ac_prog", so it can be a program name with args.
4388 set dummy $ac_prog; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4392   $as_echo_n "(cached) " >&6
4393 else
4394   if test -n "$ac_ct_CC"; then
4395   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402     for ac_exec_ext in '' $ac_executable_extensions; do
4403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404     ac_cv_prog_ac_ct_CC="$ac_prog"
4405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409   done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4415 if test -n "$ac_ct_CC"; then
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4417 $as_echo "$ac_ct_CC" >&6; }
4418 else
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 fi
4422
4423
4424   test -n "$ac_ct_CC" && break
4425 done
4426
4427   if test "x$ac_ct_CC" = x; then
4428     CC=""
4429   else
4430     case $cross_compiling:$ac_tool_warned in
4431 yes:)
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4434 ac_tool_warned=yes ;;
4435 esac
4436     CC=$ac_ct_CC
4437   fi
4438 fi
4439
4440 fi
4441
4442
4443 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4445 as_fn_error $? "no acceptable C compiler found in \$PATH
4446 See \`config.log' for more details" "$LINENO" 5; }
4447
4448 # Provide some information about the compiler.
4449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4450 set X $ac_compile
4451 ac_compiler=$2
4452 for ac_option in --version -v -V -qversion; do
4453   { { ac_try="$ac_compiler $ac_option >&5"
4454 case "(($ac_try" in
4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456   *) ac_try_echo=$ac_try;;
4457 esac
4458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459 $as_echo "$ac_try_echo"; } >&5
4460   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4461   ac_status=$?
4462   if test -s conftest.err; then
4463     sed '10a\
4464 ... rest of stderr output deleted ...
4465          10q' conftest.err >conftest.er1
4466     cat conftest.er1 >&5
4467   fi
4468   rm -f conftest.er1 conftest.err
4469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4470   test $ac_status = 0; }
4471 done
4472
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4474 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4475 if ${ac_cv_c_compiler_gnu+:} false; then :
4476   $as_echo_n "(cached) " >&6
4477 else
4478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h.  */
4480
4481 int
4482 main ()
4483 {
4484 #ifndef __GNUC__
4485        choke me
4486 #endif
4487
4488   ;
4489   return 0;
4490 }
4491 _ACEOF
4492 if ac_fn_c_try_compile "$LINENO"; then :
4493   ac_compiler_gnu=yes
4494 else
4495   ac_compiler_gnu=no
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4499
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4502 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4503 if test $ac_compiler_gnu = yes; then
4504   GCC=yes
4505 else
4506   GCC=
4507 fi
4508 ac_test_CFLAGS=${CFLAGS+set}
4509 ac_save_CFLAGS=$CFLAGS
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4511 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4512 if ${ac_cv_prog_cc_g+:} false; then :
4513   $as_echo_n "(cached) " >&6
4514 else
4515   ac_save_c_werror_flag=$ac_c_werror_flag
4516    ac_c_werror_flag=yes
4517    ac_cv_prog_cc_g=no
4518    CFLAGS="-g"
4519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h.  */
4521
4522 int
4523 main ()
4524 {
4525
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531   ac_cv_prog_cc_g=yes
4532 else
4533   CFLAGS=""
4534       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536
4537 int
4538 main ()
4539 {
4540
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546
4547 else
4548   ac_c_werror_flag=$ac_save_c_werror_flag
4549          CFLAGS="-g"
4550          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h.  */
4552
4553 int
4554 main ()
4555 {
4556
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 if ac_fn_c_try_compile "$LINENO"; then :
4562   ac_cv_prog_cc_g=yes
4563 fi
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 fi
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 fi
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569    ac_c_werror_flag=$ac_save_c_werror_flag
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4572 $as_echo "$ac_cv_prog_cc_g" >&6; }
4573 if test "$ac_test_CFLAGS" = set; then
4574   CFLAGS=$ac_save_CFLAGS
4575 elif test $ac_cv_prog_cc_g = yes; then
4576   if test "$GCC" = yes; then
4577     CFLAGS="-g -O2"
4578   else
4579     CFLAGS="-g"
4580   fi
4581 else
4582   if test "$GCC" = yes; then
4583     CFLAGS="-O2"
4584   else
4585     CFLAGS=
4586   fi
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4589 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4590 if ${ac_cv_prog_cc_c89+:} false; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593   ac_cv_prog_cc_c89=no
4594 ac_save_CC=$CC
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h.  */
4597 #include <stdarg.h>
4598 #include <stdio.h>
4599 struct stat;
4600 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4601 struct buf { int x; };
4602 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4603 static char *e (p, i)
4604      char **p;
4605      int i;
4606 {
4607   return p[i];
4608 }
4609 static char *f (char * (*g) (char **, int), char **p, ...)
4610 {
4611   char *s;
4612   va_list v;
4613   va_start (v,p);
4614   s = g (p, va_arg (v,int));
4615   va_end (v);
4616   return s;
4617 }
4618
4619 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4620    function prototypes and stuff, but not '\xHH' hex character constants.
4621    These don't provoke an error unfortunately, instead are silently treated
4622    as 'x'.  The following induces an error, until -std is added to get
4623    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4624    array size at least.  It's necessary to write '\x00'==0 to get something
4625    that's true only with -std.  */
4626 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4627
4628 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4629    inside strings and character constants.  */
4630 #define FOO(x) 'x'
4631 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4632
4633 int test (int i, double x);
4634 struct s1 {int (*f) (int a);};
4635 struct s2 {int (*f) (double a);};
4636 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4637 int argc;
4638 char **argv;
4639 int
4640 main ()
4641 {
4642 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4643   ;
4644   return 0;
4645 }
4646 _ACEOF
4647 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4648         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4649 do
4650   CC="$ac_save_CC $ac_arg"
4651   if ac_fn_c_try_compile "$LINENO"; then :
4652   ac_cv_prog_cc_c89=$ac_arg
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext
4655   test "x$ac_cv_prog_cc_c89" != "xno" && break
4656 done
4657 rm -f conftest.$ac_ext
4658 CC=$ac_save_CC
4659
4660 fi
4661 # AC_CACHE_VAL
4662 case "x$ac_cv_prog_cc_c89" in
4663   x)
4664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4665 $as_echo "none needed" >&6; } ;;
4666   xno)
4667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4668 $as_echo "unsupported" >&6; } ;;
4669   *)
4670     CC="$CC $ac_cv_prog_cc_c89"
4671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4672 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4673 esac
4674 if test "x$ac_cv_prog_cc_c89" != xno; then :
4675
4676 fi
4677
4678 ac_ext=c
4679 ac_cpp='$CPP $CPPFLAGS'
4680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683
4684 ac_ext=c
4685 ac_cpp='$CPP $CPPFLAGS'
4686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4690 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4691 if ${am_cv_prog_cc_c_o+:} false; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h.  */
4696
4697 int
4698 main ()
4699 {
4700
4701   ;
4702   return 0;
4703 }
4704 _ACEOF
4705   # Make sure it works both with $CC and with simple cc.
4706   # Following AC_PROG_CC_C_O, we do the test twice because some
4707   # compilers refuse to overwrite an existing .o file with -o,
4708   # though they will create one.
4709   am_cv_prog_cc_c_o=yes
4710   for am_i in 1 2; do
4711     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4712    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4713    ac_status=$?
4714    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715    (exit $ac_status); } \
4716          && test -f conftest2.$ac_objext; then
4717       : OK
4718     else
4719       am_cv_prog_cc_c_o=no
4720       break
4721     fi
4722   done
4723   rm -f core conftest*
4724   unset am_i
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4727 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4728 if test "$am_cv_prog_cc_c_o" != yes; then
4729    # Losing compiler, so override with the script.
4730    # FIXME: It is wrong to rewrite CC.
4731    # But if we don't then we get into trouble of one sort or another.
4732    # A longer-term fix would be to have automake use am__CC in this case,
4733    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4734    CC="$am_aux_dir/compile $CC"
4735 fi
4736 ac_ext=c
4737 ac_cpp='$CPP $CPPFLAGS'
4738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741
4742
4743 depcc="$CC"   am_compiler_list=
4744
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4746 $as_echo_n "checking dependency style of $depcc... " >&6; }
4747 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4748   $as_echo_n "(cached) " >&6
4749 else
4750   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4751   # We make a subdir and do the tests there.  Otherwise we can end up
4752   # making bogus files that we don't know about and never remove.  For
4753   # instance it was reported that on HP-UX the gcc test will end up
4754   # making a dummy file named 'D' -- because '-MD' means "put the output
4755   # in D".
4756   rm -rf conftest.dir
4757   mkdir conftest.dir
4758   # Copy depcomp to subdir because otherwise we won't find it if we're
4759   # using a relative directory.
4760   cp "$am_depcomp" conftest.dir
4761   cd conftest.dir
4762   # We will build objects and dependencies in a subdirectory because
4763   # it helps to detect inapplicable dependency modes.  For instance
4764   # both Tru64's cc and ICC support -MD to output dependencies as a
4765   # side effect of compilation, but ICC will put the dependencies in
4766   # the current directory while Tru64 will put them in the object
4767   # directory.
4768   mkdir sub
4769
4770   am_cv_CC_dependencies_compiler_type=none
4771   if test "$am_compiler_list" = ""; then
4772      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4773   fi
4774   am__universal=false
4775   case " $depcc " in #(
4776      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4777      esac
4778
4779   for depmode in $am_compiler_list; do
4780     # Setup a source with many dependencies, because some compilers
4781     # like to wrap large dependency lists on column 80 (with \), and
4782     # we should not choose a depcomp mode which is confused by this.
4783     #
4784     # We need to recreate these files for each test, as the compiler may
4785     # overwrite some of them when testing with obscure command lines.
4786     # This happens at least with the AIX C compiler.
4787     : > sub/conftest.c
4788     for i in 1 2 3 4 5 6; do
4789       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4790       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4791       # Solaris 10 /bin/sh.
4792       echo '/* dummy */' > sub/conftst$i.h
4793     done
4794     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4795
4796     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4797     # mode.  It turns out that the SunPro C++ compiler does not properly
4798     # handle '-M -o', and we need to detect this.  Also, some Intel
4799     # versions had trouble with output in subdirs.
4800     am__obj=sub/conftest.${OBJEXT-o}
4801     am__minus_obj="-o $am__obj"
4802     case $depmode in
4803     gcc)
4804       # This depmode causes a compiler race in universal mode.
4805       test "$am__universal" = false || continue
4806       ;;
4807     nosideeffect)
4808       # After this tag, mechanisms are not by side-effect, so they'll
4809       # only be used when explicitly requested.
4810       if test "x$enable_dependency_tracking" = xyes; then
4811         continue
4812       else
4813         break
4814       fi
4815       ;;
4816     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4817       # This compiler won't grok '-c -o', but also, the minuso test has
4818       # not run yet.  These depmodes are late enough in the game, and
4819       # so weak that their functioning should not be impacted.
4820       am__obj=conftest.${OBJEXT-o}
4821       am__minus_obj=
4822       ;;
4823     none) break ;;
4824     esac
4825     if depmode=$depmode \
4826        source=sub/conftest.c object=$am__obj \
4827        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4828        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4829          >/dev/null 2>conftest.err &&
4830        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4831        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4832        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4833        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4834       # icc doesn't choke on unknown options, it will just issue warnings
4835       # or remarks (even with -Werror).  So we grep stderr for any message
4836       # that says an option was ignored or not supported.
4837       # When given -MP, icc 7.0 and 7.1 complain thusly:
4838       #   icc: Command line warning: ignoring option '-M'; no argument required
4839       # The diagnosis changed in icc 8.0:
4840       #   icc: Command line remark: option '-MP' not supported
4841       if (grep 'ignoring option' conftest.err ||
4842           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4843         am_cv_CC_dependencies_compiler_type=$depmode
4844         break
4845       fi
4846     fi
4847   done
4848
4849   cd ..
4850   rm -rf conftest.dir
4851 else
4852   am_cv_CC_dependencies_compiler_type=none
4853 fi
4854
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4857 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4858 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4859
4860  if
4861   test "x$enable_dependency_tracking" != xno \
4862   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4863   am__fastdepCC_TRUE=
4864   am__fastdepCC_FALSE='#'
4865 else
4866   am__fastdepCC_TRUE='#'
4867   am__fastdepCC_FALSE=
4868 fi
4869
4870
4871 case `pwd` in
4872   *\ * | *\     *)
4873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4874 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4875 esac
4876
4877
4878
4879 macro_version='2.4.6'
4880 macro_revision='2.4.6'
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894 ltmain=$ac_aux_dir/ltmain.sh
4895
4896 # Make sure we can run config.sub.
4897 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4898   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4899
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4901 $as_echo_n "checking build system type... " >&6; }
4902 if ${ac_cv_build+:} false; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   ac_build_alias=$build_alias
4906 test "x$ac_build_alias" = x &&
4907   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4908 test "x$ac_build_alias" = x &&
4909   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4910 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4911   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4912
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4915 $as_echo "$ac_cv_build" >&6; }
4916 case $ac_cv_build in
4917 *-*-*) ;;
4918 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4919 esac
4920 build=$ac_cv_build
4921 ac_save_IFS=$IFS; IFS='-'
4922 set x $ac_cv_build
4923 shift
4924 build_cpu=$1
4925 build_vendor=$2
4926 shift; shift
4927 # Remember, the first character of IFS is used to create $*,
4928 # except with old shells:
4929 build_os=$*
4930 IFS=$ac_save_IFS
4931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4932
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4935 $as_echo_n "checking host system type... " >&6; }
4936 if ${ac_cv_host+:} false; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   if test "x$host_alias" = x; then
4940   ac_cv_host=$ac_cv_build
4941 else
4942   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4943     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4944 fi
4945
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4948 $as_echo "$ac_cv_host" >&6; }
4949 case $ac_cv_host in
4950 *-*-*) ;;
4951 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4952 esac
4953 host=$ac_cv_host
4954 ac_save_IFS=$IFS; IFS='-'
4955 set x $ac_cv_host
4956 shift
4957 host_cpu=$1
4958 host_vendor=$2
4959 shift; shift
4960 # Remember, the first character of IFS is used to create $*,
4961 # except with old shells:
4962 host_os=$*
4963 IFS=$ac_save_IFS
4964 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4965
4966
4967 # Backslashify metacharacters that are still active within
4968 # double-quoted strings.
4969 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4970
4971 # Same as above, but do not quote variable references.
4972 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4973
4974 # Sed substitution to delay expansion of an escaped shell variable in a
4975 # double_quote_subst'ed string.
4976 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4977
4978 # Sed substitution to delay expansion of an escaped single quote.
4979 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4980
4981 # Sed substitution to avoid accidental globbing in evaled expressions
4982 no_glob_subst='s/\*/\\\*/g'
4983
4984 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4985 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4986 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4987
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4989 $as_echo_n "checking how to print strings... " >&6; }
4990 # Test print first, because it will be a builtin if present.
4991 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4992    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4993   ECHO='print -r --'
4994 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4995   ECHO='printf %s\n'
4996 else
4997   # Use this function as a fallback that always works.
4998   func_fallback_echo ()
4999   {
5000     eval 'cat <<_LTECHO_EOF
5001 $1
5002 _LTECHO_EOF'
5003   }
5004   ECHO='func_fallback_echo'
5005 fi
5006
5007 # func_echo_all arg...
5008 # Invoke $ECHO with all args, space-separated.
5009 func_echo_all ()
5010 {
5011     $ECHO ""
5012 }
5013
5014 case $ECHO in
5015   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5016 $as_echo "printf" >&6; } ;;
5017   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5018 $as_echo "print -r" >&6; } ;;
5019   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5020 $as_echo "cat" >&6; } ;;
5021 esac
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5037 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5038 if ${ac_cv_path_SED+:} false; then :
5039   $as_echo_n "(cached) " >&6
5040 else
5041             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5042      for ac_i in 1 2 3 4 5 6 7; do
5043        ac_script="$ac_script$as_nl$ac_script"
5044      done
5045      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5046      { ac_script=; unset ac_script;}
5047      if test -z "$SED"; then
5048   ac_path_SED_found=false
5049   # Loop through the user's path and test for each of PROGNAME-LIST
5050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053   IFS=$as_save_IFS
5054   test -z "$as_dir" && as_dir=.
5055     for ac_prog in sed gsed; do
5056     for ac_exec_ext in '' $ac_executable_extensions; do
5057       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5058       as_fn_executable_p "$ac_path_SED" || continue
5059 # Check for GNU ac_path_SED and select it if it is found.
5060   # Check for GNU $ac_path_SED
5061 case `"$ac_path_SED" --version 2>&1` in
5062 *GNU*)
5063   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5064 *)
5065   ac_count=0
5066   $as_echo_n 0123456789 >"conftest.in"
5067   while :
5068   do
5069     cat "conftest.in" "conftest.in" >"conftest.tmp"
5070     mv "conftest.tmp" "conftest.in"
5071     cp "conftest.in" "conftest.nl"
5072     $as_echo '' >> "conftest.nl"
5073     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075     as_fn_arith $ac_count + 1 && ac_count=$as_val
5076     if test $ac_count -gt ${ac_path_SED_max-0}; then
5077       # Best one so far, save it but keep looking for a better one
5078       ac_cv_path_SED="$ac_path_SED"
5079       ac_path_SED_max=$ac_count
5080     fi
5081     # 10*(2^10) chars as input seems more than enough
5082     test $ac_count -gt 10 && break
5083   done
5084   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5085 esac
5086
5087       $ac_path_SED_found && break 3
5088     done
5089   done
5090   done
5091 IFS=$as_save_IFS
5092   if test -z "$ac_cv_path_SED"; then
5093     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5094   fi
5095 else
5096   ac_cv_path_SED=$SED
5097 fi
5098
5099 fi
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5101 $as_echo "$ac_cv_path_SED" >&6; }
5102  SED="$ac_cv_path_SED"
5103   rm -f conftest.sed
5104
5105 test -z "$SED" && SED=sed
5106 Xsed="$SED -e 1s/^X//"
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5119 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5120 if ${ac_cv_path_GREP+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123   if test -z "$GREP"; then
5124   ac_path_GREP_found=false
5125   # Loop through the user's path and test for each of PROGNAME-LIST
5126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5128 do
5129   IFS=$as_save_IFS
5130   test -z "$as_dir" && as_dir=.
5131     for ac_prog in grep ggrep; do
5132     for ac_exec_ext in '' $ac_executable_extensions; do
5133       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5134       as_fn_executable_p "$ac_path_GREP" || continue
5135 # Check for GNU ac_path_GREP and select it if it is found.
5136   # Check for GNU $ac_path_GREP
5137 case `"$ac_path_GREP" --version 2>&1` in
5138 *GNU*)
5139   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5140 *)
5141   ac_count=0
5142   $as_echo_n 0123456789 >"conftest.in"
5143   while :
5144   do
5145     cat "conftest.in" "conftest.in" >"conftest.tmp"
5146     mv "conftest.tmp" "conftest.in"
5147     cp "conftest.in" "conftest.nl"
5148     $as_echo 'GREP' >> "conftest.nl"
5149     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5150     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5151     as_fn_arith $ac_count + 1 && ac_count=$as_val
5152     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5153       # Best one so far, save it but keep looking for a better one
5154       ac_cv_path_GREP="$ac_path_GREP"
5155       ac_path_GREP_max=$ac_count
5156     fi
5157     # 10*(2^10) chars as input seems more than enough
5158     test $ac_count -gt 10 && break
5159   done
5160   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5161 esac
5162
5163       $ac_path_GREP_found && break 3
5164     done
5165   done
5166   done
5167 IFS=$as_save_IFS
5168   if test -z "$ac_cv_path_GREP"; then
5169     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5170   fi
5171 else
5172   ac_cv_path_GREP=$GREP
5173 fi
5174
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5177 $as_echo "$ac_cv_path_GREP" >&6; }
5178  GREP="$ac_cv_path_GREP"
5179
5180
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5182 $as_echo_n "checking for egrep... " >&6; }
5183 if ${ac_cv_path_EGREP+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5187    then ac_cv_path_EGREP="$GREP -E"
5188    else
5189      if test -z "$EGREP"; then
5190   ac_path_EGREP_found=false
5191   # Loop through the user's path and test for each of PROGNAME-LIST
5192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197     for ac_prog in egrep; do
5198     for ac_exec_ext in '' $ac_executable_extensions; do
5199       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5200       as_fn_executable_p "$ac_path_EGREP" || continue
5201 # Check for GNU ac_path_EGREP and select it if it is found.
5202   # Check for GNU $ac_path_EGREP
5203 case `"$ac_path_EGREP" --version 2>&1` in
5204 *GNU*)
5205   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5206 *)
5207   ac_count=0
5208   $as_echo_n 0123456789 >"conftest.in"
5209   while :
5210   do
5211     cat "conftest.in" "conftest.in" >"conftest.tmp"
5212     mv "conftest.tmp" "conftest.in"
5213     cp "conftest.in" "conftest.nl"
5214     $as_echo 'EGREP' >> "conftest.nl"
5215     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5216     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5217     as_fn_arith $ac_count + 1 && ac_count=$as_val
5218     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5219       # Best one so far, save it but keep looking for a better one
5220       ac_cv_path_EGREP="$ac_path_EGREP"
5221       ac_path_EGREP_max=$ac_count
5222     fi
5223     # 10*(2^10) chars as input seems more than enough
5224     test $ac_count -gt 10 && break
5225   done
5226   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5227 esac
5228
5229       $ac_path_EGREP_found && break 3
5230     done
5231   done
5232   done
5233 IFS=$as_save_IFS
5234   if test -z "$ac_cv_path_EGREP"; then
5235     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5236   fi
5237 else
5238   ac_cv_path_EGREP=$EGREP
5239 fi
5240
5241    fi
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5244 $as_echo "$ac_cv_path_EGREP" >&6; }
5245  EGREP="$ac_cv_path_EGREP"
5246
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5249 $as_echo_n "checking for fgrep... " >&6; }
5250 if ${ac_cv_path_FGREP+:} false; then :
5251   $as_echo_n "(cached) " >&6
5252 else
5253   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5254    then ac_cv_path_FGREP="$GREP -F"
5255    else
5256      if test -z "$FGREP"; then
5257   ac_path_FGREP_found=false
5258   # Loop through the user's path and test for each of PROGNAME-LIST
5259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_prog in fgrep; do
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5267       as_fn_executable_p "$ac_path_FGREP" || continue
5268 # Check for GNU ac_path_FGREP and select it if it is found.
5269   # Check for GNU $ac_path_FGREP
5270 case `"$ac_path_FGREP" --version 2>&1` in
5271 *GNU*)
5272   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5273 *)
5274   ac_count=0
5275   $as_echo_n 0123456789 >"conftest.in"
5276   while :
5277   do
5278     cat "conftest.in" "conftest.in" >"conftest.tmp"
5279     mv "conftest.tmp" "conftest.in"
5280     cp "conftest.in" "conftest.nl"
5281     $as_echo 'FGREP' >> "conftest.nl"
5282     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284     as_fn_arith $ac_count + 1 && ac_count=$as_val
5285     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5286       # Best one so far, save it but keep looking for a better one
5287       ac_cv_path_FGREP="$ac_path_FGREP"
5288       ac_path_FGREP_max=$ac_count
5289     fi
5290     # 10*(2^10) chars as input seems more than enough
5291     test $ac_count -gt 10 && break
5292   done
5293   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5294 esac
5295
5296       $ac_path_FGREP_found && break 3
5297     done
5298   done
5299   done
5300 IFS=$as_save_IFS
5301   if test -z "$ac_cv_path_FGREP"; then
5302     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5303   fi
5304 else
5305   ac_cv_path_FGREP=$FGREP
5306 fi
5307
5308    fi
5309 fi
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5311 $as_echo "$ac_cv_path_FGREP" >&6; }
5312  FGREP="$ac_cv_path_FGREP"
5313
5314
5315 test -z "$GREP" && GREP=grep
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335 # Check whether --with-gnu-ld was given.
5336 if test "${with_gnu_ld+set}" = set; then :
5337   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5338 else
5339   with_gnu_ld=no
5340 fi
5341
5342 ac_prog=ld
5343 if test yes = "$GCC"; then
5344   # Check if gcc -print-prog-name=ld gives a path.
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5346 $as_echo_n "checking for ld used by $CC... " >&6; }
5347   case $host in
5348   *-*-mingw*)
5349     # gcc leaves a trailing carriage return, which upsets mingw
5350     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5351   *)
5352     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5353   esac
5354   case $ac_prog in
5355     # Accept absolute paths.
5356     [\\/]* | ?:[\\/]*)
5357       re_direlt='/[^/][^/]*/\.\./'
5358       # Canonicalize the pathname of ld
5359       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5360       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5361         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5362       done
5363       test -z "$LD" && LD=$ac_prog
5364       ;;
5365   "")
5366     # If it fails, then pretend we aren't using GCC.
5367     ac_prog=ld
5368     ;;
5369   *)
5370     # If it is relative, then search for the first ld in PATH.
5371     with_gnu_ld=unknown
5372     ;;
5373   esac
5374 elif test yes = "$with_gnu_ld"; then
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5376 $as_echo_n "checking for GNU ld... " >&6; }
5377 else
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5379 $as_echo_n "checking for non-GNU ld... " >&6; }
5380 fi
5381 if ${lt_cv_path_LD+:} false; then :
5382   $as_echo_n "(cached) " >&6
5383 else
5384   if test -z "$LD"; then
5385   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5386   for ac_dir in $PATH; do
5387     IFS=$lt_save_ifs
5388     test -z "$ac_dir" && ac_dir=.
5389     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5390       lt_cv_path_LD=$ac_dir/$ac_prog
5391       # Check to see if the program is GNU ld.  I'd rather use --version,
5392       # but apparently some variants of GNU ld only accept -v.
5393       # Break only if it was the GNU/non-GNU ld that we prefer.
5394       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5395       *GNU* | *'with BFD'*)
5396         test no != "$with_gnu_ld" && break
5397         ;;
5398       *)
5399         test yes != "$with_gnu_ld" && break
5400         ;;
5401       esac
5402     fi
5403   done
5404   IFS=$lt_save_ifs
5405 else
5406   lt_cv_path_LD=$LD # Let the user override the test with a path.
5407 fi
5408 fi
5409
5410 LD=$lt_cv_path_LD
5411 if test -n "$LD"; then
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5413 $as_echo "$LD" >&6; }
5414 else
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5420 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5421 if ${lt_cv_prog_gnu_ld+:} false; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5425 case `$LD -v 2>&1 </dev/null` in
5426 *GNU* | *'with BFD'*)
5427   lt_cv_prog_gnu_ld=yes
5428   ;;
5429 *)
5430   lt_cv_prog_gnu_ld=no
5431   ;;
5432 esac
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5435 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5436 with_gnu_ld=$lt_cv_prog_gnu_ld
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5447 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5448 if ${lt_cv_path_NM+:} false; then :
5449   $as_echo_n "(cached) " >&6
5450 else
5451   if test -n "$NM"; then
5452   # Let the user override the test.
5453   lt_cv_path_NM=$NM
5454 else
5455   lt_nm_to_check=${ac_tool_prefix}nm
5456   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5457     lt_nm_to_check="$lt_nm_to_check nm"
5458   fi
5459   for lt_tmp_nm in $lt_nm_to_check; do
5460     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5461     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5462       IFS=$lt_save_ifs
5463       test -z "$ac_dir" && ac_dir=.
5464       tmp_nm=$ac_dir/$lt_tmp_nm
5465       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5466         # Check to see if the nm accepts a BSD-compat flag.
5467         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5468         #   nm: unknown option "B" ignored
5469         # Tru64's nm complains that /dev/null is an invalid object file
5470         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5471         case $build_os in
5472         mingw*) lt_bad_file=conftest.nm/nofile ;;
5473         *) lt_bad_file=/dev/null ;;
5474         esac
5475         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5476         *$lt_bad_file* | *'Invalid file or object type'*)
5477           lt_cv_path_NM="$tmp_nm -B"
5478           break 2
5479           ;;
5480         *)
5481           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5482           */dev/null*)
5483             lt_cv_path_NM="$tmp_nm -p"
5484             break 2
5485             ;;
5486           *)
5487             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5488             continue # so that we can try to find one that supports BSD flags
5489             ;;
5490           esac
5491           ;;
5492         esac
5493       fi
5494     done
5495     IFS=$lt_save_ifs
5496   done
5497   : ${lt_cv_path_NM=no}
5498 fi
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5501 $as_echo "$lt_cv_path_NM" >&6; }
5502 if test no != "$lt_cv_path_NM"; then
5503   NM=$lt_cv_path_NM
5504 else
5505   # Didn't find any BSD compatible name lister, look for dumpbin.
5506   if test -n "$DUMPBIN"; then :
5507     # Let the user override the test.
5508   else
5509     if test -n "$ac_tool_prefix"; then
5510   for ac_prog in dumpbin "link -dump"
5511   do
5512     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_DUMPBIN+:} false; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   if test -n "$DUMPBIN"; then
5520   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527     for ac_exec_ext in '' $ac_executable_extensions; do
5528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531     break 2
5532   fi
5533 done
5534   done
5535 IFS=$as_save_IFS
5536
5537 fi
5538 fi
5539 DUMPBIN=$ac_cv_prog_DUMPBIN
5540 if test -n "$DUMPBIN"; then
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5542 $as_echo "$DUMPBIN" >&6; }
5543 else
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548
5549     test -n "$DUMPBIN" && break
5550   done
5551 fi
5552 if test -z "$DUMPBIN"; then
5553   ac_ct_DUMPBIN=$DUMPBIN
5554   for ac_prog in dumpbin "link -dump"
5555 do
5556   # Extract the first word of "$ac_prog", so it can be a program name with args.
5557 set dummy $ac_prog; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   if test -n "$ac_ct_DUMPBIN"; then
5564   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571     for ac_exec_ext in '' $ac_executable_extensions; do
5572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578   done
5579 IFS=$as_save_IFS
5580
5581 fi
5582 fi
5583 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5584 if test -n "$ac_ct_DUMPBIN"; then
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5586 $as_echo "$ac_ct_DUMPBIN" >&6; }
5587 else
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592
5593   test -n "$ac_ct_DUMPBIN" && break
5594 done
5595
5596   if test "x$ac_ct_DUMPBIN" = x; then
5597     DUMPBIN=":"
5598   else
5599     case $cross_compiling:$ac_tool_warned in
5600 yes:)
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603 ac_tool_warned=yes ;;
5604 esac
5605     DUMPBIN=$ac_ct_DUMPBIN
5606   fi
5607 fi
5608
5609     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5610     *COFF*)
5611       DUMPBIN="$DUMPBIN -symbols -headers"
5612       ;;
5613     *)
5614       DUMPBIN=:
5615       ;;
5616     esac
5617   fi
5618
5619   if test : != "$DUMPBIN"; then
5620     NM=$DUMPBIN
5621   fi
5622 fi
5623 test -z "$NM" && NM=nm
5624
5625
5626
5627
5628
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5631 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5632 if ${lt_cv_nm_interface+:} false; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   lt_cv_nm_interface="BSD nm"
5636   echo "int some_variable = 0;" > conftest.$ac_ext
5637   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5638   (eval "$ac_compile" 2>conftest.err)
5639   cat conftest.err >&5
5640   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5641   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5642   cat conftest.err >&5
5643   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5644   cat conftest.out >&5
5645   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5646     lt_cv_nm_interface="MS dumpbin"
5647   fi
5648   rm -f conftest*
5649 fi
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5651 $as_echo "$lt_cv_nm_interface" >&6; }
5652
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5654 $as_echo_n "checking whether ln -s works... " >&6; }
5655 LN_S=$as_ln_s
5656 if test "$LN_S" = "ln -s"; then
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658 $as_echo "yes" >&6; }
5659 else
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5661 $as_echo "no, using $LN_S" >&6; }
5662 fi
5663
5664 # find the maximum length of command line arguments
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5666 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5667 if ${lt_cv_sys_max_cmd_len+:} false; then :
5668   $as_echo_n "(cached) " >&6
5669 else
5670     i=0
5671   teststring=ABCD
5672
5673   case $build_os in
5674   msdosdjgpp*)
5675     # On DJGPP, this test can blow up pretty badly due to problems in libc
5676     # (any single argument exceeding 2000 bytes causes a buffer overrun
5677     # during glob expansion).  Even if it were fixed, the result of this
5678     # check would be larger than it should be.
5679     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5680     ;;
5681
5682   gnu*)
5683     # Under GNU Hurd, this test is not required because there is
5684     # no limit to the length of command line arguments.
5685     # Libtool will interpret -1 as no limit whatsoever
5686     lt_cv_sys_max_cmd_len=-1;
5687     ;;
5688
5689   cygwin* | mingw* | cegcc*)
5690     # On Win9x/ME, this test blows up -- it succeeds, but takes
5691     # about 5 minutes as the teststring grows exponentially.
5692     # Worse, since 9x/ME are not pre-emptively multitasking,
5693     # you end up with a "frozen" computer, even though with patience
5694     # the test eventually succeeds (with a max line length of 256k).
5695     # Instead, let's just punt: use the minimum linelength reported by
5696     # all of the supported platforms: 8192 (on NT/2K/XP).
5697     lt_cv_sys_max_cmd_len=8192;
5698     ;;
5699
5700   mint*)
5701     # On MiNT this can take a long time and run out of memory.
5702     lt_cv_sys_max_cmd_len=8192;
5703     ;;
5704
5705   amigaos*)
5706     # On AmigaOS with pdksh, this test takes hours, literally.
5707     # So we just punt and use a minimum line length of 8192.
5708     lt_cv_sys_max_cmd_len=8192;
5709     ;;
5710
5711   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5712     # This has been around since 386BSD, at least.  Likely further.
5713     if test -x /sbin/sysctl; then
5714       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5715     elif test -x /usr/sbin/sysctl; then
5716       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5717     else
5718       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5719     fi
5720     # And add a safety zone
5721     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5722     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5723     ;;
5724
5725   interix*)
5726     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5727     lt_cv_sys_max_cmd_len=196608
5728     ;;
5729
5730   os2*)
5731     # The test takes a long time on OS/2.
5732     lt_cv_sys_max_cmd_len=8192
5733     ;;
5734
5735   osf*)
5736     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5737     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5738     # nice to cause kernel panics so lets avoid the loop below.
5739     # First set a reasonable default.
5740     lt_cv_sys_max_cmd_len=16384
5741     #
5742     if test -x /sbin/sysconfig; then
5743       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5744         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5745       esac
5746     fi
5747     ;;
5748   sco3.2v5*)
5749     lt_cv_sys_max_cmd_len=102400
5750     ;;
5751   sysv5* | sco5v6* | sysv4.2uw2*)
5752     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5753     if test -n "$kargmax"; then
5754       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5755     else
5756       lt_cv_sys_max_cmd_len=32768
5757     fi
5758     ;;
5759   *)
5760     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5761     if test -n "$lt_cv_sys_max_cmd_len" && \
5762        test undefined != "$lt_cv_sys_max_cmd_len"; then
5763       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5764       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5765     else
5766       # Make teststring a little bigger before we do anything with it.
5767       # a 1K string should be a reasonable start.
5768       for i in 1 2 3 4 5 6 7 8; do
5769         teststring=$teststring$teststring
5770       done
5771       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5772       # If test is not a shell built-in, we'll probably end up computing a
5773       # maximum length that is only half of the actual maximum length, but
5774       # we can't tell.
5775       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5776                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5777               test 17 != "$i" # 1/2 MB should be enough
5778       do
5779         i=`expr $i + 1`
5780         teststring=$teststring$teststring
5781       done
5782       # Only check the string length outside the loop.
5783       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5784       teststring=
5785       # Add a significant safety factor because C++ compilers can tack on
5786       # massive amounts of additional arguments before passing them to the
5787       # linker.  It appears as though 1/2 is a usable value.
5788       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5789     fi
5790     ;;
5791   esac
5792
5793 fi
5794
5795 if test -n "$lt_cv_sys_max_cmd_len"; then
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5797 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5798 else
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5800 $as_echo "none" >&6; }
5801 fi
5802 max_cmd_len=$lt_cv_sys_max_cmd_len
5803
5804
5805
5806
5807
5808
5809 : ${CP="cp -f"}
5810 : ${MV="mv -f"}
5811 : ${RM="rm -f"}
5812
5813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5814   lt_unset=unset
5815 else
5816   lt_unset=false
5817 fi
5818
5819
5820
5821
5822
5823 # test EBCDIC or ASCII
5824 case `echo X|tr X '\101'` in
5825  A) # ASCII based system
5826     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5827   lt_SP2NL='tr \040 \012'
5828   lt_NL2SP='tr \015\012 \040\040'
5829   ;;
5830  *) # EBCDIC based system
5831   lt_SP2NL='tr \100 \n'
5832   lt_NL2SP='tr \r\n \100\100'
5833   ;;
5834 esac
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5845 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5846 if ${lt_cv_to_host_file_cmd+:} false; then :
5847   $as_echo_n "(cached) " >&6
5848 else
5849   case $host in
5850   *-*-mingw* )
5851     case $build in
5852       *-*-mingw* ) # actually msys
5853         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5854         ;;
5855       *-*-cygwin* )
5856         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5857         ;;
5858       * ) # otherwise, assume *nix
5859         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5860         ;;
5861     esac
5862     ;;
5863   *-*-cygwin* )
5864     case $build in
5865       *-*-mingw* ) # actually msys
5866         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5867         ;;
5868       *-*-cygwin* )
5869         lt_cv_to_host_file_cmd=func_convert_file_noop
5870         ;;
5871       * ) # otherwise, assume *nix
5872         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5873         ;;
5874     esac
5875     ;;
5876   * ) # unhandled hosts (and "normal" native builds)
5877     lt_cv_to_host_file_cmd=func_convert_file_noop
5878     ;;
5879 esac
5880
5881 fi
5882
5883 to_host_file_cmd=$lt_cv_to_host_file_cmd
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5885 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5886
5887
5888
5889
5890
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5892 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5893 if ${lt_cv_to_tool_file_cmd+:} false; then :
5894   $as_echo_n "(cached) " >&6
5895 else
5896   #assume ordinary cross tools, or native build.
5897 lt_cv_to_tool_file_cmd=func_convert_file_noop
5898 case $host in
5899   *-*-mingw* )
5900     case $build in
5901       *-*-mingw* ) # actually msys
5902         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5903         ;;
5904     esac
5905     ;;
5906 esac
5907
5908 fi
5909
5910 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5912 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5913
5914
5915
5916
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5919 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5920 if ${lt_cv_ld_reload_flag+:} false; then :
5921   $as_echo_n "(cached) " >&6
5922 else
5923   lt_cv_ld_reload_flag='-r'
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5926 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5927 reload_flag=$lt_cv_ld_reload_flag
5928 case $reload_flag in
5929 "" | " "*) ;;
5930 *) reload_flag=" $reload_flag" ;;
5931 esac
5932 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5933 case $host_os in
5934   cygwin* | mingw* | pw32* | cegcc*)
5935     if test yes != "$GCC"; then
5936       reload_cmds=false
5937     fi
5938     ;;
5939   darwin*)
5940     if test yes = "$GCC"; then
5941       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5942     else
5943       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5944     fi
5945     ;;
5946 esac
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956 if test -n "$ac_tool_prefix"; then
5957   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5958 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if ${ac_cv_prog_OBJDUMP+:} false; then :
5962   $as_echo_n "(cached) " >&6
5963 else
5964   if test -n "$OBJDUMP"; then
5965   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970   IFS=$as_save_IFS
5971   test -z "$as_dir" && as_dir=.
5972     for ac_exec_ext in '' $ac_executable_extensions; do
5973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976     break 2
5977   fi
5978 done
5979   done
5980 IFS=$as_save_IFS
5981
5982 fi
5983 fi
5984 OBJDUMP=$ac_cv_prog_OBJDUMP
5985 if test -n "$OBJDUMP"; then
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5987 $as_echo "$OBJDUMP" >&6; }
5988 else
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992
5993
5994 fi
5995 if test -z "$ac_cv_prog_OBJDUMP"; then
5996   ac_ct_OBJDUMP=$OBJDUMP
5997   # Extract the first word of "objdump", so it can be a program name with args.
5998 set dummy objdump; ac_word=$2
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   if test -n "$ac_ct_OBJDUMP"; then
6005   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010   IFS=$as_save_IFS
6011   test -z "$as_dir" && as_dir=.
6012     for ac_exec_ext in '' $ac_executable_extensions; do
6013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6014     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016     break 2
6017   fi
6018 done
6019   done
6020 IFS=$as_save_IFS
6021
6022 fi
6023 fi
6024 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6025 if test -n "$ac_ct_OBJDUMP"; then
6026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6027 $as_echo "$ac_ct_OBJDUMP" >&6; }
6028 else
6029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6031 fi
6032
6033   if test "x$ac_ct_OBJDUMP" = x; then
6034     OBJDUMP="false"
6035   else
6036     case $cross_compiling:$ac_tool_warned in
6037 yes:)
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6040 ac_tool_warned=yes ;;
6041 esac
6042     OBJDUMP=$ac_ct_OBJDUMP
6043   fi
6044 else
6045   OBJDUMP="$ac_cv_prog_OBJDUMP"
6046 fi
6047
6048 test -z "$OBJDUMP" && OBJDUMP=objdump
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6059 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6060 if ${lt_cv_deplibs_check_method+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   lt_cv_file_magic_cmd='$MAGIC_CMD'
6064 lt_cv_file_magic_test_file=
6065 lt_cv_deplibs_check_method='unknown'
6066 # Need to set the preceding variable on all platforms that support
6067 # interlibrary dependencies.
6068 # 'none' -- dependencies not supported.
6069 # 'unknown' -- same as none, but documents that we really don't know.
6070 # 'pass_all' -- all dependencies passed with no checks.
6071 # 'test_compile' -- check by making test program.
6072 # 'file_magic [[regex]]' -- check by looking for files in library path
6073 # that responds to the $file_magic_cmd with a given extended regex.
6074 # If you have 'file' or equivalent on your system and you're not sure
6075 # whether 'pass_all' will *always* work, you probably want this one.
6076
6077 case $host_os in
6078 aix[4-9]*)
6079   lt_cv_deplibs_check_method=pass_all
6080   ;;
6081
6082 beos*)
6083   lt_cv_deplibs_check_method=pass_all
6084   ;;
6085
6086 bsdi[45]*)
6087   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6088   lt_cv_file_magic_cmd='/usr/bin/file -L'
6089   lt_cv_file_magic_test_file=/shlib/libc.so
6090   ;;
6091
6092 cygwin*)
6093   # func_win32_libid is a shell function defined in ltmain.sh
6094   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6095   lt_cv_file_magic_cmd='func_win32_libid'
6096   ;;
6097
6098 mingw* | pw32*)
6099   # Base MSYS/MinGW do not provide the 'file' command needed by
6100   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6101   # unless we find 'file', for example because we are cross-compiling.
6102   if ( file / ) >/dev/null 2>&1; then
6103     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6104     lt_cv_file_magic_cmd='func_win32_libid'
6105   else
6106     # Keep this pattern in sync with the one in func_win32_libid.
6107     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6108     lt_cv_file_magic_cmd='$OBJDUMP -f'
6109   fi
6110   ;;
6111
6112 cegcc*)
6113   # use the weaker test based on 'objdump'. See mingw*.
6114   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6115   lt_cv_file_magic_cmd='$OBJDUMP -f'
6116   ;;
6117
6118 darwin* | rhapsody*)
6119   lt_cv_deplibs_check_method=pass_all
6120   ;;
6121
6122 freebsd* | dragonfly*)
6123   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6124     case $host_cpu in
6125     i*86 )
6126       # Not sure whether the presence of OpenBSD here was a mistake.
6127       # Let's accept both of them until this is cleared up.
6128       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6129       lt_cv_file_magic_cmd=/usr/bin/file
6130       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6131       ;;
6132     esac
6133   else
6134     lt_cv_deplibs_check_method=pass_all
6135   fi
6136   ;;
6137
6138 haiku*)
6139   lt_cv_deplibs_check_method=pass_all
6140   ;;
6141
6142 hpux10.20* | hpux11*)
6143   lt_cv_file_magic_cmd=/usr/bin/file
6144   case $host_cpu in
6145   ia64*)
6146     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6147     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6148     ;;
6149   hppa*64*)
6150     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6151     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6152     ;;
6153   *)
6154     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6155     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6156     ;;
6157   esac
6158   ;;
6159
6160 interix[3-9]*)
6161   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6162   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6163   ;;
6164
6165 irix5* | irix6* | nonstopux*)
6166   case $LD in
6167   *-32|*"-32 ") libmagic=32-bit;;
6168   *-n32|*"-n32 ") libmagic=N32;;
6169   *-64|*"-64 ") libmagic=64-bit;;
6170   *) libmagic=never-match;;
6171   esac
6172   lt_cv_deplibs_check_method=pass_all
6173   ;;
6174
6175 # This must be glibc/ELF.
6176 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6177   lt_cv_deplibs_check_method=pass_all
6178   ;;
6179
6180 netbsd*)
6181   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6182     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6183   else
6184     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6185   fi
6186   ;;
6187
6188 newos6*)
6189   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6190   lt_cv_file_magic_cmd=/usr/bin/file
6191   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6192   ;;
6193
6194 *nto* | *qnx*)
6195   lt_cv_deplibs_check_method=pass_all
6196   ;;
6197
6198 openbsd* | bitrig*)
6199   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6200     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6201   else
6202     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6203   fi
6204   ;;
6205
6206 osf3* | osf4* | osf5*)
6207   lt_cv_deplibs_check_method=pass_all
6208   ;;
6209
6210 rdos*)
6211   lt_cv_deplibs_check_method=pass_all
6212   ;;
6213
6214 solaris*)
6215   lt_cv_deplibs_check_method=pass_all
6216   ;;
6217
6218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6219   lt_cv_deplibs_check_method=pass_all
6220   ;;
6221
6222 sysv4 | sysv4.3*)
6223   case $host_vendor in
6224   motorola)
6225     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]'
6226     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6227     ;;
6228   ncr)
6229     lt_cv_deplibs_check_method=pass_all
6230     ;;
6231   sequent)
6232     lt_cv_file_magic_cmd='/bin/file'
6233     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6234     ;;
6235   sni)
6236     lt_cv_file_magic_cmd='/bin/file'
6237     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6238     lt_cv_file_magic_test_file=/lib/libc.so
6239     ;;
6240   siemens)
6241     lt_cv_deplibs_check_method=pass_all
6242     ;;
6243   pc)
6244     lt_cv_deplibs_check_method=pass_all
6245     ;;
6246   esac
6247   ;;
6248
6249 tpf*)
6250   lt_cv_deplibs_check_method=pass_all
6251   ;;
6252 os2*)
6253   lt_cv_deplibs_check_method=pass_all
6254   ;;
6255 esac
6256
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6259 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6260
6261 file_magic_glob=
6262 want_nocaseglob=no
6263 if test "$build" = "$host"; then
6264   case $host_os in
6265   mingw* | pw32*)
6266     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6267       want_nocaseglob=yes
6268     else
6269       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6270     fi
6271     ;;
6272   esac
6273 fi
6274
6275 file_magic_cmd=$lt_cv_file_magic_cmd
6276 deplibs_check_method=$lt_cv_deplibs_check_method
6277 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 if test -n "$ac_tool_prefix"; then
6301   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_DLLTOOL+:} false; then :
6306   $as_echo_n "(cached) " >&6
6307 else
6308   if test -n "$DLLTOOL"; then
6309   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316     for ac_exec_ext in '' $ac_executable_extensions; do
6317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323   done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 DLLTOOL=$ac_cv_prog_DLLTOOL
6329 if test -n "$DLLTOOL"; then
6330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6331 $as_echo "$DLLTOOL" >&6; }
6332 else
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337
6338 fi
6339 if test -z "$ac_cv_prog_DLLTOOL"; then
6340   ac_ct_DLLTOOL=$DLLTOOL
6341   # Extract the first word of "dlltool", so it can be a program name with args.
6342 set dummy dlltool; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6346   $as_echo_n "(cached) " >&6
6347 else
6348   if test -n "$ac_ct_DLLTOOL"; then
6349   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356     for ac_exec_ext in '' $ac_executable_extensions; do
6357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363   done
6364 IFS=$as_save_IFS
6365
6366 fi
6367 fi
6368 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6369 if test -n "$ac_ct_DLLTOOL"; then
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6371 $as_echo "$ac_ct_DLLTOOL" >&6; }
6372 else
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376
6377   if test "x$ac_ct_DLLTOOL" = x; then
6378     DLLTOOL="false"
6379   else
6380     case $cross_compiling:$ac_tool_warned in
6381 yes:)
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384 ac_tool_warned=yes ;;
6385 esac
6386     DLLTOOL=$ac_ct_DLLTOOL
6387   fi
6388 else
6389   DLLTOOL="$ac_cv_prog_DLLTOOL"
6390 fi
6391
6392 test -z "$DLLTOOL" && DLLTOOL=dlltool
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6404 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6405 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6406   $as_echo_n "(cached) " >&6
6407 else
6408   lt_cv_sharedlib_from_linklib_cmd='unknown'
6409
6410 case $host_os in
6411 cygwin* | mingw* | pw32* | cegcc*)
6412   # two different shell functions defined in ltmain.sh;
6413   # decide which one to use based on capabilities of $DLLTOOL
6414   case `$DLLTOOL --help 2>&1` in
6415   *--identify-strict*)
6416     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6417     ;;
6418   *)
6419     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6420     ;;
6421   esac
6422   ;;
6423 *)
6424   # fallback: assume linklib IS sharedlib
6425   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6426   ;;
6427 esac
6428
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6431 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6432 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6433 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6434
6435
6436
6437
6438
6439
6440
6441 if test -n "$ac_tool_prefix"; then
6442   for ac_prog in ar
6443   do
6444     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6445 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if ${ac_cv_prog_AR+:} false; then :
6449   $as_echo_n "(cached) " >&6
6450 else
6451   if test -n "$AR"; then
6452   ac_cv_prog_AR="$AR" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457   IFS=$as_save_IFS
6458   test -z "$as_dir" && as_dir=.
6459     for ac_exec_ext in '' $ac_executable_extensions; do
6460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463     break 2
6464   fi
6465 done
6466   done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 AR=$ac_cv_prog_AR
6472 if test -n "$AR"; then
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6474 $as_echo "$AR" >&6; }
6475 else
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480
6481     test -n "$AR" && break
6482   done
6483 fi
6484 if test -z "$AR"; then
6485   ac_ct_AR=$AR
6486   for ac_prog in ar
6487 do
6488   # Extract the first word of "$ac_prog", so it can be a program name with args.
6489 set dummy $ac_prog; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   if test -n "$ac_ct_AR"; then
6496   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503     for ac_exec_ext in '' $ac_executable_extensions; do
6504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505     ac_cv_prog_ac_ct_AR="$ac_prog"
6506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510   done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6516 if test -n "$ac_ct_AR"; then
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6518 $as_echo "$ac_ct_AR" >&6; }
6519 else
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524
6525   test -n "$ac_ct_AR" && break
6526 done
6527
6528   if test "x$ac_ct_AR" = x; then
6529     AR="false"
6530   else
6531     case $cross_compiling:$ac_tool_warned in
6532 yes:)
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6535 ac_tool_warned=yes ;;
6536 esac
6537     AR=$ac_ct_AR
6538   fi
6539 fi
6540
6541 : ${AR=ar}
6542 : ${AR_FLAGS=cru}
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6555 $as_echo_n "checking for archiver @FILE support... " >&6; }
6556 if ${lt_cv_ar_at_file+:} false; then :
6557   $as_echo_n "(cached) " >&6
6558 else
6559   lt_cv_ar_at_file=no
6560    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h.  */
6562
6563 int
6564 main ()
6565 {
6566
6567   ;
6568   return 0;
6569 }
6570 _ACEOF
6571 if ac_fn_c_try_compile "$LINENO"; then :
6572   echo conftest.$ac_objext > conftest.lst
6573       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6574       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6575   (eval $lt_ar_try) 2>&5
6576   ac_status=$?
6577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6578   test $ac_status = 0; }
6579       if test 0 -eq "$ac_status"; then
6580         # Ensure the archiver fails upon bogus file names.
6581         rm -f conftest.$ac_objext libconftest.a
6582         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6583   (eval $lt_ar_try) 2>&5
6584   ac_status=$?
6585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586   test $ac_status = 0; }
6587         if test 0 -ne "$ac_status"; then
6588           lt_cv_ar_at_file=@
6589         fi
6590       fi
6591       rm -f conftest.* libconftest.a
6592
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595
6596 fi
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6598 $as_echo "$lt_cv_ar_at_file" >&6; }
6599
6600 if test no = "$lt_cv_ar_at_file"; then
6601   archiver_list_spec=
6602 else
6603   archiver_list_spec=$lt_cv_ar_at_file
6604 fi
6605
6606
6607
6608
6609
6610
6611
6612 if test -n "$ac_tool_prefix"; then
6613   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6614 set dummy ${ac_tool_prefix}strip; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_STRIP+:} false; then :
6618   $as_echo_n "(cached) " >&6
6619 else
6620   if test -n "$STRIP"; then
6621   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626   IFS=$as_save_IFS
6627   test -z "$as_dir" && as_dir=.
6628     for ac_exec_ext in '' $ac_executable_extensions; do
6629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632     break 2
6633   fi
6634 done
6635   done
6636 IFS=$as_save_IFS
6637
6638 fi
6639 fi
6640 STRIP=$ac_cv_prog_STRIP
6641 if test -n "$STRIP"; then
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6643 $as_echo "$STRIP" >&6; }
6644 else
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6647 fi
6648
6649
6650 fi
6651 if test -z "$ac_cv_prog_STRIP"; then
6652   ac_ct_STRIP=$STRIP
6653   # Extract the first word of "strip", so it can be a program name with args.
6654 set dummy strip; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6658   $as_echo_n "(cached) " >&6
6659 else
6660   if test -n "$ac_ct_STRIP"; then
6661   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668     for ac_exec_ext in '' $ac_executable_extensions; do
6669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670     ac_cv_prog_ac_ct_STRIP="strip"
6671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672     break 2
6673   fi
6674 done
6675   done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6681 if test -n "$ac_ct_STRIP"; then
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6683 $as_echo "$ac_ct_STRIP" >&6; }
6684 else
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689   if test "x$ac_ct_STRIP" = x; then
6690     STRIP=":"
6691   else
6692     case $cross_compiling:$ac_tool_warned in
6693 yes:)
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696 ac_tool_warned=yes ;;
6697 esac
6698     STRIP=$ac_ct_STRIP
6699   fi
6700 else
6701   STRIP="$ac_cv_prog_STRIP"
6702 fi
6703
6704 test -z "$STRIP" && STRIP=:
6705
6706
6707
6708
6709
6710
6711 if test -n "$ac_tool_prefix"; then
6712   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_RANLIB+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   if test -n "$RANLIB"; then
6720   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727     for ac_exec_ext in '' $ac_executable_extensions; do
6728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731     break 2
6732   fi
6733 done
6734   done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 RANLIB=$ac_cv_prog_RANLIB
6740 if test -n "$RANLIB"; then
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6742 $as_echo "$RANLIB" >&6; }
6743 else
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749 fi
6750 if test -z "$ac_cv_prog_RANLIB"; then
6751   ac_ct_RANLIB=$RANLIB
6752   # Extract the first word of "ranlib", so it can be a program name with args.
6753 set dummy ranlib; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   if test -n "$ac_ct_RANLIB"; then
6760   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767     for ac_exec_ext in '' $ac_executable_extensions; do
6768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769     ac_cv_prog_ac_ct_RANLIB="ranlib"
6770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774   done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6780 if test -n "$ac_ct_RANLIB"; then
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6782 $as_echo "$ac_ct_RANLIB" >&6; }
6783 else
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788   if test "x$ac_ct_RANLIB" = x; then
6789     RANLIB=":"
6790   else
6791     case $cross_compiling:$ac_tool_warned in
6792 yes:)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797     RANLIB=$ac_ct_RANLIB
6798   fi
6799 else
6800   RANLIB="$ac_cv_prog_RANLIB"
6801 fi
6802
6803 test -z "$RANLIB" && RANLIB=:
6804
6805
6806
6807
6808
6809
6810 # Determine commands to create old-style static archives.
6811 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6812 old_postinstall_cmds='chmod 644 $oldlib'
6813 old_postuninstall_cmds=
6814
6815 if test -n "$RANLIB"; then
6816   case $host_os in
6817   bitrig* | openbsd*)
6818     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6819     ;;
6820   *)
6821     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6822     ;;
6823   esac
6824   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6825 fi
6826
6827 case $host_os in
6828   darwin*)
6829     lock_old_archive_extraction=yes ;;
6830   *)
6831     lock_old_archive_extraction=no ;;
6832 esac
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872 # If no C compiler was specified, use CC.
6873 LTCC=${LTCC-"$CC"}
6874
6875 # If no C compiler flags were specified, use CFLAGS.
6876 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6877
6878 # Allow CC to be a program name with arguments.
6879 compiler=$CC
6880
6881
6882 # Check for command to grab the raw symbol name followed by C symbol from nm.
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6884 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6885 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6886   $as_echo_n "(cached) " >&6
6887 else
6888
6889 # These are sane defaults that work on at least a few old systems.
6890 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6891
6892 # Character class describing NM global symbol codes.
6893 symcode='[BCDEGRST]'
6894
6895 # Regexp to match symbols that can be accessed directly from C.
6896 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897
6898 # Define system-specific variables.
6899 case $host_os in
6900 aix*)
6901   symcode='[BCDT]'
6902   ;;
6903 cygwin* | mingw* | pw32* | cegcc*)
6904   symcode='[ABCDGISTW]'
6905   ;;
6906 hpux*)
6907   if test ia64 = "$host_cpu"; then
6908     symcode='[ABCDEGRST]'
6909   fi
6910   ;;
6911 irix* | nonstopux*)
6912   symcode='[BCDEGRST]'
6913   ;;
6914 osf*)
6915   symcode='[BCDEGQRST]'
6916   ;;
6917 solaris*)
6918   symcode='[BDRT]'
6919   ;;
6920 sco3.2v5*)
6921   symcode='[DT]'
6922   ;;
6923 sysv4.2uw2*)
6924   symcode='[DT]'
6925   ;;
6926 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6927   symcode='[ABDT]'
6928   ;;
6929 sysv4)
6930   symcode='[DFNSTU]'
6931   ;;
6932 esac
6933
6934 # If we're using GNU nm, then use its standard symbol codes.
6935 case `$NM -V 2>&1` in
6936 *GNU* | *'with BFD'*)
6937   symcode='[ABCDGIRSTW]' ;;
6938 esac
6939
6940 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6941   # Gets list of data symbols to import.
6942   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6943   # Adjust the below global symbol transforms to fixup imported variables.
6944   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6945   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6946   lt_c_name_lib_hook="\
6947   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6948   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6949 else
6950   # Disable hooks by default.
6951   lt_cv_sys_global_symbol_to_import=
6952   lt_cdecl_hook=
6953   lt_c_name_hook=
6954   lt_c_name_lib_hook=
6955 fi
6956
6957 # Transform an extracted symbol line into a proper C declaration.
6958 # Some systems (esp. on ia64) link data and code symbols differently,
6959 # so use this general approach.
6960 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6961 $lt_cdecl_hook\
6962 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6963 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6964
6965 # Transform an extracted symbol line into symbol name and symbol address
6966 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6967 $lt_c_name_hook\
6968 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6969 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6970
6971 # Transform an extracted symbol line into symbol name with lib prefix and
6972 # symbol address.
6973 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6974 $lt_c_name_lib_hook\
6975 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6976 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6977 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6978
6979 # Handle CRLF in mingw tool chain
6980 opt_cr=
6981 case $build_os in
6982 mingw*)
6983   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6984   ;;
6985 esac
6986
6987 # Try without a prefix underscore, then with it.
6988 for ac_symprfx in "" "_"; do
6989
6990   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6991   symxfrm="\\1 $ac_symprfx\\2 \\2"
6992
6993   # Write the raw and C identifiers.
6994   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6995     # Fake it for dumpbin and say T for any non-static function,
6996     # D for any global variable and I for any imported variable.
6997     # Also find C++ and __fastcall symbols from MSVC++,
6998     # which start with @ or ?.
6999     lt_cv_sys_global_symbol_pipe="$AWK '"\
7000 "     {last_section=section; section=\$ 3};"\
7001 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7002 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7003 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7004 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7005 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7006 "     \$ 0!~/External *\|/{next};"\
7007 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7008 "     {if(hide[section]) next};"\
7009 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7010 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7011 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7012 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7013 "     ' prfx=^$ac_symprfx"
7014   else
7015     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7016   fi
7017   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7018
7019   # Check to see that the pipe works correctly.
7020   pipe_works=no
7021
7022   rm -f conftest*
7023   cat > conftest.$ac_ext <<_LT_EOF
7024 #ifdef __cplusplus
7025 extern "C" {
7026 #endif
7027 char nm_test_var;
7028 void nm_test_func(void);
7029 void nm_test_func(void){}
7030 #ifdef __cplusplus
7031 }
7032 #endif
7033 int main(){nm_test_var='a';nm_test_func();return(0);}
7034 _LT_EOF
7035
7036   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7037   (eval $ac_compile) 2>&5
7038   ac_status=$?
7039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040   test $ac_status = 0; }; then
7041     # Now try to grab the symbols.
7042     nlist=conftest.nm
7043     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7044   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7045   ac_status=$?
7046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7047   test $ac_status = 0; } && test -s "$nlist"; then
7048       # Try sorting and uniquifying the output.
7049       if sort "$nlist" | uniq > "$nlist"T; then
7050         mv -f "$nlist"T "$nlist"
7051       else
7052         rm -f "$nlist"T
7053       fi
7054
7055       # Make sure that we snagged all the symbols we need.
7056       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7057         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7058           cat <<_LT_EOF > conftest.$ac_ext
7059 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7060 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7061 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7062    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7063 # define LT_DLSYM_CONST
7064 #elif defined __osf__
7065 /* This system does not cope well with relocations in const data.  */
7066 # define LT_DLSYM_CONST
7067 #else
7068 # define LT_DLSYM_CONST const
7069 #endif
7070
7071 #ifdef __cplusplus
7072 extern "C" {
7073 #endif
7074
7075 _LT_EOF
7076           # Now generate the symbol file.
7077           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7078
7079           cat <<_LT_EOF >> conftest.$ac_ext
7080
7081 /* The mapping between symbol names and symbols.  */
7082 LT_DLSYM_CONST struct {
7083   const char *name;
7084   void       *address;
7085 }
7086 lt__PROGRAM__LTX_preloaded_symbols[] =
7087 {
7088   { "@PROGRAM@", (void *) 0 },
7089 _LT_EOF
7090           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7091           cat <<\_LT_EOF >> conftest.$ac_ext
7092   {0, (void *) 0}
7093 };
7094
7095 /* This works around a problem in FreeBSD linker */
7096 #ifdef FREEBSD_WORKAROUND
7097 static const void *lt_preloaded_setup() {
7098   return lt__PROGRAM__LTX_preloaded_symbols;
7099 }
7100 #endif
7101
7102 #ifdef __cplusplus
7103 }
7104 #endif
7105 _LT_EOF
7106           # Now try linking the two files.
7107           mv conftest.$ac_objext conftstm.$ac_objext
7108           lt_globsym_save_LIBS=$LIBS
7109           lt_globsym_save_CFLAGS=$CFLAGS
7110           LIBS=conftstm.$ac_objext
7111           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7112           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7113   (eval $ac_link) 2>&5
7114   ac_status=$?
7115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7116   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7117             pipe_works=yes
7118           fi
7119           LIBS=$lt_globsym_save_LIBS
7120           CFLAGS=$lt_globsym_save_CFLAGS
7121         else
7122           echo "cannot find nm_test_func in $nlist" >&5
7123         fi
7124       else
7125         echo "cannot find nm_test_var in $nlist" >&5
7126       fi
7127     else
7128       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7129     fi
7130   else
7131     echo "$progname: failed program was:" >&5
7132     cat conftest.$ac_ext >&5
7133   fi
7134   rm -rf conftest* conftst*
7135
7136   # Do not use the global_symbol_pipe unless it works.
7137   if test yes = "$pipe_works"; then
7138     break
7139   else
7140     lt_cv_sys_global_symbol_pipe=
7141   fi
7142 done
7143
7144 fi
7145
7146 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7147   lt_cv_sys_global_symbol_to_cdecl=
7148 fi
7149 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7151 $as_echo "failed" >&6; }
7152 else
7153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7154 $as_echo "ok" >&6; }
7155 fi
7156
7157 # Response file support.
7158 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7159   nm_file_list_spec='@'
7160 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7161   nm_file_list_spec='@'
7162 fi
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7201 $as_echo_n "checking for sysroot... " >&6; }
7202
7203 # Check whether --with-sysroot was given.
7204 if test "${with_sysroot+set}" = set; then :
7205   withval=$with_sysroot;
7206 else
7207   with_sysroot=no
7208 fi
7209
7210
7211 lt_sysroot=
7212 case $with_sysroot in #(
7213  yes)
7214    if test yes = "$GCC"; then
7215      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7216    fi
7217    ;; #(
7218  /*)
7219    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7220    ;; #(
7221  no|'')
7222    ;; #(
7223  *)
7224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7225 $as_echo "$with_sysroot" >&6; }
7226    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7227    ;;
7228 esac
7229
7230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7231 $as_echo "${lt_sysroot:-no}" >&6; }
7232
7233
7234
7235
7236
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7238 $as_echo_n "checking for a working dd... " >&6; }
7239 if ${ac_cv_path_lt_DD+:} false; then :
7240   $as_echo_n "(cached) " >&6
7241 else
7242   printf 0123456789abcdef0123456789abcdef >conftest.i
7243 cat conftest.i conftest.i >conftest2.i
7244 : ${lt_DD:=$DD}
7245 if test -z "$lt_DD"; then
7246   ac_path_lt_DD_found=false
7247   # Loop through the user's path and test for each of PROGNAME-LIST
7248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251   IFS=$as_save_IFS
7252   test -z "$as_dir" && as_dir=.
7253     for ac_prog in dd; do
7254     for ac_exec_ext in '' $ac_executable_extensions; do
7255       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7256       as_fn_executable_p "$ac_path_lt_DD" || continue
7257 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7258   cmp -s conftest.i conftest.out \
7259   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7260 fi
7261       $ac_path_lt_DD_found && break 3
7262     done
7263   done
7264   done
7265 IFS=$as_save_IFS
7266   if test -z "$ac_cv_path_lt_DD"; then
7267     :
7268   fi
7269 else
7270   ac_cv_path_lt_DD=$lt_DD
7271 fi
7272
7273 rm -f conftest.i conftest2.i conftest.out
7274 fi
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7276 $as_echo "$ac_cv_path_lt_DD" >&6; }
7277
7278
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7280 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7281 if ${lt_cv_truncate_bin+:} false; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   printf 0123456789abcdef0123456789abcdef >conftest.i
7285 cat conftest.i conftest.i >conftest2.i
7286 lt_cv_truncate_bin=
7287 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7288   cmp -s conftest.i conftest.out \
7289   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7290 fi
7291 rm -f conftest.i conftest2.i conftest.out
7292 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7293 fi
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7295 $as_echo "$lt_cv_truncate_bin" >&6; }
7296
7297
7298
7299
7300
7301
7302
7303 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7304 func_cc_basename ()
7305 {
7306     for cc_temp in $*""; do
7307       case $cc_temp in
7308         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7309         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7310         \-*) ;;
7311         *) break;;
7312       esac
7313     done
7314     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7315 }
7316
7317 # Check whether --enable-libtool-lock was given.
7318 if test "${enable_libtool_lock+set}" = set; then :
7319   enableval=$enable_libtool_lock;
7320 fi
7321
7322 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7323
7324 # Some flags need to be propagated to the compiler or linker for good
7325 # libtool support.
7326 case $host in
7327 ia64-*-hpux*)
7328   # Find out what ABI is being produced by ac_compile, and set mode
7329   # options accordingly.
7330   echo 'int i;' > conftest.$ac_ext
7331   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7332   (eval $ac_compile) 2>&5
7333   ac_status=$?
7334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7335   test $ac_status = 0; }; then
7336     case `/usr/bin/file conftest.$ac_objext` in
7337       *ELF-32*)
7338         HPUX_IA64_MODE=32
7339         ;;
7340       *ELF-64*)
7341         HPUX_IA64_MODE=64
7342         ;;
7343     esac
7344   fi
7345   rm -rf conftest*
7346   ;;
7347 *-*-irix6*)
7348   # Find out what ABI is being produced by ac_compile, and set linker
7349   # options accordingly.
7350   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7351   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352   (eval $ac_compile) 2>&5
7353   ac_status=$?
7354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355   test $ac_status = 0; }; then
7356     if test yes = "$lt_cv_prog_gnu_ld"; then
7357       case `/usr/bin/file conftest.$ac_objext` in
7358         *32-bit*)
7359           LD="${LD-ld} -melf32bsmip"
7360           ;;
7361         *N32*)
7362           LD="${LD-ld} -melf32bmipn32"
7363           ;;
7364         *64-bit*)
7365           LD="${LD-ld} -melf64bmip"
7366         ;;
7367       esac
7368     else
7369       case `/usr/bin/file conftest.$ac_objext` in
7370         *32-bit*)
7371           LD="${LD-ld} -32"
7372           ;;
7373         *N32*)
7374           LD="${LD-ld} -n32"
7375           ;;
7376         *64-bit*)
7377           LD="${LD-ld} -64"
7378           ;;
7379       esac
7380     fi
7381   fi
7382   rm -rf conftest*
7383   ;;
7384
7385 mips64*-*linux*)
7386   # Find out what ABI is being produced by ac_compile, and set linker
7387   # options accordingly.
7388   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7389   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390   (eval $ac_compile) 2>&5
7391   ac_status=$?
7392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393   test $ac_status = 0; }; then
7394     emul=elf
7395     case `/usr/bin/file conftest.$ac_objext` in
7396       *32-bit*)
7397         emul="${emul}32"
7398         ;;
7399       *64-bit*)
7400         emul="${emul}64"
7401         ;;
7402     esac
7403     case `/usr/bin/file conftest.$ac_objext` in
7404       *MSB*)
7405         emul="${emul}btsmip"
7406         ;;
7407       *LSB*)
7408         emul="${emul}ltsmip"
7409         ;;
7410     esac
7411     case `/usr/bin/file conftest.$ac_objext` in
7412       *N32*)
7413         emul="${emul}n32"
7414         ;;
7415     esac
7416     LD="${LD-ld} -m $emul"
7417   fi
7418   rm -rf conftest*
7419   ;;
7420
7421 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7422 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7423   # Find out what ABI is being produced by ac_compile, and set linker
7424   # options accordingly.  Note that the listed cases only cover the
7425   # situations where additional linker options are needed (such as when
7426   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7427   # vice versa); the common cases where no linker options are needed do
7428   # not appear in the list.
7429   echo 'int i;' > conftest.$ac_ext
7430   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7431   (eval $ac_compile) 2>&5
7432   ac_status=$?
7433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7434   test $ac_status = 0; }; then
7435     case `/usr/bin/file conftest.o` in
7436       *32-bit*)
7437         case $host in
7438           x86_64-*kfreebsd*-gnu)
7439             LD="${LD-ld} -m elf_i386_fbsd"
7440             ;;
7441           x86_64-*linux*)
7442             case `/usr/bin/file conftest.o` in
7443               *x86-64*)
7444                 LD="${LD-ld} -m elf32_x86_64"
7445                 ;;
7446               *)
7447                 LD="${LD-ld} -m elf_i386"
7448                 ;;
7449             esac
7450             ;;
7451           powerpc64le-*linux*)
7452             LD="${LD-ld} -m elf32lppclinux"
7453             ;;
7454           powerpc64-*linux*)
7455             LD="${LD-ld} -m elf32ppclinux"
7456             ;;
7457           s390x-*linux*)
7458             LD="${LD-ld} -m elf_s390"
7459             ;;
7460           sparc64-*linux*)
7461             LD="${LD-ld} -m elf32_sparc"
7462             ;;
7463         esac
7464         ;;
7465       *64-bit*)
7466         case $host in
7467           x86_64-*kfreebsd*-gnu)
7468             LD="${LD-ld} -m elf_x86_64_fbsd"
7469             ;;
7470           x86_64-*linux*)
7471             LD="${LD-ld} -m elf_x86_64"
7472             ;;
7473           powerpcle-*linux*)
7474             LD="${LD-ld} -m elf64lppc"
7475             ;;
7476           powerpc-*linux*)
7477             LD="${LD-ld} -m elf64ppc"
7478             ;;
7479           s390*-*linux*|s390*-*tpf*)
7480             LD="${LD-ld} -m elf64_s390"
7481             ;;
7482           sparc*-*linux*)
7483             LD="${LD-ld} -m elf64_sparc"
7484             ;;
7485         esac
7486         ;;
7487     esac
7488   fi
7489   rm -rf conftest*
7490   ;;
7491
7492 *-*-sco3.2v5*)
7493   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7494   SAVE_CFLAGS=$CFLAGS
7495   CFLAGS="$CFLAGS -belf"
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7497 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7498 if ${lt_cv_cc_needs_belf+:} false; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   ac_ext=c
7502 ac_cpp='$CPP $CPPFLAGS'
7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7506
7507      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h.  */
7509
7510 int
7511 main ()
7512 {
7513
7514   ;
7515   return 0;
7516 }
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"; then :
7519   lt_cv_cc_needs_belf=yes
7520 else
7521   lt_cv_cc_needs_belf=no
7522 fi
7523 rm -f core conftest.err conftest.$ac_objext \
7524     conftest$ac_exeext conftest.$ac_ext
7525      ac_ext=c
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7530
7531 fi
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7533 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7534   if test yes != "$lt_cv_cc_needs_belf"; then
7535     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7536     CFLAGS=$SAVE_CFLAGS
7537   fi
7538   ;;
7539 *-*solaris*)
7540   # Find out what ABI is being produced by ac_compile, and set linker
7541   # options accordingly.
7542   echo 'int i;' > conftest.$ac_ext
7543   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7544   (eval $ac_compile) 2>&5
7545   ac_status=$?
7546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7547   test $ac_status = 0; }; then
7548     case `/usr/bin/file conftest.o` in
7549     *64-bit*)
7550       case $lt_cv_prog_gnu_ld in
7551       yes*)
7552         case $host in
7553         i?86-*-solaris*|x86_64-*-solaris*)
7554           LD="${LD-ld} -m elf_x86_64"
7555           ;;
7556         sparc*-*-solaris*)
7557           LD="${LD-ld} -m elf64_sparc"
7558           ;;
7559         esac
7560         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7561         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7562           LD=${LD-ld}_sol2
7563         fi
7564         ;;
7565       *)
7566         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7567           LD="${LD-ld} -64"
7568         fi
7569         ;;
7570       esac
7571       ;;
7572     esac
7573   fi
7574   rm -rf conftest*
7575   ;;
7576 esac
7577
7578 need_locks=$enable_libtool_lock
7579
7580 if test -n "$ac_tool_prefix"; then
7581   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7582 set dummy ${ac_tool_prefix}mt; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7586   $as_echo_n "(cached) " >&6
7587 else
7588   if test -n "$MANIFEST_TOOL"; then
7589   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   test -z "$as_dir" && as_dir=.
7596     for ac_exec_ext in '' $ac_executable_extensions; do
7597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600     break 2
7601   fi
7602 done
7603   done
7604 IFS=$as_save_IFS
7605
7606 fi
7607 fi
7608 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7609 if test -n "$MANIFEST_TOOL"; then
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7611 $as_echo "$MANIFEST_TOOL" >&6; }
7612 else
7613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617
7618 fi
7619 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7620   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7621   # Extract the first word of "mt", so it can be a program name with args.
7622 set dummy mt; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7626   $as_echo_n "(cached) " >&6
7627 else
7628   if test -n "$ac_ct_MANIFEST_TOOL"; then
7629   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634   IFS=$as_save_IFS
7635   test -z "$as_dir" && as_dir=.
7636     for ac_exec_ext in '' $ac_executable_extensions; do
7637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640     break 2
7641   fi
7642 done
7643   done
7644 IFS=$as_save_IFS
7645
7646 fi
7647 fi
7648 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7649 if test -n "$ac_ct_MANIFEST_TOOL"; then
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7651 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7652 else
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7655 fi
7656
7657   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7658     MANIFEST_TOOL=":"
7659   else
7660     case $cross_compiling:$ac_tool_warned in
7661 yes:)
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664 ac_tool_warned=yes ;;
7665 esac
7666     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7667   fi
7668 else
7669   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7670 fi
7671
7672 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7674 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7675 if ${lt_cv_path_mainfest_tool+:} false; then :
7676   $as_echo_n "(cached) " >&6
7677 else
7678   lt_cv_path_mainfest_tool=no
7679   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7680   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7681   cat conftest.err >&5
7682   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7683     lt_cv_path_mainfest_tool=yes
7684   fi
7685   rm -f conftest*
7686 fi
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7688 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7689 if test yes != "$lt_cv_path_mainfest_tool"; then
7690   MANIFEST_TOOL=:
7691 fi
7692
7693
7694
7695
7696
7697
7698   case $host_os in
7699     rhapsody* | darwin*)
7700     if test -n "$ac_tool_prefix"; then
7701   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7706   $as_echo_n "(cached) " >&6
7707 else
7708   if test -n "$DSYMUTIL"; then
7709   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714   IFS=$as_save_IFS
7715   test -z "$as_dir" && as_dir=.
7716     for ac_exec_ext in '' $ac_executable_extensions; do
7717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720     break 2
7721   fi
7722 done
7723   done
7724 IFS=$as_save_IFS
7725
7726 fi
7727 fi
7728 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7729 if test -n "$DSYMUTIL"; then
7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7731 $as_echo "$DSYMUTIL" >&6; }
7732 else
7733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7735 fi
7736
7737
7738 fi
7739 if test -z "$ac_cv_prog_DSYMUTIL"; then
7740   ac_ct_DSYMUTIL=$DSYMUTIL
7741   # Extract the first word of "dsymutil", so it can be a program name with args.
7742 set dummy dsymutil; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7746   $as_echo_n "(cached) " >&6
7747 else
7748   if test -n "$ac_ct_DSYMUTIL"; then
7749   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754   IFS=$as_save_IFS
7755   test -z "$as_dir" && as_dir=.
7756     for ac_exec_ext in '' $ac_executable_extensions; do
7757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760     break 2
7761   fi
7762 done
7763   done
7764 IFS=$as_save_IFS
7765
7766 fi
7767 fi
7768 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7769 if test -n "$ac_ct_DSYMUTIL"; then
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7771 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7772 else
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7775 fi
7776
7777   if test "x$ac_ct_DSYMUTIL" = x; then
7778     DSYMUTIL=":"
7779   else
7780     case $cross_compiling:$ac_tool_warned in
7781 yes:)
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7784 ac_tool_warned=yes ;;
7785 esac
7786     DSYMUTIL=$ac_ct_DSYMUTIL
7787   fi
7788 else
7789   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7790 fi
7791
7792     if test -n "$ac_tool_prefix"; then
7793   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7794 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if ${ac_cv_prog_NMEDIT+:} false; then :
7798   $as_echo_n "(cached) " >&6
7799 else
7800   if test -n "$NMEDIT"; then
7801   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7805 do
7806   IFS=$as_save_IFS
7807   test -z "$as_dir" && as_dir=.
7808     for ac_exec_ext in '' $ac_executable_extensions; do
7809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812     break 2
7813   fi
7814 done
7815   done
7816 IFS=$as_save_IFS
7817
7818 fi
7819 fi
7820 NMEDIT=$ac_cv_prog_NMEDIT
7821 if test -n "$NMEDIT"; then
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7823 $as_echo "$NMEDIT" >&6; }
7824 else
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7827 fi
7828
7829
7830 fi
7831 if test -z "$ac_cv_prog_NMEDIT"; then
7832   ac_ct_NMEDIT=$NMEDIT
7833   # Extract the first word of "nmedit", so it can be a program name with args.
7834 set dummy nmedit; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7838   $as_echo_n "(cached) " >&6
7839 else
7840   if test -n "$ac_ct_NMEDIT"; then
7841   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7842 else
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846   IFS=$as_save_IFS
7847   test -z "$as_dir" && as_dir=.
7848     for ac_exec_ext in '' $ac_executable_extensions; do
7849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852     break 2
7853   fi
7854 done
7855   done
7856 IFS=$as_save_IFS
7857
7858 fi
7859 fi
7860 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7861 if test -n "$ac_ct_NMEDIT"; then
7862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7863 $as_echo "$ac_ct_NMEDIT" >&6; }
7864 else
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7867 fi
7868
7869   if test "x$ac_ct_NMEDIT" = x; then
7870     NMEDIT=":"
7871   else
7872     case $cross_compiling:$ac_tool_warned in
7873 yes:)
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7876 ac_tool_warned=yes ;;
7877 esac
7878     NMEDIT=$ac_ct_NMEDIT
7879   fi
7880 else
7881   NMEDIT="$ac_cv_prog_NMEDIT"
7882 fi
7883
7884     if test -n "$ac_tool_prefix"; then
7885   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7886 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if ${ac_cv_prog_LIPO+:} false; then :
7890   $as_echo_n "(cached) " >&6
7891 else
7892   if test -n "$LIPO"; then
7893   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7897 do
7898   IFS=$as_save_IFS
7899   test -z "$as_dir" && as_dir=.
7900     for ac_exec_ext in '' $ac_executable_extensions; do
7901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7902     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904     break 2
7905   fi
7906 done
7907   done
7908 IFS=$as_save_IFS
7909
7910 fi
7911 fi
7912 LIPO=$ac_cv_prog_LIPO
7913 if test -n "$LIPO"; then
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7915 $as_echo "$LIPO" >&6; }
7916 else
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920
7921
7922 fi
7923 if test -z "$ac_cv_prog_LIPO"; then
7924   ac_ct_LIPO=$LIPO
7925   # Extract the first word of "lipo", so it can be a program name with args.
7926 set dummy lipo; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7930   $as_echo_n "(cached) " >&6
7931 else
7932   if test -n "$ac_ct_LIPO"; then
7933   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938   IFS=$as_save_IFS
7939   test -z "$as_dir" && as_dir=.
7940     for ac_exec_ext in '' $ac_executable_extensions; do
7941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942     ac_cv_prog_ac_ct_LIPO="lipo"
7943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944     break 2
7945   fi
7946 done
7947   done
7948 IFS=$as_save_IFS
7949
7950 fi
7951 fi
7952 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7953 if test -n "$ac_ct_LIPO"; then
7954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7955 $as_echo "$ac_ct_LIPO" >&6; }
7956 else
7957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7959 fi
7960
7961   if test "x$ac_ct_LIPO" = x; then
7962     LIPO=":"
7963   else
7964     case $cross_compiling:$ac_tool_warned in
7965 yes:)
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7968 ac_tool_warned=yes ;;
7969 esac
7970     LIPO=$ac_ct_LIPO
7971   fi
7972 else
7973   LIPO="$ac_cv_prog_LIPO"
7974 fi
7975
7976     if test -n "$ac_tool_prefix"; then
7977   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}otool; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if ${ac_cv_prog_OTOOL+:} false; then :
7982   $as_echo_n "(cached) " >&6
7983 else
7984   if test -n "$OTOOL"; then
7985   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990   IFS=$as_save_IFS
7991   test -z "$as_dir" && as_dir=.
7992     for ac_exec_ext in '' $ac_executable_extensions; do
7993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996     break 2
7997   fi
7998 done
7999   done
8000 IFS=$as_save_IFS
8001
8002 fi
8003 fi
8004 OTOOL=$ac_cv_prog_OTOOL
8005 if test -n "$OTOOL"; then
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8007 $as_echo "$OTOOL" >&6; }
8008 else
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 fi
8012
8013
8014 fi
8015 if test -z "$ac_cv_prog_OTOOL"; then
8016   ac_ct_OTOOL=$OTOOL
8017   # Extract the first word of "otool", so it can be a program name with args.
8018 set dummy otool; ac_word=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8022   $as_echo_n "(cached) " >&6
8023 else
8024   if test -n "$ac_ct_OTOOL"; then
8025   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8026 else
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8029 do
8030   IFS=$as_save_IFS
8031   test -z "$as_dir" && as_dir=.
8032     for ac_exec_ext in '' $ac_executable_extensions; do
8033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8034     ac_cv_prog_ac_ct_OTOOL="otool"
8035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036     break 2
8037   fi
8038 done
8039   done
8040 IFS=$as_save_IFS
8041
8042 fi
8043 fi
8044 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8045 if test -n "$ac_ct_OTOOL"; then
8046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8047 $as_echo "$ac_ct_OTOOL" >&6; }
8048 else
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8051 fi
8052
8053   if test "x$ac_ct_OTOOL" = x; then
8054     OTOOL=":"
8055   else
8056     case $cross_compiling:$ac_tool_warned in
8057 yes:)
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8060 ac_tool_warned=yes ;;
8061 esac
8062     OTOOL=$ac_ct_OTOOL
8063   fi
8064 else
8065   OTOOL="$ac_cv_prog_OTOOL"
8066 fi
8067
8068     if test -n "$ac_tool_prefix"; then
8069   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8070 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_prog_OTOOL64+:} false; then :
8074   $as_echo_n "(cached) " >&6
8075 else
8076   if test -n "$OTOOL64"; then
8077   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8078 else
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8081 do
8082   IFS=$as_save_IFS
8083   test -z "$as_dir" && as_dir=.
8084     for ac_exec_ext in '' $ac_executable_extensions; do
8085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088     break 2
8089   fi
8090 done
8091   done
8092 IFS=$as_save_IFS
8093
8094 fi
8095 fi
8096 OTOOL64=$ac_cv_prog_OTOOL64
8097 if test -n "$OTOOL64"; then
8098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8099 $as_echo "$OTOOL64" >&6; }
8100 else
8101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8103 fi
8104
8105
8106 fi
8107 if test -z "$ac_cv_prog_OTOOL64"; then
8108   ac_ct_OTOOL64=$OTOOL64
8109   # Extract the first word of "otool64", so it can be a program name with args.
8110 set dummy otool64; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8114   $as_echo_n "(cached) " >&6
8115 else
8116   if test -n "$ac_ct_OTOOL64"; then
8117   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122   IFS=$as_save_IFS
8123   test -z "$as_dir" && as_dir=.
8124     for ac_exec_ext in '' $ac_executable_extensions; do
8125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126     ac_cv_prog_ac_ct_OTOOL64="otool64"
8127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128     break 2
8129   fi
8130 done
8131   done
8132 IFS=$as_save_IFS
8133
8134 fi
8135 fi
8136 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8137 if test -n "$ac_ct_OTOOL64"; then
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8139 $as_echo "$ac_ct_OTOOL64" >&6; }
8140 else
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8143 fi
8144
8145   if test "x$ac_ct_OTOOL64" = x; then
8146     OTOOL64=":"
8147   else
8148     case $cross_compiling:$ac_tool_warned in
8149 yes:)
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8152 ac_tool_warned=yes ;;
8153 esac
8154     OTOOL64=$ac_ct_OTOOL64
8155   fi
8156 else
8157   OTOOL64="$ac_cv_prog_OTOOL64"
8158 fi
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8187 $as_echo_n "checking for -single_module linker flag... " >&6; }
8188 if ${lt_cv_apple_cc_single_mod+:} false; then :
8189   $as_echo_n "(cached) " >&6
8190 else
8191   lt_cv_apple_cc_single_mod=no
8192       if test -z "$LT_MULTI_MODULE"; then
8193         # By default we will add the -single_module flag. You can override
8194         # by either setting the environment variable LT_MULTI_MODULE
8195         # non-empty at configure time, or by adding -multi_module to the
8196         # link flags.
8197         rm -rf libconftest.dylib*
8198         echo "int foo(void){return 1;}" > conftest.c
8199         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8200 -dynamiclib -Wl,-single_module conftest.c" >&5
8201         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8202           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8203         _lt_result=$?
8204         # If there is a non-empty error log, and "single_module"
8205         # appears in it, assume the flag caused a linker warning
8206         if test -s conftest.err && $GREP single_module conftest.err; then
8207           cat conftest.err >&5
8208         # Otherwise, if the output was created with a 0 exit code from
8209         # the compiler, it worked.
8210         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8211           lt_cv_apple_cc_single_mod=yes
8212         else
8213           cat conftest.err >&5
8214         fi
8215         rm -rf libconftest.dylib*
8216         rm -f conftest.*
8217       fi
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8220 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8221
8222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8223 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8224 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8225   $as_echo_n "(cached) " >&6
8226 else
8227   lt_cv_ld_exported_symbols_list=no
8228       save_LDFLAGS=$LDFLAGS
8229       echo "_main" > conftest.sym
8230       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8231       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h.  */
8233
8234 int
8235 main ()
8236 {
8237
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 if ac_fn_c_try_link "$LINENO"; then :
8243   lt_cv_ld_exported_symbols_list=yes
8244 else
8245   lt_cv_ld_exported_symbols_list=no
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext \
8248     conftest$ac_exeext conftest.$ac_ext
8249         LDFLAGS=$save_LDFLAGS
8250
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8253 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8254
8255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8256 $as_echo_n "checking for -force_load linker flag... " >&6; }
8257 if ${lt_cv_ld_force_load+:} false; then :
8258   $as_echo_n "(cached) " >&6
8259 else
8260   lt_cv_ld_force_load=no
8261       cat > conftest.c << _LT_EOF
8262 int forced_loaded() { return 2;}
8263 _LT_EOF
8264       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8265       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8266       echo "$AR cru libconftest.a conftest.o" >&5
8267       $AR cru libconftest.a conftest.o 2>&5
8268       echo "$RANLIB libconftest.a" >&5
8269       $RANLIB libconftest.a 2>&5
8270       cat > conftest.c << _LT_EOF
8271 int main() { return 0;}
8272 _LT_EOF
8273       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8274       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8275       _lt_result=$?
8276       if test -s conftest.err && $GREP force_load conftest.err; then
8277         cat conftest.err >&5
8278       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8279         lt_cv_ld_force_load=yes
8280       else
8281         cat conftest.err >&5
8282       fi
8283         rm -f conftest.err libconftest.a conftest conftest.c
8284         rm -rf conftest.dSYM
8285
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8288 $as_echo "$lt_cv_ld_force_load" >&6; }
8289     case $host_os in
8290     rhapsody* | darwin1.[012])
8291       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8292     darwin1.*)
8293       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8294     darwin*) # darwin 5.x on
8295       # if running on 10.5 or later, the deployment target defaults
8296       # to the OS version, if on x86, and 10.4, the deployment
8297       # target defaults to 10.4. Don't you love it?
8298       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8299         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8300           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8301         10.[012][,.]*)
8302           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8303         10.*)
8304           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8305       esac
8306     ;;
8307   esac
8308     if test yes = "$lt_cv_apple_cc_single_mod"; then
8309       _lt_dar_single_mod='$single_module'
8310     fi
8311     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8312       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8313     else
8314       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8315     fi
8316     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8317       _lt_dsymutil='~$DSYMUTIL $lib || :'
8318     else
8319       _lt_dsymutil=
8320     fi
8321     ;;
8322   esac
8323
8324 # func_munge_path_list VARIABLE PATH
8325 # -----------------------------------
8326 # VARIABLE is name of variable containing _space_ separated list of
8327 # directories to be munged by the contents of PATH, which is string
8328 # having a format:
8329 # "DIR[:DIR]:"
8330 #       string "DIR[ DIR]" will be prepended to VARIABLE
8331 # ":DIR[:DIR]"
8332 #       string "DIR[ DIR]" will be appended to VARIABLE
8333 # "DIRP[:DIRP]::[DIRA:]DIRA"
8334 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8335 #       "DIRA[ DIRA]" will be appended to VARIABLE
8336 # "DIR[:DIR]"
8337 #       VARIABLE will be replaced by "DIR[ DIR]"
8338 func_munge_path_list ()
8339 {
8340     case x$2 in
8341     x)
8342         ;;
8343     *:)
8344         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8345         ;;
8346     x:*)
8347         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8348         ;;
8349     *::*)
8350         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8351         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8352         ;;
8353     *)
8354         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8355         ;;
8356     esac
8357 }
8358
8359 ac_ext=c
8360 ac_cpp='$CPP $CPPFLAGS'
8361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8365 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8366 # On Suns, sometimes $CPP names a directory.
8367 if test -n "$CPP" && test -d "$CPP"; then
8368   CPP=
8369 fi
8370 if test -z "$CPP"; then
8371   if ${ac_cv_prog_CPP+:} false; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374       # Double quotes because CPP needs to be expanded
8375     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8376     do
8377       ac_preproc_ok=false
8378 for ac_c_preproc_warn_flag in '' yes
8379 do
8380   # Use a header file that comes with gcc, so configuring glibc
8381   # with a fresh cross-compiler works.
8382   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8383   # <limits.h> exists even on freestanding compilers.
8384   # On the NeXT, cc -E runs the code through the compiler's parser,
8385   # not just through cpp. "Syntax error" is here to catch this case.
8386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h.  */
8388 #ifdef __STDC__
8389 # include <limits.h>
8390 #else
8391 # include <assert.h>
8392 #endif
8393                      Syntax error
8394 _ACEOF
8395 if ac_fn_c_try_cpp "$LINENO"; then :
8396
8397 else
8398   # Broken: fails on valid input.
8399 continue
8400 fi
8401 rm -f conftest.err conftest.i conftest.$ac_ext
8402
8403   # OK, works on sane cases.  Now check whether nonexistent headers
8404   # can be detected and how.
8405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h.  */
8407 #include <ac_nonexistent.h>
8408 _ACEOF
8409 if ac_fn_c_try_cpp "$LINENO"; then :
8410   # Broken: success on invalid input.
8411 continue
8412 else
8413   # Passes both tests.
8414 ac_preproc_ok=:
8415 break
8416 fi
8417 rm -f conftest.err conftest.i conftest.$ac_ext
8418
8419 done
8420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8421 rm -f conftest.i conftest.err conftest.$ac_ext
8422 if $ac_preproc_ok; then :
8423   break
8424 fi
8425
8426     done
8427     ac_cv_prog_CPP=$CPP
8428
8429 fi
8430   CPP=$ac_cv_prog_CPP
8431 else
8432   ac_cv_prog_CPP=$CPP
8433 fi
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8435 $as_echo "$CPP" >&6; }
8436 ac_preproc_ok=false
8437 for ac_c_preproc_warn_flag in '' yes
8438 do
8439   # Use a header file that comes with gcc, so configuring glibc
8440   # with a fresh cross-compiler works.
8441   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8442   # <limits.h> exists even on freestanding compilers.
8443   # On the NeXT, cc -E runs the code through the compiler's parser,
8444   # not just through cpp. "Syntax error" is here to catch this case.
8445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h.  */
8447 #ifdef __STDC__
8448 # include <limits.h>
8449 #else
8450 # include <assert.h>
8451 #endif
8452                      Syntax error
8453 _ACEOF
8454 if ac_fn_c_try_cpp "$LINENO"; then :
8455
8456 else
8457   # Broken: fails on valid input.
8458 continue
8459 fi
8460 rm -f conftest.err conftest.i conftest.$ac_ext
8461
8462   # OK, works on sane cases.  Now check whether nonexistent headers
8463   # can be detected and how.
8464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h.  */
8466 #include <ac_nonexistent.h>
8467 _ACEOF
8468 if ac_fn_c_try_cpp "$LINENO"; then :
8469   # Broken: success on invalid input.
8470 continue
8471 else
8472   # Passes both tests.
8473 ac_preproc_ok=:
8474 break
8475 fi
8476 rm -f conftest.err conftest.i conftest.$ac_ext
8477
8478 done
8479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8480 rm -f conftest.i conftest.err conftest.$ac_ext
8481 if $ac_preproc_ok; then :
8482
8483 else
8484   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8486 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8487 See \`config.log' for more details" "$LINENO" 5; }
8488 fi
8489
8490 ac_ext=c
8491 ac_cpp='$CPP $CPPFLAGS'
8492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8495
8496
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8498 $as_echo_n "checking for ANSI C header files... " >&6; }
8499 if ${ac_cv_header_stdc+:} false; then :
8500   $as_echo_n "(cached) " >&6
8501 else
8502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h.  */
8504 #include <stdlib.h>
8505 #include <stdarg.h>
8506 #include <string.h>
8507 #include <float.h>
8508
8509 int
8510 main ()
8511 {
8512
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518   ac_cv_header_stdc=yes
8519 else
8520   ac_cv_header_stdc=no
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523
8524 if test $ac_cv_header_stdc = yes; then
8525   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h.  */
8528 #include <string.h>
8529
8530 _ACEOF
8531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8532   $EGREP "memchr" >/dev/null 2>&1; then :
8533
8534 else
8535   ac_cv_header_stdc=no
8536 fi
8537 rm -f conftest*
8538
8539 fi
8540
8541 if test $ac_cv_header_stdc = yes; then
8542   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h.  */
8545 #include <stdlib.h>
8546
8547 _ACEOF
8548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8549   $EGREP "free" >/dev/null 2>&1; then :
8550
8551 else
8552   ac_cv_header_stdc=no
8553 fi
8554 rm -f conftest*
8555
8556 fi
8557
8558 if test $ac_cv_header_stdc = yes; then
8559   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8560   if test "$cross_compiling" = yes; then :
8561   :
8562 else
8563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h.  */
8565 #include <ctype.h>
8566 #include <stdlib.h>
8567 #if ((' ' & 0x0FF) == 0x020)
8568 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8569 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8570 #else
8571 # define ISLOWER(c) \
8572                    (('a' <= (c) && (c) <= 'i') \
8573                      || ('j' <= (c) && (c) <= 'r') \
8574                      || ('s' <= (c) && (c) <= 'z'))
8575 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8576 #endif
8577
8578 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8579 int
8580 main ()
8581 {
8582   int i;
8583   for (i = 0; i < 256; i++)
8584     if (XOR (islower (i), ISLOWER (i))
8585         || toupper (i) != TOUPPER (i))
8586       return 2;
8587   return 0;
8588 }
8589 _ACEOF
8590 if ac_fn_c_try_run "$LINENO"; then :
8591
8592 else
8593   ac_cv_header_stdc=no
8594 fi
8595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8596   conftest.$ac_objext conftest.beam conftest.$ac_ext
8597 fi
8598
8599 fi
8600 fi
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8602 $as_echo "$ac_cv_header_stdc" >&6; }
8603 if test $ac_cv_header_stdc = yes; then
8604
8605 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8606
8607 fi
8608
8609 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8610 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8611                   inttypes.h stdint.h unistd.h
8612 do :
8613   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8614 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8615 "
8616 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8617   cat >>confdefs.h <<_ACEOF
8618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8619 _ACEOF
8620
8621 fi
8622
8623 done
8624
8625
8626 for ac_header in dlfcn.h
8627 do :
8628   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8629 "
8630 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8631   cat >>confdefs.h <<_ACEOF
8632 #define HAVE_DLFCN_H 1
8633 _ACEOF
8634
8635 fi
8636
8637 done
8638
8639
8640
8641
8642
8643 # Set options
8644
8645
8646
8647         enable_dlopen=no
8648
8649
8650   enable_win32_dll=no
8651
8652
8653             # Check whether --enable-shared was given.
8654 if test "${enable_shared+set}" = set; then :
8655   enableval=$enable_shared; p=${PACKAGE-default}
8656     case $enableval in
8657     yes) enable_shared=yes ;;
8658     no) enable_shared=no ;;
8659     *)
8660       enable_shared=no
8661       # Look at the argument we got.  We use all the common list separators.
8662       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8663       for pkg in $enableval; do
8664         IFS=$lt_save_ifs
8665         if test "X$pkg" = "X$p"; then
8666           enable_shared=yes
8667         fi
8668       done
8669       IFS=$lt_save_ifs
8670       ;;
8671     esac
8672 else
8673   enable_shared=yes
8674 fi
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684   # Check whether --enable-static was given.
8685 if test "${enable_static+set}" = set; then :
8686   enableval=$enable_static; p=${PACKAGE-default}
8687     case $enableval in
8688     yes) enable_static=yes ;;
8689     no) enable_static=no ;;
8690     *)
8691      enable_static=no
8692       # Look at the argument we got.  We use all the common list separators.
8693       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8694       for pkg in $enableval; do
8695         IFS=$lt_save_ifs
8696         if test "X$pkg" = "X$p"; then
8697           enable_static=yes
8698         fi
8699       done
8700       IFS=$lt_save_ifs
8701       ;;
8702     esac
8703 else
8704   enable_static=yes
8705 fi
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716 # Check whether --with-pic was given.
8717 if test "${with_pic+set}" = set; then :
8718   withval=$with_pic; lt_p=${PACKAGE-default}
8719     case $withval in
8720     yes|no) pic_mode=$withval ;;
8721     *)
8722       pic_mode=default
8723       # Look at the argument we got.  We use all the common list separators.
8724       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8725       for lt_pkg in $withval; do
8726         IFS=$lt_save_ifs
8727         if test "X$lt_pkg" = "X$lt_p"; then
8728           pic_mode=yes
8729         fi
8730       done
8731       IFS=$lt_save_ifs
8732       ;;
8733     esac
8734 else
8735   pic_mode=default
8736 fi
8737
8738
8739
8740
8741
8742
8743
8744
8745   # Check whether --enable-fast-install was given.
8746 if test "${enable_fast_install+set}" = set; then :
8747   enableval=$enable_fast_install; p=${PACKAGE-default}
8748     case $enableval in
8749     yes) enable_fast_install=yes ;;
8750     no) enable_fast_install=no ;;
8751     *)
8752       enable_fast_install=no
8753       # Look at the argument we got.  We use all the common list separators.
8754       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8755       for pkg in $enableval; do
8756         IFS=$lt_save_ifs
8757         if test "X$pkg" = "X$p"; then
8758           enable_fast_install=yes
8759         fi
8760       done
8761       IFS=$lt_save_ifs
8762       ;;
8763     esac
8764 else
8765   enable_fast_install=yes
8766 fi
8767
8768
8769
8770
8771
8772
8773
8774
8775   shared_archive_member_spec=
8776 case $host,$enable_shared in
8777 power*-*-aix[5-9]*,yes)
8778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8779 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8780
8781 # Check whether --with-aix-soname was given.
8782 if test "${with_aix_soname+set}" = set; then :
8783   withval=$with_aix_soname; case $withval in
8784     aix|svr4|both)
8785       ;;
8786     *)
8787       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8788       ;;
8789     esac
8790     lt_cv_with_aix_soname=$with_aix_soname
8791 else
8792   if ${lt_cv_with_aix_soname+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   lt_cv_with_aix_soname=aix
8796 fi
8797
8798     with_aix_soname=$lt_cv_with_aix_soname
8799 fi
8800
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8802 $as_echo "$with_aix_soname" >&6; }
8803   if test aix != "$with_aix_soname"; then
8804     # For the AIX way of multilib, we name the shared archive member
8805     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8806     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8807     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8808     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8809     if test 64 = "${OBJECT_MODE-32}"; then
8810       shared_archive_member_spec=shr_64
8811     else
8812       shared_archive_member_spec=shr
8813     fi
8814   fi
8815   ;;
8816 *)
8817   with_aix_soname=aix
8818   ;;
8819 esac
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830 # This can be used to rebuild libtool when needed
8831 LIBTOOL_DEPS=$ltmain
8832
8833 # Always use our own libtool.
8834 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865 test -z "$LN_S" && LN_S="ln -s"
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880 if test -n "${ZSH_VERSION+set}"; then
8881    setopt NO_GLOB_SUBST
8882 fi
8883
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8885 $as_echo_n "checking for objdir... " >&6; }
8886 if ${lt_cv_objdir+:} false; then :
8887   $as_echo_n "(cached) " >&6
8888 else
8889   rm -f .libs 2>/dev/null
8890 mkdir .libs 2>/dev/null
8891 if test -d .libs; then
8892   lt_cv_objdir=.libs
8893 else
8894   # MS-DOS does not allow filenames that begin with a dot.
8895   lt_cv_objdir=_libs
8896 fi
8897 rmdir .libs 2>/dev/null
8898 fi
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8900 $as_echo "$lt_cv_objdir" >&6; }
8901 objdir=$lt_cv_objdir
8902
8903
8904
8905
8906
8907 cat >>confdefs.h <<_ACEOF
8908 #define LT_OBJDIR "$lt_cv_objdir/"
8909 _ACEOF
8910
8911
8912
8913
8914 case $host_os in
8915 aix3*)
8916   # AIX sometimes has problems with the GCC collect2 program.  For some
8917   # reason, if we set the COLLECT_NAMES environment variable, the problems
8918   # vanish in a puff of smoke.
8919   if test set != "${COLLECT_NAMES+set}"; then
8920     COLLECT_NAMES=
8921     export COLLECT_NAMES
8922   fi
8923   ;;
8924 esac
8925
8926 # Global variables:
8927 ofile=libtool
8928 can_build_shared=yes
8929
8930 # All known linkers require a '.a' archive for static linking (except MSVC,
8931 # which needs '.lib').
8932 libext=a
8933
8934 with_gnu_ld=$lt_cv_prog_gnu_ld
8935
8936 old_CC=$CC
8937 old_CFLAGS=$CFLAGS
8938
8939 # Set sane defaults for various variables
8940 test -z "$CC" && CC=cc
8941 test -z "$LTCC" && LTCC=$CC
8942 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8943 test -z "$LD" && LD=ld
8944 test -z "$ac_objext" && ac_objext=o
8945
8946 func_cc_basename $compiler
8947 cc_basename=$func_cc_basename_result
8948
8949
8950 # Only perform the check for file, if the check method requires it
8951 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8952 case $deplibs_check_method in
8953 file_magic*)
8954   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8956 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8957 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8958   $as_echo_n "(cached) " >&6
8959 else
8960   case $MAGIC_CMD in
8961 [\\/*] |  ?:[\\/]*)
8962   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8963   ;;
8964 *)
8965   lt_save_MAGIC_CMD=$MAGIC_CMD
8966   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8967   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8968   for ac_dir in $ac_dummy; do
8969     IFS=$lt_save_ifs
8970     test -z "$ac_dir" && ac_dir=.
8971     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8972       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8973       if test -n "$file_magic_test_file"; then
8974         case $deplibs_check_method in
8975         "file_magic "*)
8976           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8977           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8978           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8979             $EGREP "$file_magic_regex" > /dev/null; then
8980             :
8981           else
8982             cat <<_LT_EOF 1>&2
8983
8984 *** Warning: the command libtool uses to detect shared libraries,
8985 *** $file_magic_cmd, produces output that libtool cannot recognize.
8986 *** The result is that libtool may fail to recognize shared libraries
8987 *** as such.  This will affect the creation of libtool libraries that
8988 *** depend on shared libraries, but programs linked with such libtool
8989 *** libraries will work regardless of this problem.  Nevertheless, you
8990 *** may want to report the problem to your system manager and/or to
8991 *** bug-libtool@gnu.org
8992
8993 _LT_EOF
8994           fi ;;
8995         esac
8996       fi
8997       break
8998     fi
8999   done
9000   IFS=$lt_save_ifs
9001   MAGIC_CMD=$lt_save_MAGIC_CMD
9002   ;;
9003 esac
9004 fi
9005
9006 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9007 if test -n "$MAGIC_CMD"; then
9008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9009 $as_echo "$MAGIC_CMD" >&6; }
9010 else
9011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9013 fi
9014
9015
9016
9017
9018
9019 if test -z "$lt_cv_path_MAGIC_CMD"; then
9020   if test -n "$ac_tool_prefix"; then
9021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9022 $as_echo_n "checking for file... " >&6; }
9023 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9024   $as_echo_n "(cached) " >&6
9025 else
9026   case $MAGIC_CMD in
9027 [\\/*] |  ?:[\\/]*)
9028   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9029   ;;
9030 *)
9031   lt_save_MAGIC_CMD=$MAGIC_CMD
9032   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9033   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9034   for ac_dir in $ac_dummy; do
9035     IFS=$lt_save_ifs
9036     test -z "$ac_dir" && ac_dir=.
9037     if test -f "$ac_dir/file"; then
9038       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9039       if test -n "$file_magic_test_file"; then
9040         case $deplibs_check_method in
9041         "file_magic "*)
9042           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9043           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9044           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9045             $EGREP "$file_magic_regex" > /dev/null; then
9046             :
9047           else
9048             cat <<_LT_EOF 1>&2
9049
9050 *** Warning: the command libtool uses to detect shared libraries,
9051 *** $file_magic_cmd, produces output that libtool cannot recognize.
9052 *** The result is that libtool may fail to recognize shared libraries
9053 *** as such.  This will affect the creation of libtool libraries that
9054 *** depend on shared libraries, but programs linked with such libtool
9055 *** libraries will work regardless of this problem.  Nevertheless, you
9056 *** may want to report the problem to your system manager and/or to
9057 *** bug-libtool@gnu.org
9058
9059 _LT_EOF
9060           fi ;;
9061         esac
9062       fi
9063       break
9064     fi
9065   done
9066   IFS=$lt_save_ifs
9067   MAGIC_CMD=$lt_save_MAGIC_CMD
9068   ;;
9069 esac
9070 fi
9071
9072 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9073 if test -n "$MAGIC_CMD"; then
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9075 $as_echo "$MAGIC_CMD" >&6; }
9076 else
9077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9079 fi
9080
9081
9082   else
9083     MAGIC_CMD=:
9084   fi
9085 fi
9086
9087   fi
9088   ;;
9089 esac
9090
9091 # Use C for the default configuration in the libtool script
9092
9093 lt_save_CC=$CC
9094 ac_ext=c
9095 ac_cpp='$CPP $CPPFLAGS'
9096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9099
9100
9101 # Source file extension for C test sources.
9102 ac_ext=c
9103
9104 # Object file extension for compiled C test sources.
9105 objext=o
9106 objext=$objext
9107
9108 # Code to be used in simple compile tests
9109 lt_simple_compile_test_code="int some_variable = 0;"
9110
9111 # Code to be used in simple link tests
9112 lt_simple_link_test_code='int main(){return(0);}'
9113
9114
9115
9116
9117
9118
9119
9120 # If no C compiler was specified, use CC.
9121 LTCC=${LTCC-"$CC"}
9122
9123 # If no C compiler flags were specified, use CFLAGS.
9124 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9125
9126 # Allow CC to be a program name with arguments.
9127 compiler=$CC
9128
9129 # Save the default compiler, since it gets overwritten when the other
9130 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9131 compiler_DEFAULT=$CC
9132
9133 # save warnings/boilerplate of simple test code
9134 ac_outfile=conftest.$ac_objext
9135 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9136 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9137 _lt_compiler_boilerplate=`cat conftest.err`
9138 $RM conftest*
9139
9140 ac_outfile=conftest.$ac_objext
9141 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9142 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9143 _lt_linker_boilerplate=`cat conftest.err`
9144 $RM -r conftest*
9145
9146
9147 if test -n "$compiler"; then
9148
9149 lt_prog_compiler_no_builtin_flag=
9150
9151 if test yes = "$GCC"; then
9152   case $cc_basename in
9153   nvcc*)
9154     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9155   *)
9156     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9157   esac
9158
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9160 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9161 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9162   $as_echo_n "(cached) " >&6
9163 else
9164   lt_cv_prog_compiler_rtti_exceptions=no
9165    ac_outfile=conftest.$ac_objext
9166    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9167    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9168    # Insert the option either (1) after the last *FLAGS variable, or
9169    # (2) before a word containing "conftest.", or (3) at the end.
9170    # Note that $ac_compile itself does not contain backslashes and begins
9171    # with a dollar sign (not a hyphen), so the echo should work correctly.
9172    # The option is referenced via a variable to avoid confusing sed.
9173    lt_compile=`echo "$ac_compile" | $SED \
9174    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9175    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9176    -e 's:$: $lt_compiler_flag:'`
9177    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9178    (eval "$lt_compile" 2>conftest.err)
9179    ac_status=$?
9180    cat conftest.err >&5
9181    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182    if (exit $ac_status) && test -s "$ac_outfile"; then
9183      # The compiler can only warn and ignore the option if not recognized
9184      # So say no if there are warnings other than the usual output.
9185      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9186      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9187      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9188        lt_cv_prog_compiler_rtti_exceptions=yes
9189      fi
9190    fi
9191    $RM conftest*
9192
9193 fi
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9195 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9196
9197 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9198     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9199 else
9200     :
9201 fi
9202
9203 fi
9204
9205
9206
9207
9208
9209
9210   lt_prog_compiler_wl=
9211 lt_prog_compiler_pic=
9212 lt_prog_compiler_static=
9213
9214
9215   if test yes = "$GCC"; then
9216     lt_prog_compiler_wl='-Wl,'
9217     lt_prog_compiler_static='-static'
9218
9219     case $host_os in
9220       aix*)
9221       # All AIX code is PIC.
9222       if test ia64 = "$host_cpu"; then
9223         # AIX 5 now supports IA64 processor
9224         lt_prog_compiler_static='-Bstatic'
9225       fi
9226       lt_prog_compiler_pic='-fPIC'
9227       ;;
9228
9229     amigaos*)
9230       case $host_cpu in
9231       powerpc)
9232             # see comment about AmigaOS4 .so support
9233             lt_prog_compiler_pic='-fPIC'
9234         ;;
9235       m68k)
9236             # FIXME: we need at least 68020 code to build shared libraries, but
9237             # adding the '-m68020' flag to GCC prevents building anything better,
9238             # like '-m68040'.
9239             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9240         ;;
9241       esac
9242       ;;
9243
9244     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9245       # PIC is the default for these OSes.
9246       ;;
9247
9248     mingw* | cygwin* | pw32* | os2* | cegcc*)
9249       # This hack is so that the source file can tell whether it is being
9250       # built for inclusion in a dll (and should export symbols for example).
9251       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9252       # (--disable-auto-import) libraries
9253       lt_prog_compiler_pic='-DDLL_EXPORT'
9254       case $host_os in
9255       os2*)
9256         lt_prog_compiler_static='$wl-static'
9257         ;;
9258       esac
9259       ;;
9260
9261     darwin* | rhapsody*)
9262       # PIC is the default on this platform
9263       # Common symbols not allowed in MH_DYLIB files
9264       lt_prog_compiler_pic='-fno-common'
9265       ;;
9266
9267     haiku*)
9268       # PIC is the default for Haiku.
9269       # The "-static" flag exists, but is broken.
9270       lt_prog_compiler_static=
9271       ;;
9272
9273     hpux*)
9274       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9275       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9276       # sets the default TLS model and affects inlining.
9277       case $host_cpu in
9278       hppa*64*)
9279         # +Z the default
9280         ;;
9281       *)
9282         lt_prog_compiler_pic='-fPIC'
9283         ;;
9284       esac
9285       ;;
9286
9287     interix[3-9]*)
9288       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9289       # Instead, we relocate shared libraries at runtime.
9290       ;;
9291
9292     msdosdjgpp*)
9293       # Just because we use GCC doesn't mean we suddenly get shared libraries
9294       # on systems that don't support them.
9295       lt_prog_compiler_can_build_shared=no
9296       enable_shared=no
9297       ;;
9298
9299     *nto* | *qnx*)
9300       # QNX uses GNU C++, but need to define -shared option too, otherwise
9301       # it will coredump.
9302       lt_prog_compiler_pic='-fPIC -shared'
9303       ;;
9304
9305     sysv4*MP*)
9306       if test -d /usr/nec; then
9307         lt_prog_compiler_pic=-Kconform_pic
9308       fi
9309       ;;
9310
9311     *)
9312       lt_prog_compiler_pic='-fPIC'
9313       ;;
9314     esac
9315
9316     case $cc_basename in
9317     nvcc*) # Cuda Compiler Driver 2.2
9318       lt_prog_compiler_wl='-Xlinker '
9319       if test -n "$lt_prog_compiler_pic"; then
9320         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9321       fi
9322       ;;
9323     esac
9324   else
9325     # PORTME Check for flag to pass linker flags through the system compiler.
9326     case $host_os in
9327     aix*)
9328       lt_prog_compiler_wl='-Wl,'
9329       if test ia64 = "$host_cpu"; then
9330         # AIX 5 now supports IA64 processor
9331         lt_prog_compiler_static='-Bstatic'
9332       else
9333         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9334       fi
9335       ;;
9336
9337     darwin* | rhapsody*)
9338       # PIC is the default on this platform
9339       # Common symbols not allowed in MH_DYLIB files
9340       lt_prog_compiler_pic='-fno-common'
9341       case $cc_basename in
9342       nagfor*)
9343         # NAG Fortran compiler
9344         lt_prog_compiler_wl='-Wl,-Wl,,'
9345         lt_prog_compiler_pic='-PIC'
9346         lt_prog_compiler_static='-Bstatic'
9347         ;;
9348       esac
9349       ;;
9350
9351     mingw* | cygwin* | pw32* | os2* | cegcc*)
9352       # This hack is so that the source file can tell whether it is being
9353       # built for inclusion in a dll (and should export symbols for example).
9354       lt_prog_compiler_pic='-DDLL_EXPORT'
9355       case $host_os in
9356       os2*)
9357         lt_prog_compiler_static='$wl-static'
9358         ;;
9359       esac
9360       ;;
9361
9362     hpux9* | hpux10* | hpux11*)
9363       lt_prog_compiler_wl='-Wl,'
9364       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9365       # not for PA HP-UX.
9366       case $host_cpu in
9367       hppa*64*|ia64*)
9368         # +Z the default
9369         ;;
9370       *)
9371         lt_prog_compiler_pic='+Z'
9372         ;;
9373       esac
9374       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9375       lt_prog_compiler_static='$wl-a ${wl}archive'
9376       ;;
9377
9378     irix5* | irix6* | nonstopux*)
9379       lt_prog_compiler_wl='-Wl,'
9380       # PIC (with -KPIC) is the default.
9381       lt_prog_compiler_static='-non_shared'
9382       ;;
9383
9384     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9385       case $cc_basename in
9386       # old Intel for x86_64, which still supported -KPIC.
9387       ecc*)
9388         lt_prog_compiler_wl='-Wl,'
9389         lt_prog_compiler_pic='-KPIC'
9390         lt_prog_compiler_static='-static'
9391         ;;
9392       # icc used to be incompatible with GCC.
9393       # ICC 10 doesn't accept -KPIC any more.
9394       icc* | ifort*)
9395         lt_prog_compiler_wl='-Wl,'
9396         lt_prog_compiler_pic='-fPIC'
9397         lt_prog_compiler_static='-static'
9398         ;;
9399       # Lahey Fortran 8.1.
9400       lf95*)
9401         lt_prog_compiler_wl='-Wl,'
9402         lt_prog_compiler_pic='--shared'
9403         lt_prog_compiler_static='--static'
9404         ;;
9405       nagfor*)
9406         # NAG Fortran compiler
9407         lt_prog_compiler_wl='-Wl,-Wl,,'
9408         lt_prog_compiler_pic='-PIC'
9409         lt_prog_compiler_static='-Bstatic'
9410         ;;
9411       tcc*)
9412         # Fabrice Bellard et al's Tiny C Compiler
9413         lt_prog_compiler_wl='-Wl,'
9414         lt_prog_compiler_pic='-fPIC'
9415         lt_prog_compiler_static='-static'
9416         ;;
9417       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9418         # Portland Group compilers (*not* the Pentium gcc compiler,
9419         # which looks to be a dead project)
9420         lt_prog_compiler_wl='-Wl,'
9421         lt_prog_compiler_pic='-fpic'
9422         lt_prog_compiler_static='-Bstatic'
9423         ;;
9424       ccc*)
9425         lt_prog_compiler_wl='-Wl,'
9426         # All Alpha code is PIC.
9427         lt_prog_compiler_static='-non_shared'
9428         ;;
9429       xl* | bgxl* | bgf* | mpixl*)
9430         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9431         lt_prog_compiler_wl='-Wl,'
9432         lt_prog_compiler_pic='-qpic'
9433         lt_prog_compiler_static='-qstaticlink'
9434         ;;
9435       *)
9436         case `$CC -V 2>&1 | sed 5q` in
9437         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9438           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9439           lt_prog_compiler_pic='-KPIC'
9440           lt_prog_compiler_static='-Bstatic'
9441           lt_prog_compiler_wl=''
9442           ;;
9443         *Sun\ F* | *Sun*Fortran*)
9444           lt_prog_compiler_pic='-KPIC'
9445           lt_prog_compiler_static='-Bstatic'
9446           lt_prog_compiler_wl='-Qoption ld '
9447           ;;
9448         *Sun\ C*)
9449           # Sun C 5.9
9450           lt_prog_compiler_pic='-KPIC'
9451           lt_prog_compiler_static='-Bstatic'
9452           lt_prog_compiler_wl='-Wl,'
9453           ;;
9454         *Intel*\ [CF]*Compiler*)
9455           lt_prog_compiler_wl='-Wl,'
9456           lt_prog_compiler_pic='-fPIC'
9457           lt_prog_compiler_static='-static'
9458           ;;
9459         *Portland\ Group*)
9460           lt_prog_compiler_wl='-Wl,'
9461           lt_prog_compiler_pic='-fpic'
9462           lt_prog_compiler_static='-Bstatic'
9463           ;;
9464         esac
9465         ;;
9466       esac
9467       ;;
9468
9469     newsos6)
9470       lt_prog_compiler_pic='-KPIC'
9471       lt_prog_compiler_static='-Bstatic'
9472       ;;
9473
9474     *nto* | *qnx*)
9475       # QNX uses GNU C++, but need to define -shared option too, otherwise
9476       # it will coredump.
9477       lt_prog_compiler_pic='-fPIC -shared'
9478       ;;
9479
9480     osf3* | osf4* | osf5*)
9481       lt_prog_compiler_wl='-Wl,'
9482       # All OSF/1 code is PIC.
9483       lt_prog_compiler_static='-non_shared'
9484       ;;
9485
9486     rdos*)
9487       lt_prog_compiler_static='-non_shared'
9488       ;;
9489
9490     solaris*)
9491       lt_prog_compiler_pic='-KPIC'
9492       lt_prog_compiler_static='-Bstatic'
9493       case $cc_basename in
9494       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9495         lt_prog_compiler_wl='-Qoption ld ';;
9496       *)
9497         lt_prog_compiler_wl='-Wl,';;
9498       esac
9499       ;;
9500
9501     sunos4*)
9502       lt_prog_compiler_wl='-Qoption ld '
9503       lt_prog_compiler_pic='-PIC'
9504       lt_prog_compiler_static='-Bstatic'
9505       ;;
9506
9507     sysv4 | sysv4.2uw2* | sysv4.3*)
9508       lt_prog_compiler_wl='-Wl,'
9509       lt_prog_compiler_pic='-KPIC'
9510       lt_prog_compiler_static='-Bstatic'
9511       ;;
9512
9513     sysv4*MP*)
9514       if test -d /usr/nec; then
9515         lt_prog_compiler_pic='-Kconform_pic'
9516         lt_prog_compiler_static='-Bstatic'
9517       fi
9518       ;;
9519
9520     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9521       lt_prog_compiler_wl='-Wl,'
9522       lt_prog_compiler_pic='-KPIC'
9523       lt_prog_compiler_static='-Bstatic'
9524       ;;
9525
9526     unicos*)
9527       lt_prog_compiler_wl='-Wl,'
9528       lt_prog_compiler_can_build_shared=no
9529       ;;
9530
9531     uts4*)
9532       lt_prog_compiler_pic='-pic'
9533       lt_prog_compiler_static='-Bstatic'
9534       ;;
9535
9536     *)
9537       lt_prog_compiler_can_build_shared=no
9538       ;;
9539     esac
9540   fi
9541
9542 case $host_os in
9543   # For platforms that do not support PIC, -DPIC is meaningless:
9544   *djgpp*)
9545     lt_prog_compiler_pic=
9546     ;;
9547   *)
9548     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9549     ;;
9550 esac
9551
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9553 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9554 if ${lt_cv_prog_compiler_pic+:} false; then :
9555   $as_echo_n "(cached) " >&6
9556 else
9557   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9558 fi
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9560 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9561 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9562
9563 #
9564 # Check to make sure the PIC flag actually works.
9565 #
9566 if test -n "$lt_prog_compiler_pic"; then
9567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9569 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9570   $as_echo_n "(cached) " >&6
9571 else
9572   lt_cv_prog_compiler_pic_works=no
9573    ac_outfile=conftest.$ac_objext
9574    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9575    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9576    # Insert the option either (1) after the last *FLAGS variable, or
9577    # (2) before a word containing "conftest.", or (3) at the end.
9578    # Note that $ac_compile itself does not contain backslashes and begins
9579    # with a dollar sign (not a hyphen), so the echo should work correctly.
9580    # The option is referenced via a variable to avoid confusing sed.
9581    lt_compile=`echo "$ac_compile" | $SED \
9582    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9583    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9584    -e 's:$: $lt_compiler_flag:'`
9585    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9586    (eval "$lt_compile" 2>conftest.err)
9587    ac_status=$?
9588    cat conftest.err >&5
9589    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590    if (exit $ac_status) && test -s "$ac_outfile"; then
9591      # The compiler can only warn and ignore the option if not recognized
9592      # So say no if there are warnings other than the usual output.
9593      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9594      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9595      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9596        lt_cv_prog_compiler_pic_works=yes
9597      fi
9598    fi
9599    $RM conftest*
9600
9601 fi
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9603 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9604
9605 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9606     case $lt_prog_compiler_pic in
9607      "" | " "*) ;;
9608      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9609      esac
9610 else
9611     lt_prog_compiler_pic=
9612      lt_prog_compiler_can_build_shared=no
9613 fi
9614
9615 fi
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627 #
9628 # Check to make sure the static flag actually works.
9629 #
9630 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9632 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9633 if ${lt_cv_prog_compiler_static_works+:} false; then :
9634   $as_echo_n "(cached) " >&6
9635 else
9636   lt_cv_prog_compiler_static_works=no
9637    save_LDFLAGS=$LDFLAGS
9638    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9639    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9640    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9641      # The linker can only warn and ignore the option if not recognized
9642      # So say no if there are warnings
9643      if test -s conftest.err; then
9644        # Append any errors to the config.log.
9645        cat conftest.err 1>&5
9646        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9647        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9648        if diff conftest.exp conftest.er2 >/dev/null; then
9649          lt_cv_prog_compiler_static_works=yes
9650        fi
9651      else
9652        lt_cv_prog_compiler_static_works=yes
9653      fi
9654    fi
9655    $RM -r conftest*
9656    LDFLAGS=$save_LDFLAGS
9657
9658 fi
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9660 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9661
9662 if test yes = "$lt_cv_prog_compiler_static_works"; then
9663     :
9664 else
9665     lt_prog_compiler_static=
9666 fi
9667
9668
9669
9670
9671
9672
9673
9674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9675 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9676 if ${lt_cv_prog_compiler_c_o+:} false; then :
9677   $as_echo_n "(cached) " >&6
9678 else
9679   lt_cv_prog_compiler_c_o=no
9680    $RM -r conftest 2>/dev/null
9681    mkdir conftest
9682    cd conftest
9683    mkdir out
9684    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9685
9686    lt_compiler_flag="-o out/conftest2.$ac_objext"
9687    # Insert the option either (1) after the last *FLAGS variable, or
9688    # (2) before a word containing "conftest.", or (3) at the end.
9689    # Note that $ac_compile itself does not contain backslashes and begins
9690    # with a dollar sign (not a hyphen), so the echo should work correctly.
9691    lt_compile=`echo "$ac_compile" | $SED \
9692    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9694    -e 's:$: $lt_compiler_flag:'`
9695    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9696    (eval "$lt_compile" 2>out/conftest.err)
9697    ac_status=$?
9698    cat out/conftest.err >&5
9699    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9701    then
9702      # The compiler can only warn and ignore the option if not recognized
9703      # So say no if there are warnings
9704      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9705      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9706      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9707        lt_cv_prog_compiler_c_o=yes
9708      fi
9709    fi
9710    chmod u+w . 2>&5
9711    $RM conftest*
9712    # SGI C++ compiler will create directory out/ii_files/ for
9713    # template instantiation
9714    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9715    $RM out/* && rmdir out
9716    cd ..
9717    $RM -r conftest
9718    $RM conftest*
9719
9720 fi
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9722 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9723
9724
9725
9726
9727
9728
9729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9730 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9731 if ${lt_cv_prog_compiler_c_o+:} false; then :
9732   $as_echo_n "(cached) " >&6
9733 else
9734   lt_cv_prog_compiler_c_o=no
9735    $RM -r conftest 2>/dev/null
9736    mkdir conftest
9737    cd conftest
9738    mkdir out
9739    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9740
9741    lt_compiler_flag="-o out/conftest2.$ac_objext"
9742    # Insert the option either (1) after the last *FLAGS variable, or
9743    # (2) before a word containing "conftest.", or (3) at the end.
9744    # Note that $ac_compile itself does not contain backslashes and begins
9745    # with a dollar sign (not a hyphen), so the echo should work correctly.
9746    lt_compile=`echo "$ac_compile" | $SED \
9747    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9748    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9749    -e 's:$: $lt_compiler_flag:'`
9750    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9751    (eval "$lt_compile" 2>out/conftest.err)
9752    ac_status=$?
9753    cat out/conftest.err >&5
9754    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9756    then
9757      # The compiler can only warn and ignore the option if not recognized
9758      # So say no if there are warnings
9759      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9760      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9761      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9762        lt_cv_prog_compiler_c_o=yes
9763      fi
9764    fi
9765    chmod u+w . 2>&5
9766    $RM conftest*
9767    # SGI C++ compiler will create directory out/ii_files/ for
9768    # template instantiation
9769    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9770    $RM out/* && rmdir out
9771    cd ..
9772    $RM -r conftest
9773    $RM conftest*
9774
9775 fi
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9777 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9778
9779
9780
9781
9782 hard_links=nottested
9783 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9784   # do not overwrite the value of need_locks provided by the user
9785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9786 $as_echo_n "checking if we can lock with hard links... " >&6; }
9787   hard_links=yes
9788   $RM conftest*
9789   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9790   touch conftest.a
9791   ln conftest.a conftest.b 2>&5 || hard_links=no
9792   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9794 $as_echo "$hard_links" >&6; }
9795   if test no = "$hard_links"; then
9796     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9797 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9798     need_locks=warn
9799   fi
9800 else
9801   need_locks=no
9802 fi
9803
9804
9805
9806
9807
9808
9809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9810 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9811
9812   runpath_var=
9813   allow_undefined_flag=
9814   always_export_symbols=no
9815   archive_cmds=
9816   archive_expsym_cmds=
9817   compiler_needs_object=no
9818   enable_shared_with_static_runtimes=no
9819   export_dynamic_flag_spec=
9820   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9821   hardcode_automatic=no
9822   hardcode_direct=no
9823   hardcode_direct_absolute=no
9824   hardcode_libdir_flag_spec=
9825   hardcode_libdir_separator=
9826   hardcode_minus_L=no
9827   hardcode_shlibpath_var=unsupported
9828   inherit_rpath=no
9829   link_all_deplibs=unknown
9830   module_cmds=
9831   module_expsym_cmds=
9832   old_archive_from_new_cmds=
9833   old_archive_from_expsyms_cmds=
9834   thread_safe_flag_spec=
9835   whole_archive_flag_spec=
9836   # include_expsyms should be a list of space-separated symbols to be *always*
9837   # included in the symbol list
9838   include_expsyms=
9839   # exclude_expsyms can be an extended regexp of symbols to exclude
9840   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9841   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9842   # as well as any symbol that contains 'd'.
9843   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9844   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9845   # platforms (ab)use it in PIC code, but their linkers get confused if
9846   # the symbol is explicitly referenced.  Since portable code cannot
9847   # rely on this symbol name, it's probably fine to never include it in
9848   # preloaded symbol tables.
9849   # Exclude shared library initialization/finalization symbols.
9850   extract_expsyms_cmds=
9851
9852   case $host_os in
9853   cygwin* | mingw* | pw32* | cegcc*)
9854     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9855     # When not using gcc, we currently assume that we are using
9856     # Microsoft Visual C++.
9857     if test yes != "$GCC"; then
9858       with_gnu_ld=no
9859     fi
9860     ;;
9861   interix*)
9862     # we just hope/assume this is gcc and not c89 (= MSVC++)
9863     with_gnu_ld=yes
9864     ;;
9865   openbsd* | bitrig*)
9866     with_gnu_ld=no
9867     ;;
9868   esac
9869
9870   ld_shlibs=yes
9871
9872   # On some targets, GNU ld is compatible enough with the native linker
9873   # that we're better off using the native interface for both.
9874   lt_use_gnu_ld_interface=no
9875   if test yes = "$with_gnu_ld"; then
9876     case $host_os in
9877       aix*)
9878         # The AIX port of GNU ld has always aspired to compatibility
9879         # with the native linker.  However, as the warning in the GNU ld
9880         # block says, versions before 2.19.5* couldn't really create working
9881         # shared libraries, regardless of the interface used.
9882         case `$LD -v 2>&1` in
9883           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9884           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9885           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9886           *)
9887             lt_use_gnu_ld_interface=yes
9888             ;;
9889         esac
9890         ;;
9891       *)
9892         lt_use_gnu_ld_interface=yes
9893         ;;
9894     esac
9895   fi
9896
9897   if test yes = "$lt_use_gnu_ld_interface"; then
9898     # If archive_cmds runs LD, not CC, wlarc should be empty
9899     wlarc='$wl'
9900
9901     # Set some defaults for GNU ld with shared library support. These
9902     # are reset later if shared libraries are not supported. Putting them
9903     # here allows them to be overridden if necessary.
9904     runpath_var=LD_RUN_PATH
9905     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9906     export_dynamic_flag_spec='$wl--export-dynamic'
9907     # ancient GNU ld didn't support --whole-archive et. al.
9908     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9909       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9910     else
9911       whole_archive_flag_spec=
9912     fi
9913     supports_anon_versioning=no
9914     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9915       *GNU\ gold*) supports_anon_versioning=yes ;;
9916       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9917       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9918       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9919       *\ 2.11.*) ;; # other 2.11 versions
9920       *) supports_anon_versioning=yes ;;
9921     esac
9922
9923     # See if GNU ld supports shared libraries.
9924     case $host_os in
9925     aix[3-9]*)
9926       # On AIX/PPC, the GNU linker is very broken
9927       if test ia64 != "$host_cpu"; then
9928         ld_shlibs=no
9929         cat <<_LT_EOF 1>&2
9930
9931 *** Warning: the GNU linker, at least up to release 2.19, is reported
9932 *** to be unable to reliably create shared libraries on AIX.
9933 *** Therefore, libtool is disabling shared libraries support.  If you
9934 *** really care for shared libraries, you may want to install binutils
9935 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9936 *** You will then need to restart the configuration process.
9937
9938 _LT_EOF
9939       fi
9940       ;;
9941
9942     amigaos*)
9943       case $host_cpu in
9944       powerpc)
9945             # see comment about AmigaOS4 .so support
9946             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9947             archive_expsym_cmds=''
9948         ;;
9949       m68k)
9950             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)'
9951             hardcode_libdir_flag_spec='-L$libdir'
9952             hardcode_minus_L=yes
9953         ;;
9954       esac
9955       ;;
9956
9957     beos*)
9958       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9959         allow_undefined_flag=unsupported
9960         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9961         # support --undefined.  This deserves some investigation.  FIXME
9962         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9963       else
9964         ld_shlibs=no
9965       fi
9966       ;;
9967
9968     cygwin* | mingw* | pw32* | cegcc*)
9969       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9970       # as there is no search path for DLLs.
9971       hardcode_libdir_flag_spec='-L$libdir'
9972       export_dynamic_flag_spec='$wl--export-all-symbols'
9973       allow_undefined_flag=unsupported
9974       always_export_symbols=no
9975       enable_shared_with_static_runtimes=yes
9976       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9977       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9978
9979       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9980         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9981         # If the export-symbols file already is a .def file, use it as
9982         # is; otherwise, prepend EXPORTS...
9983         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9984           cp $export_symbols $output_objdir/$soname.def;
9985         else
9986           echo EXPORTS > $output_objdir/$soname.def;
9987           cat $export_symbols >> $output_objdir/$soname.def;
9988         fi~
9989         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9990       else
9991         ld_shlibs=no
9992       fi
9993       ;;
9994
9995     haiku*)
9996       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9997       link_all_deplibs=yes
9998       ;;
9999
10000     os2*)
10001       hardcode_libdir_flag_spec='-L$libdir'
10002       hardcode_minus_L=yes
10003       allow_undefined_flag=unsupported
10004       shrext_cmds=.dll
10005       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10006         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10007         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10008         $ECHO EXPORTS >> $output_objdir/$libname.def~
10009         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10010         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10011         emximp -o $lib $output_objdir/$libname.def'
10012       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10013         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10014         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10015         $ECHO EXPORTS >> $output_objdir/$libname.def~
10016         prefix_cmds="$SED"~
10017         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10018           prefix_cmds="$prefix_cmds -e 1d";
10019         fi~
10020         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10021         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10022         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10023         emximp -o $lib $output_objdir/$libname.def'
10024       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10025       enable_shared_with_static_runtimes=yes
10026       ;;
10027
10028     interix[3-9]*)
10029       hardcode_direct=no
10030       hardcode_shlibpath_var=no
10031       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10032       export_dynamic_flag_spec='$wl-E'
10033       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10034       # Instead, shared libraries are loaded at an image base (0x10000000 by
10035       # default) and relocated if they conflict, which is a slow very memory
10036       # consuming and fragmenting process.  To avoid this, we pick a random,
10037       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10038       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10039       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10040       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'
10041       ;;
10042
10043     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10044       tmp_diet=no
10045       if test linux-dietlibc = "$host_os"; then
10046         case $cc_basename in
10047           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10048         esac
10049       fi
10050       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10051          && test no = "$tmp_diet"
10052       then
10053         tmp_addflag=' $pic_flag'
10054         tmp_sharedflag='-shared'
10055         case $cc_basename,$host_cpu in
10056         pgcc*)                          # Portland Group C compiler
10057           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10058           tmp_addflag=' $pic_flag'
10059           ;;
10060         pgf77* | pgf90* | pgf95* | pgfortran*)
10061                                         # Portland Group f77 and f90 compilers
10062           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10063           tmp_addflag=' $pic_flag -Mnomain' ;;
10064         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10065           tmp_addflag=' -i_dynamic' ;;
10066         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10067           tmp_addflag=' -i_dynamic -nofor_main' ;;
10068         ifc* | ifort*)                  # Intel Fortran compiler
10069           tmp_addflag=' -nofor_main' ;;
10070         lf95*)                          # Lahey Fortran 8.1
10071           whole_archive_flag_spec=
10072           tmp_sharedflag='--shared' ;;
10073         nagfor*)                        # NAGFOR 5.3
10074           tmp_sharedflag='-Wl,-shared' ;;
10075         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10076           tmp_sharedflag='-qmkshrobj'
10077           tmp_addflag= ;;
10078         nvcc*)  # Cuda Compiler Driver 2.2
10079           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10080           compiler_needs_object=yes
10081           ;;
10082         esac
10083         case `$CC -V 2>&1 | sed 5q` in
10084         *Sun\ C*)                       # Sun C 5.9
10085           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10086           compiler_needs_object=yes
10087           tmp_sharedflag='-G' ;;
10088         *Sun\ F*)                       # Sun Fortran 8.3
10089           tmp_sharedflag='-G' ;;
10090         esac
10091         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10092
10093         if test yes = "$supports_anon_versioning"; then
10094           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10095             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10096             echo "local: *; };" >> $output_objdir/$libname.ver~
10097             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10098         fi
10099
10100         case $cc_basename in
10101         tcc*)
10102           export_dynamic_flag_spec='-rdynamic'
10103           ;;
10104         xlf* | bgf* | bgxlf* | mpixlf*)
10105           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10106           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10107           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10108           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10109           if test yes = "$supports_anon_versioning"; then
10110             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10111               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10112               echo "local: *; };" >> $output_objdir/$libname.ver~
10113               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10114           fi
10115           ;;
10116         esac
10117       else
10118         ld_shlibs=no
10119       fi
10120       ;;
10121
10122     netbsd*)
10123       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10124         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10125         wlarc=
10126       else
10127         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10128         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10129       fi
10130       ;;
10131
10132     solaris*)
10133       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10134         ld_shlibs=no
10135         cat <<_LT_EOF 1>&2
10136
10137 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10138 *** create shared libraries on Solaris systems.  Therefore, libtool
10139 *** is disabling shared libraries support.  We urge you to upgrade GNU
10140 *** binutils to release 2.9.1 or newer.  Another option is to modify
10141 *** your PATH or compiler configuration so that the native linker is
10142 *** used, and then restart.
10143
10144 _LT_EOF
10145       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10146         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10147         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10148       else
10149         ld_shlibs=no
10150       fi
10151       ;;
10152
10153     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10154       case `$LD -v 2>&1` in
10155         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10156         ld_shlibs=no
10157         cat <<_LT_EOF 1>&2
10158
10159 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10160 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10161 *** is disabling shared libraries support.  We urge you to upgrade GNU
10162 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10163 *** your PATH or compiler configuration so that the native linker is
10164 *** used, and then restart.
10165
10166 _LT_EOF
10167         ;;
10168         *)
10169           # For security reasons, it is highly recommended that you always
10170           # use absolute paths for naming shared libraries, and exclude the
10171           # DT_RUNPATH tag from executables and libraries.  But doing so
10172           # requires that you compile everything twice, which is a pain.
10173           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10174             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10175             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10176             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10177           else
10178             ld_shlibs=no
10179           fi
10180         ;;
10181       esac
10182       ;;
10183
10184     sunos4*)
10185       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10186       wlarc=
10187       hardcode_direct=yes
10188       hardcode_shlibpath_var=no
10189       ;;
10190
10191     *)
10192       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10193         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10194         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10195       else
10196         ld_shlibs=no
10197       fi
10198       ;;
10199     esac
10200
10201     if test no = "$ld_shlibs"; then
10202       runpath_var=
10203       hardcode_libdir_flag_spec=
10204       export_dynamic_flag_spec=
10205       whole_archive_flag_spec=
10206     fi
10207   else
10208     # PORTME fill in a description of your system's linker (not GNU ld)
10209     case $host_os in
10210     aix3*)
10211       allow_undefined_flag=unsupported
10212       always_export_symbols=yes
10213       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'
10214       # Note: this linker hardcodes the directories in LIBPATH if there
10215       # are no directories specified by -L.
10216       hardcode_minus_L=yes
10217       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10218         # Neither direct hardcoding nor static linking is supported with a
10219         # broken collect2.
10220         hardcode_direct=unsupported
10221       fi
10222       ;;
10223
10224     aix[4-9]*)
10225       if test ia64 = "$host_cpu"; then
10226         # On IA64, the linker does run time linking by default, so we don't
10227         # have to do anything special.
10228         aix_use_runtimelinking=no
10229         exp_sym_flag='-Bexport'
10230         no_entry_flag=
10231       else
10232         # If we're using GNU nm, then we don't want the "-C" option.
10233         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10234         # Without the "-l" option, or with the "-B" option, AIX nm treats
10235         # weak defined symbols like other global defined symbols, whereas
10236         # GNU nm marks them as "W".
10237         # While the 'weak' keyword is ignored in the Export File, we need
10238         # it in the Import File for the 'aix-soname' feature, so we have
10239         # to replace the "-B" option with "-P" for AIX nm.
10240         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10241           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10242         else
10243           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10244         fi
10245         aix_use_runtimelinking=no
10246
10247         # Test if we are trying to use run time linking or normal
10248         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10249         # have runtime linking enabled, and use it for executables.
10250         # For shared libraries, we enable/disable runtime linking
10251         # depending on the kind of the shared library created -
10252         # when "with_aix_soname,aix_use_runtimelinking" is:
10253         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10254         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10255         #            lib.a           static archive
10256         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10257         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10258         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10259         #            lib.a(lib.so.V) shared, rtl:no
10260         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10261         #            lib.a           static archive
10262         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10263           for ld_flag in $LDFLAGS; do
10264           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10265             aix_use_runtimelinking=yes
10266             break
10267           fi
10268           done
10269           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10270             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10271             # so we don't have lib.a shared libs to link our executables.
10272             # We have to force runtime linking in this case.
10273             aix_use_runtimelinking=yes
10274             LDFLAGS="$LDFLAGS -Wl,-brtl"
10275           fi
10276           ;;
10277         esac
10278
10279         exp_sym_flag='-bexport'
10280         no_entry_flag='-bnoentry'
10281       fi
10282
10283       # When large executables or shared objects are built, AIX ld can
10284       # have problems creating the table of contents.  If linking a library
10285       # or program results in "error TOC overflow" add -mminimal-toc to
10286       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10287       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10288
10289       archive_cmds=''
10290       hardcode_direct=yes
10291       hardcode_direct_absolute=yes
10292       hardcode_libdir_separator=':'
10293       link_all_deplibs=yes
10294       file_list_spec='$wl-f,'
10295       case $with_aix_soname,$aix_use_runtimelinking in
10296       aix,*) ;; # traditional, no import file
10297       svr4,* | *,yes) # use import file
10298         # The Import File defines what to hardcode.
10299         hardcode_direct=no
10300         hardcode_direct_absolute=no
10301         ;;
10302       esac
10303
10304       if test yes = "$GCC"; then
10305         case $host_os in aix4.[012]|aix4.[012].*)
10306         # We only want to do this on AIX 4.2 and lower, the check
10307         # below for broken collect2 doesn't work under 4.3+
10308           collect2name=`$CC -print-prog-name=collect2`
10309           if test -f "$collect2name" &&
10310            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10311           then
10312           # We have reworked collect2
10313           :
10314           else
10315           # We have old collect2
10316           hardcode_direct=unsupported
10317           # It fails to find uninstalled libraries when the uninstalled
10318           # path is not listed in the libpath.  Setting hardcode_minus_L
10319           # to unsupported forces relinking
10320           hardcode_minus_L=yes
10321           hardcode_libdir_flag_spec='-L$libdir'
10322           hardcode_libdir_separator=
10323           fi
10324           ;;
10325         esac
10326         shared_flag='-shared'
10327         if test yes = "$aix_use_runtimelinking"; then
10328           shared_flag="$shared_flag "'$wl-G'
10329         fi
10330         # Need to ensure runtime linking is disabled for the traditional
10331         # shared library, or the linker may eventually find shared libraries
10332         # /with/ Import File - we do not want to mix them.
10333         shared_flag_aix='-shared'
10334         shared_flag_svr4='-shared $wl-G'
10335       else
10336         # not using gcc
10337         if test ia64 = "$host_cpu"; then
10338         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10339         # chokes on -Wl,-G. The following line is correct:
10340           shared_flag='-G'
10341         else
10342           if test yes = "$aix_use_runtimelinking"; then
10343             shared_flag='$wl-G'
10344           else
10345             shared_flag='$wl-bM:SRE'
10346           fi
10347           shared_flag_aix='$wl-bM:SRE'
10348           shared_flag_svr4='$wl-G'
10349         fi
10350       fi
10351
10352       export_dynamic_flag_spec='$wl-bexpall'
10353       # It seems that -bexpall does not export symbols beginning with
10354       # underscore (_), so it is better to generate a list of symbols to export.
10355       always_export_symbols=yes
10356       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10357         # Warning - without using the other runtime loading flags (-brtl),
10358         # -berok will link without error, but may produce a broken library.
10359         allow_undefined_flag='-berok'
10360         # Determine the default libpath from the value encoded in an
10361         # empty executable.
10362         if test set = "${lt_cv_aix_libpath+set}"; then
10363   aix_libpath=$lt_cv_aix_libpath
10364 else
10365   if ${lt_cv_aix_libpath_+:} false; then :
10366   $as_echo_n "(cached) " >&6
10367 else
10368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h.  */
10370
10371 int
10372 main ()
10373 {
10374
10375   ;
10376   return 0;
10377 }
10378 _ACEOF
10379 if ac_fn_c_try_link "$LINENO"; then :
10380
10381   lt_aix_libpath_sed='
10382       /Import File Strings/,/^$/ {
10383           /^0/ {
10384               s/^0  *\([^ ]*\) *$/\1/
10385               p
10386           }
10387       }'
10388   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10389   # Check for a 64-bit object if we didn't find anything.
10390   if test -z "$lt_cv_aix_libpath_"; then
10391     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10392   fi
10393 fi
10394 rm -f core conftest.err conftest.$ac_objext \
10395     conftest$ac_exeext conftest.$ac_ext
10396   if test -z "$lt_cv_aix_libpath_"; then
10397     lt_cv_aix_libpath_=/usr/lib:/lib
10398   fi
10399
10400 fi
10401
10402   aix_libpath=$lt_cv_aix_libpath_
10403 fi
10404
10405         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10406         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10407       else
10408         if test ia64 = "$host_cpu"; then
10409           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10410           allow_undefined_flag="-z nodefs"
10411           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"
10412         else
10413          # Determine the default libpath from the value encoded in an
10414          # empty executable.
10415          if test set = "${lt_cv_aix_libpath+set}"; then
10416   aix_libpath=$lt_cv_aix_libpath
10417 else
10418   if ${lt_cv_aix_libpath_+:} false; then :
10419   $as_echo_n "(cached) " >&6
10420 else
10421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h.  */
10423
10424 int
10425 main ()
10426 {
10427
10428   ;
10429   return 0;
10430 }
10431 _ACEOF
10432 if ac_fn_c_try_link "$LINENO"; then :
10433
10434   lt_aix_libpath_sed='
10435       /Import File Strings/,/^$/ {
10436           /^0/ {
10437               s/^0  *\([^ ]*\) *$/\1/
10438               p
10439           }
10440       }'
10441   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10442   # Check for a 64-bit object if we didn't find anything.
10443   if test -z "$lt_cv_aix_libpath_"; then
10444     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10445   fi
10446 fi
10447 rm -f core conftest.err conftest.$ac_objext \
10448     conftest$ac_exeext conftest.$ac_ext
10449   if test -z "$lt_cv_aix_libpath_"; then
10450     lt_cv_aix_libpath_=/usr/lib:/lib
10451   fi
10452
10453 fi
10454
10455   aix_libpath=$lt_cv_aix_libpath_
10456 fi
10457
10458          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10459           # Warning - without using the other run time loading flags,
10460           # -berok will link without error, but may produce a broken library.
10461           no_undefined_flag=' $wl-bernotok'
10462           allow_undefined_flag=' $wl-berok'
10463           if test yes = "$with_gnu_ld"; then
10464             # We only use this code for GNU lds that support --whole-archive.
10465             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10466           else
10467             # Exported symbols can be pulled into shared objects from archives
10468             whole_archive_flag_spec='$convenience'
10469           fi
10470           archive_cmds_need_lc=yes
10471           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10472           # -brtl affects multiple linker settings, -berok does not and is overridden later
10473           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10474           if test svr4 != "$with_aix_soname"; then
10475             # This is similar to how AIX traditionally builds its shared libraries.
10476             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10477           fi
10478           if test aix != "$with_aix_soname"; then
10479             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10480           else
10481             # used by -dlpreopen to get the symbols
10482             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10483           fi
10484           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10485         fi
10486       fi
10487       ;;
10488
10489     amigaos*)
10490       case $host_cpu in
10491       powerpc)
10492             # see comment about AmigaOS4 .so support
10493             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10494             archive_expsym_cmds=''
10495         ;;
10496       m68k)
10497             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)'
10498             hardcode_libdir_flag_spec='-L$libdir'
10499             hardcode_minus_L=yes
10500         ;;
10501       esac
10502       ;;
10503
10504     bsdi[45]*)
10505       export_dynamic_flag_spec=-rdynamic
10506       ;;
10507
10508     cygwin* | mingw* | pw32* | cegcc*)
10509       # When not using gcc, we currently assume that we are using
10510       # Microsoft Visual C++.
10511       # hardcode_libdir_flag_spec is actually meaningless, as there is
10512       # no search path for DLLs.
10513       case $cc_basename in
10514       cl*)
10515         # Native MSVC
10516         hardcode_libdir_flag_spec=' '
10517         allow_undefined_flag=unsupported
10518         always_export_symbols=yes
10519         file_list_spec='@'
10520         # Tell ltmain to make .lib files, not .a files.
10521         libext=lib
10522         # Tell ltmain to make .dll files, not .so files.
10523         shrext_cmds=.dll
10524         # FIXME: Setting linknames here is a bad hack.
10525         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10526         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10527             cp "$export_symbols" "$output_objdir/$soname.def";
10528             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10529           else
10530             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10531           fi~
10532           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10533           linknames='
10534         # The linker will not automatically build a static lib if we build a DLL.
10535         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10536         enable_shared_with_static_runtimes=yes
10537         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10538         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10539         # Don't use ranlib
10540         old_postinstall_cmds='chmod 644 $oldlib'
10541         postlink_cmds='lt_outputfile="@OUTPUT@"~
10542           lt_tool_outputfile="@TOOL_OUTPUT@"~
10543           case $lt_outputfile in
10544             *.exe|*.EXE) ;;
10545             *)
10546               lt_outputfile=$lt_outputfile.exe
10547               lt_tool_outputfile=$lt_tool_outputfile.exe
10548               ;;
10549           esac~
10550           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10551             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10552             $RM "$lt_outputfile.manifest";
10553           fi'
10554         ;;
10555       *)
10556         # Assume MSVC wrapper
10557         hardcode_libdir_flag_spec=' '
10558         allow_undefined_flag=unsupported
10559         # Tell ltmain to make .lib files, not .a files.
10560         libext=lib
10561         # Tell ltmain to make .dll files, not .so files.
10562         shrext_cmds=.dll
10563         # FIXME: Setting linknames here is a bad hack.
10564         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10565         # The linker will automatically build a .lib file if we build a DLL.
10566         old_archive_from_new_cmds='true'
10567         # FIXME: Should let the user specify the lib program.
10568         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10569         enable_shared_with_static_runtimes=yes
10570         ;;
10571       esac
10572       ;;
10573
10574     darwin* | rhapsody*)
10575
10576
10577   archive_cmds_need_lc=no
10578   hardcode_direct=no
10579   hardcode_automatic=yes
10580   hardcode_shlibpath_var=unsupported
10581   if test yes = "$lt_cv_ld_force_load"; then
10582     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10583
10584   else
10585     whole_archive_flag_spec=''
10586   fi
10587   link_all_deplibs=yes
10588   allow_undefined_flag=$_lt_dar_allow_undefined
10589   case $cc_basename in
10590      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10591      *) _lt_dar_can_shared=$GCC ;;
10592   esac
10593   if test yes = "$_lt_dar_can_shared"; then
10594     output_verbose_link_cmd=func_echo_all
10595     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10596     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10597     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"
10598     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"
10599
10600   else
10601   ld_shlibs=no
10602   fi
10603
10604       ;;
10605
10606     dgux*)
10607       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608       hardcode_libdir_flag_spec='-L$libdir'
10609       hardcode_shlibpath_var=no
10610       ;;
10611
10612     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10613     # support.  Future versions do this automatically, but an explicit c++rt0.o
10614     # does not break anything, and helps significantly (at the cost of a little
10615     # extra space).
10616     freebsd2.2*)
10617       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10618       hardcode_libdir_flag_spec='-R$libdir'
10619       hardcode_direct=yes
10620       hardcode_shlibpath_var=no
10621       ;;
10622
10623     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10624     freebsd2.*)
10625       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10626       hardcode_direct=yes
10627       hardcode_minus_L=yes
10628       hardcode_shlibpath_var=no
10629       ;;
10630
10631     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10632     freebsd* | dragonfly*)
10633       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10634       hardcode_libdir_flag_spec='-R$libdir'
10635       hardcode_direct=yes
10636       hardcode_shlibpath_var=no
10637       ;;
10638
10639     hpux9*)
10640       if test yes = "$GCC"; then
10641         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10642       else
10643         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10644       fi
10645       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10646       hardcode_libdir_separator=:
10647       hardcode_direct=yes
10648
10649       # hardcode_minus_L: Not really in the search PATH,
10650       # but as the default location of the library.
10651       hardcode_minus_L=yes
10652       export_dynamic_flag_spec='$wl-E'
10653       ;;
10654
10655     hpux10*)
10656       if test yes,no = "$GCC,$with_gnu_ld"; then
10657         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10658       else
10659         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10660       fi
10661       if test no = "$with_gnu_ld"; then
10662         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10663         hardcode_libdir_separator=:
10664         hardcode_direct=yes
10665         hardcode_direct_absolute=yes
10666         export_dynamic_flag_spec='$wl-E'
10667         # hardcode_minus_L: Not really in the search PATH,
10668         # but as the default location of the library.
10669         hardcode_minus_L=yes
10670       fi
10671       ;;
10672
10673     hpux11*)
10674       if test yes,no = "$GCC,$with_gnu_ld"; then
10675         case $host_cpu in
10676         hppa*64*)
10677           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10678           ;;
10679         ia64*)
10680           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10681           ;;
10682         *)
10683           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10684           ;;
10685         esac
10686       else
10687         case $host_cpu in
10688         hppa*64*)
10689           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10690           ;;
10691         ia64*)
10692           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10693           ;;
10694         *)
10695
10696           # Older versions of the 11.00 compiler do not understand -b yet
10697           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10698           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10699 $as_echo_n "checking if $CC understands -b... " >&6; }
10700 if ${lt_cv_prog_compiler__b+:} false; then :
10701   $as_echo_n "(cached) " >&6
10702 else
10703   lt_cv_prog_compiler__b=no
10704    save_LDFLAGS=$LDFLAGS
10705    LDFLAGS="$LDFLAGS -b"
10706    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10707    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10708      # The linker can only warn and ignore the option if not recognized
10709      # So say no if there are warnings
10710      if test -s conftest.err; then
10711        # Append any errors to the config.log.
10712        cat conftest.err 1>&5
10713        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10714        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10715        if diff conftest.exp conftest.er2 >/dev/null; then
10716          lt_cv_prog_compiler__b=yes
10717        fi
10718      else
10719        lt_cv_prog_compiler__b=yes
10720      fi
10721    fi
10722    $RM -r conftest*
10723    LDFLAGS=$save_LDFLAGS
10724
10725 fi
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10727 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10728
10729 if test yes = "$lt_cv_prog_compiler__b"; then
10730     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10731 else
10732     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10733 fi
10734
10735           ;;
10736         esac
10737       fi
10738       if test no = "$with_gnu_ld"; then
10739         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10740         hardcode_libdir_separator=:
10741
10742         case $host_cpu in
10743         hppa*64*|ia64*)
10744           hardcode_direct=no
10745           hardcode_shlibpath_var=no
10746           ;;
10747         *)
10748           hardcode_direct=yes
10749           hardcode_direct_absolute=yes
10750           export_dynamic_flag_spec='$wl-E'
10751
10752           # hardcode_minus_L: Not really in the search PATH,
10753           # but as the default location of the library.
10754           hardcode_minus_L=yes
10755           ;;
10756         esac
10757       fi
10758       ;;
10759
10760     irix5* | irix6* | nonstopux*)
10761       if test yes = "$GCC"; then
10762         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10763         # Try to use the -exported_symbol ld option, if it does not
10764         # work, assume that -exports_file does not work either and
10765         # implicitly export all symbols.
10766         # This should be the same for all languages, so no per-tag cache variable.
10767         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10768 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10769 if ${lt_cv_irix_exported_symbol+:} false; then :
10770   $as_echo_n "(cached) " >&6
10771 else
10772   save_LDFLAGS=$LDFLAGS
10773            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10774            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h.  */
10776 int foo (void) { return 0; }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779   lt_cv_irix_exported_symbol=yes
10780 else
10781   lt_cv_irix_exported_symbol=no
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784     conftest$ac_exeext conftest.$ac_ext
10785            LDFLAGS=$save_LDFLAGS
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10788 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10789         if test yes = "$lt_cv_irix_exported_symbol"; then
10790           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10791         fi
10792       else
10793         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10794         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10795       fi
10796       archive_cmds_need_lc='no'
10797       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10798       hardcode_libdir_separator=:
10799       inherit_rpath=yes
10800       link_all_deplibs=yes
10801       ;;
10802
10803     linux*)
10804       case $cc_basename in
10805       tcc*)
10806         # Fabrice Bellard et al's Tiny C Compiler
10807         ld_shlibs=yes
10808         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10809         ;;
10810       esac
10811       ;;
10812
10813     netbsd*)
10814       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10815         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10816       else
10817         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10818       fi
10819       hardcode_libdir_flag_spec='-R$libdir'
10820       hardcode_direct=yes
10821       hardcode_shlibpath_var=no
10822       ;;
10823
10824     newsos6)
10825       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826       hardcode_direct=yes
10827       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10828       hardcode_libdir_separator=:
10829       hardcode_shlibpath_var=no
10830       ;;
10831
10832     *nto* | *qnx*)
10833       ;;
10834
10835     openbsd* | bitrig*)
10836       if test -f /usr/libexec/ld.so; then
10837         hardcode_direct=yes
10838         hardcode_shlibpath_var=no
10839         hardcode_direct_absolute=yes
10840         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10841           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10842           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10843           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10844           export_dynamic_flag_spec='$wl-E'
10845         else
10846           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10847           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10848         fi
10849       else
10850         ld_shlibs=no
10851       fi
10852       ;;
10853
10854     os2*)
10855       hardcode_libdir_flag_spec='-L$libdir'
10856       hardcode_minus_L=yes
10857       allow_undefined_flag=unsupported
10858       shrext_cmds=.dll
10859       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10860         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10861         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10862         $ECHO EXPORTS >> $output_objdir/$libname.def~
10863         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10864         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10865         emximp -o $lib $output_objdir/$libname.def'
10866       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10867         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10868         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10869         $ECHO EXPORTS >> $output_objdir/$libname.def~
10870         prefix_cmds="$SED"~
10871         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10872           prefix_cmds="$prefix_cmds -e 1d";
10873         fi~
10874         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10875         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10876         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10877         emximp -o $lib $output_objdir/$libname.def'
10878       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10879       enable_shared_with_static_runtimes=yes
10880       ;;
10881
10882     osf3*)
10883       if test yes = "$GCC"; then
10884         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10885         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10886       else
10887         allow_undefined_flag=' -expect_unresolved \*'
10888         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10889       fi
10890       archive_cmds_need_lc='no'
10891       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10892       hardcode_libdir_separator=:
10893       ;;
10894
10895     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10896       if test yes = "$GCC"; then
10897         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10898         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10899         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10900       else
10901         allow_undefined_flag=' -expect_unresolved \*'
10902         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10903         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~
10904           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10905
10906         # Both c and cxx compiler support -rpath directly
10907         hardcode_libdir_flag_spec='-rpath $libdir'
10908       fi
10909       archive_cmds_need_lc='no'
10910       hardcode_libdir_separator=:
10911       ;;
10912
10913     solaris*)
10914       no_undefined_flag=' -z defs'
10915       if test yes = "$GCC"; then
10916         wlarc='$wl'
10917         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10918         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10919           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10920       else
10921         case `$CC -V 2>&1` in
10922         *"Compilers 5.0"*)
10923           wlarc=''
10924           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10925           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10926             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10927           ;;
10928         *)
10929           wlarc='$wl'
10930           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10931           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10932             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10933           ;;
10934         esac
10935       fi
10936       hardcode_libdir_flag_spec='-R$libdir'
10937       hardcode_shlibpath_var=no
10938       case $host_os in
10939       solaris2.[0-5] | solaris2.[0-5].*) ;;
10940       *)
10941         # The compiler driver will combine and reorder linker options,
10942         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10943         # but is careful enough not to reorder.
10944         # Supported since Solaris 2.6 (maybe 2.5.1?)
10945         if test yes = "$GCC"; then
10946           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10947         else
10948           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10949         fi
10950         ;;
10951       esac
10952       link_all_deplibs=yes
10953       ;;
10954
10955     sunos4*)
10956       if test sequent = "$host_vendor"; then
10957         # Use $CC to link under sequent, because it throws in some extra .o
10958         # files that make .init and .fini sections work.
10959         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10960       else
10961         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10962       fi
10963       hardcode_libdir_flag_spec='-L$libdir'
10964       hardcode_direct=yes
10965       hardcode_minus_L=yes
10966       hardcode_shlibpath_var=no
10967       ;;
10968
10969     sysv4)
10970       case $host_vendor in
10971         sni)
10972           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973           hardcode_direct=yes # is this really true???
10974         ;;
10975         siemens)
10976           ## LD is ld it makes a PLAMLIB
10977           ## CC just makes a GrossModule.
10978           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10979           reload_cmds='$CC -r -o $output$reload_objs'
10980           hardcode_direct=no
10981         ;;
10982         motorola)
10983           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10985         ;;
10986       esac
10987       runpath_var='LD_RUN_PATH'
10988       hardcode_shlibpath_var=no
10989       ;;
10990
10991     sysv4.3*)
10992       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10993       hardcode_shlibpath_var=no
10994       export_dynamic_flag_spec='-Bexport'
10995       ;;
10996
10997     sysv4*MP*)
10998       if test -d /usr/nec; then
10999         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000         hardcode_shlibpath_var=no
11001         runpath_var=LD_RUN_PATH
11002         hardcode_runpath_var=yes
11003         ld_shlibs=yes
11004       fi
11005       ;;
11006
11007     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11008       no_undefined_flag='$wl-z,text'
11009       archive_cmds_need_lc=no
11010       hardcode_shlibpath_var=no
11011       runpath_var='LD_RUN_PATH'
11012
11013       if test yes = "$GCC"; then
11014         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11016       else
11017         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11019       fi
11020       ;;
11021
11022     sysv5* | sco3.2v5* | sco5v6*)
11023       # Note: We CANNOT use -z defs as we might desire, because we do not
11024       # link with -lc, and that would cause any symbols used from libc to
11025       # always be unresolved, which means just about no library would
11026       # ever link correctly.  If we're not using GNU ld we use -z text
11027       # though, which does catch some bad symbols but isn't as heavy-handed
11028       # as -z defs.
11029       no_undefined_flag='$wl-z,text'
11030       allow_undefined_flag='$wl-z,nodefs'
11031       archive_cmds_need_lc=no
11032       hardcode_shlibpath_var=no
11033       hardcode_libdir_flag_spec='$wl-R,$libdir'
11034       hardcode_libdir_separator=':'
11035       link_all_deplibs=yes
11036       export_dynamic_flag_spec='$wl-Bexport'
11037       runpath_var='LD_RUN_PATH'
11038
11039       if test yes = "$GCC"; then
11040         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11042       else
11043         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11044         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11045       fi
11046       ;;
11047
11048     uts4*)
11049       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11050       hardcode_libdir_flag_spec='-L$libdir'
11051       hardcode_shlibpath_var=no
11052       ;;
11053
11054     *)
11055       ld_shlibs=no
11056       ;;
11057     esac
11058
11059     if test sni = "$host_vendor"; then
11060       case $host in
11061       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11062         export_dynamic_flag_spec='$wl-Blargedynsym'
11063         ;;
11064       esac
11065     fi
11066   fi
11067
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11069 $as_echo "$ld_shlibs" >&6; }
11070 test no = "$ld_shlibs" && can_build_shared=no
11071
11072 with_gnu_ld=$with_gnu_ld
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088 #
11089 # Do we need to explicitly link libc?
11090 #
11091 case "x$archive_cmds_need_lc" in
11092 x|xyes)
11093   # Assume -lc should be added
11094   archive_cmds_need_lc=yes
11095
11096   if test yes,yes = "$GCC,$enable_shared"; then
11097     case $archive_cmds in
11098     *'~'*)
11099       # FIXME: we may have to deal with multi-command sequences.
11100       ;;
11101     '$CC '*)
11102       # Test whether the compiler implicitly links with -lc since on some
11103       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11104       # to ld, don't add -lc before -lgcc.
11105       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11106 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11107 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11108   $as_echo_n "(cached) " >&6
11109 else
11110   $RM conftest*
11111         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11112
11113         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11114   (eval $ac_compile) 2>&5
11115   ac_status=$?
11116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11117   test $ac_status = 0; } 2>conftest.err; then
11118           soname=conftest
11119           lib=conftest
11120           libobjs=conftest.$ac_objext
11121           deplibs=
11122           wl=$lt_prog_compiler_wl
11123           pic_flag=$lt_prog_compiler_pic
11124           compiler_flags=-v
11125           linker_flags=-v
11126           verstring=
11127           output_objdir=.
11128           libname=conftest
11129           lt_save_allow_undefined_flag=$allow_undefined_flag
11130           allow_undefined_flag=
11131           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11132   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11133   ac_status=$?
11134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11135   test $ac_status = 0; }
11136           then
11137             lt_cv_archive_cmds_need_lc=no
11138           else
11139             lt_cv_archive_cmds_need_lc=yes
11140           fi
11141           allow_undefined_flag=$lt_save_allow_undefined_flag
11142         else
11143           cat conftest.err 1>&5
11144         fi
11145         $RM conftest*
11146
11147 fi
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11149 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11150       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11151       ;;
11152     esac
11153   fi
11154   ;;
11155 esac
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11309 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11310
11311 if test yes = "$GCC"; then
11312   case $host_os in
11313     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11314     *) lt_awk_arg='/^libraries:/' ;;
11315   esac
11316   case $host_os in
11317     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11318     *) lt_sed_strip_eq='s|=/|/|g' ;;
11319   esac
11320   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11321   case $lt_search_path_spec in
11322   *\;*)
11323     # if the path contains ";" then we assume it to be the separator
11324     # otherwise default to the standard path separator (i.e. ":") - it is
11325     # assumed that no part of a normal pathname contains ";" but that should
11326     # okay in the real world where ";" in dirpaths is itself problematic.
11327     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11328     ;;
11329   *)
11330     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11331     ;;
11332   esac
11333   # Ok, now we have the path, separated by spaces, we can step through it
11334   # and add multilib dir if necessary...
11335   lt_tmp_lt_search_path_spec=
11336   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11337   # ...but if some path component already ends with the multilib dir we assume
11338   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11339   case "$lt_multi_os_dir; $lt_search_path_spec " in
11340   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11341     lt_multi_os_dir=
11342     ;;
11343   esac
11344   for lt_sys_path in $lt_search_path_spec; do
11345     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11346       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11347     elif test -n "$lt_multi_os_dir"; then
11348       test -d "$lt_sys_path" && \
11349         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11350     fi
11351   done
11352   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11353 BEGIN {RS = " "; FS = "/|\n";} {
11354   lt_foo = "";
11355   lt_count = 0;
11356   for (lt_i = NF; lt_i > 0; lt_i--) {
11357     if ($lt_i != "" && $lt_i != ".") {
11358       if ($lt_i == "..") {
11359         lt_count++;
11360       } else {
11361         if (lt_count == 0) {
11362           lt_foo = "/" $lt_i lt_foo;
11363         } else {
11364           lt_count--;
11365         }
11366       }
11367     }
11368   }
11369   if (lt_foo != "") { lt_freq[lt_foo]++; }
11370   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11371 }'`
11372   # AWK program above erroneously prepends '/' to C:/dos/paths
11373   # for these hosts.
11374   case $host_os in
11375     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11376       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11377   esac
11378   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11379 else
11380   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11381 fi
11382 library_names_spec=
11383 libname_spec='lib$name'
11384 soname_spec=
11385 shrext_cmds=.so
11386 postinstall_cmds=
11387 postuninstall_cmds=
11388 finish_cmds=
11389 finish_eval=
11390 shlibpath_var=
11391 shlibpath_overrides_runpath=unknown
11392 version_type=none
11393 dynamic_linker="$host_os ld.so"
11394 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11395 need_lib_prefix=unknown
11396 hardcode_into_libs=no
11397
11398 # when you set need_version to no, make sure it does not cause -set_version
11399 # flags to be left without arguments
11400 need_version=unknown
11401
11402
11403
11404 case $host_os in
11405 aix3*)
11406   version_type=linux # correct to gnu/linux during the next big refactor
11407   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11408   shlibpath_var=LIBPATH
11409
11410   # AIX 3 has no versioning support, so we append a major version to the name.
11411   soname_spec='$libname$release$shared_ext$major'
11412   ;;
11413
11414 aix[4-9]*)
11415   version_type=linux # correct to gnu/linux during the next big refactor
11416   need_lib_prefix=no
11417   need_version=no
11418   hardcode_into_libs=yes
11419   if test ia64 = "$host_cpu"; then
11420     # AIX 5 supports IA64
11421     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11422     shlibpath_var=LD_LIBRARY_PATH
11423   else
11424     # With GCC up to 2.95.x, collect2 would create an import file
11425     # for dependence libraries.  The import file would start with
11426     # the line '#! .'.  This would cause the generated library to
11427     # depend on '.', always an invalid library.  This was fixed in
11428     # development snapshots of GCC prior to 3.0.
11429     case $host_os in
11430       aix4 | aix4.[01] | aix4.[01].*)
11431       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11432            echo ' yes '
11433            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11434         :
11435       else
11436         can_build_shared=no
11437       fi
11438       ;;
11439     esac
11440     # Using Import Files as archive members, it is possible to support
11441     # filename-based versioning of shared library archives on AIX. While
11442     # this would work for both with and without runtime linking, it will
11443     # prevent static linking of such archives. So we do filename-based
11444     # shared library versioning with .so extension only, which is used
11445     # when both runtime linking and shared linking is enabled.
11446     # Unfortunately, runtime linking may impact performance, so we do
11447     # not want this to be the default eventually. Also, we use the
11448     # versioned .so libs for executables only if there is the -brtl
11449     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11450     # To allow for filename-based versioning support, we need to create
11451     # libNAME.so.V as an archive file, containing:
11452     # *) an Import File, referring to the versioned filename of the
11453     #    archive as well as the shared archive member, telling the
11454     #    bitwidth (32 or 64) of that shared object, and providing the
11455     #    list of exported symbols of that shared object, eventually
11456     #    decorated with the 'weak' keyword
11457     # *) the shared object with the F_LOADONLY flag set, to really avoid
11458     #    it being seen by the linker.
11459     # At run time we better use the real file rather than another symlink,
11460     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11461
11462     case $with_aix_soname,$aix_use_runtimelinking in
11463     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11464     # soname into executable. Probably we can add versioning support to
11465     # collect2, so additional links can be useful in future.
11466     aix,yes) # traditional libtool
11467       dynamic_linker='AIX unversionable lib.so'
11468       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11469       # instead of lib<name>.a to let people know that these are not
11470       # typical AIX shared libraries.
11471       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11472       ;;
11473     aix,no) # traditional AIX only
11474       dynamic_linker='AIX lib.a(lib.so.V)'
11475       # We preserve .a as extension for shared libraries through AIX4.2
11476       # and later when we are not doing run time linking.
11477       library_names_spec='$libname$release.a $libname.a'
11478       soname_spec='$libname$release$shared_ext$major'
11479       ;;
11480     svr4,*) # full svr4 only
11481       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11482       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11483       # We do not specify a path in Import Files, so LIBPATH fires.
11484       shlibpath_overrides_runpath=yes
11485       ;;
11486     *,yes) # both, prefer svr4
11487       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11488       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11489       # unpreferred sharedlib libNAME.a needs extra handling
11490       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11491       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11492       # We do not specify a path in Import Files, so LIBPATH fires.
11493       shlibpath_overrides_runpath=yes
11494       ;;
11495     *,no) # both, prefer aix
11496       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11497       library_names_spec='$libname$release.a $libname.a'
11498       soname_spec='$libname$release$shared_ext$major'
11499       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11500       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11501       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11502       ;;
11503     esac
11504     shlibpath_var=LIBPATH
11505   fi
11506   ;;
11507
11508 amigaos*)
11509   case $host_cpu in
11510   powerpc)
11511     # Since July 2007 AmigaOS4 officially supports .so libraries.
11512     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11513     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11514     ;;
11515   m68k)
11516     library_names_spec='$libname.ixlibrary $libname.a'
11517     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11518     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11519     ;;
11520   esac
11521   ;;
11522
11523 beos*)
11524   library_names_spec='$libname$shared_ext'
11525   dynamic_linker="$host_os ld.so"
11526   shlibpath_var=LIBRARY_PATH
11527   ;;
11528
11529 bsdi[45]*)
11530   version_type=linux # correct to gnu/linux during the next big refactor
11531   need_version=no
11532   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11533   soname_spec='$libname$release$shared_ext$major'
11534   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11535   shlibpath_var=LD_LIBRARY_PATH
11536   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11537   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11538   # the default ld.so.conf also contains /usr/contrib/lib and
11539   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11540   # libtool to hard-code these into programs
11541   ;;
11542
11543 cygwin* | mingw* | pw32* | cegcc*)
11544   version_type=windows
11545   shrext_cmds=.dll
11546   need_version=no
11547   need_lib_prefix=no
11548
11549   case $GCC,$cc_basename in
11550   yes,*)
11551     # gcc
11552     library_names_spec='$libname.dll.a'
11553     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11554     postinstall_cmds='base_file=`basename \$file`~
11555       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11556       dldir=$destdir/`dirname \$dlpath`~
11557       test -d \$dldir || mkdir -p \$dldir~
11558       $install_prog $dir/$dlname \$dldir/$dlname~
11559       chmod a+x \$dldir/$dlname~
11560       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11561         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11562       fi'
11563     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11564       dlpath=$dir/\$dldll~
11565        $RM \$dlpath'
11566     shlibpath_overrides_runpath=yes
11567
11568     case $host_os in
11569     cygwin*)
11570       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11571       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11572
11573       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11574       ;;
11575     mingw* | cegcc*)
11576       # MinGW DLLs use traditional 'lib' prefix
11577       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11578       ;;
11579     pw32*)
11580       # pw32 DLLs use 'pw' prefix rather than 'lib'
11581       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11582       ;;
11583     esac
11584     dynamic_linker='Win32 ld.exe'
11585     ;;
11586
11587   *,cl*)
11588     # Native MSVC
11589     libname_spec='$name'
11590     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11591     library_names_spec='$libname.dll.lib'
11592
11593     case $build_os in
11594     mingw*)
11595       sys_lib_search_path_spec=
11596       lt_save_ifs=$IFS
11597       IFS=';'
11598       for lt_path in $LIB
11599       do
11600         IFS=$lt_save_ifs
11601         # Let DOS variable expansion print the short 8.3 style file name.
11602         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11603         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11604       done
11605       IFS=$lt_save_ifs
11606       # Convert to MSYS style.
11607       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11608       ;;
11609     cygwin*)
11610       # Convert to unix form, then to dos form, then back to unix form
11611       # but this time dos style (no spaces!) so that the unix form looks
11612       # like /cygdrive/c/PROGRA~1:/cygdr...
11613       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11614       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11615       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11616       ;;
11617     *)
11618       sys_lib_search_path_spec=$LIB
11619       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11620         # It is most probably a Windows format PATH.
11621         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11622       else
11623         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11624       fi
11625       # FIXME: find the short name or the path components, as spaces are
11626       # common. (e.g. "Program Files" -> "PROGRA~1")
11627       ;;
11628     esac
11629
11630     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11631     postinstall_cmds='base_file=`basename \$file`~
11632       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11633       dldir=$destdir/`dirname \$dlpath`~
11634       test -d \$dldir || mkdir -p \$dldir~
11635       $install_prog $dir/$dlname \$dldir/$dlname'
11636     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11637       dlpath=$dir/\$dldll~
11638        $RM \$dlpath'
11639     shlibpath_overrides_runpath=yes
11640     dynamic_linker='Win32 link.exe'
11641     ;;
11642
11643   *)
11644     # Assume MSVC wrapper
11645     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11646     dynamic_linker='Win32 ld.exe'
11647     ;;
11648   esac
11649   # FIXME: first we should search . and the directory the executable is in
11650   shlibpath_var=PATH
11651   ;;
11652
11653 darwin* | rhapsody*)
11654   dynamic_linker="$host_os dyld"
11655   version_type=darwin
11656   need_lib_prefix=no
11657   need_version=no
11658   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11659   soname_spec='$libname$release$major$shared_ext'
11660   shlibpath_overrides_runpath=yes
11661   shlibpath_var=DYLD_LIBRARY_PATH
11662   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11663
11664   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11665   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11666   ;;
11667
11668 dgux*)
11669   version_type=linux # correct to gnu/linux during the next big refactor
11670   need_lib_prefix=no
11671   need_version=no
11672   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11673   soname_spec='$libname$release$shared_ext$major'
11674   shlibpath_var=LD_LIBRARY_PATH
11675   ;;
11676
11677 freebsd* | dragonfly*)
11678   # DragonFly does not have aout.  When/if they implement a new
11679   # versioning mechanism, adjust this.
11680   if test -x /usr/bin/objformat; then
11681     objformat=`/usr/bin/objformat`
11682   else
11683     case $host_os in
11684     freebsd[23].*) objformat=aout ;;
11685     *) objformat=elf ;;
11686     esac
11687   fi
11688   version_type=freebsd-$objformat
11689   case $version_type in
11690     freebsd-elf*)
11691       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11692       soname_spec='$libname$release$shared_ext$major'
11693       need_version=no
11694       need_lib_prefix=no
11695       ;;
11696     freebsd-*)
11697       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11698       need_version=yes
11699       ;;
11700   esac
11701   shlibpath_var=LD_LIBRARY_PATH
11702   case $host_os in
11703   freebsd2.*)
11704     shlibpath_overrides_runpath=yes
11705     ;;
11706   freebsd3.[01]* | freebsdelf3.[01]*)
11707     shlibpath_overrides_runpath=yes
11708     hardcode_into_libs=yes
11709     ;;
11710   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11711   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11712     shlibpath_overrides_runpath=no
11713     hardcode_into_libs=yes
11714     ;;
11715   *) # from 4.6 on, and DragonFly
11716     shlibpath_overrides_runpath=yes
11717     hardcode_into_libs=yes
11718     ;;
11719   esac
11720   ;;
11721
11722 haiku*)
11723   version_type=linux # correct to gnu/linux during the next big refactor
11724   need_lib_prefix=no
11725   need_version=no
11726   dynamic_linker="$host_os runtime_loader"
11727   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11728   soname_spec='$libname$release$shared_ext$major'
11729   shlibpath_var=LIBRARY_PATH
11730   shlibpath_overrides_runpath=no
11731   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11732   hardcode_into_libs=yes
11733   ;;
11734
11735 hpux9* | hpux10* | hpux11*)
11736   # Give a soname corresponding to the major version so that dld.sl refuses to
11737   # link against other versions.
11738   version_type=sunos
11739   need_lib_prefix=no
11740   need_version=no
11741   case $host_cpu in
11742   ia64*)
11743     shrext_cmds='.so'
11744     hardcode_into_libs=yes
11745     dynamic_linker="$host_os dld.so"
11746     shlibpath_var=LD_LIBRARY_PATH
11747     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11748     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11749     soname_spec='$libname$release$shared_ext$major'
11750     if test 32 = "$HPUX_IA64_MODE"; then
11751       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11752       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11753     else
11754       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11755       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11756     fi
11757     ;;
11758   hppa*64*)
11759     shrext_cmds='.sl'
11760     hardcode_into_libs=yes
11761     dynamic_linker="$host_os dld.sl"
11762     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11763     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11764     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11765     soname_spec='$libname$release$shared_ext$major'
11766     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11767     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11768     ;;
11769   *)
11770     shrext_cmds='.sl'
11771     dynamic_linker="$host_os dld.sl"
11772     shlibpath_var=SHLIB_PATH
11773     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11774     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775     soname_spec='$libname$release$shared_ext$major'
11776     ;;
11777   esac
11778   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11779   postinstall_cmds='chmod 555 $lib'
11780   # or fails outright, so override atomically:
11781   install_override_mode=555
11782   ;;
11783
11784 interix[3-9]*)
11785   version_type=linux # correct to gnu/linux during the next big refactor
11786   need_lib_prefix=no
11787   need_version=no
11788   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11789   soname_spec='$libname$release$shared_ext$major'
11790   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11791   shlibpath_var=LD_LIBRARY_PATH
11792   shlibpath_overrides_runpath=no
11793   hardcode_into_libs=yes
11794   ;;
11795
11796 irix5* | irix6* | nonstopux*)
11797   case $host_os in
11798     nonstopux*) version_type=nonstopux ;;
11799     *)
11800         if test yes = "$lt_cv_prog_gnu_ld"; then
11801                 version_type=linux # correct to gnu/linux during the next big refactor
11802         else
11803                 version_type=irix
11804         fi ;;
11805   esac
11806   need_lib_prefix=no
11807   need_version=no
11808   soname_spec='$libname$release$shared_ext$major'
11809   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11810   case $host_os in
11811   irix5* | nonstopux*)
11812     libsuff= shlibsuff=
11813     ;;
11814   *)
11815     case $LD in # libtool.m4 will add one of these switches to LD
11816     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11817       libsuff= shlibsuff= libmagic=32-bit;;
11818     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11819       libsuff=32 shlibsuff=N32 libmagic=N32;;
11820     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11821       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11822     *) libsuff= shlibsuff= libmagic=never-match;;
11823     esac
11824     ;;
11825   esac
11826   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11827   shlibpath_overrides_runpath=no
11828   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11829   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11830   hardcode_into_libs=yes
11831   ;;
11832
11833 # No shared lib support for Linux oldld, aout, or coff.
11834 linux*oldld* | linux*aout* | linux*coff*)
11835   dynamic_linker=no
11836   ;;
11837
11838 linux*android*)
11839   version_type=none # Android doesn't support versioned libraries.
11840   need_lib_prefix=no
11841   need_version=no
11842   library_names_spec='$libname$release$shared_ext'
11843   soname_spec='$libname$release$shared_ext'
11844   finish_cmds=
11845   shlibpath_var=LD_LIBRARY_PATH
11846   shlibpath_overrides_runpath=yes
11847
11848   # This implies no fast_install, which is unacceptable.
11849   # Some rework will be needed to allow for fast_install
11850   # before this can be enabled.
11851   hardcode_into_libs=yes
11852
11853   dynamic_linker='Android linker'
11854   # Don't embed -rpath directories since the linker doesn't support them.
11855   hardcode_libdir_flag_spec='-L$libdir'
11856   ;;
11857
11858 # This must be glibc/ELF.
11859 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11860   version_type=linux # correct to gnu/linux during the next big refactor
11861   need_lib_prefix=no
11862   need_version=no
11863   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11864   soname_spec='$libname$release$shared_ext$major'
11865   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11866   shlibpath_var=LD_LIBRARY_PATH
11867   shlibpath_overrides_runpath=no
11868
11869   # Some binutils ld are patched to set DT_RUNPATH
11870   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11871   $as_echo_n "(cached) " >&6
11872 else
11873   lt_cv_shlibpath_overrides_runpath=no
11874     save_LDFLAGS=$LDFLAGS
11875     save_libdir=$libdir
11876     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11877          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11878     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h.  */
11880
11881 int
11882 main ()
11883 {
11884
11885   ;
11886   return 0;
11887 }
11888 _ACEOF
11889 if ac_fn_c_try_link "$LINENO"; then :
11890   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11891   lt_cv_shlibpath_overrides_runpath=yes
11892 fi
11893 fi
11894 rm -f core conftest.err conftest.$ac_objext \
11895     conftest$ac_exeext conftest.$ac_ext
11896     LDFLAGS=$save_LDFLAGS
11897     libdir=$save_libdir
11898
11899 fi
11900
11901   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11902
11903   # This implies no fast_install, which is unacceptable.
11904   # Some rework will be needed to allow for fast_install
11905   # before this can be enabled.
11906   hardcode_into_libs=yes
11907
11908   # Ideally, we could use ldconfig to report *all* directores which are
11909   # searched for libraries, however this is still not possible.  Aside from not
11910   # being certain /sbin/ldconfig is available, command
11911   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11912   # even though it is searched at run-time.  Try to do the best guess by
11913   # appending ld.so.conf contents (and includes) to the search path.
11914   if test -f /etc/ld.so.conf; then
11915     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11916     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11917   fi
11918
11919   # We used to test for /lib/ld.so.1 and disable shared libraries on
11920   # powerpc, because MkLinux only supported shared libraries with the
11921   # GNU dynamic linker.  Since this was broken with cross compilers,
11922   # most powerpc-linux boxes support dynamic linking these days and
11923   # people can always --disable-shared, the test was removed, and we
11924   # assume the GNU/Linux dynamic linker is in use.
11925   dynamic_linker='GNU/Linux ld.so'
11926   ;;
11927
11928 netbsd*)
11929   version_type=sunos
11930   need_lib_prefix=no
11931   need_version=no
11932   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11933     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11934     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11935     dynamic_linker='NetBSD (a.out) ld.so'
11936   else
11937     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11938     soname_spec='$libname$release$shared_ext$major'
11939     dynamic_linker='NetBSD ld.elf_so'
11940   fi
11941   shlibpath_var=LD_LIBRARY_PATH
11942   shlibpath_overrides_runpath=yes
11943   hardcode_into_libs=yes
11944   ;;
11945
11946 newsos6)
11947   version_type=linux # correct to gnu/linux during the next big refactor
11948   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11949   shlibpath_var=LD_LIBRARY_PATH
11950   shlibpath_overrides_runpath=yes
11951   ;;
11952
11953 *nto* | *qnx*)
11954   version_type=qnx
11955   need_lib_prefix=no
11956   need_version=no
11957   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11958   soname_spec='$libname$release$shared_ext$major'
11959   shlibpath_var=LD_LIBRARY_PATH
11960   shlibpath_overrides_runpath=no
11961   hardcode_into_libs=yes
11962   dynamic_linker='ldqnx.so'
11963   ;;
11964
11965 openbsd* | bitrig*)
11966   version_type=sunos
11967   sys_lib_dlsearch_path_spec=/usr/lib
11968   need_lib_prefix=no
11969   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11970     need_version=no
11971   else
11972     need_version=yes
11973   fi
11974   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11975   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11976   shlibpath_var=LD_LIBRARY_PATH
11977   shlibpath_overrides_runpath=yes
11978   ;;
11979
11980 os2*)
11981   libname_spec='$name'
11982   version_type=windows
11983   shrext_cmds=.dll
11984   need_version=no
11985   need_lib_prefix=no
11986   # OS/2 can only load a DLL with a base name of 8 characters or less.
11987   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11988     v=$($ECHO $release$versuffix | tr -d .-);
11989     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11990     $ECHO $n$v`$shared_ext'
11991   library_names_spec='${libname}_dll.$libext'
11992   dynamic_linker='OS/2 ld.exe'
11993   shlibpath_var=BEGINLIBPATH
11994   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11995   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11996   postinstall_cmds='base_file=`basename \$file`~
11997     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11998     dldir=$destdir/`dirname \$dlpath`~
11999     test -d \$dldir || mkdir -p \$dldir~
12000     $install_prog $dir/$dlname \$dldir/$dlname~
12001     chmod a+x \$dldir/$dlname~
12002     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12003       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12004     fi'
12005   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12006     dlpath=$dir/\$dldll~
12007     $RM \$dlpath'
12008   ;;
12009
12010 osf3* | osf4* | osf5*)
12011   version_type=osf
12012   need_lib_prefix=no
12013   need_version=no
12014   soname_spec='$libname$release$shared_ext$major'
12015   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12016   shlibpath_var=LD_LIBRARY_PATH
12017   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12018   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12019   ;;
12020
12021 rdos*)
12022   dynamic_linker=no
12023   ;;
12024
12025 solaris*)
12026   version_type=linux # correct to gnu/linux during the next big refactor
12027   need_lib_prefix=no
12028   need_version=no
12029   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12030   soname_spec='$libname$release$shared_ext$major'
12031   shlibpath_var=LD_LIBRARY_PATH
12032   shlibpath_overrides_runpath=yes
12033   hardcode_into_libs=yes
12034   # ldd complains unless libraries are executable
12035   postinstall_cmds='chmod +x $lib'
12036   ;;
12037
12038 sunos4*)
12039   version_type=sunos
12040   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12041   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12042   shlibpath_var=LD_LIBRARY_PATH
12043   shlibpath_overrides_runpath=yes
12044   if test yes = "$with_gnu_ld"; then
12045     need_lib_prefix=no
12046   fi
12047   need_version=yes
12048   ;;
12049
12050 sysv4 | sysv4.3*)
12051   version_type=linux # correct to gnu/linux during the next big refactor
12052   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12053   soname_spec='$libname$release$shared_ext$major'
12054   shlibpath_var=LD_LIBRARY_PATH
12055   case $host_vendor in
12056     sni)
12057       shlibpath_overrides_runpath=no
12058       need_lib_prefix=no
12059       runpath_var=LD_RUN_PATH
12060       ;;
12061     siemens)
12062       need_lib_prefix=no
12063       ;;
12064     motorola)
12065       need_lib_prefix=no
12066       need_version=no
12067       shlibpath_overrides_runpath=no
12068       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12069       ;;
12070   esac
12071   ;;
12072
12073 sysv4*MP*)
12074   if test -d /usr/nec; then
12075     version_type=linux # correct to gnu/linux during the next big refactor
12076     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12077     soname_spec='$libname$shared_ext.$major'
12078     shlibpath_var=LD_LIBRARY_PATH
12079   fi
12080   ;;
12081
12082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12083   version_type=sco
12084   need_lib_prefix=no
12085   need_version=no
12086   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12087   soname_spec='$libname$release$shared_ext$major'
12088   shlibpath_var=LD_LIBRARY_PATH
12089   shlibpath_overrides_runpath=yes
12090   hardcode_into_libs=yes
12091   if test yes = "$with_gnu_ld"; then
12092     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12093   else
12094     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12095     case $host_os in
12096       sco3.2v5*)
12097         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12098         ;;
12099     esac
12100   fi
12101   sys_lib_dlsearch_path_spec='/usr/lib'
12102   ;;
12103
12104 tpf*)
12105   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12106   version_type=linux # correct to gnu/linux during the next big refactor
12107   need_lib_prefix=no
12108   need_version=no
12109   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12110   shlibpath_var=LD_LIBRARY_PATH
12111   shlibpath_overrides_runpath=no
12112   hardcode_into_libs=yes
12113   ;;
12114
12115 uts4*)
12116   version_type=linux # correct to gnu/linux during the next big refactor
12117   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12118   soname_spec='$libname$release$shared_ext$major'
12119   shlibpath_var=LD_LIBRARY_PATH
12120   ;;
12121
12122 *)
12123   dynamic_linker=no
12124   ;;
12125 esac
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12127 $as_echo "$dynamic_linker" >&6; }
12128 test no = "$dynamic_linker" && can_build_shared=no
12129
12130 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12131 if test yes = "$GCC"; then
12132   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12133 fi
12134
12135 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12136   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12137 fi
12138
12139 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12140   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12141 fi
12142
12143 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12144 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12145
12146 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12147 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12148
12149 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12150 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12249 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12250 hardcode_action=
12251 if test -n "$hardcode_libdir_flag_spec" ||
12252    test -n "$runpath_var" ||
12253    test yes = "$hardcode_automatic"; then
12254
12255   # We can hardcode non-existent directories.
12256   if test no != "$hardcode_direct" &&
12257      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12258      # have to relink, otherwise we might link with an installed library
12259      # when we should be linking with a yet-to-be-installed one
12260      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12261      test no != "$hardcode_minus_L"; then
12262     # Linking always hardcodes the temporary library directory.
12263     hardcode_action=relink
12264   else
12265     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12266     hardcode_action=immediate
12267   fi
12268 else
12269   # We cannot hardcode anything, or else we can only hardcode existing
12270   # directories.
12271   hardcode_action=unsupported
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12274 $as_echo "$hardcode_action" >&6; }
12275
12276 if test relink = "$hardcode_action" ||
12277    test yes = "$inherit_rpath"; then
12278   # Fast installation is not supported
12279   enable_fast_install=no
12280 elif test yes = "$shlibpath_overrides_runpath" ||
12281      test no = "$enable_shared"; then
12282   # Fast installation is not necessary
12283   enable_fast_install=needless
12284 fi
12285
12286
12287
12288
12289
12290
12291   if test yes != "$enable_dlopen"; then
12292   enable_dlopen=unknown
12293   enable_dlopen_self=unknown
12294   enable_dlopen_self_static=unknown
12295 else
12296   lt_cv_dlopen=no
12297   lt_cv_dlopen_libs=
12298
12299   case $host_os in
12300   beos*)
12301     lt_cv_dlopen=load_add_on
12302     lt_cv_dlopen_libs=
12303     lt_cv_dlopen_self=yes
12304     ;;
12305
12306   mingw* | pw32* | cegcc*)
12307     lt_cv_dlopen=LoadLibrary
12308     lt_cv_dlopen_libs=
12309     ;;
12310
12311   cygwin*)
12312     lt_cv_dlopen=dlopen
12313     lt_cv_dlopen_libs=
12314     ;;
12315
12316   darwin*)
12317     # if libdl is installed we need to link against it
12318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12319 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12320 if ${ac_cv_lib_dl_dlopen+:} false; then :
12321   $as_echo_n "(cached) " >&6
12322 else
12323   ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-ldl  $LIBS"
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h.  */
12327
12328 /* Override any GCC internal prototype to avoid an error.
12329    Use char because int might match the return type of a GCC
12330    builtin and then its argument prototype would still apply.  */
12331 #ifdef __cplusplus
12332 extern "C"
12333 #endif
12334 char dlopen ();
12335 int
12336 main ()
12337 {
12338 return dlopen ();
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 if ac_fn_c_try_link "$LINENO"; then :
12344   ac_cv_lib_dl_dlopen=yes
12345 else
12346   ac_cv_lib_dl_dlopen=no
12347 fi
12348 rm -f core conftest.err conftest.$ac_objext \
12349     conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12353 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12354 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12355   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12356 else
12357
12358     lt_cv_dlopen=dyld
12359     lt_cv_dlopen_libs=
12360     lt_cv_dlopen_self=yes
12361
12362 fi
12363
12364     ;;
12365
12366   tpf*)
12367     # Don't try to run any link tests for TPF.  We know it's impossible
12368     # because TPF is a cross-compiler, and we know how we open DSOs.
12369     lt_cv_dlopen=dlopen
12370     lt_cv_dlopen_libs=
12371     lt_cv_dlopen_self=no
12372     ;;
12373
12374   *)
12375     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12376 if test "x$ac_cv_func_shl_load" = xyes; then :
12377   lt_cv_dlopen=shl_load
12378 else
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12380 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12381 if ${ac_cv_lib_dld_shl_load+:} false; then :
12382   $as_echo_n "(cached) " >&6
12383 else
12384   ac_check_lib_save_LIBS=$LIBS
12385 LIBS="-ldld  $LIBS"
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h.  */
12388
12389 /* Override any GCC internal prototype to avoid an error.
12390    Use char because int might match the return type of a GCC
12391    builtin and then its argument prototype would still apply.  */
12392 #ifdef __cplusplus
12393 extern "C"
12394 #endif
12395 char shl_load ();
12396 int
12397 main ()
12398 {
12399 return shl_load ();
12400   ;
12401   return 0;
12402 }
12403 _ACEOF
12404 if ac_fn_c_try_link "$LINENO"; then :
12405   ac_cv_lib_dld_shl_load=yes
12406 else
12407   ac_cv_lib_dld_shl_load=no
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext \
12410     conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12412 fi
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12414 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12415 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12416   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12417 else
12418   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12419 if test "x$ac_cv_func_dlopen" = xyes; then :
12420   lt_cv_dlopen=dlopen
12421 else
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12423 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12424 if ${ac_cv_lib_dl_dlopen+:} false; then :
12425   $as_echo_n "(cached) " >&6
12426 else
12427   ac_check_lib_save_LIBS=$LIBS
12428 LIBS="-ldl  $LIBS"
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h.  */
12431
12432 /* Override any GCC internal prototype to avoid an error.
12433    Use char because int might match the return type of a GCC
12434    builtin and then its argument prototype would still apply.  */
12435 #ifdef __cplusplus
12436 extern "C"
12437 #endif
12438 char dlopen ();
12439 int
12440 main ()
12441 {
12442 return dlopen ();
12443   ;
12444   return 0;
12445 }
12446 _ACEOF
12447 if ac_fn_c_try_link "$LINENO"; then :
12448   ac_cv_lib_dl_dlopen=yes
12449 else
12450   ac_cv_lib_dl_dlopen=no
12451 fi
12452 rm -f core conftest.err conftest.$ac_objext \
12453     conftest$ac_exeext conftest.$ac_ext
12454 LIBS=$ac_check_lib_save_LIBS
12455 fi
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12457 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12458 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12459   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12460 else
12461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12462 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12463 if ${ac_cv_lib_svld_dlopen+:} false; then :
12464   $as_echo_n "(cached) " >&6
12465 else
12466   ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-lsvld  $LIBS"
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h.  */
12470
12471 /* Override any GCC internal prototype to avoid an error.
12472    Use char because int might match the return type of a GCC
12473    builtin and then its argument prototype would still apply.  */
12474 #ifdef __cplusplus
12475 extern "C"
12476 #endif
12477 char dlopen ();
12478 int
12479 main ()
12480 {
12481 return dlopen ();
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 if ac_fn_c_try_link "$LINENO"; then :
12487   ac_cv_lib_svld_dlopen=yes
12488 else
12489   ac_cv_lib_svld_dlopen=no
12490 fi
12491 rm -f core conftest.err conftest.$ac_objext \
12492     conftest$ac_exeext conftest.$ac_ext
12493 LIBS=$ac_check_lib_save_LIBS
12494 fi
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12496 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12497 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12498   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12499 else
12500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12501 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12502 if ${ac_cv_lib_dld_dld_link+:} false; then :
12503   $as_echo_n "(cached) " >&6
12504 else
12505   ac_check_lib_save_LIBS=$LIBS
12506 LIBS="-ldld  $LIBS"
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h.  */
12509
12510 /* Override any GCC internal prototype to avoid an error.
12511    Use char because int might match the return type of a GCC
12512    builtin and then its argument prototype would still apply.  */
12513 #ifdef __cplusplus
12514 extern "C"
12515 #endif
12516 char dld_link ();
12517 int
12518 main ()
12519 {
12520 return dld_link ();
12521   ;
12522   return 0;
12523 }
12524 _ACEOF
12525 if ac_fn_c_try_link "$LINENO"; then :
12526   ac_cv_lib_dld_dld_link=yes
12527 else
12528   ac_cv_lib_dld_dld_link=no
12529 fi
12530 rm -f core conftest.err conftest.$ac_objext \
12531     conftest$ac_exeext conftest.$ac_ext
12532 LIBS=$ac_check_lib_save_LIBS
12533 fi
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12535 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12536 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12537   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12538 fi
12539
12540
12541 fi
12542
12543
12544 fi
12545
12546
12547 fi
12548
12549
12550 fi
12551
12552
12553 fi
12554
12555     ;;
12556   esac
12557
12558   if test no = "$lt_cv_dlopen"; then
12559     enable_dlopen=no
12560   else
12561     enable_dlopen=yes
12562   fi
12563
12564   case $lt_cv_dlopen in
12565   dlopen)
12566     save_CPPFLAGS=$CPPFLAGS
12567     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12568
12569     save_LDFLAGS=$LDFLAGS
12570     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12571
12572     save_LIBS=$LIBS
12573     LIBS="$lt_cv_dlopen_libs $LIBS"
12574
12575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12576 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12577 if ${lt_cv_dlopen_self+:} false; then :
12578   $as_echo_n "(cached) " >&6
12579 else
12580           if test yes = "$cross_compiling"; then :
12581   lt_cv_dlopen_self=cross
12582 else
12583   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12584   lt_status=$lt_dlunknown
12585   cat > conftest.$ac_ext <<_LT_EOF
12586 #line $LINENO "configure"
12587 #include "confdefs.h"
12588
12589 #if HAVE_DLFCN_H
12590 #include <dlfcn.h>
12591 #endif
12592
12593 #include <stdio.h>
12594
12595 #ifdef RTLD_GLOBAL
12596 #  define LT_DLGLOBAL           RTLD_GLOBAL
12597 #else
12598 #  ifdef DL_GLOBAL
12599 #    define LT_DLGLOBAL         DL_GLOBAL
12600 #  else
12601 #    define LT_DLGLOBAL         0
12602 #  endif
12603 #endif
12604
12605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12606    find out it does not work in some platform. */
12607 #ifndef LT_DLLAZY_OR_NOW
12608 #  ifdef RTLD_LAZY
12609 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12610 #  else
12611 #    ifdef DL_LAZY
12612 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12613 #    else
12614 #      ifdef RTLD_NOW
12615 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12616 #      else
12617 #        ifdef DL_NOW
12618 #          define LT_DLLAZY_OR_NOW      DL_NOW
12619 #        else
12620 #          define LT_DLLAZY_OR_NOW      0
12621 #        endif
12622 #      endif
12623 #    endif
12624 #  endif
12625 #endif
12626
12627 /* When -fvisibility=hidden is used, assume the code has been annotated
12628    correspondingly for the symbols needed.  */
12629 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12630 int fnord () __attribute__((visibility("default")));
12631 #endif
12632
12633 int fnord () { return 42; }
12634 int main ()
12635 {
12636   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12637   int status = $lt_dlunknown;
12638
12639   if (self)
12640     {
12641       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12642       else
12643         {
12644           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12645           else puts (dlerror ());
12646         }
12647       /* dlclose (self); */
12648     }
12649   else
12650     puts (dlerror ());
12651
12652   return status;
12653 }
12654 _LT_EOF
12655   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12656   (eval $ac_link) 2>&5
12657   ac_status=$?
12658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12660     (./conftest; exit; ) >&5 2>/dev/null
12661     lt_status=$?
12662     case x$lt_status in
12663       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12664       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12665       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12666     esac
12667   else :
12668     # compilation failed
12669     lt_cv_dlopen_self=no
12670   fi
12671 fi
12672 rm -fr conftest*
12673
12674
12675 fi
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12677 $as_echo "$lt_cv_dlopen_self" >&6; }
12678
12679     if test yes = "$lt_cv_dlopen_self"; then
12680       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12681       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12682 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12683 if ${lt_cv_dlopen_self_static+:} false; then :
12684   $as_echo_n "(cached) " >&6
12685 else
12686           if test yes = "$cross_compiling"; then :
12687   lt_cv_dlopen_self_static=cross
12688 else
12689   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12690   lt_status=$lt_dlunknown
12691   cat > conftest.$ac_ext <<_LT_EOF
12692 #line $LINENO "configure"
12693 #include "confdefs.h"
12694
12695 #if HAVE_DLFCN_H
12696 #include <dlfcn.h>
12697 #endif
12698
12699 #include <stdio.h>
12700
12701 #ifdef RTLD_GLOBAL
12702 #  define LT_DLGLOBAL           RTLD_GLOBAL
12703 #else
12704 #  ifdef DL_GLOBAL
12705 #    define LT_DLGLOBAL         DL_GLOBAL
12706 #  else
12707 #    define LT_DLGLOBAL         0
12708 #  endif
12709 #endif
12710
12711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12712    find out it does not work in some platform. */
12713 #ifndef LT_DLLAZY_OR_NOW
12714 #  ifdef RTLD_LAZY
12715 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12716 #  else
12717 #    ifdef DL_LAZY
12718 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12719 #    else
12720 #      ifdef RTLD_NOW
12721 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12722 #      else
12723 #        ifdef DL_NOW
12724 #          define LT_DLLAZY_OR_NOW      DL_NOW
12725 #        else
12726 #          define LT_DLLAZY_OR_NOW      0
12727 #        endif
12728 #      endif
12729 #    endif
12730 #  endif
12731 #endif
12732
12733 /* When -fvisibility=hidden is used, assume the code has been annotated
12734    correspondingly for the symbols needed.  */
12735 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12736 int fnord () __attribute__((visibility("default")));
12737 #endif
12738
12739 int fnord () { return 42; }
12740 int main ()
12741 {
12742   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12743   int status = $lt_dlunknown;
12744
12745   if (self)
12746     {
12747       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12748       else
12749         {
12750           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12751           else puts (dlerror ());
12752         }
12753       /* dlclose (self); */
12754     }
12755   else
12756     puts (dlerror ());
12757
12758   return status;
12759 }
12760 _LT_EOF
12761   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12762   (eval $ac_link) 2>&5
12763   ac_status=$?
12764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12765   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12766     (./conftest; exit; ) >&5 2>/dev/null
12767     lt_status=$?
12768     case x$lt_status in
12769       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12770       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12771       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12772     esac
12773   else :
12774     # compilation failed
12775     lt_cv_dlopen_self_static=no
12776   fi
12777 fi
12778 rm -fr conftest*
12779
12780
12781 fi
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12783 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12784     fi
12785
12786     CPPFLAGS=$save_CPPFLAGS
12787     LDFLAGS=$save_LDFLAGS
12788     LIBS=$save_LIBS
12789     ;;
12790   esac
12791
12792   case $lt_cv_dlopen_self in
12793   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12794   *) enable_dlopen_self=unknown ;;
12795   esac
12796
12797   case $lt_cv_dlopen_self_static in
12798   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12799   *) enable_dlopen_self_static=unknown ;;
12800   esac
12801 fi
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819 striplib=
12820 old_striplib=
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12822 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12823 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12824   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12825   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12827 $as_echo "yes" >&6; }
12828 else
12829 # FIXME - insert some real tests, host_os isn't really good enough
12830   case $host_os in
12831   darwin*)
12832     if test -n "$STRIP"; then
12833       striplib="$STRIP -x"
12834       old_striplib="$STRIP -S"
12835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12836 $as_echo "yes" >&6; }
12837     else
12838       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12840     fi
12841     ;;
12842   *)
12843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845     ;;
12846   esac
12847 fi
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860   # Report what library types will actually be built
12861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12862 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12864 $as_echo "$can_build_shared" >&6; }
12865
12866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12867 $as_echo_n "checking whether to build shared libraries... " >&6; }
12868   test no = "$can_build_shared" && enable_shared=no
12869
12870   # On AIX, shared libraries and static libraries use the same namespace, and
12871   # are all built from PIC.
12872   case $host_os in
12873   aix3*)
12874     test yes = "$enable_shared" && enable_static=no
12875     if test -n "$RANLIB"; then
12876       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12877       postinstall_cmds='$RANLIB $lib'
12878     fi
12879     ;;
12880
12881   aix[4-9]*)
12882     if test ia64 != "$host_cpu"; then
12883       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12884       yes,aix,yes) ;;                   # shared object as lib.so file only
12885       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12886       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12887       esac
12888     fi
12889     ;;
12890   esac
12891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12892 $as_echo "$enable_shared" >&6; }
12893
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12895 $as_echo_n "checking whether to build static libraries... " >&6; }
12896   # Make sure either enable_shared or enable_static is yes.
12897   test yes = "$enable_shared" || enable_static=yes
12898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12899 $as_echo "$enable_static" >&6; }
12900
12901
12902
12903
12904 fi
12905 ac_ext=c
12906 ac_cpp='$CPP $CPPFLAGS'
12907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12910
12911 CC=$lt_save_CC
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927         ac_config_commands="$ac_config_commands libtool"
12928
12929
12930
12931
12932 # Only expand once:
12933
12934
12935
12936
12937 # Check for library functions that SQLite can optionally use.
12938 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12939 do :
12940   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12941 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12942 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12943   cat >>confdefs.h <<_ACEOF
12944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12945 _ACEOF
12946
12947 fi
12948 done
12949
12950 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12951 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12952   ac_have_decl=1
12953 else
12954   ac_have_decl=0
12955 fi
12956
12957 cat >>confdefs.h <<_ACEOF
12958 #define HAVE_DECL_STRERROR_R $ac_have_decl
12959 _ACEOF
12960
12961 for ac_func in strerror_r
12962 do :
12963   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12964 if test "x$ac_cv_func_strerror_r" = xyes; then :
12965   cat >>confdefs.h <<_ACEOF
12966 #define HAVE_STRERROR_R 1
12967 _ACEOF
12968
12969 fi
12970 done
12971
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12973 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
12974 if ${ac_cv_func_strerror_r_char_p+:} false; then :
12975   $as_echo_n "(cached) " >&6
12976 else
12977
12978     ac_cv_func_strerror_r_char_p=no
12979     if test $ac_cv_have_decl_strerror_r = yes; then
12980       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h.  */
12982 $ac_includes_default
12983 int
12984 main ()
12985 {
12986
12987           char buf[100];
12988           char x = *strerror_r (0, buf, sizeof buf);
12989           char *p = strerror_r (0, buf, sizeof buf);
12990           return !p || x;
12991
12992   ;
12993   return 0;
12994 }
12995 _ACEOF
12996 if ac_fn_c_try_compile "$LINENO"; then :
12997   ac_cv_func_strerror_r_char_p=yes
12998 fi
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000     else
13001       # strerror_r is not declared.  Choose between
13002       # systems that have relatively inaccessible declarations for the
13003       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13004       # former has a strerror_r that returns char*, while the latter
13005       # has a strerror_r that returns `int'.
13006       # This test should segfault on the DEC system.
13007       if test "$cross_compiling" = yes; then :
13008   :
13009 else
13010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h.  */
13012 $ac_includes_default
13013         extern char *strerror_r ();
13014 int
13015 main ()
13016 {
13017 char buf[100];
13018           char x = *strerror_r (0, buf, sizeof buf);
13019           return ! isalpha (x);
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 if ac_fn_c_try_run "$LINENO"; then :
13025   ac_cv_func_strerror_r_char_p=yes
13026 fi
13027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13028   conftest.$ac_objext conftest.beam conftest.$ac_ext
13029 fi
13030
13031     fi
13032
13033 fi
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13035 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13036 if test $ac_cv_func_strerror_r_char_p = yes; then
13037
13038 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13039
13040 fi
13041
13042
13043 ac_config_files="$ac_config_files Makefile sqlite3.pc"
13044
13045 BUILD_CFLAGS=
13046
13047
13048 #-------------------------------------------------------------------------
13049 # Two options to enable readline compatible libraries:
13050 #
13051 #   --enable-editline
13052 #   --enable-readline
13053 #
13054 # Both are enabled by default. If, after command line processing both are
13055 # still enabled, the script searches for editline first and automatically
13056 # disables readline if it is found. So, to use readline explicitly, the
13057 # user must pass "--disable-editline". To disable command line editing
13058 # support altogether, "--disable-editline --disable-readline".
13059 #
13060 # When searching for either library, check for headers before libraries
13061 # as some distros supply packages that contain libraries but not header
13062 # files, which come as a separate development package.
13063 #
13064 # Check whether --enable-editline was given.
13065 if test "${enable_editline+set}" = set; then :
13066   enableval=$enable_editline;
13067 fi
13068
13069 # Check whether --enable-readline was given.
13070 if test "${enable_readline+set}" = set; then :
13071   enableval=$enable_readline;
13072 fi
13073
13074
13075 if  test x"$enable_editline" != xno ; then :
13076
13077   for ac_header in editline/readline.h
13078 do :
13079   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13080 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
13081   cat >>confdefs.h <<_ACEOF
13082 #define HAVE_EDITLINE_READLINE_H 1
13083 _ACEOF
13084
13085     sLIBS=$LIBS
13086     LIBS=""
13087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13088 $as_echo_n "checking for library containing readline... " >&6; }
13089 if ${ac_cv_search_readline+:} false; then :
13090   $as_echo_n "(cached) " >&6
13091 else
13092   ac_func_search_save_LIBS=$LIBS
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h.  */
13095
13096 /* Override any GCC internal prototype to avoid an error.
13097    Use char because int might match the return type of a GCC
13098    builtin and then its argument prototype would still apply.  */
13099 #ifdef __cplusplus
13100 extern "C"
13101 #endif
13102 char readline ();
13103 int
13104 main ()
13105 {
13106 return readline ();
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 for ac_lib in '' edit; do
13112   if test -z "$ac_lib"; then
13113     ac_res="none required"
13114   else
13115     ac_res=-l$ac_lib
13116     LIBS="-l$ac_lib -ltinfo $ac_func_search_save_LIBS"
13117   fi
13118   if ac_fn_c_try_link "$LINENO"; then :
13119   ac_cv_search_readline=$ac_res
13120 fi
13121 rm -f core conftest.err conftest.$ac_objext \
13122     conftest$ac_exeext
13123   if ${ac_cv_search_readline+:} false; then :
13124   break
13125 fi
13126 done
13127 if ${ac_cv_search_readline+:} false; then :
13128
13129 else
13130   ac_cv_search_readline=no
13131 fi
13132 rm conftest.$ac_ext
13133 LIBS=$ac_func_search_save_LIBS
13134 fi
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13136 $as_echo "$ac_cv_search_readline" >&6; }
13137 ac_res=$ac_cv_search_readline
13138 if test "$ac_res" != no; then :
13139   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13140
13141
13142 $as_echo "#define HAVE_EDITLINE 1" >>confdefs.h
13143
13144       READLINE_LIBS="$LIBS -ltinfo"
13145       enable_readline=no
13146
13147 fi
13148
13149     { ac_cv_search_readline=; unset ac_cv_search_readline;}
13150     LIBS=$sLIBS
13151
13152 fi
13153
13154 done
13155
13156
13157 fi
13158
13159 if  test x"$enable_readline" != xno ; then :
13160
13161   for ac_header in readline/readline.h
13162 do :
13163   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13164 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13165   cat >>confdefs.h <<_ACEOF
13166 #define HAVE_READLINE_READLINE_H 1
13167 _ACEOF
13168
13169     sLIBS=$LIBS
13170     LIBS=""
13171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13172 $as_echo_n "checking for library containing tgetent... " >&6; }
13173 if ${ac_cv_search_tgetent+:} false; then :
13174   $as_echo_n "(cached) " >&6
13175 else
13176   ac_func_search_save_LIBS=$LIBS
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h.  */
13179
13180 /* Override any GCC internal prototype to avoid an error.
13181    Use char because int might match the return type of a GCC
13182    builtin and then its argument prototype would still apply.  */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 char tgetent ();
13187 int
13188 main ()
13189 {
13190 return tgetent ();
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 for ac_lib in '' termcap curses ncurses ncursesw; do
13196   if test -z "$ac_lib"; then
13197     ac_res="none required"
13198   else
13199     ac_res=-l$ac_lib
13200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13201   fi
13202   if ac_fn_c_try_link "$LINENO"; then :
13203   ac_cv_search_tgetent=$ac_res
13204 fi
13205 rm -f core conftest.err conftest.$ac_objext \
13206     conftest$ac_exeext
13207   if ${ac_cv_search_tgetent+:} false; then :
13208   break
13209 fi
13210 done
13211 if ${ac_cv_search_tgetent+:} false; then :
13212
13213 else
13214   ac_cv_search_tgetent=no
13215 fi
13216 rm conftest.$ac_ext
13217 LIBS=$ac_func_search_save_LIBS
13218 fi
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13220 $as_echo "$ac_cv_search_tgetent" >&6; }
13221 ac_res=$ac_cv_search_tgetent
13222 if test "$ac_res" != no; then :
13223   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13224
13225 fi
13226
13227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13228 $as_echo_n "checking for library containing readline... " >&6; }
13229 if ${ac_cv_search_readline+:} false; then :
13230   $as_echo_n "(cached) " >&6
13231 else
13232   ac_func_search_save_LIBS=$LIBS
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h.  */
13235
13236 /* Override any GCC internal prototype to avoid an error.
13237    Use char because int might match the return type of a GCC
13238    builtin and then its argument prototype would still apply.  */
13239 #ifdef __cplusplus
13240 extern "C"
13241 #endif
13242 char readline ();
13243 int
13244 main ()
13245 {
13246 return readline ();
13247   ;
13248   return 0;
13249 }
13250 _ACEOF
13251 for ac_lib in '' readline edit; do
13252   if test -z "$ac_lib"; then
13253     ac_res="none required"
13254   else
13255     ac_res=-l$ac_lib
13256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13257   fi
13258   if ac_fn_c_try_link "$LINENO"; then :
13259   ac_cv_search_readline=$ac_res
13260 fi
13261 rm -f core conftest.err conftest.$ac_objext \
13262     conftest$ac_exeext
13263   if ${ac_cv_search_readline+:} false; then :
13264   break
13265 fi
13266 done
13267 if ${ac_cv_search_readline+:} false; then :
13268
13269 else
13270   ac_cv_search_readline=no
13271 fi
13272 rm conftest.$ac_ext
13273 LIBS=$ac_func_search_save_LIBS
13274 fi
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13276 $as_echo "$ac_cv_search_readline" >&6; }
13277 ac_res=$ac_cv_search_readline
13278 if test "$ac_res" != no; then :
13279   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13280
13281
13282 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
13283
13284       READLINE_LIBS=$LIBS
13285
13286 fi
13287
13288     LIBS=$sLIBS
13289
13290 fi
13291
13292 done
13293
13294
13295 fi
13296
13297
13298 #-----------------------------------------------------------------------
13299
13300 #-----------------------------------------------------------------------
13301 #   --enable-threadsafe
13302 #
13303 # Check whether --enable-threadsafe was given.
13304 if test "${enable_threadsafe+set}" = set; then :
13305   enableval=$enable_threadsafe;
13306 else
13307   enable_threadsafe=yes
13308 fi
13309
13310 if test x"$enable_threadsafe" != "xno"; then
13311   BUILD_CFLAGS="$BUILD_CFLAGS -D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
13312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13313 $as_echo_n "checking for library containing pthread_create... " >&6; }
13314 if ${ac_cv_search_pthread_create+:} false; then :
13315   $as_echo_n "(cached) " >&6
13316 else
13317   ac_func_search_save_LIBS=$LIBS
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h.  */
13320
13321 /* Override any GCC internal prototype to avoid an error.
13322    Use char because int might match the return type of a GCC
13323    builtin and then its argument prototype would still apply.  */
13324 #ifdef __cplusplus
13325 extern "C"
13326 #endif
13327 char pthread_create ();
13328 int
13329 main ()
13330 {
13331 return pthread_create ();
13332   ;
13333   return 0;
13334 }
13335 _ACEOF
13336 for ac_lib in '' pthread; do
13337   if test -z "$ac_lib"; then
13338     ac_res="none required"
13339   else
13340     ac_res=-l$ac_lib
13341     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13342   fi
13343   if ac_fn_c_try_link "$LINENO"; then :
13344   ac_cv_search_pthread_create=$ac_res
13345 fi
13346 rm -f core conftest.err conftest.$ac_objext \
13347     conftest$ac_exeext
13348   if ${ac_cv_search_pthread_create+:} false; then :
13349   break
13350 fi
13351 done
13352 if ${ac_cv_search_pthread_create+:} false; then :
13353
13354 else
13355   ac_cv_search_pthread_create=no
13356 fi
13357 rm conftest.$ac_ext
13358 LIBS=$ac_func_search_save_LIBS
13359 fi
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13361 $as_echo "$ac_cv_search_pthread_create" >&6; }
13362 ac_res=$ac_cv_search_pthread_create
13363 if test "$ac_res" != no; then :
13364   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13365
13366 fi
13367
13368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
13369 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
13370 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13371   $as_echo_n "(cached) " >&6
13372 else
13373   ac_func_search_save_LIBS=$LIBS
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h.  */
13376
13377 /* Override any GCC internal prototype to avoid an error.
13378    Use char because int might match the return type of a GCC
13379    builtin and then its argument prototype would still apply.  */
13380 #ifdef __cplusplus
13381 extern "C"
13382 #endif
13383 char pthread_mutexattr_init ();
13384 int
13385 main ()
13386 {
13387 return pthread_mutexattr_init ();
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 for ac_lib in '' pthread; do
13393   if test -z "$ac_lib"; then
13394     ac_res="none required"
13395   else
13396     ac_res=-l$ac_lib
13397     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13398   fi
13399   if ac_fn_c_try_link "$LINENO"; then :
13400   ac_cv_search_pthread_mutexattr_init=$ac_res
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext \
13403     conftest$ac_exeext
13404   if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13405   break
13406 fi
13407 done
13408 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13409
13410 else
13411   ac_cv_search_pthread_mutexattr_init=no
13412 fi
13413 rm conftest.$ac_ext
13414 LIBS=$ac_func_search_save_LIBS
13415 fi
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
13417 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
13418 ac_res=$ac_cv_search_pthread_mutexattr_init
13419 if test "$ac_res" != no; then :
13420   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13421
13422 fi
13423
13424 fi
13425 #-----------------------------------------------------------------------
13426
13427 #-----------------------------------------------------------------------
13428 #   --enable-dynamic-extensions
13429 #
13430 # Check whether --enable-dynamic-extensions was given.
13431 if test "${enable_dynamic_extensions+set}" = set; then :
13432   enableval=$enable_dynamic_extensions;
13433 else
13434   enable_dynamic_extensions=yes
13435 fi
13436
13437 if test x"$enable_dynamic_extensions" != "xno"; then
13438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13439 $as_echo_n "checking for library containing dlopen... " >&6; }
13440 if ${ac_cv_search_dlopen+:} false; then :
13441   $as_echo_n "(cached) " >&6
13442 else
13443   ac_func_search_save_LIBS=$LIBS
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h.  */
13446
13447 /* Override any GCC internal prototype to avoid an error.
13448    Use char because int might match the return type of a GCC
13449    builtin and then its argument prototype would still apply.  */
13450 #ifdef __cplusplus
13451 extern "C"
13452 #endif
13453 char dlopen ();
13454 int
13455 main ()
13456 {
13457 return dlopen ();
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 for ac_lib in '' dl; do
13463   if test -z "$ac_lib"; then
13464     ac_res="none required"
13465   else
13466     ac_res=-l$ac_lib
13467     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13468   fi
13469   if ac_fn_c_try_link "$LINENO"; then :
13470   ac_cv_search_dlopen=$ac_res
13471 fi
13472 rm -f core conftest.err conftest.$ac_objext \
13473     conftest$ac_exeext
13474   if ${ac_cv_search_dlopen+:} false; then :
13475   break
13476 fi
13477 done
13478 if ${ac_cv_search_dlopen+:} false; then :
13479
13480 else
13481   ac_cv_search_dlopen=no
13482 fi
13483 rm conftest.$ac_ext
13484 LIBS=$ac_func_search_save_LIBS
13485 fi
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13487 $as_echo "$ac_cv_search_dlopen" >&6; }
13488 ac_res=$ac_cv_search_dlopen
13489 if test "$ac_res" != no; then :
13490   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13491
13492 fi
13493
13494 else
13495   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_OMIT_LOAD_EXTENSION=1"
13496 fi
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
13498 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
13500 $as_echo "$enable_dynamic_extensions" >&6; }
13501 #-----------------------------------------------------------------------
13502
13503 #-----------------------------------------------------------------------
13504 #   --enable-fts4
13505 #
13506 # Check whether --enable-fts4 was given.
13507 if test "${enable_fts4+set}" = set; then :
13508   enableval=$enable_fts4;
13509 else
13510   enable_fts4=yes
13511 fi
13512
13513 if test x"$enable_fts4" = "xyes"; then
13514   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS4"
13515 fi
13516 #-----------------------------------------------------------------------
13517
13518 #-----------------------------------------------------------------------
13519 #   --enable-fts3
13520 #
13521 # Check whether --enable-fts3 was given.
13522 if test "${enable_fts3+set}" = set; then :
13523   enableval=$enable_fts3;
13524 fi
13525
13526 if test x"$enable_fts3" = "xyes" -a x"$enable_fts4" = "xno"; then
13527   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS3"
13528 fi
13529 #-----------------------------------------------------------------------
13530
13531 #-----------------------------------------------------------------------
13532 #   --enable-fts5
13533 #
13534 # Check whether --enable-fts5 was given.
13535 if test "${enable_fts5+set}" = set; then :
13536   enableval=$enable_fts5;
13537 else
13538   enable_fts5=yes
13539 fi
13540
13541 if test x"$enable_fts5" = "xyes"; then
13542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13543 $as_echo_n "checking for library containing log... " >&6; }
13544 if ${ac_cv_search_log+:} false; then :
13545   $as_echo_n "(cached) " >&6
13546 else
13547   ac_func_search_save_LIBS=$LIBS
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h.  */
13550
13551 /* Override any GCC internal prototype to avoid an error.
13552    Use char because int might match the return type of a GCC
13553    builtin and then its argument prototype would still apply.  */
13554 #ifdef __cplusplus
13555 extern "C"
13556 #endif
13557 char log ();
13558 int
13559 main ()
13560 {
13561 return log ();
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 for ac_lib in '' m; do
13567   if test -z "$ac_lib"; then
13568     ac_res="none required"
13569   else
13570     ac_res=-l$ac_lib
13571     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13572   fi
13573   if ac_fn_c_try_link "$LINENO"; then :
13574   ac_cv_search_log=$ac_res
13575 fi
13576 rm -f core conftest.err conftest.$ac_objext \
13577     conftest$ac_exeext
13578   if ${ac_cv_search_log+:} false; then :
13579   break
13580 fi
13581 done
13582 if ${ac_cv_search_log+:} false; then :
13583
13584 else
13585   ac_cv_search_log=no
13586 fi
13587 rm conftest.$ac_ext
13588 LIBS=$ac_func_search_save_LIBS
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13591 $as_echo "$ac_cv_search_log" >&6; }
13592 ac_res=$ac_cv_search_log
13593 if test "$ac_res" != no; then :
13594   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13595
13596 fi
13597
13598   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS5"
13599 fi
13600 #-----------------------------------------------------------------------
13601
13602 #-----------------------------------------------------------------------
13603 #   --enable-json1
13604 #
13605 # Check whether --enable-json1 was given.
13606 if test "${enable_json1+set}" = set; then :
13607   enableval=$enable_json1;
13608 else
13609   enable_json1=yes
13610 fi
13611
13612 if test x"$enable_json1" = "xyes"; then
13613   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_JSON1"
13614 fi
13615 #-----------------------------------------------------------------------
13616
13617 #-----------------------------------------------------------------------
13618 #   --enable-rtree
13619 #
13620 # Check whether --enable-rtree was given.
13621 if test "${enable_rtree+set}" = set; then :
13622   enableval=$enable_rtree;
13623 else
13624   enable_rtree=yes
13625 fi
13626
13627 if test x"$enable_rtree" = "xyes"; then
13628   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_RTREE"
13629 fi
13630 #-----------------------------------------------------------------------
13631
13632 #-----------------------------------------------------------------------
13633 #   --enable-session
13634 #
13635 # Check whether --enable-session was given.
13636 if test "${enable_session+set}" = set; then :
13637   enableval=$enable_session;
13638 fi
13639
13640 if test x"$enable_session" = "xyes"; then
13641   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK"
13642 fi
13643 #-----------------------------------------------------------------------
13644
13645 #-----------------------------------------------------------------------
13646 #   --enable-debug
13647 #
13648 # Check whether --enable-debug was given.
13649 if test "${enable_debug+set}" = set; then :
13650   enableval=$enable_debug;
13651 fi
13652
13653 if test x"$enable_debug" = "xyes"; then
13654   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_DEBUG -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE"
13655   CFLAGS="-g -O0"
13656 fi
13657 #-----------------------------------------------------------------------
13658
13659 #-----------------------------------------------------------------------
13660 #   --enable-static-shell
13661 #
13662 # Check whether --enable-static-shell was given.
13663 if test "${enable_static_shell+set}" = set; then :
13664   enableval=$enable_static_shell;
13665 else
13666   enable_static_shell=yes
13667 fi
13668
13669 if test x"$enable_static_shell" = "xyes"; then
13670   EXTRA_SHELL_OBJ=sqlite3-sqlite3.$OBJEXT
13671 else
13672   EXTRA_SHELL_OBJ=libsqlite3.la
13673 fi
13674
13675 #-----------------------------------------------------------------------
13676
13677 for ac_func in posix_fallocate
13678 do :
13679   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
13680 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
13681   cat >>confdefs.h <<_ACEOF
13682 #define HAVE_POSIX_FALLOCATE 1
13683 _ACEOF
13684
13685 fi
13686 done
13687
13688 for ac_header in zlib.h
13689 do :
13690   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13691 if test "x$ac_cv_header_zlib_h" = xyes; then :
13692   cat >>confdefs.h <<_ACEOF
13693 #define HAVE_ZLIB_H 1
13694 _ACEOF
13695
13696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
13697 $as_echo_n "checking for library containing deflate... " >&6; }
13698 if ${ac_cv_search_deflate+:} false; then :
13699   $as_echo_n "(cached) " >&6
13700 else
13701   ac_func_search_save_LIBS=$LIBS
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h.  */
13704
13705 /* Override any GCC internal prototype to avoid an error.
13706    Use char because int might match the return type of a GCC
13707    builtin and then its argument prototype would still apply.  */
13708 #ifdef __cplusplus
13709 extern "C"
13710 #endif
13711 char deflate ();
13712 int
13713 main ()
13714 {
13715 return deflate ();
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 for ac_lib in '' z; do
13721   if test -z "$ac_lib"; then
13722     ac_res="none required"
13723   else
13724     ac_res=-l$ac_lib
13725     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13726   fi
13727   if ac_fn_c_try_link "$LINENO"; then :
13728   ac_cv_search_deflate=$ac_res
13729 fi
13730 rm -f core conftest.err conftest.$ac_objext \
13731     conftest$ac_exeext
13732   if ${ac_cv_search_deflate+:} false; then :
13733   break
13734 fi
13735 done
13736 if ${ac_cv_search_deflate+:} false; then :
13737
13738 else
13739   ac_cv_search_deflate=no
13740 fi
13741 rm conftest.$ac_ext
13742 LIBS=$ac_func_search_save_LIBS
13743 fi
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
13745 $as_echo "$ac_cv_search_deflate" >&6; }
13746 ac_res=$ac_cv_search_deflate
13747 if test "$ac_res" != no; then :
13748   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13749   BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_HAVE_ZLIB"
13750 fi
13751
13752
13753 fi
13754
13755 done
13756
13757
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing system" >&5
13759 $as_echo_n "checking for library containing system... " >&6; }
13760 if ${ac_cv_search_system+:} false; then :
13761   $as_echo_n "(cached) " >&6
13762 else
13763   ac_func_search_save_LIBS=$LIBS
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h.  */
13766
13767 /* Override any GCC internal prototype to avoid an error.
13768    Use char because int might match the return type of a GCC
13769    builtin and then its argument prototype would still apply.  */
13770 #ifdef __cplusplus
13771 extern "C"
13772 #endif
13773 char system ();
13774 int
13775 main ()
13776 {
13777 return system ();
13778   ;
13779   return 0;
13780 }
13781 _ACEOF
13782 for ac_lib in '' ; do
13783   if test -z "$ac_lib"; then
13784     ac_res="none required"
13785   else
13786     ac_res=-l$ac_lib
13787     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13788   fi
13789   if ac_fn_c_try_link "$LINENO"; then :
13790   ac_cv_search_system=$ac_res
13791 fi
13792 rm -f core conftest.err conftest.$ac_objext \
13793     conftest$ac_exeext
13794   if ${ac_cv_search_system+:} false; then :
13795   break
13796 fi
13797 done
13798 if ${ac_cv_search_system+:} false; then :
13799
13800 else
13801   ac_cv_search_system=no
13802 fi
13803 rm conftest.$ac_ext
13804 LIBS=$ac_func_search_save_LIBS
13805 fi
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_system" >&5
13807 $as_echo "$ac_cv_search_system" >&6; }
13808 ac_res=$ac_cv_search_system
13809 if test "$ac_res" != no; then :
13810   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13811
13812 else
13813   SHELL_CFLAGS="-DSQLITE_NOHAVE_SYSTEM"
13814 fi
13815
13816
13817
13818 #-----------------------------------------------------------------------
13819 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
13820 # configure. This option doesn't really add much...
13821 #
13822 #   --enable-tempstore
13823 #
13824 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
13825 #   [--enable-tempstore],
13826 #   [in-memory temporary tables (never, no, yes, always) [default=no]])],
13827 #   [], [enable_tempstore=no])
13828 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
13829 # case "$enable_tempstore" in
13830 #   never )  TEMP_STORE=0 ;;
13831 #   no )     TEMP_STORE=1 ;;
13832 #   always ) TEMP_STORE=3 ;;
13833 #   yes )    TEMP_STORE=3 ;;
13834 #   * )
13835 #     TEMP_STORE=1
13836 #     enable_tempstore=yes
13837 #   ;;
13838 # esac
13839 # AC_MSG_RESULT($enable_tempstore)
13840 # AC_SUBST(TEMP_STORE)
13841 #-----------------------------------------------------------------------
13842
13843 cat >confcache <<\_ACEOF
13844 # This file is a shell script that caches the results of configure
13845 # tests run on this system so they can be shared between configure
13846 # scripts and configure runs, see configure's option --config-cache.
13847 # It is not useful on other systems.  If it contains results you don't
13848 # want to keep, you may remove or edit it.
13849 #
13850 # config.status only pays attention to the cache file if you give it
13851 # the --recheck option to rerun configure.
13852 #
13853 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13854 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13855 # following values.
13856
13857 _ACEOF
13858
13859 # The following way of writing the cache mishandles newlines in values,
13860 # but we know of no workaround that is simple, portable, and efficient.
13861 # So, we kill variables containing newlines.
13862 # Ultrix sh set writes to stderr and can't be redirected directly,
13863 # and sets the high bit in the cache file unless we assign to the vars.
13864 (
13865   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13866     eval ac_val=\$$ac_var
13867     case $ac_val in #(
13868     *${as_nl}*)
13869       case $ac_var in #(
13870       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13872       esac
13873       case $ac_var in #(
13874       _ | IFS | as_nl) ;; #(
13875       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13876       *) { eval $ac_var=; unset $ac_var;} ;;
13877       esac ;;
13878     esac
13879   done
13880
13881   (set) 2>&1 |
13882     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13883     *${as_nl}ac_space=\ *)
13884       # `set' does not quote correctly, so add quotes: double-quote
13885       # substitution turns \\\\ into \\, and sed turns \\ into \.
13886       sed -n \
13887         "s/'/'\\\\''/g;
13888           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13889       ;; #(
13890     *)
13891       # `set' quotes correctly as required by POSIX, so do not add quotes.
13892       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13893       ;;
13894     esac |
13895     sort
13896 ) |
13897   sed '
13898      /^ac_cv_env_/b end
13899      t clear
13900      :clear
13901      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13902      t end
13903      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13904      :end' >>confcache
13905 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13906   if test -w "$cache_file"; then
13907     if test "x$cache_file" != "x/dev/null"; then
13908       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13909 $as_echo "$as_me: updating cache $cache_file" >&6;}
13910       if test ! -f "$cache_file" || test -h "$cache_file"; then
13911         cat confcache >"$cache_file"
13912       else
13913         case $cache_file in #(
13914         */* | ?:*)
13915           mv -f confcache "$cache_file"$$ &&
13916           mv -f "$cache_file"$$ "$cache_file" ;; #(
13917         *)
13918           mv -f confcache "$cache_file" ;;
13919         esac
13920       fi
13921     fi
13922   else
13923     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13924 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13925   fi
13926 fi
13927 rm -f confcache
13928
13929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13930 # Let make expand exec_prefix.
13931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13932
13933 # Transform confdefs.h into DEFS.
13934 # Protect against shell expansion while executing Makefile rules.
13935 # Protect against Makefile macro expansion.
13936 #
13937 # If the first sed substitution is executed (which looks for macros that
13938 # take arguments), then branch to the quote section.  Otherwise,
13939 # look for a macro that doesn't take arguments.
13940 ac_script='
13941 :mline
13942 /\\$/{
13943  N
13944  s,\\\n,,
13945  b mline
13946 }
13947 t clear
13948 :clear
13949 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
13950 t quote
13951 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
13952 t quote
13953 b any
13954 :quote
13955 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13956 s/\[/\\&/g
13957 s/\]/\\&/g
13958 s/\$/$$/g
13959 H
13960 :any
13961 ${
13962         g
13963         s/^\n//
13964         s/\n/ /g
13965         p
13966 }
13967 '
13968 DEFS=`sed -n "$ac_script" confdefs.h`
13969
13970
13971 ac_libobjs=
13972 ac_ltlibobjs=
13973 U=
13974 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13975   # 1. Remove the extension, and $U if already installed.
13976   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13977   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13978   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13979   #    will be set to the directory where LIBOBJS objects are built.
13980   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13981   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13982 done
13983 LIBOBJS=$ac_libobjs
13984
13985 LTLIBOBJS=$ac_ltlibobjs
13986
13987
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13989 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13990    if test -n "$am_sleep_pid"; then
13991      # Hide warnings about reused PIDs.
13992      wait $am_sleep_pid 2>/dev/null
13993    fi
13994    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13995 $as_echo "done" >&6; }
13996  if test -n "$EXEEXT"; then
13997   am__EXEEXT_TRUE=
13998   am__EXEEXT_FALSE='#'
13999 else
14000   am__EXEEXT_TRUE='#'
14001   am__EXEEXT_FALSE=
14002 fi
14003
14004 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14005   as_fn_error $? "conditional \"AMDEP\" was never defined.
14006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14007 fi
14008 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14009   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14011 fi
14012 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14013   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14015 fi
14016
14017 : "${CONFIG_STATUS=./config.status}"
14018 ac_write_fail=0
14019 ac_clean_files_save=$ac_clean_files
14020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14022 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14023 as_write_fail=0
14024 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14025 #! $SHELL
14026 # Generated by $as_me.
14027 # Run this file to recreate the current configuration.
14028 # Compiler output produced by configure, useful for debugging
14029 # configure, is in config.log if it exists.
14030
14031 debug=false
14032 ac_cs_recheck=false
14033 ac_cs_silent=false
14034
14035 SHELL=\${CONFIG_SHELL-$SHELL}
14036 export SHELL
14037 _ASEOF
14038 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14039 ## -------------------- ##
14040 ## M4sh Initialization. ##
14041 ## -------------------- ##
14042
14043 # Be more Bourne compatible
14044 DUALCASE=1; export DUALCASE # for MKS sh
14045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14046   emulate sh
14047   NULLCMD=:
14048   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14049   # is contrary to our usage.  Disable this feature.
14050   alias -g '${1+"$@"}'='"$@"'
14051   setopt NO_GLOB_SUBST
14052 else
14053   case `(set -o) 2>/dev/null` in #(
14054   *posix*) :
14055     set -o posix ;; #(
14056   *) :
14057      ;;
14058 esac
14059 fi
14060
14061
14062 as_nl='
14063 '
14064 export as_nl
14065 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14066 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14069 # Prefer a ksh shell builtin over an external printf program on Solaris,
14070 # but without wasting forks for bash or zsh.
14071 if test -z "$BASH_VERSION$ZSH_VERSION" \
14072     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14073   as_echo='print -r --'
14074   as_echo_n='print -rn --'
14075 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14076   as_echo='printf %s\n'
14077   as_echo_n='printf %s'
14078 else
14079   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14080     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14081     as_echo_n='/usr/ucb/echo -n'
14082   else
14083     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14084     as_echo_n_body='eval
14085       arg=$1;
14086       case $arg in #(
14087       *"$as_nl"*)
14088         expr "X$arg" : "X\\(.*\\)$as_nl";
14089         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14090       esac;
14091       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14092     '
14093     export as_echo_n_body
14094     as_echo_n='sh -c $as_echo_n_body as_echo'
14095   fi
14096   export as_echo_body
14097   as_echo='sh -c $as_echo_body as_echo'
14098 fi
14099
14100 # The user is always right.
14101 if test "${PATH_SEPARATOR+set}" != set; then
14102   PATH_SEPARATOR=:
14103   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14104     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14105       PATH_SEPARATOR=';'
14106   }
14107 fi
14108
14109
14110 # IFS
14111 # We need space, tab and new line, in precisely that order.  Quoting is
14112 # there to prevent editors from complaining about space-tab.
14113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14114 # splitting by setting IFS to empty value.)
14115 IFS=" ""        $as_nl"
14116
14117 # Find who we are.  Look in the path if we contain no directory separator.
14118 as_myself=
14119 case $0 in #((
14120   *[\\/]* ) as_myself=$0 ;;
14121   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14122 for as_dir in $PATH
14123 do
14124   IFS=$as_save_IFS
14125   test -z "$as_dir" && as_dir=.
14126     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14127   done
14128 IFS=$as_save_IFS
14129
14130      ;;
14131 esac
14132 # We did not find ourselves, most probably we were run as `sh COMMAND'
14133 # in which case we are not to be found in the path.
14134 if test "x$as_myself" = x; then
14135   as_myself=$0
14136 fi
14137 if test ! -f "$as_myself"; then
14138   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14139   exit 1
14140 fi
14141
14142 # Unset variables that we do not need and which cause bugs (e.g. in
14143 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14144 # suppresses any "Segmentation fault" message there.  '((' could
14145 # trigger a bug in pdksh 5.2.14.
14146 for as_var in BASH_ENV ENV MAIL MAILPATH
14147 do eval test x\${$as_var+set} = xset \
14148   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14149 done
14150 PS1='$ '
14151 PS2='> '
14152 PS4='+ '
14153
14154 # NLS nuisances.
14155 LC_ALL=C
14156 export LC_ALL
14157 LANGUAGE=C
14158 export LANGUAGE
14159
14160 # CDPATH.
14161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14162
14163
14164 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14165 # ----------------------------------------
14166 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14167 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14168 # script with STATUS, using 1 if that was 0.
14169 as_fn_error ()
14170 {
14171   as_status=$1; test $as_status -eq 0 && as_status=1
14172   if test "$4"; then
14173     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14174     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14175   fi
14176   $as_echo "$as_me: error: $2" >&2
14177   as_fn_exit $as_status
14178 } # as_fn_error
14179
14180
14181 # as_fn_set_status STATUS
14182 # -----------------------
14183 # Set $? to STATUS, without forking.
14184 as_fn_set_status ()
14185 {
14186   return $1
14187 } # as_fn_set_status
14188
14189 # as_fn_exit STATUS
14190 # -----------------
14191 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14192 as_fn_exit ()
14193 {
14194   set +e
14195   as_fn_set_status $1
14196   exit $1
14197 } # as_fn_exit
14198
14199 # as_fn_unset VAR
14200 # ---------------
14201 # Portably unset VAR.
14202 as_fn_unset ()
14203 {
14204   { eval $1=; unset $1;}
14205 }
14206 as_unset=as_fn_unset
14207 # as_fn_append VAR VALUE
14208 # ----------------------
14209 # Append the text in VALUE to the end of the definition contained in VAR. Take
14210 # advantage of any shell optimizations that allow amortized linear growth over
14211 # repeated appends, instead of the typical quadratic growth present in naive
14212 # implementations.
14213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14214   eval 'as_fn_append ()
14215   {
14216     eval $1+=\$2
14217   }'
14218 else
14219   as_fn_append ()
14220   {
14221     eval $1=\$$1\$2
14222   }
14223 fi # as_fn_append
14224
14225 # as_fn_arith ARG...
14226 # ------------------
14227 # Perform arithmetic evaluation on the ARGs, and store the result in the
14228 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14229 # must be portable across $(()) and expr.
14230 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14231   eval 'as_fn_arith ()
14232   {
14233     as_val=$(( $* ))
14234   }'
14235 else
14236   as_fn_arith ()
14237   {
14238     as_val=`expr "$@" || test $? -eq 1`
14239   }
14240 fi # as_fn_arith
14241
14242
14243 if expr a : '\(a\)' >/dev/null 2>&1 &&
14244    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14245   as_expr=expr
14246 else
14247   as_expr=false
14248 fi
14249
14250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14251   as_basename=basename
14252 else
14253   as_basename=false
14254 fi
14255
14256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14257   as_dirname=dirname
14258 else
14259   as_dirname=false
14260 fi
14261
14262 as_me=`$as_basename -- "$0" ||
14263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14264          X"$0" : 'X\(//\)$' \| \
14265          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14266 $as_echo X/"$0" |
14267     sed '/^.*\/\([^/][^/]*\)\/*$/{
14268             s//\1/
14269             q
14270           }
14271           /^X\/\(\/\/\)$/{
14272             s//\1/
14273             q
14274           }
14275           /^X\/\(\/\).*/{
14276             s//\1/
14277             q
14278           }
14279           s/.*/./; q'`
14280
14281 # Avoid depending upon Character Ranges.
14282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14285 as_cr_digits='0123456789'
14286 as_cr_alnum=$as_cr_Letters$as_cr_digits
14287
14288 ECHO_C= ECHO_N= ECHO_T=
14289 case `echo -n x` in #(((((
14290 -n*)
14291   case `echo 'xy\c'` in
14292   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14293   xy)  ECHO_C='\c';;
14294   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14295        ECHO_T=' ';;
14296   esac;;
14297 *)
14298   ECHO_N='-n';;
14299 esac
14300
14301 rm -f conf$$ conf$$.exe conf$$.file
14302 if test -d conf$$.dir; then
14303   rm -f conf$$.dir/conf$$.file
14304 else
14305   rm -f conf$$.dir
14306   mkdir conf$$.dir 2>/dev/null
14307 fi
14308 if (echo >conf$$.file) 2>/dev/null; then
14309   if ln -s conf$$.file conf$$ 2>/dev/null; then
14310     as_ln_s='ln -s'
14311     # ... but there are two gotchas:
14312     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14313     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14314     # In both cases, we have to default to `cp -pR'.
14315     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14316       as_ln_s='cp -pR'
14317   elif ln conf$$.file conf$$ 2>/dev/null; then
14318     as_ln_s=ln
14319   else
14320     as_ln_s='cp -pR'
14321   fi
14322 else
14323   as_ln_s='cp -pR'
14324 fi
14325 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14326 rmdir conf$$.dir 2>/dev/null
14327
14328
14329 # as_fn_mkdir_p
14330 # -------------
14331 # Create "$as_dir" as a directory, including parents if necessary.
14332 as_fn_mkdir_p ()
14333 {
14334
14335   case $as_dir in #(
14336   -*) as_dir=./$as_dir;;
14337   esac
14338   test -d "$as_dir" || eval $as_mkdir_p || {
14339     as_dirs=
14340     while :; do
14341       case $as_dir in #(
14342       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14343       *) as_qdir=$as_dir;;
14344       esac
14345       as_dirs="'$as_qdir' $as_dirs"
14346       as_dir=`$as_dirname -- "$as_dir" ||
14347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14348          X"$as_dir" : 'X\(//\)[^/]' \| \
14349          X"$as_dir" : 'X\(//\)$' \| \
14350          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14351 $as_echo X"$as_dir" |
14352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14353             s//\1/
14354             q
14355           }
14356           /^X\(\/\/\)[^/].*/{
14357             s//\1/
14358             q
14359           }
14360           /^X\(\/\/\)$/{
14361             s//\1/
14362             q
14363           }
14364           /^X\(\/\).*/{
14365             s//\1/
14366             q
14367           }
14368           s/.*/./; q'`
14369       test -d "$as_dir" && break
14370     done
14371     test -z "$as_dirs" || eval "mkdir $as_dirs"
14372   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14373
14374
14375 } # as_fn_mkdir_p
14376 if mkdir -p . 2>/dev/null; then
14377   as_mkdir_p='mkdir -p "$as_dir"'
14378 else
14379   test -d ./-p && rmdir ./-p
14380   as_mkdir_p=false
14381 fi
14382
14383
14384 # as_fn_executable_p FILE
14385 # -----------------------
14386 # Test if FILE is an executable regular file.
14387 as_fn_executable_p ()
14388 {
14389   test -f "$1" && test -x "$1"
14390 } # as_fn_executable_p
14391 as_test_x='test -x'
14392 as_executable_p=as_fn_executable_p
14393
14394 # Sed expression to map a string onto a valid CPP name.
14395 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14396
14397 # Sed expression to map a string onto a valid variable name.
14398 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14399
14400
14401 exec 6>&1
14402 ## ----------------------------------- ##
14403 ## Main body of $CONFIG_STATUS script. ##
14404 ## ----------------------------------- ##
14405 _ASEOF
14406 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14407
14408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14409 # Save the log message, to keep $0 and so on meaningful, and to
14410 # report actual input values of CONFIG_FILES etc. instead of their
14411 # values after options handling.
14412 ac_log="
14413 This file was extended by sqlite $as_me 3.26.0, which was
14414 generated by GNU Autoconf 2.69.  Invocation command line was
14415
14416   CONFIG_FILES    = $CONFIG_FILES
14417   CONFIG_HEADERS  = $CONFIG_HEADERS
14418   CONFIG_LINKS    = $CONFIG_LINKS
14419   CONFIG_COMMANDS = $CONFIG_COMMANDS
14420   $ $0 $@
14421
14422 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14423 "
14424
14425 _ACEOF
14426
14427 case $ac_config_files in *"
14428 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14429 esac
14430
14431
14432
14433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14434 # Files that config.status was made for.
14435 config_files="$ac_config_files"
14436 config_commands="$ac_config_commands"
14437
14438 _ACEOF
14439
14440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14441 ac_cs_usage="\
14442 \`$as_me' instantiates files and other configuration actions
14443 from templates according to the current configuration.  Unless the files
14444 and actions are specified as TAGs, all are instantiated by default.
14445
14446 Usage: $0 [OPTION]... [TAG]...
14447
14448   -h, --help       print this help, then exit
14449   -V, --version    print version number and configuration settings, then exit
14450       --config     print configuration, then exit
14451   -q, --quiet, --silent
14452                    do not print progress messages
14453   -d, --debug      don't remove temporary files
14454       --recheck    update $as_me by reconfiguring in the same conditions
14455       --file=FILE[:TEMPLATE]
14456                    instantiate the configuration file FILE
14457
14458 Configuration files:
14459 $config_files
14460
14461 Configuration commands:
14462 $config_commands
14463
14464 Report bugs to <http://www.sqlite.org>."
14465
14466 _ACEOF
14467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14468 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14469 ac_cs_version="\\
14470 sqlite config.status 3.26.0
14471 configured by $0, generated by GNU Autoconf 2.69,
14472   with options \\"\$ac_cs_config\\"
14473
14474 Copyright (C) 2012 Free Software Foundation, Inc.
14475 This config.status script is free software; the Free Software Foundation
14476 gives unlimited permission to copy, distribute and modify it."
14477
14478 ac_pwd='$ac_pwd'
14479 srcdir='$srcdir'
14480 INSTALL='$INSTALL'
14481 MKDIR_P='$MKDIR_P'
14482 AWK='$AWK'
14483 test -n "\$AWK" || AWK=awk
14484 _ACEOF
14485
14486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14487 # The default lists apply if the user does not specify any file.
14488 ac_need_defaults=:
14489 while test $# != 0
14490 do
14491   case $1 in
14492   --*=?*)
14493     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14494     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14495     ac_shift=:
14496     ;;
14497   --*=)
14498     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14499     ac_optarg=
14500     ac_shift=:
14501     ;;
14502   *)
14503     ac_option=$1
14504     ac_optarg=$2
14505     ac_shift=shift
14506     ;;
14507   esac
14508
14509   case $ac_option in
14510   # Handling of the options.
14511   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14512     ac_cs_recheck=: ;;
14513   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14514     $as_echo "$ac_cs_version"; exit ;;
14515   --config | --confi | --conf | --con | --co | --c )
14516     $as_echo "$ac_cs_config"; exit ;;
14517   --debug | --debu | --deb | --de | --d | -d )
14518     debug=: ;;
14519   --file | --fil | --fi | --f )
14520     $ac_shift
14521     case $ac_optarg in
14522     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14523     '') as_fn_error $? "missing file argument" ;;
14524     esac
14525     as_fn_append CONFIG_FILES " '$ac_optarg'"
14526     ac_need_defaults=false;;
14527   --he | --h |  --help | --hel | -h )
14528     $as_echo "$ac_cs_usage"; exit ;;
14529   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14530   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14531     ac_cs_silent=: ;;
14532
14533   # This is an error.
14534   -*) as_fn_error $? "unrecognized option: \`$1'
14535 Try \`$0 --help' for more information." ;;
14536
14537   *) as_fn_append ac_config_targets " $1"
14538      ac_need_defaults=false ;;
14539
14540   esac
14541   shift
14542 done
14543
14544 ac_configure_extra_args=
14545
14546 if $ac_cs_silent; then
14547   exec 6>/dev/null
14548   ac_configure_extra_args="$ac_configure_extra_args --silent"
14549 fi
14550
14551 _ACEOF
14552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14553 if \$ac_cs_recheck; then
14554   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14555   shift
14556   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14557   CONFIG_SHELL='$SHELL'
14558   export CONFIG_SHELL
14559   exec "\$@"
14560 fi
14561
14562 _ACEOF
14563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14564 exec 5>>config.log
14565 {
14566   echo
14567   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14568 ## Running $as_me. ##
14569 _ASBOX
14570   $as_echo "$ac_log"
14571 } >&5
14572
14573 _ACEOF
14574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14575 #
14576 # INIT-COMMANDS
14577 #
14578 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14579
14580
14581 # The HP-UX ksh and POSIX shell print the target directory to stdout
14582 # if CDPATH is set.
14583 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14584
14585 sed_quote_subst='$sed_quote_subst'
14586 double_quote_subst='$double_quote_subst'
14587 delay_variable_subst='$delay_variable_subst'
14588 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14589 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14590 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14591 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14592 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14593 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14594 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14595 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14596 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14597 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14598 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14599 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14600 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14601 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14602 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14603 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14604 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14605 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14606 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14607 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14608 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14609 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14610 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14611 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14612 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14613 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14614 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14615 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14616 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14617 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14618 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14619 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14620 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14621 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14622 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14623 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14624 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14625 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14626 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14627 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14628 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14629 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14630 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14631 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14632 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14633 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14634 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14635 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14636 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14637 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14638 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14639 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14640 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14641 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14642 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14643 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14644 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14645 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14646 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14647 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14648 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14649 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14650 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14651 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14652 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14653 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14654 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14655 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14656 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14657 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14658 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14659 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14660 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14661 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14662 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14663 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14664 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14665 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14666 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14667 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14668 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14669 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14670 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14671 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14672 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14673 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14674 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14675 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14676 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14677 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14678 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14679 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14680 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14681 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14682 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14683 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14684 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14685 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14686 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14687 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14688 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14689 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14690 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14691 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14692 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14693 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14694 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14695 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14696 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14697 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14698 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14699 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14700 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14701 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14702 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14703 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14704 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14705 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14706 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14707 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14708 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14709 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14710 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14711 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14712 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14713 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14714 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14715 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14716 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14717 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14718 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14719 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14720 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14721 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14722 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14723
14724 LTCC='$LTCC'
14725 LTCFLAGS='$LTCFLAGS'
14726 compiler='$compiler_DEFAULT'
14727
14728 # A function that is used when there is no print builtin or printf.
14729 func_fallback_echo ()
14730 {
14731   eval 'cat <<_LTECHO_EOF
14732 \$1
14733 _LTECHO_EOF'
14734 }
14735
14736 # Quote evaled strings.
14737 for var in SHELL \
14738 ECHO \
14739 PATH_SEPARATOR \
14740 SED \
14741 GREP \
14742 EGREP \
14743 FGREP \
14744 LD \
14745 NM \
14746 LN_S \
14747 lt_SP2NL \
14748 lt_NL2SP \
14749 reload_flag \
14750 OBJDUMP \
14751 deplibs_check_method \
14752 file_magic_cmd \
14753 file_magic_glob \
14754 want_nocaseglob \
14755 DLLTOOL \
14756 sharedlib_from_linklib_cmd \
14757 AR \
14758 AR_FLAGS \
14759 archiver_list_spec \
14760 STRIP \
14761 RANLIB \
14762 CC \
14763 CFLAGS \
14764 compiler \
14765 lt_cv_sys_global_symbol_pipe \
14766 lt_cv_sys_global_symbol_to_cdecl \
14767 lt_cv_sys_global_symbol_to_import \
14768 lt_cv_sys_global_symbol_to_c_name_address \
14769 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14770 lt_cv_nm_interface \
14771 nm_file_list_spec \
14772 lt_cv_truncate_bin \
14773 lt_prog_compiler_no_builtin_flag \
14774 lt_prog_compiler_pic \
14775 lt_prog_compiler_wl \
14776 lt_prog_compiler_static \
14777 lt_cv_prog_compiler_c_o \
14778 need_locks \
14779 MANIFEST_TOOL \
14780 DSYMUTIL \
14781 NMEDIT \
14782 LIPO \
14783 OTOOL \
14784 OTOOL64 \
14785 shrext_cmds \
14786 export_dynamic_flag_spec \
14787 whole_archive_flag_spec \
14788 compiler_needs_object \
14789 with_gnu_ld \
14790 allow_undefined_flag \
14791 no_undefined_flag \
14792 hardcode_libdir_flag_spec \
14793 hardcode_libdir_separator \
14794 exclude_expsyms \
14795 include_expsyms \
14796 file_list_spec \
14797 variables_saved_for_relink \
14798 libname_spec \
14799 library_names_spec \
14800 soname_spec \
14801 install_override_mode \
14802 finish_eval \
14803 old_striplib \
14804 striplib; do
14805     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14806     *[\\\\\\\`\\"\\\$]*)
14807       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14808       ;;
14809     *)
14810       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14811       ;;
14812     esac
14813 done
14814
14815 # Double-quote double-evaled strings.
14816 for var in reload_cmds \
14817 old_postinstall_cmds \
14818 old_postuninstall_cmds \
14819 old_archive_cmds \
14820 extract_expsyms_cmds \
14821 old_archive_from_new_cmds \
14822 old_archive_from_expsyms_cmds \
14823 archive_cmds \
14824 archive_expsym_cmds \
14825 module_cmds \
14826 module_expsym_cmds \
14827 export_symbols_cmds \
14828 prelink_cmds \
14829 postlink_cmds \
14830 postinstall_cmds \
14831 postuninstall_cmds \
14832 finish_cmds \
14833 sys_lib_search_path_spec \
14834 configure_time_dlsearch_path \
14835 configure_time_lt_sys_library_path; do
14836     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14837     *[\\\\\\\`\\"\\\$]*)
14838       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14839       ;;
14840     *)
14841       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14842       ;;
14843     esac
14844 done
14845
14846 ac_aux_dir='$ac_aux_dir'
14847
14848 # See if we are running on zsh, and set the options that allow our
14849 # commands through without removal of \ escapes INIT.
14850 if test -n "\${ZSH_VERSION+set}"; then
14851    setopt NO_GLOB_SUBST
14852 fi
14853
14854
14855     PACKAGE='$PACKAGE'
14856     VERSION='$VERSION'
14857     RM='$RM'
14858     ofile='$ofile'
14859
14860
14861
14862
14863 _ACEOF
14864
14865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14866
14867 # Handling of arguments.
14868 for ac_config_target in $ac_config_targets
14869 do
14870   case $ac_config_target in
14871     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14872     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14873     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14874     "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14875
14876   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14877   esac
14878 done
14879
14880
14881 # If the user did not use the arguments to specify the items to instantiate,
14882 # then the envvar interface is used.  Set only those that are not.
14883 # We use the long form for the default assignment because of an extremely
14884 # bizarre bug on SunOS 4.1.3.
14885 if $ac_need_defaults; then
14886   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14887   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14888 fi
14889
14890 # Have a temporary directory for convenience.  Make it in the build tree
14891 # simply because there is no reason against having it here, and in addition,
14892 # creating and moving files from /tmp can sometimes cause problems.
14893 # Hook for its removal unless debugging.
14894 # Note that there is a small window in which the directory will not be cleaned:
14895 # after its creation but before its name has been assigned to `$tmp'.
14896 $debug ||
14897 {
14898   tmp= ac_tmp=
14899   trap 'exit_status=$?
14900   : "${ac_tmp:=$tmp}"
14901   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14902 ' 0
14903   trap 'as_fn_exit 1' 1 2 13 15
14904 }
14905 # Create a (secure) tmp directory for tmp files.
14906
14907 {
14908   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14909   test -d "$tmp"
14910 }  ||
14911 {
14912   tmp=./conf$$-$RANDOM
14913   (umask 077 && mkdir "$tmp")
14914 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14915 ac_tmp=$tmp
14916
14917 # Set up the scripts for CONFIG_FILES section.
14918 # No need to generate them if there are no CONFIG_FILES.
14919 # This happens for instance with `./config.status config.h'.
14920 if test -n "$CONFIG_FILES"; then
14921
14922
14923 ac_cr=`echo X | tr X '\015'`
14924 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14925 # But we know of no other shell where ac_cr would be empty at this
14926 # point, so we can use a bashism as a fallback.
14927 if test "x$ac_cr" = x; then
14928   eval ac_cr=\$\'\\r\'
14929 fi
14930 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14931 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14932   ac_cs_awk_cr='\\r'
14933 else
14934   ac_cs_awk_cr=$ac_cr
14935 fi
14936
14937 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14938 _ACEOF
14939
14940
14941 {
14942   echo "cat >conf$$subs.awk <<_ACEOF" &&
14943   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14944   echo "_ACEOF"
14945 } >conf$$subs.sh ||
14946   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14947 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14948 ac_delim='%!_!# '
14949 for ac_last_try in false false false false false :; do
14950   . ./conf$$subs.sh ||
14951     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14952
14953   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14954   if test $ac_delim_n = $ac_delim_num; then
14955     break
14956   elif $ac_last_try; then
14957     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14958   else
14959     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14960   fi
14961 done
14962 rm -f conf$$subs.sh
14963
14964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14965 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14966 _ACEOF
14967 sed -n '
14968 h
14969 s/^/S["/; s/!.*/"]=/
14970 p
14971 g
14972 s/^[^!]*!//
14973 :repl
14974 t repl
14975 s/'"$ac_delim"'$//
14976 t delim
14977 :nl
14978 h
14979 s/\(.\{148\}\)..*/\1/
14980 t more1
14981 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14982 p
14983 n
14984 b repl
14985 :more1
14986 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14987 p
14988 g
14989 s/.\{148\}//
14990 t nl
14991 :delim
14992 h
14993 s/\(.\{148\}\)..*/\1/
14994 t more2
14995 s/["\\]/\\&/g; s/^/"/; s/$/"/
14996 p
14997 b
14998 :more2
14999 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15000 p
15001 g
15002 s/.\{148\}//
15003 t delim
15004 ' <conf$$subs.awk | sed '
15005 /^[^""]/{
15006   N
15007   s/\n//
15008 }
15009 ' >>$CONFIG_STATUS || ac_write_fail=1
15010 rm -f conf$$subs.awk
15011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15012 _ACAWK
15013 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15014   for (key in S) S_is_set[key] = 1
15015   FS = "\a"
15016
15017 }
15018 {
15019   line = $ 0
15020   nfields = split(line, field, "@")
15021   substed = 0
15022   len = length(field[1])
15023   for (i = 2; i < nfields; i++) {
15024     key = field[i]
15025     keylen = length(key)
15026     if (S_is_set[key]) {
15027       value = S[key]
15028       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15029       len += length(value) + length(field[++i])
15030       substed = 1
15031     } else
15032       len += 1 + keylen
15033   }
15034
15035   print line
15036 }
15037
15038 _ACAWK
15039 _ACEOF
15040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15041 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15042   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15043 else
15044   cat
15045 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15046   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15047 _ACEOF
15048
15049 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15050 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15051 # trailing colons and then remove the whole line if VPATH becomes empty
15052 # (actually we leave an empty line to preserve line numbers).
15053 if test "x$srcdir" = x.; then
15054   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15055 h
15056 s///
15057 s/^/:/
15058 s/[      ]*$/:/
15059 s/:\$(srcdir):/:/g
15060 s/:\${srcdir}:/:/g
15061 s/:@srcdir@:/:/g
15062 s/^:*//
15063 s/:*$//
15064 x
15065 s/\(=[   ]*\).*/\1/
15066 G
15067 s/\n//
15068 s/^[^=]*=[       ]*$//
15069 }'
15070 fi
15071
15072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15073 fi # test -n "$CONFIG_FILES"
15074
15075
15076 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
15077 shift
15078 for ac_tag
15079 do
15080   case $ac_tag in
15081   :[FHLC]) ac_mode=$ac_tag; continue;;
15082   esac
15083   case $ac_mode$ac_tag in
15084   :[FHL]*:*);;
15085   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15086   :[FH]-) ac_tag=-:-;;
15087   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15088   esac
15089   ac_save_IFS=$IFS
15090   IFS=:
15091   set x $ac_tag
15092   IFS=$ac_save_IFS
15093   shift
15094   ac_file=$1
15095   shift
15096
15097   case $ac_mode in
15098   :L) ac_source=$1;;
15099   :[FH])
15100     ac_file_inputs=
15101     for ac_f
15102     do
15103       case $ac_f in
15104       -) ac_f="$ac_tmp/stdin";;
15105       *) # Look for the file first in the build tree, then in the source tree
15106          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15107          # because $ac_f cannot contain `:'.
15108          test -f "$ac_f" ||
15109            case $ac_f in
15110            [\\/$]*) false;;
15111            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15112            esac ||
15113            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15114       esac
15115       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15116       as_fn_append ac_file_inputs " '$ac_f'"
15117     done
15118
15119     # Let's still pretend it is `configure' which instantiates (i.e., don't
15120     # use $as_me), people would be surprised to read:
15121     #    /* config.h.  Generated by config.status.  */
15122     configure_input='Generated from '`
15123           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15124         `' by configure.'
15125     if test x"$ac_file" != x-; then
15126       configure_input="$ac_file.  $configure_input"
15127       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15128 $as_echo "$as_me: creating $ac_file" >&6;}
15129     fi
15130     # Neutralize special characters interpreted by sed in replacement strings.
15131     case $configure_input in #(
15132     *\&* | *\|* | *\\* )
15133        ac_sed_conf_input=`$as_echo "$configure_input" |
15134        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15135     *) ac_sed_conf_input=$configure_input;;
15136     esac
15137
15138     case $ac_tag in
15139     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15140       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15141     esac
15142     ;;
15143   esac
15144
15145   ac_dir=`$as_dirname -- "$ac_file" ||
15146 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15147          X"$ac_file" : 'X\(//\)[^/]' \| \
15148          X"$ac_file" : 'X\(//\)$' \| \
15149          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15150 $as_echo X"$ac_file" |
15151     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15152             s//\1/
15153             q
15154           }
15155           /^X\(\/\/\)[^/].*/{
15156             s//\1/
15157             q
15158           }
15159           /^X\(\/\/\)$/{
15160             s//\1/
15161             q
15162           }
15163           /^X\(\/\).*/{
15164             s//\1/
15165             q
15166           }
15167           s/.*/./; q'`
15168   as_dir="$ac_dir"; as_fn_mkdir_p
15169   ac_builddir=.
15170
15171 case "$ac_dir" in
15172 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15173 *)
15174   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15175   # A ".." for each directory in $ac_dir_suffix.
15176   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15177   case $ac_top_builddir_sub in
15178   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15179   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15180   esac ;;
15181 esac
15182 ac_abs_top_builddir=$ac_pwd
15183 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15184 # for backward compatibility:
15185 ac_top_builddir=$ac_top_build_prefix
15186
15187 case $srcdir in
15188   .)  # We are building in place.
15189     ac_srcdir=.
15190     ac_top_srcdir=$ac_top_builddir_sub
15191     ac_abs_top_srcdir=$ac_pwd ;;
15192   [\\/]* | ?:[\\/]* )  # Absolute name.
15193     ac_srcdir=$srcdir$ac_dir_suffix;
15194     ac_top_srcdir=$srcdir
15195     ac_abs_top_srcdir=$srcdir ;;
15196   *) # Relative name.
15197     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15198     ac_top_srcdir=$ac_top_build_prefix$srcdir
15199     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15200 esac
15201 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15202
15203
15204   case $ac_mode in
15205   :F)
15206   #
15207   # CONFIG_FILE
15208   #
15209
15210   case $INSTALL in
15211   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15212   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15213   esac
15214   ac_MKDIR_P=$MKDIR_P
15215   case $MKDIR_P in
15216   [\\/$]* | ?:[\\/]* ) ;;
15217   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15218   esac
15219 _ACEOF
15220
15221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15222 # If the template does not know about datarootdir, expand it.
15223 # FIXME: This hack should be removed a few years after 2.60.
15224 ac_datarootdir_hack=; ac_datarootdir_seen=
15225 ac_sed_dataroot='
15226 /datarootdir/ {
15227   p
15228   q
15229 }
15230 /@datadir@/p
15231 /@docdir@/p
15232 /@infodir@/p
15233 /@localedir@/p
15234 /@mandir@/p'
15235 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15236 *datarootdir*) ac_datarootdir_seen=yes;;
15237 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15238   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15239 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15240 _ACEOF
15241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15242   ac_datarootdir_hack='
15243   s&@datadir@&$datadir&g
15244   s&@docdir@&$docdir&g
15245   s&@infodir@&$infodir&g
15246   s&@localedir@&$localedir&g
15247   s&@mandir@&$mandir&g
15248   s&\\\${datarootdir}&$datarootdir&g' ;;
15249 esac
15250 _ACEOF
15251
15252 # Neutralize VPATH when `$srcdir' = `.'.
15253 # Shell code in configure.ac might set extrasub.
15254 # FIXME: do we really want to maintain this feature?
15255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256 ac_sed_extra="$ac_vpsub
15257 $extrasub
15258 _ACEOF
15259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15260 :t
15261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15262 s|@configure_input@|$ac_sed_conf_input|;t t
15263 s&@top_builddir@&$ac_top_builddir_sub&;t t
15264 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15265 s&@srcdir@&$ac_srcdir&;t t
15266 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15267 s&@top_srcdir@&$ac_top_srcdir&;t t
15268 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15269 s&@builddir@&$ac_builddir&;t t
15270 s&@abs_builddir@&$ac_abs_builddir&;t t
15271 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15272 s&@INSTALL@&$ac_INSTALL&;t t
15273 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15274 $ac_datarootdir_hack
15275 "
15276 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15277   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15278
15279 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15280   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15281   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15282       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15283   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15284 which seems to be undefined.  Please make sure it is defined" >&5
15285 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15286 which seems to be undefined.  Please make sure it is defined" >&2;}
15287
15288   rm -f "$ac_tmp/stdin"
15289   case $ac_file in
15290   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15291   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15292   esac \
15293   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15294  ;;
15295
15296
15297   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15298 $as_echo "$as_me: executing $ac_file commands" >&6;}
15299  ;;
15300   esac
15301
15302
15303   case $ac_file$ac_mode in
15304     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15305   # Older Autoconf quotes --file arguments for eval, but not when files
15306   # are listed without --file.  Let's play safe and only enable the eval
15307   # if we detect the quoting.
15308   case $CONFIG_FILES in
15309   *\'*) eval set x "$CONFIG_FILES" ;;
15310   *)   set x $CONFIG_FILES ;;
15311   esac
15312   shift
15313   for mf
15314   do
15315     # Strip MF so we end up with the name of the file.
15316     mf=`echo "$mf" | sed -e 's/:.*$//'`
15317     # Check whether this is an Automake generated Makefile or not.
15318     # We used to match only the files named 'Makefile.in', but
15319     # some people rename them; so instead we look at the file content.
15320     # Grep'ing the first line is not enough: some people post-process
15321     # each Makefile.in and add a new line on top of each file to say so.
15322     # Grep'ing the whole file is not good either: AIX grep has a line
15323     # limit of 2048, but all sed's we know have understand at least 4000.
15324     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15325       dirpart=`$as_dirname -- "$mf" ||
15326 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15327          X"$mf" : 'X\(//\)[^/]' \| \
15328          X"$mf" : 'X\(//\)$' \| \
15329          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15330 $as_echo X"$mf" |
15331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15332             s//\1/
15333             q
15334           }
15335           /^X\(\/\/\)[^/].*/{
15336             s//\1/
15337             q
15338           }
15339           /^X\(\/\/\)$/{
15340             s//\1/
15341             q
15342           }
15343           /^X\(\/\).*/{
15344             s//\1/
15345             q
15346           }
15347           s/.*/./; q'`
15348     else
15349       continue
15350     fi
15351     # Extract the definition of DEPDIR, am__include, and am__quote
15352     # from the Makefile without running 'make'.
15353     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15354     test -z "$DEPDIR" && continue
15355     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15356     test -z "$am__include" && continue
15357     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15358     # Find all dependency output files, they are included files with
15359     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15360     # simplest approach to changing $(DEPDIR) to its actual value in the
15361     # expansion.
15362     for file in `sed -n "
15363       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15364          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15365       # Make sure the directory exists.
15366       test -f "$dirpart/$file" && continue
15367       fdir=`$as_dirname -- "$file" ||
15368 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15369          X"$file" : 'X\(//\)[^/]' \| \
15370          X"$file" : 'X\(//\)$' \| \
15371          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15372 $as_echo X"$file" |
15373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15374             s//\1/
15375             q
15376           }
15377           /^X\(\/\/\)[^/].*/{
15378             s//\1/
15379             q
15380           }
15381           /^X\(\/\/\)$/{
15382             s//\1/
15383             q
15384           }
15385           /^X\(\/\).*/{
15386             s//\1/
15387             q
15388           }
15389           s/.*/./; q'`
15390       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15391       # echo "creating $dirpart/$file"
15392       echo '# dummy' > "$dirpart/$file"
15393     done
15394   done
15395 }
15396  ;;
15397     "libtool":C)
15398
15399     # See if we are running on zsh, and set the options that allow our
15400     # commands through without removal of \ escapes.
15401     if test -n "${ZSH_VERSION+set}"; then
15402       setopt NO_GLOB_SUBST
15403     fi
15404
15405     cfgfile=${ofile}T
15406     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15407     $RM "$cfgfile"
15408
15409     cat <<_LT_EOF >> "$cfgfile"
15410 #! $SHELL
15411 # Generated automatically by $as_me ($PACKAGE) $VERSION
15412 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15413 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15414
15415 # Provide generalized library-building support services.
15416 # Written by Gordon Matzigkeit, 1996
15417
15418 # Copyright (C) 2014 Free Software Foundation, Inc.
15419 # This is free software; see the source for copying conditions.  There is NO
15420 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15421
15422 # GNU Libtool is free software; you can redistribute it and/or modify
15423 # it under the terms of the GNU General Public License as published by
15424 # the Free Software Foundation; either version 2 of of the License, or
15425 # (at your option) any later version.
15426 #
15427 # As a special exception to the GNU General Public License, if you
15428 # distribute this file as part of a program or library that is built
15429 # using GNU Libtool, you may include this file under the  same
15430 # distribution terms that you use for the rest of that program.
15431 #
15432 # GNU Libtool is distributed in the hope that it will be useful, but
15433 # WITHOUT ANY WARRANTY; without even the implied warranty of
15434 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15435 # GNU General Public License for more details.
15436 #
15437 # You should have received a copy of the GNU General Public License
15438 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
15439
15440
15441 # The names of the tagged configurations supported by this script.
15442 available_tags=''
15443
15444 # Configured defaults for sys_lib_dlsearch_path munging.
15445 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15446
15447 # ### BEGIN LIBTOOL CONFIG
15448
15449 # Which release of libtool.m4 was used?
15450 macro_version=$macro_version
15451 macro_revision=$macro_revision
15452
15453 # Whether or not to build shared libraries.
15454 build_libtool_libs=$enable_shared
15455
15456 # Whether or not to build static libraries.
15457 build_old_libs=$enable_static
15458
15459 # What type of objects to build.
15460 pic_mode=$pic_mode
15461
15462 # Whether or not to optimize for fast installation.
15463 fast_install=$enable_fast_install
15464
15465 # Shared archive member basename,for filename based shared library versioning on AIX.
15466 shared_archive_member_spec=$shared_archive_member_spec
15467
15468 # Shell to use when invoking shell scripts.
15469 SHELL=$lt_SHELL
15470
15471 # An echo program that protects backslashes.
15472 ECHO=$lt_ECHO
15473
15474 # The PATH separator for the build system.
15475 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15476
15477 # The host system.
15478 host_alias=$host_alias
15479 host=$host
15480 host_os=$host_os
15481
15482 # The build system.
15483 build_alias=$build_alias
15484 build=$build
15485 build_os=$build_os
15486
15487 # A sed program that does not truncate output.
15488 SED=$lt_SED
15489
15490 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15491 Xsed="\$SED -e 1s/^X//"
15492
15493 # A grep program that handles long lines.
15494 GREP=$lt_GREP
15495
15496 # An ERE matcher.
15497 EGREP=$lt_EGREP
15498
15499 # A literal string matcher.
15500 FGREP=$lt_FGREP
15501
15502 # A BSD- or MS-compatible name lister.
15503 NM=$lt_NM
15504
15505 # Whether we need soft or hard links.
15506 LN_S=$lt_LN_S
15507
15508 # What is the maximum length of a command?
15509 max_cmd_len=$max_cmd_len
15510
15511 # Object file suffix (normally "o").
15512 objext=$ac_objext
15513
15514 # Executable file suffix (normally "").
15515 exeext=$exeext
15516
15517 # whether the shell understands "unset".
15518 lt_unset=$lt_unset
15519
15520 # turn spaces into newlines.
15521 SP2NL=$lt_lt_SP2NL
15522
15523 # turn newlines into spaces.
15524 NL2SP=$lt_lt_NL2SP
15525
15526 # convert \$build file names to \$host format.
15527 to_host_file_cmd=$lt_cv_to_host_file_cmd
15528
15529 # convert \$build files to toolchain format.
15530 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15531
15532 # An object symbol dumper.
15533 OBJDUMP=$lt_OBJDUMP
15534
15535 # Method to check whether dependent libraries are shared objects.
15536 deplibs_check_method=$lt_deplibs_check_method
15537
15538 # Command to use when deplibs_check_method = "file_magic".
15539 file_magic_cmd=$lt_file_magic_cmd
15540
15541 # How to find potential files when deplibs_check_method = "file_magic".
15542 file_magic_glob=$lt_file_magic_glob
15543
15544 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15545 want_nocaseglob=$lt_want_nocaseglob
15546
15547 # DLL creation program.
15548 DLLTOOL=$lt_DLLTOOL
15549
15550 # Command to associate shared and link libraries.
15551 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15552
15553 # The archiver.
15554 AR=$lt_AR
15555
15556 # Flags to create an archive.
15557 AR_FLAGS=$lt_AR_FLAGS
15558
15559 # How to feed a file listing to the archiver.
15560 archiver_list_spec=$lt_archiver_list_spec
15561
15562 # A symbol stripping program.
15563 STRIP=$lt_STRIP
15564
15565 # Commands used to install an old-style archive.
15566 RANLIB=$lt_RANLIB
15567 old_postinstall_cmds=$lt_old_postinstall_cmds
15568 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15569
15570 # Whether to use a lock for old archive extraction.
15571 lock_old_archive_extraction=$lock_old_archive_extraction
15572
15573 # A C compiler.
15574 LTCC=$lt_CC
15575
15576 # LTCC compiler flags.
15577 LTCFLAGS=$lt_CFLAGS
15578
15579 # Take the output of nm and produce a listing of raw symbols and C names.
15580 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15581
15582 # Transform the output of nm in a proper C declaration.
15583 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15584
15585 # Transform the output of nm into a list of symbols to manually relocate.
15586 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15587
15588 # Transform the output of nm in a C name address pair.
15589 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15590
15591 # Transform the output of nm in a C name address pair when lib prefix is needed.
15592 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15593
15594 # The name lister interface.
15595 nm_interface=$lt_lt_cv_nm_interface
15596
15597 # Specify filename containing input files for \$NM.
15598 nm_file_list_spec=$lt_nm_file_list_spec
15599
15600 # The root where to search for dependent libraries,and where our libraries should be installed.
15601 lt_sysroot=$lt_sysroot
15602
15603 # Command to truncate a binary pipe.
15604 lt_truncate_bin=$lt_lt_cv_truncate_bin
15605
15606 # The name of the directory that contains temporary libtool files.
15607 objdir=$objdir
15608
15609 # Used to examine libraries when file_magic_cmd begins with "file".
15610 MAGIC_CMD=$MAGIC_CMD
15611
15612 # Must we lock files when doing compilation?
15613 need_locks=$lt_need_locks
15614
15615 # Manifest tool.
15616 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15617
15618 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15619 DSYMUTIL=$lt_DSYMUTIL
15620
15621 # Tool to change global to local symbols on Mac OS X.
15622 NMEDIT=$lt_NMEDIT
15623
15624 # Tool to manipulate fat objects and archives on Mac OS X.
15625 LIPO=$lt_LIPO
15626
15627 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15628 OTOOL=$lt_OTOOL
15629
15630 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15631 OTOOL64=$lt_OTOOL64
15632
15633 # Old archive suffix (normally "a").
15634 libext=$libext
15635
15636 # Shared library suffix (normally ".so").
15637 shrext_cmds=$lt_shrext_cmds
15638
15639 # The commands to extract the exported symbol list from a shared archive.
15640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15641
15642 # Variables whose values should be saved in libtool wrapper scripts and
15643 # restored at link time.
15644 variables_saved_for_relink=$lt_variables_saved_for_relink
15645
15646 # Do we need the "lib" prefix for modules?
15647 need_lib_prefix=$need_lib_prefix
15648
15649 # Do we need a version for libraries?
15650 need_version=$need_version
15651
15652 # Library versioning type.
15653 version_type=$version_type
15654
15655 # Shared library runtime path variable.
15656 runpath_var=$runpath_var
15657
15658 # Shared library path variable.
15659 shlibpath_var=$shlibpath_var
15660
15661 # Is shlibpath searched before the hard-coded library search path?
15662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15663
15664 # Format of library name prefix.
15665 libname_spec=$lt_libname_spec
15666
15667 # List of archive names.  First name is the real one, the rest are links.
15668 # The last name is the one that the linker finds with -lNAME
15669 library_names_spec=$lt_library_names_spec
15670
15671 # The coded name of the library, if different from the real name.
15672 soname_spec=$lt_soname_spec
15673
15674 # Permission mode override for installation of shared libraries.
15675 install_override_mode=$lt_install_override_mode
15676
15677 # Command to use after installation of a shared archive.
15678 postinstall_cmds=$lt_postinstall_cmds
15679
15680 # Command to use after uninstallation of a shared archive.
15681 postuninstall_cmds=$lt_postuninstall_cmds
15682
15683 # Commands used to finish a libtool library installation in a directory.
15684 finish_cmds=$lt_finish_cmds
15685
15686 # As "finish_cmds", except a single script fragment to be evaled but
15687 # not shown.
15688 finish_eval=$lt_finish_eval
15689
15690 # Whether we should hardcode library paths into libraries.
15691 hardcode_into_libs=$hardcode_into_libs
15692
15693 # Compile-time system search path for libraries.
15694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15695
15696 # Detected run-time system search path for libraries.
15697 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15698
15699 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15700 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15701
15702 # Whether dlopen is supported.
15703 dlopen_support=$enable_dlopen
15704
15705 # Whether dlopen of programs is supported.
15706 dlopen_self=$enable_dlopen_self
15707
15708 # Whether dlopen of statically linked programs is supported.
15709 dlopen_self_static=$enable_dlopen_self_static
15710
15711 # Commands to strip libraries.
15712 old_striplib=$lt_old_striplib
15713 striplib=$lt_striplib
15714
15715
15716 # The linker used to build libraries.
15717 LD=$lt_LD
15718
15719 # How to create reloadable object files.
15720 reload_flag=$lt_reload_flag
15721 reload_cmds=$lt_reload_cmds
15722
15723 # Commands used to build an old-style archive.
15724 old_archive_cmds=$lt_old_archive_cmds
15725
15726 # A language specific compiler.
15727 CC=$lt_compiler
15728
15729 # Is the compiler the GNU compiler?
15730 with_gcc=$GCC
15731
15732 # Compiler flag to turn off builtin functions.
15733 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15734
15735 # Additional compiler flags for building library objects.
15736 pic_flag=$lt_lt_prog_compiler_pic
15737
15738 # How to pass a linker flag through the compiler.
15739 wl=$lt_lt_prog_compiler_wl
15740
15741 # Compiler flag to prevent dynamic linking.
15742 link_static_flag=$lt_lt_prog_compiler_static
15743
15744 # Does compiler simultaneously support -c and -o options?
15745 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15746
15747 # Whether or not to add -lc for building shared libraries.
15748 build_libtool_need_lc=$archive_cmds_need_lc
15749
15750 # Whether or not to disallow shared libs when runtime libs are static.
15751 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15752
15753 # Compiler flag to allow reflexive dlopens.
15754 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15755
15756 # Compiler flag to generate shared objects directly from archives.
15757 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15758
15759 # Whether the compiler copes with passing no objects directly.
15760 compiler_needs_object=$lt_compiler_needs_object
15761
15762 # Create an old-style archive from a shared archive.
15763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15764
15765 # Create a temporary old-style archive to link instead of a shared archive.
15766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15767
15768 # Commands used to build a shared archive.
15769 archive_cmds=$lt_archive_cmds
15770 archive_expsym_cmds=$lt_archive_expsym_cmds
15771
15772 # Commands used to build a loadable module if different from building
15773 # a shared archive.
15774 module_cmds=$lt_module_cmds
15775 module_expsym_cmds=$lt_module_expsym_cmds
15776
15777 # Whether we are building with GNU ld or not.
15778 with_gnu_ld=$lt_with_gnu_ld
15779
15780 # Flag that allows shared libraries with undefined symbols to be built.
15781 allow_undefined_flag=$lt_allow_undefined_flag
15782
15783 # Flag that enforces no undefined symbols.
15784 no_undefined_flag=$lt_no_undefined_flag
15785
15786 # Flag to hardcode \$libdir into a binary during linking.
15787 # This must work even if \$libdir does not exist
15788 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15789
15790 # Whether we need a single "-rpath" flag with a separated argument.
15791 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15792
15793 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15794 # DIR into the resulting binary.
15795 hardcode_direct=$hardcode_direct
15796
15797 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15798 # DIR into the resulting binary and the resulting library dependency is
15799 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15800 # library is relocated.
15801 hardcode_direct_absolute=$hardcode_direct_absolute
15802
15803 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15804 # into the resulting binary.
15805 hardcode_minus_L=$hardcode_minus_L
15806
15807 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15808 # into the resulting binary.
15809 hardcode_shlibpath_var=$hardcode_shlibpath_var
15810
15811 # Set to "yes" if building a shared library automatically hardcodes DIR
15812 # into the library and all subsequent libraries and executables linked
15813 # against it.
15814 hardcode_automatic=$hardcode_automatic
15815
15816 # Set to yes if linker adds runtime paths of dependent libraries
15817 # to runtime path list.
15818 inherit_rpath=$inherit_rpath
15819
15820 # Whether libtool must link a program against all its dependency libraries.
15821 link_all_deplibs=$link_all_deplibs
15822
15823 # Set to "yes" if exported symbols are required.
15824 always_export_symbols=$always_export_symbols
15825
15826 # The commands to list exported symbols.
15827 export_symbols_cmds=$lt_export_symbols_cmds
15828
15829 # Symbols that should not be listed in the preloaded symbols.
15830 exclude_expsyms=$lt_exclude_expsyms
15831
15832 # Symbols that must always be exported.
15833 include_expsyms=$lt_include_expsyms
15834
15835 # Commands necessary for linking programs (against libraries) with templates.
15836 prelink_cmds=$lt_prelink_cmds
15837
15838 # Commands necessary for finishing linking programs.
15839 postlink_cmds=$lt_postlink_cmds
15840
15841 # Specify filename containing input files.
15842 file_list_spec=$lt_file_list_spec
15843
15844 # How to hardcode a shared library path into an executable.
15845 hardcode_action=$hardcode_action
15846
15847 # ### END LIBTOOL CONFIG
15848
15849 _LT_EOF
15850
15851     cat <<'_LT_EOF' >> "$cfgfile"
15852
15853 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15854
15855 # func_munge_path_list VARIABLE PATH
15856 # -----------------------------------
15857 # VARIABLE is name of variable containing _space_ separated list of
15858 # directories to be munged by the contents of PATH, which is string
15859 # having a format:
15860 # "DIR[:DIR]:"
15861 #       string "DIR[ DIR]" will be prepended to VARIABLE
15862 # ":DIR[:DIR]"
15863 #       string "DIR[ DIR]" will be appended to VARIABLE
15864 # "DIRP[:DIRP]::[DIRA:]DIRA"
15865 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15866 #       "DIRA[ DIRA]" will be appended to VARIABLE
15867 # "DIR[:DIR]"
15868 #       VARIABLE will be replaced by "DIR[ DIR]"
15869 func_munge_path_list ()
15870 {
15871     case x$2 in
15872     x)
15873         ;;
15874     *:)
15875         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15876         ;;
15877     x:*)
15878         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15879         ;;
15880     *::*)
15881         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15882         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15883         ;;
15884     *)
15885         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15886         ;;
15887     esac
15888 }
15889
15890
15891 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15892 func_cc_basename ()
15893 {
15894     for cc_temp in $*""; do
15895       case $cc_temp in
15896         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15897         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15898         \-*) ;;
15899         *) break;;
15900       esac
15901     done
15902     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15903 }
15904
15905
15906 # ### END FUNCTIONS SHARED WITH CONFIGURE
15907
15908 _LT_EOF
15909
15910   case $host_os in
15911   aix3*)
15912     cat <<\_LT_EOF >> "$cfgfile"
15913 # AIX sometimes has problems with the GCC collect2 program.  For some
15914 # reason, if we set the COLLECT_NAMES environment variable, the problems
15915 # vanish in a puff of smoke.
15916 if test set != "${COLLECT_NAMES+set}"; then
15917   COLLECT_NAMES=
15918   export COLLECT_NAMES
15919 fi
15920 _LT_EOF
15921     ;;
15922   esac
15923
15924
15925 ltmain=$ac_aux_dir/ltmain.sh
15926
15927
15928   # We use sed instead of cat because bash on DJGPP gets confused if
15929   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15930   # text mode, it properly converts lines to CR/LF.  This bash problem
15931   # is reportedly fixed, but why not run on old versions too?
15932   sed '$q' "$ltmain" >> "$cfgfile" \
15933      || (rm -f "$cfgfile"; exit 1)
15934
15935    mv -f "$cfgfile" "$ofile" ||
15936     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15937   chmod +x "$ofile"
15938
15939  ;;
15940
15941   esac
15942 done # for ac_tag
15943
15944
15945 as_fn_exit 0
15946 _ACEOF
15947 ac_clean_files=$ac_clean_files_save
15948
15949 test $ac_write_fail = 0 ||
15950   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15951
15952
15953 # configure is writing to config.log, and then calls config.status.
15954 # config.status does its own redirection, appending to config.log.
15955 # Unfortunately, on DOS this fails, as config.log is still kept open
15956 # by configure, so config.status won't be able to write to it; its
15957 # output is simply discarded.  So we exec the FD to /dev/null,
15958 # effectively closing config.log, so it can be properly (re)opened and
15959 # appended to by config.status.  When coming back to configure, we
15960 # need to make the FD available again.
15961 if test "$no_create" != yes; then
15962   ac_cs_success=:
15963   ac_config_status_args=
15964   test "$silent" = yes &&
15965     ac_config_status_args="$ac_config_status_args --quiet"
15966   exec 5>/dev/null
15967   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15968   exec 5>>config.log
15969   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15970   # would make configure fail if this is the last instruction.
15971   $ac_cs_success || as_fn_exit 1
15972 fi
15973 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15974   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15975 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15976 fi
15977