Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(779)

Side by Side Diff: third_party/sqlite/sqlite-src-3100200/configure

Issue 2846743003: [sql] Remove SQLite 3.10.2 reference directory. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.10.2.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file n ame" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev /null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$ as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as _lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run =a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHEL L"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX s hell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 case X$lt_ECHO in
562 X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 ;;
566 esac
567
568 ECHO=${lt_ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572 elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
574 :
575 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
577 :
578 else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 fi
582
583 if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
586 cat <<_LT_EOF
587 $*
588 _LT_EOF
589 exit 0
590 fi
591
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 # if CDPATH is set.
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596 if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
605 fi
606 done
607 fi
608
609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
619
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
629 fi
630 done
631 IFS="$lt_save_ifs"
632
633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 else
649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo ' \t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo " $echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/d ev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_tes t_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
673
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'se d 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
689 fi
690 fi
691 fi
692 fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 lt_ECHO=$ECHO
699 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 test -n "$DJDIR" || exec 7<&0 </dev/null
707 exec 6>&1
708
709 # Name of the host.
710 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714 #
715 # Initializations.
716 #
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725
726 # Identity of this package.
727 PACKAGE_NAME='sqlite'
728 PACKAGE_TARNAME='sqlite'
729 PACKAGE_VERSION='3.10.2'
730 PACKAGE_STRING='sqlite 3.10.2'
731 PACKAGE_BUGREPORT=''
732 PACKAGE_URL=''
733
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='LTLIBOBJS
771 LIBOBJS
772 BUILD_CFLAGS
773 USE_GCOV
774 OPT_FEATURE_FLAGS
775 USE_AMALGAMATION
776 TARGET_DEBUG
777 TARGET_HAVE_EDITLINE
778 TARGET_HAVE_READLINE
779 TARGET_READLINE_INC
780 TARGET_READLINE_LIBS
781 HAVE_TCL
782 TCL_SHLIB_SUFFIX
783 TCL_STUB_LIB_SPEC
784 TCL_STUB_LIB_FLAG
785 TCL_STUB_LIB_FILE
786 TCL_LIB_SPEC
787 TCL_LIB_FLAG
788 TCL_LIB_FILE
789 TCL_INCLUDE_SPEC
790 TCL_SRC_DIR
791 TCL_BIN_DIR
792 TCL_VERSION
793 TARGET_EXEEXT
794 SQLITE_OS_WIN
795 SQLITE_OS_UNIX
796 BUILD_EXEEXT
797 TEMP_STORE
798 ALLOWRELEASE
799 SQLITE_THREADSAFE
800 BUILD_CC
801 VERSION_NUMBER
802 RELEASE
803 VERSION
804 program_prefix
805 TCLLIBDIR
806 TCLSH_CMD
807 INSTALL_DATA
808 INSTALL_SCRIPT
809 INSTALL_PROGRAM
810 CPP
811 OTOOL64
812 OTOOL
813 LIPO
814 NMEDIT
815 DSYMUTIL
816 lt_ECHO
817 RANLIB
818 STRIP
819 AR
820 OBJDUMP
821 LN_S
822 NM
823 ac_ct_DUMPBIN
824 DUMPBIN
825 LD
826 FGREP
827 EGREP
828 GREP
829 SED
830 OBJEXT
831 EXEEXT
832 ac_ct_CC
833 CPPFLAGS
834 LDFLAGS
835 CFLAGS
836 CC
837 host_os
838 host_vendor
839 host_cpu
840 host
841 build_os
842 build_vendor
843 build_cpu
844 build
845 LIBTOOL
846 target_alias
847 host_alias
848 build_alias
849 LIBS
850 ECHO_T
851 ECHO_N
852 ECHO_C
853 DEFS
854 mandir
855 localedir
856 libdir
857 psdir
858 pdfdir
859 dvidir
860 htmldir
861 infodir
862 docdir
863 oldincludedir
864 includedir
865 localstatedir
866 sharedstatedir
867 sysconfdir
868 datadir
869 datarootdir
870 libexecdir
871 sbindir
872 bindir
873 program_transform_name
874 prefix
875 exec_prefix
876 PACKAGE_URL
877 PACKAGE_BUGREPORT
878 PACKAGE_STRING
879 PACKAGE_VERSION
880 PACKAGE_TARNAME
881 PACKAGE_NAME
882 PATH_SEPARATOR
883 SHELL'
884 ac_subst_files=''
885 ac_user_opts='
886 enable_option_checking
887 enable_shared
888 enable_static
889 with_pic
890 enable_fast_install
891 with_gnu_ld
892 enable_libtool_lock
893 enable_largefile
894 enable_threadsafe
895 enable_releasemode
896 enable_tempstore
897 enable_tcl
898 with_tcl
899 enable_editline
900 enable_readline
901 with_readline_lib
902 with_readline_inc
903 enable_debug
904 enable_amalgamation
905 enable_load_extension
906 enable_fts3
907 enable_fts4
908 enable_fts5
909 enable_json1
910 enable_rtree
911 enable_gcov
912 '
913 ac_precious_vars='build_alias
914 host_alias
915 target_alias
916 CC
917 CFLAGS
918 LDFLAGS
919 LIBS
920 CPPFLAGS
921 CPP
922 TCLLIBDIR'
923
924
925 # Initialize some variables set by options.
926 ac_init_help=
927 ac_init_version=false
928 ac_unrecognized_opts=
929 ac_unrecognized_sep=
930 # The variables have the same names as the options, with
931 # dashes changed to underlines.
932 cache_file=/dev/null
933 exec_prefix=NONE
934 no_create=
935 no_recursion=
936 prefix=NONE
937 program_prefix=NONE
938 program_suffix=NONE
939 program_transform_name=s,x,x,
940 silent=
941 site=
942 srcdir=
943 verbose=
944 x_includes=NONE
945 x_libraries=NONE
946
947 # Installation directory options.
948 # These are left unexpanded so users can "make install exec_prefix=/foo"
949 # and all the variables that are supposed to be based on exec_prefix
950 # by default will actually change.
951 # Use braces instead of parens because sh, perl, etc. also accept them.
952 # (The list follows the same order as the GNU Coding Standards.)
953 bindir='${exec_prefix}/bin'
954 sbindir='${exec_prefix}/sbin'
955 libexecdir='${exec_prefix}/libexec'
956 datarootdir='${prefix}/share'
957 datadir='${datarootdir}'
958 sysconfdir='${prefix}/etc'
959 sharedstatedir='${prefix}/com'
960 localstatedir='${prefix}/var'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir='${datarootdir}/info'
965 htmldir='${docdir}'
966 dvidir='${docdir}'
967 pdfdir='${docdir}'
968 psdir='${docdir}'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
972
973 ac_prev=
974 ac_dashdash=
975 for ac_option
976 do
977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
979 eval $ac_prev=\$ac_option
980 ac_prev=
981 continue
982 fi
983
984 case $ac_option in
985 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 *=) ac_optarg= ;;
987 *) ac_optarg=yes ;;
988 esac
989
990 # Accept the important Cygnus configure options, so we can diagnose typos.
991
992 case $ac_dashdash$ac_option in
993 --)
994 ac_dashdash=yes ;;
995
996 -bindir | --bindir | --bindi | --bind | --bin | --bi)
997 ac_prev=bindir ;;
998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999 bindir=$ac_optarg ;;
1000
1001 -build | --build | --buil | --bui | --bu)
1002 ac_prev=build_alias ;;
1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004 build_alias=$ac_optarg ;;
1005
1006 -cache-file | --cache-file | --cache-fil | --cache-fi \
1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008 ac_prev=cache_file ;;
1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011 cache_file=$ac_optarg ;;
1012
1013 --config-cache | -C)
1014 cache_file=config.cache ;;
1015
1016 -datadir | --datadir | --datadi | --datad)
1017 ac_prev=datadir ;;
1018 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019 datadir=$ac_optarg ;;
1020
1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022 | --dataroo | --dataro | --datar)
1023 ac_prev=datarootdir ;;
1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026 datarootdir=$ac_optarg ;;
1027
1028 -disable-* | --disable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disabl e-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=no ;;
1043
1044 -docdir | --docdir | --docdi | --doc | --do)
1045 ac_prev=docdir ;;
1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047 docdir=$ac_optarg ;;
1048
1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050 ac_prev=dvidir ;;
1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052 dvidir=$ac_optarg ;;
1053
1054 -enable-* | --enable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error $? "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1062 *"
1063 "enable_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable -$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval enable_$ac_useropt=\$ac_optarg ;;
1069
1070 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072 | --exec | --exe | --ex)
1073 ac_prev=exec_prefix ;;
1074 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076 | --exec=* | --exe=* | --ex=*)
1077 exec_prefix=$ac_optarg ;;
1078
1079 -gas | --gas | --ga | --g)
1080 # Obsolete; use --with-gas.
1081 with_gas=yes ;;
1082
1083 -help | --help | --hel | --he | -h)
1084 ac_init_help=long ;;
1085 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086 ac_init_help=recursive ;;
1087 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088 ac_init_help=short ;;
1089
1090 -host | --host | --hos | --ho)
1091 ac_prev=host_alias ;;
1092 -host=* | --host=* | --hos=* | --ho=*)
1093 host_alias=$ac_optarg ;;
1094
1095 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 ac_prev=htmldir ;;
1097 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 | --ht=*)
1099 htmldir=$ac_optarg ;;
1100
1101 -includedir | --includedir | --includedi | --included | --include \
1102 | --includ | --inclu | --incl | --inc)
1103 ac_prev=includedir ;;
1104 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105 | --includ=* | --inclu=* | --incl=* | --inc=*)
1106 includedir=$ac_optarg ;;
1107
1108 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 ac_prev=infodir ;;
1110 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111 infodir=$ac_optarg ;;
1112
1113 -libdir | --libdir | --libdi | --libd)
1114 ac_prev=libdir ;;
1115 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116 libdir=$ac_optarg ;;
1117
1118 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119 | --libexe | --libex | --libe)
1120 ac_prev=libexecdir ;;
1121 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122 | --libexe=* | --libex=* | --libe=*)
1123 libexecdir=$ac_optarg ;;
1124
1125 -localedir | --localedir | --localedi | --localed | --locale)
1126 ac_prev=localedir ;;
1127 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128 localedir=$ac_optarg ;;
1129
1130 -localstatedir | --localstatedir | --localstatedi | --localstated \
1131 | --localstate | --localstat | --localsta | --localst | --locals)
1132 ac_prev=localstatedir ;;
1133 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135 localstatedir=$ac_optarg ;;
1136
1137 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 ac_prev=mandir ;;
1139 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140 mandir=$ac_optarg ;;
1141
1142 -nfp | --nfp | --nf)
1143 # Obsolete; use --without-fp.
1144 with_fp=no ;;
1145
1146 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147 | --no-cr | --no-c | -n)
1148 no_create=yes ;;
1149
1150 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152 no_recursion=yes ;;
1153
1154 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156 | --oldin | --oldi | --old | --ol | --o)
1157 ac_prev=oldincludedir ;;
1158 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161 oldincludedir=$ac_optarg ;;
1162
1163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 ac_prev=prefix ;;
1165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166 prefix=$ac_optarg ;;
1167
1168 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169 | --program-pre | --program-pr | --program-p)
1170 ac_prev=program_prefix ;;
1171 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173 program_prefix=$ac_optarg ;;
1174
1175 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176 | --program-suf | --program-su | --program-s)
1177 ac_prev=program_suffix ;;
1178 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180 program_suffix=$ac_optarg ;;
1181
1182 -program-transform-name | --program-transform-name \
1183 | --program-transform-nam | --program-transform-na \
1184 | --program-transform-n | --program-transform- \
1185 | --program-transform | --program-transfor \
1186 | --program-transfo | --program-transf \
1187 | --program-trans | --program-tran \
1188 | --progr-tra | --program-tr | --program-t)
1189 ac_prev=program_transform_name ;;
1190 -program-transform-name=* | --program-transform-name=* \
1191 | --program-transform-nam=* | --program-transform-na=* \
1192 | --program-transform-n=* | --program-transform-=* \
1193 | --program-transform=* | --program-transfor=* \
1194 | --program-transfo=* | --program-transf=* \
1195 | --program-trans=* | --program-tran=* \
1196 | --progr-tra=* | --program-tr=* | --program-t=*)
1197 program_transform_name=$ac_optarg ;;
1198
1199 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 ac_prev=pdfdir ;;
1201 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202 pdfdir=$ac_optarg ;;
1203
1204 -psdir | --psdir | --psdi | --psd | --ps)
1205 ac_prev=psdir ;;
1206 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207 psdir=$ac_optarg ;;
1208
1209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210 | -silent | --silent | --silen | --sile | --sil)
1211 silent=yes ;;
1212
1213 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 ac_prev=sbindir ;;
1215 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 | --sbi=* | --sb=*)
1217 sbindir=$ac_optarg ;;
1218
1219 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221 | --sharedst | --shareds | --shared | --share | --shar \
1222 | --sha | --sh)
1223 ac_prev=sharedstatedir ;;
1224 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 | --sha=* | --sh=*)
1228 sharedstatedir=$ac_optarg ;;
1229
1230 -site | --site | --sit)
1231 ac_prev=site ;;
1232 -site=* | --site=* | --sit=*)
1233 site=$ac_optarg ;;
1234
1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 ac_prev=srcdir ;;
1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238 srcdir=$ac_optarg ;;
1239
1240 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241 | --syscon | --sysco | --sysc | --sys | --sy)
1242 ac_prev=sysconfdir ;;
1243 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245 sysconfdir=$ac_optarg ;;
1246
1247 -target | --target | --targe | --targ | --tar | --ta | --t)
1248 ac_prev=target_alias ;;
1249 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250 target_alias=$ac_optarg ;;
1251
1252 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253 verbose=yes ;;
1254
1255 -version | --version | --versio | --versi | --vers | -V)
1256 ac_init_version=: ;;
1257
1258 -with-* | --with-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error $? "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267 "with_$ac_useropt"
1268 "*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=\$ac_optarg ;;
1273
1274 -without-* | --without-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error $? "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--withou t-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=no ;;
1289
1290 --x)
1291 # Obsolete; use --with-x.
1292 with_x=yes ;;
1293
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299 x_includes=$ac_optarg ;;
1300
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306 x_libraries=$ac_optarg ;;
1307
1308 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1309 Try \`$0 --help' for more information"
1310 ;;
1311
1312 *=*)
1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 case $ac_envvar in #(
1316 '' | [0-9]* | *[!_$as_cr_alnum]* )
1317 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318 esac
1319 eval $ac_envvar=\$ac_optarg
1320 export $ac_envvar ;;
1321
1322 *)
1323 # FIXME: should be removed in autoconf 3.0.
1324 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_opt ion}"
1328 ;;
1329
1330 esac
1331 done
1332
1333 if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335 as_fn_error $? "missing argument to $ac_option"
1336 fi
1337
1338 if test -n "$ac_unrecognized_opts"; then
1339 case $enable_option_checking in
1340 no) ;;
1341 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1342 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opt s" >&2 ;;
1343 esac
1344 fi
1345
1346 # Check all directory arguments for consistency.
1347 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1351 do
1352 eval ac_val=\$$ac_var
1353 # Remove trailing slashes.
1354 case $ac_val in
1355 */ )
1356 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357 eval $ac_var=\$ac_val;;
1358 esac
1359 # Be sure to have absolute directory names.
1360 case $ac_val in
1361 [\\/$]* | ?:[\\/]* ) continue;;
1362 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363 esac
1364 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1365 done
1366
1367 # There might be people who depend on the old broken behavior: `$host'
1368 # used to hold the argument of --host etc.
1369 # FIXME: To remove some day.
1370 build=$build_alias
1371 host=$host_alias
1372 target=$target_alias
1373
1374 # FIXME: To remove some day.
1375 if test "x$host_alias" != x; then
1376 if test "x$build_alias" = x; then
1377 cross_compiling=maybe
1378 elif test "x$build_alias" != "x$host_alias"; then
1379 cross_compiling=yes
1380 fi
1381 fi
1382
1383 ac_tool_prefix=
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386 test "$silent" = yes && exec 6>/dev/null
1387
1388
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392 as_fn_error $? "working directory cannot be determined"
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 as_fn_error $? "pwd does not report name of working directory"
1395
1396
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
1400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$as_myself" ||
1402 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403 X"$as_myself" : 'X\(//\)[^/]' \| \
1404 X"$as_myself" : 'X\(//\)$' \| \
1405 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406 $as_echo X"$as_myself" |
1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)[^/].*/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\/\)$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\).*/{
1420 s//\1/
1421 q
1422 }
1423 s/.*/./; q'`
1424 srcdir=$ac_confdir
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426 srcdir=..
1427 fi
1428 else
1429 ac_srcdir_defaulted=no
1430 fi
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1434 fi
1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 ac_abs_confdir=`(
1437 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438 pwd)`
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1442 fi
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1446 case $srcdir in
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 esac
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1455
1456 #
1457 # Report the --help message.
1458 #
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
1463 \`configure' configures sqlite 3.10.2 to adapt to many kinds of systems.
1464
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1469
1470 Defaults for the options are specified in brackets.
1471
1472 Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking ...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 [PREFIX]
1488
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1493
1494 For better control, use the options below.
1495
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1516 _ACEOF
1517
1518 cat <<\_ACEOF
1519
1520 System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 _ACEOF
1524 fi
1525
1526 if test -n "$ac_init_help"; then
1527 case $ac_init_help in
1528 short | recursive ) echo "Configuration of sqlite 3.10.2:";;
1529 esac
1530 cat <<\_ACEOF
1531
1532 Optional Features:
1533 --disable-option-checking ignore unrecognized --enable/--with options
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-shared[=PKGS] build shared libraries [default=yes]
1537 --enable-static[=PKGS] build static libraries [default=yes]
1538 --enable-fast-install[=PKGS]
1539 optimize for fast installation [default=yes]
1540 --disable-libtool-lock avoid locking (might break parallel builds)
1541 --disable-largefile omit support for large files
1542 --disable-threadsafe Disable mutexing
1543 --enable-releasemode Support libtool link to release mode
1544 --enable-tempstore Use an in-ram database for temporary tables
1545 (never,no,yes,always)
1546 --disable-tcl do not build TCL extension
1547 --enable-editline enable BSD editline support
1548 --disable-readline disable readline support
1549 --enable-debug enable debugging & verbose explain
1550 --disable-amalgamation Disable the amalgamation and instead build all files
1551 separately
1552 --disable-load-extension
1553 Disable loading of external extensions
1554 --enable-fts3 Enable the FTS3 extension
1555 --enable-fts4 Enable the FTS4 extension
1556 --enable-fts5 Enable the FTS5 extension
1557 --enable-json1 Enable the JSON1 extension
1558 --enable-rtree Enable the RTREE extension
1559 --enable-gcov Enable coverage testing using gcov
1560
1561 Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-pic try to use only PIC/non-PIC objects [default=use
1565 both]
1566 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1567 --with-tcl=DIR directory containing tcl configuration
1568 (tclConfig.sh)
1569 --with-readline-lib specify readline library
1570 --with-readline-inc specify readline include paths
1571
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1580 CPP C preprocessor
1581 TCLLIBDIR Where to install tcl plugin
1582
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1585
1586 Report bugs to the package provider.
1587 _ACEOF
1588 ac_status=$?
1589 fi
1590
1591 if test "$ac_init_help" = "recursive"; then
1592 # If there are subdirs, report their specific --help.
1593 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594 test -d "$ac_dir" ||
1595 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596 continue
1597 ac_builddir=.
1598
1599 case "$ac_dir" in
1600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *)
1602 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1603 # A ".." for each directory in $ac_dir_suffix.
1604 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1605 case $ac_top_builddir_sub in
1606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 esac ;;
1609 esac
1610 ac_abs_top_builddir=$ac_pwd
1611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612 # for backward compatibility:
1613 ac_top_builddir=$ac_top_build_prefix
1614
1615 case $srcdir in
1616 .) # We are building in place.
1617 ac_srcdir=.
1618 ac_top_srcdir=$ac_top_builddir_sub
1619 ac_abs_top_srcdir=$ac_pwd ;;
1620 [\\/]* | ?:[\\/]* ) # Absolute name.
1621 ac_srcdir=$srcdir$ac_dir_suffix;
1622 ac_top_srcdir=$srcdir
1623 ac_abs_top_srcdir=$srcdir ;;
1624 *) # Relative name.
1625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626 ac_top_srcdir=$ac_top_build_prefix$srcdir
1627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628 esac
1629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1630
1631 cd "$ac_dir" || { ac_status=$?; continue; }
1632 # Check for guested configure.
1633 if test -f "$ac_srcdir/configure.gnu"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636 elif test -f "$ac_srcdir/configure"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure" --help=recursive
1639 else
1640 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641 fi || ac_status=$?
1642 cd "$ac_pwd" || { ac_status=$?; break; }
1643 done
1644 fi
1645
1646 test -n "$ac_init_help" && exit $ac_status
1647 if $ac_init_version; then
1648 cat <<\_ACEOF
1649 sqlite configure 3.10.2
1650 generated by GNU Autoconf 2.69
1651
1652 Copyright (C) 2012 Free Software Foundation, Inc.
1653 This configure script is free software; the Free Software Foundation
1654 gives unlimited permission to copy, distribute and modify it.
1655 _ACEOF
1656 exit
1657 fi
1658
1659 ## ------------------------ ##
1660 ## Autoconf initialization. ##
1661 ## ------------------------ ##
1662
1663 # ac_fn_c_try_compile LINENO
1664 # --------------------------
1665 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_compile ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext
1670 if { { ac_try="$ac_compile"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_compile") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest.$ac_objext; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_compile
1700
1701 # ac_fn_c_try_link LINENO
1702 # -----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_link ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 rm -f conftest.$ac_objext conftest$ac_exeext
1708 if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>conftest.err
1716 ac_status=$?
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1721 fi
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && {
1724 test -z "$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1726 } && test -s conftest$ac_exeext && {
1727 test "$cross_compiling" = yes ||
1728 test -x conftest$ac_exeext
1729 }; then :
1730 ac_retval=0
1731 else
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=1
1736 fi
1737 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1738 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1739 # interfere with the next link command; also delete a directory that is
1740 # left behind by Apple's compiler. We do this before executing the actions.
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_link
1746
1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists and can be compiled using the include files in
1750 # INCLUDES, setting the cache variable VAR accordingly.
1751 ac_fn_c_check_header_compile ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 $4
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 fi
1771 eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776 } # ac_fn_c_check_header_compile
1777
1778 # ac_fn_c_try_cpp LINENO
1779 # ----------------------
1780 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_cpp ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if { { ac_try="$ac_cpp conftest.$ac_ext"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } > conftest.i && {
1800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809 fi
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_cpp
1814
1815 # ac_fn_c_try_run LINENO
1816 # ----------------------
1817 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818 # that executables *can* be run.
1819 ac_fn_c_try_run ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=$ac_status
1850 fi
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1854
1855 } # ac_fn_c_try_run
1856
1857 # ac_fn_c_check_func LINENO FUNC VAR
1858 # ----------------------------------
1859 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1860 ac_fn_c_check_func ()
1861 {
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1867 else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1872 #define $2 innocuous_$2
1873
1874 /* System header to define __stub macros and hopefully few prototypes,
1875 which can conflict with char $2 (); below.
1876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877 <limits.h> exists even on freestanding compilers. */
1878
1879 #ifdef __STDC__
1880 # include <limits.h>
1881 #else
1882 # include <assert.h>
1883 #endif
1884
1885 #undef $2
1886
1887 /* Override any GCC internal prototype to avoid an error.
1888 Use char because int might match the return type of a GCC
1889 builtin and then its argument prototype would still apply. */
1890 #ifdef __cplusplus
1891 extern "C"
1892 #endif
1893 char $2 ();
1894 /* The GNU C library defines this for functions which it implements
1895 to always fail with ENOSYS. Some functions are actually named
1896 something starting with __ and the normal name is an alias. */
1897 #if defined __stub_$2 || defined __stub___$2
1898 choke me
1899 #endif
1900
1901 int
1902 main ()
1903 {
1904 return $2 ();
1905 ;
1906 return 0;
1907 }
1908 _ACEOF
1909 if ac_fn_c_try_link "$LINENO"; then :
1910 eval "$3=yes"
1911 else
1912 eval "$3=no"
1913 fi
1914 rm -f core conftest.err conftest.$ac_objext \
1915 conftest$ac_exeext conftest.$ac_ext
1916 fi
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922 } # ac_fn_c_check_func
1923
1924 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1925 # -------------------------------------------
1926 # Tests whether TYPE exists after having included INCLUDES, setting cache
1927 # variable VAR accordingly.
1928 ac_fn_c_check_type ()
1929 {
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 eval "$3=no"
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 $4
1940 int
1941 main ()
1942 {
1943 if (sizeof ($2))
1944 return 0;
1945 ;
1946 return 0;
1947 }
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $4
1953 int
1954 main ()
1955 {
1956 if (sizeof (($2)))
1957 return 0;
1958 ;
1959 return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963
1964 else
1965 eval "$3=yes"
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 fi
1971 eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976 } # ac_fn_c_check_type
1977
1978 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1979 # -------------------------------------------------------
1980 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1981 # the include files in INCLUDES and setting the cache variable VAR
1982 # accordingly.
1983 ac_fn_c_check_header_mongrel ()
1984 {
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if eval \${$3+:} false; then :
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1991 fi
1992 eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 else
1996 # Is the header compilable?
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1998 $as_echo_n "checking $2 usability... " >&6; }
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2001 $4
2002 #include <$2>
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 ac_header_compiler=yes
2006 else
2007 ac_header_compiler=no
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2011 $as_echo "$ac_header_compiler" >&6; }
2012
2013 # Is the header present?
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2015 $as_echo_n "checking $2 presence... " >&6; }
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 #include <$2>
2019 _ACEOF
2020 if ac_fn_c_try_cpp "$LINENO"; then :
2021 ac_header_preproc=yes
2022 else
2023 ac_header_preproc=no
2024 fi
2025 rm -f conftest.err conftest.i conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2027 $as_echo "$ac_header_preproc" >&6; }
2028
2029 # So? What about this header?
2030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2031 yes:no: )
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compil er, rejected by the preprocessor!" >&5
2033 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preproc essor!" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the co mpiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 ;;
2037 no:yes:* )
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2039 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2041 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2; }
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf docum entation" >&5
2043 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2045 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" > &2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the co mpiler's result" >&5
2047 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2048 ;;
2049 esac
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2054 else
2055 eval "$3=\$ac_header_compiler"
2056 fi
2057 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 fi
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063 } # ac_fn_c_check_header_mongrel
2064 cat >config.log <<_ACEOF
2065 This file contains any messages produced by compilers while
2066 running configure, to aid debugging if configure makes a mistake.
2067
2068 It was created by sqlite $as_me 3.10.2, which was
2069 generated by GNU Autoconf 2.69. Invocation command line was
2070
2071 $ $0 $@
2072
2073 _ACEOF
2074 exec 5>>config.log
2075 {
2076 cat <<_ASUNAME
2077 ## --------- ##
2078 ## Platform. ##
2079 ## --------- ##
2080
2081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086
2087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2089
2090 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2091 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2093 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2094 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2095 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2096 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2097
2098 _ASUNAME
2099
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 $as_echo "PATH: $as_dir"
2106 done
2107 IFS=$as_save_IFS
2108
2109 } >&5
2110
2111 cat >&5 <<_ACEOF
2112
2113
2114 ## ----------- ##
2115 ## Core tests. ##
2116 ## ----------- ##
2117
2118 _ACEOF
2119
2120
2121 # Keep a trace of the command line.
2122 # Strip out --no-create and --no-recursion so they do not pile up.
2123 # Strip out --silent because we don't want to record it for future runs.
2124 # Also quote any args containing shell meta-characters.
2125 # Make two passes to allow for proper duplicate-argument suppression.
2126 ac_configure_args=
2127 ac_configure_args0=
2128 ac_configure_args1=
2129 ac_must_keep_next=false
2130 for ac_pass in 1 2
2131 do
2132 for ac_arg
2133 do
2134 case $ac_arg in
2135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137 | -silent | --silent | --silen | --sile | --sil)
2138 continue ;;
2139 *\'*)
2140 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141 esac
2142 case $ac_pass in
2143 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2144 2)
2145 as_fn_append ac_configure_args1 " '$ac_arg'"
2146 if test $ac_must_keep_next = true; then
2147 ac_must_keep_next=false # Got value, back to normal.
2148 else
2149 case $ac_arg in
2150 *=* | --config-cache | -C | -disable-* | --disable-* \
2151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153 | -with-* | --with-* | -without-* | --without-* | --x)
2154 case "$ac_configure_args0 " in
2155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156 esac
2157 ;;
2158 -* ) ac_must_keep_next=true ;;
2159 esac
2160 fi
2161 as_fn_append ac_configure_args " '$ac_arg'"
2162 ;;
2163 esac
2164 done
2165 done
2166 { ac_configure_args0=; unset ac_configure_args0;}
2167 { ac_configure_args1=; unset ac_configure_args1;}
2168
2169 # When interrupted or exit'd, cleanup temporary files, and complete
2170 # config.log. We remove comments because anyway the quotes in there
2171 # would cause problems or look ugly.
2172 # WARNING: Use '\'' to represent an apostrophe within the trap.
2173 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2174 trap 'exit_status=$?
2175 # Save into config.log some information that might help in debugging.
2176 {
2177 echo
2178
2179 $as_echo "## ---------------- ##
2180 ## Cache variables. ##
2181 ## ---------------- ##"
2182 echo
2183 # The following way of writing the cache mishandles newlines in values,
2184 (
2185 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\ ''`; do
2186 eval ac_val=\$$ac_var
2187 case $ac_val in #(
2188 *${as_nl}*)
2189 case $ac_var in #(
2190 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ ac_var contains a newline" >&5
2191 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2192 esac
2193 case $ac_var in #(
2194 _ | IFS | as_nl) ;; #(
2195 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2196 *) { eval $ac_var=; unset $ac_var;} ;;
2197 esac ;;
2198 esac
2199 done
2200 (set) 2>&1 |
2201 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2202 *${as_nl}ac_space=\ *)
2203 sed -n \
2204 "s/'\''/'\''\\\\'\'''\''/g;
2205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\'' /p"
2206 ;; #(
2207 *)
2208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2209 ;;
2210 esac |
2211 sort
2212 )
2213 echo
2214
2215 $as_echo "## ----------------- ##
2216 ## Output variables. ##
2217 ## ----------------- ##"
2218 echo
2219 for ac_var in $ac_subst_vars
2220 do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in
2223 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"` ;;
2224 esac
2225 $as_echo "$ac_var='\''$ac_val'\''"
2226 done | sort
2227 echo
2228
2229 if test -n "$ac_subst_files"; then
2230 $as_echo "## ------------------- ##
2231 ## File substitutions. ##
2232 ## ------------------- ##"
2233 echo
2234 for ac_var in $ac_subst_files
2235 do
2236 eval ac_val=\$$ac_var
2237 case $ac_val in
2238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g "`;;
2239 esac
2240 $as_echo "$ac_var='\''$ac_val'\''"
2241 done | sort
2242 echo
2243 fi
2244
2245 if test -s confdefs.h; then
2246 $as_echo "## ----------- ##
2247 ## confdefs.h. ##
2248 ## ----------- ##"
2249 echo
2250 cat confdefs.h
2251 echo
2252 fi
2253 test "$ac_signal" != 0 &&
2254 $as_echo "$as_me: caught signal $ac_signal"
2255 $as_echo "$as_me: exit $exit_status"
2256 } >&5
2257 rm -f core *.core core.conftest.* &&
2258 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2259 exit $exit_status
2260 ' 0
2261 for ac_signal in 1 2 13 15; do
2262 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2263 done
2264 ac_signal=0
2265
2266 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2267 rm -f -r conftest* confdefs.h
2268
2269 $as_echo "/* confdefs.h */" > confdefs.h
2270
2271 # Predefined preprocessor variables.
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_NAME "$PACKAGE_NAME"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2283 _ACEOF
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_STRING "$PACKAGE_STRING"
2287 _ACEOF
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2291 _ACEOF
2292
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_URL "$PACKAGE_URL"
2295 _ACEOF
2296
2297
2298 # Let the site file select an alternate cache file if it wants to.
2299 # Prefer an explicitly selected file to automatically selected ones.
2300 ac_site_file1=NONE
2301 ac_site_file2=NONE
2302 if test -n "$CONFIG_SITE"; then
2303 # We do not want a PATH search for config.site.
2304 case $CONFIG_SITE in #((
2305 -*) ac_site_file1=./$CONFIG_SITE;;
2306 */*) ac_site_file1=$CONFIG_SITE;;
2307 *) ac_site_file1=./$CONFIG_SITE;;
2308 esac
2309 elif test "x$prefix" != xNONE; then
2310 ac_site_file1=$prefix/share/config.site
2311 ac_site_file2=$prefix/etc/config.site
2312 else
2313 ac_site_file1=$ac_default_prefix/share/config.site
2314 ac_site_file2=$ac_default_prefix/etc/config.site
2315 fi
2316 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2317 do
2318 test "x$ac_site_file" = xNONE && continue
2319 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2321 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2322 sed 's/^/| /' "$ac_site_file" >&5
2323 . "$ac_site_file" \
2324 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326 as_fn_error $? "failed to load site script $ac_site_file
2327 See \`config.log' for more details" "$LINENO" 5; }
2328 fi
2329 done
2330
2331 if test -r "$cache_file"; then
2332 # Some versions of bash will fail to source /dev/null (special files
2333 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2334 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2336 $as_echo "$as_me: loading cache $cache_file" >&6;}
2337 case $cache_file in
2338 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2339 *) . "./$cache_file";;
2340 esac
2341 fi
2342 else
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2344 $as_echo "$as_me: creating cache $cache_file" >&6;}
2345 >$cache_file
2346 fi
2347
2348 # Check that the precious variables saved in the cache have kept the same
2349 # value.
2350 ac_cache_corrupted=false
2351 for ac_var in $ac_precious_vars; do
2352 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2353 eval ac_new_set=\$ac_env_${ac_var}_set
2354 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2355 eval ac_new_val=\$ac_env_${ac_var}_value
2356 case $ac_old_set,$ac_new_set in
2357 set,)
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$a c_old_val' in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous ru n" >&2;}
2360 ac_cache_corrupted=: ;;
2361 ,set)
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2363 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2364 ac_cache_corrupted=: ;;
2365 ,);;
2366 *)
2367 if test "x$ac_old_val" != "x$ac_new_val"; then
2368 # differences in whitespace do not lead to failure.
2369 ac_old_val_w=`echo x $ac_old_val`
2370 ac_new_val_w=`echo x $ac_new_val`
2371 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2373 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2374 ac_cache_corrupted=:
2375 else
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2377 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the p revious run:" >&2;}
2378 eval $ac_var=\$ac_old_val
2379 fi
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val' " >&5
2381 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val' " >&5
2383 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2384 fi;;
2385 esac
2386 # Pass precious variables to config.status.
2387 if test "$ac_new_set" = set; then
2388 case $ac_new_val in
2389 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2390 *) ac_arg=$ac_var=$ac_new_val ;;
2391 esac
2392 case " $ac_configure_args " in
2393 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2394 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2395 esac
2396 fi
2397 done
2398 if $ac_cache_corrupted; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2402 $as_echo "$as_me: error: changes in the environment can compromise the build" >& 2;}
2403 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2404 fi
2405 ## -------------------- ##
2406 ## Main body of script. ##
2407 ## -------------------- ##
2408
2409 ac_ext=c
2410 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414
2415
2416
2417 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2418 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2419 as_fn_error $? "configure script is out of date:
2420 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2421 top level VERSION file = $sqlite_version_sanity_check
2422 please regen with autoconf" "$LINENO" 5
2423 fi
2424
2425 #########
2426 # Programs needed
2427 #
2428 case `pwd` in
2429 *\ * | *\ *)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2431 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\` " >&2;} ;;
2432 esac
2433
2434
2435
2436 macro_version='2.2.6'
2437 macro_revision='1.3012'
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451 ltmain="$ac_aux_dir/ltmain.sh"
2452
2453 ac_aux_dir=
2454 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2455 if test -f "$ac_dir/install-sh"; then
2456 ac_aux_dir=$ac_dir
2457 ac_install_sh="$ac_aux_dir/install-sh -c"
2458 break
2459 elif test -f "$ac_dir/install.sh"; then
2460 ac_aux_dir=$ac_dir
2461 ac_install_sh="$ac_aux_dir/install.sh -c"
2462 break
2463 elif test -f "$ac_dir/shtool"; then
2464 ac_aux_dir=$ac_dir
2465 ac_install_sh="$ac_aux_dir/shtool install -c"
2466 break
2467 fi
2468 done
2469 if test -z "$ac_aux_dir"; then
2470 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \ "$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2471 fi
2472
2473 # These three variables are undocumented and unsupported,
2474 # and are intended to be withdrawn in a future Autoconf release.
2475 # They can cause serious problems if a builder's source tree is in a directory
2476 # whose full name contains unusual characters.
2477 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2478 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2479 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2480
2481
2482 # Make sure we can run config.sub.
2483 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2484 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2485
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2487 $as_echo_n "checking build system type... " >&6; }
2488 if ${ac_cv_build+:} false; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 ac_build_alias=$build_alias
2492 test "x$ac_build_alias" = x &&
2493 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2494 test "x$ac_build_alias" = x &&
2495 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2496 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO " 5
2498
2499 fi
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2501 $as_echo "$ac_cv_build" >&6; }
2502 case $ac_cv_build in
2503 *-*-*) ;;
2504 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2505 esac
2506 build=$ac_cv_build
2507 ac_save_IFS=$IFS; IFS='-'
2508 set x $ac_cv_build
2509 shift
2510 build_cpu=$1
2511 build_vendor=$2
2512 shift; shift
2513 # Remember, the first character of IFS is used to create $*,
2514 # except with old shells:
2515 build_os=$*
2516 IFS=$ac_save_IFS
2517 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2518
2519
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2521 $as_echo_n "checking host system type... " >&6; }
2522 if ${ac_cv_host+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 if test "x$host_alias" = x; then
2526 ac_cv_host=$ac_cv_build
2527 else
2528 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2529 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2530 fi
2531
2532 fi
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2534 $as_echo "$ac_cv_host" >&6; }
2535 case $ac_cv_host in
2536 *-*-*) ;;
2537 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2538 esac
2539 host=$ac_cv_host
2540 ac_save_IFS=$IFS; IFS='-'
2541 set x $ac_cv_host
2542 shift
2543 host_cpu=$1
2544 host_vendor=$2
2545 shift; shift
2546 # Remember, the first character of IFS is used to create $*,
2547 # except with old shells:
2548 host_os=$*
2549 IFS=$ac_save_IFS
2550 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2551
2552
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558 if test -n "$ac_tool_prefix"; then
2559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args.
2560 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562 $as_echo_n "checking for $ac_word... " >&6; }
2563 if ${ac_cv_prog_CC+:} false; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2571 do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2578 break 2
2579 fi
2580 done
2581 done
2582 IFS=$as_save_IFS
2583
2584 fi
2585 fi
2586 CC=$ac_cv_prog_CC
2587 if test -n "$CC"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2589 $as_echo "$CC" >&6; }
2590 else
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 $as_echo "no" >&6; }
2593 fi
2594
2595
2596 fi
2597 if test -z "$ac_cv_prog_CC"; then
2598 ac_ct_CC=$CC
2599 # Extract the first word of "gcc", so it can be a program name with args.
2600 set dummy gcc; ac_word=$2
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602 $as_echo_n "checking for $ac_word... " >&6; }
2603 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 if test -n "$ac_ct_CC"; then
2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616 ac_cv_prog_ac_ct_CC="gcc"
2617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2618 break 2
2619 fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2623
2624 fi
2625 fi
2626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627 if test -n "$ac_ct_CC"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2629 $as_echo "$ac_ct_CC" >&6; }
2630 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632 $as_echo "no" >&6; }
2633 fi
2634
2635 if test "x$ac_ct_CC" = x; then
2636 CC=""
2637 else
2638 case $cross_compiling:$ac_tool_warned in
2639 yes:)
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
2642 ac_tool_warned=yes ;;
2643 esac
2644 CC=$ac_ct_CC
2645 fi
2646 else
2647 CC="$ac_cv_prog_CC"
2648 fi
2649
2650 if test -z "$CC"; then
2651 if test -n "$ac_tool_prefix"; then
2652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na me with args.
2653 set dummy ${ac_tool_prefix}cc; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if ${ac_cv_prog_CC+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 if test -n "$CC"; then
2660 ac_cv_prog_CC="$CC" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_CC="${ac_tool_prefix}cc"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2671 break 2
2672 fi
2673 done
2674 done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 CC=$ac_cv_prog_CC
2680 if test -n "$CC"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2682 $as_echo "$CC" >&6; }
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2686 fi
2687
2688
2689 fi
2690 fi
2691 if test -z "$CC"; then
2692 # Extract the first word of "cc", so it can be a program name with args.
2693 set dummy cc; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_CC+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 else
2702 ac_prog_rejected=no
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2711 ac_prog_rejected=yes
2712 continue
2713 fi
2714 ac_cv_prog_CC="cc"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2716 break 2
2717 fi
2718 done
2719 done
2720 IFS=$as_save_IFS
2721
2722 if test $ac_prog_rejected = yes; then
2723 # We found a bogon in the path, so make sure we never use it.
2724 set dummy $ac_cv_prog_CC
2725 shift
2726 if test $# != 0; then
2727 # We chose a different compiler from the bogus one.
2728 # However, it has the same basename, so the bogon will be chosen
2729 # first if we set CC to just the basename; use the full file name.
2730 shift
2731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2732 fi
2733 fi
2734 fi
2735 fi
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745
2746 fi
2747 if test -z "$CC"; then
2748 if test -n "$ac_tool_prefix"; then
2749 for ac_prog in cl.exe
2750 do
2751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
2752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_CC+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2770 break 2
2771 fi
2772 done
2773 done
2774 IFS=$as_save_IFS
2775
2776 fi
2777 fi
2778 CC=$ac_cv_prog_CC
2779 if test -n "$CC"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781 $as_echo "$CC" >&6; }
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 fi
2786
2787
2788 test -n "$CC" && break
2789 done
2790 fi
2791 if test -z "$CC"; then
2792 ac_ct_CC=$CC
2793 for ac_prog in cl.exe
2794 do
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796 set dummy $ac_prog; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 if test -n "$ac_ct_CC"; then
2803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_ac_ct_CC="$ac_prog"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2814 break 2
2815 fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2823 if test -n "$ac_ct_CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2825 $as_echo "$ac_ct_CC" >&6; }
2826 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2829 fi
2830
2831
2832 test -n "$ac_ct_CC" && break
2833 done
2834
2835 if test "x$ac_ct_CC" = x; then
2836 CC=""
2837 else
2838 case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
2842 ac_tool_warned=yes ;;
2843 esac
2844 CC=$ac_ct_CC
2845 fi
2846 fi
2847
2848 fi
2849
2850
2851 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd' :" >&5
2852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853 as_fn_error $? "no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details" "$LINENO" 5; }
2855
2856 # Provide some information about the compiler.
2857 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2858 set X $ac_compile
2859 ac_compiler=$2
2860 for ac_option in --version -v -V -qversion; do
2861 { { ac_try="$ac_compiler $ac_option >&5"
2862 case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865 esac
2866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2867 $as_echo "$ac_try_echo"; } >&5
2868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2869 ac_status=$?
2870 if test -s conftest.err; then
2871 sed '10a\
2872 ... rest of stderr output deleted ...
2873 10q' conftest.err >conftest.er1
2874 cat conftest.er1 >&5
2875 fi
2876 rm -f conftest.er1 conftest.err
2877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878 test $ac_status = 0; }
2879 done
2880
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2883
2884 int
2885 main ()
2886 {
2887
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 ac_clean_files_save=$ac_clean_files
2893 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2894 # Try to create an executable without -o first, disregard a.out.
2895 # It will help us diagnose broken compilers, and finding out an intuition
2896 # of exeext.
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2898 $as_echo_n "checking whether the C compiler works... " >&6; }
2899 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2900
2901 # The possible output files:
2902 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2903
2904 ac_rmfiles=
2905 for ac_file in $ac_files
2906 do
2907 case $ac_file in
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2909 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2910 esac
2911 done
2912 rm -f $ac_rmfiles
2913
2914 if { { ac_try="$ac_link_default"
2915 case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918 esac
2919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920 $as_echo "$ac_try_echo"; } >&5
2921 (eval "$ac_link_default") 2>&5
2922 ac_status=$?
2923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }; then :
2925 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2926 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2927 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2928 # so that the user can short-circuit this test for compilers unknown to
2929 # Autoconf.
2930 for ac_file in $ac_files ''
2931 do
2932 test -f "$ac_file" || continue
2933 case $ac_file in
2934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2935 ;;
2936 [ab].out )
2937 # We found the default executable, but exeext='' is most
2938 # certainly right.
2939 break;;
2940 *.* )
2941 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2942 then :; else
2943 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 fi
2945 # We set ac_cv_exeext here because the later test for it is not
2946 # safe: cross compilers may not add the suffix if given an `-o'
2947 # argument, so we may need to know it at that point already.
2948 # Even if this section looks crufty: it has the advantage of
2949 # actually working.
2950 break;;
2951 * )
2952 break;;
2953 esac
2954 done
2955 test "$ac_cv_exeext" = no && ac_cv_exeext=
2956
2957 else
2958 ac_file=''
2959 fi
2960 if test -z "$ac_file"; then :
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 $as_echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968 as_fn_error 77 "C compiler cannot create executables
2969 See \`config.log' for more details" "$LINENO" 5; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2973 fi
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2975 $as_echo_n "checking for C compiler default output file name... " >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2977 $as_echo "$ac_file" >&6; }
2978 ac_exeext=$ac_cv_exeext
2979
2980 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2981 ac_clean_files=$ac_clean_files_save
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2983 $as_echo_n "checking for suffix of executables... " >&6; }
2984 if { { ac_try="$ac_link"
2985 case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_link") 2>&5
2992 ac_status=$?
2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }; then :
2995 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2996 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2997 # work properly (i.e., refer to `conftest.exe'), while it won't with
2998 # `rm'.
2999 for ac_file in conftest.exe conftest conftest.*; do
3000 test -f "$ac_file" || continue
3001 case $ac_file in
3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3003 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 break;;
3005 * ) break;;
3006 esac
3007 done
3008 else
3009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3012 See \`config.log' for more details" "$LINENO" 5; }
3013 fi
3014 rm -f conftest conftest$ac_cv_exeext
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3016 $as_echo "$ac_cv_exeext" >&6; }
3017
3018 rm -f conftest.$ac_ext
3019 EXEEXT=$ac_cv_exeext
3020 ac_exeext=$EXEEXT
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3023 #include <stdio.h>
3024 int
3025 main ()
3026 {
3027 FILE *f = fopen ("conftest.out", "w");
3028 return ferror (f) || fclose (f) != 0;
3029
3030 ;
3031 return 0;
3032 }
3033 _ACEOF
3034 ac_clean_files="$ac_clean_files conftest.out"
3035 # Check that the compiler produces executables we can run. If not, either
3036 # the compiler is broken, or we cross compile.
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling " >&5
3038 $as_echo_n "checking whether we are cross compiling... " >&6; }
3039 if test "$cross_compiling" != yes; then
3040 { { ac_try="$ac_link"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_link") 2>&5
3048 ac_status=$?
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }
3051 if { ac_try='./conftest$ac_cv_exeext'
3052 { { case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }; }; then
3062 cross_compiling=no
3063 else
3064 if test "$cross_compiling" = maybe; then
3065 cross_compiling=yes
3066 else
3067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069 as_fn_error $? "cannot run C compiled programs.
3070 If you meant to cross compile, use \`--host'.
3071 See \`config.log' for more details" "$LINENO" 5; }
3072 fi
3073 fi
3074 fi
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3076 $as_echo "$cross_compiling" >&6; }
3077
3078 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3079 ac_clean_files=$ac_clean_files_save
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >& 5
3081 $as_echo_n "checking for suffix of object files... " >&6; }
3082 if ${ac_cv_objext+:} false; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3087
3088 int
3089 main ()
3090 {
3091
3092 ;
3093 return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.o conftest.obj
3097 if { { ac_try="$ac_compile"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_compile") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 for ac_file in conftest.o conftest.obj conftest.*; do
3109 test -f "$ac_file" || continue;
3110 case $ac_file in
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3113 break;;
3114 esac
3115 done
3116 else
3117 $as_echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 as_fn_error $? "cannot compute suffix of object files: cannot compile
3123 See \`config.log' for more details" "$LINENO" 5; }
3124 fi
3125 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3128 $as_echo "$ac_cv_objext" >&6; }
3129 OBJEXT=$ac_cv_objext
3130 ac_objext=$OBJEXT
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3132 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3133 if ${ac_cv_c_compiler_gnu+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137 /* end confdefs.h. */
3138
3139 int
3140 main ()
3141 {
3142 #ifndef __GNUC__
3143 choke me
3144 #endif
3145
3146 ;
3147 return 0;
3148 }
3149 _ACEOF
3150 if ac_fn_c_try_compile "$LINENO"; then :
3151 ac_compiler_gnu=yes
3152 else
3153 ac_compiler_gnu=no
3154 fi
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3157
3158 fi
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3160 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3161 if test $ac_compiler_gnu = yes; then
3162 GCC=yes
3163 else
3164 GCC=
3165 fi
3166 ac_test_CFLAGS=${CFLAGS+set}
3167 ac_save_CFLAGS=$CFLAGS
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3169 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3170 if ${ac_cv_prog_cc_g+:} false; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 ac_save_c_werror_flag=$ac_c_werror_flag
3174 ac_c_werror_flag=yes
3175 ac_cv_prog_cc_g=no
3176 CFLAGS="-g"
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3179
3180 int
3181 main ()
3182 {
3183
3184 ;
3185 return 0;
3186 }
3187 _ACEOF
3188 if ac_fn_c_try_compile "$LINENO"; then :
3189 ac_cv_prog_cc_g=yes
3190 else
3191 CFLAGS=""
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3194
3195 int
3196 main ()
3197 {
3198
3199 ;
3200 return 0;
3201 }
3202 _ACEOF
3203 if ac_fn_c_try_compile "$LINENO"; then :
3204
3205 else
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3207 CFLAGS="-g"
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3210
3211 int
3212 main ()
3213 {
3214
3215 ;
3216 return 0;
3217 }
3218 _ACEOF
3219 if ac_fn_c_try_compile "$LINENO"; then :
3220 ac_cv_prog_cc_g=yes
3221 fi
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 fi
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 fi
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 ac_c_werror_flag=$ac_save_c_werror_flag
3228 fi
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3230 $as_echo "$ac_cv_prog_cc_g" >&6; }
3231 if test "$ac_test_CFLAGS" = set; then
3232 CFLAGS=$ac_save_CFLAGS
3233 elif test $ac_cv_prog_cc_g = yes; then
3234 if test "$GCC" = yes; then
3235 CFLAGS="-g -O2"
3236 else
3237 CFLAGS="-g"
3238 fi
3239 else
3240 if test "$GCC" = yes; then
3241 CFLAGS="-O2"
3242 else
3243 CFLAGS=
3244 fi
3245 fi
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C 89" >&5
3247 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3248 if ${ac_cv_prog_cc_c89+:} false; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 ac_cv_prog_cc_c89=no
3252 ac_save_CC=$CC
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3255 #include <stdarg.h>
3256 #include <stdio.h>
3257 struct stat;
3258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3259 struct buf { int x; };
3260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3261 static char *e (p, i)
3262 char **p;
3263 int i;
3264 {
3265 return p[i];
3266 }
3267 static char *f (char * (*g) (char **, int), char **p, ...)
3268 {
3269 char *s;
3270 va_list v;
3271 va_start (v,p);
3272 s = g (p, va_arg (v,int));
3273 va_end (v);
3274 return s;
3275 }
3276
3277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3278 function prototypes and stuff, but not '\xHH' hex character constants.
3279 These don't provoke an error unfortunately, instead are silently treated
3280 as 'x'. The following induces an error, until -std is added to get
3281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3282 array size at least. It's necessary to write '\x00'==0 to get something
3283 that's true only with -std. */
3284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3285
3286 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3287 inside strings and character constants. */
3288 #define FOO(x) 'x'
3289 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3290
3291 int test (int i, double x);
3292 struct s1 {int (*f) (int a);};
3293 struct s2 {int (*f) (double a);};
3294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i nt);
3295 int argc;
3296 char **argv;
3297 int
3298 main ()
3299 {
3300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3301 ;
3302 return 0;
3303 }
3304 _ACEOF
3305 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3307 do
3308 CC="$ac_save_CC $ac_arg"
3309 if ac_fn_c_try_compile "$LINENO"; then :
3310 ac_cv_prog_cc_c89=$ac_arg
3311 fi
3312 rm -f core conftest.err conftest.$ac_objext
3313 test "x$ac_cv_prog_cc_c89" != "xno" && break
3314 done
3315 rm -f conftest.$ac_ext
3316 CC=$ac_save_CC
3317
3318 fi
3319 # AC_CACHE_VAL
3320 case "x$ac_cv_prog_cc_c89" in
3321 x)
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3323 $as_echo "none needed" >&6; } ;;
3324 xno)
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3326 $as_echo "unsupported" >&6; } ;;
3327 *)
3328 CC="$CC $ac_cv_prog_cc_c89"
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3331 esac
3332 if test "x$ac_cv_prog_cc_c89" != xno; then :
3333
3334 fi
3335
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not trunca te output" >&5
3343 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3344 if ${ac_cv_path_SED+:} false; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbb/
3348 for ac_i in 1 2 3 4 5 6 7; do
3349 ac_script="$ac_script$as_nl$ac_script"
3350 done
3351 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3352 { ac_script=; unset ac_script;}
3353 if test -z "$SED"; then
3354 ac_path_SED_found=false
3355 # Loop through the user's path and test for each of PROGNAME-LIST
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_prog in sed gsed; do
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3364 as_fn_executable_p "$ac_path_SED" || continue
3365 # Check for GNU ac_path_SED and select it if it is found.
3366 # Check for GNU $ac_path_SED
3367 case `"$ac_path_SED" --version 2>&1` in
3368 *GNU*)
3369 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3370 *)
3371 ac_count=0
3372 $as_echo_n 0123456789 >"conftest.in"
3373 while :
3374 do
3375 cat "conftest.in" "conftest.in" >"conftest.tmp"
3376 mv "conftest.tmp" "conftest.in"
3377 cp "conftest.in" "conftest.nl"
3378 $as_echo '' >> "conftest.nl"
3379 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null | | break
3380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3381 as_fn_arith $ac_count + 1 && ac_count=$as_val
3382 if test $ac_count -gt ${ac_path_SED_max-0}; then
3383 # Best one so far, save it but keep looking for a better one
3384 ac_cv_path_SED="$ac_path_SED"
3385 ac_path_SED_max=$ac_count
3386 fi
3387 # 10*(2^10) chars as input seems more than enough
3388 test $ac_count -gt 10 && break
3389 done
3390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3391 esac
3392
3393 $ac_path_SED_found && break 3
3394 done
3395 done
3396 done
3397 IFS=$as_save_IFS
3398 if test -z "$ac_cv_path_SED"; then
3399 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3400 fi
3401 else
3402 ac_cv_path_SED=$SED
3403 fi
3404
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3407 $as_echo "$ac_cv_path_SED" >&6; }
3408 SED="$ac_cv_path_SED"
3409 rm -f conftest.sed
3410
3411 test -z "$SED" && SED=sed
3412 Xsed="$SED -e 1s/^X//"
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lin es and -e" >&5
3425 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3426 if ${ac_cv_path_GREP+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 if test -z "$GREP"; then
3430 ac_path_GREP_found=false
3431 # Loop through the user's path and test for each of PROGNAME-LIST
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3434 do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_prog in grep ggrep; do
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3440 as_fn_executable_p "$ac_path_GREP" || continue
3441 # Check for GNU ac_path_GREP and select it if it is found.
3442 # Check for GNU $ac_path_GREP
3443 case `"$ac_path_GREP" --version 2>&1` in
3444 *GNU*)
3445 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3446 *)
3447 ac_count=0
3448 $as_echo_n 0123456789 >"conftest.in"
3449 while :
3450 do
3451 cat "conftest.in" "conftest.in" >"conftest.tmp"
3452 mv "conftest.tmp" "conftest.in"
3453 cp "conftest.in" "conftest.nl"
3454 $as_echo 'GREP' >> "conftest.nl"
3455 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest. out" 2>/dev/null || break
3456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3457 as_fn_arith $ac_count + 1 && ac_count=$as_val
3458 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3459 # Best one so far, save it but keep looking for a better one
3460 ac_cv_path_GREP="$ac_path_GREP"
3461 ac_path_GREP_max=$ac_count
3462 fi
3463 # 10*(2^10) chars as input seems more than enough
3464 test $ac_count -gt 10 && break
3465 done
3466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3467 esac
3468
3469 $ac_path_GREP_found && break 3
3470 done
3471 done
3472 done
3473 IFS=$as_save_IFS
3474 if test -z "$ac_cv_path_GREP"; then
3475 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/us r/xpg4/bin" "$LINENO" 5
3476 fi
3477 else
3478 ac_cv_path_GREP=$GREP
3479 fi
3480
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3483 $as_echo "$ac_cv_path_GREP" >&6; }
3484 GREP="$ac_cv_path_GREP"
3485
3486
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3488 $as_echo_n "checking for egrep... " >&6; }
3489 if ${ac_cv_path_EGREP+:} false; then :
3490 $as_echo_n "(cached) " >&6
3491 else
3492 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3493 then ac_cv_path_EGREP="$GREP -E"
3494 else
3495 if test -z "$EGREP"; then
3496 ac_path_EGREP_found=false
3497 # Loop through the user's path and test for each of PROGNAME-LIST
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_prog in egrep; do
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3506 as_fn_executable_p "$ac_path_EGREP" || continue
3507 # Check for GNU ac_path_EGREP and select it if it is found.
3508 # Check for GNU $ac_path_EGREP
3509 case `"$ac_path_EGREP" --version 2>&1` in
3510 *GNU*)
3511 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3512 *)
3513 ac_count=0
3514 $as_echo_n 0123456789 >"conftest.in"
3515 while :
3516 do
3517 cat "conftest.in" "conftest.in" >"conftest.tmp"
3518 mv "conftest.tmp" "conftest.in"
3519 cp "conftest.in" "conftest.nl"
3520 $as_echo 'EGREP' >> "conftest.nl"
3521 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || bre ak
3522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3523 as_fn_arith $ac_count + 1 && ac_count=$as_val
3524 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3525 # Best one so far, save it but keep looking for a better one
3526 ac_cv_path_EGREP="$ac_path_EGREP"
3527 ac_path_EGREP_max=$ac_count
3528 fi
3529 # 10*(2^10) chars as input seems more than enough
3530 test $ac_count -gt 10 && break
3531 done
3532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3533 esac
3534
3535 $ac_path_EGREP_found && break 3
3536 done
3537 done
3538 done
3539 IFS=$as_save_IFS
3540 if test -z "$ac_cv_path_EGREP"; then
3541 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/u sr/xpg4/bin" "$LINENO" 5
3542 fi
3543 else
3544 ac_cv_path_EGREP=$EGREP
3545 fi
3546
3547 fi
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3550 $as_echo "$ac_cv_path_EGREP" >&6; }
3551 EGREP="$ac_cv_path_EGREP"
3552
3553
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3555 $as_echo_n "checking for fgrep... " >&6; }
3556 if ${ac_cv_path_FGREP+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3560 then ac_cv_path_FGREP="$GREP -F"
3561 else
3562 if test -z "$FGREP"; then
3563 ac_path_FGREP_found=false
3564 # Loop through the user's path and test for each of PROGNAME-LIST
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3567 do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_prog in fgrep; do
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3573 as_fn_executable_p "$ac_path_FGREP" || continue
3574 # Check for GNU ac_path_FGREP and select it if it is found.
3575 # Check for GNU $ac_path_FGREP
3576 case `"$ac_path_FGREP" --version 2>&1` in
3577 *GNU*)
3578 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3579 *)
3580 ac_count=0
3581 $as_echo_n 0123456789 >"conftest.in"
3582 while :
3583 do
3584 cat "conftest.in" "conftest.in" >"conftest.tmp"
3585 mv "conftest.tmp" "conftest.in"
3586 cp "conftest.in" "conftest.nl"
3587 $as_echo 'FGREP' >> "conftest.nl"
3588 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3590 as_fn_arith $ac_count + 1 && ac_count=$as_val
3591 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3592 # Best one so far, save it but keep looking for a better one
3593 ac_cv_path_FGREP="$ac_path_FGREP"
3594 ac_path_FGREP_max=$ac_count
3595 fi
3596 # 10*(2^10) chars as input seems more than enough
3597 test $ac_count -gt 10 && break
3598 done
3599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3600 esac
3601
3602 $ac_path_FGREP_found && break 3
3603 done
3604 done
3605 done
3606 IFS=$as_save_IFS
3607 if test -z "$ac_cv_path_FGREP"; then
3608 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/u sr/xpg4/bin" "$LINENO" 5
3609 fi
3610 else
3611 ac_cv_path_FGREP=$FGREP
3612 fi
3613
3614 fi
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3617 $as_echo "$ac_cv_path_FGREP" >&6; }
3618 FGREP="$ac_cv_path_FGREP"
3619
3620
3621 test -z "$GREP" && GREP=grep
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641 # Check whether --with-gnu-ld was given.
3642 if test "${with_gnu_ld+set}" = set; then :
3643 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3644 else
3645 with_gnu_ld=no
3646 fi
3647
3648 ac_prog=ld
3649 if test "$GCC" = yes; then
3650 # Check if gcc -print-prog-name=ld gives a path.
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3652 $as_echo_n "checking for ld used by $CC... " >&6; }
3653 case $host in
3654 *-*-mingw*)
3655 # gcc leaves a trailing carriage return which upsets mingw
3656 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3657 *)
3658 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3659 esac
3660 case $ac_prog in
3661 # Accept absolute paths.
3662 [\\/]* | ?:[\\/]*)
3663 re_direlt='/[^/][^/]*/\.\./'
3664 # Canonicalize the pathname of ld
3665 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3666 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3667 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3668 done
3669 test -z "$LD" && LD="$ac_prog"
3670 ;;
3671 "")
3672 # If it fails, then pretend we aren't using GCC.
3673 ac_prog=ld
3674 ;;
3675 *)
3676 # If it is relative, then search for the first ld in PATH.
3677 with_gnu_ld=unknown
3678 ;;
3679 esac
3680 elif test "$with_gnu_ld" = yes; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3682 $as_echo_n "checking for GNU ld... " >&6; }
3683 else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3685 $as_echo_n "checking for non-GNU ld... " >&6; }
3686 fi
3687 if ${lt_cv_path_LD+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 if test -z "$LD"; then
3691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3692 for ac_dir in $PATH; do
3693 IFS="$lt_save_ifs"
3694 test -z "$ac_dir" && ac_dir=.
3695 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3696 lt_cv_path_LD="$ac_dir/$ac_prog"
3697 # Check to see if the program is GNU ld. I'd rather use --version,
3698 # but apparently some variants of GNU ld only accept -v.
3699 # Break only if it was the GNU/non-GNU ld that we prefer.
3700 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3701 *GNU* | *'with BFD'*)
3702 test "$with_gnu_ld" != no && break
3703 ;;
3704 *)
3705 test "$with_gnu_ld" != yes && break
3706 ;;
3707 esac
3708 fi
3709 done
3710 IFS="$lt_save_ifs"
3711 else
3712 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3713 fi
3714 fi
3715
3716 LD="$lt_cv_path_LD"
3717 if test -n "$LD"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3719 $as_echo "$LD" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3726 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3727 if ${lt_cv_prog_gnu_ld+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3731 case `$LD -v 2>&1 </dev/null` in
3732 *GNU* | *'with BFD'*)
3733 lt_cv_prog_gnu_ld=yes
3734 ;;
3735 *)
3736 lt_cv_prog_gnu_ld=no
3737 ;;
3738 esac
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3741 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3742 with_gnu_ld=$lt_cv_prog_gnu_ld
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3753 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3754 if ${lt_cv_path_NM+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$NM"; then
3758 # Let the user override the test.
3759 lt_cv_path_NM="$NM"
3760 else
3761 lt_nm_to_check="${ac_tool_prefix}nm"
3762 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3763 lt_nm_to_check="$lt_nm_to_check nm"
3764 fi
3765 for lt_tmp_nm in $lt_nm_to_check; do
3766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3767 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3768 IFS="$lt_save_ifs"
3769 test -z "$ac_dir" && ac_dir=.
3770 tmp_nm="$ac_dir/$lt_tmp_nm"
3771 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3772 # Check to see if the nm accepts a BSD-compat flag.
3773 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3774 # nm: unknown option "B" ignored
3775 # Tru64's nm complains that /dev/null is an invalid object file
3776 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3777 */dev/null* | *'Invalid file or object type'*)
3778 lt_cv_path_NM="$tmp_nm -B"
3779 break
3780 ;;
3781 *)
3782 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3783 */dev/null*)
3784 lt_cv_path_NM="$tmp_nm -p"
3785 break
3786 ;;
3787 *)
3788 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3789 continue # so that we can try to find one that supports BSD flags
3790 ;;
3791 esac
3792 ;;
3793 esac
3794 fi
3795 done
3796 IFS="$lt_save_ifs"
3797 done
3798 : ${lt_cv_path_NM=no}
3799 fi
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3802 $as_echo "$lt_cv_path_NM" >&6; }
3803 if test "$lt_cv_path_NM" != "no"; then
3804 NM="$lt_cv_path_NM"
3805 else
3806 # Didn't find any BSD compatible name lister, look for dumpbin.
3807 if test -n "$ac_tool_prefix"; then
3808 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3809 do
3810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
3811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_DUMPBIN+:} false; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -n "$DUMPBIN"; then
3818 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3829 break 2
3830 fi
3831 done
3832 done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 DUMPBIN=$ac_cv_prog_DUMPBIN
3838 if test -n "$DUMPBIN"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3840 $as_echo "$DUMPBIN" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845
3846
3847 test -n "$DUMPBIN" && break
3848 done
3849 fi
3850 if test -z "$DUMPBIN"; then
3851 ac_ct_DUMPBIN=$DUMPBIN
3852 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3853 do
3854 # Extract the first word of "$ac_prog", so it can be a program name with args.
3855 set dummy $ac_prog; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 if test -n "$ac_ct_DUMPBIN"; then
3862 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3863 else
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3866 do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3871 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3873 break 2
3874 fi
3875 done
3876 done
3877 IFS=$as_save_IFS
3878
3879 fi
3880 fi
3881 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3882 if test -n "$ac_ct_DUMPBIN"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3884 $as_echo "$ac_ct_DUMPBIN" >&6; }
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3888 fi
3889
3890
3891 test -n "$ac_ct_DUMPBIN" && break
3892 done
3893
3894 if test "x$ac_ct_DUMPBIN" = x; then
3895 DUMPBIN=":"
3896 else
3897 case $cross_compiling:$ac_tool_warned in
3898 yes:)
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
3901 ac_tool_warned=yes ;;
3902 esac
3903 DUMPBIN=$ac_ct_DUMPBIN
3904 fi
3905 fi
3906
3907
3908 if test "$DUMPBIN" != ":"; then
3909 NM="$DUMPBIN"
3910 fi
3911 fi
3912 test -z "$NM" && NM=nm
3913
3914
3915
3916
3917
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interfac e" >&5
3920 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3921 if ${lt_cv_nm_interface+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 lt_cv_nm_interface="BSD nm"
3925 echo "int some_variable = 0;" > conftest.$ac_ext
3926 (eval echo "\"\$as_me:3926: $ac_compile\"" >&5)
3927 (eval "$ac_compile" 2>conftest.err)
3928 cat conftest.err >&5
3929 (eval echo "\"\$as_me:3929: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3930 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3931 cat conftest.err >&5
3932 (eval echo "\"\$as_me:3932: output\"" >&5)
3933 cat conftest.out >&5
3934 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3935 lt_cv_nm_interface="MS dumpbin"
3936 fi
3937 rm -f conftest*
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3940 $as_echo "$lt_cv_nm_interface" >&6; }
3941
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3943 $as_echo_n "checking whether ln -s works... " >&6; }
3944 LN_S=$as_ln_s
3945 if test "$LN_S" = "ln -s"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3948 else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3950 $as_echo "no, using $LN_S" >&6; }
3951 fi
3952
3953 # find the maximum length of command line arguments
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3955 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3956 if ${lt_cv_sys_max_cmd_len+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 i=0
3960 teststring="ABCD"
3961
3962 case $build_os in
3963 msdosdjgpp*)
3964 # On DJGPP, this test can blow up pretty badly due to problems in libc
3965 # (any single argument exceeding 2000 bytes causes a buffer overrun
3966 # during glob expansion). Even if it were fixed, the result of this
3967 # check would be larger than it should be.
3968 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3969 ;;
3970
3971 gnu*)
3972 # Under GNU Hurd, this test is not required because there is
3973 # no limit to the length of command line arguments.
3974 # Libtool will interpret -1 as no limit whatsoever
3975 lt_cv_sys_max_cmd_len=-1;
3976 ;;
3977
3978 cygwin* | mingw* | cegcc*)
3979 # On Win9x/ME, this test blows up -- it succeeds, but takes
3980 # about 5 minutes as the teststring grows exponentially.
3981 # Worse, since 9x/ME are not pre-emptively multitasking,
3982 # you end up with a "frozen" computer, even though with patience
3983 # the test eventually succeeds (with a max line length of 256k).
3984 # Instead, let's just punt: use the minimum linelength reported by
3985 # all of the supported platforms: 8192 (on NT/2K/XP).
3986 lt_cv_sys_max_cmd_len=8192;
3987 ;;
3988
3989 amigaos*)
3990 # On AmigaOS with pdksh, this test takes hours, literally.
3991 # So we just punt and use a minimum line length of 8192.
3992 lt_cv_sys_max_cmd_len=8192;
3993 ;;
3994
3995 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3996 # This has been around since 386BSD, at least. Likely further.
3997 if test -x /sbin/sysctl; then
3998 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3999 elif test -x /usr/sbin/sysctl; then
4000 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4001 else
4002 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4003 fi
4004 # And add a safety zone
4005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4007 ;;
4008
4009 interix*)
4010 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4011 lt_cv_sys_max_cmd_len=196608
4012 ;;
4013
4014 osf*)
4015 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4016 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4017 # nice to cause kernel panics so lets avoid the loop below.
4018 # First set a reasonable default.
4019 lt_cv_sys_max_cmd_len=16384
4020 #
4021 if test -x /sbin/sysconfig; then
4022 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4023 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4024 esac
4025 fi
4026 ;;
4027 sco3.2v5*)
4028 lt_cv_sys_max_cmd_len=102400
4029 ;;
4030 sysv5* | sco5v6* | sysv4.2uw2*)
4031 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4032 if test -n "$kargmax"; then
4033 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4034 else
4035 lt_cv_sys_max_cmd_len=32768
4036 fi
4037 ;;
4038 *)
4039 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4040 if test -n "$lt_cv_sys_max_cmd_len"; then
4041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4043 else
4044 # Make teststring a little bigger before we do anything with it.
4045 # a 1K string should be a reasonable start.
4046 for i in 1 2 3 4 5 6 7 8 ; do
4047 teststring=$teststring$teststring
4048 done
4049 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4050 # If test is not a shell built-in, we'll probably end up computing a
4051 # maximum length that is only half of the actual maximum length, but
4052 # we can't tell.
4053 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/de v/null` \
4054 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4055 test $i != 17 # 1/2 MB should be enough
4056 do
4057 i=`expr $i + 1`
4058 teststring=$teststring$teststring
4059 done
4060 # Only check the string length outside the loop.
4061 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4062 teststring=
4063 # Add a significant safety factor because C++ compilers can tack on
4064 # massive amounts of additional arguments before passing them to the
4065 # linker. It appears as though 1/2 is a usable value.
4066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4067 fi
4068 ;;
4069 esac
4070
4071 fi
4072
4073 if test -n $lt_cv_sys_max_cmd_len ; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4075 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4076 else
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4078 $as_echo "none" >&6; }
4079 fi
4080 max_cmd_len=$lt_cv_sys_max_cmd_len
4081
4082
4083
4084
4085
4086
4087 : ${CP="cp -f"}
4088 : ${MV="mv -f"}
4089 : ${RM="rm -f"}
4090
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4092 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4093 # Try some XSI features
4094 xsi_shell=no
4095 ( _lt_dummy="a/b/c"
4096 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4097 = c,a/b,, \
4098 && eval 'test $(( 1 + 1 )) -eq 2 \
4099 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4100 && xsi_shell=yes
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4102 $as_echo "$xsi_shell" >&6; }
4103
4104
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4106 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4107 lt_shell_append=no
4108 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4109 >/dev/null 2>&1 \
4110 && lt_shell_append=yes
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4112 $as_echo "$lt_shell_append" >&6; }
4113
4114
4115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4116 lt_unset=unset
4117 else
4118 lt_unset=false
4119 fi
4120
4121
4122
4123
4124
4125 # test EBCDIC or ASCII
4126 case `echo X|tr X '\101'` in
4127 A) # ASCII based system
4128 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4129 lt_SP2NL='tr \040 \012'
4130 lt_NL2SP='tr \015\012 \040\040'
4131 ;;
4132 *) # EBCDIC based system
4133 lt_SP2NL='tr \100 \n'
4134 lt_NL2SP='tr \r\n \100\100'
4135 ;;
4136 esac
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload objec t files" >&5
4147 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4148 if ${lt_cv_ld_reload_flag+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 lt_cv_ld_reload_flag='-r'
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4154 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4155 reload_flag=$lt_cv_ld_reload_flag
4156 case $reload_flag in
4157 "" | " "*) ;;
4158 *) reload_flag=" $reload_flag" ;;
4159 esac
4160 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4161 case $host_os in
4162 darwin*)
4163 if test "$GCC" = yes; then
4164 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4165 else
4166 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4167 fi
4168 ;;
4169 esac
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179 if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if ${ac_cv_prog_OBJDUMP+:} false; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 if test -n "$OBJDUMP"; then
4188 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4199 break 2
4200 fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205 fi
4206 fi
4207 OBJDUMP=$ac_cv_prog_OBJDUMP
4208 if test -n "$OBJDUMP"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4210 $as_echo "$OBJDUMP" >&6; }
4211 else
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215
4216
4217 fi
4218 if test -z "$ac_cv_prog_OBJDUMP"; then
4219 ac_ct_OBJDUMP=$OBJDUMP
4220 # Extract the first word of "objdump", so it can be a program name with args.
4221 set dummy objdump; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 if test -n "$ac_ct_OBJDUMP"; then
4228 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4239 break 2
4240 fi
4241 done
4242 done
4243 IFS=$as_save_IFS
4244
4245 fi
4246 fi
4247 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4248 if test -n "$ac_ct_OBJDUMP"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4250 $as_echo "$ac_ct_OBJDUMP" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256 if test "x$ac_ct_OBJDUMP" = x; then
4257 OBJDUMP="false"
4258 else
4259 case $cross_compiling:$ac_tool_warned in
4260 yes:)
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
4263 ac_tool_warned=yes ;;
4264 esac
4265 OBJDUMP=$ac_ct_OBJDUMP
4266 fi
4267 else
4268 OBJDUMP="$ac_cv_prog_OBJDUMP"
4269 fi
4270
4271 test -z "$OBJDUMP" && OBJDUMP=objdump
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent lib raries" >&5
4282 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4283 if ${lt_cv_deplibs_check_method+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 lt_cv_file_magic_cmd='$MAGIC_CMD'
4287 lt_cv_file_magic_test_file=
4288 lt_cv_deplibs_check_method='unknown'
4289 # Need to set the preceding variable on all platforms that support
4290 # interlibrary dependencies.
4291 # 'none' -- dependencies not supported.
4292 # `unknown' -- same as none, but documents that we really don't know.
4293 # 'pass_all' -- all dependencies passed with no checks.
4294 # 'test_compile' -- check by making test program.
4295 # 'file_magic [[regex]]' -- check by looking for files in library path
4296 # which responds to the $file_magic_cmd with a given extended regex.
4297 # If you have `file' or equivalent on your system and you're not sure
4298 # whether `pass_all' will *always* work, you probably want this one.
4299
4300 case $host_os in
4301 aix[4-9]*)
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305 beos*)
4306 lt_cv_deplibs_check_method=pass_all
4307 ;;
4308
4309 bsdi[45]*)
4310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared obje ct|dynamic lib)'
4311 lt_cv_file_magic_cmd='/usr/bin/file -L'
4312 lt_cv_file_magic_test_file=/shlib/libc.so
4313 ;;
4314
4315 cygwin*)
4316 # func_win32_libid is a shell function defined in ltmain.sh
4317 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4318 lt_cv_file_magic_cmd='func_win32_libid'
4319 ;;
4320
4321 mingw* | pw32*)
4322 # Base MSYS/MinGW do not provide the 'file' command needed by
4323 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4324 # unless we find 'file', for example because we are cross-compiling.
4325 if ( file / ) >/dev/null 2>&1; then
4326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4327 lt_cv_file_magic_cmd='func_win32_libid'
4328 else
4329 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4330 lt_cv_file_magic_cmd='$OBJDUMP -f'
4331 fi
4332 ;;
4333
4334 cegcc)
4335 # use the weaker test based on 'objdump'. See mingw*.
4336 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect ure: arm)?'
4337 lt_cv_file_magic_cmd='$OBJDUMP -f'
4338 ;;
4339
4340 darwin* | rhapsody*)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343
4344 freebsd* | dragonfly*)
4345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4346 case $host_cpu in
4347 i*86 )
4348 # Not sure whether the presence of OpenBSD here was a mistake.
4349 # Let's accept both of them until this is cleared up.
4350 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]8 6 (compact )?demand paged shared library'
4351 lt_cv_file_magic_cmd=/usr/bin/file
4352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4353 ;;
4354 esac
4355 else
4356 lt_cv_deplibs_check_method=pass_all
4357 fi
4358 ;;
4359
4360 gnu*)
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
4363
4364 hpux10.20* | hpux11*)
4365 lt_cv_file_magic_cmd=/usr/bin/file
4366 case $host_cpu in
4367 ia64*)
4368 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha red object file - IA64'
4369 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4370 ;;
4371 hppa*64*)
4372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha red object file - PA-RISC [0-9].[0-9]'
4373 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4374 ;;
4375 *)
4376 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4377 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4378 ;;
4379 esac
4380 ;;
4381
4382 interix[3-9]*)
4383 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4385 ;;
4386
4387 irix5* | irix6* | nonstopux*)
4388 case $LD in
4389 *-32|*"-32 ") libmagic=32-bit;;
4390 *-n32|*"-n32 ") libmagic=N32;;
4391 *-64|*"-64 ") libmagic=64-bit;;
4392 *) libmagic=never-match;;
4393 esac
4394 lt_cv_deplibs_check_method=pass_all
4395 ;;
4396
4397 # This must be Linux ELF.
4398 linux* | k*bsd*-gnu)
4399 lt_cv_deplibs_check_method=pass_all
4400 ;;
4401
4402 netbsd*)
4403 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
4405 else
4406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4407 fi
4408 ;;
4409
4410 newos6*)
4411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable| dynamic lib)'
4412 lt_cv_file_magic_cmd=/usr/bin/file
4413 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4414 ;;
4415
4416 *nto* | *qnx*)
4417 lt_cv_deplibs_check_method=pass_all
4418 ;;
4419
4420 openbsd*)
4421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host _cpu" = "openbsd2.8-powerpc"; then
4422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.s o|_pic\.a)$'
4423 else
4424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
4425 fi
4426 ;;
4427
4428 osf3* | osf4* | osf5*)
4429 lt_cv_deplibs_check_method=pass_all
4430 ;;
4431
4432 rdos*)
4433 lt_cv_deplibs_check_method=pass_all
4434 ;;
4435
4436 solaris*)
4437 lt_cv_deplibs_check_method=pass_all
4438 ;;
4439
4440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4441 lt_cv_deplibs_check_method=pass_all
4442 ;;
4443
4444 sysv4 | sysv4.3*)
4445 case $host_vendor in
4446 motorola)
4447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared ob ject|dynamic lib) M[0-9][0-9]* Version [0-9]'
4448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4449 ;;
4450 ncr)
4451 lt_cv_deplibs_check_method=pass_all
4452 ;;
4453 sequent)
4454 lt_cv_file_magic_cmd='/bin/file'
4455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared ob ject|dynamic lib )'
4456 ;;
4457 sni)
4458 lt_cv_file_magic_cmd='/bin/file'
4459 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic li b"
4460 lt_cv_file_magic_test_file=/lib/libc.so
4461 ;;
4462 siemens)
4463 lt_cv_deplibs_check_method=pass_all
4464 ;;
4465 pc)
4466 lt_cv_deplibs_check_method=pass_all
4467 ;;
4468 esac
4469 ;;
4470
4471 tpf*)
4472 lt_cv_deplibs_check_method=pass_all
4473 ;;
4474 esac
4475
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >& 5
4478 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4479 file_magic_cmd=$lt_cv_file_magic_cmd
4480 deplibs_check_method=$lt_cv_deplibs_check_method
4481 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494 if test -n "$ac_tool_prefix"; then
4495 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4496 set dummy ${ac_tool_prefix}ar; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_AR+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if test -n "$AR"; then
4503 ac_cv_prog_AR="$AR" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512 ac_cv_prog_AR="${ac_tool_prefix}ar"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4514 break 2
4515 fi
4516 done
4517 done
4518 IFS=$as_save_IFS
4519
4520 fi
4521 fi
4522 AR=$ac_cv_prog_AR
4523 if test -n "$AR"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4525 $as_echo "$AR" >&6; }
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4529 fi
4530
4531
4532 fi
4533 if test -z "$ac_cv_prog_AR"; then
4534 ac_ct_AR=$AR
4535 # Extract the first word of "ar", so it can be a program name with args.
4536 set dummy ar; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -n "$ac_ct_AR"; then
4543 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_ac_ct_AR="ar"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4554 break 2
4555 fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560 fi
4561 fi
4562 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4563 if test -n "$ac_ct_AR"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4565 $as_echo "$ac_ct_AR" >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4569 fi
4570
4571 if test "x$ac_ct_AR" = x; then
4572 AR="false"
4573 else
4574 case $cross_compiling:$ac_tool_warned in
4575 yes:)
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
4578 ac_tool_warned=yes ;;
4579 esac
4580 AR=$ac_ct_AR
4581 fi
4582 else
4583 AR="$ac_cv_prog_AR"
4584 fi
4585
4586 test -z "$AR" && AR=ar
4587 test -z "$AR_FLAGS" && AR_FLAGS=cru
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599 if test -n "$ac_tool_prefix"; then
4600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n ame with args.
4601 set dummy ${ac_tool_prefix}strip; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if ${ac_cv_prog_STRIP+:} false; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$STRIP"; then
4608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4617 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4619 break 2
4620 fi
4621 done
4622 done
4623 IFS=$as_save_IFS
4624
4625 fi
4626 fi
4627 STRIP=$ac_cv_prog_STRIP
4628 if test -n "$STRIP"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4630 $as_echo "$STRIP" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4634 fi
4635
4636
4637 fi
4638 if test -z "$ac_cv_prog_STRIP"; then
4639 ac_ct_STRIP=$STRIP
4640 # Extract the first word of "strip", so it can be a program name with args.
4641 set dummy strip; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$ac_ct_STRIP"; then
4648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_STRIP="strip"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4659 break 2
4660 fi
4661 done
4662 done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4668 if test -n "$ac_ct_STRIP"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4670 $as_echo "$ac_ct_STRIP" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676 if test "x$ac_ct_STRIP" = x; then
4677 STRIP=":"
4678 else
4679 case $cross_compiling:$ac_tool_warned in
4680 yes:)
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
4683 ac_tool_warned=yes ;;
4684 esac
4685 STRIP=$ac_ct_STRIP
4686 fi
4687 else
4688 STRIP="$ac_cv_prog_STRIP"
4689 fi
4690
4691 test -z "$STRIP" && STRIP=:
4692
4693
4694
4695
4696
4697
4698 if test -n "$ac_tool_prefix"; then
4699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if ${ac_cv_prog_RANLIB+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$RANLIB"; then
4707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4718 break 2
4719 fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 RANLIB=$ac_cv_prog_RANLIB
4727 if test -n "$RANLIB"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4729 $as_echo "$RANLIB" >&6; }
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735
4736 fi
4737 if test -z "$ac_cv_prog_RANLIB"; then
4738 ac_ct_RANLIB=$RANLIB
4739 # Extract the first word of "ranlib", so it can be a program name with args.
4740 set dummy ranlib; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$ac_ct_RANLIB"; then
4747 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_ac_ct_RANLIB="ranlib"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4758 break 2
4759 fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764 fi
4765 fi
4766 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4767 if test -n "$ac_ct_RANLIB"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4769 $as_echo "$ac_ct_RANLIB" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774
4775 if test "x$ac_ct_RANLIB" = x; then
4776 RANLIB=":"
4777 else
4778 case $cross_compiling:$ac_tool_warned in
4779 yes:)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
4782 ac_tool_warned=yes ;;
4783 esac
4784 RANLIB=$ac_ct_RANLIB
4785 fi
4786 else
4787 RANLIB="$ac_cv_prog_RANLIB"
4788 fi
4789
4790 test -z "$RANLIB" && RANLIB=:
4791
4792
4793
4794
4795
4796
4797 # Determine commands to create old-style static archives.
4798 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4799 old_postinstall_cmds='chmod 644 $oldlib'
4800 old_postuninstall_cmds=
4801
4802 if test -n "$RANLIB"; then
4803 case $host_os in
4804 openbsd*)
4805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4806 ;;
4807 *)
4808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4809 ;;
4810 esac
4811 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4812 fi
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847 # If no C compiler was specified, use CC.
4848 LTCC=${LTCC-"$CC"}
4849
4850 # If no C compiler flags were specified, use CFLAGS.
4851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4852
4853 # Allow CC to be a program name with arguments.
4854 compiler=$CC
4855
4856
4857 # Check for command to grab the raw symbol name followed by C symbol from nm.
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output fr om $compiler object" >&5
4859 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4860 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863
4864 # These are sane defaults that work on at least a few old systems.
4865 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4866
4867 # Character class describing NM global symbol codes.
4868 symcode='[BCDEGRST]'
4869
4870 # Regexp to match symbols that can be accessed directly from C.
4871 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4872
4873 # Define system-specific variables.
4874 case $host_os in
4875 aix*)
4876 symcode='[BCDT]'
4877 ;;
4878 cygwin* | mingw* | pw32* | cegcc*)
4879 symcode='[ABCDGISTW]'
4880 ;;
4881 hpux*)
4882 if test "$host_cpu" = ia64; then
4883 symcode='[ABCDEGRST]'
4884 fi
4885 ;;
4886 irix* | nonstopux*)
4887 symcode='[BCDEGRST]'
4888 ;;
4889 osf*)
4890 symcode='[BCDEGQRST]'
4891 ;;
4892 solaris*)
4893 symcode='[BDRT]'
4894 ;;
4895 sco3.2v5*)
4896 symcode='[DT]'
4897 ;;
4898 sysv4.2uw2*)
4899 symcode='[DT]'
4900 ;;
4901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4902 symcode='[ABDT]'
4903 ;;
4904 sysv4)
4905 symcode='[DFNSTU]'
4906 ;;
4907 esac
4908
4909 # If we're using GNU nm, then use its standard symbol codes.
4910 case `$NM -V 2>&1` in
4911 *GNU* | *'with BFD'*)
4912 symcode='[ABCDGIRSTW]' ;;
4913 esac
4914
4915 # Transform an extracted symbol line into a proper C declaration.
4916 # Some systems (esp. on ia64) link data and code symbols differently,
4917 # so use this general approach.
4918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4919
4920 # Transform an extracted symbol line into symbol name and symbol address
4921 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1 \\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4922 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\ 2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (voi d *) \&\2},/p'"
4923
4924 # Handle CRLF in mingw tool chain
4925 opt_cr=
4926 case $build_os in
4927 mingw*)
4928 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4929 ;;
4930 esac
4931
4932 # Try without a prefix underscore, then with it.
4933 for ac_symprfx in "" "_"; do
4934
4935 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4936 symxfrm="\\1 $ac_symprfx\\2 \\2"
4937
4938 # Write the raw and C identifiers.
4939 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4940 # Fake it for dumpbin and say T for any non-static function
4941 # and D for any global variable.
4942 # Also find C++ and __fastcall symbols from MSVC++,
4943 # which start with @ or ?.
4944 lt_cv_sys_global_symbol_pipe="$AWK '"\
4945 " {last_section=section; section=\$ 3};"\
4946 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4947 " \$ 0!~/External *\|/{next};"\
4948 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4949 " {if(hide[section]) next};"\
4950 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4951 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4952 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4953 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4954 " ' prfx=^$ac_symprfx"
4955 else
4956 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4957 fi
4958
4959 # Check to see that the pipe works correctly.
4960 pipe_works=no
4961
4962 rm -f conftest*
4963 cat > conftest.$ac_ext <<_LT_EOF
4964 #ifdef __cplusplus
4965 extern "C" {
4966 #endif
4967 char nm_test_var;
4968 void nm_test_func(void);
4969 void nm_test_func(void){}
4970 #ifdef __cplusplus
4971 }
4972 #endif
4973 int main(){nm_test_var='a';nm_test_func();return(0);}
4974 _LT_EOF
4975
4976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4977 (eval $ac_compile) 2>&5
4978 ac_status=$?
4979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4980 test $ac_status = 0; }; then
4981 # Now try to grab the symbols.
4982 nlist=conftest.nm
4983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objex t \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4984 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4985 ac_status=$?
4986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; } && test -s "$nlist"; then
4988 # Try sorting and uniquifying the output.
4989 if sort "$nlist" | uniq > "$nlist"T; then
4990 mv -f "$nlist"T "$nlist"
4991 else
4992 rm -f "$nlist"T
4993 fi
4994
4995 # Make sure that we snagged all the symbols we need.
4996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4997 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4998 cat <<_LT_EOF > conftest.$ac_ext
4999 #ifdef __cplusplus
5000 extern "C" {
5001 #endif
5002
5003 _LT_EOF
5004 # Now generate the symbol file.
5005 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main > > conftest.$ac_ext'
5006
5007 cat <<_LT_EOF >> conftest.$ac_ext
5008
5009 /* The mapping between symbol names and symbols. */
5010 const struct {
5011 const char *name;
5012 void *address;
5013 }
5014 lt__PROGRAM__LTX_preloaded_symbols[] =
5015 {
5016 { "@PROGRAM@", (void *) 0 },
5017 _LT_EOF
5018 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5019 cat <<\_LT_EOF >> conftest.$ac_ext
5020 {0, (void *) 0}
5021 };
5022
5023 /* This works around a problem in FreeBSD linker */
5024 #ifdef FREEBSD_WORKAROUND
5025 static const void *lt_preloaded_setup() {
5026 return lt__PROGRAM__LTX_preloaded_symbols;
5027 }
5028 #endif
5029
5030 #ifdef __cplusplus
5031 }
5032 #endif
5033 _LT_EOF
5034 # Now try linking the two files.
5035 mv conftest.$ac_objext conftstm.$ac_objext
5036 lt_save_LIBS="$LIBS"
5037 lt_save_CFLAGS="$CFLAGS"
5038 LIBS="conftstm.$ac_objext"
5039 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } > &5
5041 (eval $ac_link) 2>&5
5042 ac_status=$?
5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5045 pipe_works=yes
5046 fi
5047 LIBS="$lt_save_LIBS"
5048 CFLAGS="$lt_save_CFLAGS"
5049 else
5050 echo "cannot find nm_test_func in $nlist" >&5
5051 fi
5052 else
5053 echo "cannot find nm_test_var in $nlist" >&5
5054 fi
5055 else
5056 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5057 fi
5058 else
5059 echo "$progname: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5061 fi
5062 rm -rf conftest* conftst*
5063
5064 # Do not use the global_symbol_pipe unless it works.
5065 if test "$pipe_works" = yes; then
5066 break
5067 else
5068 lt_cv_sys_global_symbol_pipe=
5069 fi
5070 done
5071
5072 fi
5073
5074 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5075 lt_cv_sys_global_symbol_to_cdecl=
5076 fi
5077 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the n
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5079 $as_echo "failed" >&6; }
5080 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5082 $as_echo "ok" >&6; }
5083 fi
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107 # Check whether --enable-libtool-lock was given.
5108 if test "${enable_libtool_lock+set}" = set; then :
5109 enableval=$enable_libtool_lock;
5110 fi
5111
5112 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5113
5114 # Some flags need to be propagated to the compiler or linker for good
5115 # libtool support.
5116 case $host in
5117 ia64-*-hpux*)
5118 # Find out which ABI we are using.
5119 echo 'int i;' > conftest.$ac_ext
5120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5121 (eval $ac_compile) 2>&5
5122 ac_status=$?
5123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5124 test $ac_status = 0; }; then
5125 case `/usr/bin/file conftest.$ac_objext` in
5126 *ELF-32*)
5127 HPUX_IA64_MODE="32"
5128 ;;
5129 *ELF-64*)
5130 HPUX_IA64_MODE="64"
5131 ;;
5132 esac
5133 fi
5134 rm -rf conftest*
5135 ;;
5136 *-*-irix6*)
5137 # Find out which ABI we are using.
5138 echo '#line 5138 "configure"' > conftest.$ac_ext
5139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5140 (eval $ac_compile) 2>&5
5141 ac_status=$?
5142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5143 test $ac_status = 0; }; then
5144 if test "$lt_cv_prog_gnu_ld" = yes; then
5145 case `/usr/bin/file conftest.$ac_objext` in
5146 *32-bit*)
5147 LD="${LD-ld} -melf32bsmip"
5148 ;;
5149 *N32*)
5150 LD="${LD-ld} -melf32bmipn32"
5151 ;;
5152 *64-bit*)
5153 LD="${LD-ld} -melf64bmip"
5154 ;;
5155 esac
5156 else
5157 case `/usr/bin/file conftest.$ac_objext` in
5158 *32-bit*)
5159 LD="${LD-ld} -32"
5160 ;;
5161 *N32*)
5162 LD="${LD-ld} -n32"
5163 ;;
5164 *64-bit*)
5165 LD="${LD-ld} -64"
5166 ;;
5167 esac
5168 fi
5169 fi
5170 rm -rf conftest*
5171 ;;
5172
5173 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5174 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5175 # Find out which ABI we are using.
5176 echo 'int i;' > conftest.$ac_ext
5177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5178 (eval $ac_compile) 2>&5
5179 ac_status=$?
5180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5181 test $ac_status = 0; }; then
5182 case `/usr/bin/file conftest.o` in
5183 *32-bit*)
5184 case $host in
5185 x86_64-*kfreebsd*-gnu)
5186 LD="${LD-ld} -m elf_i386_fbsd"
5187 ;;
5188 x86_64-*linux*)
5189 LD="${LD-ld} -m elf_i386"
5190 ;;
5191 ppc64-*linux*|powerpc64-*linux*)
5192 LD="${LD-ld} -m elf32ppclinux"
5193 ;;
5194 s390x-*linux*)
5195 LD="${LD-ld} -m elf_s390"
5196 ;;
5197 sparc64-*linux*)
5198 LD="${LD-ld} -m elf32_sparc"
5199 ;;
5200 esac
5201 ;;
5202 *64-bit*)
5203 case $host in
5204 x86_64-*kfreebsd*-gnu)
5205 LD="${LD-ld} -m elf_x86_64_fbsd"
5206 ;;
5207 x86_64-*linux*)
5208 LD="${LD-ld} -m elf_x86_64"
5209 ;;
5210 ppc*-*linux*|powerpc*-*linux*)
5211 LD="${LD-ld} -m elf64ppc"
5212 ;;
5213 s390*-*linux*|s390*-*tpf*)
5214 LD="${LD-ld} -m elf64_s390"
5215 ;;
5216 sparc*-*linux*)
5217 LD="${LD-ld} -m elf64_sparc"
5218 ;;
5219 esac
5220 ;;
5221 esac
5222 fi
5223 rm -rf conftest*
5224 ;;
5225
5226 *-*-sco3.2v5*)
5227 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5228 SAVE_CFLAGS="$CFLAGS"
5229 CFLAGS="$CFLAGS -belf"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5231 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5232 if ${lt_cv_cc_needs_belf+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 ac_ext=c
5236 ac_cpp='$CPP $CPPFLAGS'
5237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
5239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5240
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243
5244 int
5245 main ()
5246 {
5247
5248 ;
5249 return 0;
5250 }
5251 _ACEOF
5252 if ac_fn_c_try_link "$LINENO"; then :
5253 lt_cv_cc_needs_belf=yes
5254 else
5255 lt_cv_cc_needs_belf=no
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext \
5258 conftest$ac_exeext conftest.$ac_ext
5259 ac_ext=c
5260 ac_cpp='$CPP $CPPFLAGS'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264
5265 fi
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5267 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5268 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5269 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5270 CFLAGS="$SAVE_CFLAGS"
5271 fi
5272 ;;
5273 sparc*-*solaris*)
5274 # Find out which ABI we are using.
5275 echo 'int i;' > conftest.$ac_ext
5276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5277 (eval $ac_compile) 2>&5
5278 ac_status=$?
5279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5280 test $ac_status = 0; }; then
5281 case `/usr/bin/file conftest.o` in
5282 *64-bit*)
5283 case $lt_cv_prog_gnu_ld in
5284 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5285 *)
5286 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5287 LD="${LD-ld} -64"
5288 fi
5289 ;;
5290 esac
5291 ;;
5292 esac
5293 fi
5294 rm -rf conftest*
5295 ;;
5296 esac
5297
5298 need_locks="$enable_libtool_lock"
5299
5300
5301 case $host_os in
5302 rhapsody* | darwin*)
5303 if test -n "$ac_tool_prefix"; then
5304 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a progra m name with args.
5305 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 if test -n "$DSYMUTIL"; then
5312 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5323 break 2
5324 fi
5325 done
5326 done
5327 IFS=$as_save_IFS
5328
5329 fi
5330 fi
5331 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5332 if test -n "$DSYMUTIL"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5334 $as_echo "$DSYMUTIL" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 fi
5339
5340
5341 fi
5342 if test -z "$ac_cv_prog_DSYMUTIL"; then
5343 ac_ct_DSYMUTIL=$DSYMUTIL
5344 # Extract the first word of "dsymutil", so it can be a program name with args.
5345 set dummy dsymutil; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 if test -n "$ac_ct_DSYMUTIL"; then
5352 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5363 break 2
5364 fi
5365 done
5366 done
5367 IFS=$as_save_IFS
5368
5369 fi
5370 fi
5371 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5372 if test -n "$ac_ct_DSYMUTIL"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5374 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5375 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 fi
5379
5380 if test "x$ac_ct_DSYMUTIL" = x; then
5381 DSYMUTIL=":"
5382 else
5383 case $cross_compiling:$ac_tool_warned in
5384 yes:)
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5387 ac_tool_warned=yes ;;
5388 esac
5389 DSYMUTIL=$ac_ct_DSYMUTIL
5390 fi
5391 else
5392 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5393 fi
5394
5395 if test -n "$ac_tool_prefix"; then
5396 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5397 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_NMEDIT+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 if test -n "$NMEDIT"; then
5404 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5415 break 2
5416 fi
5417 done
5418 done
5419 IFS=$as_save_IFS
5420
5421 fi
5422 fi
5423 NMEDIT=$ac_cv_prog_NMEDIT
5424 if test -n "$NMEDIT"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5426 $as_echo "$NMEDIT" >&6; }
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432
5433 fi
5434 if test -z "$ac_cv_prog_NMEDIT"; then
5435 ac_ct_NMEDIT=$NMEDIT
5436 # Extract the first word of "nmedit", so it can be a program name with args.
5437 set dummy nmedit; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 if test -n "$ac_ct_NMEDIT"; then
5444 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5445 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5455 break 2
5456 fi
5457 done
5458 done
5459 IFS=$as_save_IFS
5460
5461 fi
5462 fi
5463 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5464 if test -n "$ac_ct_NMEDIT"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5466 $as_echo "$ac_ct_NMEDIT" >&6; }
5467 else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5470 fi
5471
5472 if test "x$ac_ct_NMEDIT" = x; then
5473 NMEDIT=":"
5474 else
5475 case $cross_compiling:$ac_tool_warned in
5476 yes:)
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5479 ac_tool_warned=yes ;;
5480 esac
5481 NMEDIT=$ac_ct_NMEDIT
5482 fi
5483 else
5484 NMEDIT="$ac_cv_prog_NMEDIT"
5485 fi
5486
5487 if test -n "$ac_tool_prefix"; then
5488 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program na me with args.
5489 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_prog_LIPO+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 if test -n "$LIPO"; then
5496 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5497 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5507 break 2
5508 fi
5509 done
5510 done
5511 IFS=$as_save_IFS
5512
5513 fi
5514 fi
5515 LIPO=$ac_cv_prog_LIPO
5516 if test -n "$LIPO"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5518 $as_echo "$LIPO" >&6; }
5519 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5522 fi
5523
5524
5525 fi
5526 if test -z "$ac_cv_prog_LIPO"; then
5527 ac_ct_LIPO=$LIPO
5528 # Extract the first word of "lipo", so it can be a program name with args.
5529 set dummy lipo; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$ac_ct_LIPO"; then
5536 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_ac_ct_LIPO="lipo"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5547 break 2
5548 fi
5549 done
5550 done
5551 IFS=$as_save_IFS
5552
5553 fi
5554 fi
5555 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5556 if test -n "$ac_ct_LIPO"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5558 $as_echo "$ac_ct_LIPO" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 fi
5563
5564 if test "x$ac_ct_LIPO" = x; then
5565 LIPO=":"
5566 else
5567 case $cross_compiling:$ac_tool_warned in
5568 yes:)
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5571 ac_tool_warned=yes ;;
5572 esac
5573 LIPO=$ac_ct_LIPO
5574 fi
5575 else
5576 LIPO="$ac_cv_prog_LIPO"
5577 fi
5578
5579 if test -n "$ac_tool_prefix"; then
5580 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program n ame with args.
5581 set dummy ${ac_tool_prefix}otool; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_OTOOL+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if test -n "$OTOOL"; then
5588 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5599 break 2
5600 fi
5601 done
5602 done
5603 IFS=$as_save_IFS
5604
5605 fi
5606 fi
5607 OTOOL=$ac_cv_prog_OTOOL
5608 if test -n "$OTOOL"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5610 $as_echo "$OTOOL" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616
5617 fi
5618 if test -z "$ac_cv_prog_OTOOL"; then
5619 ac_ct_OTOOL=$OTOOL
5620 # Extract the first word of "otool", so it can be a program name with args.
5621 set dummy otool; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 if test -n "$ac_ct_OTOOL"; then
5628 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_ac_ct_OTOOL="otool"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5639 break 2
5640 fi
5641 done
5642 done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5648 if test -n "$ac_ct_OTOOL"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5650 $as_echo "$ac_ct_OTOOL" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656 if test "x$ac_ct_OTOOL" = x; then
5657 OTOOL=":"
5658 else
5659 case $cross_compiling:$ac_tool_warned in
5660 yes:)
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5663 ac_tool_warned=yes ;;
5664 esac
5665 OTOOL=$ac_ct_OTOOL
5666 fi
5667 else
5668 OTOOL="$ac_cv_prog_OTOOL"
5669 fi
5670
5671 if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5673 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_prog_OTOOL64+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 if test -n "$OTOOL64"; then
5680 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5691 break 2
5692 fi
5693 done
5694 done
5695 IFS=$as_save_IFS
5696
5697 fi
5698 fi
5699 OTOOL64=$ac_cv_prog_OTOOL64
5700 if test -n "$OTOOL64"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5702 $as_echo "$OTOOL64" >&6; }
5703 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5706 fi
5707
5708
5709 fi
5710 if test -z "$ac_cv_prog_OTOOL64"; then
5711 ac_ct_OTOOL64=$OTOOL64
5712 # Extract the first word of "otool64", so it can be a program name with args.
5713 set dummy otool64; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$ac_ct_OTOOL64"; then
5720 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_ac_ct_OTOOL64="otool64"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5731 break 2
5732 fi
5733 done
5734 done
5735 IFS=$as_save_IFS
5736
5737 fi
5738 fi
5739 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5740 if test -n "$ac_ct_OTOOL64"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5742 $as_echo "$ac_ct_OTOOL64" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5746 fi
5747
5748 if test "x$ac_ct_OTOOL64" = x; then
5749 OTOOL64=":"
5750 else
5751 case $cross_compiling:$ac_tool_warned in
5752 yes:)
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5755 ac_tool_warned=yes ;;
5756 esac
5757 OTOOL64=$ac_ct_OTOOL64
5758 fi
5759 else
5760 OTOOL64="$ac_cv_prog_OTOOL64"
5761 fi
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5790 $as_echo_n "checking for -single_module linker flag... " >&6; }
5791 if ${lt_cv_apple_cc_single_mod+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 lt_cv_apple_cc_single_mod=no
5795 if test -z "${LT_MULTI_MODULE}"; then
5796 # By default we will add the -single_module flag. You can override
5797 # by either setting the environment variable LT_MULTI_MODULE
5798 # non-empty at configure time, or by adding -multi_module to the
5799 # link flags.
5800 rm -rf libconftest.dylib*
5801 echo "int foo(void){return 1;}" > conftest.c
5802 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5803 -dynamiclib -Wl,-single_module conftest.c" >&5
5804 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5805 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5806 _lt_result=$?
5807 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_resu lt = 0; then
5808 lt_cv_apple_cc_single_mod=yes
5809 else
5810 cat conftest.err >&5
5811 fi
5812 rm -rf libconftest.dylib*
5813 rm -f conftest.*
5814 fi
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5817 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5819 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5820 if ${lt_cv_ld_exported_symbols_list+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 lt_cv_ld_exported_symbols_list=no
5824 save_LDFLAGS=$LDFLAGS
5825 echo "_main" > conftest.sym
5826 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829
5830 int
5831 main ()
5832 {
5833
5834 ;
5835 return 0;
5836 }
5837 _ACEOF
5838 if ac_fn_c_try_link "$LINENO"; then :
5839 lt_cv_ld_exported_symbols_list=yes
5840 else
5841 lt_cv_ld_exported_symbols_list=no
5842 fi
5843 rm -f core conftest.err conftest.$ac_objext \
5844 conftest$ac_exeext conftest.$ac_ext
5845 LDFLAGS="$save_LDFLAGS"
5846
5847 fi
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list " >&5
5849 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5850 case $host_os in
5851 rhapsody* | darwin1.[012])
5852 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5853 darwin1.*)
5854 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppres s' ;;
5855 darwin*) # darwin 5.x on
5856 # if running on 10.5 or later, the deployment target defaults
5857 # to the OS version, if on x86, and 10.4, the deployment
5858 # target defaults to 10.4. Don't you love it?
5859 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5860 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5861 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5862 10.[012]*)
5863 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}sup press' ;;
5864 10.*)
5865 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5866 esac
5867 ;;
5868 esac
5869 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5870 _lt_dar_single_mod='$single_module'
5871 fi
5872 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5873 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname }-symbols.expsym'
5874 else
5875 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5876 fi
5877 if test "$DSYMUTIL" != ":"; then
5878 _lt_dsymutil='~$DSYMUTIL $lib || :'
5879 else
5880 _lt_dsymutil=
5881 fi
5882 ;;
5883 esac
5884
5885 ac_ext=c
5886 ac_cpp='$CPP $CPPFLAGS'
5887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
5889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5891 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5892 # On Suns, sometimes $CPP names a directory.
5893 if test -n "$CPP" && test -d "$CPP"; then
5894 CPP=
5895 fi
5896 if test -z "$CPP"; then
5897 if ${ac_cv_prog_CPP+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 # Double quotes because CPP needs to be expanded
5901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5902 do
5903 ac_preproc_ok=false
5904 for ac_c_preproc_warn_flag in '' yes
5905 do
5906 # Use a header file that comes with gcc, so configuring glibc
5907 # with a fresh cross-compiler works.
5908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909 # <limits.h> exists even on freestanding compilers.
5910 # On the NeXT, cc -E runs the code through the compiler's parser,
5911 # not just through cpp. "Syntax error" is here to catch this case.
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #ifdef __STDC__
5915 # include <limits.h>
5916 #else
5917 # include <assert.h>
5918 #endif
5919 Syntax error
5920 _ACEOF
5921 if ac_fn_c_try_cpp "$LINENO"; then :
5922
5923 else
5924 # Broken: fails on valid input.
5925 continue
5926 fi
5927 rm -f conftest.err conftest.i conftest.$ac_ext
5928
5929 # OK, works on sane cases. Now check whether nonexistent headers
5930 # can be detected and how.
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 #include <ac_nonexistent.h>
5934 _ACEOF
5935 if ac_fn_c_try_cpp "$LINENO"; then :
5936 # Broken: success on invalid input.
5937 continue
5938 else
5939 # Passes both tests.
5940 ac_preproc_ok=:
5941 break
5942 fi
5943 rm -f conftest.err conftest.i conftest.$ac_ext
5944
5945 done
5946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5947 rm -f conftest.i conftest.err conftest.$ac_ext
5948 if $ac_preproc_ok; then :
5949 break
5950 fi
5951
5952 done
5953 ac_cv_prog_CPP=$CPP
5954
5955 fi
5956 CPP=$ac_cv_prog_CPP
5957 else
5958 ac_cv_prog_CPP=$CPP
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5961 $as_echo "$CPP" >&6; }
5962 ac_preproc_ok=false
5963 for ac_c_preproc_warn_flag in '' yes
5964 do
5965 # Use a header file that comes with gcc, so configuring glibc
5966 # with a fresh cross-compiler works.
5967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968 # <limits.h> exists even on freestanding compilers.
5969 # On the NeXT, cc -E runs the code through the compiler's parser,
5970 # not just through cpp. "Syntax error" is here to catch this case.
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 #ifdef __STDC__
5974 # include <limits.h>
5975 #else
5976 # include <assert.h>
5977 #endif
5978 Syntax error
5979 _ACEOF
5980 if ac_fn_c_try_cpp "$LINENO"; then :
5981
5982 else
5983 # Broken: fails on valid input.
5984 continue
5985 fi
5986 rm -f conftest.err conftest.i conftest.$ac_ext
5987
5988 # OK, works on sane cases. Now check whether nonexistent headers
5989 # can be detected and how.
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #include <ac_nonexistent.h>
5993 _ACEOF
5994 if ac_fn_c_try_cpp "$LINENO"; then :
5995 # Broken: success on invalid input.
5996 continue
5997 else
5998 # Passes both tests.
5999 ac_preproc_ok=:
6000 break
6001 fi
6002 rm -f conftest.err conftest.i conftest.$ac_ext
6003
6004 done
6005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006 rm -f conftest.i conftest.err conftest.$ac_ext
6007 if $ac_preproc_ok; then :
6008
6009 else
6010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6013 See \`config.log' for more details" "$LINENO" 5; }
6014 fi
6015
6016 ac_ext=c
6017 ac_cpp='$CPP $CPPFLAGS'
6018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021
6022
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6024 $as_echo_n "checking for ANSI C header files... " >&6; }
6025 if ${ac_cv_header_stdc+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 #include <stdlib.h>
6031 #include <stdarg.h>
6032 #include <string.h>
6033 #include <float.h>
6034
6035 int
6036 main ()
6037 {
6038
6039 ;
6040 return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_c_try_compile "$LINENO"; then :
6044 ac_cv_header_stdc=yes
6045 else
6046 ac_cv_header_stdc=no
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049
6050 if test $ac_cv_header_stdc = yes; then
6051 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #include <string.h>
6055
6056 _ACEOF
6057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6058 $EGREP "memchr" >/dev/null 2>&1; then :
6059
6060 else
6061 ac_cv_header_stdc=no
6062 fi
6063 rm -f conftest*
6064
6065 fi
6066
6067 if test $ac_cv_header_stdc = yes; then
6068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071 #include <stdlib.h>
6072
6073 _ACEOF
6074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6075 $EGREP "free" >/dev/null 2>&1; then :
6076
6077 else
6078 ac_cv_header_stdc=no
6079 fi
6080 rm -f conftest*
6081
6082 fi
6083
6084 if test $ac_cv_header_stdc = yes; then
6085 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6086 if test "$cross_compiling" = yes; then :
6087 :
6088 else
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 #include <ctype.h>
6092 #include <stdlib.h>
6093 #if ((' ' & 0x0FF) == 0x020)
6094 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6095 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6096 #else
6097 # define ISLOWER(c) \
6098 (('a' <= (c) && (c) <= 'i') \
6099 || ('j' <= (c) && (c) <= 'r') \
6100 || ('s' <= (c) && (c) <= 'z'))
6101 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6102 #endif
6103
6104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6105 int
6106 main ()
6107 {
6108 int i;
6109 for (i = 0; i < 256; i++)
6110 if (XOR (islower (i), ISLOWER (i))
6111 || toupper (i) != TOUPPER (i))
6112 return 2;
6113 return 0;
6114 }
6115 _ACEOF
6116 if ac_fn_c_try_run "$LINENO"; then :
6117
6118 else
6119 ac_cv_header_stdc=no
6120 fi
6121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6122 conftest.$ac_objext conftest.beam conftest.$ac_ext
6123 fi
6124
6125 fi
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6128 $as_echo "$ac_cv_header_stdc" >&6; }
6129 if test $ac_cv_header_stdc = yes; then
6130
6131 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6132
6133 fi
6134
6135 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6136 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6137 inttypes.h stdint.h unistd.h
6138 do :
6139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6140 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include s_default
6141 "
6142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6143 cat >>confdefs.h <<_ACEOF
6144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145 _ACEOF
6146
6147 fi
6148
6149 done
6150
6151
6152 for ac_header in dlfcn.h
6153 do :
6154 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_i ncludes_default
6155 "
6156 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6157 cat >>confdefs.h <<_ACEOF
6158 #define HAVE_DLFCN_H 1
6159 _ACEOF
6160
6161 fi
6162
6163 done
6164
6165
6166
6167 # Set options
6168
6169
6170
6171 enable_dlopen=no
6172
6173
6174 enable_win32_dll=no
6175
6176
6177 # Check whether --enable-shared was given.
6178 if test "${enable_shared+set}" = set; then :
6179 enableval=$enable_shared; p=${PACKAGE-default}
6180 case $enableval in
6181 yes) enable_shared=yes ;;
6182 no) enable_shared=no ;;
6183 *)
6184 enable_shared=no
6185 # Look at the argument we got. We use all the common list separators.
6186 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6187 for pkg in $enableval; do
6188 IFS="$lt_save_ifs"
6189 if test "X$pkg" = "X$p"; then
6190 enable_shared=yes
6191 fi
6192 done
6193 IFS="$lt_save_ifs"
6194 ;;
6195 esac
6196 else
6197 enable_shared=yes
6198 fi
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208 # Check whether --enable-static was given.
6209 if test "${enable_static+set}" = set; then :
6210 enableval=$enable_static; p=${PACKAGE-default}
6211 case $enableval in
6212 yes) enable_static=yes ;;
6213 no) enable_static=no ;;
6214 *)
6215 enable_static=no
6216 # Look at the argument we got. We use all the common list separators.
6217 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6218 for pkg in $enableval; do
6219 IFS="$lt_save_ifs"
6220 if test "X$pkg" = "X$p"; then
6221 enable_static=yes
6222 fi
6223 done
6224 IFS="$lt_save_ifs"
6225 ;;
6226 esac
6227 else
6228 enable_static=yes
6229 fi
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240 # Check whether --with-pic was given.
6241 if test "${with_pic+set}" = set; then :
6242 withval=$with_pic; pic_mode="$withval"
6243 else
6244 pic_mode=default
6245 fi
6246
6247
6248 test -z "$pic_mode" && pic_mode=default
6249
6250
6251
6252
6253
6254
6255
6256 # Check whether --enable-fast-install was given.
6257 if test "${enable_fast_install+set}" = set; then :
6258 enableval=$enable_fast_install; p=${PACKAGE-default}
6259 case $enableval in
6260 yes) enable_fast_install=yes ;;
6261 no) enable_fast_install=no ;;
6262 *)
6263 enable_fast_install=no
6264 # Look at the argument we got. We use all the common list separators.
6265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6266 for pkg in $enableval; do
6267 IFS="$lt_save_ifs"
6268 if test "X$pkg" = "X$p"; then
6269 enable_fast_install=yes
6270 fi
6271 done
6272 IFS="$lt_save_ifs"
6273 ;;
6274 esac
6275 else
6276 enable_fast_install=yes
6277 fi
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289 # This can be used to rebuild libtool when needed
6290 LIBTOOL_DEPS="$ltmain"
6291
6292 # Always use our own libtool.
6293 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319 test -z "$LN_S" && LN_S="ln -s"
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334 if test -n "${ZSH_VERSION+set}" ; then
6335 setopt NO_GLOB_SUBST
6336 fi
6337
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6339 $as_echo_n "checking for objdir... " >&6; }
6340 if ${lt_cv_objdir+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 rm -f .libs 2>/dev/null
6344 mkdir .libs 2>/dev/null
6345 if test -d .libs; then
6346 lt_cv_objdir=.libs
6347 else
6348 # MS-DOS does not allow filenames that begin with a dot.
6349 lt_cv_objdir=_libs
6350 fi
6351 rmdir .libs 2>/dev/null
6352 fi
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6354 $as_echo "$lt_cv_objdir" >&6; }
6355 objdir=$lt_cv_objdir
6356
6357
6358
6359
6360
6361 cat >>confdefs.h <<_ACEOF
6362 #define LT_OBJDIR "$lt_cv_objdir/"
6363 _ACEOF
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381 case $host_os in
6382 aix3*)
6383 # AIX sometimes has problems with the GCC collect2 program. For some
6384 # reason, if we set the COLLECT_NAMES environment variable, the problems
6385 # vanish in a puff of smoke.
6386 if test "X${COLLECT_NAMES+set}" != Xset; then
6387 COLLECT_NAMES=
6388 export COLLECT_NAMES
6389 fi
6390 ;;
6391 esac
6392
6393 # Sed substitution that helps us do robust quoting. It backslashifies
6394 # metacharacters that are still active within double-quoted strings.
6395 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6396
6397 # Same as above, but do not quote variable references.
6398 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6399
6400 # Sed substitution to delay expansion of an escaped shell variable in a
6401 # double_quote_subst'ed string.
6402 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6403
6404 # Sed substitution to delay expansion of an escaped single quote.
6405 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6406
6407 # Sed substitution to avoid accidental globbing in evaled expressions
6408 no_glob_subst='s/\*/\\\*/g'
6409
6410 # Global variables:
6411 ofile=libtool
6412 can_build_shared=yes
6413
6414 # All known linkers require a `.a' archive for static linking (except MSVC,
6415 # which needs '.lib').
6416 libext=a
6417
6418 with_gnu_ld="$lt_cv_prog_gnu_ld"
6419
6420 old_CC="$CC"
6421 old_CFLAGS="$CFLAGS"
6422
6423 # Set sane defaults for various variables
6424 test -z "$CC" && CC=cc
6425 test -z "$LTCC" && LTCC=$CC
6426 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6427 test -z "$LD" && LD=ld
6428 test -z "$ac_objext" && ac_objext=o
6429
6430 for cc_temp in $compiler""; do
6431 case $cc_temp in
6432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6434 \-*) ;;
6435 *) break;;
6436 esac
6437 done
6438 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6439
6440
6441 # Only perform the check for file, if the check method requires it
6442 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6443 case $deplibs_check_method in
6444 file_magic*)
6445 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6447 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6448 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 case $MAGIC_CMD in
6452 [\\/*] | ?:[\\/]*)
6453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path .
6454 ;;
6455 *)
6456 lt_save_MAGIC_CMD="$MAGIC_CMD"
6457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6459 for ac_dir in $ac_dummy; do
6460 IFS="$lt_save_ifs"
6461 test -z "$ac_dir" && ac_dir=.
6462 if test -f $ac_dir/${ac_tool_prefix}file; then
6463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6464 if test -n "$file_magic_test_file"; then
6465 case $deplibs_check_method in
6466 "file_magic "*)
6467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6470 $EGREP "$file_magic_regex" > /dev/null; then
6471 :
6472 else
6473 cat <<_LT_EOF 1>&2
6474
6475 *** Warning: the command libtool uses to detect shared libraries,
6476 *** $file_magic_cmd, produces output that libtool cannot recognize.
6477 *** The result is that libtool may fail to recognize shared libraries
6478 *** as such. This will affect the creation of libtool libraries that
6479 *** depend on shared libraries, but programs linked with such libtool
6480 *** libraries will work regardless of this problem. Nevertheless, you
6481 *** may want to report the problem to your system manager and/or to
6482 *** bug-libtool@gnu.org
6483
6484 _LT_EOF
6485 fi ;;
6486 esac
6487 fi
6488 break
6489 fi
6490 done
6491 IFS="$lt_save_ifs"
6492 MAGIC_CMD="$lt_save_MAGIC_CMD"
6493 ;;
6494 esac
6495 fi
6496
6497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6498 if test -n "$MAGIC_CMD"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6500 $as_echo "$MAGIC_CMD" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506
6507
6508
6509
6510 if test -z "$lt_cv_path_MAGIC_CMD"; then
6511 if test -n "$ac_tool_prefix"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6513 $as_echo_n "checking for file... " >&6; }
6514 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 case $MAGIC_CMD in
6518 [\\/*] | ?:[\\/]*)
6519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path .
6520 ;;
6521 *)
6522 lt_save_MAGIC_CMD="$MAGIC_CMD"
6523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6525 for ac_dir in $ac_dummy; do
6526 IFS="$lt_save_ifs"
6527 test -z "$ac_dir" && ac_dir=.
6528 if test -f $ac_dir/file; then
6529 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6530 if test -n "$file_magic_test_file"; then
6531 case $deplibs_check_method in
6532 "file_magic "*)
6533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6536 $EGREP "$file_magic_regex" > /dev/null; then
6537 :
6538 else
6539 cat <<_LT_EOF 1>&2
6540
6541 *** Warning: the command libtool uses to detect shared libraries,
6542 *** $file_magic_cmd, produces output that libtool cannot recognize.
6543 *** The result is that libtool may fail to recognize shared libraries
6544 *** as such. This will affect the creation of libtool libraries that
6545 *** depend on shared libraries, but programs linked with such libtool
6546 *** libraries will work regardless of this problem. Nevertheless, you
6547 *** may want to report the problem to your system manager and/or to
6548 *** bug-libtool@gnu.org
6549
6550 _LT_EOF
6551 fi ;;
6552 esac
6553 fi
6554 break
6555 fi
6556 done
6557 IFS="$lt_save_ifs"
6558 MAGIC_CMD="$lt_save_MAGIC_CMD"
6559 ;;
6560 esac
6561 fi
6562
6563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6564 if test -n "$MAGIC_CMD"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6566 $as_echo "$MAGIC_CMD" >&6; }
6567 else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6570 fi
6571
6572
6573 else
6574 MAGIC_CMD=:
6575 fi
6576 fi
6577
6578 fi
6579 ;;
6580 esac
6581
6582 # Use C for the default configuration in the libtool script
6583
6584 lt_save_CC="$CC"
6585 ac_ext=c
6586 ac_cpp='$CPP $CPPFLAGS'
6587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
6589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6590
6591
6592 # Source file extension for C test sources.
6593 ac_ext=c
6594
6595 # Object file extension for compiled C test sources.
6596 objext=o
6597 objext=$objext
6598
6599 # Code to be used in simple compile tests
6600 lt_simple_compile_test_code="int some_variable = 0;"
6601
6602 # Code to be used in simple link tests
6603 lt_simple_link_test_code='int main(){return(0);}'
6604
6605
6606
6607
6608
6609
6610
6611 # If no C compiler was specified, use CC.
6612 LTCC=${LTCC-"$CC"}
6613
6614 # If no C compiler flags were specified, use CFLAGS.
6615 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6616
6617 # Allow CC to be a program name with arguments.
6618 compiler=$CC
6619
6620 # Save the default compiler, since it gets overwritten when the other
6621 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6622 compiler_DEFAULT=$CC
6623
6624 # save warnings/boilerplate of simple test code
6625 ac_outfile=conftest.$ac_objext
6626 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6628 _lt_compiler_boilerplate=`cat conftest.err`
6629 $RM conftest*
6630
6631 ac_outfile=conftest.$ac_objext
6632 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6634 _lt_linker_boilerplate=`cat conftest.err`
6635 $RM -r conftest*
6636
6637
6638 if test -n "$compiler"; then
6639
6640 lt_prog_compiler_no_builtin_flag=
6641
6642 if test "$GCC" = yes; then
6643 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6644
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-r tti -fno-exceptions" >&5
6646 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6647 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 lt_cv_prog_compiler_rtti_exceptions=no
6651 ac_outfile=conftest.$ac_objext
6652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6653 lt_compiler_flag="-fno-rtti -fno-exceptions"
6654 # Insert the option either (1) after the last *FLAGS variable, or
6655 # (2) before a word containing "conftest.", or (3) at the end.
6656 # Note that $ac_compile itself does not contain backslashes and begins
6657 # with a dollar sign (not a hyphen), so the echo should work correctly.
6658 # The option is referenced via a variable to avoid confusing sed.
6659 lt_compile=`echo "$ac_compile" | $SED \
6660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6662 -e 's:$: $lt_compiler_flag:'`
6663 (eval echo "\"\$as_me:6663: $lt_compile\"" >&5)
6664 (eval "$lt_compile" 2>conftest.err)
6665 ac_status=$?
6666 cat conftest.err >&5
6667 echo "$as_me:6667: \$? = $ac_status" >&5
6668 if (exit $ac_status) && test -s "$ac_outfile"; then
6669 # The compiler can only warn and ignore the option if not recognized
6670 # So say no if there are warnings other than the usual output.
6671 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
6674 lt_cv_prog_compiler_rtti_exceptions=yes
6675 fi
6676 fi
6677 $RM conftest*
6678
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_excep tions" >&5
6681 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6682
6683 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6684 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtt i -fno-exceptions"
6685 else
6686 :
6687 fi
6688
6689 fi
6690
6691
6692
6693
6694
6695
6696 lt_prog_compiler_wl=
6697 lt_prog_compiler_pic=
6698 lt_prog_compiler_static=
6699
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produc e PIC" >&5
6701 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6702
6703 if test "$GCC" = yes; then
6704 lt_prog_compiler_wl='-Wl,'
6705 lt_prog_compiler_static='-static'
6706
6707 case $host_os in
6708 aix*)
6709 # All AIX code is PIC.
6710 if test "$host_cpu" = ia64; then
6711 # AIX 5 now supports IA64 processor
6712 lt_prog_compiler_static='-Bstatic'
6713 fi
6714 ;;
6715
6716 amigaos*)
6717 case $host_cpu in
6718 powerpc)
6719 # see comment about AmigaOS4 .so support
6720 lt_prog_compiler_pic='-fPIC'
6721 ;;
6722 m68k)
6723 # FIXME: we need at least 68020 code to build shared libraries, but
6724 # adding the `-m68020' flag to GCC prevents building anything better ,
6725 # like `-m68040'.
6726 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6727 ;;
6728 esac
6729 ;;
6730
6731 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6732 # PIC is the default for these OSes.
6733 ;;
6734
6735 mingw* | cygwin* | pw32* | os2* | cegcc*)
6736 # This hack is so that the source file can tell whether it is being
6737 # built for inclusion in a dll (and should export symbols for example).
6738 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6739 # (--disable-auto-import) libraries
6740 lt_prog_compiler_pic='-DDLL_EXPORT'
6741 ;;
6742
6743 darwin* | rhapsody*)
6744 # PIC is the default on this platform
6745 # Common symbols not allowed in MH_DYLIB files
6746 lt_prog_compiler_pic='-fno-common'
6747 ;;
6748
6749 hpux*)
6750 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6751 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6752 # sets the default TLS model and affects inlining.
6753 case $host_cpu in
6754 hppa*64*)
6755 # +Z the default
6756 ;;
6757 *)
6758 lt_prog_compiler_pic='-fPIC'
6759 ;;
6760 esac
6761 ;;
6762
6763 interix[3-9]*)
6764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6765 # Instead, we relocate shared libraries at runtime.
6766 ;;
6767
6768 msdosdjgpp*)
6769 # Just because we use GCC doesn't mean we suddenly get shared libraries
6770 # on systems that don't support them.
6771 lt_prog_compiler_can_build_shared=no
6772 enable_shared=no
6773 ;;
6774
6775 *nto* | *qnx*)
6776 # QNX uses GNU C++, but need to define -shared option too, otherwise
6777 # it will coredump.
6778 lt_prog_compiler_pic='-fPIC -shared'
6779 ;;
6780
6781 sysv4*MP*)
6782 if test -d /usr/nec; then
6783 lt_prog_compiler_pic=-Kconform_pic
6784 fi
6785 ;;
6786
6787 *)
6788 lt_prog_compiler_pic='-fPIC'
6789 ;;
6790 esac
6791 else
6792 # PORTME Check for flag to pass linker flags through the system compiler.
6793 case $host_os in
6794 aix*)
6795 lt_prog_compiler_wl='-Wl,'
6796 if test "$host_cpu" = ia64; then
6797 # AIX 5 now supports IA64 processor
6798 lt_prog_compiler_static='-Bstatic'
6799 else
6800 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6801 fi
6802 ;;
6803
6804 mingw* | cygwin* | pw32* | os2* | cegcc*)
6805 # This hack is so that the source file can tell whether it is being
6806 # built for inclusion in a dll (and should export symbols for example).
6807 lt_prog_compiler_pic='-DDLL_EXPORT'
6808 ;;
6809
6810 hpux9* | hpux10* | hpux11*)
6811 lt_prog_compiler_wl='-Wl,'
6812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6813 # not for PA HP-UX.
6814 case $host_cpu in
6815 hppa*64*|ia64*)
6816 # +Z the default
6817 ;;
6818 *)
6819 lt_prog_compiler_pic='+Z'
6820 ;;
6821 esac
6822 # Is there a better lt_prog_compiler_static that works with the bundled CC ?
6823 lt_prog_compiler_static='${wl}-a ${wl}archive'
6824 ;;
6825
6826 irix5* | irix6* | nonstopux*)
6827 lt_prog_compiler_wl='-Wl,'
6828 # PIC (with -KPIC) is the default.
6829 lt_prog_compiler_static='-non_shared'
6830 ;;
6831
6832 linux* | k*bsd*-gnu)
6833 case $cc_basename in
6834 # old Intel for x86_64 which still supported -KPIC.
6835 ecc*)
6836 lt_prog_compiler_wl='-Wl,'
6837 lt_prog_compiler_pic='-KPIC'
6838 lt_prog_compiler_static='-static'
6839 ;;
6840 # icc used to be incompatible with GCC.
6841 # ICC 10 doesn't accept -KPIC any more.
6842 icc* | ifort*)
6843 lt_prog_compiler_wl='-Wl,'
6844 lt_prog_compiler_pic='-fPIC'
6845 lt_prog_compiler_static='-static'
6846 ;;
6847 # Lahey Fortran 8.1.
6848 lf95*)
6849 lt_prog_compiler_wl='-Wl,'
6850 lt_prog_compiler_pic='--shared'
6851 lt_prog_compiler_static='--static'
6852 ;;
6853 pgcc* | pgf77* | pgf90* | pgf95*)
6854 # Portland Group compilers (*not* the Pentium gcc compiler,
6855 # which looks to be a dead project)
6856 lt_prog_compiler_wl='-Wl,'
6857 lt_prog_compiler_pic='-fpic'
6858 lt_prog_compiler_static='-Bstatic'
6859 ;;
6860 ccc*)
6861 lt_prog_compiler_wl='-Wl,'
6862 # All Alpha code is PIC.
6863 lt_prog_compiler_static='-non_shared'
6864 ;;
6865 xl*)
6866 # IBM XL C 8.0/Fortran 10.1 on PPC
6867 lt_prog_compiler_wl='-Wl,'
6868 lt_prog_compiler_pic='-qpic'
6869 lt_prog_compiler_static='-qstaticlink'
6870 ;;
6871 *)
6872 case `$CC -V 2>&1 | sed 5q` in
6873 *Sun\ C*)
6874 # Sun C 5.9
6875 lt_prog_compiler_pic='-KPIC'
6876 lt_prog_compiler_static='-Bstatic'
6877 lt_prog_compiler_wl='-Wl,'
6878 ;;
6879 *Sun\ F*)
6880 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6881 lt_prog_compiler_pic='-KPIC'
6882 lt_prog_compiler_static='-Bstatic'
6883 lt_prog_compiler_wl=''
6884 ;;
6885 esac
6886 ;;
6887 esac
6888 ;;
6889
6890 newsos6)
6891 lt_prog_compiler_pic='-KPIC'
6892 lt_prog_compiler_static='-Bstatic'
6893 ;;
6894
6895 *nto* | *qnx*)
6896 # QNX uses GNU C++, but need to define -shared option too, otherwise
6897 # it will coredump.
6898 lt_prog_compiler_pic='-fPIC -shared'
6899 ;;
6900
6901 osf3* | osf4* | osf5*)
6902 lt_prog_compiler_wl='-Wl,'
6903 # All OSF/1 code is PIC.
6904 lt_prog_compiler_static='-non_shared'
6905 ;;
6906
6907 rdos*)
6908 lt_prog_compiler_static='-non_shared'
6909 ;;
6910
6911 solaris*)
6912 lt_prog_compiler_pic='-KPIC'
6913 lt_prog_compiler_static='-Bstatic'
6914 case $cc_basename in
6915 f77* | f90* | f95*)
6916 lt_prog_compiler_wl='-Qoption ld ';;
6917 *)
6918 lt_prog_compiler_wl='-Wl,';;
6919 esac
6920 ;;
6921
6922 sunos4*)
6923 lt_prog_compiler_wl='-Qoption ld '
6924 lt_prog_compiler_pic='-PIC'
6925 lt_prog_compiler_static='-Bstatic'
6926 ;;
6927
6928 sysv4 | sysv4.2uw2* | sysv4.3*)
6929 lt_prog_compiler_wl='-Wl,'
6930 lt_prog_compiler_pic='-KPIC'
6931 lt_prog_compiler_static='-Bstatic'
6932 ;;
6933
6934 sysv4*MP*)
6935 if test -d /usr/nec ;then
6936 lt_prog_compiler_pic='-Kconform_pic'
6937 lt_prog_compiler_static='-Bstatic'
6938 fi
6939 ;;
6940
6941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6942 lt_prog_compiler_wl='-Wl,'
6943 lt_prog_compiler_pic='-KPIC'
6944 lt_prog_compiler_static='-Bstatic'
6945 ;;
6946
6947 unicos*)
6948 lt_prog_compiler_wl='-Wl,'
6949 lt_prog_compiler_can_build_shared=no
6950 ;;
6951
6952 uts4*)
6953 lt_prog_compiler_pic='-pic'
6954 lt_prog_compiler_static='-Bstatic'
6955 ;;
6956
6957 *)
6958 lt_prog_compiler_can_build_shared=no
6959 ;;
6960 esac
6961 fi
6962
6963 case $host_os in
6964 # For platforms which do not support PIC, -DPIC is meaningless:
6965 *djgpp*)
6966 lt_prog_compiler_pic=
6967 ;;
6968 *)
6969 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6970 ;;
6971 esac
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6973 $as_echo "$lt_prog_compiler_pic" >&6; }
6974
6975
6976
6977
6978
6979
6980 #
6981 # Check to make sure the PIC flag actually works.
6982 #
6983 if test -n "$lt_prog_compiler_pic"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_pr og_compiler_pic works" >&5
6985 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6986 if ${lt_cv_prog_compiler_pic_works+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 lt_cv_prog_compiler_pic_works=no
6990 ac_outfile=conftest.$ac_objext
6991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6992 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6993 # Insert the option either (1) after the last *FLAGS variable, or
6994 # (2) before a word containing "conftest.", or (3) at the end.
6995 # Note that $ac_compile itself does not contain backslashes and begins
6996 # with a dollar sign (not a hyphen), so the echo should work correctly.
6997 # The option is referenced via a variable to avoid confusing sed.
6998 lt_compile=`echo "$ac_compile" | $SED \
6999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7001 -e 's:$: $lt_compiler_flag:'`
7002 (eval echo "\"\$as_me:7002: $lt_compile\"" >&5)
7003 (eval "$lt_compile" 2>conftest.err)
7004 ac_status=$?
7005 cat conftest.err >&5
7006 echo "$as_me:7006: \$? = $ac_status" >&5
7007 if (exit $ac_status) && test -s "$ac_outfile"; then
7008 # The compiler can only warn and ignore the option if not recognized
7009 # So say no if there are warnings other than the usual output.
7010 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
7013 lt_cv_prog_compiler_pic_works=yes
7014 fi
7015 fi
7016 $RM conftest*
7017
7018 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7020 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7021
7022 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7023 case $lt_prog_compiler_pic in
7024 "" | " "*) ;;
7025 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7026 esac
7027 else
7028 lt_prog_compiler_pic=
7029 lt_prog_compiler_can_build_shared=no
7030 fi
7031
7032 fi
7033
7034
7035
7036
7037
7038
7039 #
7040 # Check to make sure the static flag actually works.
7041 #
7042 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_t mp_static_flag works" >&5
7044 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6 ; }
7045 if ${lt_cv_prog_compiler_static_works+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 lt_cv_prog_compiler_static_works=no
7049 save_LDFLAGS="$LDFLAGS"
7050 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7051 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7053 # The linker can only warn and ignore the option if not recognized
7054 # So say no if there are warnings
7055 if test -s conftest.err; then
7056 # Append any errors to the config.log.
7057 cat conftest.err 1>&5
7058 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7060 if diff conftest.exp conftest.er2 >/dev/null; then
7061 lt_cv_prog_compiler_static_works=yes
7062 fi
7063 else
7064 lt_cv_prog_compiler_static_works=yes
7065 fi
7066 fi
7067 $RM -r conftest*
7068 LDFLAGS="$save_LDFLAGS"
7069
7070 fi
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_wor ks" >&5
7072 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7073
7074 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7075 :
7076 else
7077 lt_prog_compiler_static=
7078 fi
7079
7080
7081
7082
7083
7084
7085
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7087 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7088 if ${lt_cv_prog_compiler_c_o+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 lt_cv_prog_compiler_c_o=no
7092 $RM -r conftest 2>/dev/null
7093 mkdir conftest
7094 cd conftest
7095 mkdir out
7096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7097
7098 lt_compiler_flag="-o out/conftest2.$ac_objext"
7099 # Insert the option either (1) after the last *FLAGS variable, or
7100 # (2) before a word containing "conftest.", or (3) at the end.
7101 # Note that $ac_compile itself does not contain backslashes and begins
7102 # with a dollar sign (not a hyphen), so the echo should work correctly.
7103 lt_compile=`echo "$ac_compile" | $SED \
7104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7106 -e 's:$: $lt_compiler_flag:'`
7107 (eval echo "\"\$as_me:7107: $lt_compile\"" >&5)
7108 (eval "$lt_compile" 2>out/conftest.err)
7109 ac_status=$?
7110 cat out/conftest.err >&5
7111 echo "$as_me:7111: \$? = $ac_status" >&5
7112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7113 then
7114 # The compiler can only warn and ignore the option if not recognized
7115 # So say no if there are warnings
7116 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
7119 lt_cv_prog_compiler_c_o=yes
7120 fi
7121 fi
7122 chmod u+w . 2>&5
7123 $RM conftest*
7124 # SGI C++ compiler will create directory out/ii_files/ for
7125 # template instantiation
7126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7127 $RM out/* && rmdir out
7128 cd ..
7129 $RM -r conftest
7130 $RM conftest*
7131
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7134 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7135
7136
7137
7138
7139
7140
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7143 if ${lt_cv_prog_compiler_c_o+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 lt_cv_prog_compiler_c_o=no
7147 $RM -r conftest 2>/dev/null
7148 mkdir conftest
7149 cd conftest
7150 mkdir out
7151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7152
7153 lt_compiler_flag="-o out/conftest2.$ac_objext"
7154 # Insert the option either (1) after the last *FLAGS variable, or
7155 # (2) before a word containing "conftest.", or (3) at the end.
7156 # Note that $ac_compile itself does not contain backslashes and begins
7157 # with a dollar sign (not a hyphen), so the echo should work correctly.
7158 lt_compile=`echo "$ac_compile" | $SED \
7159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7161 -e 's:$: $lt_compiler_flag:'`
7162 (eval echo "\"\$as_me:7162: $lt_compile\"" >&5)
7163 (eval "$lt_compile" 2>out/conftest.err)
7164 ac_status=$?
7165 cat out/conftest.err >&5
7166 echo "$as_me:7166: \$? = $ac_status" >&5
7167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7168 then
7169 # The compiler can only warn and ignore the option if not recognized
7170 # So say no if there are warnings
7171 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
7174 lt_cv_prog_compiler_c_o=yes
7175 fi
7176 fi
7177 chmod u+w . 2>&5
7178 $RM conftest*
7179 # SGI C++ compiler will create directory out/ii_files/ for
7180 # template instantiation
7181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7182 $RM out/* && rmdir out
7183 cd ..
7184 $RM -r conftest
7185 $RM conftest*
7186
7187 fi
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7190
7191
7192
7193
7194 hard_links="nottested"
7195 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7196 # do not overwrite the value of need_locks provided by the user
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard lin ks" >&5
7198 $as_echo_n "checking if we can lock with hard links... " >&6; }
7199 hard_links=yes
7200 $RM conftest*
7201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7202 touch conftest.a
7203 ln conftest.a conftest.b 2>&5 || hard_links=no
7204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7206 $as_echo "$hard_links" >&6; }
7207 if test "$hard_links" = no; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \` -c -o', so \`make -j' may be unsafe" >&5
7209 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may b e unsafe" >&2;}
7210 need_locks=warn
7211 fi
7212 else
7213 need_locks=no
7214 fi
7215
7216
7217
7218
7219
7220
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7222 $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie s... " >&6; }
7223
7224 runpath_var=
7225 allow_undefined_flag=
7226 always_export_symbols=no
7227 archive_cmds=
7228 archive_expsym_cmds=
7229 compiler_needs_object=no
7230 enable_shared_with_static_runtimes=no
7231 export_dynamic_flag_spec=
7232 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\ ''s/.* //'\'' | sort | uniq > $export_symbols'
7233 hardcode_automatic=no
7234 hardcode_direct=no
7235 hardcode_direct_absolute=no
7236 hardcode_libdir_flag_spec=
7237 hardcode_libdir_flag_spec_ld=
7238 hardcode_libdir_separator=
7239 hardcode_minus_L=no
7240 hardcode_shlibpath_var=unsupported
7241 inherit_rpath=no
7242 link_all_deplibs=unknown
7243 module_cmds=
7244 module_expsym_cmds=
7245 old_archive_from_new_cmds=
7246 old_archive_from_expsyms_cmds=
7247 thread_safe_flag_spec=
7248 whole_archive_flag_spec=
7249 # include_expsyms should be a list of space-separated symbols to be *always*
7250 # included in the symbol list
7251 include_expsyms=
7252 # exclude_expsyms can be an extended regexp of symbols to exclude
7253 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7254 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7255 # as well as any symbol that contains `d'.
7256 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7258 # platforms (ab)use it in PIC code, but their linkers get confused if
7259 # the symbol is explicitly referenced. Since portable code cannot
7260 # rely on this symbol name, it's probably fine to never include it in
7261 # preloaded symbol tables.
7262 # Exclude shared library initialization/finalization symbols.
7263 extract_expsyms_cmds=
7264
7265 case $host_os in
7266 cygwin* | mingw* | pw32* | cegcc*)
7267 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7268 # When not using gcc, we currently assume that we are using
7269 # Microsoft Visual C++.
7270 if test "$GCC" != yes; then
7271 with_gnu_ld=no
7272 fi
7273 ;;
7274 interix*)
7275 # we just hope/assume this is gcc and not c89 (= MSVC++)
7276 with_gnu_ld=yes
7277 ;;
7278 openbsd*)
7279 with_gnu_ld=no
7280 ;;
7281 esac
7282
7283 ld_shlibs=yes
7284 if test "$with_gnu_ld" = yes; then
7285 # If archive_cmds runs LD, not CC, wlarc should be empty
7286 wlarc='${wl}'
7287
7288 # Set some defaults for GNU ld with shared library support. These
7289 # are reset later if shared libraries are not supported. Putting them
7290 # here allows them to be overridden if necessary.
7291 runpath_var=LD_RUN_PATH
7292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7293 export_dynamic_flag_spec='${wl}--export-dynamic'
7294 # ancient GNU ld didn't support --whole-archive et. al.
7295 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7296 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--n o-whole-archive'
7297 else
7298 whole_archive_flag_spec=
7299 fi
7300 supports_anon_versioning=no
7301 case `$LD -v 2>&1` in
7302 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7303 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7304 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7305 *\ 2.11.*) ;; # other 2.11 versions
7306 *) supports_anon_versioning=yes ;;
7307 esac
7308
7309 # See if GNU ld supports shared libraries.
7310 case $host_os in
7311 aix[3-9]*)
7312 # On AIX/PPC, the GNU linker is very broken
7313 if test "$host_cpu" != ia64; then
7314 ld_shlibs=no
7315 cat <<_LT_EOF 1>&2
7316
7317 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7318 *** to be unable to reliably create shared libraries on AIX.
7319 *** Therefore, libtool is disabling shared libraries support. If you
7320 *** really care for shared libraries, you may want to modify your PATH
7321 *** so that a non-GNU linker is found, and then restart.
7322
7323 _LT_EOF
7324 fi
7325 ;;
7326
7327 amigaos*)
7328 case $host_cpu in
7329 powerpc)
7330 # see comment about AmigaOS4 .so support
7331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
7332 archive_expsym_cmds=''
7333 ;;
7334 m68k)
7335 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a 2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary .data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7336 hardcode_libdir_flag_spec='-L$libdir'
7337 hardcode_minus_L=yes
7338 ;;
7339 esac
7340 ;;
7341
7342 beos*)
7343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7344 allow_undefined_flag=unsupported
7345 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7346 # support --undefined. This deserves some investigation. FIXME
7347 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-sonam e $wl$soname -o $lib'
7348 else
7349 ld_shlibs=no
7350 fi
7351 ;;
7352
7353 cygwin* | mingw* | pw32* | cegcc*)
7354 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7355 # as there is no search path for DLLs.
7356 hardcode_libdir_flag_spec='-L$libdir'
7357 allow_undefined_flag=unsupported
7358 always_export_symbols=no
7359 enable_shared_with_static_runtimes=yes
7360 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SE D -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s /.*[ ]//'\'' | sort | uniq > $export_symbols'
7361
7362 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_o bjdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7364 # If the export-symbols file already is a .def file (1st line
7365 # is EXPORTS), use it as is; otherwise, prepend...
7366 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; th en
7367 cp $export_symbols $output_objdir/$soname.def;
7368 else
7369 echo EXPORTS > $output_objdir/$soname.def;
7370 cat $export_symbols >> $output_objdir/$soname.def;
7371 fi~
7372 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib - Xlinker $lib'
7373 else
7374 ld_shlibs=no
7375 fi
7376 ;;
7377
7378 interix[3-9]*)
7379 hardcode_direct=no
7380 hardcode_shlibpath_var=no
7381 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7382 export_dynamic_flag_spec='${wl}-E'
7383 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7384 # Instead, shared libraries are loaded at an image base (0x10000000 by
7385 # default) and relocated if they conflict, which is a slow very memory
7386 # consuming and fragmenting process. To avoid this, we pick a random,
7387 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7388 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7389 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl }-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 13421772 80` -o $lib'
7390 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname. expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname $ {wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7391 ;;
7392
7393 gnu* | linux* | tpf* | k*bsd*-gnu)
7394 tmp_diet=no
7395 if test "$host_os" = linux-dietlibc; then
7396 case $cc_basename in
7397 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d iet-dyn)
7398 esac
7399 fi
7400 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7401 && test "$tmp_diet" = no
7402 then
7403 tmp_addflag=
7404 tmp_sharedflag='-shared'
7405 case $cc_basename,$host_cpu in
7406 pgcc*) # Portland Group C compiler
7407 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience \"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7408 tmp_addflag=' $pic_flag'
7409 ;;
7410 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7411 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience \"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7412 tmp_addflag=' $pic_flag -Mnomain' ;;
7413 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7414 tmp_addflag=' -i_dynamic' ;;
7415 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7416 tmp_addflag=' -i_dynamic -nofor_main' ;;
7417 ifc* | ifort*) # Intel Fortran compiler
7418 tmp_addflag=' -nofor_main' ;;
7419 lf95*) # Lahey Fortran 8.1
7420 whole_archive_flag_spec=
7421 tmp_sharedflag='--shared' ;;
7422 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf bel ow)
7423 tmp_sharedflag='-qmkshrobj'
7424 tmp_addflag= ;;
7425 esac
7426 case `$CC -V 2>&1 | sed 5q` in
7427 *Sun\ C*) # Sun C 5.9
7428 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for co nv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenien ce,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7429 compiler_needs_object=yes
7430 tmp_sharedflag='-G' ;;
7431 *Sun\ F*) # Sun Fortran 8.3
7432 tmp_sharedflag='-G' ;;
7433 esac
7434 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $c ompiler_flags ${wl}-soname $wl$soname -o $lib'
7435
7436 if test "x$supports_anon_versioning" = xyes; then
7437 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn ame.ver~
7439 echo "local: *; };" >> $output_objdir/$libname.ver~
7440 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_fl ags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ve r -o $lib'
7441 fi
7442
7443 case $cc_basename in
7444 xlf*)
7445 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7446 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archiv e'
7447 hardcode_libdir_flag_spec=
7448 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7449 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $s oname -o $lib'
7450 if test "x$supports_anon_versioning" = xyes; then
7451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li bname.ver~
7453 echo "local: *; };" >> $output_objdir/$libname.ver~
7454 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -ver sion-script $output_objdir/$libname.ver -o $lib'
7455 fi
7456 ;;
7457 esac
7458 else
7459 ld_shlibs=no
7460 fi
7461 ;;
7462
7463 netbsd*)
7464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7465 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7466 wlarc=
7467 else
7468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7470 fi
7471 ;;
7472
7473 solaris*)
7474 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7475 ld_shlibs=no
7476 cat <<_LT_EOF 1>&2
7477
7478 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7479 *** create shared libraries on Solaris systems. Therefore, libtool
7480 *** is disabling shared libraries support. We urge you to upgrade GNU
7481 *** binutils to release 2.9.1 or newer. Another option is to modify
7482 *** your PATH or compiler configuration so that the native linker is
7483 *** used, and then restart.
7484
7485 _LT_EOF
7486 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the n
7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7489 else
7490 ld_shlibs=no
7491 fi
7492 ;;
7493
7494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7495 case `$LD -v 2>&1` in
7496 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7497 ld_shlibs=no
7498 cat <<_LT_EOF 1>&2
7499
7500 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7501 *** reliably create shared libraries on SCO systems. Therefore, libtool
7502 *** is disabling shared libraries support. We urge you to upgrade GNU
7503 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7504 *** your PATH or compiler configuration so that the native linker is
7505 *** used, and then restart.
7506
7507 _LT_EOF
7508 ;;
7509 *)
7510 # For security reasons, it is highly recommended that you always
7511 # use absolute paths for naming shared libraries, and exclude the
7512 # DT_RUNPATH tag from executables and libraries. But doing so
7513 # requires that you compile everything twice, which is a pain.
7514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; t hen
7515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
7517 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7518 else
7519 ld_shlibs=no
7520 fi
7521 ;;
7522 esac
7523 ;;
7524
7525 sunos4*)
7526 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7527 wlarc=
7528 hardcode_direct=yes
7529 hardcode_shlibpath_var=no
7530 ;;
7531
7532 *)
7533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7536 else
7537 ld_shlibs=no
7538 fi
7539 ;;
7540 esac
7541
7542 if test "$ld_shlibs" = no; then
7543 runpath_var=
7544 hardcode_libdir_flag_spec=
7545 export_dynamic_flag_spec=
7546 whole_archive_flag_spec=
7547 fi
7548 else
7549 # PORTME fill in a description of your system's linker (not GNU ld)
7550 case $host_os in
7551 aix3*)
7552 allow_undefined_flag=unsupported
7553 always_export_symbols=yes
7554 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $link er_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objd ir/$soname'
7555 # Note: this linker hardcodes the directories in LIBPATH if there
7556 # are no directories specified by -L.
7557 hardcode_minus_L=yes
7558 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7559 # Neither direct hardcoding nor static linking is supported with a
7560 # broken collect2.
7561 hardcode_direct=unsupported
7562 fi
7563 ;;
7564
7565 aix[4-9]*)
7566 if test "$host_cpu" = ia64; then
7567 # On IA64, the linker does run time linking by default, so we don't
7568 # have to do anything special.
7569 aix_use_runtimelinking=no
7570 exp_sym_flag='-Bexport'
7571 no_entry_flag=""
7572 else
7573 # If we're using GNU nm, then we don't want the "-C" option.
7574 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7575 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7576 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if ((( \$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7577 else
7578 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (( (\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7579 fi
7580 aix_use_runtimelinking=no
7581
7582 # Test if we are trying to use run time linking or normal
7583 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7584 # need to do runtime linking.
7585 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7586 for ld_flag in $LDFLAGS; do
7587 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7588 aix_use_runtimelinking=yes
7589 break
7590 fi
7591 done
7592 ;;
7593 esac
7594
7595 exp_sym_flag='-bexport'
7596 no_entry_flag='-bnoentry'
7597 fi
7598
7599 # When large executables or shared objects are built, AIX ld can
7600 # have problems creating the table of contents. If linking a library
7601 # or program results in "error TOC overflow" add -mminimal-toc to
7602 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7603 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7604
7605 archive_cmds=''
7606 hardcode_direct=yes
7607 hardcode_direct_absolute=yes
7608 hardcode_libdir_separator=':'
7609 link_all_deplibs=yes
7610 file_list_spec='${wl}-f,'
7611
7612 if test "$GCC" = yes; then
7613 case $host_os in aix4.[012]|aix4.[012].*)
7614 # We only want to do this on AIX 4.2 and lower, the check
7615 # below for broken collect2 doesn't work under 4.3+
7616 collect2name=`${CC} -print-prog-name=collect2`
7617 if test -f "$collect2name" &&
7618 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7619 then
7620 # We have reworked collect2
7621 :
7622 else
7623 # We have old collect2
7624 hardcode_direct=unsupported
7625 # It fails to find uninstalled libraries when the uninstalled
7626 # path is not listed in the libpath. Setting hardcode_minus_L
7627 # to unsupported forces relinking
7628 hardcode_minus_L=yes
7629 hardcode_libdir_flag_spec='-L$libdir'
7630 hardcode_libdir_separator=
7631 fi
7632 ;;
7633 esac
7634 shared_flag='-shared'
7635 if test "$aix_use_runtimelinking" = yes; then
7636 shared_flag="$shared_flag "'${wl}-G'
7637 fi
7638 else
7639 # not using gcc
7640 if test "$host_cpu" = ia64; then
7641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7642 # chokes on -Wl,-G. The following line is correct:
7643 shared_flag='-G'
7644 else
7645 if test "$aix_use_runtimelinking" = yes; then
7646 shared_flag='${wl}-G'
7647 else
7648 shared_flag='${wl}-bM:SRE'
7649 fi
7650 fi
7651 fi
7652
7653 export_dynamic_flag_spec='${wl}-bexpall'
7654 # It seems that -bexpall does not export symbols beginning with
7655 # underscore (_), so it is better to generate a list of symbols to export.
7656 always_export_symbols=yes
7657 if test "$aix_use_runtimelinking" = yes; then
7658 # Warning - without using the other runtime loading flags (-brtl),
7659 # -berok will link without error, but may produce a broken library.
7660 allow_undefined_flag='-berok'
7661 # Determine the default libpath from the value encoded in an
7662 # empty executable.
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665
7666 int
7667 main ()
7668 {
7669
7670 ;
7671 return 0;
7672 }
7673 _ACEOF
7674 if ac_fn_c_try_link "$LINENO"; then :
7675
7676 lt_aix_libpath_sed='
7677 /Import File Strings/,/^$/ {
7678 /^0/ {
7679 s/^0 *\(.*\)$/\1/
7680 p
7681 }
7682 }'
7683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
7684 # Check for a 64-bit object if we didn't find anything.
7685 if test -z "$aix_libpath"; then
7686 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
7687 fi
7688 fi
7689 rm -f core conftest.err conftest.$ac_objext \
7690 conftest$ac_exeext conftest.$ac_ext
7691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7692
7693 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7694 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\ ${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x" ; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_s ym_flag:\$export_symbols $shared_flag"
7695 else
7696 if test "$host_cpu" = ia64; then
7697 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7698 allow_undefined_flag="-z nodefs"
7699 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li bobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_f lag} '"\${wl}$exp_sym_flag:\$export_symbols"
7700 else
7701 # Determine the default libpath from the value encoded in an
7702 # empty executable.
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7705
7706 int
7707 main ()
7708 {
7709
7710 ;
7711 return 0;
7712 }
7713 _ACEOF
7714 if ac_fn_c_try_link "$LINENO"; then :
7715
7716 lt_aix_libpath_sed='
7717 /Import File Strings/,/^$/ {
7718 /^0/ {
7719 s/^0 *\(.*\)$/\1/
7720 p
7721 }
7722 }'
7723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
7724 # Check for a 64-bit object if we didn't find anything.
7725 if test -z "$aix_libpath"; then
7726 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
7727 fi
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7732
7733 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7734 # Warning - without using the other run time loading flags,
7735 # -berok will link without error, but may produce a broken library.
7736 no_undefined_flag=' ${wl}-bernotok'
7737 allow_undefined_flag=' ${wl}-berok'
7738 # Exported symbols can be pulled into shared objects from archives
7739 whole_archive_flag_spec='$convenience'
7740 archive_cmds_need_lc=yes
7741 # This is similar to how AIX traditionally builds its shared libraries .
7742 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li bobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_un defined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$so name'
7743 fi
7744 fi
7745 ;;
7746
7747 amigaos*)
7748 case $host_cpu in
7749 powerpc)
7750 # see comment about AmigaOS4 .so support
7751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
7752 archive_expsym_cmds=''
7753 ;;
7754 m68k)
7755 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a 2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary .data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7756 hardcode_libdir_flag_spec='-L$libdir'
7757 hardcode_minus_L=yes
7758 ;;
7759 esac
7760 ;;
7761
7762 bsdi[45]*)
7763 export_dynamic_flag_spec=-rdynamic
7764 ;;
7765
7766 cygwin* | mingw* | pw32* | cegcc*)
7767 # When not using gcc, we currently assume that we are using
7768 # Microsoft Visual C++.
7769 # hardcode_libdir_flag_spec is actually meaningless, as there is
7770 # no search path for DLLs.
7771 hardcode_libdir_flag_spec=' '
7772 allow_undefined_flag=unsupported
7773 # Tell ltmain to make .lib files, not .a files.
7774 libext=lib
7775 # Tell ltmain to make .dll files, not .so files.
7776 shrext_cmds=".dll"
7777 # FIXME: Setting linknames here is a bad hack.
7778 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $X sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7779 # The linker will automatically build a .lib file if we build a DLL.
7780 old_archive_from_new_cmds='true'
7781 # FIXME: Should let the user specify the lib program.
7782 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7783 fix_srcfile_path='`cygpath -w "$srcfile"`'
7784 enable_shared_with_static_runtimes=yes
7785 ;;
7786
7787 darwin* | rhapsody*)
7788
7789
7790 archive_cmds_need_lc=no
7791 hardcode_direct=no
7792 hardcode_automatic=yes
7793 hardcode_shlibpath_var=unsupported
7794 whole_archive_flag_spec=''
7795 link_all_deplibs=yes
7796 allow_undefined_flag="$_lt_dar_allow_undefined"
7797 case $cc_basename in
7798 ifort*) _lt_dar_can_shared=yes ;;
7799 *) _lt_dar_can_shared=$GCC ;;
7800 esac
7801 if test "$_lt_dar_can_shared" = "yes"; then
7802 output_verbose_link_cmd=echo
7803 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$d eplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_sing le_mod${_lt_dsymutil}"
7804 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplib s \$compiler_flags${_lt_dsymutil}"
7805 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${li bname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar _single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7806 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${ libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \ $deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7807
7808 else
7809 ld_shlibs=no
7810 fi
7811
7812 ;;
7813
7814 dgux*)
7815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816 hardcode_libdir_flag_spec='-L$libdir'
7817 hardcode_shlibpath_var=no
7818 ;;
7819
7820 freebsd1*)
7821 ld_shlibs=no
7822 ;;
7823
7824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7825 # support. Future versions do this automatically, but an explicit c++rt0.o
7826 # does not break anything, and helps significantly (at the cost of a little
7827 # extra space).
7828 freebsd2.2*)
7829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr /lib/c++rt0.o'
7830 hardcode_libdir_flag_spec='-R$libdir'
7831 hardcode_direct=yes
7832 hardcode_shlibpath_var=no
7833 ;;
7834
7835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7836 freebsd2*)
7837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7838 hardcode_direct=yes
7839 hardcode_minus_L=yes
7840 hardcode_shlibpath_var=no
7841 ;;
7842
7843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7844 freebsd* | dragonfly*)
7845 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7846 hardcode_libdir_flag_spec='-R$libdir'
7847 hardcode_direct=yes
7848 hardcode_shlibpath_var=no
7849 ;;
7850
7851 hpux9*)
7852 if test "$GCC" = yes; then
7853 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl} $install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7854 else
7855 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $o utput_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7856 fi
7857 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7858 hardcode_libdir_separator=:
7859 hardcode_direct=yes
7860
7861 # hardcode_minus_L: Not really in the search PATH,
7862 # but as the default location of the library.
7863 hardcode_minus_L=yes
7864 export_dynamic_flag_spec='${wl}-E'
7865 ;;
7866
7867 hpux10*)
7868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7869 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$insta ll_libdir -o $lib $libobjs $deplibs $compiler_flags'
7870 else
7871 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $dep libs $linker_flags'
7872 fi
7873 if test "$with_gnu_ld" = no; then
7874 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7875 hardcode_libdir_flag_spec_ld='+b $libdir'
7876 hardcode_libdir_separator=:
7877 hardcode_direct=yes
7878 hardcode_direct_absolute=yes
7879 export_dynamic_flag_spec='${wl}-E'
7880 # hardcode_minus_L: Not really in the search PATH,
7881 # but as the default location of the library.
7882 hardcode_minus_L=yes
7883 fi
7884 ;;
7885
7886 hpux11*)
7887 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7888 case $host_cpu in
7889 hppa*64*)
7890 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $depli bs $compiler_flags'
7891 ;;
7892 ia64*)
7893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrp ath -o $lib $libobjs $deplibs $compiler_flags'
7894 ;;
7895 *)
7896 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$ins tall_libdir -o $lib $libobjs $deplibs $compiler_flags'
7897 ;;
7898 esac
7899 else
7900 case $host_cpu in
7901 hppa*64*)
7902 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $c ompiler_flags'
7903 ;;
7904 ia64*)
7905 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7906 ;;
7907 *)
7908 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7909 ;;
7910 esac
7911 fi
7912 if test "$with_gnu_ld" = no; then
7913 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7914 hardcode_libdir_separator=:
7915
7916 case $host_cpu in
7917 hppa*64*|ia64*)
7918 hardcode_direct=no
7919 hardcode_shlibpath_var=no
7920 ;;
7921 *)
7922 hardcode_direct=yes
7923 hardcode_direct_absolute=yes
7924 export_dynamic_flag_spec='${wl}-E'
7925
7926 # hardcode_minus_L: Not really in the search PATH,
7927 # but as the default location of the library.
7928 hardcode_minus_L=yes
7929 ;;
7930 esac
7931 fi
7932 ;;
7933
7934 irix5* | irix6* | nonstopux*)
7935 if test "$GCC" = yes; then
7936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring " | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7937 # Try to use the -exported_symbol ld option, if it does not
7938 # work, assume that -exports_file does not work either and
7939 # implicitly export all symbols.
7940 save_LDFLAGS="$LDFLAGS"
7941 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_re gistry ${wl}/dev/null"
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7944 int foo(void) {}
7945 _ACEOF
7946 if ac_fn_c_try_link "$LINENO"; then :
7947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-sonam e ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstrin g" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-expor ts_file ${wl}$export_symbols -o $lib'
7948
7949 fi
7950 rm -f core conftest.err conftest.$ac_objext \
7951 conftest$ac_exeext conftest.$ac_ext
7952 LDFLAGS="$save_LDFLAGS"
7953 else
7954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $son ame `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_r egistry ${output_objdir}/so_locations -o $lib'
7955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -sona me $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -u pdate_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $l ib'
7956 fi
7957 archive_cmds_need_lc='no'
7958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7959 hardcode_libdir_separator=:
7960 inherit_rpath=yes
7961 link_all_deplibs=yes
7962 ;;
7963
7964 netbsd*)
7965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7967 else
7968 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7969 fi
7970 hardcode_libdir_flag_spec='-R$libdir'
7971 hardcode_direct=yes
7972 hardcode_shlibpath_var=no
7973 ;;
7974
7975 newsos6)
7976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7977 hardcode_direct=yes
7978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7979 hardcode_libdir_separator=:
7980 hardcode_shlibpath_var=no
7981 ;;
7982
7983 *nto* | *qnx*)
7984 ;;
7985
7986 openbsd*)
7987 if test -f /usr/libexec/ld.so; then
7988 hardcode_direct=yes
7989 hardcode_shlibpath_var=no
7990 hardcode_direct_absolute=yes
7991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os -$host_cpu" = "openbsd2.8-powerpc"; then
7992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compile r_flags'
7993 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $ compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7995 export_dynamic_flag_spec='${wl}-E'
7996 else
7997 case $host_os in
7998 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7999 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_fla gs'
8000 hardcode_libdir_flag_spec='-R$libdir'
8001 ;;
8002 *)
8003 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $comp iler_flags'
8004 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8005 ;;
8006 esac
8007 fi
8008 else
8009 ld_shlibs=no
8010 fi
8011 ;;
8012
8013 os2*)
8014 hardcode_libdir_flag_spec='-L$libdir'
8015 hardcode_minus_L=yes
8016 allow_undefined_flag=unsupported
8017 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libn ame.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DA TA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$l ibname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $outp ut_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_fl ags $output_objdir/$libname.def'
8018 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_obj dir/$libname.def'
8019 ;;
8020
8021 osf3*)
8022 if test "$GCC" = yes; then
8023 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8024 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_ version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so _locations -o $lib'
8025 else
8026 allow_undefined_flag=' -expect_unresolved \*'
8027 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstr ing" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8028 fi
8029 archive_cmds_need_lc='no'
8030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8031 hardcode_libdir_separator=:
8032 ;;
8033
8034 osf4* | osf5*) # as osf3* with the addition of -msym flag
8035 if test "$GCC" = yes; then
8036 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8037 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO " X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output _objdir}/so_locations -o $lib'
8038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8039 else
8040 allow_undefined_flag=' -expect_unresolved \*'
8041 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $ verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8042 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n " -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8043 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_f lags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_ver sion $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib ~$RM $lib.exp'
8044
8045 # Both c and cxx compiler support -rpath directly
8046 hardcode_libdir_flag_spec='-rpath $libdir'
8047 fi
8048 archive_cmds_need_lc='no'
8049 hardcode_libdir_separator=:
8050 ;;
8051
8052 solaris*)
8053 no_undefined_flag=' -z defs'
8054 if test "$GCC" = yes; then
8055 wlarc='${wl}'
8056 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8057 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $ SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8058 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$sona me -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8059 else
8060 case `$CC -V 2>&1` in
8061 *"Compilers 5.0"*)
8062 wlarc=''
8063 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobj s $deplibs $linker_flags'
8064 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8065 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8066 ;;
8067 *)
8068 wlarc='${wl}'
8069 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobj s $deplibs $compiler_flags'
8070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8071 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8072 ;;
8073 esac
8074 fi
8075 hardcode_libdir_flag_spec='-R$libdir'
8076 hardcode_shlibpath_var=no
8077 case $host_os in
8078 solaris2.[0-5] | solaris2.[0-5].*) ;;
8079 *)
8080 # The compiler driver will combine and reorder linker options,
8081 # but understands `-z linker_flag'. GCC discards it without `$wl',
8082 # but is careful enough not to reorder.
8083 # Supported since Solaris 2.6 (maybe 2.5.1?)
8084 if test "$GCC" = yes; then
8085 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z $ {wl}defaultextract'
8086 else
8087 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8088 fi
8089 ;;
8090 esac
8091 link_all_deplibs=yes
8092 ;;
8093
8094 sunos4*)
8095 if test "x$host_vendor" = xsequent; then
8096 # Use $CC to link under sequent, because it throws in some extra .o
8097 # files that make .init and .fini sections work.
8098 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler _flags'
8099 else
8100 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $ linker_flags'
8101 fi
8102 hardcode_libdir_flag_spec='-L$libdir'
8103 hardcode_direct=yes
8104 hardcode_minus_L=yes
8105 hardcode_shlibpath_var=no
8106 ;;
8107
8108 sysv4)
8109 case $host_vendor in
8110 sni)
8111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
8112 hardcode_direct=yes # is this really true???
8113 ;;
8114 siemens)
8115 ## LD is ld it makes a PLAMLIB
8116 ## CC just makes a GrossModule.
8117 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8118 reload_cmds='$CC -r -o $output$reload_objs'
8119 hardcode_direct=no
8120 ;;
8121 motorola)
8122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
8123 hardcode_direct=no #Motorola manual says yes, but my tests say they li e
8124 ;;
8125 esac
8126 runpath_var='LD_RUN_PATH'
8127 hardcode_shlibpath_var=no
8128 ;;
8129
8130 sysv4.3*)
8131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8132 hardcode_shlibpath_var=no
8133 export_dynamic_flag_spec='-Bexport'
8134 ;;
8135
8136 sysv4*MP*)
8137 if test -d /usr/nec; then
8138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8139 hardcode_shlibpath_var=no
8140 runpath_var=LD_RUN_PATH
8141 hardcode_runpath_var=yes
8142 ld_shlibs=yes
8143 fi
8144 ;;
8145
8146 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3. 2v5.0.[024]*)
8147 no_undefined_flag='${wl}-z,text'
8148 archive_cmds_need_lc=no
8149 hardcode_shlibpath_var=no
8150 runpath_var='LD_RUN_PATH'
8151
8152 if test "$GCC" = yes; then
8153 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com piler_flags'
8154 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$ soname -o $lib $libobjs $deplibs $compiler_flags'
8155 else
8156 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler _flags'
8157 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam e -o $lib $libobjs $deplibs $compiler_flags'
8158 fi
8159 ;;
8160
8161 sysv5* | sco3.2v5* | sco5v6*)
8162 # Note: We can NOT use -z defs as we might desire, because we do not
8163 # link with -lc, and that would cause any symbols used from libc to
8164 # always be unresolved, which means just about no library would
8165 # ever link correctly. If we're not using GNU ld we use -z text
8166 # though, which does catch some bad symbols but isn't as heavy-handed
8167 # as -z defs.
8168 no_undefined_flag='${wl}-z,text'
8169 allow_undefined_flag='${wl}-z,nodefs'
8170 archive_cmds_need_lc=no
8171 hardcode_shlibpath_var=no
8172 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8173 hardcode_libdir_separator=':'
8174 link_all_deplibs=yes
8175 export_dynamic_flag_spec='${wl}-Bexport'
8176 runpath_var='LD_RUN_PATH'
8177
8178 if test "$GCC" = yes; then
8179 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com piler_flags'
8180 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$ soname -o $lib $libobjs $deplibs $compiler_flags'
8181 else
8182 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler _flags'
8183 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam e -o $lib $libobjs $deplibs $compiler_flags'
8184 fi
8185 ;;
8186
8187 uts4*)
8188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8189 hardcode_libdir_flag_spec='-L$libdir'
8190 hardcode_shlibpath_var=no
8191 ;;
8192
8193 *)
8194 ld_shlibs=no
8195 ;;
8196 esac
8197
8198 if test x$host_vendor = xsni; then
8199 case $host in
8200 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8201 export_dynamic_flag_spec='${wl}-Blargedynsym'
8202 ;;
8203 esac
8204 fi
8205 fi
8206
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8208 $as_echo "$ld_shlibs" >&6; }
8209 test "$ld_shlibs" = no && can_build_shared=no
8210
8211 with_gnu_ld=$with_gnu_ld
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227 #
8228 # Do we need to explicitly link libc?
8229 #
8230 case "x$archive_cmds_need_lc" in
8231 x|xyes)
8232 # Assume -lc should be added
8233 archive_cmds_need_lc=yes
8234
8235 if test "$enable_shared" = yes && test "$GCC" = yes; then
8236 case $archive_cmds in
8237 *'~'*)
8238 # FIXME: we may have to deal with multi-command sequences.
8239 ;;
8240 '$CC '*)
8241 # Test whether the compiler implicitly links with -lc since on some
8242 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8243 # to ld, don't add -lc before -lgcc.
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be ex plicitly linked in" >&5
8245 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8246 $RM conftest*
8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248
8249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >& 5
8250 (eval $ac_compile) 2>&5
8251 ac_status=$?
8252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8253 test $ac_status = 0; } 2>conftest.err; then
8254 soname=conftest
8255 lib=conftest
8256 libobjs=conftest.$ac_objext
8257 deplibs=
8258 wl=$lt_prog_compiler_wl
8259 pic_flag=$lt_prog_compiler_pic
8260 compiler_flags=-v
8261 linker_flags=-v
8262 verstring=
8263 output_objdir=.
8264 libname=conftest
8265 lt_save_allow_undefined_flag=$allow_undefined_flag
8266 allow_undefined_flag=
8267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\ &1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8268 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8269 ac_status=$?
8270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8271 test $ac_status = 0; }
8272 then
8273 archive_cmds_need_lc=no
8274 else
8275 archive_cmds_need_lc=yes
8276 fi
8277 allow_undefined_flag=$lt_save_allow_undefined_flag
8278 else
8279 cat conftest.err 1>&5
8280 fi
8281 $RM conftest*
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >& 5
8283 $as_echo "$archive_cmds_need_lc" >&6; }
8284 ;;
8285 esac
8286 fi
8287 ;;
8288 esac
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristi cs" >&5
8447 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8448
8449 if test "$GCC" = yes; then
8450 case $host_os in
8451 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8452 *) lt_awk_arg="/^libraries:/" ;;
8453 esac
8454 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li braries://" -e "s,=/,/,g"`
8455 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8456 # if the path contains ";" then we assume it to be the separator
8457 # otherwise default to the standard path separator (i.e. ":") - it is
8458 # assumed that no part of a normal pathname contains ";" but that should
8459 # okay in the real world where ";" in dirpaths is itself problematic.
8460 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8461 else
8462 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARA TOR/ /g"`
8463 fi
8464 # Ok, now we have the path, separated by spaces, we can step through it
8465 # and add multilib dir if necessary.
8466 lt_tmp_lt_search_path_spec=
8467 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/d ev/null`
8468 for lt_sys_path in $lt_search_path_spec; do
8469 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8470 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_m ulti_os_dir"
8471 else
8472 test -d "$lt_sys_path" && \
8473 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8474 fi
8475 done
8476 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8477 BEGIN {RS=" "; FS="/|\n";} {
8478 lt_foo="";
8479 lt_count=0;
8480 for (lt_i = NF; lt_i > 0; lt_i--) {
8481 if ($lt_i != "" && $lt_i != ".") {
8482 if ($lt_i == "..") {
8483 lt_count++;
8484 } else {
8485 if (lt_count == 0) {
8486 lt_foo="/" $lt_i lt_foo;
8487 } else {
8488 lt_count--;
8489 }
8490 }
8491 }
8492 }
8493 if (lt_foo != "") { lt_freq[lt_foo]++; }
8494 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8495 }'`
8496 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8497 else
8498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8499 fi
8500 library_names_spec=
8501 libname_spec='lib$name'
8502 soname_spec=
8503 shrext_cmds=".so"
8504 postinstall_cmds=
8505 postuninstall_cmds=
8506 finish_cmds=
8507 finish_eval=
8508 shlibpath_var=
8509 shlibpath_overrides_runpath=unknown
8510 version_type=none
8511 dynamic_linker="$host_os ld.so"
8512 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8513 need_lib_prefix=unknown
8514 hardcode_into_libs=no
8515
8516 # when you set need_version to no, make sure it does not cause -set_version
8517 # flags to be left without arguments
8518 need_version=unknown
8519
8520 case $host_os in
8521 aix3*)
8522 version_type=linux
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8524 shlibpath_var=LIBPATH
8525
8526 # AIX 3 has no versioning support, so we append a major version to the name.
8527 soname_spec='${libname}${release}${shared_ext}$major'
8528 ;;
8529
8530 aix[4-9]*)
8531 version_type=linux
8532 need_lib_prefix=no
8533 need_version=no
8534 hardcode_into_libs=yes
8535 if test "$host_cpu" = ia64; then
8536 # AIX 5 supports IA64
8537 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele ase}${shared_ext}$versuffix $libname${shared_ext}'
8538 shlibpath_var=LD_LIBRARY_PATH
8539 else
8540 # With GCC up to 2.95.x, collect2 would create an import file
8541 # for dependence libraries. The import file would start with
8542 # the line `#! .'. This would cause the generated library to
8543 # depend on `.', always an invalid library. This was fixed in
8544 # development snapshots of GCC prior to 3.0.
8545 case $host_os in
8546 aix4 | aix4.[01] | aix4.[01].*)
8547 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8548 echo ' yes '
8549 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8550 :
8551 else
8552 can_build_shared=no
8553 fi
8554 ;;
8555 esac
8556 # AIX (on Power*) has no versioning support, so currently we can not hardcod e correct
8557 # soname into executable. Probably we can add versioning support to
8558 # collect2, so additional links can be useful in future.
8559 if test "$aix_use_runtimelinking" = yes; then
8560 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8561 # instead of lib<name>.a to let people know that these are not
8562 # typical AIX shared libraries.
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major $libname${shared_ext}'
8564 else
8565 # We preserve .a as extension for shared libraries through AIX4.2
8566 # and later when we are not doing run time linking.
8567 library_names_spec='${libname}${release}.a $libname.a'
8568 soname_spec='${libname}${release}${shared_ext}$major'
8569 fi
8570 shlibpath_var=LIBPATH
8571 fi
8572 ;;
8573
8574 amigaos*)
8575 case $host_cpu in
8576 powerpc)
8577 # Since July 2007 AmigaOS4 officially supports .so libraries.
8578 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
8580 ;;
8581 m68k)
8582 library_names_spec='$libname.ixlibrary $libname.a'
8583 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8584 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$E CHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/l ibs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibra ry.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8585 ;;
8586 esac
8587 ;;
8588
8589 beos*)
8590 library_names_spec='${libname}${shared_ext}'
8591 dynamic_linker="$host_os ld.so"
8592 shlibpath_var=LIBRARY_PATH
8593 ;;
8594
8595 bsdi[45]*)
8596 version_type=linux
8597 need_version=no
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
8599 soname_spec='${libname}${release}${shared_ext}$major'
8600 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8601 shlibpath_var=LD_LIBRARY_PATH
8602 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib / usr/local/lib"
8603 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8604 # the default ld.so.conf also contains /usr/contrib/lib and
8605 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8606 # libtool to hard-code these into programs
8607 ;;
8608
8609 cygwin* | mingw* | pw32* | cegcc*)
8610 version_type=windows
8611 shrext_cmds=".dll"
8612 need_version=no
8613 need_lib_prefix=no
8614
8615 case $GCC,$host_os in
8616 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8617 library_names_spec='$libname.dll.a'
8618 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8619 postinstall_cmds='base_file=`basename \${file}`~
8620 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\' '`~
8621 dldir=$destdir/`dirname \$dlpath`~
8622 test -d \$dldir || mkdir -p \$dldir~
8623 $install_prog $dir/$dlname \$dldir/$dlname~
8624 chmod a+x \$dldir/$dlname~
8625 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8626 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8627 fi'
8628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8629 dlpath=$dir/\$dldll~
8630 $RM \$dlpath'
8631 shlibpath_overrides_runpath=yes
8632
8633 case $host_os in
8634 cygwin*)
8635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8636 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S ED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8637 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8638 ;;
8639 mingw* | cegcc*)
8640 # MinGW DLLs use traditional 'lib' prefix
8641 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix} ${shared_ext}'
8642 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $ SED -e "s/^libraries://" -e "s,=/,/,g"`
8643 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; the n
8644 # It is most probably a Windows format PATH printed by
8645 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8646 # path with ; separators, and with drive letters. We can handle the
8647 # drive letters (cygwin fileutils understands them), so leave them,
8648 # especially as we might pass files found there to a mingw objdump,
8649 # which wouldn't understand a cygwinified path. Ahh.
8650 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's /;/ /g'`
8651 else
8652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e " s/$PATH_SEPARATOR/ /g"`
8653 fi
8654 ;;
8655 pw32*)
8656 # pw32 DLLs use 'pw' prefix rather than 'lib'
8657 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release } | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8658 ;;
8659 esac
8660 ;;
8661
8662 *)
8663 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu ffix}${shared_ext} $libname.lib'
8664 ;;
8665 esac
8666 dynamic_linker='Win32 ld.exe'
8667 # FIXME: first we should search . and the directory the executable is in
8668 shlibpath_var=PATH
8669 ;;
8670
8671 darwin* | rhapsody*)
8672 dynamic_linker="$host_os dyld"
8673 version_type=darwin
8674 need_lib_prefix=no
8675 need_version=no
8676 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ ext'
8677 soname_spec='${libname}${release}${major}$shared_ext'
8678 shlibpath_overrides_runpath=yes
8679 shlibpath_var=DYLD_LIBRARY_PATH
8680 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8681
8682 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8684 ;;
8685
8686 dgux*)
8687 version_type=linux
8688 need_lib_prefix=no
8689 need_version=no
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname$shared_ext'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 shlibpath_var=LD_LIBRARY_PATH
8693 ;;
8694
8695 freebsd1*)
8696 dynamic_linker=no
8697 ;;
8698
8699 freebsd* | dragonfly*)
8700 # DragonFly does not have aout. When/if they implement a new
8701 # versioning mechanism, adjust this.
8702 if test -x /usr/bin/objformat; then
8703 objformat=`/usr/bin/objformat`
8704 else
8705 case $host_os in
8706 freebsd[123]*) objformat=aout ;;
8707 *) objformat=elf ;;
8708 esac
8709 fi
8710 # Handle Gentoo/FreeBSD as it was Linux
8711 case $host_vendor in
8712 gentoo)
8713 version_type=linux ;;
8714 *)
8715 version_type=freebsd-$objformat ;;
8716 esac
8717
8718 case $version_type in
8719 freebsd-elf*)
8720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext} $libname${shared_ext}'
8721 need_version=no
8722 need_lib_prefix=no
8723 ;;
8724 freebsd-*)
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${ shared_ext}$versuffix'
8726 need_version=yes
8727 ;;
8728 linux)
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major ${libname}${shared_ext}'
8730 soname_spec='${libname}${release}${shared_ext}$major'
8731 need_lib_prefix=no
8732 need_version=no
8733 ;;
8734 esac
8735 shlibpath_var=LD_LIBRARY_PATH
8736 case $host_os in
8737 freebsd2*)
8738 shlibpath_overrides_runpath=yes
8739 ;;
8740 freebsd3.[01]* | freebsdelf3.[01]*)
8741 shlibpath_overrides_runpath=yes
8742 hardcode_into_libs=yes
8743 ;;
8744 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8745 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8746 shlibpath_overrides_runpath=no
8747 hardcode_into_libs=yes
8748 ;;
8749 *) # from 4.6 on, and DragonFly
8750 shlibpath_overrides_runpath=yes
8751 hardcode_into_libs=yes
8752 ;;
8753 esac
8754 ;;
8755
8756 gnu*)
8757 version_type=linux
8758 need_lib_prefix=no
8759 need_version=no
8760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}${major} ${libname}${shared_ext}'
8761 soname_spec='${libname}${release}${shared_ext}$major'
8762 shlibpath_var=LD_LIBRARY_PATH
8763 hardcode_into_libs=yes
8764 ;;
8765
8766 hpux9* | hpux10* | hpux11*)
8767 # Give a soname corresponding to the major version so that dld.sl refuses to
8768 # link against other versions.
8769 version_type=sunos
8770 need_lib_prefix=no
8771 need_version=no
8772 case $host_cpu in
8773 ia64*)
8774 shrext_cmds='.so'
8775 hardcode_into_libs=yes
8776 dynamic_linker="$host_os dld.so"
8777 shlibpath_var=LD_LIBRARY_PATH
8778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 if test "X$HPUX_IA64_MODE" = X32; then
8782 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local /lib"
8783 else
8784 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8785 fi
8786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8787 ;;
8788 hppa*64*)
8789 shrext_cmds='.sl'
8790 hardcode_into_libs=yes
8791 dynamic_linker="$host_os dld.sl"
8792 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
8795 soname_spec='${libname}${release}${shared_ext}$major'
8796 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8798 ;;
8799 *)
8800 shrext_cmds='.sl'
8801 dynamic_linker="$host_os dld.sl"
8802 shlibpath_var=SHLIB_PATH
8803 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
8805 soname_spec='${libname}${release}${shared_ext}$major'
8806 ;;
8807 esac
8808 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8809 postinstall_cmds='chmod 555 $lib'
8810 ;;
8811
8812 interix[3-9]*)
8813 version_type=linux
8814 need_lib_prefix=no
8815 need_version=no
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 shlibpath_overrides_runpath=no
8821 hardcode_into_libs=yes
8822 ;;
8823
8824 irix5* | irix6* | nonstopux*)
8825 case $host_os in
8826 nonstopux*) version_type=nonstopux ;;
8827 *)
8828 if test "$lt_cv_prog_gnu_ld" = yes; then
8829 version_type=linux
8830 else
8831 version_type=irix
8832 fi ;;
8833 esac
8834 need_lib_prefix=no
8835 need_version=no
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext }'
8838 case $host_os in
8839 irix5* | nonstopux*)
8840 libsuff= shlibsuff=
8841 ;;
8842 *)
8843 case $LD in # libtool.m4 will add one of these switches to LD
8844 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8845 libsuff= shlibsuff= libmagic=32-bit;;
8846 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8847 libsuff=32 shlibsuff=N32 libmagic=N32;;
8848 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8849 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8850 *) libsuff= shlibsuff= libmagic=never-match;;
8851 esac
8852 ;;
8853 esac
8854 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8855 shlibpath_overrides_runpath=no
8856 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
8857 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8858 hardcode_into_libs=yes
8859 ;;
8860
8861 # No shared lib support for Linux oldld, aout, or coff.
8862 linux*oldld* | linux*aout* | linux*coff*)
8863 dynamic_linker=no
8864 ;;
8865
8866 # This must be Linux ELF.
8867 linux* | k*bsd*-gnu)
8868 version_type=linux
8869 need_lib_prefix=no
8870 need_version=no
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8874 shlibpath_var=LD_LIBRARY_PATH
8875 shlibpath_overrides_runpath=no
8876 # Some binutils ld are patched to set DT_RUNPATH
8877 save_LDFLAGS=$LDFLAGS
8878 save_libdir=$libdir
8879 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8880 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8883
8884 int
8885 main ()
8886 {
8887
8888 ;
8889 return 0;
8890 }
8891 _ACEOF
8892 if ac_fn_c_try_link "$LINENO"; then :
8893 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/d ev/null; then :
8894 shlibpath_overrides_runpath=yes
8895 fi
8896 fi
8897 rm -f core conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext conftest.$ac_ext
8899 LDFLAGS=$save_LDFLAGS
8900 libdir=$save_libdir
8901
8902 # This implies no fast_install, which is unacceptable.
8903 # Some rework will be needed to allow for fast_install
8904 # before this can be enabled.
8905 hardcode_into_libs=yes
8906
8907 # Append ld.so.conf contents to the search path
8908 if test -f /etc/ld.so.conf; then
8909 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null" , \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $S ED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8911 fi
8912
8913 # We used to test for /lib/ld.so.1 and disable shared libraries on
8914 # powerpc, because MkLinux only supported shared libraries with the
8915 # GNU dynamic linker. Since this was broken with cross compilers,
8916 # most powerpc-linux boxes support dynamic linking these days and
8917 # people can always --disable-shared, the test was removed, and we
8918 # assume the GNU/Linux dynamic linker is in use.
8919 dynamic_linker='GNU/Linux ld.so'
8920 ;;
8921
8922 netbsd*)
8923 version_type=sunos
8924 need_lib_prefix=no
8925 need_version=no
8926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix'
8928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8929 dynamic_linker='NetBSD (a.out) ld.so'
8930 else
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major ${libname}${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 dynamic_linker='NetBSD ld.elf_so'
8934 fi
8935 shlibpath_var=LD_LIBRARY_PATH
8936 shlibpath_overrides_runpath=yes
8937 hardcode_into_libs=yes
8938 ;;
8939
8940 newsos6)
8941 version_type=linux
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=yes
8945 ;;
8946
8947 *nto* | *qnx*)
8948 version_type=qnx
8949 need_lib_prefix=no
8950 need_version=no
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 hardcode_into_libs=yes
8956 dynamic_linker='ldqnx.so'
8957 ;;
8958
8959 openbsd*)
8960 version_type=sunos
8961 sys_lib_dlsearch_path_spec="/usr/lib"
8962 need_lib_prefix=no
8963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8964 case $host_os in
8965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8966 *) need_version=no ;;
8967 esac
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
8969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host _cpu" = "openbsd2.8-powerpc"; then
8972 case $host_os in
8973 openbsd2.[89] | openbsd2.[89].*)
8974 shlibpath_overrides_runpath=no
8975 ;;
8976 *)
8977 shlibpath_overrides_runpath=yes
8978 ;;
8979 esac
8980 else
8981 shlibpath_overrides_runpath=yes
8982 fi
8983 ;;
8984
8985 os2*)
8986 libname_spec='$name'
8987 shrext_cmds=".dll"
8988 need_lib_prefix=no
8989 library_names_spec='$libname${shared_ext} $libname.a'
8990 dynamic_linker='OS/2 ld.exe'
8991 shlibpath_var=LIBPATH
8992 ;;
8993
8994 osf3* | osf4* | osf5*)
8995 version_type=osf
8996 need_lib_prefix=no
8997 need_version=no
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9003 ;;
9004
9005 rdos*)
9006 dynamic_linker=no
9007 ;;
9008
9009 solaris*)
9010 version_type=linux
9011 need_lib_prefix=no
9012 need_version=no
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9017 hardcode_into_libs=yes
9018 # ldd complains unless libraries are executable
9019 postinstall_cmds='chmod +x $lib'
9020 ;;
9021
9022 sunos4*)
9023 version_type=sunos
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
9025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 if test "$with_gnu_ld" = yes; then
9029 need_lib_prefix=no
9030 fi
9031 need_version=yes
9032 ;;
9033
9034 sysv4 | sysv4.3*)
9035 version_type=linux
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 case $host_vendor in
9040 sni)
9041 shlibpath_overrides_runpath=no
9042 need_lib_prefix=no
9043 runpath_var=LD_RUN_PATH
9044 ;;
9045 siemens)
9046 need_lib_prefix=no
9047 ;;
9048 motorola)
9049 need_lib_prefix=no
9050 need_version=no
9051 shlibpath_overrides_runpath=no
9052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9053 ;;
9054 esac
9055 ;;
9056
9057 sysv4*MP*)
9058 if test -d /usr/nec ;then
9059 version_type=linux
9060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$ major $libname${shared_ext}'
9061 soname_spec='$libname${shared_ext}.$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 fi
9064 ;;
9065
9066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9067 version_type=freebsd-elf
9068 need_lib_prefix=no
9069 need_version=no
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext} $libname${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes
9074 hardcode_into_libs=yes
9075 if test "$with_gnu_ld" = yes; then
9076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9077 else
9078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9079 case $host_os in
9080 sco3.2v5*)
9081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9082 ;;
9083 esac
9084 fi
9085 sys_lib_dlsearch_path_spec='/usr/lib'
9086 ;;
9087
9088 tpf*)
9089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9090 version_type=linux
9091 need_lib_prefix=no
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath=no
9096 hardcode_into_libs=yes
9097 ;;
9098
9099 uts4*)
9100 version_type=linux
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 shlibpath_var=LD_LIBRARY_PATH
9104 ;;
9105
9106 *)
9107 dynamic_linker=no
9108 ;;
9109 esac
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9111 $as_echo "$dynamic_linker" >&6; }
9112 test "$dynamic_linker" = no && can_build_shared=no
9113
9114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9115 if test "$GCC" = yes; then
9116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL ER_PATH LIBRARY_PATH"
9117 fi
9118
9119 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9120 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9121 fi
9122 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9123 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9124 fi
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library path s into programs" >&5
9213 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9214 hardcode_action=
9215 if test -n "$hardcode_libdir_flag_spec" ||
9216 test -n "$runpath_var" ||
9217 test "X$hardcode_automatic" = "Xyes" ; then
9218
9219 # We can hardcode non-existent directories.
9220 if test "$hardcode_direct" != no &&
9221 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9222 # have to relink, otherwise we might link with an installed library
9223 # when we should be linking with a yet-to-be-installed one
9224 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9225 test "$hardcode_minus_L" != no; then
9226 # Linking always hardcodes the temporary library directory.
9227 hardcode_action=relink
9228 else
9229 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9230 hardcode_action=immediate
9231 fi
9232 else
9233 # We cannot hardcode anything, or else we can only hardcode existing
9234 # directories.
9235 hardcode_action=unsupported
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9238 $as_echo "$hardcode_action" >&6; }
9239
9240 if test "$hardcode_action" = relink ||
9241 test "$inherit_rpath" = yes; then
9242 # Fast installation is not supported
9243 enable_fast_install=no
9244 elif test "$shlibpath_overrides_runpath" = yes ||
9245 test "$enable_shared" = no; then
9246 # Fast installation is not necessary
9247 enable_fast_install=needless
9248 fi
9249
9250
9251
9252
9253
9254
9255 if test "x$enable_dlopen" != xyes; then
9256 enable_dlopen=unknown
9257 enable_dlopen_self=unknown
9258 enable_dlopen_self_static=unknown
9259 else
9260 lt_cv_dlopen=no
9261 lt_cv_dlopen_libs=
9262
9263 case $host_os in
9264 beos*)
9265 lt_cv_dlopen="load_add_on"
9266 lt_cv_dlopen_libs=
9267 lt_cv_dlopen_self=yes
9268 ;;
9269
9270 mingw* | pw32* | cegcc*)
9271 lt_cv_dlopen="LoadLibrary"
9272 lt_cv_dlopen_libs=
9273 ;;
9274
9275 cygwin*)
9276 lt_cv_dlopen="dlopen"
9277 lt_cv_dlopen_libs=
9278 ;;
9279
9280 darwin*)
9281 # if libdl is installed we need to link against it
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9284 if ${ac_cv_lib_dl_dlopen+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 ac_check_lib_save_LIBS=$LIBS
9288 LIBS="-ldl $LIBS"
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9291
9292 /* Override any GCC internal prototype to avoid an error.
9293 Use char because int might match the return type of a GCC
9294 builtin and then its argument prototype would still apply. */
9295 #ifdef __cplusplus
9296 extern "C"
9297 #endif
9298 char dlopen ();
9299 int
9300 main ()
9301 {
9302 return dlopen ();
9303 ;
9304 return 0;
9305 }
9306 _ACEOF
9307 if ac_fn_c_try_link "$LINENO"; then :
9308 ac_cv_lib_dl_dlopen=yes
9309 else
9310 ac_cv_lib_dl_dlopen=no
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9314 LIBS=$ac_check_lib_save_LIBS
9315 fi
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9318 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9320 else
9321
9322 lt_cv_dlopen="dyld"
9323 lt_cv_dlopen_libs=
9324 lt_cv_dlopen_self=yes
9325
9326 fi
9327
9328 ;;
9329
9330 *)
9331 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9332 if test "x$ac_cv_func_shl_load" = xyes; then :
9333 lt_cv_dlopen="shl_load"
9334 else
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9336 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9337 if ${ac_cv_lib_dld_shl_load+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 ac_check_lib_save_LIBS=$LIBS
9341 LIBS="-ldld $LIBS"
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344
9345 /* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */
9348 #ifdef __cplusplus
9349 extern "C"
9350 #endif
9351 char shl_load ();
9352 int
9353 main ()
9354 {
9355 return shl_load ();
9356 ;
9357 return 0;
9358 }
9359 _ACEOF
9360 if ac_fn_c_try_link "$LINENO"; then :
9361 ac_cv_lib_dld_shl_load=yes
9362 else
9363 ac_cv_lib_dld_shl_load=no
9364 fi
9365 rm -f core conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
9367 LIBS=$ac_check_lib_save_LIBS
9368 fi
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9370 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9371 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9372 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9373 else
9374 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9375 if test "x$ac_cv_func_dlopen" = xyes; then :
9376 lt_cv_dlopen="dlopen"
9377 else
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9379 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9380 if ${ac_cv_lib_dl_dlopen+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 ac_check_lib_save_LIBS=$LIBS
9384 LIBS="-ldl $LIBS"
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387
9388 /* Override any GCC internal prototype to avoid an error.
9389 Use char because int might match the return type of a GCC
9390 builtin and then its argument prototype would still apply. */
9391 #ifdef __cplusplus
9392 extern "C"
9393 #endif
9394 char dlopen ();
9395 int
9396 main ()
9397 {
9398 return dlopen ();
9399 ;
9400 return 0;
9401 }
9402 _ACEOF
9403 if ac_fn_c_try_link "$LINENO"; then :
9404 ac_cv_lib_dl_dlopen=yes
9405 else
9406 ac_cv_lib_dl_dlopen=no
9407 fi
9408 rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9410 LIBS=$ac_check_lib_save_LIBS
9411 fi
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9414 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9416 else
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9418 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9419 if ${ac_cv_lib_svld_dlopen+:} false; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 ac_check_lib_save_LIBS=$LIBS
9423 LIBS="-lsvld $LIBS"
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426
9427 /* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
9430 #ifdef __cplusplus
9431 extern "C"
9432 #endif
9433 char dlopen ();
9434 int
9435 main ()
9436 {
9437 return dlopen ();
9438 ;
9439 return 0;
9440 }
9441 _ACEOF
9442 if ac_fn_c_try_link "$LINENO"; then :
9443 ac_cv_lib_svld_dlopen=yes
9444 else
9445 ac_cv_lib_svld_dlopen=no
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9449 LIBS=$ac_check_lib_save_LIBS
9450 fi
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9452 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9453 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9455 else
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9457 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9458 if ${ac_cv_lib_dld_dld_link+:} false; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 ac_check_lib_save_LIBS=$LIBS
9462 LIBS="-ldld $LIBS"
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9465
9466 /* Override any GCC internal prototype to avoid an error.
9467 Use char because int might match the return type of a GCC
9468 builtin and then its argument prototype would still apply. */
9469 #ifdef __cplusplus
9470 extern "C"
9471 #endif
9472 char dld_link ();
9473 int
9474 main ()
9475 {
9476 return dld_link ();
9477 ;
9478 return 0;
9479 }
9480 _ACEOF
9481 if ac_fn_c_try_link "$LINENO"; then :
9482 ac_cv_lib_dld_dld_link=yes
9483 else
9484 ac_cv_lib_dld_dld_link=no
9485 fi
9486 rm -f core conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
9488 LIBS=$ac_check_lib_save_LIBS
9489 fi
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9491 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9492 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9493 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9494 fi
9495
9496
9497 fi
9498
9499
9500 fi
9501
9502
9503 fi
9504
9505
9506 fi
9507
9508
9509 fi
9510
9511 ;;
9512 esac
9513
9514 if test "x$lt_cv_dlopen" != xno; then
9515 enable_dlopen=yes
9516 else
9517 enable_dlopen=no
9518 fi
9519
9520 case $lt_cv_dlopen in
9521 dlopen)
9522 save_CPPFLAGS="$CPPFLAGS"
9523 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9524
9525 save_LDFLAGS="$LDFLAGS"
9526 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9527
9528 save_LIBS="$LIBS"
9529 LIBS="$lt_cv_dlopen_libs $LIBS"
9530
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlop en itself" >&5
9532 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9533 if ${lt_cv_dlopen_self+:} false; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 if test "$cross_compiling" = yes; then :
9537 lt_cv_dlopen_self=cross
9538 else
9539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9540 lt_status=$lt_dlunknown
9541 cat > conftest.$ac_ext <<_LT_EOF
9542 #line 9542 "configure"
9543 #include "confdefs.h"
9544
9545 #if HAVE_DLFCN_H
9546 #include <dlfcn.h>
9547 #endif
9548
9549 #include <stdio.h>
9550
9551 #ifdef RTLD_GLOBAL
9552 # define LT_DLGLOBAL RTLD_GLOBAL
9553 #else
9554 # ifdef DL_GLOBAL
9555 # define LT_DLGLOBAL DL_GLOBAL
9556 # else
9557 # define LT_DLGLOBAL 0
9558 # endif
9559 #endif
9560
9561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9562 find out it does not work in some platform. */
9563 #ifndef LT_DLLAZY_OR_NOW
9564 # ifdef RTLD_LAZY
9565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9566 # else
9567 # ifdef DL_LAZY
9568 # define LT_DLLAZY_OR_NOW DL_LAZY
9569 # else
9570 # ifdef RTLD_NOW
9571 # define LT_DLLAZY_OR_NOW RTLD_NOW
9572 # else
9573 # ifdef DL_NOW
9574 # define LT_DLLAZY_OR_NOW DL_NOW
9575 # else
9576 # define LT_DLLAZY_OR_NOW 0
9577 # endif
9578 # endif
9579 # endif
9580 # endif
9581 #endif
9582
9583 void fnord() { int i=42;}
9584 int main ()
9585 {
9586 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9587 int status = $lt_dlunknown;
9588
9589 if (self)
9590 {
9591 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9592 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9593 /* dlclose (self); */
9594 }
9595 else
9596 puts (dlerror ());
9597
9598 return status;
9599 }
9600 _LT_EOF
9601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9602 (eval $ac_link) 2>&5
9603 ac_status=$?
9604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9605 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9606 (./conftest; exit; ) >&5 2>/dev/null
9607 lt_status=$?
9608 case x$lt_status in
9609 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9610 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9611 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9612 esac
9613 else :
9614 # compilation failed
9615 lt_cv_dlopen_self=no
9616 fi
9617 fi
9618 rm -fr conftest*
9619
9620
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9623 $as_echo "$lt_cv_dlopen_self" >&6; }
9624
9625 if test "x$lt_cv_dlopen_self" = xyes; then
9626 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\ "
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically lin ked program can dlopen itself" >&5
9628 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9629 if ${lt_cv_dlopen_self_static+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 if test "$cross_compiling" = yes; then :
9633 lt_cv_dlopen_self_static=cross
9634 else
9635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9636 lt_status=$lt_dlunknown
9637 cat > conftest.$ac_ext <<_LT_EOF
9638 #line 9638 "configure"
9639 #include "confdefs.h"
9640
9641 #if HAVE_DLFCN_H
9642 #include <dlfcn.h>
9643 #endif
9644
9645 #include <stdio.h>
9646
9647 #ifdef RTLD_GLOBAL
9648 # define LT_DLGLOBAL RTLD_GLOBAL
9649 #else
9650 # ifdef DL_GLOBAL
9651 # define LT_DLGLOBAL DL_GLOBAL
9652 # else
9653 # define LT_DLGLOBAL 0
9654 # endif
9655 #endif
9656
9657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9658 find out it does not work in some platform. */
9659 #ifndef LT_DLLAZY_OR_NOW
9660 # ifdef RTLD_LAZY
9661 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9662 # else
9663 # ifdef DL_LAZY
9664 # define LT_DLLAZY_OR_NOW DL_LAZY
9665 # else
9666 # ifdef RTLD_NOW
9667 # define LT_DLLAZY_OR_NOW RTLD_NOW
9668 # else
9669 # ifdef DL_NOW
9670 # define LT_DLLAZY_OR_NOW DL_NOW
9671 # else
9672 # define LT_DLLAZY_OR_NOW 0
9673 # endif
9674 # endif
9675 # endif
9676 # endif
9677 #endif
9678
9679 void fnord() { int i=42;}
9680 int main ()
9681 {
9682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9683 int status = $lt_dlunknown;
9684
9685 if (self)
9686 {
9687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9688 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9689 /* dlclose (self); */
9690 }
9691 else
9692 puts (dlerror ());
9693
9694 return status;
9695 }
9696 _LT_EOF
9697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9698 (eval $ac_link) 2>&5
9699 ac_status=$?
9700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9701 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9702 (./conftest; exit; ) >&5 2>/dev/null
9703 lt_status=$?
9704 case x$lt_status in
9705 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9706 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9707 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9708 esac
9709 else :
9710 # compilation failed
9711 lt_cv_dlopen_self_static=no
9712 fi
9713 fi
9714 rm -fr conftest*
9715
9716
9717 fi
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9719 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9720 fi
9721
9722 CPPFLAGS="$save_CPPFLAGS"
9723 LDFLAGS="$save_LDFLAGS"
9724 LIBS="$save_LIBS"
9725 ;;
9726 esac
9727
9728 case $lt_cv_dlopen_self in
9729 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9730 *) enable_dlopen_self=unknown ;;
9731 esac
9732
9733 case $lt_cv_dlopen_self_static in
9734 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9735 *) enable_dlopen_self_static=unknown ;;
9736 esac
9737 fi
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755 striplib=
9756 old_striplib=
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9758 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9759 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9760 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9761 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9763 $as_echo "yes" >&6; }
9764 else
9765 # FIXME - insert some real tests, host_os isn't really good enough
9766 case $host_os in
9767 darwin*)
9768 if test -n "$STRIP" ; then
9769 striplib="$STRIP -x"
9770 old_striplib="$STRIP -S"
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9772 $as_echo "yes" >&6; }
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9776 fi
9777 ;;
9778 *)
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9781 ;;
9782 esac
9783 fi
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796 # Report which library types will actually be built
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared l ibraries" >&5
9798 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9800 $as_echo "$can_build_shared" >&6; }
9801
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libr aries" >&5
9803 $as_echo_n "checking whether to build shared libraries... " >&6; }
9804 test "$can_build_shared" = "no" && enable_shared=no
9805
9806 # On AIX, shared libraries and static libraries use the same namespace, and
9807 # are all built from PIC.
9808 case $host_os in
9809 aix3*)
9810 test "$enable_shared" = yes && enable_static=no
9811 if test -n "$RANLIB"; then
9812 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9813 postinstall_cmds='$RANLIB $lib'
9814 fi
9815 ;;
9816
9817 aix[4-9]*)
9818 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9819 test "$enable_shared" = yes && enable_static=no
9820 fi
9821 ;;
9822 esac
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9824 $as_echo "$enable_shared" >&6; }
9825
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libr aries" >&5
9827 $as_echo_n "checking whether to build static libraries... " >&6; }
9828 # Make sure either enable_shared or enable_static is yes.
9829 test "$enable_shared" = yes || enable_static=yes
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9831 $as_echo "$enable_static" >&6; }
9832
9833
9834
9835
9836 fi
9837 ac_ext=c
9838 ac_cpp='$CPP $CPPFLAGS'
9839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
9841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9842
9843 CC="$lt_save_CC"
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857 ac_config_commands="$ac_config_commands libtool"
9858
9859
9860
9861
9862 # Only expand once:
9863
9864
9865 # Find a good install program. We prefer a C program (faster),
9866 # so one script is as good as another. But avoid the broken or
9867 # incompatible versions:
9868 # SysV /etc/install, /usr/sbin/install
9869 # SunOS /usr/etc/install
9870 # IRIX /sbin/install
9871 # AIX /bin/install
9872 # AmigaOS /C/install, which installs bootblocks on floppy discs
9873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9876 # OS/2's system install, which has a completely different semantic
9877 # ./install, which can be erroneously created by make from ./install.sh.
9878 # Reject install programs that cannot install multiple files.
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9880 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9881 if test -z "$INSTALL"; then
9882 if ${ac_cv_path_install+:} false; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9887 do
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 # Account for people who put trailing slashes in PATH elements.
9891 case $as_dir/ in #((
9892 ./ | .// | /[cC]/* | \
9893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9894 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9895 /usr/ucb/* ) ;;
9896 *)
9897 # OSF1 and SCO ODT 3.0 have their own names for install.
9898 # Don't use installbsd from OSF since it installs stuff as root
9899 # by default.
9900 for ac_prog in ginstall scoinst install; do
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9903 if test $ac_prog = install &&
9904 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9905 # AIX install. It has an incompatible calling convention.
9906 :
9907 elif test $ac_prog = install &&
9908 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9909 # program-specific install script used by HP pwplus--don't use.
9910 :
9911 else
9912 rm -rf conftest.one conftest.two conftest.dir
9913 echo one > conftest.one
9914 echo two > conftest.two
9915 mkdir conftest.dir
9916 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd `/conftest.dir" &&
9917 test -s conftest.one && test -s conftest.two &&
9918 test -s conftest.dir/conftest.one &&
9919 test -s conftest.dir/conftest.two
9920 then
9921 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9922 break 3
9923 fi
9924 fi
9925 fi
9926 done
9927 done
9928 ;;
9929 esac
9930
9931 done
9932 IFS=$as_save_IFS
9933
9934 rm -rf conftest.one conftest.two conftest.dir
9935
9936 fi
9937 if test "${ac_cv_path_install+set}" = set; then
9938 INSTALL=$ac_cv_path_install
9939 else
9940 # As a last resort, use the slow shell script. Don't cache a
9941 # value for INSTALL within a source directory, because that will
9942 # break other packages using the cache if that directory is
9943 # removed, or if the value is a relative name.
9944 INSTALL=$ac_install_sh
9945 fi
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9948 $as_echo "$INSTALL" >&6; }
9949
9950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9951 # It thinks the first close brace ends the variable substitution.
9952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9953
9954 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9955
9956 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9957
9958
9959 #########
9960 # Enable large file support (if special flags are necessary)
9961 #
9962 # Check whether --enable-largefile was given.
9963 if test "${enable_largefile+set}" = set; then :
9964 enableval=$enable_largefile;
9965 fi
9966
9967 if test "$enable_largefile" != no; then
9968
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler optio ns needed for large files" >&5
9970 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9971 if ${ac_cv_sys_largefile_CC+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 ac_cv_sys_largefile_CC=no
9975 if test "$GCC" != yes; then
9976 ac_save_CC=$CC
9977 while :; do
9978 # IRIX 6.2 and later do not support large files by default,
9979 # so use the C compiler's -n32 option if that helps.
9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */
9982 #include <sys/types.h>
9983 /* Check that off_t can represent 2**63 - 1 correctly.
9984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9985 since some C++ compilers masquerading as C compilers
9986 incorrectly reject 9223372036854775807. */
9987 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9989 && LARGE_OFF_T % 2147483647 == 1)
9990 ? 1 : -1];
9991 int
9992 main ()
9993 {
9994
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 if ac_fn_c_try_compile "$LINENO"; then :
10000 break
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext
10003 CC="$CC -n32"
10004 if ac_fn_c_try_compile "$LINENO"; then :
10005 ac_cv_sys_largefile_CC=' -n32'; break
10006 fi
10007 rm -f core conftest.err conftest.$ac_objext
10008 break
10009 done
10010 CC=$ac_save_CC
10011 rm -f conftest.$ac_ext
10012 fi
10013 fi
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10015 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10016 if test "$ac_cv_sys_largefile_CC" != no; then
10017 CC=$CC$ac_cv_sys_largefile_CC
10018 fi
10019
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10021 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6 ; }
10022 if ${ac_cv_sys_file_offset_bits+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 while :; do
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028 #include <sys/types.h>
10029 /* Check that off_t can represent 2**63 - 1 correctly.
10030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10031 since some C++ compilers masquerading as C compilers
10032 incorrectly reject 9223372036854775807. */
10033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10035 && LARGE_OFF_T % 2147483647 == 1)
10036 ? 1 : -1];
10037 int
10038 main ()
10039 {
10040
10041 ;
10042 return 0;
10043 }
10044 _ACEOF
10045 if ac_fn_c_try_compile "$LINENO"; then :
10046 ac_cv_sys_file_offset_bits=no; break
10047 fi
10048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */
10051 #define _FILE_OFFSET_BITS 64
10052 #include <sys/types.h>
10053 /* Check that off_t can represent 2**63 - 1 correctly.
10054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10055 since some C++ compilers masquerading as C compilers
10056 incorrectly reject 9223372036854775807. */
10057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10059 && LARGE_OFF_T % 2147483647 == 1)
10060 ? 1 : -1];
10061 int
10062 main ()
10063 {
10064
10065 ;
10066 return 0;
10067 }
10068 _ACEOF
10069 if ac_fn_c_try_compile "$LINENO"; then :
10070 ac_cv_sys_file_offset_bits=64; break
10071 fi
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 ac_cv_sys_file_offset_bits=unknown
10074 break
10075 done
10076 fi
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >& 5
10078 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10079 case $ac_cv_sys_file_offset_bits in #(
10080 no | unknown) ;;
10081 *)
10082 cat >>confdefs.h <<_ACEOF
10083 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10084 _ACEOF
10085 ;;
10086 esac
10087 rm -rf conftest*
10088 if test $ac_cv_sys_file_offset_bits = unknown; then
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value nee ded for large files" >&5
10090 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10091 if ${ac_cv_sys_large_files+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 while :; do
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097 #include <sys/types.h>
10098 /* Check that off_t can represent 2**63 - 1 correctly.
10099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10100 since some C++ compilers masquerading as C compilers
10101 incorrectly reject 9223372036854775807. */
10102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10104 && LARGE_OFF_T % 2147483647 == 1)
10105 ? 1 : -1];
10106 int
10107 main ()
10108 {
10109
10110 ;
10111 return 0;
10112 }
10113 _ACEOF
10114 if ac_fn_c_try_compile "$LINENO"; then :
10115 ac_cv_sys_large_files=no; break
10116 fi
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120 #define _LARGE_FILES 1
10121 #include <sys/types.h>
10122 /* Check that off_t can represent 2**63 - 1 correctly.
10123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10124 since some C++ compilers masquerading as C compilers
10125 incorrectly reject 9223372036854775807. */
10126 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10128 && LARGE_OFF_T % 2147483647 == 1)
10129 ? 1 : -1];
10130 int
10131 main ()
10132 {
10133
10134 ;
10135 return 0;
10136 }
10137 _ACEOF
10138 if ac_fn_c_try_compile "$LINENO"; then :
10139 ac_cv_sys_large_files=1; break
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142 ac_cv_sys_large_files=unknown
10143 break
10144 done
10145 fi
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10147 $as_echo "$ac_cv_sys_large_files" >&6; }
10148 case $ac_cv_sys_large_files in #(
10149 no | unknown) ;;
10150 *)
10151 cat >>confdefs.h <<_ACEOF
10152 #define _LARGE_FILES $ac_cv_sys_large_files
10153 _ACEOF
10154 ;;
10155 esac
10156 rm -rf conftest*
10157 fi
10158
10159
10160 fi
10161
10162
10163 #########
10164 # Check for needed/wanted data types
10165 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10166 if test "x$ac_cv_type_int8_t" = xyes; then :
10167
10168 cat >>confdefs.h <<_ACEOF
10169 #define HAVE_INT8_T 1
10170 _ACEOF
10171
10172
10173 fi
10174 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_defaul t"
10175 if test "x$ac_cv_type_int16_t" = xyes; then :
10176
10177 cat >>confdefs.h <<_ACEOF
10178 #define HAVE_INT16_T 1
10179 _ACEOF
10180
10181
10182 fi
10183 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_defaul t"
10184 if test "x$ac_cv_type_int32_t" = xyes; then :
10185
10186 cat >>confdefs.h <<_ACEOF
10187 #define HAVE_INT32_T 1
10188 _ACEOF
10189
10190
10191 fi
10192 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_defaul t"
10193 if test "x$ac_cv_type_int64_t" = xyes; then :
10194
10195 cat >>confdefs.h <<_ACEOF
10196 #define HAVE_INT64_T 1
10197 _ACEOF
10198
10199
10200 fi
10201 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_defa ult"
10202 if test "x$ac_cv_type_intptr_t" = xyes; then :
10203
10204 cat >>confdefs.h <<_ACEOF
10205 #define HAVE_INTPTR_T 1
10206 _ACEOF
10207
10208
10209 fi
10210 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_defaul t"
10211 if test "x$ac_cv_type_uint8_t" = xyes; then :
10212
10213 cat >>confdefs.h <<_ACEOF
10214 #define HAVE_UINT8_T 1
10215 _ACEOF
10216
10217
10218 fi
10219 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_defa ult"
10220 if test "x$ac_cv_type_uint16_t" = xyes; then :
10221
10222 cat >>confdefs.h <<_ACEOF
10223 #define HAVE_UINT16_T 1
10224 _ACEOF
10225
10226
10227 fi
10228 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_defa ult"
10229 if test "x$ac_cv_type_uint32_t" = xyes; then :
10230
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_UINT32_T 1
10233 _ACEOF
10234
10235
10236 fi
10237 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_defa ult"
10238 if test "x$ac_cv_type_uint64_t" = xyes; then :
10239
10240 cat >>confdefs.h <<_ACEOF
10241 #define HAVE_UINT64_T 1
10242 _ACEOF
10243
10244
10245 fi
10246 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_de fault"
10247 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10248
10249 cat >>confdefs.h <<_ACEOF
10250 #define HAVE_UINTPTR_T 1
10251 _ACEOF
10252
10253
10254 fi
10255
10256
10257 #########
10258 # Check for needed/wanted headers
10259 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10260 do :
10261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10262 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include s_default"
10263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10264 cat >>confdefs.h <<_ACEOF
10265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10266 _ACEOF
10267
10268 fi
10269
10270 done
10271
10272
10273 #########
10274 # Figure out whether or not we have these functions
10275 #
10276 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_si ze strchrnul usleep utime
10277 do :
10278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10280 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10281 cat >>confdefs.h <<_ACEOF
10282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10283 _ACEOF
10284
10285 fi
10286 done
10287
10288
10289 #########
10290 # By default, we use the amalgamation (this may be changed below...)
10291 #
10292 USE_AMALGAMATION=1
10293
10294 #########
10295 # See whether we can run specific tclsh versions known to work well;
10296 # if not, then we fall back to plain tclsh.
10297 # TODO: try other versions before falling back?
10298 #
10299 for ac_prog in tclsh8.6 tclsh8.5 tclsh
10300 do
10301 # Extract the first word of "$ac_prog", so it can be a program name with args.
10302 set dummy $ac_prog; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 if test -n "$TCLSH_CMD"; then
10309 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10310 else
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10313 do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_prog_TCLSH_CMD="$ac_prog"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
10320 break 2
10321 fi
10322 done
10323 done
10324 IFS=$as_save_IFS
10325
10326 fi
10327 fi
10328 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10329 if test -n "$TCLSH_CMD"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10331 $as_echo "$TCLSH_CMD" >&6; }
10332 else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10335 fi
10336
10337
10338 test -n "$TCLSH_CMD" && break
10339 done
10340 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10341
10342 if test "$TCLSH_CMD" = "none"; then
10343 # If we can't find a local tclsh, then building the amalgamation will fail.
10344 # We act as though --disable-amalgamation has been used.
10345 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10346 USE_AMALGAMATION=0
10347 TCLSH_CMD="tclsh"
10348 fi
10349
10350
10351
10352 if test "x${TCLLIBDIR+set}" != "xset" ; then
10353 TCLLIBDIR='$(libdir)'
10354 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10355 TCLLIBDIR=$i
10356 break
10357 done
10358 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10359 fi
10360
10361
10362 #########
10363 # Set up an appropriate program prefix
10364 #
10365 if test "$program_prefix" = "NONE"; then
10366 program_prefix=""
10367 fi
10368
10369
10370 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10372 $as_echo "$as_me: Version set to $VERSION" >&6;}
10373
10374 RELEASE=`cat $srcdir/VERSION`
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10376 $as_echo "$as_me: Release set to $RELEASE" >&6;}
10377
10378 VERSION_NUMBER=`cat $srcdir/VERSION \
10379 | sed 's/[^0-9]/ /g' \
10380 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
10382 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
10383
10384
10385 #########
10386 # Locate a compiler for the build machine. This compiler should
10387 # generate command-line programs that run on the build machine.
10388 #
10389 if test x"$cross_compiling" = xno; then
10390 BUILD_CC=$CC
10391 BUILD_CFLAGS=$CFLAGS
10392 else
10393 if test "${BUILD_CC+set}" != set; then
10394 for ac_prog in gcc cc cl
10395 do
10396 # Extract the first word of "$ac_prog", so it can be a program name with args.
10397 set dummy $ac_prog; ac_word=$2
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399 $as_echo_n "checking for $ac_word... " >&6; }
10400 if ${ac_cv_prog_BUILD_CC+:} false; then :
10401 $as_echo_n "(cached) " >&6
10402 else
10403 if test -n "$BUILD_CC"; then
10404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10405 else
10406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407 for as_dir in $PATH
10408 do
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
10411 for ac_exec_ext in '' $ac_executable_extensions; do
10412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10413 ac_cv_prog_BUILD_CC="$ac_prog"
10414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
10415 break 2
10416 fi
10417 done
10418 done
10419 IFS=$as_save_IFS
10420
10421 fi
10422 fi
10423 BUILD_CC=$ac_cv_prog_BUILD_CC
10424 if test -n "$BUILD_CC"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10426 $as_echo "$BUILD_CC" >&6; }
10427 else
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10430 fi
10431
10432
10433 test -n "$BUILD_CC" && break
10434 done
10435
10436 fi
10437 if test "${BUILD_CFLAGS+set}" != set; then
10438 BUILD_CFLAGS="-g"
10439 fi
10440 fi
10441
10442
10443 ##########
10444 # Do we want to support multithreaded use of sqlite
10445 #
10446 # Check whether --enable-threadsafe was given.
10447 if test "${enable_threadsafe+set}" = set; then :
10448 enableval=$enable_threadsafe;
10449 else
10450 enable_threadsafe=yes
10451 fi
10452
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10454 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
10455 if test "$enable_threadsafe" = "no"; then
10456 SQLITE_THREADSAFE=0
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10459 else
10460 SQLITE_THREADSAFE=1
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10462 $as_echo "yes" >&6; }
10463 fi
10464
10465
10466 if test "$SQLITE_THREADSAFE" = "1"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthre ad_create" >&5
10468 $as_echo_n "checking for library containing pthread_create... " >&6; }
10469 if ${ac_cv_search_pthread_create+:} false; then :
10470 $as_echo_n "(cached) " >&6
10471 else
10472 ac_func_search_save_LIBS=$LIBS
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475
10476 /* Override any GCC internal prototype to avoid an error.
10477 Use char because int might match the return type of a GCC
10478 builtin and then its argument prototype would still apply. */
10479 #ifdef __cplusplus
10480 extern "C"
10481 #endif
10482 char pthread_create ();
10483 int
10484 main ()
10485 {
10486 return pthread_create ();
10487 ;
10488 return 0;
10489 }
10490 _ACEOF
10491 for ac_lib in '' pthread; do
10492 if test -z "$ac_lib"; then
10493 ac_res="none required"
10494 else
10495 ac_res=-l$ac_lib
10496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10497 fi
10498 if ac_fn_c_try_link "$LINENO"; then :
10499 ac_cv_search_pthread_create=$ac_res
10500 fi
10501 rm -f core conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext
10503 if ${ac_cv_search_pthread_create+:} false; then :
10504 break
10505 fi
10506 done
10507 if ${ac_cv_search_pthread_create+:} false; then :
10508
10509 else
10510 ac_cv_search_pthread_create=no
10511 fi
10512 rm conftest.$ac_ext
10513 LIBS=$ac_func_search_save_LIBS
10514 fi
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" > &5
10516 $as_echo "$ac_cv_search_pthread_create" >&6; }
10517 ac_res=$ac_cv_search_pthread_create
10518 if test "$ac_res" != no; then :
10519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10520
10521 fi
10522
10523 fi
10524
10525 ##########
10526 # Do we want to support release
10527 #
10528 # Check whether --enable-releasemode was given.
10529 if test "${enable_releasemode+set}" = set; then :
10530 enableval=$enable_releasemode;
10531 else
10532 enable_releasemode=no
10533 fi
10534
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared libr ary linked as release mode or not" >&5
10536 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10537 if test "$enable_releasemode" = "no"; then
10538 ALLOWRELEASE=""
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 $as_echo "no" >&6; }
10541 else
10542 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10544 $as_echo "yes" >&6; }
10545 fi
10546
10547
10548 ##########
10549 # Do we want temporary databases in memory
10550 #
10551 # Check whether --enable-tempstore was given.
10552 if test "${enable_tempstore+set}" = set; then :
10553 enableval=$enable_tempstore;
10554 else
10555 enable_tempstore=no
10556 fi
10557
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram datab ase for temporary tables" >&5
10559 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10560 case "$enable_tempstore" in
10561 never )
10562 TEMP_STORE=0
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10564 $as_echo "never" >&6; }
10565 ;;
10566 no )
10567 TEMP_STORE=1
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; }
10570 ;;
10571 yes )
10572 TEMP_STORE=2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10574 $as_echo "yes" >&6; }
10575 ;;
10576 always )
10577 TEMP_STORE=3
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10579 $as_echo "always" >&6; }
10580 ;;
10581 * )
10582 TEMP_STORE=1
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 ;;
10586 esac
10587
10588
10589
10590 ###########
10591 # Lots of things are different if we are compiling for Windows using
10592 # the CYGWIN environment. So check for that special case and handle
10593 # things accordingly.
10594 #
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe s uffix" >&5
10596 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
10597 if test "$config_BUILD_EXEEXT" = ".exe"; then
10598 CYGWIN=yes
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10600 $as_echo "yes" >&6; }
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10603 $as_echo "unknown" >&6; }
10604 fi
10605 if test "$CYGWIN" != "yes"; then
10606
10607 case $host_os in
10608 *cygwin* ) CYGWIN=yes;;
10609 * ) CYGWIN=no;;
10610 esac
10611
10612 fi
10613 if test "$CYGWIN" = "yes"; then
10614 BUILD_EXEEXT=.exe
10615 else
10616 BUILD_EXEEXT=$EXEEXT
10617 fi
10618 if test x"$cross_compiling" = xno; then
10619 TARGET_EXEEXT=$BUILD_EXEEXT
10620 else
10621 TARGET_EXEEXT=$config_TARGET_EXEEXT
10622 fi
10623 if test "$TARGET_EXEEXT" = ".exe"; then
10624 SQLITE_OS_UNIX=0
10625 SQLITE_OS_WIN=1
10626 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10627 else
10628 SQLITE_OS_UNIX=1
10629 SQLITE_OS_WIN=0
10630 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10631 fi
10632
10633
10634
10635
10636
10637
10638 ##########
10639 # Figure out all the parameters needed to compile against Tcl.
10640 #
10641 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10642 # macros in the in the tcl.m4 file of the standard TCL distribution.
10643 # Those macros could not be used directly since we have to make some
10644 # minor changes to accomodate systems that do not have TCL installed.
10645 #
10646 # Check whether --enable-tcl was given.
10647 if test "${enable_tcl+set}" = set; then :
10648 enableval=$enable_tcl; use_tcl=$enableval
10649 else
10650 use_tcl=yes
10651 fi
10652
10653 if test "${use_tcl}" = "yes" ; then
10654
10655 # Check whether --with-tcl was given.
10656 if test "${with_tcl+set}" = set; then :
10657 withval=$with_tcl; with_tclconfig=${withval}
10658 fi
10659
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10661 $as_echo_n "checking for Tcl configuration... " >&6; }
10662 if ${ac_cv_c_tclconfig+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665
10666 # First check to see if --with-tcl was specified.
10667 if test x"${with_tclconfig}" != x ; then
10668 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10669 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10670 else
10671 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh " "$LINENO" 5
10672 fi
10673 fi
10674
10675 # Start autosearch by asking tclsh
10676 if test x"${ac_cv_c_tclconfig}" = x ; then
10677 if test x"$cross_compiling" = xno; then
10678 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10679 do
10680 if test -f "$i/tclConfig.sh" ; then
10681 ac_cv_c_tclconfig="$i"
10682 break
10683 fi
10684 done
10685 fi
10686 fi
10687
10688 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10689 # So try again after applying corrections.
10690 if test x"${ac_cv_c_tclconfig}" = x ; then
10691 if test x"$cross_compiling" = xno; then
10692 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/t cl,/tcl,g'`
10693 do
10694 if test -f "$i/tclConfig.sh" ; then
10695 ac_cv_c_tclconfig="$i"
10696 break
10697 fi
10698 done
10699 fi
10700 fi
10701
10702 # then check for a private Tcl installation
10703 if test x"${ac_cv_c_tclconfig}" = x ; then
10704 for i in \
10705 ../tcl \
10706 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10707 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10708 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10709 ../../tcl \
10710 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10711 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10712 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10713 ../../../tcl \
10714 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10715 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10716 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10717 do
10718 if test -f "$i/unix/tclConfig.sh" ; then
10719 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10720 break
10721 fi
10722 done
10723 fi
10724
10725 # check in a few common install locations
10726 if test x"${ac_cv_c_tclconfig}" = x ; then
10727 for i in \
10728 `ls -d ${libdir} 2>/dev/null` \
10729 `ls -d /usr/local/lib 2>/dev/null` \
10730 `ls -d /usr/contrib/lib 2>/dev/null` \
10731 `ls -d /usr/lib 2>/dev/null`
10732 do
10733 if test -f "$i/tclConfig.sh" ; then
10734 ac_cv_c_tclconfig=`(cd $i; pwd)`
10735 break
10736 fi
10737 done
10738 fi
10739
10740 # check in a few other private locations
10741 if test x"${ac_cv_c_tclconfig}" = x ; then
10742 for i in \
10743 ${srcdir}/../tcl \
10744 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10745 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10746 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10747 do
10748 if test -f "$i/unix/tclConfig.sh" ; then
10749 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10750 break
10751 fi
10752 done
10753 fi
10754
10755 fi
10756
10757
10758 if test x"${ac_cv_c_tclconfig}" = x ; then
10759 use_tcl=no
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configurati on definitions" >&5
10761 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regres sion tests cannot be executed ***" >&5
10763 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be execut ed ***" >&2;}
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with- tcl=... to define location of Tcl ***" >&5
10765 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10766 else
10767 TCL_BIN_DIR=${ac_cv_c_tclconfig}
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfi g.sh" >&5
10769 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10770
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_ DIR/tclConfig.sh" >&5
10772 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10773 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10775 $as_echo "loading" >&6; }
10776 . $TCL_BIN_DIR/tclConfig.sh
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10779 $as_echo "file not found" >&6; }
10780 fi
10781
10782 #
10783 # If the TCL_BIN_DIR is the build directory (not the install directory),
10784 # then set the common variable name to the value of the build variables.
10785 # For example, the variable TCL_LIB_SPEC will be set to the value
10786 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10787 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10788 # installed and uninstalled version of Tcl.
10789 #
10790
10791 if test -f $TCL_BIN_DIR/Makefile ; then
10792 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10793 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10794 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10795 fi
10796
10797 #
10798 # eval is required to do the TCL_DBGX substitution
10799 #
10800
10801 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10802 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10803 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10804
10805 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10806 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10807 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822 fi
10823 fi
10824 if test "${use_tcl}" = "no" ; then
10825 HAVE_TCL=""
10826 else
10827 HAVE_TCL=1
10828 fi
10829
10830
10831 ##########
10832 # Figure out what C libraries are required to compile programs
10833 # that use "readline()" library.
10834 #
10835 TARGET_READLINE_LIBS=""
10836 TARGET_READLINE_INC=""
10837 TARGET_HAVE_READLINE=0
10838 TARGET_HAVE_EDITLINE=0
10839 # Check whether --enable-editline was given.
10840 if test "${enable_editline+set}" = set; then :
10841 enableval=$enable_editline; with_editline=$enableval
10842 else
10843 with_editline=auto
10844 fi
10845
10846 # Check whether --enable-readline was given.
10847 if test "${enable_readline+set}" = set; then :
10848 enableval=$enable_readline; with_readline=$enableval
10849 else
10850 with_readline=auto
10851 fi
10852
10853
10854 if test x"$with_editline" != xno; then
10855 sLIBS=$LIBS
10856 LIBS=""
10857 TARGET_HAVE_EDITLINE=1
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10859 $as_echo_n "checking for library containing readline... " >&6; }
10860 if ${ac_cv_search_readline+:} false; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 ac_func_search_save_LIBS=$LIBS
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10866
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 char readline ();
10874 int
10875 main ()
10876 {
10877 return readline ();
10878 ;
10879 return 0;
10880 }
10881 _ACEOF
10882 for ac_lib in '' edit; do
10883 if test -z "$ac_lib"; then
10884 ac_res="none required"
10885 else
10886 ac_res=-l$ac_lib
10887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10888 fi
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 ac_cv_search_readline=$ac_res
10891 fi
10892 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext
10894 if ${ac_cv_search_readline+:} false; then :
10895 break
10896 fi
10897 done
10898 if ${ac_cv_search_readline+:} false; then :
10899
10900 else
10901 ac_cv_search_readline=no
10902 fi
10903 rm conftest.$ac_ext
10904 LIBS=$ac_func_search_save_LIBS
10905 fi
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10907 $as_echo "$ac_cv_search_readline" >&6; }
10908 ac_res=$ac_cv_search_readline
10909 if test "$ac_res" != no; then :
10910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10911 with_readline=no
10912 else
10913 TARGET_HAVE_EDITLINE=0
10914 fi
10915
10916 TARGET_READLINE_LIBS=$LIBS
10917 LIBS=$sLIBS
10918 fi
10919 if test x"$with_readline" != xno; then
10920 found="yes"
10921
10922
10923 # Check whether --with-readline-lib was given.
10924 if test "${with_readline_lib+set}" = set; then :
10925 withval=$with_readline_lib; with_readline_lib=$withval
10926 else
10927 with_readline_lib="auto"
10928 fi
10929
10930 if test "x$with_readline_lib" = xauto; then
10931 save_LIBS="$LIBS"
10932 LIBS=""
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library co ntaining tgetent" >&5
10934 $as_echo_n "checking for library containing tgetent... " >&6; }
10935 if ${ac_cv_search_tgetent+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 ac_func_search_save_LIBS=$LIBS
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941
10942 /* Override any GCC internal prototype to avoid an error.
10943 Use char because int might match the return type of a GCC
10944 builtin and then its argument prototype would still apply. */
10945 #ifdef __cplusplus
10946 extern "C"
10947 #endif
10948 char tgetent ();
10949 int
10950 main ()
10951 {
10952 return tgetent ();
10953 ;
10954 return 0;
10955 }
10956 _ACEOF
10957 for ac_lib in '' readline ncurses curses termcap; do
10958 if test -z "$ac_lib"; then
10959 ac_res="none required"
10960 else
10961 ac_res=-l$ac_lib
10962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10963 fi
10964 if ac_fn_c_try_link "$LINENO"; then :
10965 ac_cv_search_tgetent=$ac_res
10966 fi
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext
10969 if ${ac_cv_search_tgetent+:} false; then :
10970 break
10971 fi
10972 done
10973 if ${ac_cv_search_tgetent+:} false; then :
10974
10975 else
10976 ac_cv_search_tgetent=no
10977 fi
10978 rm conftest.$ac_ext
10979 LIBS=$ac_func_search_save_LIBS
10980 fi
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
10982 $as_echo "$ac_cv_search_tgetent" >&6; }
10983 ac_res=$ac_cv_search_tgetent
10984 if test "$ac_res" != no; then :
10985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10986 term_LIBS="$LIBS"
10987 else
10988 term_LIBS=""
10989 fi
10990
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline i n -lreadline" >&5
10992 $as_echo_n "checking for readline in -lreadline... " >&6; }
10993 if ${ac_cv_lib_readline_readline+:} false; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 ac_check_lib_save_LIBS=$LIBS
10997 LIBS="-lreadline $LIBS"
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11000
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char readline ();
11008 int
11009 main ()
11010 {
11011 return readline ();
11012 ;
11013 return 0;
11014 }
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"; then :
11017 ac_cv_lib_readline_readline=yes
11018 else
11019 ac_cv_lib_readline_readline=no
11020 fi
11021 rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11023 LIBS=$ac_check_lib_save_LIBS
11024 fi
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" > &5
11026 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11027 if test "x$ac_cv_lib_readline_readline" = xyes; then :
11028 TARGET_READLINE_LIBS="-lreadline"
11029 else
11030 found="no"
11031 fi
11032
11033 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11034 LIBS="$save_LIBS"
11035 else
11036 TARGET_READLINE_LIBS="$with_readline_lib"
11037 fi
11038
11039
11040 # Check whether --with-readline-inc was given.
11041 if test "${with_readline_inc+set}" = set; then :
11042 withval=$with_readline_inc; with_readline_inc=$withval
11043 else
11044 with_readline_inc="auto"
11045 fi
11046
11047 if test "x$with_readline_inc" = xauto; then
11048 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_heade r_readline_h" "$ac_includes_default"
11049 if test "x$ac_cv_header_readline_h" = xyes; then :
11050 found="yes"
11051 else
11052
11053 found="no"
11054 if test "$cross_compiling" != yes; then
11055 for dir in /usr /usr/local /usr/local/readline / usr/contrib /mingw; do
11056 for subdir in include include/readline; do
11057 as_ac_File=`$as_echo "ac_cv_file _$dir/$subdir/readline.h" | $as_tr_sh`
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" > &5
11059 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11060 if eval \${$as_ac_File+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 test "$cross_compiling" = yes &&
11064 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO " 5
11065 if test -r "$dir/$subdir/readline.h"; then
11066 eval "$as_ac_File=yes"
11067 else
11068 eval "$as_ac_File=no"
11069 fi
11070 fi
11071 eval ac_res=\$$as_ac_File
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11073 $as_echo "$ac_res" >&6; }
11074 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11075 found=yes
11076 fi
11077
11078 if test "$found" = "yes"; then
11079 TARGET_READLINE_INC="-I$ dir/$subdir"
11080 break
11081 fi
11082 done
11083 test "$found" = "yes" && break
11084 done
11085 fi
11086
11087 fi
11088
11089
11090 else
11091 TARGET_READLINE_INC="$with_readline_inc"
11092 fi
11093
11094 if test x"$found" = xno; then
11095 TARGET_READLINE_LIBS=""
11096 TARGET_READLINE_INC=""
11097 TARGET_HAVE_READLINE=0
11098 else
11099 TARGET_HAVE_READLINE=1
11100 fi
11101 fi
11102
11103
11104
11105
11106
11107
11108 ##########
11109 # Figure out what C libraries are required to compile programs
11110 # that use "fdatasync()" function.
11111 #
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasy nc" >&5
11113 $as_echo_n "checking for library containing fdatasync... " >&6; }
11114 if ${ac_cv_search_fdatasync+:} false; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 ac_func_search_save_LIBS=$LIBS
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11120
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char fdatasync ();
11128 int
11129 main ()
11130 {
11131 return fdatasync ();
11132 ;
11133 return 0;
11134 }
11135 _ACEOF
11136 for ac_lib in '' rt; do
11137 if test -z "$ac_lib"; then
11138 ac_res="none required"
11139 else
11140 ac_res=-l$ac_lib
11141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11142 fi
11143 if ac_fn_c_try_link "$LINENO"; then :
11144 ac_cv_search_fdatasync=$ac_res
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext
11148 if ${ac_cv_search_fdatasync+:} false; then :
11149 break
11150 fi
11151 done
11152 if ${ac_cv_search_fdatasync+:} false; then :
11153
11154 else
11155 ac_cv_search_fdatasync=no
11156 fi
11157 rm conftest.$ac_ext
11158 LIBS=$ac_func_search_save_LIBS
11159 fi
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11161 $as_echo "$ac_cv_search_fdatasync" >&6; }
11162 ac_res=$ac_cv_search_fdatasync
11163 if test "$ac_res" != no; then :
11164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11165
11166 fi
11167
11168
11169 #########
11170 # check for debug enabled
11171 # Check whether --enable-debug was given.
11172 if test "${enable_debug+set}" = set; then :
11173 enableval=$enable_debug; use_debug=$enableval
11174 else
11175 use_debug=no
11176 fi
11177
11178 if test "${use_debug}" = "yes" ; then
11179 TARGET_DEBUG="-DSQLITE_DEBUG=1"
11180 else
11181 TARGET_DEBUG="-DNDEBUG"
11182 fi
11183
11184
11185 #########
11186 # See whether we should use the amalgamation to build
11187 # Check whether --enable-amalgamation was given.
11188 if test "${enable_amalgamation+set}" = set; then :
11189 enableval=$enable_amalgamation; use_amalgamation=$enableval
11190 else
11191 use_amalgamation=yes
11192 fi
11193
11194 if test "${use_amalgamation}" != "yes" ; then
11195 USE_AMALGAMATION=0
11196 fi
11197
11198
11199 #########
11200 # See whether we should allow loadable extensions
11201 # Check whether --enable-load-extension was given.
11202 if test "${enable_load_extension+set}" = set; then :
11203 enableval=$enable_load_extension; use_loadextension=$enableval
11204 else
11205 use_loadextension=yes
11206 fi
11207
11208 if test "${use_loadextension}" = "yes" ; then
11209 OPT_FEATURE_FLAGS=""
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlope n" >&5
11211 $as_echo_n "checking for library containing dlopen... " >&6; }
11212 if ${ac_cv_search_dlopen+:} false; then :
11213 $as_echo_n "(cached) " >&6
11214 else
11215 ac_func_search_save_LIBS=$LIBS
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11218
11219 /* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
11222 #ifdef __cplusplus
11223 extern "C"
11224 #endif
11225 char dlopen ();
11226 int
11227 main ()
11228 {
11229 return dlopen ();
11230 ;
11231 return 0;
11232 }
11233 _ACEOF
11234 for ac_lib in '' dl; do
11235 if test -z "$ac_lib"; then
11236 ac_res="none required"
11237 else
11238 ac_res=-l$ac_lib
11239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11240 fi
11241 if ac_fn_c_try_link "$LINENO"; then :
11242 ac_cv_search_dlopen=$ac_res
11243 fi
11244 rm -f core conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext
11246 if ${ac_cv_search_dlopen+:} false; then :
11247 break
11248 fi
11249 done
11250 if ${ac_cv_search_dlopen+:} false; then :
11251
11252 else
11253 ac_cv_search_dlopen=no
11254 fi
11255 rm conftest.$ac_ext
11256 LIBS=$ac_func_search_save_LIBS
11257 fi
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11259 $as_echo "$ac_cv_search_dlopen" >&6; }
11260 ac_res=$ac_cv_search_dlopen
11261 if test "$ac_res" != no; then :
11262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11263
11264 fi
11265
11266 else
11267 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11268 fi
11269
11270 #########
11271 # See whether we should enable Full Text Search extensions
11272 # Check whether --enable-fts3 was given.
11273 if test "${enable_fts3+set}" = set; then :
11274 enableval=$enable_fts3; enable_fts3=yes
11275 else
11276 enable_fts3=no
11277 fi
11278
11279 if test "${enable_fts3}" = "yes" ; then
11280 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3"
11281 fi
11282 # Check whether --enable-fts4 was given.
11283 if test "${enable_fts4+set}" = set; then :
11284 enableval=$enable_fts4; enable_fts4=yes
11285 else
11286 enable_fts4=no
11287 fi
11288
11289 if test "${enable_fts4}" = "yes" ; then
11290 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4"
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11292 $as_echo_n "checking for library containing log... " >&6; }
11293 if ${ac_cv_search_log+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 ac_func_search_save_LIBS=$LIBS
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11299
11300 /* Override any GCC internal prototype to avoid an error.
11301 Use char because int might match the return type of a GCC
11302 builtin and then its argument prototype would still apply. */
11303 #ifdef __cplusplus
11304 extern "C"
11305 #endif
11306 char log ();
11307 int
11308 main ()
11309 {
11310 return log ();
11311 ;
11312 return 0;
11313 }
11314 _ACEOF
11315 for ac_lib in '' m; do
11316 if test -z "$ac_lib"; then
11317 ac_res="none required"
11318 else
11319 ac_res=-l$ac_lib
11320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11321 fi
11322 if ac_fn_c_try_link "$LINENO"; then :
11323 ac_cv_search_log=$ac_res
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext
11327 if ${ac_cv_search_log+:} false; then :
11328 break
11329 fi
11330 done
11331 if ${ac_cv_search_log+:} false; then :
11332
11333 else
11334 ac_cv_search_log=no
11335 fi
11336 rm conftest.$ac_ext
11337 LIBS=$ac_func_search_save_LIBS
11338 fi
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11340 $as_echo "$ac_cv_search_log" >&6; }
11341 ac_res=$ac_cv_search_log
11342 if test "$ac_res" != no; then :
11343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11344
11345 fi
11346
11347 fi
11348 # Check whether --enable-fts5 was given.
11349 if test "${enable_fts5+set}" = set; then :
11350 enableval=$enable_fts5; enable_fts5=yes
11351 else
11352 enable_fts5=no
11353 fi
11354
11355 if test "${enable_fts5}" = "yes" ; then
11356 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11358 $as_echo_n "checking for library containing log... " >&6; }
11359 if ${ac_cv_search_log+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 ac_func_search_save_LIBS=$LIBS
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11365
11366 /* Override any GCC internal prototype to avoid an error.
11367 Use char because int might match the return type of a GCC
11368 builtin and then its argument prototype would still apply. */
11369 #ifdef __cplusplus
11370 extern "C"
11371 #endif
11372 char log ();
11373 int
11374 main ()
11375 {
11376 return log ();
11377 ;
11378 return 0;
11379 }
11380 _ACEOF
11381 for ac_lib in '' m; do
11382 if test -z "$ac_lib"; then
11383 ac_res="none required"
11384 else
11385 ac_res=-l$ac_lib
11386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11387 fi
11388 if ac_fn_c_try_link "$LINENO"; then :
11389 ac_cv_search_log=$ac_res
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext
11393 if ${ac_cv_search_log+:} false; then :
11394 break
11395 fi
11396 done
11397 if ${ac_cv_search_log+:} false; then :
11398
11399 else
11400 ac_cv_search_log=no
11401 fi
11402 rm conftest.$ac_ext
11403 LIBS=$ac_func_search_save_LIBS
11404 fi
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11406 $as_echo "$ac_cv_search_log" >&6; }
11407 ac_res=$ac_cv_search_log
11408 if test "$ac_res" != no; then :
11409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11410
11411 fi
11412
11413 fi
11414
11415 #########
11416 # See whether we should enable JSON1
11417 # Check whether --enable-json1 was given.
11418 if test "${enable_json1+set}" = set; then :
11419 enableval=$enable_json1; enable_json1=yes
11420 else
11421 enable_json1=no
11422 fi
11423
11424 if test "${enable_json1}" = "yes" ; then
11425 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1"
11426 fi
11427
11428 #########
11429 # See whether we should enable RTREE
11430 # Check whether --enable-rtree was given.
11431 if test "${enable_rtree+set}" = set; then :
11432 enableval=$enable_rtree; enable_rtree=yes
11433 else
11434 enable_rtree=no
11435 fi
11436
11437 if test "${enable_rtree}" = "yes" ; then
11438 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE"
11439 fi
11440
11441 #########
11442 # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) param eter
11443 for option in $CFLAGS $CPPFLAGS
11444 do
11445 case $option in
11446 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11447 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11448 esac
11449 done
11450
11451
11452
11453 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11454 ac_temp_CFLAGS=""
11455 for option in $CFLAGS
11456 do
11457 case $option in
11458 -DSQLITE_OMIT*) ;;
11459 -DSQLITE_ENABLE*) ;;
11460 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11461 esac
11462 done
11463 CFLAGS=$ac_temp_CFLAGS
11464
11465
11466 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11467 ac_temp_CPPFLAGS=""
11468 for option in $CPPFLAGS
11469 do
11470 case $option in
11471 -DSQLITE_OMIT*) ;;
11472 -DSQLITE_ENABLE*) ;;
11473 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11474 esac
11475 done
11476 CPPFLAGS=$ac_temp_CPPFLAGS
11477
11478
11479 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11480 ac_temp_BUILD_CFLAGS=""
11481 for option in $BUILD_CFLAGS
11482 do
11483 case $option in
11484 -DSQLITE_OMIT*) ;;
11485 -DSQLITE_ENABLE*) ;;
11486 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11487 esac
11488 done
11489 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11490
11491
11492 #########
11493 # See whether we should use GCOV
11494 # Check whether --enable-gcov was given.
11495 if test "${enable_gcov+set}" = set; then :
11496 enableval=$enable_gcov; use_gcov=$enableval
11497 else
11498 use_gcov=no
11499 fi
11500
11501 if test "${use_gcov}" = "yes" ; then
11502 USE_GCOV=1
11503 else
11504 USE_GCOV=0
11505 fi
11506
11507
11508
11509 #########
11510 # Output the config header
11511 ac_config_headers="$ac_config_headers config.h"
11512
11513
11514 #########
11515 # Generate the output files.
11516 #
11517
11518 ac_config_files="$ac_config_files Makefile sqlite3.pc"
11519
11520 cat >confcache <<\_ACEOF
11521 # This file is a shell script that caches the results of configure
11522 # tests run on this system so they can be shared between configure
11523 # scripts and configure runs, see configure's option --config-cache.
11524 # It is not useful on other systems. If it contains results you don't
11525 # want to keep, you may remove or edit it.
11526 #
11527 # config.status only pays attention to the cache file if you give it
11528 # the --recheck option to rerun configure.
11529 #
11530 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11531 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11532 # following values.
11533
11534 _ACEOF
11535
11536 # The following way of writing the cache mishandles newlines in values,
11537 # but we know of no workaround that is simple, portable, and efficient.
11538 # So, we kill variables containing newlines.
11539 # Ultrix sh set writes to stderr and can't be redirected directly,
11540 # and sets the high bit in the cache file unless we assign to the vars.
11541 (
11542 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; d o
11543 eval ac_val=\$$ac_var
11544 case $ac_val in #(
11545 *${as_nl}*)
11546 case $ac_var in #(
11547 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ ac_var contains a newline" >&5
11548 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11549 esac
11550 case $ac_var in #(
11551 _ | IFS | as_nl) ;; #(
11552 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11553 *) { eval $ac_var=; unset $ac_var;} ;;
11554 esac ;;
11555 esac
11556 done
11557
11558 (set) 2>&1 |
11559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11560 *${as_nl}ac_space=\ *)
11561 # `set' does not quote correctly, so add quotes: double-quote
11562 # substitution turns \\\\ into \\, and sed turns \\ into \.
11563 sed -n \
11564 "s/'/'\\\\''/g;
11565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11566 ;; #(
11567 *)
11568 # `set' quotes correctly as required by POSIX, so do not add quotes.
11569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11570 ;;
11571 esac |
11572 sort
11573 ) |
11574 sed '
11575 /^ac_cv_env_/b end
11576 t clear
11577 :clear
11578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11579 t end
11580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11581 :end' >>confcache
11582 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11583 if test -w "$cache_file"; then
11584 if test "x$cache_file" != "x/dev/null"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11586 $as_echo "$as_me: updating cache $cache_file" >&6;}
11587 if test ! -f "$cache_file" || test -h "$cache_file"; then
11588 cat confcache >"$cache_file"
11589 else
11590 case $cache_file in #(
11591 */* | ?:*)
11592 mv -f confcache "$cache_file"$$ &&
11593 mv -f "$cache_file"$$ "$cache_file" ;; #(
11594 *)
11595 mv -f confcache "$cache_file" ;;
11596 esac
11597 fi
11598 fi
11599 else
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cach e_file" >&5
11601 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11602 fi
11603 fi
11604 rm -f confcache
11605
11606 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11607 # Let make expand exec_prefix.
11608 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11609
11610 DEFS=-DHAVE_CONFIG_H
11611
11612 ac_libobjs=
11613 ac_ltlibobjs=
11614 U=
11615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11616 # 1. Remove the extension, and $U if already installed.
11617 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11618 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11619 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11620 # will be set to the directory where LIBOBJS objects are built.
11621 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11622 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11623 done
11624 LIBOBJS=$ac_libobjs
11625
11626 LTLIBOBJS=$ac_ltlibobjs
11627
11628
11629
11630 : "${CONFIG_STATUS=./config.status}"
11631 ac_write_fail=0
11632 ac_clean_files_save=$ac_clean_files
11633 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11635 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11636 as_write_fail=0
11637 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11638 #! $SHELL
11639 # Generated by $as_me.
11640 # Run this file to recreate the current configuration.
11641 # Compiler output produced by configure, useful for debugging
11642 # configure, is in config.log if it exists.
11643
11644 debug=false
11645 ac_cs_recheck=false
11646 ac_cs_silent=false
11647
11648 SHELL=\${CONFIG_SHELL-$SHELL}
11649 export SHELL
11650 _ASEOF
11651 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11652 ## -------------------- ##
11653 ## M4sh Initialization. ##
11654 ## -------------------- ##
11655
11656 # Be more Bourne compatible
11657 DUALCASE=1; export DUALCASE # for MKS sh
11658 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11659 emulate sh
11660 NULLCMD=:
11661 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11662 # is contrary to our usage. Disable this feature.
11663 alias -g '${1+"$@"}'='"$@"'
11664 setopt NO_GLOB_SUBST
11665 else
11666 case `(set -o) 2>/dev/null` in #(
11667 *posix*) :
11668 set -o posix ;; #(
11669 *) :
11670 ;;
11671 esac
11672 fi
11673
11674
11675 as_nl='
11676 '
11677 export as_nl
11678 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11679 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11682 # Prefer a ksh shell builtin over an external printf program on Solaris,
11683 # but without wasting forks for bash or zsh.
11684 if test -z "$BASH_VERSION$ZSH_VERSION" \
11685 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11686 as_echo='print -r --'
11687 as_echo_n='print -rn --'
11688 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11689 as_echo='printf %s\n'
11690 as_echo_n='printf %s'
11691 else
11692 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11693 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11694 as_echo_n='/usr/ucb/echo -n'
11695 else
11696 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11697 as_echo_n_body='eval
11698 arg=$1;
11699 case $arg in #(
11700 *"$as_nl"*)
11701 expr "X$arg" : "X\\(.*\\)$as_nl";
11702 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11703 esac;
11704 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11705 '
11706 export as_echo_n_body
11707 as_echo_n='sh -c $as_echo_n_body as_echo'
11708 fi
11709 export as_echo_body
11710 as_echo='sh -c $as_echo_body as_echo'
11711 fi
11712
11713 # The user is always right.
11714 if test "${PATH_SEPARATOR+set}" != set; then
11715 PATH_SEPARATOR=:
11716 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11717 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11718 PATH_SEPARATOR=';'
11719 }
11720 fi
11721
11722
11723 # IFS
11724 # We need space, tab and new line, in precisely that order. Quoting is
11725 # there to prevent editors from complaining about space-tab.
11726 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11727 # splitting by setting IFS to empty value.)
11728 IFS=" "" $as_nl"
11729
11730 # Find who we are. Look in the path if we contain no directory separator.
11731 as_myself=
11732 case $0 in #((
11733 *[\\/]* ) as_myself=$0 ;;
11734 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735 for as_dir in $PATH
11736 do
11737 IFS=$as_save_IFS
11738 test -z "$as_dir" && as_dir=.
11739 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11740 done
11741 IFS=$as_save_IFS
11742
11743 ;;
11744 esac
11745 # We did not find ourselves, most probably we were run as `sh COMMAND'
11746 # in which case we are not to be found in the path.
11747 if test "x$as_myself" = x; then
11748 as_myself=$0
11749 fi
11750 if test ! -f "$as_myself"; then
11751 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file n ame" >&2
11752 exit 1
11753 fi
11754
11755 # Unset variables that we do not need and which cause bugs (e.g. in
11756 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11757 # suppresses any "Segmentation fault" message there. '((' could
11758 # trigger a bug in pdksh 5.2.14.
11759 for as_var in BASH_ENV ENV MAIL MAILPATH
11760 do eval test x\${$as_var+set} = xset \
11761 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11762 done
11763 PS1='$ '
11764 PS2='> '
11765 PS4='+ '
11766
11767 # NLS nuisances.
11768 LC_ALL=C
11769 export LC_ALL
11770 LANGUAGE=C
11771 export LANGUAGE
11772
11773 # CDPATH.
11774 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11775
11776
11777 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11778 # ----------------------------------------
11779 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11780 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11781 # script with STATUS, using 1 if that was 0.
11782 as_fn_error ()
11783 {
11784 as_status=$1; test $as_status -eq 0 && as_status=1
11785 if test "$4"; then
11786 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11787 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11788 fi
11789 $as_echo "$as_me: error: $2" >&2
11790 as_fn_exit $as_status
11791 } # as_fn_error
11792
11793
11794 # as_fn_set_status STATUS
11795 # -----------------------
11796 # Set $? to STATUS, without forking.
11797 as_fn_set_status ()
11798 {
11799 return $1
11800 } # as_fn_set_status
11801
11802 # as_fn_exit STATUS
11803 # -----------------
11804 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11805 as_fn_exit ()
11806 {
11807 set +e
11808 as_fn_set_status $1
11809 exit $1
11810 } # as_fn_exit
11811
11812 # as_fn_unset VAR
11813 # ---------------
11814 # Portably unset VAR.
11815 as_fn_unset ()
11816 {
11817 { eval $1=; unset $1;}
11818 }
11819 as_unset=as_fn_unset
11820 # as_fn_append VAR VALUE
11821 # ----------------------
11822 # Append the text in VALUE to the end of the definition contained in VAR. Take
11823 # advantage of any shell optimizations that allow amortized linear growth over
11824 # repeated appends, instead of the typical quadratic growth present in naive
11825 # implementations.
11826 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11827 eval 'as_fn_append ()
11828 {
11829 eval $1+=\$2
11830 }'
11831 else
11832 as_fn_append ()
11833 {
11834 eval $1=\$$1\$2
11835 }
11836 fi # as_fn_append
11837
11838 # as_fn_arith ARG...
11839 # ------------------
11840 # Perform arithmetic evaluation on the ARGs, and store the result in the
11841 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11842 # must be portable across $(()) and expr.
11843 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11844 eval 'as_fn_arith ()
11845 {
11846 as_val=$(( $* ))
11847 }'
11848 else
11849 as_fn_arith ()
11850 {
11851 as_val=`expr "$@" || test $? -eq 1`
11852 }
11853 fi # as_fn_arith
11854
11855
11856 if expr a : '\(a\)' >/dev/null 2>&1 &&
11857 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11858 as_expr=expr
11859 else
11860 as_expr=false
11861 fi
11862
11863 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11864 as_basename=basename
11865 else
11866 as_basename=false
11867 fi
11868
11869 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11870 as_dirname=dirname
11871 else
11872 as_dirname=false
11873 fi
11874
11875 as_me=`$as_basename -- "$0" ||
11876 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11877 X"$0" : 'X\(//\)$' \| \
11878 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11879 $as_echo X/"$0" |
11880 sed '/^.*\/\([^/][^/]*\)\/*$/{
11881 s//\1/
11882 q
11883 }
11884 /^X\/\(\/\/\)$/{
11885 s//\1/
11886 q
11887 }
11888 /^X\/\(\/\).*/{
11889 s//\1/
11890 q
11891 }
11892 s/.*/./; q'`
11893
11894 # Avoid depending upon Character Ranges.
11895 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11896 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11897 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11898 as_cr_digits='0123456789'
11899 as_cr_alnum=$as_cr_Letters$as_cr_digits
11900
11901 ECHO_C= ECHO_N= ECHO_T=
11902 case `echo -n x` in #(((((
11903 -n*)
11904 case `echo 'xy\c'` in
11905 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11906 xy) ECHO_C='\c';;
11907 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11908 ECHO_T=' ';;
11909 esac;;
11910 *)
11911 ECHO_N='-n';;
11912 esac
11913
11914 rm -f conf$$ conf$$.exe conf$$.file
11915 if test -d conf$$.dir; then
11916 rm -f conf$$.dir/conf$$.file
11917 else
11918 rm -f conf$$.dir
11919 mkdir conf$$.dir 2>/dev/null
11920 fi
11921 if (echo >conf$$.file) 2>/dev/null; then
11922 if ln -s conf$$.file conf$$ 2>/dev/null; then
11923 as_ln_s='ln -s'
11924 # ... but there are two gotchas:
11925 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11926 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11927 # In both cases, we have to default to `cp -pR'.
11928 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11929 as_ln_s='cp -pR'
11930 elif ln conf$$.file conf$$ 2>/dev/null; then
11931 as_ln_s=ln
11932 else
11933 as_ln_s='cp -pR'
11934 fi
11935 else
11936 as_ln_s='cp -pR'
11937 fi
11938 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11939 rmdir conf$$.dir 2>/dev/null
11940
11941
11942 # as_fn_mkdir_p
11943 # -------------
11944 # Create "$as_dir" as a directory, including parents if necessary.
11945 as_fn_mkdir_p ()
11946 {
11947
11948 case $as_dir in #(
11949 -*) as_dir=./$as_dir;;
11950 esac
11951 test -d "$as_dir" || eval $as_mkdir_p || {
11952 as_dirs=
11953 while :; do
11954 case $as_dir in #(
11955 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11956 *) as_qdir=$as_dir;;
11957 esac
11958 as_dirs="'$as_qdir' $as_dirs"
11959 as_dir=`$as_dirname -- "$as_dir" ||
11960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11961 X"$as_dir" : 'X\(//\)[^/]' \| \
11962 X"$as_dir" : 'X\(//\)$' \| \
11963 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11964 $as_echo X"$as_dir" |
11965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11966 s//\1/
11967 q
11968 }
11969 /^X\(\/\/\)[^/].*/{
11970 s//\1/
11971 q
11972 }
11973 /^X\(\/\/\)$/{
11974 s//\1/
11975 q
11976 }
11977 /^X\(\/\).*/{
11978 s//\1/
11979 q
11980 }
11981 s/.*/./; q'`
11982 test -d "$as_dir" && break
11983 done
11984 test -z "$as_dirs" || eval "mkdir $as_dirs"
11985 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11986
11987
11988 } # as_fn_mkdir_p
11989 if mkdir -p . 2>/dev/null; then
11990 as_mkdir_p='mkdir -p "$as_dir"'
11991 else
11992 test -d ./-p && rmdir ./-p
11993 as_mkdir_p=false
11994 fi
11995
11996
11997 # as_fn_executable_p FILE
11998 # -----------------------
11999 # Test if FILE is an executable regular file.
12000 as_fn_executable_p ()
12001 {
12002 test -f "$1" && test -x "$1"
12003 } # as_fn_executable_p
12004 as_test_x='test -x'
12005 as_executable_p=as_fn_executable_p
12006
12007 # Sed expression to map a string onto a valid CPP name.
12008 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12009
12010 # Sed expression to map a string onto a valid variable name.
12011 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12012
12013
12014 exec 6>&1
12015 ## ----------------------------------- ##
12016 ## Main body of $CONFIG_STATUS script. ##
12017 ## ----------------------------------- ##
12018 _ASEOF
12019 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12020
12021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12022 # Save the log message, to keep $0 and so on meaningful, and to
12023 # report actual input values of CONFIG_FILES etc. instead of their
12024 # values after options handling.
12025 ac_log="
12026 This file was extended by sqlite $as_me 3.10.2, which was
12027 generated by GNU Autoconf 2.69. Invocation command line was
12028
12029 CONFIG_FILES = $CONFIG_FILES
12030 CONFIG_HEADERS = $CONFIG_HEADERS
12031 CONFIG_LINKS = $CONFIG_LINKS
12032 CONFIG_COMMANDS = $CONFIG_COMMANDS
12033 $ $0 $@
12034
12035 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12036 "
12037
12038 _ACEOF
12039
12040 case $ac_config_files in *"
12041 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12042 esac
12043
12044 case $ac_config_headers in *"
12045 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12046 esac
12047
12048
12049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12050 # Files that config.status was made for.
12051 config_files="$ac_config_files"
12052 config_headers="$ac_config_headers"
12053 config_commands="$ac_config_commands"
12054
12055 _ACEOF
12056
12057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12058 ac_cs_usage="\
12059 \`$as_me' instantiates files and other configuration actions
12060 from templates according to the current configuration. Unless the files
12061 and actions are specified as TAGs, all are instantiated by default.
12062
12063 Usage: $0 [OPTION]... [TAG]...
12064
12065 -h, --help print this help, then exit
12066 -V, --version print version number and configuration settings, then exit
12067 --config print configuration, then exit
12068 -q, --quiet, --silent
12069 do not print progress messages
12070 -d, --debug don't remove temporary files
12071 --recheck update $as_me by reconfiguring in the same conditions
12072 --file=FILE[:TEMPLATE]
12073 instantiate the configuration file FILE
12074 --header=FILE[:TEMPLATE]
12075 instantiate the configuration header FILE
12076
12077 Configuration files:
12078 $config_files
12079
12080 Configuration headers:
12081 $config_headers
12082
12083 Configuration commands:
12084 $config_commands
12085
12086 Report bugs to the package provider."
12087
12088 _ACEOF
12089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12090 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g '`"
12091 ac_cs_version="\\
12092 sqlite config.status 3.10.2
12093 configured by $0, generated by GNU Autoconf 2.69,
12094 with options \\"\$ac_cs_config\\"
12095
12096 Copyright (C) 2012 Free Software Foundation, Inc.
12097 This config.status script is free software; the Free Software Foundation
12098 gives unlimited permission to copy, distribute and modify it."
12099
12100 ac_pwd='$ac_pwd'
12101 srcdir='$srcdir'
12102 INSTALL='$INSTALL'
12103 test -n "\$AWK" || AWK=awk
12104 _ACEOF
12105
12106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12107 # The default lists apply if the user does not specify any file.
12108 ac_need_defaults=:
12109 while test $# != 0
12110 do
12111 case $1 in
12112 --*=?*)
12113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12115 ac_shift=:
12116 ;;
12117 --*=)
12118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12119 ac_optarg=
12120 ac_shift=:
12121 ;;
12122 *)
12123 ac_option=$1
12124 ac_optarg=$2
12125 ac_shift=shift
12126 ;;
12127 esac
12128
12129 case $ac_option in
12130 # Handling of the options.
12131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12132 ac_cs_recheck=: ;;
12133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12134 $as_echo "$ac_cs_version"; exit ;;
12135 --config | --confi | --conf | --con | --co | --c )
12136 $as_echo "$ac_cs_config"; exit ;;
12137 --debug | --debu | --deb | --de | --d | -d )
12138 debug=: ;;
12139 --file | --fil | --fi | --f )
12140 $ac_shift
12141 case $ac_optarg in
12142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12143 '') as_fn_error $? "missing file argument" ;;
12144 esac
12145 as_fn_append CONFIG_FILES " '$ac_optarg'"
12146 ac_need_defaults=false;;
12147 --header | --heade | --head | --hea )
12148 $ac_shift
12149 case $ac_optarg in
12150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12151 esac
12152 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12153 ac_need_defaults=false;;
12154 --he | --h)
12155 # Conflict between --help and --header
12156 as_fn_error $? "ambiguous option: \`$1'
12157 Try \`$0 --help' for more information.";;
12158 --help | --hel | -h )
12159 $as_echo "$ac_cs_usage"; exit ;;
12160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12161 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12162 ac_cs_silent=: ;;
12163
12164 # This is an error.
12165 -*) as_fn_error $? "unrecognized option: \`$1'
12166 Try \`$0 --help' for more information." ;;
12167
12168 *) as_fn_append ac_config_targets " $1"
12169 ac_need_defaults=false ;;
12170
12171 esac
12172 shift
12173 done
12174
12175 ac_configure_extra_args=
12176
12177 if $ac_cs_silent; then
12178 exec 6>/dev/null
12179 ac_configure_extra_args="$ac_configure_extra_args --silent"
12180 fi
12181
12182 _ACEOF
12183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12184 if \$ac_cs_recheck; then
12185 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --n o-recursion
12186 shift
12187 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12188 CONFIG_SHELL='$SHELL'
12189 export CONFIG_SHELL
12190 exec "\$@"
12191 fi
12192
12193 _ACEOF
12194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12195 exec 5>>config.log
12196 {
12197 echo
12198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12199 ## Running $as_me. ##
12200 _ASBOX
12201 $as_echo "$ac_log"
12202 } >&5
12203
12204 _ACEOF
12205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12206 #
12207 # INIT-COMMANDS
12208 #
12209
12210
12211 # The HP-UX ksh and POSIX shell print the target directory to stdout
12212 # if CDPATH is set.
12213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12214
12215 sed_quote_subst='$sed_quote_subst'
12216 double_quote_subst='$double_quote_subst'
12217 delay_variable_subst='$delay_variable_subst'
12218 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12219 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst" `'
12220 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12221 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12222 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12223 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_qu ote_subst"`'
12224 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12225 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12226 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12227 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12228 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12229 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12230 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12231 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12232 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12233 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12234 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12235 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12236 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12237 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12238 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12239 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12240 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12241 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12242 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12243 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12244 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12245 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12246 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12247 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_ quote_subst"`'
12248 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst" `'
12249 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12250 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12251 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12252 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12253 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_ quote_subst"`'
12254 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_sin gle_quote_subst"`'
12255 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_su bst"`'
12256 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12257 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12258 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12259 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12260 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12261 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12262 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_ c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12263 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global _symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12264 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12265 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12266 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12267 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12268 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12269 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_qu ote_subst"`'
12270 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_ quote_subst"`'
12271 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_s ingle_quote_subst"`'
12272 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_s ingle_quote_subst"`'
12273 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12274 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12275 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12276 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12277 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12278 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12279 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12280 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12281 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_ quote_subst"`'
12282 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_ quote_subst"`'
12283 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes " | $Xsed -e "$delay_single_quote_subst"`'
12284 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay _single_quote_subst"`'
12285 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_s ingle_quote_subst"`'
12286 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_singl e_quote_subst"`'
12287 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$del ay_single_quote_subst"`'
12288 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12289 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12290 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_qu ote_subst"`'
12291 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12292 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quot e_subst"`'
12293 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12294 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_ quote_subst"`'
12295 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_ subst"`'
12296 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$del ay_single_quote_subst"`'
12297 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12298 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$del ay_single_quote_subst"`'
12299 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subs t"`'
12300 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay _single_quote_subst"`'
12301 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_su bst"`'
12302 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_sin gle_quote_subst"`'
12303 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quot e_subst"`'
12304 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12305 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_su bst"`'
12306 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_su bst"`'
12307 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_singl e_quote_subst"`'
12308 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_qu ote_subst"`'
12309 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subs t"`'
12310 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subs t"`'
12311 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12312 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst" `'
12313 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$d elay_single_quote_subst"`'
12314 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subs t"`'
12315 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12316 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12317 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12318 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12319 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e " $delay_single_quote_subst"`'
12320 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12321 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quot e_subst"`'
12322 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12323 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_su bst"`'
12324 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quot e_subst"`'
12325 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12326 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12327 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quot e_subst"`'
12328 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay _single_quote_subst"`'
12329 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$d elay_single_quote_subst"`'
12330 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subs t"`'
12331 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12332 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quot e_subst"`'
12333 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$del ay_single_quote_subst"`'
12334 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12335 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12336
12337 LTCC='$LTCC'
12338 LTCFLAGS='$LTCFLAGS'
12339 compiler='$compiler_DEFAULT'
12340
12341 # Quote evaled strings.
12342 for var in SED \
12343 GREP \
12344 EGREP \
12345 FGREP \
12346 LD \
12347 NM \
12348 LN_S \
12349 lt_SP2NL \
12350 lt_NL2SP \
12351 reload_flag \
12352 OBJDUMP \
12353 deplibs_check_method \
12354 file_magic_cmd \
12355 AR \
12356 AR_FLAGS \
12357 STRIP \
12358 RANLIB \
12359 CC \
12360 CFLAGS \
12361 compiler \
12362 lt_cv_sys_global_symbol_pipe \
12363 lt_cv_sys_global_symbol_to_cdecl \
12364 lt_cv_sys_global_symbol_to_c_name_address \
12365 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12366 SHELL \
12367 ECHO \
12368 lt_prog_compiler_no_builtin_flag \
12369 lt_prog_compiler_wl \
12370 lt_prog_compiler_pic \
12371 lt_prog_compiler_static \
12372 lt_cv_prog_compiler_c_o \
12373 need_locks \
12374 DSYMUTIL \
12375 NMEDIT \
12376 LIPO \
12377 OTOOL \
12378 OTOOL64 \
12379 shrext_cmds \
12380 export_dynamic_flag_spec \
12381 whole_archive_flag_spec \
12382 compiler_needs_object \
12383 with_gnu_ld \
12384 allow_undefined_flag \
12385 no_undefined_flag \
12386 hardcode_libdir_flag_spec \
12387 hardcode_libdir_flag_spec_ld \
12388 hardcode_libdir_separator \
12389 fix_srcfile_path \
12390 exclude_expsyms \
12391 include_expsyms \
12392 file_list_spec \
12393 variables_saved_for_relink \
12394 libname_spec \
12395 library_names_spec \
12396 soname_spec \
12397 finish_eval \
12398 old_striplib \
12399 striplib; do
12400 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12401 *[\\\\\\\`\\"\\\$]*)
12402 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$s ed_quote_subst\\"\\\`\\\\\\""
12403 ;;
12404 *)
12405 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12406 ;;
12407 esac
12408 done
12409
12410 # Double-quote double-evaled strings.
12411 for var in reload_cmds \
12412 old_postinstall_cmds \
12413 old_postuninstall_cmds \
12414 old_archive_cmds \
12415 extract_expsyms_cmds \
12416 old_archive_from_new_cmds \
12417 old_archive_from_expsyms_cmds \
12418 archive_cmds \
12419 archive_expsym_cmds \
12420 module_cmds \
12421 module_expsym_cmds \
12422 export_symbols_cmds \
12423 prelink_cmds \
12424 postinstall_cmds \
12425 postuninstall_cmds \
12426 finish_cmds \
12427 sys_lib_search_path_spec \
12428 sys_lib_dlsearch_path_spec; do
12429 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12430 *[\\\\\\\`\\"\\\$]*)
12431 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$d ouble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst \\"\\\`\\\\\\""
12432 ;;
12433 *)
12434 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12435 ;;
12436 esac
12437 done
12438
12439 # Fix-up fallback echo if it was mangled by the above quoting rules.
12440 case \$lt_ECHO in
12441 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\ \\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12442 ;;
12443 esac
12444
12445 ac_aux_dir='$ac_aux_dir'
12446 xsi_shell='$xsi_shell'
12447 lt_shell_append='$lt_shell_append'
12448
12449 # See if we are running on zsh, and set the options which allow our
12450 # commands through without removal of \ escapes INIT.
12451 if test -n "\${ZSH_VERSION+set}" ; then
12452 setopt NO_GLOB_SUBST
12453 fi
12454
12455
12456 PACKAGE='$PACKAGE'
12457 VERSION='$VERSION'
12458 TIMESTAMP='$TIMESTAMP'
12459 RM='$RM'
12460 ofile='$ofile'
12461
12462
12463
12464
12465 _ACEOF
12466
12467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12468
12469 # Handling of arguments.
12470 for ac_config_target in $ac_config_targets
12471 do
12472 case $ac_config_target in
12473 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12474 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12475 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12476 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12477
12478 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12479 esac
12480 done
12481
12482
12483 # If the user did not use the arguments to specify the items to instantiate,
12484 # then the envvar interface is used. Set only those that are not.
12485 # We use the long form for the default assignment because of an extremely
12486 # bizarre bug on SunOS 4.1.3.
12487 if $ac_need_defaults; then
12488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12491 fi
12492
12493 # Have a temporary directory for convenience. Make it in the build tree
12494 # simply because there is no reason against having it here, and in addition,
12495 # creating and moving files from /tmp can sometimes cause problems.
12496 # Hook for its removal unless debugging.
12497 # Note that there is a small window in which the directory will not be cleaned:
12498 # after its creation but before its name has been assigned to `$tmp'.
12499 $debug ||
12500 {
12501 tmp= ac_tmp=
12502 trap 'exit_status=$?
12503 : "${ac_tmp:=$tmp}"
12504 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12505 ' 0
12506 trap 'as_fn_exit 1' 1 2 13 15
12507 }
12508 # Create a (secure) tmp directory for tmp files.
12509
12510 {
12511 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12512 test -d "$tmp"
12513 } ||
12514 {
12515 tmp=./conf$$-$RANDOM
12516 (umask 077 && mkdir "$tmp")
12517 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12518 ac_tmp=$tmp
12519
12520 # Set up the scripts for CONFIG_FILES section.
12521 # No need to generate them if there are no CONFIG_FILES.
12522 # This happens for instance with `./config.status config.h'.
12523 if test -n "$CONFIG_FILES"; then
12524
12525
12526 ac_cr=`echo X | tr X '\015'`
12527 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12528 # But we know of no other shell where ac_cr would be empty at this
12529 # point, so we can use a bashism as a fallback.
12530 if test "x$ac_cr" = x; then
12531 eval ac_cr=\$\'\\r\'
12532 fi
12533 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12534 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12535 ac_cs_awk_cr='\\r'
12536 else
12537 ac_cs_awk_cr=$ac_cr
12538 fi
12539
12540 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12541 _ACEOF
12542
12543
12544 {
12545 echo "cat >conf$$subs.awk <<_ACEOF" &&
12546 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12547 echo "_ACEOF"
12548 } >conf$$subs.sh ||
12549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12550 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12551 ac_delim='%!_!# '
12552 for ac_last_try in false false false false false :; do
12553 . ./conf$$subs.sh ||
12554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12555
12556 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12557 if test $ac_delim_n = $ac_delim_num; then
12558 break
12559 elif $ac_last_try; then
12560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12561 else
12562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12563 fi
12564 done
12565 rm -f conf$$subs.sh
12566
12567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12568 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12569 _ACEOF
12570 sed -n '
12571 h
12572 s/^/S["/; s/!.*/"]=/
12573 p
12574 g
12575 s/^[^!]*!//
12576 :repl
12577 t repl
12578 s/'"$ac_delim"'$//
12579 t delim
12580 :nl
12581 h
12582 s/\(.\{148\}\)..*/\1/
12583 t more1
12584 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12585 p
12586 n
12587 b repl
12588 :more1
12589 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12590 p
12591 g
12592 s/.\{148\}//
12593 t nl
12594 :delim
12595 h
12596 s/\(.\{148\}\)..*/\1/
12597 t more2
12598 s/["\\]/\\&/g; s/^/"/; s/$/"/
12599 p
12600 b
12601 :more2
12602 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12603 p
12604 g
12605 s/.\{148\}//
12606 t delim
12607 ' <conf$$subs.awk | sed '
12608 /^[^""]/{
12609 N
12610 s/\n//
12611 }
12612 ' >>$CONFIG_STATUS || ac_write_fail=1
12613 rm -f conf$$subs.awk
12614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12615 _ACAWK
12616 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12617 for (key in S) S_is_set[key] = 1
12618 FS = ""
12619
12620 }
12621 {
12622 line = $ 0
12623 nfields = split(line, field, "@")
12624 substed = 0
12625 len = length(field[1])
12626 for (i = 2; i < nfields; i++) {
12627 key = field[i]
12628 keylen = length(key)
12629 if (S_is_set[key]) {
12630 value = S[key]
12631 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12632 len += length(value) + length(field[++i])
12633 substed = 1
12634 } else
12635 len += 1 + keylen
12636 }
12637
12638 print line
12639 }
12640
12641 _ACAWK
12642 _ACEOF
12643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12644 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12645 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12646 else
12647 cat
12648 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12649 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12650 _ACEOF
12651
12652 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12653 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12654 # trailing colons and then remove the whole line if VPATH becomes empty
12655 # (actually we leave an empty line to preserve line numbers).
12656 if test "x$srcdir" = x.; then
12657 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12658 h
12659 s///
12660 s/^/:/
12661 s/[ ]*$/:/
12662 s/:\$(srcdir):/:/g
12663 s/:\${srcdir}:/:/g
12664 s/:@srcdir@:/:/g
12665 s/^:*//
12666 s/:*$//
12667 x
12668 s/\(=[ ]*\).*/\1/
12669 G
12670 s/\n//
12671 s/^[^=]*=[ ]*$//
12672 }'
12673 fi
12674
12675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12676 fi # test -n "$CONFIG_FILES"
12677
12678 # Set up the scripts for CONFIG_HEADERS section.
12679 # No need to generate them if there are no CONFIG_HEADERS.
12680 # This happens for instance with `./config.status Makefile'.
12681 if test -n "$CONFIG_HEADERS"; then
12682 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12683 BEGIN {
12684 _ACEOF
12685
12686 # Transform confdefs.h into an awk script `defines.awk', embedded as
12687 # here-document in config.status, that substitutes the proper values into
12688 # config.h.in to produce config.h.
12689
12690 # Create a delimiter string that does not exist in confdefs.h, to ease
12691 # handling of long lines.
12692 ac_delim='%!_!# '
12693 for ac_last_try in false false :; do
12694 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12695 if test -z "$ac_tt"; then
12696 break
12697 elif $ac_last_try; then
12698 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12699 else
12700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12701 fi
12702 done
12703
12704 # For the awk script, D is an array of macro values keyed by name,
12705 # likewise P contains macro parameters if any. Preserve backslash
12706 # newline sequences.
12707
12708 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12709 sed -n '
12710 s/.\{148\}/&'"$ac_delim"'/g
12711 t rset
12712 :rset
12713 s/^[ ]*#[ ]*define[ ][ ]*/ /
12714 t def
12715 d
12716 :def
12717 s/\\$//
12718 t bsnl
12719 s/["\\]/\\&/g
12720 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12721 D["\1"]=" \3"/p
12722 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12723 d
12724 :bsnl
12725 s/["\\]/\\&/g
12726 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12727 D["\1"]=" \3\\\\\\n"\\/p
12728 t cont
12729 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12730 t cont
12731 d
12732 :cont
12733 n
12734 s/.\{148\}/&'"$ac_delim"'/g
12735 t clear
12736 :clear
12737 s/\\$//
12738 t bsnlc
12739 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12740 d
12741 :bsnlc
12742 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12743 b cont
12744 ' <confdefs.h | sed '
12745 s/'"$ac_delim"'/"\\\
12746 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12747
12748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12749 for (key in D) D_is_set[key] = 1
12750 FS = ""
12751 }
12752 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12753 line = \$ 0
12754 split(line, arg, " ")
12755 if (arg[1] == "#") {
12756 defundef = arg[2]
12757 mac1 = arg[3]
12758 } else {
12759 defundef = substr(arg[1], 2)
12760 mac1 = arg[2]
12761 }
12762 split(mac1, mac2, "(") #)
12763 macro = mac2[1]
12764 prefix = substr(line, 1, index(line, defundef) - 1)
12765 if (D_is_set[macro]) {
12766 # Preserve the white space surrounding the "#".
12767 print prefix "define", macro P[macro] D[macro]
12768 next
12769 } else {
12770 # Replace #undef with comments. This is necessary, for example,
12771 # in the case of _POSIX_SOURCE, which is predefined and required
12772 # on some systems where configure will not decide to define it.
12773 if (defundef == "undef") {
12774 print "/*", prefix defundef, macro, "*/"
12775 next
12776 }
12777 }
12778 }
12779 { print }
12780 _ACAWK
12781 _ACEOF
12782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12783 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12784 fi # test -n "$CONFIG_HEADERS"
12785
12786
12787 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12788 shift
12789 for ac_tag
12790 do
12791 case $ac_tag in
12792 :[FHLC]) ac_mode=$ac_tag; continue;;
12793 esac
12794 case $ac_mode$ac_tag in
12795 :[FHL]*:*);;
12796 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12797 :[FH]-) ac_tag=-:-;;
12798 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12799 esac
12800 ac_save_IFS=$IFS
12801 IFS=:
12802 set x $ac_tag
12803 IFS=$ac_save_IFS
12804 shift
12805 ac_file=$1
12806 shift
12807
12808 case $ac_mode in
12809 :L) ac_source=$1;;
12810 :[FH])
12811 ac_file_inputs=
12812 for ac_f
12813 do
12814 case $ac_f in
12815 -) ac_f="$ac_tmp/stdin";;
12816 *) # Look for the file first in the build tree, then in the source tree
12817 # (if the path is not absolute). The absolute path cannot be DOS-style ,
12818 # because $ac_f cannot contain `:'.
12819 test -f "$ac_f" ||
12820 case $ac_f in
12821 [\\/$]*) false;;
12822 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12823 esac ||
12824 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12825 esac
12826 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; es ac
12827 as_fn_append ac_file_inputs " '$ac_f'"
12828 done
12829
12830 # Let's still pretend it is `configure' which instantiates (i.e., don't
12831 # use $as_me), people would be surprised to read:
12832 # /* config.h. Generated by config.status. */
12833 configure_input='Generated from '`
12834 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12835 `' by configure.'
12836 if test x"$ac_file" != x-; then
12837 configure_input="$ac_file. $configure_input"
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12839 $as_echo "$as_me: creating $ac_file" >&6;}
12840 fi
12841 # Neutralize special characters interpreted by sed in replacement strings.
12842 case $configure_input in #(
12843 *\&* | *\|* | *\\* )
12844 ac_sed_conf_input=`$as_echo "$configure_input" |
12845 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12846 *) ac_sed_conf_input=$configure_input;;
12847 esac
12848
12849 case $ac_tag in
12850 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12852 esac
12853 ;;
12854 esac
12855
12856 ac_dir=`$as_dirname -- "$ac_file" ||
12857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12858 X"$ac_file" : 'X\(//\)[^/]' \| \
12859 X"$ac_file" : 'X\(//\)$' \| \
12860 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12861 $as_echo X"$ac_file" |
12862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12863 s//\1/
12864 q
12865 }
12866 /^X\(\/\/\)[^/].*/{
12867 s//\1/
12868 q
12869 }
12870 /^X\(\/\/\)$/{
12871 s//\1/
12872 q
12873 }
12874 /^X\(\/\).*/{
12875 s//\1/
12876 q
12877 }
12878 s/.*/./; q'`
12879 as_dir="$ac_dir"; as_fn_mkdir_p
12880 ac_builddir=.
12881
12882 case "$ac_dir" in
12883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12884 *)
12885 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12886 # A ".." for each directory in $ac_dir_suffix.
12887 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12888 case $ac_top_builddir_sub in
12889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12891 esac ;;
12892 esac
12893 ac_abs_top_builddir=$ac_pwd
12894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12895 # for backward compatibility:
12896 ac_top_builddir=$ac_top_build_prefix
12897
12898 case $srcdir in
12899 .) # We are building in place.
12900 ac_srcdir=.
12901 ac_top_srcdir=$ac_top_builddir_sub
12902 ac_abs_top_srcdir=$ac_pwd ;;
12903 [\\/]* | ?:[\\/]* ) # Absolute name.
12904 ac_srcdir=$srcdir$ac_dir_suffix;
12905 ac_top_srcdir=$srcdir
12906 ac_abs_top_srcdir=$srcdir ;;
12907 *) # Relative name.
12908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12909 ac_top_srcdir=$ac_top_build_prefix$srcdir
12910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12911 esac
12912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12913
12914
12915 case $ac_mode in
12916 :F)
12917 #
12918 # CONFIG_FILE
12919 #
12920
12921 case $INSTALL in
12922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12923 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12924 esac
12925 _ACEOF
12926
12927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12928 # If the template does not know about datarootdir, expand it.
12929 # FIXME: This hack should be removed a few years after 2.60.
12930 ac_datarootdir_hack=; ac_datarootdir_seen=
12931 ac_sed_dataroot='
12932 /datarootdir/ {
12933 p
12934 q
12935 }
12936 /@datadir@/p
12937 /@docdir@/p
12938 /@infodir@/p
12939 /@localedir@/p
12940 /@mandir@/p'
12941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12942 *datarootdir*) ac_datarootdir_seen=yes;;
12943 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ign ore the --datarootdir setting" >&5
12945 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir set ting" >&2;}
12946 _ACEOF
12947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12948 ac_datarootdir_hack='
12949 s&@datadir@&$datadir&g
12950 s&@docdir@&$docdir&g
12951 s&@infodir@&$infodir&g
12952 s&@localedir@&$localedir&g
12953 s&@mandir@&$mandir&g
12954 s&\\\${datarootdir}&$datarootdir&g' ;;
12955 esac
12956 _ACEOF
12957
12958 # Neutralize VPATH when `$srcdir' = `.'.
12959 # Shell code in configure.ac might set extrasub.
12960 # FIXME: do we really want to maintain this feature?
12961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12962 ac_sed_extra="$ac_vpsub
12963 $extrasub
12964 _ACEOF
12965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12966 :t
12967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12968 s|@configure_input@|$ac_sed_conf_input|;t t
12969 s&@top_builddir@&$ac_top_builddir_sub&;t t
12970 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12971 s&@srcdir@&$ac_srcdir&;t t
12972 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12973 s&@top_srcdir@&$ac_top_srcdir&;t t
12974 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12975 s&@builddir@&$ac_builddir&;t t
12976 s&@abs_builddir@&$ac_abs_builddir&;t t
12977 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12978 s&@INSTALL@&$ac_INSTALL&;t t
12979 $ac_datarootdir_hack
12980 "
12981 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12982 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12983
12984 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12985 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12986 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12987 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a referenc e to the variable \`datarootdir'
12989 which seems to be undefined. Please make sure it is defined" >&5
12990 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datar ootdir'
12991 which seems to be undefined. Please make sure it is defined" >&2;}
12992
12993 rm -f "$ac_tmp/stdin"
12994 case $ac_file in
12995 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12996 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12997 esac \
12998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12999 ;;
13000 :H)
13001 #
13002 # CONFIG_HEADER
13003 #
13004 if test x"$ac_file" != x-; then
13005 {
13006 $as_echo "/* $configure_input */" \
13007 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13008 } >"$ac_tmp/config.h" \
13009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13010 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13012 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13013 else
13014 rm -f "$ac_file"
13015 mv "$ac_tmp/config.h" "$ac_file" \
13016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13017 fi
13018 else
13019 $as_echo "/* $configure_input */" \
13020 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13021 || as_fn_error $? "could not create -" "$LINENO" 5
13022 fi
13023 ;;
13024
13025 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13026 $as_echo "$as_me: executing $ac_file commands" >&6;}
13027 ;;
13028 esac
13029
13030
13031 case $ac_file$ac_mode in
13032 "libtool":C)
13033
13034 # See if we are running on zsh, and set the options which allow our
13035 # commands through without removal of \ escapes.
13036 if test -n "${ZSH_VERSION+set}" ; then
13037 setopt NO_GLOB_SUBST
13038 fi
13039
13040 cfgfile="${ofile}T"
13041 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13042 $RM "$cfgfile"
13043
13044 cat <<_LT_EOF >> "$cfgfile"
13045 #! $SHELL
13046
13047 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building suppo rt services.
13048 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13050 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13051 #
13052 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13053 # 2006, 2007, 2008 Free Software Foundation, Inc.
13054 # Written by Gordon Matzigkeit, 1996
13055 #
13056 # This file is part of GNU Libtool.
13057 #
13058 # GNU Libtool is free software; you can redistribute it and/or
13059 # modify it under the terms of the GNU General Public License as
13060 # published by the Free Software Foundation; either version 2 of
13061 # the License, or (at your option) any later version.
13062 #
13063 # As a special exception to the GNU General Public License,
13064 # if you distribute this file as part of a program or library that
13065 # is built using GNU Libtool, you may include this file under the
13066 # same distribution terms that you use for the rest of that program.
13067 #
13068 # GNU Libtool is distributed in the hope that it will be useful,
13069 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13070 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13071 # GNU General Public License for more details.
13072 #
13073 # You should have received a copy of the GNU General Public License
13074 # along with GNU Libtool; see the file COPYING. If not, a copy
13075 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13076 # obtained by writing to the Free Software Foundation, Inc.,
13077 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13078
13079
13080 # The names of the tagged configurations supported by this script.
13081 available_tags=""
13082
13083 # ### BEGIN LIBTOOL CONFIG
13084
13085 # Which release of libtool.m4 was used?
13086 macro_version=$macro_version
13087 macro_revision=$macro_revision
13088
13089 # Whether or not to build shared libraries.
13090 build_libtool_libs=$enable_shared
13091
13092 # Whether or not to build static libraries.
13093 build_old_libs=$enable_static
13094
13095 # What type of objects to build.
13096 pic_mode=$pic_mode
13097
13098 # Whether or not to optimize for fast installation.
13099 fast_install=$enable_fast_install
13100
13101 # The host system.
13102 host_alias=$host_alias
13103 host=$host
13104 host_os=$host_os
13105
13106 # The build system.
13107 build_alias=$build_alias
13108 build=$build
13109 build_os=$build_os
13110
13111 # A sed program that does not truncate output.
13112 SED=$lt_SED
13113
13114 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13115 Xsed="\$SED -e 1s/^X//"
13116
13117 # A grep program that handles long lines.
13118 GREP=$lt_GREP
13119
13120 # An ERE matcher.
13121 EGREP=$lt_EGREP
13122
13123 # A literal string matcher.
13124 FGREP=$lt_FGREP
13125
13126 # A BSD- or MS-compatible name lister.
13127 NM=$lt_NM
13128
13129 # Whether we need soft or hard links.
13130 LN_S=$lt_LN_S
13131
13132 # What is the maximum length of a command?
13133 max_cmd_len=$max_cmd_len
13134
13135 # Object file suffix (normally "o").
13136 objext=$ac_objext
13137
13138 # Executable file suffix (normally "").
13139 exeext=$exeext
13140
13141 # whether the shell understands "unset".
13142 lt_unset=$lt_unset
13143
13144 # turn spaces into newlines.
13145 SP2NL=$lt_lt_SP2NL
13146
13147 # turn newlines into spaces.
13148 NL2SP=$lt_lt_NL2SP
13149
13150 # How to create reloadable object files.
13151 reload_flag=$lt_reload_flag
13152 reload_cmds=$lt_reload_cmds
13153
13154 # An object symbol dumper.
13155 OBJDUMP=$lt_OBJDUMP
13156
13157 # Method to check whether dependent libraries are shared objects.
13158 deplibs_check_method=$lt_deplibs_check_method
13159
13160 # Command to use when deplibs_check_method == "file_magic".
13161 file_magic_cmd=$lt_file_magic_cmd
13162
13163 # The archiver.
13164 AR=$lt_AR
13165 AR_FLAGS=$lt_AR_FLAGS
13166
13167 # A symbol stripping program.
13168 STRIP=$lt_STRIP
13169
13170 # Commands used to install an old-style archive.
13171 RANLIB=$lt_RANLIB
13172 old_postinstall_cmds=$lt_old_postinstall_cmds
13173 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13174
13175 # A C compiler.
13176 LTCC=$lt_CC
13177
13178 # LTCC compiler flags.
13179 LTCFLAGS=$lt_CFLAGS
13180
13181 # Take the output of nm and produce a listing of raw symbols and C names.
13182 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13183
13184 # Transform the output of nm in a proper C declaration.
13185 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13186
13187 # Transform the output of nm in a C name address pair.
13188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13189
13190 # Transform the output of nm in a C name address pair when lib prefix is needed.
13191 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name _address_lib_prefix
13192
13193 # The name of the directory that contains temporary libtool files.
13194 objdir=$objdir
13195
13196 # Shell to use when invoking shell scripts.
13197 SHELL=$lt_SHELL
13198
13199 # An echo program that does not interpret backslashes.
13200 ECHO=$lt_ECHO
13201
13202 # Used to examine libraries when file_magic_cmd begins with "file".
13203 MAGIC_CMD=$MAGIC_CMD
13204
13205 # Must we lock files when doing compilation?
13206 need_locks=$lt_need_locks
13207
13208 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13209 DSYMUTIL=$lt_DSYMUTIL
13210
13211 # Tool to change global to local symbols on Mac OS X.
13212 NMEDIT=$lt_NMEDIT
13213
13214 # Tool to manipulate fat objects and archives on Mac OS X.
13215 LIPO=$lt_LIPO
13216
13217 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13218 OTOOL=$lt_OTOOL
13219
13220 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13221 OTOOL64=$lt_OTOOL64
13222
13223 # Old archive suffix (normally "a").
13224 libext=$libext
13225
13226 # Shared library suffix (normally ".so").
13227 shrext_cmds=$lt_shrext_cmds
13228
13229 # The commands to extract the exported symbol list from a shared archive.
13230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13231
13232 # Variables whose values should be saved in libtool wrapper scripts and
13233 # restored at link time.
13234 variables_saved_for_relink=$lt_variables_saved_for_relink
13235
13236 # Do we need the "lib" prefix for modules?
13237 need_lib_prefix=$need_lib_prefix
13238
13239 # Do we need a version for libraries?
13240 need_version=$need_version
13241
13242 # Library versioning type.
13243 version_type=$version_type
13244
13245 # Shared library runtime path variable.
13246 runpath_var=$runpath_var
13247
13248 # Shared library path variable.
13249 shlibpath_var=$shlibpath_var
13250
13251 # Is shlibpath searched before the hard-coded library search path?
13252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13253
13254 # Format of library name prefix.
13255 libname_spec=$lt_libname_spec
13256
13257 # List of archive names. First name is the real one, the rest are links.
13258 # The last name is the one that the linker finds with -lNAME
13259 library_names_spec=$lt_library_names_spec
13260
13261 # The coded name of the library, if different from the real name.
13262 soname_spec=$lt_soname_spec
13263
13264 # Command to use after installation of a shared archive.
13265 postinstall_cmds=$lt_postinstall_cmds
13266
13267 # Command to use after uninstallation of a shared archive.
13268 postuninstall_cmds=$lt_postuninstall_cmds
13269
13270 # Commands used to finish a libtool library installation in a directory.
13271 finish_cmds=$lt_finish_cmds
13272
13273 # As "finish_cmds", except a single script fragment to be evaled but
13274 # not shown.
13275 finish_eval=$lt_finish_eval
13276
13277 # Whether we should hardcode library paths into libraries.
13278 hardcode_into_libs=$hardcode_into_libs
13279
13280 # Compile-time system search path for libraries.
13281 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13282
13283 # Run-time system search path for libraries.
13284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13285
13286 # Whether dlopen is supported.
13287 dlopen_support=$enable_dlopen
13288
13289 # Whether dlopen of programs is supported.
13290 dlopen_self=$enable_dlopen_self
13291
13292 # Whether dlopen of statically linked programs is supported.
13293 dlopen_self_static=$enable_dlopen_self_static
13294
13295 # Commands to strip libraries.
13296 old_striplib=$lt_old_striplib
13297 striplib=$lt_striplib
13298
13299
13300 # The linker used to build libraries.
13301 LD=$lt_LD
13302
13303 # Commands used to build an old-style archive.
13304 old_archive_cmds=$lt_old_archive_cmds
13305
13306 # A language specific compiler.
13307 CC=$lt_compiler
13308
13309 # Is the compiler the GNU compiler?
13310 with_gcc=$GCC
13311
13312 # Compiler flag to turn off builtin functions.
13313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13314
13315 # How to pass a linker flag through the compiler.
13316 wl=$lt_lt_prog_compiler_wl
13317
13318 # Additional compiler flags for building library objects.
13319 pic_flag=$lt_lt_prog_compiler_pic
13320
13321 # Compiler flag to prevent dynamic linking.
13322 link_static_flag=$lt_lt_prog_compiler_static
13323
13324 # Does compiler simultaneously support -c and -o options?
13325 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13326
13327 # Whether or not to add -lc for building shared libraries.
13328 build_libtool_need_lc=$archive_cmds_need_lc
13329
13330 # Whether or not to disallow shared libs when runtime libs are static.
13331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13332
13333 # Compiler flag to allow reflexive dlopens.
13334 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13335
13336 # Compiler flag to generate shared objects directly from archives.
13337 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13338
13339 # Whether the compiler copes with passing no objects directly.
13340 compiler_needs_object=$lt_compiler_needs_object
13341
13342 # Create an old-style archive from a shared archive.
13343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13344
13345 # Create a temporary old-style archive to link instead of a shared archive.
13346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13347
13348 # Commands used to build a shared archive.
13349 archive_cmds=$lt_archive_cmds
13350 archive_expsym_cmds=$lt_archive_expsym_cmds
13351
13352 # Commands used to build a loadable module if different from building
13353 # a shared archive.
13354 module_cmds=$lt_module_cmds
13355 module_expsym_cmds=$lt_module_expsym_cmds
13356
13357 # Whether we are building with GNU ld or not.
13358 with_gnu_ld=$lt_with_gnu_ld
13359
13360 # Flag that allows shared libraries with undefined symbols to be built.
13361 allow_undefined_flag=$lt_allow_undefined_flag
13362
13363 # Flag that enforces no undefined symbols.
13364 no_undefined_flag=$lt_no_undefined_flag
13365
13366 # Flag to hardcode \$libdir into a binary during linking.
13367 # This must work even if \$libdir does not exist
13368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13369
13370 # If ld is used when linking, flag to hardcode \$libdir into a binary
13371 # during linking. This must work even if \$libdir does not exist.
13372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13373
13374 # Whether we need a single "-rpath" flag with a separated argument.
13375 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13376
13377 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13378 # DIR into the resulting binary.
13379 hardcode_direct=$hardcode_direct
13380
13381 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13382 # DIR into the resulting binary and the resulting library dependency is
13383 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13384 # library is relocated.
13385 hardcode_direct_absolute=$hardcode_direct_absolute
13386
13387 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13388 # into the resulting binary.
13389 hardcode_minus_L=$hardcode_minus_L
13390
13391 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13392 # into the resulting binary.
13393 hardcode_shlibpath_var=$hardcode_shlibpath_var
13394
13395 # Set to "yes" if building a shared library automatically hardcodes DIR
13396 # into the library and all subsequent libraries and executables linked
13397 # against it.
13398 hardcode_automatic=$hardcode_automatic
13399
13400 # Set to yes if linker adds runtime paths of dependent libraries
13401 # to runtime path list.
13402 inherit_rpath=$inherit_rpath
13403
13404 # Whether libtool must link a program against all its dependency libraries.
13405 link_all_deplibs=$link_all_deplibs
13406
13407 # Fix the shell variable \$srcfile for the compiler.
13408 fix_srcfile_path=$lt_fix_srcfile_path
13409
13410 # Set to "yes" if exported symbols are required.
13411 always_export_symbols=$always_export_symbols
13412
13413 # The commands to list exported symbols.
13414 export_symbols_cmds=$lt_export_symbols_cmds
13415
13416 # Symbols that should not be listed in the preloaded symbols.
13417 exclude_expsyms=$lt_exclude_expsyms
13418
13419 # Symbols that must always be exported.
13420 include_expsyms=$lt_include_expsyms
13421
13422 # Commands necessary for linking programs (against libraries) with templates.
13423 prelink_cmds=$lt_prelink_cmds
13424
13425 # Specify filename containing input files.
13426 file_list_spec=$lt_file_list_spec
13427
13428 # How to hardcode a shared library path into an executable.
13429 hardcode_action=$hardcode_action
13430
13431 # ### END LIBTOOL CONFIG
13432
13433 _LT_EOF
13434
13435 case $host_os in
13436 aix3*)
13437 cat <<\_LT_EOF >> "$cfgfile"
13438 # AIX sometimes has problems with the GCC collect2 program. For some
13439 # reason, if we set the COLLECT_NAMES environment variable, the problems
13440 # vanish in a puff of smoke.
13441 if test "X${COLLECT_NAMES+set}" != Xset; then
13442 COLLECT_NAMES=
13443 export COLLECT_NAMES
13444 fi
13445 _LT_EOF
13446 ;;
13447 esac
13448
13449
13450 ltmain="$ac_aux_dir/ltmain.sh"
13451
13452
13453 # We use sed instead of cat because bash on DJGPP gets confused if
13454 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13455 # text mode, it properly converts lines to CR/LF. This bash problem
13456 # is reportedly fixed, but why not run on old versions too?
13457 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13458 || (rm -f "$cfgfile"; exit 1)
13459
13460 case $xsi_shell in
13461 yes)
13462 cat << \_LT_EOF >> "$cfgfile"
13463
13464 # func_dirname file append nondir_replacement
13465 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13466 # otherwise set result to NONDIR_REPLACEMENT.
13467 func_dirname ()
13468 {
13469 case ${1} in
13470 */*) func_dirname_result="${1%/*}${2}" ;;
13471 * ) func_dirname_result="${3}" ;;
13472 esac
13473 }
13474
13475 # func_basename file
13476 func_basename ()
13477 {
13478 func_basename_result="${1##*/}"
13479 }
13480
13481 # func_dirname_and_basename file append nondir_replacement
13482 # perform func_basename and func_dirname in a single function
13483 # call:
13484 # dirname: Compute the dirname of FILE. If nonempty,
13485 # add APPEND to the result, otherwise set result
13486 # to NONDIR_REPLACEMENT.
13487 # value returned in "$func_dirname_result"
13488 # basename: Compute filename of FILE.
13489 # value retuned in "$func_basename_result"
13490 # Implementation must be kept synchronized with func_dirname
13491 # and func_basename. For efficiency, we do not delegate to
13492 # those functions but instead duplicate the functionality here.
13493 func_dirname_and_basename ()
13494 {
13495 case ${1} in
13496 */*) func_dirname_result="${1%/*}${2}" ;;
13497 * ) func_dirname_result="${3}" ;;
13498 esac
13499 func_basename_result="${1##*/}"
13500 }
13501
13502 # func_stripname prefix suffix name
13503 # strip PREFIX and SUFFIX off of NAME.
13504 # PREFIX and SUFFIX must not contain globbing or regex special
13505 # characters, hashes, percent signs, but SUFFIX may contain a leading
13506 # dot (in which case that matches only a dot).
13507 func_stripname ()
13508 {
13509 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13510 # positional parameters, so assign one to ordinary parameter first.
13511 func_stripname_result=${3}
13512 func_stripname_result=${func_stripname_result#"${1}"}
13513 func_stripname_result=${func_stripname_result%"${2}"}
13514 }
13515
13516 # func_opt_split
13517 func_opt_split ()
13518 {
13519 func_opt_split_opt=${1%%=*}
13520 func_opt_split_arg=${1#*=}
13521 }
13522
13523 # func_lo2o object
13524 func_lo2o ()
13525 {
13526 case ${1} in
13527 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13528 *) func_lo2o_result=${1} ;;
13529 esac
13530 }
13531
13532 # func_xform libobj-or-source
13533 func_xform ()
13534 {
13535 func_xform_result=${1%.*}.lo
13536 }
13537
13538 # func_arith arithmetic-term...
13539 func_arith ()
13540 {
13541 func_arith_result=$(( $* ))
13542 }
13543
13544 # func_len string
13545 # STRING may not start with a hyphen.
13546 func_len ()
13547 {
13548 func_len_result=${#1}
13549 }
13550
13551 _LT_EOF
13552 ;;
13553 *) # Bourne compatible functions.
13554 cat << \_LT_EOF >> "$cfgfile"
13555
13556 # func_dirname file append nondir_replacement
13557 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13558 # otherwise set result to NONDIR_REPLACEMENT.
13559 func_dirname ()
13560 {
13561 # Extract subdirectory from the argument.
13562 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13563 if test "X$func_dirname_result" = "X${1}"; then
13564 func_dirname_result="${3}"
13565 else
13566 func_dirname_result="$func_dirname_result${2}"
13567 fi
13568 }
13569
13570 # func_basename file
13571 func_basename ()
13572 {
13573 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13574 }
13575
13576
13577 # func_stripname prefix suffix name
13578 # strip PREFIX and SUFFIX off of NAME.
13579 # PREFIX and SUFFIX must not contain globbing or regex special
13580 # characters, hashes, percent signs, but SUFFIX may contain a leading
13581 # dot (in which case that matches only a dot).
13582 # func_strip_suffix prefix name
13583 func_stripname ()
13584 {
13585 case ${2} in
13586 .*) func_stripname_result=`$ECHO "X${3}" \
13587 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13588 *) func_stripname_result=`$ECHO "X${3}" \
13589 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13590 esac
13591 }
13592
13593 # sed scripts:
13594 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13595 my_sed_long_arg='1s/^-[^=]*=//'
13596
13597 # func_opt_split
13598 func_opt_split ()
13599 {
13600 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13601 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13602 }
13603
13604 # func_lo2o object
13605 func_lo2o ()
13606 {
13607 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13608 }
13609
13610 # func_xform libobj-or-source
13611 func_xform ()
13612 {
13613 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13614 }
13615
13616 # func_arith arithmetic-term...
13617 func_arith ()
13618 {
13619 func_arith_result=`expr "$@"`
13620 }
13621
13622 # func_len string
13623 # STRING may not start with a hyphen.
13624 func_len ()
13625 {
13626 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13627 }
13628
13629 _LT_EOF
13630 esac
13631
13632 case $lt_shell_append in
13633 yes)
13634 cat << \_LT_EOF >> "$cfgfile"
13635
13636 # func_append var value
13637 # Append VALUE to the end of shell variable VAR.
13638 func_append ()
13639 {
13640 eval "$1+=\$2"
13641 }
13642 _LT_EOF
13643 ;;
13644 *)
13645 cat << \_LT_EOF >> "$cfgfile"
13646
13647 # func_append var value
13648 # Append VALUE to the end of shell variable VAR.
13649 func_append ()
13650 {
13651 eval "$1=\$$1\$2"
13652 }
13653
13654 _LT_EOF
13655 ;;
13656 esac
13657
13658
13659 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfil e" \
13660 || (rm -f "$cfgfile"; exit 1)
13661
13662 mv -f "$cfgfile" "$ofile" ||
13663 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13664 chmod +x "$ofile"
13665
13666 ;;
13667
13668 esac
13669 done # for ac_tag
13670
13671
13672 as_fn_exit 0
13673 _ACEOF
13674 ac_clean_files=$ac_clean_files_save
13675
13676 test $ac_write_fail = 0 ||
13677 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13678
13679
13680 # configure is writing to config.log, and then calls config.status.
13681 # config.status does its own redirection, appending to config.log.
13682 # Unfortunately, on DOS this fails, as config.log is still kept open
13683 # by configure, so config.status won't be able to write to it; its
13684 # output is simply discarded. So we exec the FD to /dev/null,
13685 # effectively closing config.log, so it can be properly (re)opened and
13686 # appended to by config.status. When coming back to configure, we
13687 # need to make the FD available again.
13688 if test "$no_create" != yes; then
13689 ac_cs_success=:
13690 ac_config_status_args=
13691 test "$silent" = yes &&
13692 ac_config_status_args="$ac_config_status_args --quiet"
13693 exec 5>/dev/null
13694 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13695 exec 5>>config.log
13696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13697 # would make configure fail if this is the last instruction.
13698 $ac_cs_success || as_fn_exit 1
13699 fi
13700 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_un recognized_opts" >&5
13702 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13703 fi
13704
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite-src-3100200/config.h.in ('k') | third_party/sqlite/sqlite-src-3100200/configure.ac » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698