Adjustments to cipher_migrate
[sqlcipher.git] / configure
blob69eb3244f2a1dfae927b2f2d0bd66f475656a28a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sqlcipher 3.7.17.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
541 case X$lt_ECHO in
542 X*--fallback-echo)
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
546 esac
548 ECHO=${lt_ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
551 shift
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $ECHO works!
558 else
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
565 shift
566 cat <<_LT_EOF
568 _LT_EOF
569 exit 0
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$lt_ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583 then
584 break
586 done
589 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591 test "X$echo_testing_string" = "X$echo_test_string"; then
593 else
594 # The Solaris, AIX, and Digital Unix default echo programs unquote
595 # backslashes. This makes it impossible to quote backslashes using
596 # echo "$something" | sed 's/\\/\\\\/g'
598 # So, first we look for a working echo in the user's PATH.
600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601 for dir in $PATH /usr/ucb; do
602 IFS="$lt_save_ifs"
603 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 ECHO="$dir/echo"
608 break
610 done
611 IFS="$lt_save_ifs"
613 if test "X$ECHO" = Xecho; then
614 # We didn't find a better echo, so look for alternatives.
615 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # This shell has a builtin print -r that does the trick.
619 ECHO='print -r'
620 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621 test "X$CONFIG_SHELL" != X/bin/ksh; then
622 # If we have ksh, try running configure again with it.
623 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624 export ORIGINAL_CONFIG_SHELL
625 CONFIG_SHELL=/bin/ksh
626 export CONFIG_SHELL
627 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628 else
629 # Try using printf.
630 ECHO='printf %s\n'
631 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # Cool, printf works
636 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641 export CONFIG_SHELL
642 SHELL="$CONFIG_SHELL"
643 export SHELL
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646 test "X$echo_testing_string" = 'X\t' &&
647 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 ECHO="$CONFIG_SHELL $0 --fallback-echo"
650 else
651 # maybe with a smaller string...
652 prev=:
654 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656 then
657 break
659 prev="$cmd"
660 done
662 if test "$prev" != 'sed 50q "$0"'; then
663 echo_test_string=`eval $prev`
664 export echo_test_string
665 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666 else
667 # Oops. We lost completely, so just stick with echo.
668 ECHO=echo
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
678 lt_ECHO=$ECHO
679 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 test -n "$DJDIR" || exec 7<&0 </dev/null
687 exec 6>&1
689 # Name of the host.
690 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
695 # Initializations.
697 ac_default_prefix=/usr/local
698 ac_clean_files=
699 ac_config_libobj_dir=.
700 LIBOBJS=
701 cross_compiling=no
702 subdirs=
703 MFLAGS=
704 MAKEFLAGS=
706 # Identity of this package.
707 PACKAGE_NAME='sqlcipher'
708 PACKAGE_TARNAME='sqlcipher'
709 PACKAGE_VERSION='3.7.17'
710 PACKAGE_STRING='sqlcipher 3.7.17'
711 PACKAGE_BUGREPORT=''
712 PACKAGE_URL=''
714 # Factoring default headers for most tests.
715 ac_includes_default="\
716 #include <stdio.h>
717 #ifdef HAVE_SYS_TYPES_H
718 # include <sys/types.h>
719 #endif
720 #ifdef HAVE_SYS_STAT_H
721 # include <sys/stat.h>
722 #endif
723 #ifdef STDC_HEADERS
724 # include <stdlib.h>
725 # include <stddef.h>
726 #else
727 # ifdef HAVE_STDLIB_H
728 # include <stdlib.h>
729 # endif
730 #endif
731 #ifdef HAVE_STRING_H
732 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 # include <memory.h>
734 # endif
735 # include <string.h>
736 #endif
737 #ifdef HAVE_STRINGS_H
738 # include <strings.h>
739 #endif
740 #ifdef HAVE_INTTYPES_H
741 # include <inttypes.h>
742 #endif
743 #ifdef HAVE_STDINT_H
744 # include <stdint.h>
745 #endif
746 #ifdef HAVE_UNISTD_H
747 # include <unistd.h>
748 #endif"
750 ac_subst_vars='LTLIBOBJS
751 LIBOBJS
752 BUILD_CFLAGS
753 USE_GCOV
754 OPT_FEATURE_FLAGS
755 USE_AMALGAMATION
756 TARGET_DEBUG
757 TARGET_HAVE_READLINE
758 TARGET_READLINE_INC
759 TARGET_READLINE_LIBS
760 HAVE_TCL
761 TCL_STUB_LIB_SPEC
762 TCL_STUB_LIB_FLAG
763 TCL_STUB_LIB_FILE
764 TCL_LIB_SPEC
765 TCL_LIB_FLAG
766 TCL_LIB_FILE
767 TCL_INCLUDE_SPEC
768 TCL_SRC_DIR
769 TCL_BIN_DIR
770 TCL_VERSION
771 TARGET_EXEEXT
772 SQLITE_OS_OS2
773 SQLITE_OS_WIN
774 SQLITE_OS_UNIX
775 BUILD_EXEEXT
776 TEMP_STORE
777 ALLOWRELEASE
778 XTHREADCONNECT
779 SQLITE_THREADSAFE
780 BUILD_CC
781 VERSION_NUMBER
782 RELEASE
783 VERSION
784 program_prefix
785 TCLLIBDIR
786 TCLSH_CMD
788 INSTALL_DATA
789 INSTALL_SCRIPT
790 INSTALL_PROGRAM
792 OTOOL64
793 OTOOL
794 LIPO
795 NMEDIT
796 DSYMUTIL
797 lt_ECHO
798 RANLIB
799 STRIP
801 OBJDUMP
802 LN_S
804 ac_ct_DUMPBIN
805 DUMPBIN
807 FGREP
808 EGREP
809 GREP
811 OBJEXT
812 EXEEXT
813 ac_ct_CC
814 CPPFLAGS
815 LDFLAGS
816 CFLAGS
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 LIBTOOL
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files=''
866 ac_user_opts='
867 enable_option_checking
868 enable_shared
869 enable_static
870 with_pic
871 enable_fast_install
872 with_gnu_ld
873 enable_libtool_lock
874 enable_largefile
875 with_hints
876 enable_threadsafe
877 with_crypto_lib
878 enable_cross_thread_connections
879 enable_releasemode
880 enable_tempstore
881 enable_tcl
882 with_tcl
883 enable_readline
884 with_readline_lib
885 with_readline_inc
886 enable_debug
887 enable_amalgamation
888 enable_load_extension
889 enable_gcov
891 ac_precious_vars='build_alias
892 host_alias
893 target_alias
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
900 TCLLIBDIR'
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 ac_unrecognized_opts=
907 ac_unrecognized_sep=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
951 ac_prev=
952 ac_dashdash=
953 for ac_option
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
958 ac_prev=
959 continue
962 case $ac_option in
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *=) ac_optarg= ;;
965 *) ac_optarg=yes ;;
966 esac
968 # Accept the important Cygnus configure options, so we can diagnose typos.
970 case $ac_dashdash$ac_option in
972 ac_dashdash=yes ;;
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
991 --config-cache | -C)
992 cache_file=config.cache ;;
994 -datadir | --datadir | --datadi | --datad)
995 ac_prev=datadir ;;
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1006 -disable-* | --disable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1032 -enable-* | --enable-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error $? "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1041 "enable_$ac_useropt"
1042 "*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=\$ac_optarg ;;
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1055 exec_prefix=$ac_optarg ;;
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
1068 -host | --host | --hos | --ho)
1069 ac_prev=host_alias ;;
1070 -host=* | --host=* | --hos=* | --ho=*)
1071 host_alias=$ac_optarg ;;
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1084 includedir=$ac_optarg ;;
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089 infodir=$ac_optarg ;;
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094 libdir=$ac_optarg ;;
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1101 libexecdir=$ac_optarg ;;
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
1109 | --localstate | --localstat | --localsta | --localst | --locals)
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113 localstatedir=$ac_optarg ;;
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118 mandir=$ac_optarg ;;
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125 | --no-cr | --no-c | -n)
1126 no_create=yes ;;
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139 oldincludedir=$ac_optarg ;;
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144 prefix=$ac_optarg ;;
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151 program_prefix=$ac_optarg ;;
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158 program_suffix=$ac_optarg ;;
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1175 program_transform_name=$ac_optarg ;;
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
1195 sbindir=$ac_optarg ;;
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
1206 sharedstatedir=$ac_optarg ;;
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
1211 site=$ac_optarg ;;
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1236 -with-* | --with-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=\$ac_optarg ;;
1252 -without-* | --without-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1261 "with_$ac_useropt"
1262 "*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296 esac
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 esac
1309 done
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $? "missing argument to $ac_option"
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1318 no) ;;
1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 esac
1324 # Check all directory arguments for consistency.
1325 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1332 case $ac_val in
1333 */ )
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1336 esac
1337 # Be sure to have absolute directory names.
1338 case $ac_val in
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 esac
1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 done
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1348 build=$build_alias
1349 host=$host_alias
1350 target=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1357 If a cross compiler is detected then cross compile mode will be used" >&2
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366 test "$silent" = yes && exec 6>/dev/null
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 as_fn_error $? "pwd does not report name of working directory"
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 $as_echo X"$as_myself" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1395 /^X\(\/\/\)$/{
1396 s//\1/
1399 /^X\(\/\).*/{
1400 s//\1/
1403 s/.*/./; q'`
1404 srcdir=$ac_confdir
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 srcdir=..
1408 else
1409 ac_srcdir_defaulted=no
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 ac_abs_confdir=`(
1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 srcdir=.
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 done
1437 # Report the --help message.
1439 if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1442 cat <<_ACEOF
1443 \`configure' configures sqlcipher 3.7.17 to adapt to many kinds of systems.
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1450 Defaults for the options are specified in brackets.
1452 Configuration:
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
1457 -q, --quiet, --silent do not print \`checking ...' messages
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467 [PREFIX]
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1474 For better control, use the options below.
1476 Fine tuning of the installation directories:
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1492 --htmldir=DIR html documentation [DOCDIR]
1493 --dvidir=DIR dvi documentation [DOCDIR]
1494 --pdfdir=DIR pdf documentation [DOCDIR]
1495 --psdir=DIR ps documentation [DOCDIR]
1496 _ACEOF
1498 cat <<\_ACEOF
1500 System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 _ACEOF
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive ) echo "Configuration of sqlcipher 3.7.17:";;
1509 esac
1510 cat <<\_ACEOF
1512 Optional Features:
1513 --disable-option-checking ignore unrecognized --enable/--with options
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --enable-shared[=PKGS] build shared libraries [default=yes]
1517 --enable-static[=PKGS] build static libraries [default=yes]
1518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-libtool-lock avoid locking (might break parallel builds)
1521 --disable-largefile omit support for large files
1522 --enable-threadsafe Support threadsafe operation
1523 --enable-cross-thread-connections
1524 Allow connection sharing across threads
1525 --enable-releasemode Support libtool link to release mode
1526 --enable-tempstore Use an in-ram database for temporary tables
1527 (never,no,yes,always)
1528 --disable-tcl do not build TCL extension
1529 --disable-readline disable readline support [default=detect]
1530 --enable-debug enable debugging & verbose explain
1531 --disable-amalgamation Disable the amalgamation and instead build all files
1532 separately
1533 --enable-load-extension Enable loading of external extensions
1534 --enable-gcov Enable coverage testing using gcov
1536 Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-pic try to use only PIC/non-PIC objects [default=use
1540 both]
1541 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1542 --with-hints=FILE Read configuration options from FILE
1543 --with-crypto-lib Specify which crypto library to use
1544 --with-tcl=DIR directory containing tcl configuration
1545 (tclConfig.sh)
1546 --with-readline-lib specify readline library
1547 --with-readline-inc specify readline include paths
1549 Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558 TCLLIBDIR Where to install tcl plugin
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1563 Report bugs to the package provider.
1564 _ACEOF
1565 ac_status=$?
1568 if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573 continue
1574 ac_builddir=.
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1592 case $srcdir in
1593 .) # We are building in place.
1594 ac_srcdir=.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1601 *) # Relative name.
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1616 else
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 fi || ac_status=$?
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1620 done
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625 cat <<\_ACEOF
1626 sqlcipher configure 3.7.17
1627 generated by GNU Autoconf 2.68
1629 Copyright (C) 2010 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632 _ACEOF
1633 exit
1636 ## ------------------------ ##
1637 ## Autoconf initialization. ##
1638 ## ------------------------ ##
1640 # ac_fn_c_try_compile LINENO
1641 # --------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext
1647 if { { ac_try="$ac_compile"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1671 ac_retval=1
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1676 } # ac_fn_c_try_compile
1678 # ac_fn_c_try_link LINENO
1679 # -----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_link ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 $as_test_x conftest$ac_exeext
1706 }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1712 ac_retval=1
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1722 } # ac_fn_c_try_link
1724 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists and can be compiled using the include files in
1727 # INCLUDES, setting the cache variable VAR accordingly.
1728 ac_fn_c_check_header_compile ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734 $as_echo_n "(cached) " >&6
1735 else
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1739 #include <$2>
1740 _ACEOF
1741 if ac_fn_c_try_compile "$LINENO"; then :
1742 eval "$3=yes"
1743 else
1744 eval "$3=no"
1746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748 eval ac_res=\$$3
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 } # ac_fn_c_check_header_compile
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_cpp ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } > conftest.i && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 ac_retval=1
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_c_try_cpp
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1796 ac_fn_c_try_run ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=$ac_status
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_c_try_run
1834 # ac_fn_c_check_func LINENO FUNC VAR
1835 # ----------------------------------
1836 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1837 ac_fn_c_check_func ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1849 #define $2 innocuous_$2
1851 /* System header to define __stub macros and hopefully few prototypes,
1852 which can conflict with char $2 (); below.
1853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854 <limits.h> exists even on freestanding compilers. */
1856 #ifdef __STDC__
1857 # include <limits.h>
1858 #else
1859 # include <assert.h>
1860 #endif
1862 #undef $2
1864 /* Override any GCC internal prototype to avoid an error.
1865 Use char because int might match the return type of a GCC
1866 builtin and then its argument prototype would still apply. */
1867 #ifdef __cplusplus
1868 extern "C"
1869 #endif
1870 char $2 ();
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined __stub_$2 || defined __stub___$2
1875 choke me
1876 #endif
1879 main ()
1881 return $2 ();
1883 return 0;
1885 _ACEOF
1886 if ac_fn_c_try_link "$LINENO"; then :
1887 eval "$3=yes"
1888 else
1889 eval "$3=no"
1891 rm -f core conftest.err conftest.$ac_objext \
1892 conftest$ac_exeext conftest.$ac_ext
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_func
1901 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1902 # -------------------------------------------
1903 # Tests whether TYPE exists after having included INCLUDES, setting cache
1904 # variable VAR accordingly.
1905 ac_fn_c_check_type ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1912 else
1913 eval "$3=no"
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1918 main ()
1920 if (sizeof ($2))
1921 return 0;
1923 return 0;
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1931 main ()
1933 if (sizeof (($2)))
1934 return 0;
1936 return 0;
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1941 else
1942 eval "$3=yes"
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 } # ac_fn_c_check_type
1955 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1956 # -------------------------------------------------------
1957 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1958 # the include files in INCLUDES and setting the cache variable VAR
1959 # accordingly.
1960 ac_fn_c_check_header_mongrel ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if eval \${$3+:} false; then :
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 else
1973 # Is the header compilable?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1975 $as_echo_n "checking $2 usability... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1979 #include <$2>
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_header_compiler=yes
1983 else
1984 ac_header_compiler=no
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1988 $as_echo "$ac_header_compiler" >&6; }
1990 # Is the header present?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1992 $as_echo_n "checking $2 presence... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_cpp "$LINENO"; then :
1998 ac_header_preproc=yes
1999 else
2000 ac_header_preproc=no
2002 rm -f conftest.err conftest.i conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2004 $as_echo "$ac_header_preproc" >&6; }
2006 # So? What about this header?
2007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2008 yes:no: )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2010 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 no:yes:* )
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2016 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2018 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2020 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2022 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 esac
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \${$3+:} false; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 eval "$3=\$ac_header_compiler"
2034 eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_header_mongrel
2041 cat >config.log <<_ACEOF
2042 This file contains any messages produced by compilers while
2043 running configure, to aid debugging if configure makes a mistake.
2045 It was created by sqlcipher $as_me 3.7.17, which was
2046 generated by GNU Autoconf 2.68. Invocation command line was
2048 $ $0 $@
2050 _ACEOF
2051 exec 5>>config.log
2053 cat <<_ASUNAME
2054 ## --------- ##
2055 ## Platform. ##
2056 ## --------- ##
2058 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2059 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2060 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2061 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2062 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2064 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2065 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2067 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2068 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2069 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2070 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2071 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2072 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2073 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2075 _ASUNAME
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 $as_echo "PATH: $as_dir"
2083 done
2084 IFS=$as_save_IFS
2086 } >&5
2088 cat >&5 <<_ACEOF
2091 ## ----------- ##
2092 ## Core tests. ##
2093 ## ----------- ##
2095 _ACEOF
2098 # Keep a trace of the command line.
2099 # Strip out --no-create and --no-recursion so they do not pile up.
2100 # Strip out --silent because we don't want to record it for future runs.
2101 # Also quote any args containing shell meta-characters.
2102 # Make two passes to allow for proper duplicate-argument suppression.
2103 ac_configure_args=
2104 ac_configure_args0=
2105 ac_configure_args1=
2106 ac_must_keep_next=false
2107 for ac_pass in 1 2
2109 for ac_arg
2111 case $ac_arg in
2112 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2114 | -silent | --silent | --silen | --sile | --sil)
2115 continue ;;
2116 *\'*)
2117 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2118 esac
2119 case $ac_pass in
2120 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2122 as_fn_append ac_configure_args1 " '$ac_arg'"
2123 if test $ac_must_keep_next = true; then
2124 ac_must_keep_next=false # Got value, back to normal.
2125 else
2126 case $ac_arg in
2127 *=* | --config-cache | -C | -disable-* | --disable-* \
2128 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2129 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2130 | -with-* | --with-* | -without-* | --without-* | --x)
2131 case "$ac_configure_args0 " in
2132 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2133 esac
2135 -* ) ac_must_keep_next=true ;;
2136 esac
2138 as_fn_append ac_configure_args " '$ac_arg'"
2140 esac
2141 done
2142 done
2143 { ac_configure_args0=; unset ac_configure_args0;}
2144 { ac_configure_args1=; unset ac_configure_args1;}
2146 # When interrupted or exit'd, cleanup temporary files, and complete
2147 # config.log. We remove comments because anyway the quotes in there
2148 # would cause problems or look ugly.
2149 # WARNING: Use '\'' to represent an apostrophe within the trap.
2150 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2151 trap 'exit_status=$?
2152 # Save into config.log some information that might help in debugging.
2154 echo
2156 $as_echo "## ---------------- ##
2157 ## Cache variables. ##
2158 ## ---------------- ##"
2159 echo
2160 # The following way of writing the cache mishandles newlines in values,
2162 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in #(
2165 *${as_nl}*)
2166 case $ac_var in #(
2167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2168 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2169 esac
2170 case $ac_var in #(
2171 _ | IFS | as_nl) ;; #(
2172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2173 *) { eval $ac_var=; unset $ac_var;} ;;
2174 esac ;;
2175 esac
2176 done
2177 (set) 2>&1 |
2178 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2179 *${as_nl}ac_space=\ *)
2180 sed -n \
2181 "s/'\''/'\''\\\\'\'''\''/g;
2182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2183 ;; #(
2185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2187 esac |
2188 sort
2190 echo
2192 $as_echo "## ----------------- ##
2193 ## Output variables. ##
2194 ## ----------------- ##"
2195 echo
2196 for ac_var in $ac_subst_vars
2198 eval ac_val=\$$ac_var
2199 case $ac_val in
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 esac
2202 $as_echo "$ac_var='\''$ac_val'\''"
2203 done | sort
2204 echo
2206 if test -n "$ac_subst_files"; then
2207 $as_echo "## ------------------- ##
2208 ## File substitutions. ##
2209 ## ------------------- ##"
2210 echo
2211 for ac_var in $ac_subst_files
2213 eval ac_val=\$$ac_var
2214 case $ac_val in
2215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2216 esac
2217 $as_echo "$ac_var='\''$ac_val'\''"
2218 done | sort
2219 echo
2222 if test -s confdefs.h; then
2223 $as_echo "## ----------- ##
2224 ## confdefs.h. ##
2225 ## ----------- ##"
2226 echo
2227 cat confdefs.h
2228 echo
2230 test "$ac_signal" != 0 &&
2231 $as_echo "$as_me: caught signal $ac_signal"
2232 $as_echo "$as_me: exit $exit_status"
2233 } >&5
2234 rm -f core *.core core.conftest.* &&
2235 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236 exit $exit_status
2238 for ac_signal in 1 2 13 15; do
2239 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240 done
2241 ac_signal=0
2243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2244 rm -f -r conftest* confdefs.h
2246 $as_echo "/* confdefs.h */" > confdefs.h
2248 # Predefined preprocessor variables.
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_NAME "$PACKAGE_NAME"
2252 _ACEOF
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2256 _ACEOF
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2260 _ACEOF
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_STRING "$PACKAGE_STRING"
2264 _ACEOF
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268 _ACEOF
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_URL "$PACKAGE_URL"
2272 _ACEOF
2275 # Let the site file select an alternate cache file if it wants to.
2276 # Prefer an explicitly selected file to automatically selected ones.
2277 ac_site_file1=NONE
2278 ac_site_file2=NONE
2279 if test -n "$CONFIG_SITE"; then
2280 # We do not want a PATH search for config.site.
2281 case $CONFIG_SITE in #((
2282 -*) ac_site_file1=./$CONFIG_SITE;;
2283 */*) ac_site_file1=$CONFIG_SITE;;
2284 *) ac_site_file1=./$CONFIG_SITE;;
2285 esac
2286 elif test "x$prefix" != xNONE; then
2287 ac_site_file1=$prefix/share/config.site
2288 ac_site_file2=$prefix/etc/config.site
2289 else
2290 ac_site_file1=$ac_default_prefix/share/config.site
2291 ac_site_file2=$ac_default_prefix/etc/config.site
2293 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2295 test "x$ac_site_file" = xNONE && continue
2296 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2298 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2299 sed 's/^/| /' "$ac_site_file" >&5
2300 . "$ac_site_file" \
2301 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 as_fn_error $? "failed to load site script $ac_site_file
2304 See \`config.log' for more details" "$LINENO" 5; }
2306 done
2308 if test -r "$cache_file"; then
2309 # Some versions of bash will fail to source /dev/null (special files
2310 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2311 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2313 $as_echo "$as_me: loading cache $cache_file" >&6;}
2314 case $cache_file in
2315 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2316 *) . "./$cache_file";;
2317 esac
2319 else
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2321 $as_echo "$as_me: creating cache $cache_file" >&6;}
2322 >$cache_file
2325 # Check that the precious variables saved in the cache have kept the same
2326 # value.
2327 ac_cache_corrupted=false
2328 for ac_var in $ac_precious_vars; do
2329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330 eval ac_new_set=\$ac_env_${ac_var}_set
2331 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332 eval ac_new_val=\$ac_env_${ac_var}_value
2333 case $ac_old_set,$ac_new_set in
2334 set,)
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2338 ,set)
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2340 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2341 ac_cache_corrupted=: ;;
2342 ,);;
2344 if test "x$ac_old_val" != "x$ac_new_val"; then
2345 # differences in whitespace do not lead to failure.
2346 ac_old_val_w=`echo x $ac_old_val`
2347 ac_new_val_w=`echo x $ac_new_val`
2348 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2351 ac_cache_corrupted=:
2352 else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2354 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355 eval $ac_var=\$ac_old_val
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2358 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2360 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2361 fi;;
2362 esac
2363 # Pass precious variables to config.status.
2364 if test "$ac_new_set" = set; then
2365 case $ac_new_val in
2366 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 *) ac_arg=$ac_var=$ac_new_val ;;
2368 esac
2369 case " $ac_configure_args " in
2370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2371 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2372 esac
2374 done
2375 if $ac_cache_corrupted; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2380 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2382 ## -------------------- ##
2383 ## Main body of script. ##
2384 ## -------------------- ##
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2395 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2396 as_fn_error $? "configure script is out of date:
2397 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2398 top level VERSION file = $sqlite_version_sanity_check
2399 please regen with autoconf" "$LINENO" 5
2402 # The following RCS revision string applies to configure.in
2403 # $Revision: 1.56 $
2405 #########
2406 # Programs needed
2408 case `pwd` in
2409 *\ * | *\ *)
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2411 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2412 esac
2416 macro_version='2.2.6'
2417 macro_revision='1.3012'
2431 ltmain="$ac_aux_dir/ltmain.sh"
2433 ac_aux_dir=
2434 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2435 if test -f "$ac_dir/install-sh"; then
2436 ac_aux_dir=$ac_dir
2437 ac_install_sh="$ac_aux_dir/install-sh -c"
2438 break
2439 elif test -f "$ac_dir/install.sh"; then
2440 ac_aux_dir=$ac_dir
2441 ac_install_sh="$ac_aux_dir/install.sh -c"
2442 break
2443 elif test -f "$ac_dir/shtool"; then
2444 ac_aux_dir=$ac_dir
2445 ac_install_sh="$ac_aux_dir/shtool install -c"
2446 break
2448 done
2449 if test -z "$ac_aux_dir"; then
2450 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2453 # These three variables are undocumented and unsupported,
2454 # and are intended to be withdrawn in a future Autoconf release.
2455 # They can cause serious problems if a builder's source tree is in a directory
2456 # whose full name contains unusual characters.
2457 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2458 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2459 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2462 # Make sure we can run config.sub.
2463 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2464 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2467 $as_echo_n "checking build system type... " >&6; }
2468 if ${ac_cv_build+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 ac_build_alias=$build_alias
2472 test "x$ac_build_alias" = x &&
2473 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2474 test "x$ac_build_alias" = x &&
2475 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2476 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2477 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2481 $as_echo "$ac_cv_build" >&6; }
2482 case $ac_cv_build in
2483 *-*-*) ;;
2484 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2485 esac
2486 build=$ac_cv_build
2487 ac_save_IFS=$IFS; IFS='-'
2488 set x $ac_cv_build
2489 shift
2490 build_cpu=$1
2491 build_vendor=$2
2492 shift; shift
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2495 build_os=$*
2496 IFS=$ac_save_IFS
2497 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2501 $as_echo_n "checking host system type... " >&6; }
2502 if ${ac_cv_host+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 if test "x$host_alias" = x; then
2506 ac_cv_host=$ac_cv_build
2507 else
2508 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2514 $as_echo "$ac_cv_host" >&6; }
2515 case $ac_cv_host in
2516 *-*-*) ;;
2517 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2518 esac
2519 host=$ac_cv_host
2520 ac_save_IFS=$IFS; IFS='-'
2521 set x $ac_cv_host
2522 shift
2523 host_cpu=$1
2524 host_vendor=$2
2525 shift; shift
2526 # Remember, the first character of IFS is used to create $*,
2527 # except with old shells:
2528 host_os=$*
2529 IFS=$ac_save_IFS
2530 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if ${ac_cv_prog_CC+:} false; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2560 done
2561 done
2562 IFS=$as_save_IFS
2566 CC=$ac_cv_prog_CC
2567 if test -n "$CC"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2569 $as_echo "$CC" >&6; }
2570 else
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 $as_echo "no" >&6; }
2577 if test -z "$ac_cv_prog_CC"; then
2578 ac_ct_CC=$CC
2579 # Extract the first word of "gcc", so it can be a program name with args.
2580 set dummy gcc; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 if test -n "$ac_ct_CC"; then
2587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_ac_ct_CC="gcc"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2600 done
2601 done
2602 IFS=$as_save_IFS
2606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2607 if test -n "$ac_ct_CC"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2609 $as_echo "$ac_ct_CC" >&6; }
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2615 if test "x$ac_ct_CC" = x; then
2616 CC=""
2617 else
2618 case $cross_compiling:$ac_tool_warned in
2619 yes:)
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2622 ac_tool_warned=yes ;;
2623 esac
2624 CC=$ac_ct_CC
2626 else
2627 CC="$ac_cv_prog_CC"
2630 if test -z "$CC"; then
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}cc; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_CC+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC="${ac_tool_prefix}cc"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2653 done
2654 done
2655 IFS=$as_save_IFS
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662 $as_echo "$CC" >&6; }
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2671 if test -z "$CC"; then
2672 # Extract the first word of "cc", so it can be a program name with args.
2673 set dummy cc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_CC+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682 ac_prog_rejected=no
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2691 ac_prog_rejected=yes
2692 continue
2694 ac_cv_prog_CC="cc"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2698 done
2699 done
2700 IFS=$as_save_IFS
2702 if test $ac_prog_rejected = yes; then
2703 # We found a bogon in the path, so make sure we never use it.
2704 set dummy $ac_cv_prog_CC
2705 shift
2706 if test $# != 0; then
2707 # We chose a different compiler from the bogus one.
2708 # However, it has the same basename, so the bogon will be chosen
2709 # first if we set CC to just the basename; use the full file name.
2710 shift
2711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2719 $as_echo "$CC" >&6; }
2720 else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2727 if test -z "$CC"; then
2728 if test -n "$ac_tool_prefix"; then
2729 for ac_prog in cl.exe
2731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_CC+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2754 IFS=$as_save_IFS
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2768 test -n "$CC" && break
2769 done
2771 if test -z "$CC"; then
2772 ac_ct_CC=$CC
2773 for ac_prog in cl.exe
2775 # Extract the first word of "$ac_prog", so it can be a program name with args.
2776 set dummy $ac_prog; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test -n "$ac_ct_CC"; then
2783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_ac_ct_CC="$ac_prog"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2796 done
2797 done
2798 IFS=$as_save_IFS
2802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2803 if test -n "$ac_ct_CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2805 $as_echo "$ac_ct_CC" >&6; }
2806 else
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2812 test -n "$ac_ct_CC" && break
2813 done
2815 if test "x$ac_ct_CC" = x; then
2816 CC=""
2817 else
2818 case $cross_compiling:$ac_tool_warned in
2819 yes:)
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2822 ac_tool_warned=yes ;;
2823 esac
2824 CC=$ac_ct_CC
2831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833 as_fn_error $? "no acceptable C compiler found in \$PATH
2834 See \`config.log' for more details" "$LINENO" 5; }
2836 # Provide some information about the compiler.
2837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2838 set X $ac_compile
2839 ac_compiler=$2
2840 for ac_option in --version -v -V -qversion; do
2841 { { ac_try="$ac_compiler $ac_option >&5"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2849 ac_status=$?
2850 if test -s conftest.err; then
2851 sed '10a\
2852 ... rest of stderr output deleted ...
2853 10q' conftest.err >conftest.er1
2854 cat conftest.er1 >&5
2856 rm -f conftest.er1 conftest.err
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }
2859 done
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2865 main ()
2869 return 0;
2871 _ACEOF
2872 ac_clean_files_save=$ac_clean_files
2873 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2874 # Try to create an executable without -o first, disregard a.out.
2875 # It will help us diagnose broken compilers, and finding out an intuition
2876 # of exeext.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2878 $as_echo_n "checking whether the C compiler works... " >&6; }
2879 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2881 # The possible output files:
2882 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2884 ac_rmfiles=
2885 for ac_file in $ac_files
2887 case $ac_file in
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2889 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2890 esac
2891 done
2892 rm -f $ac_rmfiles
2894 if { { ac_try="$ac_link_default"
2895 case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898 esac
2899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900 $as_echo "$ac_try_echo"; } >&5
2901 (eval "$ac_link_default") 2>&5
2902 ac_status=$?
2903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904 test $ac_status = 0; }; then :
2905 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2906 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2907 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2908 # so that the user can short-circuit this test for compilers unknown to
2909 # Autoconf.
2910 for ac_file in $ac_files ''
2912 test -f "$ac_file" || continue
2913 case $ac_file in
2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2916 [ab].out )
2917 # We found the default executable, but exeext='' is most
2918 # certainly right.
2919 break;;
2920 *.* )
2921 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2922 then :; else
2923 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925 # We set ac_cv_exeext here because the later test for it is not
2926 # safe: cross compilers may not add the suffix if given an `-o'
2927 # argument, so we may need to know it at that point already.
2928 # Even if this section looks crufty: it has the advantage of
2929 # actually working.
2930 break;;
2932 break;;
2933 esac
2934 done
2935 test "$ac_cv_exeext" = no && ac_cv_exeext=
2937 else
2938 ac_file=''
2940 if test -z "$ac_file"; then :
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 $as_echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 as_fn_error 77 "C compiler cannot create executables
2949 See \`config.log' for more details" "$LINENO" 5; }
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2955 $as_echo_n "checking for C compiler default output file name... " >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2957 $as_echo "$ac_file" >&6; }
2958 ac_exeext=$ac_cv_exeext
2960 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2961 ac_clean_files=$ac_clean_files_save
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2963 $as_echo_n "checking for suffix of executables... " >&6; }
2964 if { { ac_try="$ac_link"
2965 case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2970 $as_echo "$ac_try_echo"; } >&5
2971 (eval "$ac_link") 2>&5
2972 ac_status=$?
2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974 test $ac_status = 0; }; then :
2975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2977 # work properly (i.e., refer to `conftest.exe'), while it won't with
2978 # `rm'.
2979 for ac_file in conftest.exe conftest conftest.*; do
2980 test -f "$ac_file" || continue
2981 case $ac_file in
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2984 break;;
2985 * ) break;;
2986 esac
2987 done
2988 else
2989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2992 See \`config.log' for more details" "$LINENO" 5; }
2994 rm -f conftest conftest$ac_cv_exeext
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2996 $as_echo "$ac_cv_exeext" >&6; }
2998 rm -f conftest.$ac_ext
2999 EXEEXT=$ac_cv_exeext
3000 ac_exeext=$EXEEXT
3001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h. */
3003 #include <stdio.h>
3005 main ()
3007 FILE *f = fopen ("conftest.out", "w");
3008 return ferror (f) || fclose (f) != 0;
3011 return 0;
3013 _ACEOF
3014 ac_clean_files="$ac_clean_files conftest.out"
3015 # Check that the compiler produces executables we can run. If not, either
3016 # the compiler is broken, or we cross compile.
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3018 $as_echo_n "checking whether we are cross compiling... " >&6; }
3019 if test "$cross_compiling" != yes; then
3020 { { ac_try="$ac_link"
3021 case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_link") 2>&5
3028 ac_status=$?
3029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030 test $ac_status = 0; }
3031 if { ac_try='./conftest$ac_cv_exeext'
3032 { { case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035 esac
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_try") 2>&5
3039 ac_status=$?
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }; }; then
3042 cross_compiling=no
3043 else
3044 if test "$cross_compiling" = maybe; then
3045 cross_compiling=yes
3046 else
3047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error $? "cannot run C compiled programs.
3050 If you meant to cross compile, use \`--host'.
3051 See \`config.log' for more details" "$LINENO" 5; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3056 $as_echo "$cross_compiling" >&6; }
3058 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3059 ac_clean_files=$ac_clean_files_save
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3061 $as_echo_n "checking for suffix of object files... " >&6; }
3062 if ${ac_cv_objext+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3069 main ()
3073 return 0;
3075 _ACEOF
3076 rm -f conftest.o conftest.obj
3077 if { { ac_try="$ac_compile"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_compile") 2>&5
3085 ac_status=$?
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }; then :
3088 for ac_file in conftest.o conftest.obj conftest.*; do
3089 test -f "$ac_file" || continue;
3090 case $ac_file in
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3092 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3093 break;;
3094 esac
3095 done
3096 else
3097 $as_echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error $? "cannot compute suffix of object files: cannot compile
3103 See \`config.log' for more details" "$LINENO" 5; }
3105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3108 $as_echo "$ac_cv_objext" >&6; }
3109 OBJEXT=$ac_cv_objext
3110 ac_objext=$OBJEXT
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3112 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3113 if ${ac_cv_c_compiler_gnu+:} false; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3120 main ()
3122 #ifndef __GNUC__
3123 choke me
3124 #endif
3127 return 0;
3129 _ACEOF
3130 if ac_fn_c_try_compile "$LINENO"; then :
3131 ac_compiler_gnu=yes
3132 else
3133 ac_compiler_gnu=no
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3140 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3141 if test $ac_compiler_gnu = yes; then
3142 GCC=yes
3143 else
3144 GCC=
3146 ac_test_CFLAGS=${CFLAGS+set}
3147 ac_save_CFLAGS=$CFLAGS
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3149 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3150 if ${ac_cv_prog_cc_g+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 ac_save_c_werror_flag=$ac_c_werror_flag
3154 ac_c_werror_flag=yes
3155 ac_cv_prog_cc_g=no
3156 CFLAGS="-g"
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3161 main ()
3165 return 0;
3167 _ACEOF
3168 if ac_fn_c_try_compile "$LINENO"; then :
3169 ac_cv_prog_cc_g=yes
3170 else
3171 CFLAGS=""
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3176 main ()
3180 return 0;
3182 _ACEOF
3183 if ac_fn_c_try_compile "$LINENO"; then :
3185 else
3186 ac_c_werror_flag=$ac_save_c_werror_flag
3187 CFLAGS="-g"
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3192 main ()
3196 return 0;
3198 _ACEOF
3199 if ac_fn_c_try_compile "$LINENO"; then :
3200 ac_cv_prog_cc_g=yes
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3210 $as_echo "$ac_cv_prog_cc_g" >&6; }
3211 if test "$ac_test_CFLAGS" = set; then
3212 CFLAGS=$ac_save_CFLAGS
3213 elif test $ac_cv_prog_cc_g = yes; then
3214 if test "$GCC" = yes; then
3215 CFLAGS="-g -O2"
3216 else
3217 CFLAGS="-g"
3219 else
3220 if test "$GCC" = yes; then
3221 CFLAGS="-O2"
3222 else
3223 CFLAGS=
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3227 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3228 if ${ac_cv_prog_cc_c89+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 ac_cv_prog_cc_c89=no
3232 ac_save_CC=$CC
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3235 #include <stdarg.h>
3236 #include <stdio.h>
3237 #include <sys/types.h>
3238 #include <sys/stat.h>
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3243 char **p;
3244 int i;
3246 return p[i];
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3250 char *s;
3251 va_list v;
3252 va_start (v,p);
3253 s = g (p, va_arg (v,int));
3254 va_end (v);
3255 return s;
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
3261 as 'x'. The following induces an error, until -std is added to get
3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
3264 that's true only with -std. */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3269 #define FOO(x) 'x'
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276 int argc;
3277 char **argv;
3279 main ()
3281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3283 return 0;
3285 _ACEOF
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 CC="$ac_save_CC $ac_arg"
3290 if ac_fn_c_try_compile "$LINENO"; then :
3291 ac_cv_prog_cc_c89=$ac_arg
3293 rm -f core conftest.err conftest.$ac_objext
3294 test "x$ac_cv_prog_cc_c89" != "xno" && break
3295 done
3296 rm -f conftest.$ac_ext
3297 CC=$ac_save_CC
3300 # AC_CACHE_VAL
3301 case "x$ac_cv_prog_cc_c89" in
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3304 $as_echo "none needed" >&6; } ;;
3305 xno)
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3307 $as_echo "unsupported" >&6; } ;;
3309 CC="$CC $ac_cv_prog_cc_c89"
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3312 esac
3313 if test "x$ac_cv_prog_cc_c89" != xno; then :
3317 ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3324 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3325 if ${ac_cv_path_SED+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3329 for ac_i in 1 2 3 4 5 6 7; do
3330 ac_script="$ac_script$as_nl$ac_script"
3331 done
3332 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3333 { ac_script=; unset ac_script;}
3334 if test -z "$SED"; then
3335 ac_path_SED_found=false
3336 # Loop through the user's path and test for each of PROGNAME-LIST
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_prog in sed gsed; do
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3345 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3346 # Check for GNU ac_path_SED and select it if it is found.
3347 # Check for GNU $ac_path_SED
3348 case `"$ac_path_SED" --version 2>&1` in
3349 *GNU*)
3350 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3352 ac_count=0
3353 $as_echo_n 0123456789 >"conftest.in"
3354 while :
3356 cat "conftest.in" "conftest.in" >"conftest.tmp"
3357 mv "conftest.tmp" "conftest.in"
3358 cp "conftest.in" "conftest.nl"
3359 $as_echo '' >> "conftest.nl"
3360 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3362 as_fn_arith $ac_count + 1 && ac_count=$as_val
3363 if test $ac_count -gt ${ac_path_SED_max-0}; then
3364 # Best one so far, save it but keep looking for a better one
3365 ac_cv_path_SED="$ac_path_SED"
3366 ac_path_SED_max=$ac_count
3368 # 10*(2^10) chars as input seems more than enough
3369 test $ac_count -gt 10 && break
3370 done
3371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3372 esac
3374 $ac_path_SED_found && break 3
3375 done
3376 done
3377 done
3378 IFS=$as_save_IFS
3379 if test -z "$ac_cv_path_SED"; then
3380 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3382 else
3383 ac_cv_path_SED=$SED
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3388 $as_echo "$ac_cv_path_SED" >&6; }
3389 SED="$ac_cv_path_SED"
3390 rm -f conftest.sed
3392 test -z "$SED" && SED=sed
3393 Xsed="$SED -e 1s/^X//"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3406 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3407 if ${ac_cv_path_GREP+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -z "$GREP"; then
3411 ac_path_GREP_found=false
3412 # Loop through the user's path and test for each of PROGNAME-LIST
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_prog in grep ggrep; do
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3421 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3422 # Check for GNU ac_path_GREP and select it if it is found.
3423 # Check for GNU $ac_path_GREP
3424 case `"$ac_path_GREP" --version 2>&1` in
3425 *GNU*)
3426 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3428 ac_count=0
3429 $as_echo_n 0123456789 >"conftest.in"
3430 while :
3432 cat "conftest.in" "conftest.in" >"conftest.tmp"
3433 mv "conftest.tmp" "conftest.in"
3434 cp "conftest.in" "conftest.nl"
3435 $as_echo 'GREP' >> "conftest.nl"
3436 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3438 as_fn_arith $ac_count + 1 && ac_count=$as_val
3439 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3440 # Best one so far, save it but keep looking for a better one
3441 ac_cv_path_GREP="$ac_path_GREP"
3442 ac_path_GREP_max=$ac_count
3444 # 10*(2^10) chars as input seems more than enough
3445 test $ac_count -gt 10 && break
3446 done
3447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3448 esac
3450 $ac_path_GREP_found && break 3
3451 done
3452 done
3453 done
3454 IFS=$as_save_IFS
3455 if test -z "$ac_cv_path_GREP"; then
3456 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3458 else
3459 ac_cv_path_GREP=$GREP
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3464 $as_echo "$ac_cv_path_GREP" >&6; }
3465 GREP="$ac_cv_path_GREP"
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3469 $as_echo_n "checking for egrep... " >&6; }
3470 if ${ac_cv_path_EGREP+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3474 then ac_cv_path_EGREP="$GREP -E"
3475 else
3476 if test -z "$EGREP"; then
3477 ac_path_EGREP_found=false
3478 # Loop through the user's path and test for each of PROGNAME-LIST
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_prog in egrep; do
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3487 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3488 # Check for GNU ac_path_EGREP and select it if it is found.
3489 # Check for GNU $ac_path_EGREP
3490 case `"$ac_path_EGREP" --version 2>&1` in
3491 *GNU*)
3492 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3494 ac_count=0
3495 $as_echo_n 0123456789 >"conftest.in"
3496 while :
3498 cat "conftest.in" "conftest.in" >"conftest.tmp"
3499 mv "conftest.tmp" "conftest.in"
3500 cp "conftest.in" "conftest.nl"
3501 $as_echo 'EGREP' >> "conftest.nl"
3502 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3504 as_fn_arith $ac_count + 1 && ac_count=$as_val
3505 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3506 # Best one so far, save it but keep looking for a better one
3507 ac_cv_path_EGREP="$ac_path_EGREP"
3508 ac_path_EGREP_max=$ac_count
3510 # 10*(2^10) chars as input seems more than enough
3511 test $ac_count -gt 10 && break
3512 done
3513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3514 esac
3516 $ac_path_EGREP_found && break 3
3517 done
3518 done
3519 done
3520 IFS=$as_save_IFS
3521 if test -z "$ac_cv_path_EGREP"; then
3522 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3524 else
3525 ac_cv_path_EGREP=$EGREP
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3531 $as_echo "$ac_cv_path_EGREP" >&6; }
3532 EGREP="$ac_cv_path_EGREP"
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3536 $as_echo_n "checking for fgrep... " >&6; }
3537 if ${ac_cv_path_FGREP+:} false; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3541 then ac_cv_path_FGREP="$GREP -F"
3542 else
3543 if test -z "$FGREP"; then
3544 ac_path_FGREP_found=false
3545 # Loop through the user's path and test for each of PROGNAME-LIST
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_prog in fgrep; do
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3554 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3555 # Check for GNU ac_path_FGREP and select it if it is found.
3556 # Check for GNU $ac_path_FGREP
3557 case `"$ac_path_FGREP" --version 2>&1` in
3558 *GNU*)
3559 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3561 ac_count=0
3562 $as_echo_n 0123456789 >"conftest.in"
3563 while :
3565 cat "conftest.in" "conftest.in" >"conftest.tmp"
3566 mv "conftest.tmp" "conftest.in"
3567 cp "conftest.in" "conftest.nl"
3568 $as_echo 'FGREP' >> "conftest.nl"
3569 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3571 as_fn_arith $ac_count + 1 && ac_count=$as_val
3572 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3573 # Best one so far, save it but keep looking for a better one
3574 ac_cv_path_FGREP="$ac_path_FGREP"
3575 ac_path_FGREP_max=$ac_count
3577 # 10*(2^10) chars as input seems more than enough
3578 test $ac_count -gt 10 && break
3579 done
3580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3581 esac
3583 $ac_path_FGREP_found && break 3
3584 done
3585 done
3586 done
3587 IFS=$as_save_IFS
3588 if test -z "$ac_cv_path_FGREP"; then
3589 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3591 else
3592 ac_cv_path_FGREP=$FGREP
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3598 $as_echo "$ac_cv_path_FGREP" >&6; }
3599 FGREP="$ac_cv_path_FGREP"
3602 test -z "$GREP" && GREP=grep
3622 # Check whether --with-gnu-ld was given.
3623 if test "${with_gnu_ld+set}" = set; then :
3624 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3625 else
3626 with_gnu_ld=no
3629 ac_prog=ld
3630 if test "$GCC" = yes; then
3631 # Check if gcc -print-prog-name=ld gives a path.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3633 $as_echo_n "checking for ld used by $CC... " >&6; }
3634 case $host in
3635 *-*-mingw*)
3636 # gcc leaves a trailing carriage return which upsets mingw
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3640 esac
3641 case $ac_prog in
3642 # Accept absolute paths.
3643 [\\/]* | ?:[\\/]*)
3644 re_direlt='/[^/][^/]*/\.\./'
3645 # Canonicalize the pathname of ld
3646 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3647 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3648 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3649 done
3650 test -z "$LD" && LD="$ac_prog"
3653 # If it fails, then pretend we aren't using GCC.
3654 ac_prog=ld
3657 # If it is relative, then search for the first ld in PATH.
3658 with_gnu_ld=unknown
3660 esac
3661 elif test "$with_gnu_ld" = yes; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3663 $as_echo_n "checking for GNU ld... " >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3666 $as_echo_n "checking for non-GNU ld... " >&6; }
3668 if ${lt_cv_path_LD+:} false; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 if test -z "$LD"; then
3672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3673 for ac_dir in $PATH; do
3674 IFS="$lt_save_ifs"
3675 test -z "$ac_dir" && ac_dir=.
3676 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3677 lt_cv_path_LD="$ac_dir/$ac_prog"
3678 # Check to see if the program is GNU ld. I'd rather use --version,
3679 # but apparently some variants of GNU ld only accept -v.
3680 # Break only if it was the GNU/non-GNU ld that we prefer.
3681 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3682 *GNU* | *'with BFD'*)
3683 test "$with_gnu_ld" != no && break
3686 test "$with_gnu_ld" != yes && break
3688 esac
3690 done
3691 IFS="$lt_save_ifs"
3692 else
3693 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3697 LD="$lt_cv_path_LD"
3698 if test -n "$LD"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3700 $as_echo "$LD" >&6; }
3701 else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3705 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3707 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3708 if ${lt_cv_prog_gnu_ld+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3712 case `$LD -v 2>&1 </dev/null` in
3713 *GNU* | *'with BFD'*)
3714 lt_cv_prog_gnu_ld=yes
3717 lt_cv_prog_gnu_ld=no
3719 esac
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3722 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3723 with_gnu_ld=$lt_cv_prog_gnu_ld
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3734 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3735 if ${lt_cv_path_NM+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$NM"; then
3739 # Let the user override the test.
3740 lt_cv_path_NM="$NM"
3741 else
3742 lt_nm_to_check="${ac_tool_prefix}nm"
3743 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3744 lt_nm_to_check="$lt_nm_to_check nm"
3746 for lt_tmp_nm in $lt_nm_to_check; do
3747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3748 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3749 IFS="$lt_save_ifs"
3750 test -z "$ac_dir" && ac_dir=.
3751 tmp_nm="$ac_dir/$lt_tmp_nm"
3752 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3753 # Check to see if the nm accepts a BSD-compat flag.
3754 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3755 # nm: unknown option "B" ignored
3756 # Tru64's nm complains that /dev/null is an invalid object file
3757 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3758 */dev/null* | *'Invalid file or object type'*)
3759 lt_cv_path_NM="$tmp_nm -B"
3760 break
3763 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3764 */dev/null*)
3765 lt_cv_path_NM="$tmp_nm -p"
3766 break
3769 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3770 continue # so that we can try to find one that supports BSD flags
3772 esac
3774 esac
3776 done
3777 IFS="$lt_save_ifs"
3778 done
3779 : ${lt_cv_path_NM=no}
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3783 $as_echo "$lt_cv_path_NM" >&6; }
3784 if test "$lt_cv_path_NM" != "no"; then
3785 NM="$lt_cv_path_NM"
3786 else
3787 # Didn't find any BSD compatible name lister, look for dumpbin.
3788 if test -n "$ac_tool_prefix"; then
3789 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3792 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794 $as_echo_n "checking for $ac_word... " >&6; }
3795 if ${ac_cv_prog_DUMPBIN+:} false; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 if test -n "$DUMPBIN"; then
3799 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 break 2
3812 done
3813 done
3814 IFS=$as_save_IFS
3818 DUMPBIN=$ac_cv_prog_DUMPBIN
3819 if test -n "$DUMPBIN"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3821 $as_echo "$DUMPBIN" >&6; }
3822 else
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3828 test -n "$DUMPBIN" && break
3829 done
3831 if test -z "$DUMPBIN"; then
3832 ac_ct_DUMPBIN=$DUMPBIN
3833 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3835 # Extract the first word of "$ac_prog", so it can be a program name with args.
3836 set dummy $ac_prog; ac_word=$2
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838 $as_echo_n "checking for $ac_word... " >&6; }
3839 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 if test -n "$ac_ct_DUMPBIN"; then
3843 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3844 else
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3852 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 break 2
3856 done
3857 done
3858 IFS=$as_save_IFS
3862 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3863 if test -n "$ac_ct_DUMPBIN"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3865 $as_echo "$ac_ct_DUMPBIN" >&6; }
3866 else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3872 test -n "$ac_ct_DUMPBIN" && break
3873 done
3875 if test "x$ac_ct_DUMPBIN" = x; then
3876 DUMPBIN=":"
3877 else
3878 case $cross_compiling:$ac_tool_warned in
3879 yes:)
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3882 ac_tool_warned=yes ;;
3883 esac
3884 DUMPBIN=$ac_ct_DUMPBIN
3889 if test "$DUMPBIN" != ":"; then
3890 NM="$DUMPBIN"
3893 test -z "$NM" && NM=nm
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3901 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3902 if ${lt_cv_nm_interface+:} false; then :
3903 $as_echo_n "(cached) " >&6
3904 else
3905 lt_cv_nm_interface="BSD nm"
3906 echo "int some_variable = 0;" > conftest.$ac_ext
3907 (eval echo "\"\$as_me:3907: $ac_compile\"" >&5)
3908 (eval "$ac_compile" 2>conftest.err)
3909 cat conftest.err >&5
3910 (eval echo "\"\$as_me:3910: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3911 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3912 cat conftest.err >&5
3913 (eval echo "\"\$as_me:3913: output\"" >&5)
3914 cat conftest.out >&5
3915 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3916 lt_cv_nm_interface="MS dumpbin"
3918 rm -f conftest*
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3921 $as_echo "$lt_cv_nm_interface" >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3924 $as_echo_n "checking whether ln -s works... " >&6; }
3925 LN_S=$as_ln_s
3926 if test "$LN_S" = "ln -s"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3928 $as_echo "yes" >&6; }
3929 else
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3931 $as_echo "no, using $LN_S" >&6; }
3934 # find the maximum length of command line arguments
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3936 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3937 if ${lt_cv_sys_max_cmd_len+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3941 teststring="ABCD"
3943 case $build_os in
3944 msdosdjgpp*)
3945 # On DJGPP, this test can blow up pretty badly due to problems in libc
3946 # (any single argument exceeding 2000 bytes causes a buffer overrun
3947 # during glob expansion). Even if it were fixed, the result of this
3948 # check would be larger than it should be.
3949 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3952 gnu*)
3953 # Under GNU Hurd, this test is not required because there is
3954 # no limit to the length of command line arguments.
3955 # Libtool will interpret -1 as no limit whatsoever
3956 lt_cv_sys_max_cmd_len=-1;
3959 cygwin* | mingw* | cegcc*)
3960 # On Win9x/ME, this test blows up -- it succeeds, but takes
3961 # about 5 minutes as the teststring grows exponentially.
3962 # Worse, since 9x/ME are not pre-emptively multitasking,
3963 # you end up with a "frozen" computer, even though with patience
3964 # the test eventually succeeds (with a max line length of 256k).
3965 # Instead, let's just punt: use the minimum linelength reported by
3966 # all of the supported platforms: 8192 (on NT/2K/XP).
3967 lt_cv_sys_max_cmd_len=8192;
3970 amigaos*)
3971 # On AmigaOS with pdksh, this test takes hours, literally.
3972 # So we just punt and use a minimum line length of 8192.
3973 lt_cv_sys_max_cmd_len=8192;
3976 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3977 # This has been around since 386BSD, at least. Likely further.
3978 if test -x /sbin/sysctl; then
3979 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3980 elif test -x /usr/sbin/sysctl; then
3981 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3982 else
3983 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3985 # And add a safety zone
3986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3990 interix*)
3991 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3992 lt_cv_sys_max_cmd_len=196608
3995 osf*)
3996 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3997 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3998 # nice to cause kernel panics so lets avoid the loop below.
3999 # First set a reasonable default.
4000 lt_cv_sys_max_cmd_len=16384
4002 if test -x /sbin/sysconfig; then
4003 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4004 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4005 esac
4008 sco3.2v5*)
4009 lt_cv_sys_max_cmd_len=102400
4011 sysv5* | sco5v6* | sysv4.2uw2*)
4012 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4013 if test -n "$kargmax"; then
4014 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4015 else
4016 lt_cv_sys_max_cmd_len=32768
4020 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4021 if test -n "$lt_cv_sys_max_cmd_len"; then
4022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4024 else
4025 # Make teststring a little bigger before we do anything with it.
4026 # a 1K string should be a reasonable start.
4027 for i in 1 2 3 4 5 6 7 8 ; do
4028 teststring=$teststring$teststring
4029 done
4030 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4031 # If test is not a shell built-in, we'll probably end up computing a
4032 # maximum length that is only half of the actual maximum length, but
4033 # we can't tell.
4034 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4035 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4036 test $i != 17 # 1/2 MB should be enough
4038 i=`expr $i + 1`
4039 teststring=$teststring$teststring
4040 done
4041 # Only check the string length outside the loop.
4042 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4043 teststring=
4044 # Add a significant safety factor because C++ compilers can tack on
4045 # massive amounts of additional arguments before passing them to the
4046 # linker. It appears as though 1/2 is a usable value.
4047 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4050 esac
4054 if test -n $lt_cv_sys_max_cmd_len ; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4056 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4059 $as_echo "none" >&6; }
4061 max_cmd_len=$lt_cv_sys_max_cmd_len
4068 : ${CP="cp -f"}
4069 : ${MV="mv -f"}
4070 : ${RM="rm -f"}
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4073 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4074 # Try some XSI features
4075 xsi_shell=no
4076 ( _lt_dummy="a/b/c"
4077 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4078 = c,a/b,, \
4079 && eval 'test $(( 1 + 1 )) -eq 2 \
4080 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4081 && xsi_shell=yes
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4083 $as_echo "$xsi_shell" >&6; }
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4087 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4088 lt_shell_append=no
4089 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4090 >/dev/null 2>&1 \
4091 && lt_shell_append=yes
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4093 $as_echo "$lt_shell_append" >&6; }
4096 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4097 lt_unset=unset
4098 else
4099 lt_unset=false
4106 # test EBCDIC or ASCII
4107 case `echo X|tr X '\101'` in
4108 A) # ASCII based system
4109 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4110 lt_SP2NL='tr \040 \012'
4111 lt_NL2SP='tr \015\012 \040\040'
4113 *) # EBCDIC based system
4114 lt_SP2NL='tr \100 \n'
4115 lt_NL2SP='tr \r\n \100\100'
4117 esac
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4128 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4129 if ${lt_cv_ld_reload_flag+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 lt_cv_ld_reload_flag='-r'
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4135 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4136 reload_flag=$lt_cv_ld_reload_flag
4137 case $reload_flag in
4138 "" | " "*) ;;
4139 *) reload_flag=" $reload_flag" ;;
4140 esac
4141 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4142 case $host_os in
4143 darwin*)
4144 if test "$GCC" = yes; then
4145 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4146 else
4147 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4150 esac
4160 if test -n "$ac_tool_prefix"; then
4161 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4162 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_OBJDUMP+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test -n "$OBJDUMP"; then
4169 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4182 done
4183 done
4184 IFS=$as_save_IFS
4188 OBJDUMP=$ac_cv_prog_OBJDUMP
4189 if test -n "$OBJDUMP"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4191 $as_echo "$OBJDUMP" >&6; }
4192 else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4199 if test -z "$ac_cv_prog_OBJDUMP"; then
4200 ac_ct_OBJDUMP=$OBJDUMP
4201 # Extract the first word of "objdump", so it can be a program name with args.
4202 set dummy objdump; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if test -n "$ac_ct_OBJDUMP"; then
4209 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4222 done
4223 done
4224 IFS=$as_save_IFS
4228 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4229 if test -n "$ac_ct_OBJDUMP"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4231 $as_echo "$ac_ct_OBJDUMP" >&6; }
4232 else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4237 if test "x$ac_ct_OBJDUMP" = x; then
4238 OBJDUMP="false"
4239 else
4240 case $cross_compiling:$ac_tool_warned in
4241 yes:)
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244 ac_tool_warned=yes ;;
4245 esac
4246 OBJDUMP=$ac_ct_OBJDUMP
4248 else
4249 OBJDUMP="$ac_cv_prog_OBJDUMP"
4252 test -z "$OBJDUMP" && OBJDUMP=objdump
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4263 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4264 if ${lt_cv_deplibs_check_method+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 lt_cv_file_magic_cmd='$MAGIC_CMD'
4268 lt_cv_file_magic_test_file=
4269 lt_cv_deplibs_check_method='unknown'
4270 # Need to set the preceding variable on all platforms that support
4271 # interlibrary dependencies.
4272 # 'none' -- dependencies not supported.
4273 # `unknown' -- same as none, but documents that we really don't know.
4274 # 'pass_all' -- all dependencies passed with no checks.
4275 # 'test_compile' -- check by making test program.
4276 # 'file_magic [[regex]]' -- check by looking for files in library path
4277 # which responds to the $file_magic_cmd with a given extended regex.
4278 # If you have `file' or equivalent on your system and you're not sure
4279 # whether `pass_all' will *always* work, you probably want this one.
4281 case $host_os in
4282 aix[4-9]*)
4283 lt_cv_deplibs_check_method=pass_all
4286 beos*)
4287 lt_cv_deplibs_check_method=pass_all
4290 bsdi[45]*)
4291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4292 lt_cv_file_magic_cmd='/usr/bin/file -L'
4293 lt_cv_file_magic_test_file=/shlib/libc.so
4296 cygwin*)
4297 # func_win32_libid is a shell function defined in ltmain.sh
4298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4299 lt_cv_file_magic_cmd='func_win32_libid'
4302 mingw* | pw32*)
4303 # Base MSYS/MinGW do not provide the 'file' command needed by
4304 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4305 # unless we find 'file', for example because we are cross-compiling.
4306 if ( file / ) >/dev/null 2>&1; then
4307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4308 lt_cv_file_magic_cmd='func_win32_libid'
4309 else
4310 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4311 lt_cv_file_magic_cmd='$OBJDUMP -f'
4315 cegcc)
4316 # use the weaker test based on 'objdump'. See mingw*.
4317 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4318 lt_cv_file_magic_cmd='$OBJDUMP -f'
4321 darwin* | rhapsody*)
4322 lt_cv_deplibs_check_method=pass_all
4325 freebsd* | dragonfly*)
4326 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4327 case $host_cpu in
4328 i*86 )
4329 # Not sure whether the presence of OpenBSD here was a mistake.
4330 # Let's accept both of them until this is cleared up.
4331 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4332 lt_cv_file_magic_cmd=/usr/bin/file
4333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4335 esac
4336 else
4337 lt_cv_deplibs_check_method=pass_all
4341 gnu*)
4342 lt_cv_deplibs_check_method=pass_all
4345 hpux10.20* | hpux11*)
4346 lt_cv_file_magic_cmd=/usr/bin/file
4347 case $host_cpu in
4348 ia64*)
4349 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4350 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4352 hppa*64*)
4353 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4354 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4357 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4358 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4360 esac
4363 interix[3-9]*)
4364 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4368 irix5* | irix6* | nonstopux*)
4369 case $LD in
4370 *-32|*"-32 ") libmagic=32-bit;;
4371 *-n32|*"-n32 ") libmagic=N32;;
4372 *-64|*"-64 ") libmagic=64-bit;;
4373 *) libmagic=never-match;;
4374 esac
4375 lt_cv_deplibs_check_method=pass_all
4378 # This must be Linux ELF.
4379 linux* | k*bsd*-gnu)
4380 lt_cv_deplibs_check_method=pass_all
4383 netbsd*)
4384 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4386 else
4387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4391 newos6*)
4392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4393 lt_cv_file_magic_cmd=/usr/bin/file
4394 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4397 *nto* | *qnx*)
4398 lt_cv_deplibs_check_method=pass_all
4401 openbsd*)
4402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4404 else
4405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4409 osf3* | osf4* | osf5*)
4410 lt_cv_deplibs_check_method=pass_all
4413 rdos*)
4414 lt_cv_deplibs_check_method=pass_all
4417 solaris*)
4418 lt_cv_deplibs_check_method=pass_all
4421 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4422 lt_cv_deplibs_check_method=pass_all
4425 sysv4 | sysv4.3*)
4426 case $host_vendor in
4427 motorola)
4428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4431 ncr)
4432 lt_cv_deplibs_check_method=pass_all
4434 sequent)
4435 lt_cv_file_magic_cmd='/bin/file'
4436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4438 sni)
4439 lt_cv_file_magic_cmd='/bin/file'
4440 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4441 lt_cv_file_magic_test_file=/lib/libc.so
4443 siemens)
4444 lt_cv_deplibs_check_method=pass_all
4447 lt_cv_deplibs_check_method=pass_all
4449 esac
4452 tpf*)
4453 lt_cv_deplibs_check_method=pass_all
4455 esac
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4459 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4460 file_magic_cmd=$lt_cv_file_magic_cmd
4461 deplibs_check_method=$lt_cv_deplibs_check_method
4462 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4475 if test -n "$ac_tool_prefix"; then
4476 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4477 set dummy ${ac_tool_prefix}ar; ac_word=$2
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4479 $as_echo_n "checking for $ac_word... " >&6; }
4480 if ${ac_cv_prog_AR+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 if test -n "$AR"; then
4484 ac_cv_prog_AR="$AR" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_AR="${ac_tool_prefix}ar"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4499 IFS=$as_save_IFS
4503 AR=$ac_cv_prog_AR
4504 if test -n "$AR"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4506 $as_echo "$AR" >&6; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4514 if test -z "$ac_cv_prog_AR"; then
4515 ac_ct_AR=$AR
4516 # Extract the first word of "ar", so it can be a program name with args.
4517 set dummy ar; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -n "$ac_ct_AR"; then
4524 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533 ac_cv_prog_ac_ct_AR="ar"
4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4537 done
4538 done
4539 IFS=$as_save_IFS
4543 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4544 if test -n "$ac_ct_AR"; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4546 $as_echo "$ac_ct_AR" >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4552 if test "x$ac_ct_AR" = x; then
4553 AR="false"
4554 else
4555 case $cross_compiling:$ac_tool_warned in
4556 yes:)
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4559 ac_tool_warned=yes ;;
4560 esac
4561 AR=$ac_ct_AR
4563 else
4564 AR="$ac_cv_prog_AR"
4567 test -z "$AR" && AR=ar
4568 test -z "$AR_FLAGS" && AR_FLAGS=cru
4580 if test -n "$ac_tool_prefix"; then
4581 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4582 set dummy ${ac_tool_prefix}strip; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if ${ac_cv_prog_STRIP+:} false; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 if test -n "$STRIP"; then
4589 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4602 done
4603 done
4604 IFS=$as_save_IFS
4608 STRIP=$ac_cv_prog_STRIP
4609 if test -n "$STRIP"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4611 $as_echo "$STRIP" >&6; }
4612 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4619 if test -z "$ac_cv_prog_STRIP"; then
4620 ac_ct_STRIP=$STRIP
4621 # Extract the first word of "strip", so it can be a program name with args.
4622 set dummy strip; ac_word=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 if test -n "$ac_ct_STRIP"; then
4629 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_prog_ac_ct_STRIP="strip"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4642 done
4643 done
4644 IFS=$as_save_IFS
4648 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4649 if test -n "$ac_ct_STRIP"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4651 $as_echo "$ac_ct_STRIP" >&6; }
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4657 if test "x$ac_ct_STRIP" = x; then
4658 STRIP=":"
4659 else
4660 case $cross_compiling:$ac_tool_warned in
4661 yes:)
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4664 ac_tool_warned=yes ;;
4665 esac
4666 STRIP=$ac_ct_STRIP
4668 else
4669 STRIP="$ac_cv_prog_STRIP"
4672 test -z "$STRIP" && STRIP=:
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_RANLIB+:} false; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$RANLIB"; then
4688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4701 done
4702 done
4703 IFS=$as_save_IFS
4707 RANLIB=$ac_cv_prog_RANLIB
4708 if test -n "$RANLIB"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4710 $as_echo "$RANLIB" >&6; }
4711 else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4718 if test -z "$ac_cv_prog_RANLIB"; then
4719 ac_ct_RANLIB=$RANLIB
4720 # Extract the first word of "ranlib", so it can be a program name with args.
4721 set dummy ranlib; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 if test -n "$ac_ct_RANLIB"; then
4728 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_ac_ct_RANLIB="ranlib"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4741 done
4742 done
4743 IFS=$as_save_IFS
4747 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4748 if test -n "$ac_ct_RANLIB"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4750 $as_echo "$ac_ct_RANLIB" >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4756 if test "x$ac_ct_RANLIB" = x; then
4757 RANLIB=":"
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760 yes:)
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765 RANLIB=$ac_ct_RANLIB
4767 else
4768 RANLIB="$ac_cv_prog_RANLIB"
4771 test -z "$RANLIB" && RANLIB=:
4778 # Determine commands to create old-style static archives.
4779 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4780 old_postinstall_cmds='chmod 644 $oldlib'
4781 old_postuninstall_cmds=
4783 if test -n "$RANLIB"; then
4784 case $host_os in
4785 openbsd*)
4786 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4789 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4791 esac
4792 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4828 # If no C compiler was specified, use CC.
4829 LTCC=${LTCC-"$CC"}
4831 # If no C compiler flags were specified, use CFLAGS.
4832 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4834 # Allow CC to be a program name with arguments.
4835 compiler=$CC
4838 # Check for command to grab the raw symbol name followed by C symbol from nm.
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4840 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4841 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4845 # These are sane defaults that work on at least a few old systems.
4846 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4848 # Character class describing NM global symbol codes.
4849 symcode='[BCDEGRST]'
4851 # Regexp to match symbols that can be accessed directly from C.
4852 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4854 # Define system-specific variables.
4855 case $host_os in
4856 aix*)
4857 symcode='[BCDT]'
4859 cygwin* | mingw* | pw32* | cegcc*)
4860 symcode='[ABCDGISTW]'
4862 hpux*)
4863 if test "$host_cpu" = ia64; then
4864 symcode='[ABCDEGRST]'
4867 irix* | nonstopux*)
4868 symcode='[BCDEGRST]'
4870 osf*)
4871 symcode='[BCDEGQRST]'
4873 solaris*)
4874 symcode='[BDRT]'
4876 sco3.2v5*)
4877 symcode='[DT]'
4879 sysv4.2uw2*)
4880 symcode='[DT]'
4882 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4883 symcode='[ABDT]'
4885 sysv4)
4886 symcode='[DFNSTU]'
4888 esac
4890 # If we're using GNU nm, then use its standard symbol codes.
4891 case `$NM -V 2>&1` in
4892 *GNU* | *'with BFD'*)
4893 symcode='[ABCDGIRSTW]' ;;
4894 esac
4896 # Transform an extracted symbol line into a proper C declaration.
4897 # Some systems (esp. on ia64) link data and code symbols differently,
4898 # so use this general approach.
4899 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4901 # Transform an extracted symbol line into symbol name and symbol address
4902 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4903 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\", (void *) \&\2},/p'"
4905 # Handle CRLF in mingw tool chain
4906 opt_cr=
4907 case $build_os in
4908 mingw*)
4909 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4911 esac
4913 # Try without a prefix underscore, then with it.
4914 for ac_symprfx in "" "_"; do
4916 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4917 symxfrm="\\1 $ac_symprfx\\2 \\2"
4919 # Write the raw and C identifiers.
4920 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4921 # Fake it for dumpbin and say T for any non-static function
4922 # and D for any global variable.
4923 # Also find C++ and __fastcall symbols from MSVC++,
4924 # which start with @ or ?.
4925 lt_cv_sys_global_symbol_pipe="$AWK '"\
4926 " {last_section=section; section=\$ 3};"\
4927 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4928 " \$ 0!~/External *\|/{next};"\
4929 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4930 " {if(hide[section]) next};"\
4931 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4932 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4933 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4934 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4935 " ' prfx=^$ac_symprfx"
4936 else
4937 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4940 # Check to see that the pipe works correctly.
4941 pipe_works=no
4943 rm -f conftest*
4944 cat > conftest.$ac_ext <<_LT_EOF
4945 #ifdef __cplusplus
4946 extern "C" {
4947 #endif
4948 char nm_test_var;
4949 void nm_test_func(void);
4950 void nm_test_func(void){}
4951 #ifdef __cplusplus
4953 #endif
4954 int main(){nm_test_var='a';nm_test_func();return(0);}
4955 _LT_EOF
4957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4958 (eval $ac_compile) 2>&5
4959 ac_status=$?
4960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4961 test $ac_status = 0; }; then
4962 # Now try to grab the symbols.
4963 nlist=conftest.nm
4964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4965 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4966 ac_status=$?
4967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4968 test $ac_status = 0; } && test -s "$nlist"; then
4969 # Try sorting and uniquifying the output.
4970 if sort "$nlist" | uniq > "$nlist"T; then
4971 mv -f "$nlist"T "$nlist"
4972 else
4973 rm -f "$nlist"T
4976 # Make sure that we snagged all the symbols we need.
4977 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4978 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4979 cat <<_LT_EOF > conftest.$ac_ext
4980 #ifdef __cplusplus
4981 extern "C" {
4982 #endif
4984 _LT_EOF
4985 # Now generate the symbol file.
4986 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4988 cat <<_LT_EOF >> conftest.$ac_ext
4990 /* The mapping between symbol names and symbols. */
4991 const struct {
4992 const char *name;
4993 void *address;
4995 lt__PROGRAM__LTX_preloaded_symbols[] =
4997 { "@PROGRAM@", (void *) 0 },
4998 _LT_EOF
4999 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5000 cat <<\_LT_EOF >> conftest.$ac_ext
5001 {0, (void *) 0}
5004 /* This works around a problem in FreeBSD linker */
5005 #ifdef FREEBSD_WORKAROUND
5006 static const void *lt_preloaded_setup() {
5007 return lt__PROGRAM__LTX_preloaded_symbols;
5009 #endif
5011 #ifdef __cplusplus
5013 #endif
5014 _LT_EOF
5015 # Now try linking the two files.
5016 mv conftest.$ac_objext conftstm.$ac_objext
5017 lt_save_LIBS="$LIBS"
5018 lt_save_CFLAGS="$CFLAGS"
5019 LIBS="conftstm.$ac_objext"
5020 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5022 (eval $ac_link) 2>&5
5023 ac_status=$?
5024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5025 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5026 pipe_works=yes
5028 LIBS="$lt_save_LIBS"
5029 CFLAGS="$lt_save_CFLAGS"
5030 else
5031 echo "cannot find nm_test_func in $nlist" >&5
5033 else
5034 echo "cannot find nm_test_var in $nlist" >&5
5036 else
5037 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5039 else
5040 echo "$progname: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5043 rm -rf conftest* conftst*
5045 # Do not use the global_symbol_pipe unless it works.
5046 if test "$pipe_works" = yes; then
5047 break
5048 else
5049 lt_cv_sys_global_symbol_pipe=
5051 done
5055 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5056 lt_cv_sys_global_symbol_to_cdecl=
5058 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5060 $as_echo "failed" >&6; }
5061 else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5063 $as_echo "ok" >&6; }
5088 # Check whether --enable-libtool-lock was given.
5089 if test "${enable_libtool_lock+set}" = set; then :
5090 enableval=$enable_libtool_lock;
5093 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5095 # Some flags need to be propagated to the compiler or linker for good
5096 # libtool support.
5097 case $host in
5098 ia64-*-hpux*)
5099 # Find out which ABI we are using.
5100 echo 'int i;' > conftest.$ac_ext
5101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5102 (eval $ac_compile) 2>&5
5103 ac_status=$?
5104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; }; then
5106 case `/usr/bin/file conftest.$ac_objext` in
5107 *ELF-32*)
5108 HPUX_IA64_MODE="32"
5110 *ELF-64*)
5111 HPUX_IA64_MODE="64"
5113 esac
5115 rm -rf conftest*
5117 *-*-irix6*)
5118 # Find out which ABI we are using.
5119 echo '#line 5119 "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
5126 case `/usr/bin/file conftest.$ac_objext` in
5127 *32-bit*)
5128 LD="${LD-ld} -melf32bsmip"
5130 *N32*)
5131 LD="${LD-ld} -melf32bmipn32"
5133 *64-bit*)
5134 LD="${LD-ld} -melf64bmip"
5136 esac
5137 else
5138 case `/usr/bin/file conftest.$ac_objext` in
5139 *32-bit*)
5140 LD="${LD-ld} -32"
5142 *N32*)
5143 LD="${LD-ld} -n32"
5145 *64-bit*)
5146 LD="${LD-ld} -64"
5148 esac
5151 rm -rf conftest*
5154 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5155 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5156 # Find out which ABI we are using.
5157 echo 'int i;' > conftest.$ac_ext
5158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5159 (eval $ac_compile) 2>&5
5160 ac_status=$?
5161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5162 test $ac_status = 0; }; then
5163 case `/usr/bin/file conftest.o` in
5164 *32-bit*)
5165 case $host in
5166 x86_64-*kfreebsd*-gnu)
5167 LD="${LD-ld} -m elf_i386_fbsd"
5169 x86_64-*linux*)
5170 LD="${LD-ld} -m elf_i386"
5172 ppc64-*linux*|powerpc64-*linux*)
5173 LD="${LD-ld} -m elf32ppclinux"
5175 s390x-*linux*)
5176 LD="${LD-ld} -m elf_s390"
5178 sparc64-*linux*)
5179 LD="${LD-ld} -m elf32_sparc"
5181 esac
5183 *64-bit*)
5184 case $host in
5185 x86_64-*kfreebsd*-gnu)
5186 LD="${LD-ld} -m elf_x86_64_fbsd"
5188 x86_64-*linux*)
5189 LD="${LD-ld} -m elf_x86_64"
5191 ppc*-*linux*|powerpc*-*linux*)
5192 LD="${LD-ld} -m elf64ppc"
5194 s390*-*linux*|s390*-*tpf*)
5195 LD="${LD-ld} -m elf64_s390"
5197 sparc*-*linux*)
5198 LD="${LD-ld} -m elf64_sparc"
5200 esac
5202 esac
5204 rm -rf conftest*
5207 *-*-sco3.2v5*)
5208 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5209 SAVE_CFLAGS="$CFLAGS"
5210 CFLAGS="$CFLAGS -belf"
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5212 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5213 if ${lt_cv_cc_needs_belf+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 ac_ext=c
5217 ac_cpp='$CPP $CPPFLAGS'
5218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5226 main ()
5230 return 0;
5232 _ACEOF
5233 if ac_fn_c_try_link "$LINENO"; then :
5234 lt_cv_cc_needs_belf=yes
5235 else
5236 lt_cv_cc_needs_belf=no
5238 rm -f core conftest.err conftest.$ac_objext \
5239 conftest$ac_exeext conftest.$ac_ext
5240 ac_ext=c
5241 ac_cpp='$CPP $CPPFLAGS'
5242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5248 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5249 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5251 CFLAGS="$SAVE_CFLAGS"
5254 sparc*-*solaris*)
5255 # Find out which ABI we are using.
5256 echo 'int i;' > conftest.$ac_ext
5257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5258 (eval $ac_compile) 2>&5
5259 ac_status=$?
5260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5261 test $ac_status = 0; }; then
5262 case `/usr/bin/file conftest.o` in
5263 *64-bit*)
5264 case $lt_cv_prog_gnu_ld in
5265 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5267 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5268 LD="${LD-ld} -64"
5271 esac
5273 esac
5275 rm -rf conftest*
5277 esac
5279 need_locks="$enable_libtool_lock"
5282 case $host_os in
5283 rhapsody* | darwin*)
5284 if test -n "$ac_tool_prefix"; then
5285 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5286 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if test -n "$DSYMUTIL"; then
5293 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5306 done
5307 done
5308 IFS=$as_save_IFS
5312 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5313 if test -n "$DSYMUTIL"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5315 $as_echo "$DSYMUTIL" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5323 if test -z "$ac_cv_prog_DSYMUTIL"; then
5324 ac_ct_DSYMUTIL=$DSYMUTIL
5325 # Extract the first word of "dsymutil", so it can be a program name with args.
5326 set dummy dsymutil; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test -n "$ac_ct_DSYMUTIL"; then
5333 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5348 IFS=$as_save_IFS
5352 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5353 if test -n "$ac_ct_DSYMUTIL"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5355 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5361 if test "x$ac_ct_DSYMUTIL" = x; then
5362 DSYMUTIL=":"
5363 else
5364 case $cross_compiling:$ac_tool_warned in
5365 yes:)
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5368 ac_tool_warned=yes ;;
5369 esac
5370 DSYMUTIL=$ac_ct_DSYMUTIL
5372 else
5373 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5376 if test -n "$ac_tool_prefix"; then
5377 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5378 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_NMEDIT+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 if test -n "$NMEDIT"; then
5385 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5400 IFS=$as_save_IFS
5404 NMEDIT=$ac_cv_prog_NMEDIT
5405 if test -n "$NMEDIT"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5407 $as_echo "$NMEDIT" >&6; }
5408 else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5415 if test -z "$ac_cv_prog_NMEDIT"; then
5416 ac_ct_NMEDIT=$NMEDIT
5417 # Extract the first word of "nmedit", so it can be a program name with args.
5418 set dummy nmedit; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 if test -n "$ac_ct_NMEDIT"; then
5425 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5426 else
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5434 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 break 2
5438 done
5439 done
5440 IFS=$as_save_IFS
5444 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5445 if test -n "$ac_ct_NMEDIT"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5447 $as_echo "$ac_ct_NMEDIT" >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5453 if test "x$ac_ct_NMEDIT" = x; then
5454 NMEDIT=":"
5455 else
5456 case $cross_compiling:$ac_tool_warned in
5457 yes:)
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460 ac_tool_warned=yes ;;
5461 esac
5462 NMEDIT=$ac_ct_NMEDIT
5464 else
5465 NMEDIT="$ac_cv_prog_NMEDIT"
5468 if test -n "$ac_tool_prefix"; then
5469 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5470 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_prog_LIPO+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$LIPO"; then
5477 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5490 done
5491 done
5492 IFS=$as_save_IFS
5496 LIPO=$ac_cv_prog_LIPO
5497 if test -n "$LIPO"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5499 $as_echo "$LIPO" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5507 if test -z "$ac_cv_prog_LIPO"; then
5508 ac_ct_LIPO=$LIPO
5509 # Extract the first word of "lipo", so it can be a program name with args.
5510 set dummy lipo; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$ac_ct_LIPO"; then
5517 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_prog_ac_ct_LIPO="lipo"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5530 done
5531 done
5532 IFS=$as_save_IFS
5536 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5537 if test -n "$ac_ct_LIPO"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5539 $as_echo "$ac_ct_LIPO" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5545 if test "x$ac_ct_LIPO" = x; then
5546 LIPO=":"
5547 else
5548 case $cross_compiling:$ac_tool_warned in
5549 yes:)
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552 ac_tool_warned=yes ;;
5553 esac
5554 LIPO=$ac_ct_LIPO
5556 else
5557 LIPO="$ac_cv_prog_LIPO"
5560 if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5562 set dummy ${ac_tool_prefix}otool; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_prog_OTOOL+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 if test -n "$OTOOL"; then
5569 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5582 done
5583 done
5584 IFS=$as_save_IFS
5588 OTOOL=$ac_cv_prog_OTOOL
5589 if test -n "$OTOOL"; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5591 $as_echo "$OTOOL" >&6; }
5592 else
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5599 if test -z "$ac_cv_prog_OTOOL"; then
5600 ac_ct_OTOOL=$OTOOL
5601 # Extract the first word of "otool", so it can be a program name with args.
5602 set dummy otool; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$ac_ct_OTOOL"; then
5609 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_OTOOL="otool"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5622 done
5623 done
5624 IFS=$as_save_IFS
5628 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5629 if test -n "$ac_ct_OTOOL"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5631 $as_echo "$ac_ct_OTOOL" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5637 if test "x$ac_ct_OTOOL" = x; then
5638 OTOOL=":"
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641 yes:)
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5645 esac
5646 OTOOL=$ac_ct_OTOOL
5648 else
5649 OTOOL="$ac_cv_prog_OTOOL"
5652 if test -n "$ac_tool_prefix"; then
5653 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5654 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_prog_OTOOL64+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -n "$OTOOL64"; then
5661 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5674 done
5675 done
5676 IFS=$as_save_IFS
5680 OTOOL64=$ac_cv_prog_OTOOL64
5681 if test -n "$OTOOL64"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5683 $as_echo "$OTOOL64" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5691 if test -z "$ac_cv_prog_OTOOL64"; then
5692 ac_ct_OTOOL64=$OTOOL64
5693 # Extract the first word of "otool64", so it can be a program name with args.
5694 set dummy otool64; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -n "$ac_ct_OTOOL64"; then
5701 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_prog_ac_ct_OTOOL64="otool64"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5714 done
5715 done
5716 IFS=$as_save_IFS
5720 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5721 if test -n "$ac_ct_OTOOL64"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5723 $as_echo "$ac_ct_OTOOL64" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5729 if test "x$ac_ct_OTOOL64" = x; then
5730 OTOOL64=":"
5731 else
5732 case $cross_compiling:$ac_tool_warned in
5733 yes:)
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5736 ac_tool_warned=yes ;;
5737 esac
5738 OTOOL64=$ac_ct_OTOOL64
5740 else
5741 OTOOL64="$ac_cv_prog_OTOOL64"
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5771 $as_echo_n "checking for -single_module linker flag... " >&6; }
5772 if ${lt_cv_apple_cc_single_mod+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 lt_cv_apple_cc_single_mod=no
5776 if test -z "${LT_MULTI_MODULE}"; then
5777 # By default we will add the -single_module flag. You can override
5778 # by either setting the environment variable LT_MULTI_MODULE
5779 # non-empty at configure time, or by adding -multi_module to the
5780 # link flags.
5781 rm -rf libconftest.dylib*
5782 echo "int foo(void){return 1;}" > conftest.c
5783 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5784 -dynamiclib -Wl,-single_module conftest.c" >&5
5785 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5786 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5787 _lt_result=$?
5788 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5789 lt_cv_apple_cc_single_mod=yes
5790 else
5791 cat conftest.err >&5
5793 rm -rf libconftest.dylib*
5794 rm -f conftest.*
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5798 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5800 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5801 if ${lt_cv_ld_exported_symbols_list+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 lt_cv_ld_exported_symbols_list=no
5805 save_LDFLAGS=$LDFLAGS
5806 echo "_main" > conftest.sym
5807 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5812 main ()
5816 return 0;
5818 _ACEOF
5819 if ac_fn_c_try_link "$LINENO"; then :
5820 lt_cv_ld_exported_symbols_list=yes
5821 else
5822 lt_cv_ld_exported_symbols_list=no
5824 rm -f core conftest.err conftest.$ac_objext \
5825 conftest$ac_exeext conftest.$ac_ext
5826 LDFLAGS="$save_LDFLAGS"
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5830 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5831 case $host_os in
5832 rhapsody* | darwin1.[012])
5833 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5834 darwin1.*)
5835 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5836 darwin*) # darwin 5.x on
5837 # if running on 10.5 or later, the deployment target defaults
5838 # to the OS version, if on x86, and 10.4, the deployment
5839 # target defaults to 10.4. Don't you love it?
5840 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5841 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5842 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5843 10.[012]*)
5844 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5845 10.*)
5846 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5847 esac
5849 esac
5850 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5851 _lt_dar_single_mod='$single_module'
5853 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5854 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5855 else
5856 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5858 if test "$DSYMUTIL" != ":"; then
5859 _lt_dsymutil='~$DSYMUTIL $lib || :'
5860 else
5861 _lt_dsymutil=
5864 esac
5866 ac_ext=c
5867 ac_cpp='$CPP $CPPFLAGS'
5868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5872 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5873 # On Suns, sometimes $CPP names a directory.
5874 if test -n "$CPP" && test -d "$CPP"; then
5875 CPP=
5877 if test -z "$CPP"; then
5878 if ${ac_cv_prog_CPP+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 # Double quotes because CPP needs to be expanded
5882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5884 ac_preproc_ok=false
5885 for ac_c_preproc_warn_flag in '' yes
5887 # Use a header file that comes with gcc, so configuring glibc
5888 # with a fresh cross-compiler works.
5889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5890 # <limits.h> exists even on freestanding compilers.
5891 # On the NeXT, cc -E runs the code through the compiler's parser,
5892 # not just through cpp. "Syntax error" is here to catch this case.
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 #ifdef __STDC__
5896 # include <limits.h>
5897 #else
5898 # include <assert.h>
5899 #endif
5900 Syntax error
5901 _ACEOF
5902 if ac_fn_c_try_cpp "$LINENO"; then :
5904 else
5905 # Broken: fails on valid input.
5906 continue
5908 rm -f conftest.err conftest.i conftest.$ac_ext
5910 # OK, works on sane cases. Now check whether nonexistent headers
5911 # can be detected and how.
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <ac_nonexistent.h>
5915 _ACEOF
5916 if ac_fn_c_try_cpp "$LINENO"; then :
5917 # Broken: success on invalid input.
5918 continue
5919 else
5920 # Passes both tests.
5921 ac_preproc_ok=:
5922 break
5924 rm -f conftest.err conftest.i conftest.$ac_ext
5926 done
5927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5928 rm -f conftest.i conftest.err conftest.$ac_ext
5929 if $ac_preproc_ok; then :
5930 break
5933 done
5934 ac_cv_prog_CPP=$CPP
5937 CPP=$ac_cv_prog_CPP
5938 else
5939 ac_cv_prog_CPP=$CPP
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5942 $as_echo "$CPP" >&6; }
5943 ac_preproc_ok=false
5944 for ac_c_preproc_warn_flag in '' yes
5946 # Use a header file that comes with gcc, so configuring glibc
5947 # with a fresh cross-compiler works.
5948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5949 # <limits.h> exists even on freestanding compilers.
5950 # On the NeXT, cc -E runs the code through the compiler's parser,
5951 # not just through cpp. "Syntax error" is here to catch this case.
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954 #ifdef __STDC__
5955 # include <limits.h>
5956 #else
5957 # include <assert.h>
5958 #endif
5959 Syntax error
5960 _ACEOF
5961 if ac_fn_c_try_cpp "$LINENO"; then :
5963 else
5964 # Broken: fails on valid input.
5965 continue
5967 rm -f conftest.err conftest.i conftest.$ac_ext
5969 # OK, works on sane cases. Now check whether nonexistent headers
5970 # can be detected and how.
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 #include <ac_nonexistent.h>
5974 _ACEOF
5975 if ac_fn_c_try_cpp "$LINENO"; then :
5976 # Broken: success on invalid input.
5977 continue
5978 else
5979 # Passes both tests.
5980 ac_preproc_ok=:
5981 break
5983 rm -f conftest.err conftest.i conftest.$ac_ext
5985 done
5986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5987 rm -f conftest.i conftest.err conftest.$ac_ext
5988 if $ac_preproc_ok; then :
5990 else
5991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5993 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5994 See \`config.log' for more details" "$LINENO" 5; }
5997 ac_ext=c
5998 ac_cpp='$CPP $CPPFLAGS'
5999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6005 $as_echo_n "checking for ANSI C header files... " >&6; }
6006 if ${ac_cv_header_stdc+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #include <stdlib.h>
6012 #include <stdarg.h>
6013 #include <string.h>
6014 #include <float.h>
6017 main ()
6021 return 0;
6023 _ACEOF
6024 if ac_fn_c_try_compile "$LINENO"; then :
6025 ac_cv_header_stdc=yes
6026 else
6027 ac_cv_header_stdc=no
6029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 if test $ac_cv_header_stdc = yes; then
6032 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 #include <string.h>
6037 _ACEOF
6038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6039 $EGREP "memchr" >/dev/null 2>&1; then :
6041 else
6042 ac_cv_header_stdc=no
6044 rm -f conftest*
6048 if test $ac_cv_header_stdc = yes; then
6049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 #include <stdlib.h>
6054 _ACEOF
6055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6056 $EGREP "free" >/dev/null 2>&1; then :
6058 else
6059 ac_cv_header_stdc=no
6061 rm -f conftest*
6065 if test $ac_cv_header_stdc = yes; then
6066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6067 if test "$cross_compiling" = yes; then :
6069 else
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 #include <ctype.h>
6073 #include <stdlib.h>
6074 #if ((' ' & 0x0FF) == 0x020)
6075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6077 #else
6078 # define ISLOWER(c) \
6079 (('a' <= (c) && (c) <= 'i') \
6080 || ('j' <= (c) && (c) <= 'r') \
6081 || ('s' <= (c) && (c) <= 'z'))
6082 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6083 #endif
6085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6087 main ()
6089 int i;
6090 for (i = 0; i < 256; i++)
6091 if (XOR (islower (i), ISLOWER (i))
6092 || toupper (i) != TOUPPER (i))
6093 return 2;
6094 return 0;
6096 _ACEOF
6097 if ac_fn_c_try_run "$LINENO"; then :
6099 else
6100 ac_cv_header_stdc=no
6102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6103 conftest.$ac_objext conftest.beam conftest.$ac_ext
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6109 $as_echo "$ac_cv_header_stdc" >&6; }
6110 if test $ac_cv_header_stdc = yes; then
6112 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6116 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6117 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6118 inttypes.h stdint.h unistd.h
6119 do :
6120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6121 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6123 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6124 cat >>confdefs.h <<_ACEOF
6125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6126 _ACEOF
6130 done
6133 for ac_header in dlfcn.h
6134 do :
6135 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6137 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6138 cat >>confdefs.h <<_ACEOF
6139 #define HAVE_DLFCN_H 1
6140 _ACEOF
6144 done
6148 # Set options
6152 enable_dlopen=no
6155 enable_win32_dll=no
6158 # Check whether --enable-shared was given.
6159 if test "${enable_shared+set}" = set; then :
6160 enableval=$enable_shared; p=${PACKAGE-default}
6161 case $enableval in
6162 yes) enable_shared=yes ;;
6163 no) enable_shared=no ;;
6165 enable_shared=no
6166 # Look at the argument we got. We use all the common list separators.
6167 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6168 for pkg in $enableval; do
6169 IFS="$lt_save_ifs"
6170 if test "X$pkg" = "X$p"; then
6171 enable_shared=yes
6173 done
6174 IFS="$lt_save_ifs"
6176 esac
6177 else
6178 enable_shared=yes
6189 # Check whether --enable-static was given.
6190 if test "${enable_static+set}" = set; then :
6191 enableval=$enable_static; p=${PACKAGE-default}
6192 case $enableval in
6193 yes) enable_static=yes ;;
6194 no) enable_static=no ;;
6196 enable_static=no
6197 # Look at the argument we got. We use all the common list separators.
6198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6199 for pkg in $enableval; do
6200 IFS="$lt_save_ifs"
6201 if test "X$pkg" = "X$p"; then
6202 enable_static=yes
6204 done
6205 IFS="$lt_save_ifs"
6207 esac
6208 else
6209 enable_static=yes
6221 # Check whether --with-pic was given.
6222 if test "${with_pic+set}" = set; then :
6223 withval=$with_pic; pic_mode="$withval"
6224 else
6225 pic_mode=default
6229 test -z "$pic_mode" && pic_mode=default
6237 # Check whether --enable-fast-install was given.
6238 if test "${enable_fast_install+set}" = set; then :
6239 enableval=$enable_fast_install; p=${PACKAGE-default}
6240 case $enableval in
6241 yes) enable_fast_install=yes ;;
6242 no) enable_fast_install=no ;;
6244 enable_fast_install=no
6245 # Look at the argument we got. We use all the common list separators.
6246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6247 for pkg in $enableval; do
6248 IFS="$lt_save_ifs"
6249 if test "X$pkg" = "X$p"; then
6250 enable_fast_install=yes
6252 done
6253 IFS="$lt_save_ifs"
6255 esac
6256 else
6257 enable_fast_install=yes
6270 # This can be used to rebuild libtool when needed
6271 LIBTOOL_DEPS="$ltmain"
6273 # Always use our own libtool.
6274 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6300 test -z "$LN_S" && LN_S="ln -s"
6315 if test -n "${ZSH_VERSION+set}" ; then
6316 setopt NO_GLOB_SUBST
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6320 $as_echo_n "checking for objdir... " >&6; }
6321 if ${lt_cv_objdir+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 rm -f .libs 2>/dev/null
6325 mkdir .libs 2>/dev/null
6326 if test -d .libs; then
6327 lt_cv_objdir=.libs
6328 else
6329 # MS-DOS does not allow filenames that begin with a dot.
6330 lt_cv_objdir=_libs
6332 rmdir .libs 2>/dev/null
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6335 $as_echo "$lt_cv_objdir" >&6; }
6336 objdir=$lt_cv_objdir
6342 cat >>confdefs.h <<_ACEOF
6343 #define LT_OBJDIR "$lt_cv_objdir/"
6344 _ACEOF
6362 case $host_os in
6363 aix3*)
6364 # AIX sometimes has problems with the GCC collect2 program. For some
6365 # reason, if we set the COLLECT_NAMES environment variable, the problems
6366 # vanish in a puff of smoke.
6367 if test "X${COLLECT_NAMES+set}" != Xset; then
6368 COLLECT_NAMES=
6369 export COLLECT_NAMES
6372 esac
6374 # Sed substitution that helps us do robust quoting. It backslashifies
6375 # metacharacters that are still active within double-quoted strings.
6376 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6378 # Same as above, but do not quote variable references.
6379 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6381 # Sed substitution to delay expansion of an escaped shell variable in a
6382 # double_quote_subst'ed string.
6383 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6385 # Sed substitution to delay expansion of an escaped single quote.
6386 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6388 # Sed substitution to avoid accidental globbing in evaled expressions
6389 no_glob_subst='s/\*/\\\*/g'
6391 # Global variables:
6392 ofile=libtool
6393 can_build_shared=yes
6395 # All known linkers require a `.a' archive for static linking (except MSVC,
6396 # which needs '.lib').
6397 libext=a
6399 with_gnu_ld="$lt_cv_prog_gnu_ld"
6401 old_CC="$CC"
6402 old_CFLAGS="$CFLAGS"
6404 # Set sane defaults for various variables
6405 test -z "$CC" && CC=cc
6406 test -z "$LTCC" && LTCC=$CC
6407 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6408 test -z "$LD" && LD=ld
6409 test -z "$ac_objext" && ac_objext=o
6411 for cc_temp in $compiler""; do
6412 case $cc_temp in
6413 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6414 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6415 \-*) ;;
6416 *) break;;
6417 esac
6418 done
6419 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6422 # Only perform the check for file, if the check method requires it
6423 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6424 case $deplibs_check_method in
6425 file_magic*)
6426 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6428 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6429 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 case $MAGIC_CMD in
6433 [\\/*] | ?:[\\/]*)
6434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6437 lt_save_MAGIC_CMD="$MAGIC_CMD"
6438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6440 for ac_dir in $ac_dummy; do
6441 IFS="$lt_save_ifs"
6442 test -z "$ac_dir" && ac_dir=.
6443 if test -f $ac_dir/${ac_tool_prefix}file; then
6444 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6445 if test -n "$file_magic_test_file"; then
6446 case $deplibs_check_method in
6447 "file_magic "*)
6448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6451 $EGREP "$file_magic_regex" > /dev/null; then
6453 else
6454 cat <<_LT_EOF 1>&2
6456 *** Warning: the command libtool uses to detect shared libraries,
6457 *** $file_magic_cmd, produces output that libtool cannot recognize.
6458 *** The result is that libtool may fail to recognize shared libraries
6459 *** as such. This will affect the creation of libtool libraries that
6460 *** depend on shared libraries, but programs linked with such libtool
6461 *** libraries will work regardless of this problem. Nevertheless, you
6462 *** may want to report the problem to your system manager and/or to
6463 *** bug-libtool@gnu.org
6465 _LT_EOF
6466 fi ;;
6467 esac
6469 break
6471 done
6472 IFS="$lt_save_ifs"
6473 MAGIC_CMD="$lt_save_MAGIC_CMD"
6475 esac
6478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6479 if test -n "$MAGIC_CMD"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6481 $as_echo "$MAGIC_CMD" >&6; }
6482 else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6491 if test -z "$lt_cv_path_MAGIC_CMD"; then
6492 if test -n "$ac_tool_prefix"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6494 $as_echo_n "checking for file... " >&6; }
6495 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 case $MAGIC_CMD in
6499 [\\/*] | ?:[\\/]*)
6500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6503 lt_save_MAGIC_CMD="$MAGIC_CMD"
6504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6505 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6506 for ac_dir in $ac_dummy; do
6507 IFS="$lt_save_ifs"
6508 test -z "$ac_dir" && ac_dir=.
6509 if test -f $ac_dir/file; then
6510 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6511 if test -n "$file_magic_test_file"; then
6512 case $deplibs_check_method in
6513 "file_magic "*)
6514 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6516 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6517 $EGREP "$file_magic_regex" > /dev/null; then
6519 else
6520 cat <<_LT_EOF 1>&2
6522 *** Warning: the command libtool uses to detect shared libraries,
6523 *** $file_magic_cmd, produces output that libtool cannot recognize.
6524 *** The result is that libtool may fail to recognize shared libraries
6525 *** as such. This will affect the creation of libtool libraries that
6526 *** depend on shared libraries, but programs linked with such libtool
6527 *** libraries will work regardless of this problem. Nevertheless, you
6528 *** may want to report the problem to your system manager and/or to
6529 *** bug-libtool@gnu.org
6531 _LT_EOF
6532 fi ;;
6533 esac
6535 break
6537 done
6538 IFS="$lt_save_ifs"
6539 MAGIC_CMD="$lt_save_MAGIC_CMD"
6541 esac
6544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6545 if test -n "$MAGIC_CMD"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6547 $as_echo "$MAGIC_CMD" >&6; }
6548 else
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6554 else
6555 MAGIC_CMD=:
6561 esac
6563 # Use C for the default configuration in the libtool script
6565 lt_save_CC="$CC"
6566 ac_ext=c
6567 ac_cpp='$CPP $CPPFLAGS'
6568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6573 # Source file extension for C test sources.
6574 ac_ext=c
6576 # Object file extension for compiled C test sources.
6577 objext=o
6578 objext=$objext
6580 # Code to be used in simple compile tests
6581 lt_simple_compile_test_code="int some_variable = 0;"
6583 # Code to be used in simple link tests
6584 lt_simple_link_test_code='int main(){return(0);}'
6592 # If no C compiler was specified, use CC.
6593 LTCC=${LTCC-"$CC"}
6595 # If no C compiler flags were specified, use CFLAGS.
6596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6598 # Allow CC to be a program name with arguments.
6599 compiler=$CC
6601 # Save the default compiler, since it gets overwritten when the other
6602 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6603 compiler_DEFAULT=$CC
6605 # save warnings/boilerplate of simple test code
6606 ac_outfile=conftest.$ac_objext
6607 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6608 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6609 _lt_compiler_boilerplate=`cat conftest.err`
6610 $RM conftest*
6612 ac_outfile=conftest.$ac_objext
6613 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6614 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6615 _lt_linker_boilerplate=`cat conftest.err`
6616 $RM -r conftest*
6619 if test -n "$compiler"; then
6621 lt_prog_compiler_no_builtin_flag=
6623 if test "$GCC" = yes; then
6624 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6627 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6628 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 lt_cv_prog_compiler_rtti_exceptions=no
6632 ac_outfile=conftest.$ac_objext
6633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6634 lt_compiler_flag="-fno-rtti -fno-exceptions"
6635 # Insert the option either (1) after the last *FLAGS variable, or
6636 # (2) before a word containing "conftest.", or (3) at the end.
6637 # Note that $ac_compile itself does not contain backslashes and begins
6638 # with a dollar sign (not a hyphen), so the echo should work correctly.
6639 # The option is referenced via a variable to avoid confusing sed.
6640 lt_compile=`echo "$ac_compile" | $SED \
6641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6643 -e 's:$: $lt_compiler_flag:'`
6644 (eval echo "\"\$as_me:6644: $lt_compile\"" >&5)
6645 (eval "$lt_compile" 2>conftest.err)
6646 ac_status=$?
6647 cat conftest.err >&5
6648 echo "$as_me:6648: \$? = $ac_status" >&5
6649 if (exit $ac_status) && test -s "$ac_outfile"; then
6650 # The compiler can only warn and ignore the option if not recognized
6651 # So say no if there are warnings other than the usual output.
6652 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6655 lt_cv_prog_compiler_rtti_exceptions=yes
6658 $RM conftest*
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6662 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6664 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6666 else
6677 lt_prog_compiler_wl=
6678 lt_prog_compiler_pic=
6679 lt_prog_compiler_static=
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6682 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6684 if test "$GCC" = yes; then
6685 lt_prog_compiler_wl='-Wl,'
6686 lt_prog_compiler_static='-static'
6688 case $host_os in
6689 aix*)
6690 # All AIX code is PIC.
6691 if test "$host_cpu" = ia64; then
6692 # AIX 5 now supports IA64 processor
6693 lt_prog_compiler_static='-Bstatic'
6697 amigaos*)
6698 case $host_cpu in
6699 powerpc)
6700 # see comment about AmigaOS4 .so support
6701 lt_prog_compiler_pic='-fPIC'
6703 m68k)
6704 # FIXME: we need at least 68020 code to build shared libraries, but
6705 # adding the `-m68020' flag to GCC prevents building anything better,
6706 # like `-m68040'.
6707 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6709 esac
6712 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6713 # PIC is the default for these OSes.
6716 mingw* | cygwin* | pw32* | os2* | cegcc*)
6717 # This hack is so that the source file can tell whether it is being
6718 # built for inclusion in a dll (and should export symbols for example).
6719 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6720 # (--disable-auto-import) libraries
6721 lt_prog_compiler_pic='-DDLL_EXPORT'
6724 darwin* | rhapsody*)
6725 # PIC is the default on this platform
6726 # Common symbols not allowed in MH_DYLIB files
6727 lt_prog_compiler_pic='-fno-common'
6730 hpux*)
6731 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6732 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6733 # sets the default TLS model and affects inlining.
6734 case $host_cpu in
6735 hppa*64*)
6736 # +Z the default
6739 lt_prog_compiler_pic='-fPIC'
6741 esac
6744 interix[3-9]*)
6745 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6746 # Instead, we relocate shared libraries at runtime.
6749 msdosdjgpp*)
6750 # Just because we use GCC doesn't mean we suddenly get shared libraries
6751 # on systems that don't support them.
6752 lt_prog_compiler_can_build_shared=no
6753 enable_shared=no
6756 *nto* | *qnx*)
6757 # QNX uses GNU C++, but need to define -shared option too, otherwise
6758 # it will coredump.
6759 lt_prog_compiler_pic='-fPIC -shared'
6762 sysv4*MP*)
6763 if test -d /usr/nec; then
6764 lt_prog_compiler_pic=-Kconform_pic
6769 lt_prog_compiler_pic='-fPIC'
6771 esac
6772 else
6773 # PORTME Check for flag to pass linker flags through the system compiler.
6774 case $host_os in
6775 aix*)
6776 lt_prog_compiler_wl='-Wl,'
6777 if test "$host_cpu" = ia64; then
6778 # AIX 5 now supports IA64 processor
6779 lt_prog_compiler_static='-Bstatic'
6780 else
6781 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6785 mingw* | cygwin* | pw32* | os2* | cegcc*)
6786 # This hack is so that the source file can tell whether it is being
6787 # built for inclusion in a dll (and should export symbols for example).
6788 lt_prog_compiler_pic='-DDLL_EXPORT'
6791 hpux9* | hpux10* | hpux11*)
6792 lt_prog_compiler_wl='-Wl,'
6793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6794 # not for PA HP-UX.
6795 case $host_cpu in
6796 hppa*64*|ia64*)
6797 # +Z the default
6800 lt_prog_compiler_pic='+Z'
6802 esac
6803 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6804 lt_prog_compiler_static='${wl}-a ${wl}archive'
6807 irix5* | irix6* | nonstopux*)
6808 lt_prog_compiler_wl='-Wl,'
6809 # PIC (with -KPIC) is the default.
6810 lt_prog_compiler_static='-non_shared'
6813 linux* | k*bsd*-gnu)
6814 case $cc_basename in
6815 # old Intel for x86_64 which still supported -KPIC.
6816 ecc*)
6817 lt_prog_compiler_wl='-Wl,'
6818 lt_prog_compiler_pic='-KPIC'
6819 lt_prog_compiler_static='-static'
6821 # icc used to be incompatible with GCC.
6822 # ICC 10 doesn't accept -KPIC any more.
6823 icc* | ifort*)
6824 lt_prog_compiler_wl='-Wl,'
6825 lt_prog_compiler_pic='-fPIC'
6826 lt_prog_compiler_static='-static'
6828 # Lahey Fortran 8.1.
6829 lf95*)
6830 lt_prog_compiler_wl='-Wl,'
6831 lt_prog_compiler_pic='--shared'
6832 lt_prog_compiler_static='--static'
6834 pgcc* | pgf77* | pgf90* | pgf95*)
6835 # Portland Group compilers (*not* the Pentium gcc compiler,
6836 # which looks to be a dead project)
6837 lt_prog_compiler_wl='-Wl,'
6838 lt_prog_compiler_pic='-fpic'
6839 lt_prog_compiler_static='-Bstatic'
6841 ccc*)
6842 lt_prog_compiler_wl='-Wl,'
6843 # All Alpha code is PIC.
6844 lt_prog_compiler_static='-non_shared'
6846 xl*)
6847 # IBM XL C 8.0/Fortran 10.1 on PPC
6848 lt_prog_compiler_wl='-Wl,'
6849 lt_prog_compiler_pic='-qpic'
6850 lt_prog_compiler_static='-qstaticlink'
6853 case `$CC -V 2>&1 | sed 5q` in
6854 *Sun\ C*)
6855 # Sun C 5.9
6856 lt_prog_compiler_pic='-KPIC'
6857 lt_prog_compiler_static='-Bstatic'
6858 lt_prog_compiler_wl='-Wl,'
6860 *Sun\ F*)
6861 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6862 lt_prog_compiler_pic='-KPIC'
6863 lt_prog_compiler_static='-Bstatic'
6864 lt_prog_compiler_wl=''
6866 esac
6868 esac
6871 newsos6)
6872 lt_prog_compiler_pic='-KPIC'
6873 lt_prog_compiler_static='-Bstatic'
6876 *nto* | *qnx*)
6877 # QNX uses GNU C++, but need to define -shared option too, otherwise
6878 # it will coredump.
6879 lt_prog_compiler_pic='-fPIC -shared'
6882 osf3* | osf4* | osf5*)
6883 lt_prog_compiler_wl='-Wl,'
6884 # All OSF/1 code is PIC.
6885 lt_prog_compiler_static='-non_shared'
6888 rdos*)
6889 lt_prog_compiler_static='-non_shared'
6892 solaris*)
6893 lt_prog_compiler_pic='-KPIC'
6894 lt_prog_compiler_static='-Bstatic'
6895 case $cc_basename in
6896 f77* | f90* | f95*)
6897 lt_prog_compiler_wl='-Qoption ld ';;
6899 lt_prog_compiler_wl='-Wl,';;
6900 esac
6903 sunos4*)
6904 lt_prog_compiler_wl='-Qoption ld '
6905 lt_prog_compiler_pic='-PIC'
6906 lt_prog_compiler_static='-Bstatic'
6909 sysv4 | sysv4.2uw2* | sysv4.3*)
6910 lt_prog_compiler_wl='-Wl,'
6911 lt_prog_compiler_pic='-KPIC'
6912 lt_prog_compiler_static='-Bstatic'
6915 sysv4*MP*)
6916 if test -d /usr/nec ;then
6917 lt_prog_compiler_pic='-Kconform_pic'
6918 lt_prog_compiler_static='-Bstatic'
6922 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6923 lt_prog_compiler_wl='-Wl,'
6924 lt_prog_compiler_pic='-KPIC'
6925 lt_prog_compiler_static='-Bstatic'
6928 unicos*)
6929 lt_prog_compiler_wl='-Wl,'
6930 lt_prog_compiler_can_build_shared=no
6933 uts4*)
6934 lt_prog_compiler_pic='-pic'
6935 lt_prog_compiler_static='-Bstatic'
6939 lt_prog_compiler_can_build_shared=no
6941 esac
6944 case $host_os in
6945 # For platforms which do not support PIC, -DPIC is meaningless:
6946 *djgpp*)
6947 lt_prog_compiler_pic=
6950 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6952 esac
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6954 $as_echo "$lt_prog_compiler_pic" >&6; }
6962 # Check to make sure the PIC flag actually works.
6964 if test -n "$lt_prog_compiler_pic"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6966 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6967 if ${lt_cv_prog_compiler_pic_works+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 lt_cv_prog_compiler_pic_works=no
6971 ac_outfile=conftest.$ac_objext
6972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6973 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6974 # Insert the option either (1) after the last *FLAGS variable, or
6975 # (2) before a word containing "conftest.", or (3) at the end.
6976 # Note that $ac_compile itself does not contain backslashes and begins
6977 # with a dollar sign (not a hyphen), so the echo should work correctly.
6978 # The option is referenced via a variable to avoid confusing sed.
6979 lt_compile=`echo "$ac_compile" | $SED \
6980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6982 -e 's:$: $lt_compiler_flag:'`
6983 (eval echo "\"\$as_me:6983: $lt_compile\"" >&5)
6984 (eval "$lt_compile" 2>conftest.err)
6985 ac_status=$?
6986 cat conftest.err >&5
6987 echo "$as_me:6987: \$? = $ac_status" >&5
6988 if (exit $ac_status) && test -s "$ac_outfile"; then
6989 # The compiler can only warn and ignore the option if not recognized
6990 # So say no if there are warnings other than the usual output.
6991 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6994 lt_cv_prog_compiler_pic_works=yes
6997 $RM conftest*
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7001 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7003 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7004 case $lt_prog_compiler_pic in
7005 "" | " "*) ;;
7006 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7007 esac
7008 else
7009 lt_prog_compiler_pic=
7010 lt_prog_compiler_can_build_shared=no
7021 # Check to make sure the static flag actually works.
7023 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7025 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7026 if ${lt_cv_prog_compiler_static_works+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 lt_cv_prog_compiler_static_works=no
7030 save_LDFLAGS="$LDFLAGS"
7031 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7032 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7033 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7034 # The linker can only warn and ignore the option if not recognized
7035 # So say no if there are warnings
7036 if test -s conftest.err; then
7037 # Append any errors to the config.log.
7038 cat conftest.err 1>&5
7039 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7041 if diff conftest.exp conftest.er2 >/dev/null; then
7042 lt_cv_prog_compiler_static_works=yes
7044 else
7045 lt_cv_prog_compiler_static_works=yes
7048 $RM -r conftest*
7049 LDFLAGS="$save_LDFLAGS"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7053 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7055 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7057 else
7058 lt_prog_compiler_static=
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7068 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7069 if ${lt_cv_prog_compiler_c_o+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 lt_cv_prog_compiler_c_o=no
7073 $RM -r conftest 2>/dev/null
7074 mkdir conftest
7075 cd conftest
7076 mkdir out
7077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7079 lt_compiler_flag="-o out/conftest2.$ac_objext"
7080 # Insert the option either (1) after the last *FLAGS variable, or
7081 # (2) before a word containing "conftest.", or (3) at the end.
7082 # Note that $ac_compile itself does not contain backslashes and begins
7083 # with a dollar sign (not a hyphen), so the echo should work correctly.
7084 lt_compile=`echo "$ac_compile" | $SED \
7085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7087 -e 's:$: $lt_compiler_flag:'`
7088 (eval echo "\"\$as_me:7088: $lt_compile\"" >&5)
7089 (eval "$lt_compile" 2>out/conftest.err)
7090 ac_status=$?
7091 cat out/conftest.err >&5
7092 echo "$as_me:7092: \$? = $ac_status" >&5
7093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7094 then
7095 # The compiler can only warn and ignore the option if not recognized
7096 # So say no if there are warnings
7097 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7098 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7099 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7100 lt_cv_prog_compiler_c_o=yes
7103 chmod u+w . 2>&5
7104 $RM conftest*
7105 # SGI C++ compiler will create directory out/ii_files/ for
7106 # template instantiation
7107 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7108 $RM out/* && rmdir out
7109 cd ..
7110 $RM -r conftest
7111 $RM conftest*
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7115 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7123 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7124 if ${lt_cv_prog_compiler_c_o+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 lt_cv_prog_compiler_c_o=no
7128 $RM -r conftest 2>/dev/null
7129 mkdir conftest
7130 cd conftest
7131 mkdir out
7132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7134 lt_compiler_flag="-o out/conftest2.$ac_objext"
7135 # Insert the option either (1) after the last *FLAGS variable, or
7136 # (2) before a word containing "conftest.", or (3) at the end.
7137 # Note that $ac_compile itself does not contain backslashes and begins
7138 # with a dollar sign (not a hyphen), so the echo should work correctly.
7139 lt_compile=`echo "$ac_compile" | $SED \
7140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7142 -e 's:$: $lt_compiler_flag:'`
7143 (eval echo "\"\$as_me:7143: $lt_compile\"" >&5)
7144 (eval "$lt_compile" 2>out/conftest.err)
7145 ac_status=$?
7146 cat out/conftest.err >&5
7147 echo "$as_me:7147: \$? = $ac_status" >&5
7148 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7149 then
7150 # The compiler can only warn and ignore the option if not recognized
7151 # So say no if there are warnings
7152 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7153 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7154 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7155 lt_cv_prog_compiler_c_o=yes
7158 chmod u+w . 2>&5
7159 $RM conftest*
7160 # SGI C++ compiler will create directory out/ii_files/ for
7161 # template instantiation
7162 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7163 $RM out/* && rmdir out
7164 cd ..
7165 $RM -r conftest
7166 $RM conftest*
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7170 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7175 hard_links="nottested"
7176 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7177 # do not overwrite the value of need_locks provided by the user
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7179 $as_echo_n "checking if we can lock with hard links... " >&6; }
7180 hard_links=yes
7181 $RM conftest*
7182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7183 touch conftest.a
7184 ln conftest.a conftest.b 2>&5 || hard_links=no
7185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7187 $as_echo "$hard_links" >&6; }
7188 if test "$hard_links" = no; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7190 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7191 need_locks=warn
7193 else
7194 need_locks=no
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7203 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7205 runpath_var=
7206 allow_undefined_flag=
7207 always_export_symbols=no
7208 archive_cmds=
7209 archive_expsym_cmds=
7210 compiler_needs_object=no
7211 enable_shared_with_static_runtimes=no
7212 export_dynamic_flag_spec=
7213 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7214 hardcode_automatic=no
7215 hardcode_direct=no
7216 hardcode_direct_absolute=no
7217 hardcode_libdir_flag_spec=
7218 hardcode_libdir_flag_spec_ld=
7219 hardcode_libdir_separator=
7220 hardcode_minus_L=no
7221 hardcode_shlibpath_var=unsupported
7222 inherit_rpath=no
7223 link_all_deplibs=unknown
7224 module_cmds=
7225 module_expsym_cmds=
7226 old_archive_from_new_cmds=
7227 old_archive_from_expsyms_cmds=
7228 thread_safe_flag_spec=
7229 whole_archive_flag_spec=
7230 # include_expsyms should be a list of space-separated symbols to be *always*
7231 # included in the symbol list
7232 include_expsyms=
7233 # exclude_expsyms can be an extended regexp of symbols to exclude
7234 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7235 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7236 # as well as any symbol that contains `d'.
7237 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7238 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7239 # platforms (ab)use it in PIC code, but their linkers get confused if
7240 # the symbol is explicitly referenced. Since portable code cannot
7241 # rely on this symbol name, it's probably fine to never include it in
7242 # preloaded symbol tables.
7243 # Exclude shared library initialization/finalization symbols.
7244 extract_expsyms_cmds=
7246 case $host_os in
7247 cygwin* | mingw* | pw32* | cegcc*)
7248 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7249 # When not using gcc, we currently assume that we are using
7250 # Microsoft Visual C++.
7251 if test "$GCC" != yes; then
7252 with_gnu_ld=no
7255 interix*)
7256 # we just hope/assume this is gcc and not c89 (= MSVC++)
7257 with_gnu_ld=yes
7259 openbsd*)
7260 with_gnu_ld=no
7262 esac
7264 ld_shlibs=yes
7265 if test "$with_gnu_ld" = yes; then
7266 # If archive_cmds runs LD, not CC, wlarc should be empty
7267 wlarc='${wl}'
7269 # Set some defaults for GNU ld with shared library support. These
7270 # are reset later if shared libraries are not supported. Putting them
7271 # here allows them to be overridden if necessary.
7272 runpath_var=LD_RUN_PATH
7273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7274 export_dynamic_flag_spec='${wl}--export-dynamic'
7275 # ancient GNU ld didn't support --whole-archive et. al.
7276 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7277 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7278 else
7279 whole_archive_flag_spec=
7281 supports_anon_versioning=no
7282 case `$LD -v 2>&1` in
7283 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7284 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7285 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7286 *\ 2.11.*) ;; # other 2.11 versions
7287 *) supports_anon_versioning=yes ;;
7288 esac
7290 # See if GNU ld supports shared libraries.
7291 case $host_os in
7292 aix[3-9]*)
7293 # On AIX/PPC, the GNU linker is very broken
7294 if test "$host_cpu" != ia64; then
7295 ld_shlibs=no
7296 cat <<_LT_EOF 1>&2
7298 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7299 *** to be unable to reliably create shared libraries on AIX.
7300 *** Therefore, libtool is disabling shared libraries support. If you
7301 *** really care for shared libraries, you may want to modify your PATH
7302 *** so that a non-GNU linker is found, and then restart.
7304 _LT_EOF
7308 amigaos*)
7309 case $host_cpu in
7310 powerpc)
7311 # see comment about AmigaOS4 .so support
7312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7313 archive_expsym_cmds=''
7315 m68k)
7316 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7317 hardcode_libdir_flag_spec='-L$libdir'
7318 hardcode_minus_L=yes
7320 esac
7323 beos*)
7324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7325 allow_undefined_flag=unsupported
7326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7327 # support --undefined. This deserves some investigation. FIXME
7328 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7329 else
7330 ld_shlibs=no
7334 cygwin* | mingw* | pw32* | cegcc*)
7335 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7336 # as there is no search path for DLLs.
7337 hardcode_libdir_flag_spec='-L$libdir'
7338 allow_undefined_flag=unsupported
7339 always_export_symbols=no
7340 enable_shared_with_static_runtimes=yes
7341 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7343 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7345 # If the export-symbols file already is a .def file (1st line
7346 # is EXPORTS), use it as is; otherwise, prepend...
7347 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7348 cp $export_symbols $output_objdir/$soname.def;
7349 else
7350 echo EXPORTS > $output_objdir/$soname.def;
7351 cat $export_symbols >> $output_objdir/$soname.def;
7353 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7354 else
7355 ld_shlibs=no
7359 interix[3-9]*)
7360 hardcode_direct=no
7361 hardcode_shlibpath_var=no
7362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7363 export_dynamic_flag_spec='${wl}-E'
7364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7365 # Instead, shared libraries are loaded at an image base (0x10000000 by
7366 # default) and relocated if they conflict, which is a slow very memory
7367 # consuming and fragmenting process. To avoid this, we pick a random,
7368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7371 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'
7374 gnu* | linux* | tpf* | k*bsd*-gnu)
7375 tmp_diet=no
7376 if test "$host_os" = linux-dietlibc; then
7377 case $cc_basename in
7378 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7379 esac
7381 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7382 && test "$tmp_diet" = no
7383 then
7384 tmp_addflag=
7385 tmp_sharedflag='-shared'
7386 case $cc_basename,$host_cpu in
7387 pgcc*) # Portland Group C compiler
7388 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'
7389 tmp_addflag=' $pic_flag'
7391 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7392 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'
7393 tmp_addflag=' $pic_flag -Mnomain' ;;
7394 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7395 tmp_addflag=' -i_dynamic' ;;
7396 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7397 tmp_addflag=' -i_dynamic -nofor_main' ;;
7398 ifc* | ifort*) # Intel Fortran compiler
7399 tmp_addflag=' -nofor_main' ;;
7400 lf95*) # Lahey Fortran 8.1
7401 whole_archive_flag_spec=
7402 tmp_sharedflag='--shared' ;;
7403 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7404 tmp_sharedflag='-qmkshrobj'
7405 tmp_addflag= ;;
7406 esac
7407 case `$CC -V 2>&1 | sed 5q` in
7408 *Sun\ C*) # Sun C 5.9
7409 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7410 compiler_needs_object=yes
7411 tmp_sharedflag='-G' ;;
7412 *Sun\ F*) # Sun Fortran 8.3
7413 tmp_sharedflag='-G' ;;
7414 esac
7415 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7417 if test "x$supports_anon_versioning" = xyes; then
7418 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7420 echo "local: *; };" >> $output_objdir/$libname.ver~
7421 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7424 case $cc_basename in
7425 xlf*)
7426 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7427 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7428 hardcode_libdir_flag_spec=
7429 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7430 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7431 if test "x$supports_anon_versioning" = xyes; then
7432 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7433 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7434 echo "local: *; };" >> $output_objdir/$libname.ver~
7435 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7438 esac
7439 else
7440 ld_shlibs=no
7444 netbsd*)
7445 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7446 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7447 wlarc=
7448 else
7449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7450 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7454 solaris*)
7455 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7456 ld_shlibs=no
7457 cat <<_LT_EOF 1>&2
7459 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7460 *** create shared libraries on Solaris systems. Therefore, libtool
7461 *** is disabling shared libraries support. We urge you to upgrade GNU
7462 *** binutils to release 2.9.1 or newer. Another option is to modify
7463 *** your PATH or compiler configuration so that the native linker is
7464 *** used, and then restart.
7466 _LT_EOF
7467 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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 else
7471 ld_shlibs=no
7475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7476 case `$LD -v 2>&1` in
7477 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7478 ld_shlibs=no
7479 cat <<_LT_EOF 1>&2
7481 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7482 *** reliably create shared libraries on SCO systems. Therefore, libtool
7483 *** is disabling shared libraries support. We urge you to upgrade GNU
7484 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7485 *** your PATH or compiler configuration so that the native linker is
7486 *** used, and then restart.
7488 _LT_EOF
7491 # For security reasons, it is highly recommended that you always
7492 # use absolute paths for naming shared libraries, and exclude the
7493 # DT_RUNPATH tag from executables and libraries. But doing so
7494 # requires that you compile everything twice, which is a pain.
7495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7498 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7499 else
7500 ld_shlibs=no
7503 esac
7506 sunos4*)
7507 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7508 wlarc=
7509 hardcode_direct=yes
7510 hardcode_shlibpath_var=no
7514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7517 else
7518 ld_shlibs=no
7521 esac
7523 if test "$ld_shlibs" = no; then
7524 runpath_var=
7525 hardcode_libdir_flag_spec=
7526 export_dynamic_flag_spec=
7527 whole_archive_flag_spec=
7529 else
7530 # PORTME fill in a description of your system's linker (not GNU ld)
7531 case $host_os in
7532 aix3*)
7533 allow_undefined_flag=unsupported
7534 always_export_symbols=yes
7535 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7536 # Note: this linker hardcodes the directories in LIBPATH if there
7537 # are no directories specified by -L.
7538 hardcode_minus_L=yes
7539 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7540 # Neither direct hardcoding nor static linking is supported with a
7541 # broken collect2.
7542 hardcode_direct=unsupported
7546 aix[4-9]*)
7547 if test "$host_cpu" = ia64; then
7548 # On IA64, the linker does run time linking by default, so we don't
7549 # have to do anything special.
7550 aix_use_runtimelinking=no
7551 exp_sym_flag='-Bexport'
7552 no_entry_flag=""
7553 else
7554 # If we're using GNU nm, then we don't want the "-C" option.
7555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7556 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7557 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'
7558 else
7559 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'
7561 aix_use_runtimelinking=no
7563 # Test if we are trying to use run time linking or normal
7564 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7565 # need to do runtime linking.
7566 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7567 for ld_flag in $LDFLAGS; do
7568 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7569 aix_use_runtimelinking=yes
7570 break
7572 done
7574 esac
7576 exp_sym_flag='-bexport'
7577 no_entry_flag='-bnoentry'
7580 # When large executables or shared objects are built, AIX ld can
7581 # have problems creating the table of contents. If linking a library
7582 # or program results in "error TOC overflow" add -mminimal-toc to
7583 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7584 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7586 archive_cmds=''
7587 hardcode_direct=yes
7588 hardcode_direct_absolute=yes
7589 hardcode_libdir_separator=':'
7590 link_all_deplibs=yes
7591 file_list_spec='${wl}-f,'
7593 if test "$GCC" = yes; then
7594 case $host_os in aix4.[012]|aix4.[012].*)
7595 # We only want to do this on AIX 4.2 and lower, the check
7596 # below for broken collect2 doesn't work under 4.3+
7597 collect2name=`${CC} -print-prog-name=collect2`
7598 if test -f "$collect2name" &&
7599 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7600 then
7601 # We have reworked collect2
7603 else
7604 # We have old collect2
7605 hardcode_direct=unsupported
7606 # It fails to find uninstalled libraries when the uninstalled
7607 # path is not listed in the libpath. Setting hardcode_minus_L
7608 # to unsupported forces relinking
7609 hardcode_minus_L=yes
7610 hardcode_libdir_flag_spec='-L$libdir'
7611 hardcode_libdir_separator=
7614 esac
7615 shared_flag='-shared'
7616 if test "$aix_use_runtimelinking" = yes; then
7617 shared_flag="$shared_flag "'${wl}-G'
7619 else
7620 # not using gcc
7621 if test "$host_cpu" = ia64; then
7622 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7623 # chokes on -Wl,-G. The following line is correct:
7624 shared_flag='-G'
7625 else
7626 if test "$aix_use_runtimelinking" = yes; then
7627 shared_flag='${wl}-G'
7628 else
7629 shared_flag='${wl}-bM:SRE'
7634 export_dynamic_flag_spec='${wl}-bexpall'
7635 # It seems that -bexpall does not export symbols beginning with
7636 # underscore (_), so it is better to generate a list of symbols to export.
7637 always_export_symbols=yes
7638 if test "$aix_use_runtimelinking" = yes; then
7639 # Warning - without using the other runtime loading flags (-brtl),
7640 # -berok will link without error, but may produce a broken library.
7641 allow_undefined_flag='-berok'
7642 # Determine the default libpath from the value encoded in an
7643 # empty executable.
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7648 main ()
7652 return 0;
7654 _ACEOF
7655 if ac_fn_c_try_link "$LINENO"; then :
7657 lt_aix_libpath_sed='
7658 /Import File Strings/,/^$/ {
7659 /^0/ {
7660 s/^0 *\(.*\)$/\1/
7664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7665 # Check for a 64-bit object if we didn't find anything.
7666 if test -z "$aix_libpath"; then
7667 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7670 rm -f core conftest.err conftest.$ac_objext \
7671 conftest$ac_exeext conftest.$ac_ext
7672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7674 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7675 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7676 else
7677 if test "$host_cpu" = ia64; then
7678 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7679 allow_undefined_flag="-z nodefs"
7680 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7681 else
7682 # Determine the default libpath from the value encoded in an
7683 # empty executable.
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7688 main ()
7692 return 0;
7694 _ACEOF
7695 if ac_fn_c_try_link "$LINENO"; then :
7697 lt_aix_libpath_sed='
7698 /Import File Strings/,/^$/ {
7699 /^0/ {
7700 s/^0 *\(.*\)$/\1/
7704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7705 # Check for a 64-bit object if we didn't find anything.
7706 if test -z "$aix_libpath"; then
7707 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7710 rm -f core conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7714 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7715 # Warning - without using the other run time loading flags,
7716 # -berok will link without error, but may produce a broken library.
7717 no_undefined_flag=' ${wl}-bernotok'
7718 allow_undefined_flag=' ${wl}-berok'
7719 # Exported symbols can be pulled into shared objects from archives
7720 whole_archive_flag_spec='$convenience'
7721 archive_cmds_need_lc=yes
7722 # This is similar to how AIX traditionally builds its shared libraries.
7723 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7728 amigaos*)
7729 case $host_cpu in
7730 powerpc)
7731 # see comment about AmigaOS4 .so support
7732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7733 archive_expsym_cmds=''
7735 m68k)
7736 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7737 hardcode_libdir_flag_spec='-L$libdir'
7738 hardcode_minus_L=yes
7740 esac
7743 bsdi[45]*)
7744 export_dynamic_flag_spec=-rdynamic
7747 cygwin* | mingw* | pw32* | cegcc*)
7748 # When not using gcc, we currently assume that we are using
7749 # Microsoft Visual C++.
7750 # hardcode_libdir_flag_spec is actually meaningless, as there is
7751 # no search path for DLLs.
7752 hardcode_libdir_flag_spec=' '
7753 allow_undefined_flag=unsupported
7754 # Tell ltmain to make .lib files, not .a files.
7755 libext=lib
7756 # Tell ltmain to make .dll files, not .so files.
7757 shrext_cmds=".dll"
7758 # FIXME: Setting linknames here is a bad hack.
7759 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7760 # The linker will automatically build a .lib file if we build a DLL.
7761 old_archive_from_new_cmds='true'
7762 # FIXME: Should let the user specify the lib program.
7763 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7764 fix_srcfile_path='`cygpath -w "$srcfile"`'
7765 enable_shared_with_static_runtimes=yes
7768 darwin* | rhapsody*)
7771 archive_cmds_need_lc=no
7772 hardcode_direct=no
7773 hardcode_automatic=yes
7774 hardcode_shlibpath_var=unsupported
7775 whole_archive_flag_spec=''
7776 link_all_deplibs=yes
7777 allow_undefined_flag="$_lt_dar_allow_undefined"
7778 case $cc_basename in
7779 ifort*) _lt_dar_can_shared=yes ;;
7780 *) _lt_dar_can_shared=$GCC ;;
7781 esac
7782 if test "$_lt_dar_can_shared" = "yes"; then
7783 output_verbose_link_cmd=echo
7784 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7785 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7786 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7787 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}"
7789 else
7790 ld_shlibs=no
7795 dgux*)
7796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7797 hardcode_libdir_flag_spec='-L$libdir'
7798 hardcode_shlibpath_var=no
7801 freebsd1*)
7802 ld_shlibs=no
7805 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7806 # support. Future versions do this automatically, but an explicit c++rt0.o
7807 # does not break anything, and helps significantly (at the cost of a little
7808 # extra space).
7809 freebsd2.2*)
7810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7811 hardcode_libdir_flag_spec='-R$libdir'
7812 hardcode_direct=yes
7813 hardcode_shlibpath_var=no
7816 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7817 freebsd2*)
7818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7819 hardcode_direct=yes
7820 hardcode_minus_L=yes
7821 hardcode_shlibpath_var=no
7824 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7825 freebsd* | dragonfly*)
7826 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7827 hardcode_libdir_flag_spec='-R$libdir'
7828 hardcode_direct=yes
7829 hardcode_shlibpath_var=no
7832 hpux9*)
7833 if test "$GCC" = yes; then
7834 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'
7835 else
7836 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7839 hardcode_libdir_separator=:
7840 hardcode_direct=yes
7842 # hardcode_minus_L: Not really in the search PATH,
7843 # but as the default location of the library.
7844 hardcode_minus_L=yes
7845 export_dynamic_flag_spec='${wl}-E'
7848 hpux10*)
7849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7850 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7851 else
7852 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7854 if test "$with_gnu_ld" = no; then
7855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7856 hardcode_libdir_flag_spec_ld='+b $libdir'
7857 hardcode_libdir_separator=:
7858 hardcode_direct=yes
7859 hardcode_direct_absolute=yes
7860 export_dynamic_flag_spec='${wl}-E'
7861 # hardcode_minus_L: Not really in the search PATH,
7862 # but as the default location of the library.
7863 hardcode_minus_L=yes
7867 hpux11*)
7868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7869 case $host_cpu in
7870 hppa*64*)
7871 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7873 ia64*)
7874 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7877 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7879 esac
7880 else
7881 case $host_cpu in
7882 hppa*64*)
7883 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7885 ia64*)
7886 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7891 esac
7893 if test "$with_gnu_ld" = no; then
7894 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7895 hardcode_libdir_separator=:
7897 case $host_cpu in
7898 hppa*64*|ia64*)
7899 hardcode_direct=no
7900 hardcode_shlibpath_var=no
7903 hardcode_direct=yes
7904 hardcode_direct_absolute=yes
7905 export_dynamic_flag_spec='${wl}-E'
7907 # hardcode_minus_L: Not really in the search PATH,
7908 # but as the default location of the library.
7909 hardcode_minus_L=yes
7911 esac
7915 irix5* | irix6* | nonstopux*)
7916 if test "$GCC" = yes; then
7917 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'
7918 # Try to use the -exported_symbol ld option, if it does not
7919 # work, assume that -exports_file does not work either and
7920 # implicitly export all symbols.
7921 save_LDFLAGS="$LDFLAGS"
7922 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 int foo(void) {}
7926 _ACEOF
7927 if ac_fn_c_try_link "$LINENO"; then :
7928 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7931 rm -f core conftest.err conftest.$ac_objext \
7932 conftest$ac_exeext conftest.$ac_ext
7933 LDFLAGS="$save_LDFLAGS"
7934 else
7935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7936 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7938 archive_cmds_need_lc='no'
7939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7940 hardcode_libdir_separator=:
7941 inherit_rpath=yes
7942 link_all_deplibs=yes
7945 netbsd*)
7946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7948 else
7949 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7951 hardcode_libdir_flag_spec='-R$libdir'
7952 hardcode_direct=yes
7953 hardcode_shlibpath_var=no
7956 newsos6)
7957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7958 hardcode_direct=yes
7959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7960 hardcode_libdir_separator=:
7961 hardcode_shlibpath_var=no
7964 *nto* | *qnx*)
7967 openbsd*)
7968 if test -f /usr/libexec/ld.so; then
7969 hardcode_direct=yes
7970 hardcode_shlibpath_var=no
7971 hardcode_direct_absolute=yes
7972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7974 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7976 export_dynamic_flag_spec='${wl}-E'
7977 else
7978 case $host_os in
7979 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7981 hardcode_libdir_flag_spec='-R$libdir'
7984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7987 esac
7989 else
7990 ld_shlibs=no
7994 os2*)
7995 hardcode_libdir_flag_spec='-L$libdir'
7996 hardcode_minus_L=yes
7997 allow_undefined_flag=unsupported
7998 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7999 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8002 osf3*)
8003 if test "$GCC" = yes; then
8004 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8005 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8006 else
8007 allow_undefined_flag=' -expect_unresolved \*'
8008 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8010 archive_cmds_need_lc='no'
8011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8012 hardcode_libdir_separator=:
8015 osf4* | osf5*) # as osf3* with the addition of -msym flag
8016 if test "$GCC" = yes; then
8017 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8018 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8020 else
8021 allow_undefined_flag=' -expect_unresolved \*'
8022 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8023 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~
8024 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8026 # Both c and cxx compiler support -rpath directly
8027 hardcode_libdir_flag_spec='-rpath $libdir'
8029 archive_cmds_need_lc='no'
8030 hardcode_libdir_separator=:
8033 solaris*)
8034 no_undefined_flag=' -z defs'
8035 if test "$GCC" = yes; then
8036 wlarc='${wl}'
8037 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8039 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8040 else
8041 case `$CC -V 2>&1` in
8042 *"Compilers 5.0"*)
8043 wlarc=''
8044 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8046 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8049 wlarc='${wl}'
8050 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8052 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8054 esac
8056 hardcode_libdir_flag_spec='-R$libdir'
8057 hardcode_shlibpath_var=no
8058 case $host_os in
8059 solaris2.[0-5] | solaris2.[0-5].*) ;;
8061 # The compiler driver will combine and reorder linker options,
8062 # but understands `-z linker_flag'. GCC discards it without `$wl',
8063 # but is careful enough not to reorder.
8064 # Supported since Solaris 2.6 (maybe 2.5.1?)
8065 if test "$GCC" = yes; then
8066 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8067 else
8068 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8071 esac
8072 link_all_deplibs=yes
8075 sunos4*)
8076 if test "x$host_vendor" = xsequent; then
8077 # Use $CC to link under sequent, because it throws in some extra .o
8078 # files that make .init and .fini sections work.
8079 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8080 else
8081 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8083 hardcode_libdir_flag_spec='-L$libdir'
8084 hardcode_direct=yes
8085 hardcode_minus_L=yes
8086 hardcode_shlibpath_var=no
8089 sysv4)
8090 case $host_vendor in
8091 sni)
8092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8093 hardcode_direct=yes # is this really true???
8095 siemens)
8096 ## LD is ld it makes a PLAMLIB
8097 ## CC just makes a GrossModule.
8098 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8099 reload_cmds='$CC -r -o $output$reload_objs'
8100 hardcode_direct=no
8102 motorola)
8103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8104 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8106 esac
8107 runpath_var='LD_RUN_PATH'
8108 hardcode_shlibpath_var=no
8111 sysv4.3*)
8112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8113 hardcode_shlibpath_var=no
8114 export_dynamic_flag_spec='-Bexport'
8117 sysv4*MP*)
8118 if test -d /usr/nec; then
8119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8120 hardcode_shlibpath_var=no
8121 runpath_var=LD_RUN_PATH
8122 hardcode_runpath_var=yes
8123 ld_shlibs=yes
8127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8128 no_undefined_flag='${wl}-z,text'
8129 archive_cmds_need_lc=no
8130 hardcode_shlibpath_var=no
8131 runpath_var='LD_RUN_PATH'
8133 if test "$GCC" = yes; then
8134 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8135 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8136 else
8137 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8138 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8142 sysv5* | sco3.2v5* | sco5v6*)
8143 # Note: We can NOT use -z defs as we might desire, because we do not
8144 # link with -lc, and that would cause any symbols used from libc to
8145 # always be unresolved, which means just about no library would
8146 # ever link correctly. If we're not using GNU ld we use -z text
8147 # though, which does catch some bad symbols but isn't as heavy-handed
8148 # as -z defs.
8149 no_undefined_flag='${wl}-z,text'
8150 allow_undefined_flag='${wl}-z,nodefs'
8151 archive_cmds_need_lc=no
8152 hardcode_shlibpath_var=no
8153 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8154 hardcode_libdir_separator=':'
8155 link_all_deplibs=yes
8156 export_dynamic_flag_spec='${wl}-Bexport'
8157 runpath_var='LD_RUN_PATH'
8159 if test "$GCC" = yes; then
8160 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8161 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8162 else
8163 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8164 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8168 uts4*)
8169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8170 hardcode_libdir_flag_spec='-L$libdir'
8171 hardcode_shlibpath_var=no
8175 ld_shlibs=no
8177 esac
8179 if test x$host_vendor = xsni; then
8180 case $host in
8181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8182 export_dynamic_flag_spec='${wl}-Blargedynsym'
8184 esac
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8189 $as_echo "$ld_shlibs" >&6; }
8190 test "$ld_shlibs" = no && can_build_shared=no
8192 with_gnu_ld=$with_gnu_ld
8209 # Do we need to explicitly link libc?
8211 case "x$archive_cmds_need_lc" in
8212 x|xyes)
8213 # Assume -lc should be added
8214 archive_cmds_need_lc=yes
8216 if test "$enable_shared" = yes && test "$GCC" = yes; then
8217 case $archive_cmds in
8218 *'~'*)
8219 # FIXME: we may have to deal with multi-command sequences.
8221 '$CC '*)
8222 # Test whether the compiler implicitly links with -lc since on some
8223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8224 # to ld, don't add -lc before -lgcc.
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8226 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8227 $RM conftest*
8228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8231 (eval $ac_compile) 2>&5
8232 ac_status=$?
8233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8234 test $ac_status = 0; } 2>conftest.err; then
8235 soname=conftest
8236 lib=conftest
8237 libobjs=conftest.$ac_objext
8238 deplibs=
8239 wl=$lt_prog_compiler_wl
8240 pic_flag=$lt_prog_compiler_pic
8241 compiler_flags=-v
8242 linker_flags=-v
8243 verstring=
8244 output_objdir=.
8245 libname=conftest
8246 lt_save_allow_undefined_flag=$allow_undefined_flag
8247 allow_undefined_flag=
8248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8249 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8250 ac_status=$?
8251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8252 test $ac_status = 0; }
8253 then
8254 archive_cmds_need_lc=no
8255 else
8256 archive_cmds_need_lc=yes
8258 allow_undefined_flag=$lt_save_allow_undefined_flag
8259 else
8260 cat conftest.err 1>&5
8262 $RM conftest*
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8264 $as_echo "$archive_cmds_need_lc" >&6; }
8266 esac
8269 esac
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8428 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8430 if test "$GCC" = yes; then
8431 case $host_os in
8432 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8433 *) lt_awk_arg="/^libraries:/" ;;
8434 esac
8435 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8436 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8437 # if the path contains ";" then we assume it to be the separator
8438 # otherwise default to the standard path separator (i.e. ":") - it is
8439 # assumed that no part of a normal pathname contains ";" but that should
8440 # okay in the real world where ";" in dirpaths is itself problematic.
8441 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8442 else
8443 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8445 # Ok, now we have the path, separated by spaces, we can step through it
8446 # and add multilib dir if necessary.
8447 lt_tmp_lt_search_path_spec=
8448 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8449 for lt_sys_path in $lt_search_path_spec; do
8450 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8451 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8452 else
8453 test -d "$lt_sys_path" && \
8454 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8456 done
8457 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8458 BEGIN {RS=" "; FS="/|\n";} {
8459 lt_foo="";
8460 lt_count=0;
8461 for (lt_i = NF; lt_i > 0; lt_i--) {
8462 if ($lt_i != "" && $lt_i != ".") {
8463 if ($lt_i == "..") {
8464 lt_count++;
8465 } else {
8466 if (lt_count == 0) {
8467 lt_foo="/" $lt_i lt_foo;
8468 } else {
8469 lt_count--;
8474 if (lt_foo != "") { lt_freq[lt_foo]++; }
8475 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8477 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8478 else
8479 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8481 library_names_spec=
8482 libname_spec='lib$name'
8483 soname_spec=
8484 shrext_cmds=".so"
8485 postinstall_cmds=
8486 postuninstall_cmds=
8487 finish_cmds=
8488 finish_eval=
8489 shlibpath_var=
8490 shlibpath_overrides_runpath=unknown
8491 version_type=none
8492 dynamic_linker="$host_os ld.so"
8493 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8494 need_lib_prefix=unknown
8495 hardcode_into_libs=no
8497 # when you set need_version to no, make sure it does not cause -set_version
8498 # flags to be left without arguments
8499 need_version=unknown
8501 case $host_os in
8502 aix3*)
8503 version_type=linux
8504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8505 shlibpath_var=LIBPATH
8507 # AIX 3 has no versioning support, so we append a major version to the name.
8508 soname_spec='${libname}${release}${shared_ext}$major'
8511 aix[4-9]*)
8512 version_type=linux
8513 need_lib_prefix=no
8514 need_version=no
8515 hardcode_into_libs=yes
8516 if test "$host_cpu" = ia64; then
8517 # AIX 5 supports IA64
8518 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8519 shlibpath_var=LD_LIBRARY_PATH
8520 else
8521 # With GCC up to 2.95.x, collect2 would create an import file
8522 # for dependence libraries. The import file would start with
8523 # the line `#! .'. This would cause the generated library to
8524 # depend on `.', always an invalid library. This was fixed in
8525 # development snapshots of GCC prior to 3.0.
8526 case $host_os in
8527 aix4 | aix4.[01] | aix4.[01].*)
8528 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8529 echo ' yes '
8530 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8532 else
8533 can_build_shared=no
8536 esac
8537 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8538 # soname into executable. Probably we can add versioning support to
8539 # collect2, so additional links can be useful in future.
8540 if test "$aix_use_runtimelinking" = yes; then
8541 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8542 # instead of lib<name>.a to let people know that these are not
8543 # typical AIX shared libraries.
8544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8545 else
8546 # We preserve .a as extension for shared libraries through AIX4.2
8547 # and later when we are not doing run time linking.
8548 library_names_spec='${libname}${release}.a $libname.a'
8549 soname_spec='${libname}${release}${shared_ext}$major'
8551 shlibpath_var=LIBPATH
8555 amigaos*)
8556 case $host_cpu in
8557 powerpc)
8558 # Since July 2007 AmigaOS4 officially supports .so libraries.
8559 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8562 m68k)
8563 library_names_spec='$libname.ixlibrary $libname.a'
8564 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8565 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8567 esac
8570 beos*)
8571 library_names_spec='${libname}${shared_ext}'
8572 dynamic_linker="$host_os ld.so"
8573 shlibpath_var=LIBRARY_PATH
8576 bsdi[45]*)
8577 version_type=linux
8578 need_version=no
8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8580 soname_spec='${libname}${release}${shared_ext}$major'
8581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8582 shlibpath_var=LD_LIBRARY_PATH
8583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8585 # the default ld.so.conf also contains /usr/contrib/lib and
8586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8587 # libtool to hard-code these into programs
8590 cygwin* | mingw* | pw32* | cegcc*)
8591 version_type=windows
8592 shrext_cmds=".dll"
8593 need_version=no
8594 need_lib_prefix=no
8596 case $GCC,$host_os in
8597 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8598 library_names_spec='$libname.dll.a'
8599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8600 postinstall_cmds='base_file=`basename \${file}`~
8601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8602 dldir=$destdir/`dirname \$dlpath`~
8603 test -d \$dldir || mkdir -p \$dldir~
8604 $install_prog $dir/$dlname \$dldir/$dlname~
8605 chmod a+x \$dldir/$dlname~
8606 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8607 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8609 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8610 dlpath=$dir/\$dldll~
8611 $RM \$dlpath'
8612 shlibpath_overrides_runpath=yes
8614 case $host_os in
8615 cygwin*)
8616 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8617 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8618 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8620 mingw* | cegcc*)
8621 # MinGW DLLs use traditional 'lib' prefix
8622 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8623 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8624 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8625 # It is most probably a Windows format PATH printed by
8626 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8627 # path with ; separators, and with drive letters. We can handle the
8628 # drive letters (cygwin fileutils understands them), so leave them,
8629 # especially as we might pass files found there to a mingw objdump,
8630 # which wouldn't understand a cygwinified path. Ahh.
8631 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8632 else
8633 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8636 pw32*)
8637 # pw32 DLLs use 'pw' prefix rather than 'lib'
8638 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8640 esac
8644 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8646 esac
8647 dynamic_linker='Win32 ld.exe'
8648 # FIXME: first we should search . and the directory the executable is in
8649 shlibpath_var=PATH
8652 darwin* | rhapsody*)
8653 dynamic_linker="$host_os dyld"
8654 version_type=darwin
8655 need_lib_prefix=no
8656 need_version=no
8657 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8658 soname_spec='${libname}${release}${major}$shared_ext'
8659 shlibpath_overrides_runpath=yes
8660 shlibpath_var=DYLD_LIBRARY_PATH
8661 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8663 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8664 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8667 dgux*)
8668 version_type=linux
8669 need_lib_prefix=no
8670 need_version=no
8671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8672 soname_spec='${libname}${release}${shared_ext}$major'
8673 shlibpath_var=LD_LIBRARY_PATH
8676 freebsd1*)
8677 dynamic_linker=no
8680 freebsd* | dragonfly*)
8681 # DragonFly does not have aout. When/if they implement a new
8682 # versioning mechanism, adjust this.
8683 if test -x /usr/bin/objformat; then
8684 objformat=`/usr/bin/objformat`
8685 else
8686 case $host_os in
8687 freebsd[123]*) objformat=aout ;;
8688 *) objformat=elf ;;
8689 esac
8691 # Handle Gentoo/FreeBSD as it was Linux
8692 case $host_vendor in
8693 gentoo)
8694 version_type=linux ;;
8696 version_type=freebsd-$objformat ;;
8697 esac
8699 case $version_type in
8700 freebsd-elf*)
8701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8702 need_version=no
8703 need_lib_prefix=no
8705 freebsd-*)
8706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8707 need_version=yes
8709 linux)
8710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8711 soname_spec='${libname}${release}${shared_ext}$major'
8712 need_lib_prefix=no
8713 need_version=no
8715 esac
8716 shlibpath_var=LD_LIBRARY_PATH
8717 case $host_os in
8718 freebsd2*)
8719 shlibpath_overrides_runpath=yes
8721 freebsd3.[01]* | freebsdelf3.[01]*)
8722 shlibpath_overrides_runpath=yes
8723 hardcode_into_libs=yes
8725 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8726 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8727 shlibpath_overrides_runpath=no
8728 hardcode_into_libs=yes
8730 *) # from 4.6 on, and DragonFly
8731 shlibpath_overrides_runpath=yes
8732 hardcode_into_libs=yes
8734 esac
8737 gnu*)
8738 version_type=linux
8739 need_lib_prefix=no
8740 need_version=no
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8742 soname_spec='${libname}${release}${shared_ext}$major'
8743 shlibpath_var=LD_LIBRARY_PATH
8744 hardcode_into_libs=yes
8747 hpux9* | hpux10* | hpux11*)
8748 # Give a soname corresponding to the major version so that dld.sl refuses to
8749 # link against other versions.
8750 version_type=sunos
8751 need_lib_prefix=no
8752 need_version=no
8753 case $host_cpu in
8754 ia64*)
8755 shrext_cmds='.so'
8756 hardcode_into_libs=yes
8757 dynamic_linker="$host_os dld.so"
8758 shlibpath_var=LD_LIBRARY_PATH
8759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8761 soname_spec='${libname}${release}${shared_ext}$major'
8762 if test "X$HPUX_IA64_MODE" = X32; then
8763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8764 else
8765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8769 hppa*64*)
8770 shrext_cmds='.sl'
8771 hardcode_into_libs=yes
8772 dynamic_linker="$host_os dld.sl"
8773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8776 soname_spec='${libname}${release}${shared_ext}$major'
8777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8781 shrext_cmds='.sl'
8782 dynamic_linker="$host_os dld.sl"
8783 shlibpath_var=SHLIB_PATH
8784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786 soname_spec='${libname}${release}${shared_ext}$major'
8788 esac
8789 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8790 postinstall_cmds='chmod 555 $lib'
8793 interix[3-9]*)
8794 version_type=linux
8795 need_lib_prefix=no
8796 need_version=no
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8798 soname_spec='${libname}${release}${shared_ext}$major'
8799 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8800 shlibpath_var=LD_LIBRARY_PATH
8801 shlibpath_overrides_runpath=no
8802 hardcode_into_libs=yes
8805 irix5* | irix6* | nonstopux*)
8806 case $host_os in
8807 nonstopux*) version_type=nonstopux ;;
8809 if test "$lt_cv_prog_gnu_ld" = yes; then
8810 version_type=linux
8811 else
8812 version_type=irix
8813 fi ;;
8814 esac
8815 need_lib_prefix=no
8816 need_version=no
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8819 case $host_os in
8820 irix5* | nonstopux*)
8821 libsuff= shlibsuff=
8824 case $LD in # libtool.m4 will add one of these switches to LD
8825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8826 libsuff= shlibsuff= libmagic=32-bit;;
8827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8828 libsuff=32 shlibsuff=N32 libmagic=N32;;
8829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8830 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8831 *) libsuff= shlibsuff= libmagic=never-match;;
8832 esac
8834 esac
8835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8836 shlibpath_overrides_runpath=no
8837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8839 hardcode_into_libs=yes
8842 # No shared lib support for Linux oldld, aout, or coff.
8843 linux*oldld* | linux*aout* | linux*coff*)
8844 dynamic_linker=no
8847 # This must be Linux ELF.
8848 linux* | k*bsd*-gnu)
8849 version_type=linux
8850 need_lib_prefix=no
8851 need_version=no
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8855 shlibpath_var=LD_LIBRARY_PATH
8856 shlibpath_overrides_runpath=no
8857 # Some binutils ld are patched to set DT_RUNPATH
8858 save_LDFLAGS=$LDFLAGS
8859 save_libdir=$libdir
8860 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8861 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8866 main ()
8870 return 0;
8872 _ACEOF
8873 if ac_fn_c_try_link "$LINENO"; then :
8874 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8875 shlibpath_overrides_runpath=yes
8878 rm -f core conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880 LDFLAGS=$save_LDFLAGS
8881 libdir=$save_libdir
8883 # This implies no fast_install, which is unacceptable.
8884 # Some rework will be needed to allow for fast_install
8885 # before this can be enabled.
8886 hardcode_into_libs=yes
8888 # Append ld.so.conf contents to the search path
8889 if test -f /etc/ld.so.conf; then
8890 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8891 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8894 # We used to test for /lib/ld.so.1 and disable shared libraries on
8895 # powerpc, because MkLinux only supported shared libraries with the
8896 # GNU dynamic linker. Since this was broken with cross compilers,
8897 # most powerpc-linux boxes support dynamic linking these days and
8898 # people can always --disable-shared, the test was removed, and we
8899 # assume the GNU/Linux dynamic linker is in use.
8900 dynamic_linker='GNU/Linux ld.so'
8903 netbsd*)
8904 version_type=sunos
8905 need_lib_prefix=no
8906 need_version=no
8907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8910 dynamic_linker='NetBSD (a.out) ld.so'
8911 else
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 dynamic_linker='NetBSD ld.elf_so'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 shlibpath_overrides_runpath=yes
8918 hardcode_into_libs=yes
8921 newsos6)
8922 version_type=linux
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=yes
8928 *nto* | *qnx*)
8929 version_type=qnx
8930 need_lib_prefix=no
8931 need_version=no
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=no
8936 hardcode_into_libs=yes
8937 dynamic_linker='ldqnx.so'
8940 openbsd*)
8941 version_type=sunos
8942 sys_lib_dlsearch_path_spec="/usr/lib"
8943 need_lib_prefix=no
8944 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8945 case $host_os in
8946 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8947 *) need_version=no ;;
8948 esac
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8953 case $host_os in
8954 openbsd2.[89] | openbsd2.[89].*)
8955 shlibpath_overrides_runpath=no
8958 shlibpath_overrides_runpath=yes
8960 esac
8961 else
8962 shlibpath_overrides_runpath=yes
8966 os2*)
8967 libname_spec='$name'
8968 shrext_cmds=".dll"
8969 need_lib_prefix=no
8970 library_names_spec='$libname${shared_ext} $libname.a'
8971 dynamic_linker='OS/2 ld.exe'
8972 shlibpath_var=LIBPATH
8975 osf3* | osf4* | osf5*)
8976 version_type=osf
8977 need_lib_prefix=no
8978 need_version=no
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8983 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8986 rdos*)
8987 dynamic_linker=no
8990 solaris*)
8991 version_type=linux
8992 need_lib_prefix=no
8993 need_version=no
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8995 soname_spec='${libname}${release}${shared_ext}$major'
8996 shlibpath_var=LD_LIBRARY_PATH
8997 shlibpath_overrides_runpath=yes
8998 hardcode_into_libs=yes
8999 # ldd complains unless libraries are executable
9000 postinstall_cmds='chmod +x $lib'
9003 sunos4*)
9004 version_type=sunos
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9006 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9009 if test "$with_gnu_ld" = yes; then
9010 need_lib_prefix=no
9012 need_version=yes
9015 sysv4 | sysv4.3*)
9016 version_type=linux
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 case $host_vendor in
9021 sni)
9022 shlibpath_overrides_runpath=no
9023 need_lib_prefix=no
9024 runpath_var=LD_RUN_PATH
9026 siemens)
9027 need_lib_prefix=no
9029 motorola)
9030 need_lib_prefix=no
9031 need_version=no
9032 shlibpath_overrides_runpath=no
9033 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9035 esac
9038 sysv4*MP*)
9039 if test -d /usr/nec ;then
9040 version_type=linux
9041 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9042 soname_spec='$libname${shared_ext}.$major'
9043 shlibpath_var=LD_LIBRARY_PATH
9047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9048 version_type=freebsd-elf
9049 need_lib_prefix=no
9050 need_version=no
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 shlibpath_var=LD_LIBRARY_PATH
9054 shlibpath_overrides_runpath=yes
9055 hardcode_into_libs=yes
9056 if test "$with_gnu_ld" = yes; then
9057 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9058 else
9059 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9060 case $host_os in
9061 sco3.2v5*)
9062 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9064 esac
9066 sys_lib_dlsearch_path_spec='/usr/lib'
9069 tpf*)
9070 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9071 version_type=linux
9072 need_lib_prefix=no
9073 need_version=no
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 shlibpath_overrides_runpath=no
9077 hardcode_into_libs=yes
9080 uts4*)
9081 version_type=linux
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9088 dynamic_linker=no
9090 esac
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9092 $as_echo "$dynamic_linker" >&6; }
9093 test "$dynamic_linker" = no && can_build_shared=no
9095 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9096 if test "$GCC" = yes; then
9097 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9100 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9101 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9103 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9104 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9194 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9195 hardcode_action=
9196 if test -n "$hardcode_libdir_flag_spec" ||
9197 test -n "$runpath_var" ||
9198 test "X$hardcode_automatic" = "Xyes" ; then
9200 # We can hardcode non-existent directories.
9201 if test "$hardcode_direct" != no &&
9202 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9203 # have to relink, otherwise we might link with an installed library
9204 # when we should be linking with a yet-to-be-installed one
9205 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9206 test "$hardcode_minus_L" != no; then
9207 # Linking always hardcodes the temporary library directory.
9208 hardcode_action=relink
9209 else
9210 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9211 hardcode_action=immediate
9213 else
9214 # We cannot hardcode anything, or else we can only hardcode existing
9215 # directories.
9216 hardcode_action=unsupported
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9219 $as_echo "$hardcode_action" >&6; }
9221 if test "$hardcode_action" = relink ||
9222 test "$inherit_rpath" = yes; then
9223 # Fast installation is not supported
9224 enable_fast_install=no
9225 elif test "$shlibpath_overrides_runpath" = yes ||
9226 test "$enable_shared" = no; then
9227 # Fast installation is not necessary
9228 enable_fast_install=needless
9236 if test "x$enable_dlopen" != xyes; then
9237 enable_dlopen=unknown
9238 enable_dlopen_self=unknown
9239 enable_dlopen_self_static=unknown
9240 else
9241 lt_cv_dlopen=no
9242 lt_cv_dlopen_libs=
9244 case $host_os in
9245 beos*)
9246 lt_cv_dlopen="load_add_on"
9247 lt_cv_dlopen_libs=
9248 lt_cv_dlopen_self=yes
9251 mingw* | pw32* | cegcc*)
9252 lt_cv_dlopen="LoadLibrary"
9253 lt_cv_dlopen_libs=
9256 cygwin*)
9257 lt_cv_dlopen="dlopen"
9258 lt_cv_dlopen_libs=
9261 darwin*)
9262 # if libdl is installed we need to link against it
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9264 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9265 if ${ac_cv_lib_dl_dlopen+:} false; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 ac_check_lib_save_LIBS=$LIBS
9269 LIBS="-ldl $LIBS"
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9273 /* Override any GCC internal prototype to avoid an error.
9274 Use char because int might match the return type of a GCC
9275 builtin and then its argument prototype would still apply. */
9276 #ifdef __cplusplus
9277 extern "C"
9278 #endif
9279 char dlopen ();
9281 main ()
9283 return dlopen ();
9285 return 0;
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289 ac_cv_lib_dl_dlopen=yes
9290 else
9291 ac_cv_lib_dl_dlopen=no
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LIBS=$ac_check_lib_save_LIBS
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9298 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9299 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9301 else
9303 lt_cv_dlopen="dyld"
9304 lt_cv_dlopen_libs=
9305 lt_cv_dlopen_self=yes
9312 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9313 if test "x$ac_cv_func_shl_load" = xyes; then :
9314 lt_cv_dlopen="shl_load"
9315 else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9317 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9318 if ${ac_cv_lib_dld_shl_load+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 ac_check_lib_save_LIBS=$LIBS
9322 LIBS="-ldld $LIBS"
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9326 /* Override any GCC internal prototype to avoid an error.
9327 Use char because int might match the return type of a GCC
9328 builtin and then its argument prototype would still apply. */
9329 #ifdef __cplusplus
9330 extern "C"
9331 #endif
9332 char shl_load ();
9334 main ()
9336 return shl_load ();
9338 return 0;
9340 _ACEOF
9341 if ac_fn_c_try_link "$LINENO"; then :
9342 ac_cv_lib_dld_shl_load=yes
9343 else
9344 ac_cv_lib_dld_shl_load=no
9346 rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 LIBS=$ac_check_lib_save_LIBS
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9351 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9352 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9353 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9354 else
9355 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9356 if test "x$ac_cv_func_dlopen" = xyes; then :
9357 lt_cv_dlopen="dlopen"
9358 else
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9360 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9361 if ${ac_cv_lib_dl_dlopen+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 ac_check_lib_save_LIBS=$LIBS
9365 LIBS="-ldl $LIBS"
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 char dlopen ();
9377 main ()
9379 return dlopen ();
9381 return 0;
9383 _ACEOF
9384 if ac_fn_c_try_link "$LINENO"; then :
9385 ac_cv_lib_dl_dlopen=yes
9386 else
9387 ac_cv_lib_dl_dlopen=no
9389 rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_check_lib_save_LIBS
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9394 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9395 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9397 else
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9399 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9400 if ${ac_cv_lib_svld_dlopen+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 ac_check_lib_save_LIBS=$LIBS
9404 LIBS="-lsvld $LIBS"
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9408 /* Override any GCC internal prototype to avoid an error.
9409 Use char because int might match the return type of a GCC
9410 builtin and then its argument prototype would still apply. */
9411 #ifdef __cplusplus
9412 extern "C"
9413 #endif
9414 char dlopen ();
9416 main ()
9418 return dlopen ();
9420 return 0;
9422 _ACEOF
9423 if ac_fn_c_try_link "$LINENO"; then :
9424 ac_cv_lib_svld_dlopen=yes
9425 else
9426 ac_cv_lib_svld_dlopen=no
9428 rm -f core conftest.err conftest.$ac_objext \
9429 conftest$ac_exeext conftest.$ac_ext
9430 LIBS=$ac_check_lib_save_LIBS
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9433 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9434 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9435 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9436 else
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9438 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9439 if ${ac_cv_lib_dld_dld_link+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 ac_check_lib_save_LIBS=$LIBS
9443 LIBS="-ldld $LIBS"
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9447 /* Override any GCC internal prototype to avoid an error.
9448 Use char because int might match the return type of a GCC
9449 builtin and then its argument prototype would still apply. */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 char dld_link ();
9455 main ()
9457 return dld_link ();
9459 return 0;
9461 _ACEOF
9462 if ac_fn_c_try_link "$LINENO"; then :
9463 ac_cv_lib_dld_dld_link=yes
9464 else
9465 ac_cv_lib_dld_dld_link=no
9467 rm -f core conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext conftest.$ac_ext
9469 LIBS=$ac_check_lib_save_LIBS
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9472 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9473 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9474 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9493 esac
9495 if test "x$lt_cv_dlopen" != xno; then
9496 enable_dlopen=yes
9497 else
9498 enable_dlopen=no
9501 case $lt_cv_dlopen in
9502 dlopen)
9503 save_CPPFLAGS="$CPPFLAGS"
9504 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9506 save_LDFLAGS="$LDFLAGS"
9507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9509 save_LIBS="$LIBS"
9510 LIBS="$lt_cv_dlopen_libs $LIBS"
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9513 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9514 if ${lt_cv_dlopen_self+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 if test "$cross_compiling" = yes; then :
9518 lt_cv_dlopen_self=cross
9519 else
9520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9521 lt_status=$lt_dlunknown
9522 cat > conftest.$ac_ext <<_LT_EOF
9523 #line 9523 "configure"
9524 #include "confdefs.h"
9526 #if HAVE_DLFCN_H
9527 #include <dlfcn.h>
9528 #endif
9530 #include <stdio.h>
9532 #ifdef RTLD_GLOBAL
9533 # define LT_DLGLOBAL RTLD_GLOBAL
9534 #else
9535 # ifdef DL_GLOBAL
9536 # define LT_DLGLOBAL DL_GLOBAL
9537 # else
9538 # define LT_DLGLOBAL 0
9539 # endif
9540 #endif
9542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9543 find out it does not work in some platform. */
9544 #ifndef LT_DLLAZY_OR_NOW
9545 # ifdef RTLD_LAZY
9546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9547 # else
9548 # ifdef DL_LAZY
9549 # define LT_DLLAZY_OR_NOW DL_LAZY
9550 # else
9551 # ifdef RTLD_NOW
9552 # define LT_DLLAZY_OR_NOW RTLD_NOW
9553 # else
9554 # ifdef DL_NOW
9555 # define LT_DLLAZY_OR_NOW DL_NOW
9556 # else
9557 # define LT_DLLAZY_OR_NOW 0
9558 # endif
9559 # endif
9560 # endif
9561 # endif
9562 #endif
9564 void fnord() { int i=42;}
9565 int main ()
9567 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9568 int status = $lt_dlunknown;
9570 if (self)
9572 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9573 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9574 /* dlclose (self); */
9576 else
9577 puts (dlerror ());
9579 return status;
9581 _LT_EOF
9582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9583 (eval $ac_link) 2>&5
9584 ac_status=$?
9585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9586 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9587 (./conftest; exit; ) >&5 2>/dev/null
9588 lt_status=$?
9589 case x$lt_status in
9590 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9591 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9592 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9593 esac
9594 else :
9595 # compilation failed
9596 lt_cv_dlopen_self=no
9599 rm -fr conftest*
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9604 $as_echo "$lt_cv_dlopen_self" >&6; }
9606 if test "x$lt_cv_dlopen_self" = xyes; then
9607 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9609 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9610 if ${lt_cv_dlopen_self_static+:} false; then :
9611 $as_echo_n "(cached) " >&6
9612 else
9613 if test "$cross_compiling" = yes; then :
9614 lt_cv_dlopen_self_static=cross
9615 else
9616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9617 lt_status=$lt_dlunknown
9618 cat > conftest.$ac_ext <<_LT_EOF
9619 #line 9619 "configure"
9620 #include "confdefs.h"
9622 #if HAVE_DLFCN_H
9623 #include <dlfcn.h>
9624 #endif
9626 #include <stdio.h>
9628 #ifdef RTLD_GLOBAL
9629 # define LT_DLGLOBAL RTLD_GLOBAL
9630 #else
9631 # ifdef DL_GLOBAL
9632 # define LT_DLGLOBAL DL_GLOBAL
9633 # else
9634 # define LT_DLGLOBAL 0
9635 # endif
9636 #endif
9638 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9639 find out it does not work in some platform. */
9640 #ifndef LT_DLLAZY_OR_NOW
9641 # ifdef RTLD_LAZY
9642 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9643 # else
9644 # ifdef DL_LAZY
9645 # define LT_DLLAZY_OR_NOW DL_LAZY
9646 # else
9647 # ifdef RTLD_NOW
9648 # define LT_DLLAZY_OR_NOW RTLD_NOW
9649 # else
9650 # ifdef DL_NOW
9651 # define LT_DLLAZY_OR_NOW DL_NOW
9652 # else
9653 # define LT_DLLAZY_OR_NOW 0
9654 # endif
9655 # endif
9656 # endif
9657 # endif
9658 #endif
9660 void fnord() { int i=42;}
9661 int main ()
9663 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9664 int status = $lt_dlunknown;
9666 if (self)
9668 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9669 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9670 /* dlclose (self); */
9672 else
9673 puts (dlerror ());
9675 return status;
9677 _LT_EOF
9678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9679 (eval $ac_link) 2>&5
9680 ac_status=$?
9681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9682 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9683 (./conftest; exit; ) >&5 2>/dev/null
9684 lt_status=$?
9685 case x$lt_status in
9686 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9687 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9688 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9689 esac
9690 else :
9691 # compilation failed
9692 lt_cv_dlopen_self_static=no
9695 rm -fr conftest*
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9700 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9703 CPPFLAGS="$save_CPPFLAGS"
9704 LDFLAGS="$save_LDFLAGS"
9705 LIBS="$save_LIBS"
9707 esac
9709 case $lt_cv_dlopen_self in
9710 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9711 *) enable_dlopen_self=unknown ;;
9712 esac
9714 case $lt_cv_dlopen_self_static in
9715 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9716 *) enable_dlopen_self_static=unknown ;;
9717 esac
9736 striplib=
9737 old_striplib=
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9739 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9740 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9741 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9742 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9744 $as_echo "yes" >&6; }
9745 else
9746 # FIXME - insert some real tests, host_os isn't really good enough
9747 case $host_os in
9748 darwin*)
9749 if test -n "$STRIP" ; then
9750 striplib="$STRIP -x"
9751 old_striplib="$STRIP -S"
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9753 $as_echo "yes" >&6; }
9754 else
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756 $as_echo "no" >&6; }
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9763 esac
9777 # Report which library types will actually be built
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9779 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9781 $as_echo "$can_build_shared" >&6; }
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9784 $as_echo_n "checking whether to build shared libraries... " >&6; }
9785 test "$can_build_shared" = "no" && enable_shared=no
9787 # On AIX, shared libraries and static libraries use the same namespace, and
9788 # are all built from PIC.
9789 case $host_os in
9790 aix3*)
9791 test "$enable_shared" = yes && enable_static=no
9792 if test -n "$RANLIB"; then
9793 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9794 postinstall_cmds='$RANLIB $lib'
9798 aix[4-9]*)
9799 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9800 test "$enable_shared" = yes && enable_static=no
9803 esac
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9805 $as_echo "$enable_shared" >&6; }
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9808 $as_echo_n "checking whether to build static libraries... " >&6; }
9809 # Make sure either enable_shared or enable_static is yes.
9810 test "$enable_shared" = yes || enable_static=yes
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9812 $as_echo "$enable_static" >&6; }
9818 ac_ext=c
9819 ac_cpp='$CPP $CPPFLAGS'
9820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9824 CC="$lt_save_CC"
9838 ac_config_commands="$ac_config_commands libtool"
9843 # Only expand once:
9846 # Find a good install program. We prefer a C program (faster),
9847 # so one script is as good as another. But avoid the broken or
9848 # incompatible versions:
9849 # SysV /etc/install, /usr/sbin/install
9850 # SunOS /usr/etc/install
9851 # IRIX /sbin/install
9852 # AIX /bin/install
9853 # AmigaOS /C/install, which installs bootblocks on floppy discs
9854 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9857 # OS/2's system install, which has a completely different semantic
9858 # ./install, which can be erroneously created by make from ./install.sh.
9859 # Reject install programs that cannot install multiple files.
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9861 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9862 if test -z "$INSTALL"; then
9863 if ${ac_cv_path_install+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867 for as_dir in $PATH
9869 IFS=$as_save_IFS
9870 test -z "$as_dir" && as_dir=.
9871 # Account for people who put trailing slashes in PATH elements.
9872 case $as_dir/ in #((
9873 ./ | .// | /[cC]/* | \
9874 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9875 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9876 /usr/ucb/* ) ;;
9878 # OSF1 and SCO ODT 3.0 have their own names for install.
9879 # Don't use installbsd from OSF since it installs stuff as root
9880 # by default.
9881 for ac_prog in ginstall scoinst install; do
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9884 if test $ac_prog = install &&
9885 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9886 # AIX install. It has an incompatible calling convention.
9888 elif test $ac_prog = install &&
9889 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9890 # program-specific install script used by HP pwplus--don't use.
9892 else
9893 rm -rf conftest.one conftest.two conftest.dir
9894 echo one > conftest.one
9895 echo two > conftest.two
9896 mkdir conftest.dir
9897 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9898 test -s conftest.one && test -s conftest.two &&
9899 test -s conftest.dir/conftest.one &&
9900 test -s conftest.dir/conftest.two
9901 then
9902 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9903 break 3
9907 done
9908 done
9910 esac
9912 done
9913 IFS=$as_save_IFS
9915 rm -rf conftest.one conftest.two conftest.dir
9918 if test "${ac_cv_path_install+set}" = set; then
9919 INSTALL=$ac_cv_path_install
9920 else
9921 # As a last resort, use the slow shell script. Don't cache a
9922 # value for INSTALL within a source directory, because that will
9923 # break other packages using the cache if that directory is
9924 # removed, or if the value is a relative name.
9925 INSTALL=$ac_install_sh
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9929 $as_echo "$INSTALL" >&6; }
9931 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9932 # It thinks the first close brace ends the variable substitution.
9933 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9935 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9937 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9939 for ac_prog in gawk mawk nawk awk
9941 # Extract the first word of "$ac_prog", so it can be a program name with args.
9942 set dummy $ac_prog; ac_word=$2
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 $as_echo_n "checking for $ac_word... " >&6; }
9945 if ${ac_cv_prog_AWK+:} false; then :
9946 $as_echo_n "(cached) " >&6
9947 else
9948 if test -n "$AWK"; then
9949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9950 else
9951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952 for as_dir in $PATH
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
9956 for ac_exec_ext in '' $ac_executable_extensions; do
9957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9958 ac_cv_prog_AWK="$ac_prog"
9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960 break 2
9962 done
9963 done
9964 IFS=$as_save_IFS
9968 AWK=$ac_cv_prog_AWK
9969 if test -n "$AWK"; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9971 $as_echo "$AWK" >&6; }
9972 else
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974 $as_echo "no" >&6; }
9978 test -n "$AWK" && break
9979 done
9982 #########
9983 # Enable large file support (if special flags are necessary)
9985 # Check whether --enable-largefile was given.
9986 if test "${enable_largefile+set}" = set; then :
9987 enableval=$enable_largefile;
9990 if test "$enable_largefile" != no; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9993 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9994 if ${ac_cv_sys_largefile_CC+:} false; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 ac_cv_sys_largefile_CC=no
9998 if test "$GCC" != yes; then
9999 ac_save_CC=$CC
10000 while :; do
10001 # IRIX 6.2 and later do not support large files by default,
10002 # so use the C compiler's -n32 option if that helps.
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 #include <sys/types.h>
10006 /* Check that off_t can represent 2**63 - 1 correctly.
10007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10008 since some C++ compilers masquerading as C compilers
10009 incorrectly reject 9223372036854775807. */
10010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10012 && LARGE_OFF_T % 2147483647 == 1)
10013 ? 1 : -1];
10015 main ()
10019 return 0;
10021 _ACEOF
10022 if ac_fn_c_try_compile "$LINENO"; then :
10023 break
10025 rm -f core conftest.err conftest.$ac_objext
10026 CC="$CC -n32"
10027 if ac_fn_c_try_compile "$LINENO"; then :
10028 ac_cv_sys_largefile_CC=' -n32'; break
10030 rm -f core conftest.err conftest.$ac_objext
10031 break
10032 done
10033 CC=$ac_save_CC
10034 rm -f conftest.$ac_ext
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10038 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10039 if test "$ac_cv_sys_largefile_CC" != no; then
10040 CC=$CC$ac_cv_sys_largefile_CC
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10044 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10045 if ${ac_cv_sys_file_offset_bits+:} false; then :
10046 $as_echo_n "(cached) " >&6
10047 else
10048 while :; do
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */
10051 #include <sys/types.h>
10052 /* Check that off_t can represent 2**63 - 1 correctly.
10053 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10054 since some C++ compilers masquerading as C compilers
10055 incorrectly reject 9223372036854775807. */
10056 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10057 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10058 && LARGE_OFF_T % 2147483647 == 1)
10059 ? 1 : -1];
10061 main ()
10065 return 0;
10067 _ACEOF
10068 if ac_fn_c_try_compile "$LINENO"; then :
10069 ac_cv_sys_file_offset_bits=no; break
10071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074 #define _FILE_OFFSET_BITS 64
10075 #include <sys/types.h>
10076 /* Check that off_t can represent 2**63 - 1 correctly.
10077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10078 since some C++ compilers masquerading as C compilers
10079 incorrectly reject 9223372036854775807. */
10080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10082 && LARGE_OFF_T % 2147483647 == 1)
10083 ? 1 : -1];
10085 main ()
10089 return 0;
10091 _ACEOF
10092 if ac_fn_c_try_compile "$LINENO"; then :
10093 ac_cv_sys_file_offset_bits=64; break
10095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 ac_cv_sys_file_offset_bits=unknown
10097 break
10098 done
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10101 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10102 case $ac_cv_sys_file_offset_bits in #(
10103 no | unknown) ;;
10105 cat >>confdefs.h <<_ACEOF
10106 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10107 _ACEOF
10109 esac
10110 rm -rf conftest*
10111 if test $ac_cv_sys_file_offset_bits = unknown; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10113 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10114 if ${ac_cv_sys_large_files+:} false; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 while :; do
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120 #include <sys/types.h>
10121 /* Check that off_t can represent 2**63 - 1 correctly.
10122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10123 since some C++ compilers masquerading as C compilers
10124 incorrectly reject 9223372036854775807. */
10125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10127 && LARGE_OFF_T % 2147483647 == 1)
10128 ? 1 : -1];
10130 main ()
10134 return 0;
10136 _ACEOF
10137 if ac_fn_c_try_compile "$LINENO"; then :
10138 ac_cv_sys_large_files=no; break
10140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 #define _LARGE_FILES 1
10144 #include <sys/types.h>
10145 /* Check that off_t can represent 2**63 - 1 correctly.
10146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10147 since some C++ compilers masquerading as C compilers
10148 incorrectly reject 9223372036854775807. */
10149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10151 && LARGE_OFF_T % 2147483647 == 1)
10152 ? 1 : -1];
10154 main ()
10158 return 0;
10160 _ACEOF
10161 if ac_fn_c_try_compile "$LINENO"; then :
10162 ac_cv_sys_large_files=1; break
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 ac_cv_sys_large_files=unknown
10166 break
10167 done
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10170 $as_echo "$ac_cv_sys_large_files" >&6; }
10171 case $ac_cv_sys_large_files in #(
10172 no | unknown) ;;
10174 cat >>confdefs.h <<_ACEOF
10175 #define _LARGE_FILES $ac_cv_sys_large_files
10176 _ACEOF
10178 esac
10179 rm -rf conftest*
10184 #########
10185 # Check for needed/wanted data types
10186 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10187 if test "x$ac_cv_type_int8_t" = xyes; then :
10189 cat >>confdefs.h <<_ACEOF
10190 #define HAVE_INT8_T 1
10191 _ACEOF
10195 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10196 if test "x$ac_cv_type_int16_t" = xyes; then :
10198 cat >>confdefs.h <<_ACEOF
10199 #define HAVE_INT16_T 1
10200 _ACEOF
10204 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10205 if test "x$ac_cv_type_int32_t" = xyes; then :
10207 cat >>confdefs.h <<_ACEOF
10208 #define HAVE_INT32_T 1
10209 _ACEOF
10213 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10214 if test "x$ac_cv_type_int64_t" = xyes; then :
10216 cat >>confdefs.h <<_ACEOF
10217 #define HAVE_INT64_T 1
10218 _ACEOF
10222 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10223 if test "x$ac_cv_type_intptr_t" = xyes; then :
10225 cat >>confdefs.h <<_ACEOF
10226 #define HAVE_INTPTR_T 1
10227 _ACEOF
10231 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10232 if test "x$ac_cv_type_uint8_t" = xyes; then :
10234 cat >>confdefs.h <<_ACEOF
10235 #define HAVE_UINT8_T 1
10236 _ACEOF
10240 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10241 if test "x$ac_cv_type_uint16_t" = xyes; then :
10243 cat >>confdefs.h <<_ACEOF
10244 #define HAVE_UINT16_T 1
10245 _ACEOF
10249 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10250 if test "x$ac_cv_type_uint32_t" = xyes; then :
10252 cat >>confdefs.h <<_ACEOF
10253 #define HAVE_UINT32_T 1
10254 _ACEOF
10258 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10259 if test "x$ac_cv_type_uint64_t" = xyes; then :
10261 cat >>confdefs.h <<_ACEOF
10262 #define HAVE_UINT64_T 1
10263 _ACEOF
10267 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10268 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10270 cat >>confdefs.h <<_ACEOF
10271 #define HAVE_UINTPTR_T 1
10272 _ACEOF
10278 #########
10279 # Check for needed/wanted headers
10280 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10281 do :
10282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10283 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10285 cat >>confdefs.h <<_ACEOF
10286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10287 _ACEOF
10291 done
10294 #########
10295 # Figure out whether or not we have these functions
10297 for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime malloc_usable_size
10298 do :
10299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10300 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10301 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10302 cat >>confdefs.h <<_ACEOF
10303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10304 _ACEOF
10307 done
10310 #########
10311 # By default, we use the amalgamation (this may be changed below...)
10313 USE_AMALGAMATION=1
10315 #########
10316 # See whether we can run specific tclsh versions known to work well;
10317 # if not, then we fall back to plain tclsh.
10318 # TODO: try other versions before falling back?
10320 for ac_prog in tclsh8.5 tclsh
10322 # Extract the first word of "$ac_prog", so it can be a program name with args.
10323 set dummy $ac_prog; ac_word=$2
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325 $as_echo_n "checking for $ac_word... " >&6; }
10326 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10327 $as_echo_n "(cached) " >&6
10328 else
10329 if test -n "$TCLSH_CMD"; then
10330 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10331 else
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333 for as_dir in $PATH
10335 IFS=$as_save_IFS
10336 test -z "$as_dir" && as_dir=.
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10339 ac_cv_prog_TCLSH_CMD="$ac_prog"
10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10341 break 2
10343 done
10344 done
10345 IFS=$as_save_IFS
10349 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10350 if test -n "$TCLSH_CMD"; then
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10352 $as_echo "$TCLSH_CMD" >&6; }
10353 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355 $as_echo "no" >&6; }
10359 test -n "$TCLSH_CMD" && break
10360 done
10361 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10363 if test "$TCLSH_CMD" = "none"; then
10364 # If we can't find a local tclsh, then building the amalgamation will fail.
10365 # We act as though --disable-amalgamation has been used.
10366 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10367 USE_AMALGAMATION=0
10368 TCLSH_CMD="tclsh"
10373 if test "x${TCLLIBDIR+set}" != "xset" ; then
10374 TCLLIBDIR='$(libdir)'
10375 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10376 TCLLIBDIR=$i
10377 break
10378 done
10379 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10382 #########
10383 # Set up an appropriate program prefix
10385 if test "$program_prefix" = "NONE"; then
10386 program_prefix=""
10390 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10392 $as_echo "$as_me: Version set to $VERSION" >&6;}
10394 RELEASE=`cat $srcdir/VERSION`
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10396 $as_echo "$as_me: Release set to $RELEASE" >&6;}
10398 VERSION_NUMBER=`cat $srcdir/VERSION \
10399 | sed 's/[^0-9]/ /g' \
10400 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
10402 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
10405 #########
10406 # Check to see if the --with-hints=FILE option is used. If there is none,
10407 # then check for a files named "$host.hints" and ../$hosts.hints where
10408 # $host is the hostname of the build system. If still no hints are
10409 # found, try looking in $system.hints and ../$system.hints where
10410 # $system is the result of uname -s.
10413 # Check whether --with-hints was given.
10414 if test "${with_hints+set}" = set; then :
10415 withval=$with_hints; hints=$withval
10418 if test "$hints" = ""; then
10419 host=`hostname | sed 's/\..*//'`
10420 if test -r $host.hints; then
10421 hints=$host.hints
10422 else
10423 if test -r ../$host.hints; then
10424 hints=../$host.hints
10428 if test "$hints" = ""; then
10429 sys=`uname -s`
10430 if test -r $sys.hints; then
10431 hints=$sys.hints
10432 else
10433 if test -r ../$sys.hints; then
10434 hints=../$sys.hints
10438 if test "$hints" != ""; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: reading hints from $hints" >&5
10440 $as_echo "reading hints from $hints" >&6; }
10441 . $hints
10444 #########
10445 # Locate a compiler for the build machine. This compiler should
10446 # generate command-line programs that run on the build machine.
10448 if test x"$cross_compiling" = xno; then
10449 BUILD_CC=$CC
10450 BUILD_CFLAGS=$CFLAGS
10451 else
10452 if test "${BUILD_CC+set}" != set; then
10453 for ac_prog in gcc cc cl
10455 # Extract the first word of "$ac_prog", so it can be a program name with args.
10456 set dummy $ac_prog; ac_word=$2
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10458 $as_echo_n "checking for $ac_word... " >&6; }
10459 if ${ac_cv_prog_BUILD_CC+:} false; then :
10460 $as_echo_n "(cached) " >&6
10461 else
10462 if test -n "$BUILD_CC"; then
10463 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10464 else
10465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466 for as_dir in $PATH
10468 IFS=$as_save_IFS
10469 test -z "$as_dir" && as_dir=.
10470 for ac_exec_ext in '' $ac_executable_extensions; do
10471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10472 ac_cv_prog_BUILD_CC="$ac_prog"
10473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10474 break 2
10476 done
10477 done
10478 IFS=$as_save_IFS
10482 BUILD_CC=$ac_cv_prog_BUILD_CC
10483 if test -n "$BUILD_CC"; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10485 $as_echo "$BUILD_CC" >&6; }
10486 else
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488 $as_echo "no" >&6; }
10492 test -n "$BUILD_CC" && break
10493 done
10496 if test "${BUILD_CFLAGS+set}" != set; then
10497 BUILD_CFLAGS="-g"
10502 ##########
10503 # Do we want to support multithreaded use of sqlite
10505 # Check whether --enable-threadsafe was given.
10506 if test "${enable_threadsafe+set}" = set; then :
10507 enableval=$enable_threadsafe;
10508 else
10509 enable_threadsafe=yes
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10513 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
10514 if test "$enable_threadsafe" = "no"; then
10515 SQLITE_THREADSAFE=0
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10518 else
10519 SQLITE_THREADSAFE=1
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10521 $as_echo "yes" >&6; }
10525 if test "$SQLITE_THREADSAFE" = "1"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10527 $as_echo_n "checking for library containing pthread_create... " >&6; }
10528 if ${ac_cv_search_pthread_create+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 ac_func_search_save_LIBS=$LIBS
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10535 /* Override any GCC internal prototype to avoid an error.
10536 Use char because int might match the return type of a GCC
10537 builtin and then its argument prototype would still apply. */
10538 #ifdef __cplusplus
10539 extern "C"
10540 #endif
10541 char pthread_create ();
10543 main ()
10545 return pthread_create ();
10547 return 0;
10549 _ACEOF
10550 for ac_lib in '' pthread; do
10551 if test -z "$ac_lib"; then
10552 ac_res="none required"
10553 else
10554 ac_res=-l$ac_lib
10555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10557 if ac_fn_c_try_link "$LINENO"; then :
10558 ac_cv_search_pthread_create=$ac_res
10560 rm -f core conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext
10562 if ${ac_cv_search_pthread_create+:} false; then :
10563 break
10565 done
10566 if ${ac_cv_search_pthread_create+:} false; then :
10568 else
10569 ac_cv_search_pthread_create=no
10571 rm conftest.$ac_ext
10572 LIBS=$ac_func_search_save_LIBS
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10575 $as_echo "$ac_cv_search_pthread_create" >&6; }
10576 ac_res=$ac_cv_search_pthread_create
10577 if test "$ac_res" != no; then :
10578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10584 ##########
10585 # Which crypto library do we use
10588 # Check whether --with-crypto-lib was given.
10589 if test "${with_crypto_lib+set}" = set; then :
10590 withval=$with_crypto_lib; crypto_lib=$withval
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
10594 $as_echo_n "checking for crypto library to use... " >&6; }
10595 if test "$crypto_lib" = "none"; then
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10597 $as_echo "none" >&6; }
10598 else
10599 if test "$crypto_lib" = "commoncrypto"; then
10600 CFLAGS+=" -DSQLCIPHER_CRYPTO_CC"
10601 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_CC"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
10603 $as_echo "commoncrypto" >&6; }
10604 else
10605 if test "$crypto_lib" = "libtomcrypt"; then
10606 CFLAGS+=" -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
10607 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
10609 $as_echo "libtomcrypt" >&6; }
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
10611 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
10612 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
10613 $as_echo_n "(cached) " >&6
10614 else
10615 ac_check_lib_save_LIBS=$LIBS
10616 LIBS="-ltomcrypt $LIBS"
10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h. */
10620 /* Override any GCC internal prototype to avoid an error.
10621 Use char because int might match the return type of a GCC
10622 builtin and then its argument prototype would still apply. */
10623 #ifdef __cplusplus
10624 extern "C"
10625 #endif
10626 char register_cipher ();
10628 main ()
10630 return register_cipher ();
10632 return 0;
10634 _ACEOF
10635 if ac_fn_c_try_link "$LINENO"; then :
10636 ac_cv_lib_tomcrypt_register_cipher=yes
10637 else
10638 ac_cv_lib_tomcrypt_register_cipher=no
10640 rm -f core conftest.err conftest.$ac_objext \
10641 conftest$ac_exeext conftest.$ac_ext
10642 LIBS=$ac_check_lib_save_LIBS
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
10645 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
10646 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
10647 cat >>confdefs.h <<_ACEOF
10648 #define HAVE_LIBTOMCRYPT 1
10649 _ACEOF
10651 LIBS="-ltomcrypt $LIBS"
10653 else
10654 as_fn_error $? "Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
10657 else
10658 CFLAGS+=" -DSQLCIPHER_CRYPTO_OPENSSL"
10659 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_OPENSSL"
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
10661 $as_echo "openssl" >&6; }
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
10663 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
10664 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 ac_check_lib_save_LIBS=$LIBS
10668 LIBS="-lcrypto $LIBS"
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 char HMAC_Init_ex ();
10680 main ()
10682 return HMAC_Init_ex ();
10684 return 0;
10686 _ACEOF
10687 if ac_fn_c_try_link "$LINENO"; then :
10688 ac_cv_lib_crypto_HMAC_Init_ex=yes
10689 else
10690 ac_cv_lib_crypto_HMAC_Init_ex=no
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
10697 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
10698 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
10699 cat >>confdefs.h <<_ACEOF
10700 #define HAVE_LIBCRYPTO 1
10701 _ACEOF
10703 LIBS="-lcrypto $LIBS"
10705 else
10706 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
10713 ##########
10714 # Do we want to allow a connection created in one thread to be used
10715 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
10716 # due to bugs in the threading implementations. This is thus off by default.
10718 # Check whether --enable-cross-thread-connections was given.
10719 if test "${enable_cross_thread_connections+set}" = set; then :
10720 enableval=$enable_cross_thread_connections;
10721 else
10722 enable_xthreadconnect=no
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
10726 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
10727 if test "$enable_xthreadconnect" = "no"; then
10728 XTHREADCONNECT=''
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10731 else
10732 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734 $as_echo "yes" >&6; }
10738 ##########
10739 # Do we want to support release
10741 # Check whether --enable-releasemode was given.
10742 if test "${enable_releasemode+set}" = set; then :
10743 enableval=$enable_releasemode;
10744 else
10745 enable_releasemode=no
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10749 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10750 if test "$enable_releasemode" = "no"; then
10751 ALLOWRELEASE=""
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753 $as_echo "no" >&6; }
10754 else
10755 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10757 $as_echo "yes" >&6; }
10761 ##########
10762 # Do we want temporary databases in memory
10764 # Check whether --enable-tempstore was given.
10765 if test "${enable_tempstore+set}" = set; then :
10766 enableval=$enable_tempstore;
10767 else
10768 enable_tempstore=no
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10772 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10773 case "$enable_tempstore" in
10774 never )
10775 TEMP_STORE=0
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10777 $as_echo "never" >&6; }
10779 no )
10780 TEMP_STORE=1
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; }
10784 yes )
10785 TEMP_STORE=2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10787 $as_echo "yes" >&6; }
10789 always )
10790 TEMP_STORE=3
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10792 $as_echo "always" >&6; }
10795 TEMP_STORE=1
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; }
10799 esac
10803 ###########
10804 # Lots of things are different if we are compiling for Windows using
10805 # the CYGWIN environment. So check for that special case and handle
10806 # things accordingly.
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10809 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
10810 if test "$config_BUILD_EXEEXT" = ".exe"; then
10811 CYGWIN=yes
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10813 $as_echo "yes" >&6; }
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10816 $as_echo "unknown" >&6; }
10818 if test "$CYGWIN" != "yes"; then
10820 case $host_os in
10821 *cygwin* ) CYGWIN=yes;;
10822 * ) CYGWIN=no;;
10823 esac
10826 if test "$CYGWIN" = "yes"; then
10827 BUILD_EXEEXT=.exe
10828 else
10829 BUILD_EXEEXT=$EXEEXT
10831 if test x"$cross_compiling" = xno; then
10832 TARGET_EXEEXT=$BUILD_EXEEXT
10833 else
10834 TARGET_EXEEXT=$config_TARGET_EXEEXT
10836 if test "$TARGET_EXEEXT" = ".exe"; then
10837 if test $OS2_SHELL ; then
10838 SQLITE_OS_UNIX=0
10839 SQLITE_OS_WIN=0
10840 SQLITE_OS_OS2=1
10841 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
10842 else
10843 SQLITE_OS_UNIX=0
10844 SQLITE_OS_WIN=1
10845 SQLITE_OS_OS2=0
10846 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10848 else
10849 SQLITE_OS_UNIX=1
10850 SQLITE_OS_WIN=0
10851 SQLITE_OS_OS2=0
10852 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10861 ##########
10862 # Figure out all the parameters needed to compile against Tcl.
10864 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10865 # macros in the in the tcl.m4 file of the standard TCL distribution.
10866 # Those macros could not be used directly since we have to make some
10867 # minor changes to accomodate systems that do not have TCL installed.
10869 # Check whether --enable-tcl was given.
10870 if test "${enable_tcl+set}" = set; then :
10871 enableval=$enable_tcl; use_tcl=$enableval
10872 else
10873 use_tcl=yes
10876 if test "${use_tcl}" = "yes" ; then
10878 # Check whether --with-tcl was given.
10879 if test "${with_tcl+set}" = set; then :
10880 withval=$with_tcl; with_tclconfig=${withval}
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10884 $as_echo_n "checking for Tcl configuration... " >&6; }
10885 if ${ac_cv_c_tclconfig+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10889 # First check to see if --with-tcl was specified.
10890 if test x"${with_tclconfig}" != x ; then
10891 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10892 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10893 else
10894 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10898 # Start autosearch by asking tclsh
10899 if test x"${ac_cv_c_tclconfig}" = x ; then
10900 if test x"$cross_compiling" = xno; then
10901 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10903 if test -f "$i/tclConfig.sh" ; then
10904 ac_cv_c_tclconfig="$i"
10905 break
10907 done
10911 # then check for a private Tcl installation
10912 if test x"${ac_cv_c_tclconfig}" = x ; then
10913 for i in \
10914 ../tcl \
10915 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10916 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10917 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10918 ../../tcl \
10919 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10920 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10921 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10922 ../../../tcl \
10923 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10924 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10925 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10927 if test -f "$i/unix/tclConfig.sh" ; then
10928 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10929 break
10931 done
10934 # check in a few common install locations
10935 if test x"${ac_cv_c_tclconfig}" = x ; then
10936 for i in \
10937 `ls -d ${libdir} 2>/dev/null` \
10938 `ls -d /usr/local/lib 2>/dev/null` \
10939 `ls -d /usr/contrib/lib 2>/dev/null` \
10940 `ls -d /usr/lib 2>/dev/null`
10942 if test -f "$i/tclConfig.sh" ; then
10943 ac_cv_c_tclconfig=`(cd $i; pwd)`
10944 break
10946 done
10949 # check in a few other private locations
10950 if test x"${ac_cv_c_tclconfig}" = x ; then
10951 for i in \
10952 ${srcdir}/../tcl \
10953 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10954 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10955 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10957 if test -f "$i/unix/tclConfig.sh" ; then
10958 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10959 break
10961 done
10967 if test x"${ac_cv_c_tclconfig}" = x ; then
10968 use_tcl=no
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10970 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10972 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10974 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10975 else
10976 TCL_BIN_DIR=${ac_cv_c_tclconfig}
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10978 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10981 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10982 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10984 $as_echo "loading" >&6; }
10985 . $TCL_BIN_DIR/tclConfig.sh
10986 else
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10988 $as_echo "file not found" >&6; }
10992 # If the TCL_BIN_DIR is the build directory (not the install directory),
10993 # then set the common variable name to the value of the build variables.
10994 # For example, the variable TCL_LIB_SPEC will be set to the value
10995 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10996 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10997 # installed and uninstalled version of Tcl.
11000 if test -f $TCL_BIN_DIR/Makefile ; then
11001 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
11002 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
11003 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
11007 # eval is required to do the TCL_DBGX substitution
11010 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
11011 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
11012 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
11014 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
11015 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
11016 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
11032 if test "${use_tcl}" = "no" ; then
11033 HAVE_TCL=""
11034 else
11035 HAVE_TCL=1
11039 ##########
11040 # Figure out what C libraries are required to compile programs
11041 # that use "readline()" library.
11043 TARGET_READLINE_LIBS=""
11044 TARGET_READLINE_INC=""
11045 TARGET_HAVE_READLINE=0
11046 # Check whether --enable-readline was given.
11047 if test "${enable_readline+set}" = set; then :
11048 enableval=$enable_readline; with_readline=$enableval
11049 else
11050 with_readline=auto
11054 if test x"$with_readline" != xno; then
11055 found="yes"
11058 # Check whether --with-readline-lib was given.
11059 if test "${with_readline_lib+set}" = set; then :
11060 withval=$with_readline_lib; with_readline_lib=$withval
11061 else
11062 with_readline_lib="auto"
11065 if test "x$with_readline_lib" = xauto; then
11066 save_LIBS="$LIBS"
11067 LIBS=""
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
11069 $as_echo_n "checking for library containing tgetent... " >&6; }
11070 if ${ac_cv_search_tgetent+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 ac_func_search_save_LIBS=$LIBS
11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11077 /* Override any GCC internal prototype to avoid an error.
11078 Use char because int might match the return type of a GCC
11079 builtin and then its argument prototype would still apply. */
11080 #ifdef __cplusplus
11081 extern "C"
11082 #endif
11083 char tgetent ();
11085 main ()
11087 return tgetent ();
11089 return 0;
11091 _ACEOF
11092 for ac_lib in '' readline ncurses curses termcap; do
11093 if test -z "$ac_lib"; then
11094 ac_res="none required"
11095 else
11096 ac_res=-l$ac_lib
11097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11099 if ac_fn_c_try_link "$LINENO"; then :
11100 ac_cv_search_tgetent=$ac_res
11102 rm -f core conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext
11104 if ${ac_cv_search_tgetent+:} false; then :
11105 break
11107 done
11108 if ${ac_cv_search_tgetent+:} false; then :
11110 else
11111 ac_cv_search_tgetent=no
11113 rm conftest.$ac_ext
11114 LIBS=$ac_func_search_save_LIBS
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11117 $as_echo "$ac_cv_search_tgetent" >&6; }
11118 ac_res=$ac_cv_search_tgetent
11119 if test "$ac_res" != no; then :
11120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11121 term_LIBS="$LIBS"
11122 else
11123 term_LIBS=""
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11127 $as_echo_n "checking for readline in -lreadline... " >&6; }
11128 if ${ac_cv_lib_readline_readline+:} false; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 ac_check_lib_save_LIBS=$LIBS
11132 LIBS="-lreadline $LIBS"
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11139 #ifdef __cplusplus
11140 extern "C"
11141 #endif
11142 char readline ();
11144 main ()
11146 return readline ();
11148 return 0;
11150 _ACEOF
11151 if ac_fn_c_try_link "$LINENO"; then :
11152 ac_cv_lib_readline_readline=yes
11153 else
11154 ac_cv_lib_readline_readline=no
11156 rm -f core conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11161 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11162 if test "x$ac_cv_lib_readline_readline" = xyes; then :
11163 TARGET_READLINE_LIBS="-lreadline"
11164 else
11165 found="no"
11168 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11169 LIBS="$save_LIBS"
11170 else
11171 TARGET_READLINE_LIBS="$with_readline_lib"
11175 # Check whether --with-readline-inc was given.
11176 if test "${with_readline_inc+set}" = set; then :
11177 withval=$with_readline_inc; with_readline_inc=$withval
11178 else
11179 with_readline_inc="auto"
11182 if test "x$with_readline_inc" = xauto; then
11183 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11184 if test "x$ac_cv_header_readline_h" = xyes; then :
11185 found="yes"
11186 else
11188 found="no"
11189 if test "$cross_compiling" != yes; then
11190 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11191 for subdir in include include/readline; do
11192 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11194 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11195 if eval \${$as_ac_File+:} false; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 test "$cross_compiling" = yes &&
11199 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11200 if test -r "$dir/$subdir/readline.h"; then
11201 eval "$as_ac_File=yes"
11202 else
11203 eval "$as_ac_File=no"
11206 eval ac_res=\$$as_ac_File
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11208 $as_echo "$ac_res" >&6; }
11209 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11210 found=yes
11213 if test "$found" = "yes"; then
11214 TARGET_READLINE_INC="-I$dir/$subdir"
11215 break
11217 done
11218 test "$found" = "yes" && break
11219 done
11225 else
11226 TARGET_READLINE_INC="$with_readline_inc"
11229 if test x"$found" = xno; then
11230 TARGET_READLINE_LIBS=""
11231 TARGET_READLINE_INC=""
11232 TARGET_HAVE_READLINE=0
11233 else
11234 TARGET_HAVE_READLINE=1
11242 ##########
11243 # Figure out what C libraries are required to compile programs
11244 # that use "fdatasync()" function.
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11247 $as_echo_n "checking for library containing fdatasync... " >&6; }
11248 if ${ac_cv_search_fdatasync+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 ac_func_search_save_LIBS=$LIBS
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11255 /* Override any GCC internal prototype to avoid an error.
11256 Use char because int might match the return type of a GCC
11257 builtin and then its argument prototype would still apply. */
11258 #ifdef __cplusplus
11259 extern "C"
11260 #endif
11261 char fdatasync ();
11263 main ()
11265 return fdatasync ();
11267 return 0;
11269 _ACEOF
11270 for ac_lib in '' rt; do
11271 if test -z "$ac_lib"; then
11272 ac_res="none required"
11273 else
11274 ac_res=-l$ac_lib
11275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11277 if ac_fn_c_try_link "$LINENO"; then :
11278 ac_cv_search_fdatasync=$ac_res
11280 rm -f core conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext
11282 if ${ac_cv_search_fdatasync+:} false; then :
11283 break
11285 done
11286 if ${ac_cv_search_fdatasync+:} false; then :
11288 else
11289 ac_cv_search_fdatasync=no
11291 rm conftest.$ac_ext
11292 LIBS=$ac_func_search_save_LIBS
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11295 $as_echo "$ac_cv_search_fdatasync" >&6; }
11296 ac_res=$ac_cv_search_fdatasync
11297 if test "$ac_res" != no; then :
11298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11303 #########
11304 # check for debug enabled
11305 # Check whether --enable-debug was given.
11306 if test "${enable_debug+set}" = set; then :
11307 enableval=$enable_debug; use_debug=$enableval
11308 else
11309 use_debug=no
11312 if test "${use_debug}" = "yes" ; then
11313 TARGET_DEBUG="-DSQLITE_DEBUG=1"
11314 else
11315 TARGET_DEBUG="-DNDEBUG"
11319 #########
11320 # See whether we should use the amalgamation to build
11321 # Check whether --enable-amalgamation was given.
11322 if test "${enable_amalgamation+set}" = set; then :
11323 enableval=$enable_amalgamation; use_amalgamation=$enableval
11324 else
11325 use_amalgamation=yes
11328 if test "${use_amalgamation}" != "yes" ; then
11329 USE_AMALGAMATION=0
11333 #########
11334 # See whether we should allow loadable extensions
11335 # Check whether --enable-load-extension was given.
11336 if test "${enable_load_extension+set}" = set; then :
11337 enableval=$enable_load_extension; use_loadextension=$enableval
11338 else
11339 use_loadextension=no
11342 if test "${use_loadextension}" = "yes" ; then
11343 OPT_FEATURE_FLAGS=""
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11345 $as_echo_n "checking for library containing dlopen... " >&6; }
11346 if ${ac_cv_search_dlopen+:} false; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 ac_func_search_save_LIBS=$LIBS
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11353 /* Override any GCC internal prototype to avoid an error.
11354 Use char because int might match the return type of a GCC
11355 builtin and then its argument prototype would still apply. */
11356 #ifdef __cplusplus
11357 extern "C"
11358 #endif
11359 char dlopen ();
11361 main ()
11363 return dlopen ();
11365 return 0;
11367 _ACEOF
11368 for ac_lib in '' dl; do
11369 if test -z "$ac_lib"; then
11370 ac_res="none required"
11371 else
11372 ac_res=-l$ac_lib
11373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11375 if ac_fn_c_try_link "$LINENO"; then :
11376 ac_cv_search_dlopen=$ac_res
11378 rm -f core conftest.err conftest.$ac_objext \
11379 conftest$ac_exeext
11380 if ${ac_cv_search_dlopen+:} false; then :
11381 break
11383 done
11384 if ${ac_cv_search_dlopen+:} false; then :
11386 else
11387 ac_cv_search_dlopen=no
11389 rm conftest.$ac_ext
11390 LIBS=$ac_func_search_save_LIBS
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11393 $as_echo "$ac_cv_search_dlopen" >&6; }
11394 ac_res=$ac_cv_search_dlopen
11395 if test "$ac_res" != no; then :
11396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11400 else
11401 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11404 #########
11405 # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
11406 for option in $CFLAGS $CPPFLAGS
11408 case $option in
11409 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11410 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11411 esac
11412 done
11416 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11417 ac_temp_CFLAGS=""
11418 for option in $CFLAGS
11420 case $option in
11421 -DSQLITE_OMIT*) ;;
11422 -DSQLITE_ENABLE*) ;;
11423 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11424 esac
11425 done
11426 CFLAGS=$ac_temp_CFLAGS
11429 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11430 ac_temp_CPPFLAGS=""
11431 for option in $CPPFLAGS
11433 case $option in
11434 -DSQLITE_OMIT*) ;;
11435 -DSQLITE_ENABLE*) ;;
11436 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11437 esac
11438 done
11439 CPPFLAGS=$ac_temp_CPPFLAGS
11442 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11443 ac_temp_BUILD_CFLAGS=""
11444 for option in $BUILD_CFLAGS
11446 case $option in
11447 -DSQLITE_OMIT*) ;;
11448 -DSQLITE_ENABLE*) ;;
11449 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11450 esac
11451 done
11452 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11455 #########
11456 # See whether we should use GCOV
11457 # Check whether --enable-gcov was given.
11458 if test "${enable_gcov+set}" = set; then :
11459 enableval=$enable_gcov; use_gcov=$enableval
11460 else
11461 use_gcov=no
11464 if test "${use_gcov}" = "yes" ; then
11465 USE_GCOV=1
11466 else
11467 USE_GCOV=0
11472 #########
11473 # Output the config header
11474 ac_config_headers="$ac_config_headers config.h"
11477 #########
11478 # Generate the output files.
11481 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
11483 cat >confcache <<\_ACEOF
11484 # This file is a shell script that caches the results of configure
11485 # tests run on this system so they can be shared between configure
11486 # scripts and configure runs, see configure's option --config-cache.
11487 # It is not useful on other systems. If it contains results you don't
11488 # want to keep, you may remove or edit it.
11490 # config.status only pays attention to the cache file if you give it
11491 # the --recheck option to rerun configure.
11493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11495 # following values.
11497 _ACEOF
11499 # The following way of writing the cache mishandles newlines in values,
11500 # but we know of no workaround that is simple, portable, and efficient.
11501 # So, we kill variables containing newlines.
11502 # Ultrix sh set writes to stderr and can't be redirected directly,
11503 # and sets the high bit in the cache file unless we assign to the vars.
11505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11506 eval ac_val=\$$ac_var
11507 case $ac_val in #(
11508 *${as_nl}*)
11509 case $ac_var in #(
11510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11511 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11512 esac
11513 case $ac_var in #(
11514 _ | IFS | as_nl) ;; #(
11515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11516 *) { eval $ac_var=; unset $ac_var;} ;;
11517 esac ;;
11518 esac
11519 done
11521 (set) 2>&1 |
11522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11523 *${as_nl}ac_space=\ *)
11524 # `set' does not quote correctly, so add quotes: double-quote
11525 # substitution turns \\\\ into \\, and sed turns \\ into \.
11526 sed -n \
11527 "s/'/'\\\\''/g;
11528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11529 ;; #(
11531 # `set' quotes correctly as required by POSIX, so do not add quotes.
11532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11534 esac |
11535 sort
11537 sed '
11538 /^ac_cv_env_/b end
11539 t clear
11540 :clear
11541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11542 t end
11543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11544 :end' >>confcache
11545 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11546 if test -w "$cache_file"; then
11547 if test "x$cache_file" != "x/dev/null"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11549 $as_echo "$as_me: updating cache $cache_file" >&6;}
11550 if test ! -f "$cache_file" || test -h "$cache_file"; then
11551 cat confcache >"$cache_file"
11552 else
11553 case $cache_file in #(
11554 */* | ?:*)
11555 mv -f confcache "$cache_file"$$ &&
11556 mv -f "$cache_file"$$ "$cache_file" ;; #(
11558 mv -f confcache "$cache_file" ;;
11559 esac
11562 else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11564 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11567 rm -f confcache
11569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11570 # Let make expand exec_prefix.
11571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11573 DEFS=-DHAVE_CONFIG_H
11575 ac_libobjs=
11576 ac_ltlibobjs=
11578 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11579 # 1. Remove the extension, and $U if already installed.
11580 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11581 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11582 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11583 # will be set to the directory where LIBOBJS objects are built.
11584 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11585 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11586 done
11587 LIBOBJS=$ac_libobjs
11589 LTLIBOBJS=$ac_ltlibobjs
11593 : "${CONFIG_STATUS=./config.status}"
11594 ac_write_fail=0
11595 ac_clean_files_save=$ac_clean_files
11596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11598 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11599 as_write_fail=0
11600 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11601 #! $SHELL
11602 # Generated by $as_me.
11603 # Run this file to recreate the current configuration.
11604 # Compiler output produced by configure, useful for debugging
11605 # configure, is in config.log if it exists.
11607 debug=false
11608 ac_cs_recheck=false
11609 ac_cs_silent=false
11611 SHELL=\${CONFIG_SHELL-$SHELL}
11612 export SHELL
11613 _ASEOF
11614 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11615 ## -------------------- ##
11616 ## M4sh Initialization. ##
11617 ## -------------------- ##
11619 # Be more Bourne compatible
11620 DUALCASE=1; export DUALCASE # for MKS sh
11621 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11622 emulate sh
11623 NULLCMD=:
11624 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11625 # is contrary to our usage. Disable this feature.
11626 alias -g '${1+"$@"}'='"$@"'
11627 setopt NO_GLOB_SUBST
11628 else
11629 case `(set -o) 2>/dev/null` in #(
11630 *posix*) :
11631 set -o posix ;; #(
11632 *) :
11634 esac
11638 as_nl='
11640 export as_nl
11641 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11642 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11643 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11644 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11645 # Prefer a ksh shell builtin over an external printf program on Solaris,
11646 # but without wasting forks for bash or zsh.
11647 if test -z "$BASH_VERSION$ZSH_VERSION" \
11648 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11649 as_echo='print -r --'
11650 as_echo_n='print -rn --'
11651 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11652 as_echo='printf %s\n'
11653 as_echo_n='printf %s'
11654 else
11655 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11656 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11657 as_echo_n='/usr/ucb/echo -n'
11658 else
11659 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11660 as_echo_n_body='eval
11661 arg=$1;
11662 case $arg in #(
11663 *"$as_nl"*)
11664 expr "X$arg" : "X\\(.*\\)$as_nl";
11665 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11666 esac;
11667 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11669 export as_echo_n_body
11670 as_echo_n='sh -c $as_echo_n_body as_echo'
11672 export as_echo_body
11673 as_echo='sh -c $as_echo_body as_echo'
11676 # The user is always right.
11677 if test "${PATH_SEPARATOR+set}" != set; then
11678 PATH_SEPARATOR=:
11679 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11680 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11681 PATH_SEPARATOR=';'
11686 # IFS
11687 # We need space, tab and new line, in precisely that order. Quoting is
11688 # there to prevent editors from complaining about space-tab.
11689 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11690 # splitting by setting IFS to empty value.)
11691 IFS=" "" $as_nl"
11693 # Find who we are. Look in the path if we contain no directory separator.
11694 as_myself=
11695 case $0 in #((
11696 *[\\/]* ) as_myself=$0 ;;
11697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11703 done
11704 IFS=$as_save_IFS
11707 esac
11708 # We did not find ourselves, most probably we were run as `sh COMMAND'
11709 # in which case we are not to be found in the path.
11710 if test "x$as_myself" = x; then
11711 as_myself=$0
11713 if test ! -f "$as_myself"; then
11714 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11715 exit 1
11718 # Unset variables that we do not need and which cause bugs (e.g. in
11719 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11720 # suppresses any "Segmentation fault" message there. '((' could
11721 # trigger a bug in pdksh 5.2.14.
11722 for as_var in BASH_ENV ENV MAIL MAILPATH
11723 do eval test x\${$as_var+set} = xset \
11724 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11725 done
11726 PS1='$ '
11727 PS2='> '
11728 PS4='+ '
11730 # NLS nuisances.
11731 LC_ALL=C
11732 export LC_ALL
11733 LANGUAGE=C
11734 export LANGUAGE
11736 # CDPATH.
11737 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11740 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11741 # ----------------------------------------
11742 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11743 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11744 # script with STATUS, using 1 if that was 0.
11745 as_fn_error ()
11747 as_status=$1; test $as_status -eq 0 && as_status=1
11748 if test "$4"; then
11749 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11750 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11752 $as_echo "$as_me: error: $2" >&2
11753 as_fn_exit $as_status
11754 } # as_fn_error
11757 # as_fn_set_status STATUS
11758 # -----------------------
11759 # Set $? to STATUS, without forking.
11760 as_fn_set_status ()
11762 return $1
11763 } # as_fn_set_status
11765 # as_fn_exit STATUS
11766 # -----------------
11767 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11768 as_fn_exit ()
11770 set +e
11771 as_fn_set_status $1
11772 exit $1
11773 } # as_fn_exit
11775 # as_fn_unset VAR
11776 # ---------------
11777 # Portably unset VAR.
11778 as_fn_unset ()
11780 { eval $1=; unset $1;}
11782 as_unset=as_fn_unset
11783 # as_fn_append VAR VALUE
11784 # ----------------------
11785 # Append the text in VALUE to the end of the definition contained in VAR. Take
11786 # advantage of any shell optimizations that allow amortized linear growth over
11787 # repeated appends, instead of the typical quadratic growth present in naive
11788 # implementations.
11789 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11790 eval 'as_fn_append ()
11792 eval $1+=\$2
11794 else
11795 as_fn_append ()
11797 eval $1=\$$1\$2
11799 fi # as_fn_append
11801 # as_fn_arith ARG...
11802 # ------------------
11803 # Perform arithmetic evaluation on the ARGs, and store the result in the
11804 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11805 # must be portable across $(()) and expr.
11806 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11807 eval 'as_fn_arith ()
11809 as_val=$(( $* ))
11811 else
11812 as_fn_arith ()
11814 as_val=`expr "$@" || test $? -eq 1`
11816 fi # as_fn_arith
11819 if expr a : '\(a\)' >/dev/null 2>&1 &&
11820 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11821 as_expr=expr
11822 else
11823 as_expr=false
11826 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11827 as_basename=basename
11828 else
11829 as_basename=false
11832 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11833 as_dirname=dirname
11834 else
11835 as_dirname=false
11838 as_me=`$as_basename -- "$0" ||
11839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11840 X"$0" : 'X\(//\)$' \| \
11841 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11842 $as_echo X/"$0" |
11843 sed '/^.*\/\([^/][^/]*\)\/*$/{
11844 s//\1/
11847 /^X\/\(\/\/\)$/{
11848 s//\1/
11851 /^X\/\(\/\).*/{
11852 s//\1/
11855 s/.*/./; q'`
11857 # Avoid depending upon Character Ranges.
11858 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11859 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11860 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11861 as_cr_digits='0123456789'
11862 as_cr_alnum=$as_cr_Letters$as_cr_digits
11864 ECHO_C= ECHO_N= ECHO_T=
11865 case `echo -n x` in #(((((
11866 -n*)
11867 case `echo 'xy\c'` in
11868 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11869 xy) ECHO_C='\c';;
11870 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11871 ECHO_T=' ';;
11872 esac;;
11874 ECHO_N='-n';;
11875 esac
11877 rm -f conf$$ conf$$.exe conf$$.file
11878 if test -d conf$$.dir; then
11879 rm -f conf$$.dir/conf$$.file
11880 else
11881 rm -f conf$$.dir
11882 mkdir conf$$.dir 2>/dev/null
11884 if (echo >conf$$.file) 2>/dev/null; then
11885 if ln -s conf$$.file conf$$ 2>/dev/null; then
11886 as_ln_s='ln -s'
11887 # ... but there are two gotchas:
11888 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11889 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11890 # In both cases, we have to default to `cp -p'.
11891 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11892 as_ln_s='cp -p'
11893 elif ln conf$$.file conf$$ 2>/dev/null; then
11894 as_ln_s=ln
11895 else
11896 as_ln_s='cp -p'
11898 else
11899 as_ln_s='cp -p'
11901 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11902 rmdir conf$$.dir 2>/dev/null
11905 # as_fn_mkdir_p
11906 # -------------
11907 # Create "$as_dir" as a directory, including parents if necessary.
11908 as_fn_mkdir_p ()
11911 case $as_dir in #(
11912 -*) as_dir=./$as_dir;;
11913 esac
11914 test -d "$as_dir" || eval $as_mkdir_p || {
11915 as_dirs=
11916 while :; do
11917 case $as_dir in #(
11918 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11919 *) as_qdir=$as_dir;;
11920 esac
11921 as_dirs="'$as_qdir' $as_dirs"
11922 as_dir=`$as_dirname -- "$as_dir" ||
11923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11924 X"$as_dir" : 'X\(//\)[^/]' \| \
11925 X"$as_dir" : 'X\(//\)$' \| \
11926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11927 $as_echo X"$as_dir" |
11928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11929 s//\1/
11932 /^X\(\/\/\)[^/].*/{
11933 s//\1/
11936 /^X\(\/\/\)$/{
11937 s//\1/
11940 /^X\(\/\).*/{
11941 s//\1/
11944 s/.*/./; q'`
11945 test -d "$as_dir" && break
11946 done
11947 test -z "$as_dirs" || eval "mkdir $as_dirs"
11948 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11951 } # as_fn_mkdir_p
11952 if mkdir -p . 2>/dev/null; then
11953 as_mkdir_p='mkdir -p "$as_dir"'
11954 else
11955 test -d ./-p && rmdir ./-p
11956 as_mkdir_p=false
11959 if test -x / >/dev/null 2>&1; then
11960 as_test_x='test -x'
11961 else
11962 if ls -dL / >/dev/null 2>&1; then
11963 as_ls_L_option=L
11964 else
11965 as_ls_L_option=
11967 as_test_x='
11968 eval sh -c '\''
11969 if test -d "$1"; then
11970 test -d "$1/.";
11971 else
11972 case $1 in #(
11973 -*)set "./$1";;
11974 esac;
11975 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11976 ???[sx]*):;;*)false;;esac;fi
11977 '\'' sh
11980 as_executable_p=$as_test_x
11982 # Sed expression to map a string onto a valid CPP name.
11983 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11985 # Sed expression to map a string onto a valid variable name.
11986 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11989 exec 6>&1
11990 ## ----------------------------------- ##
11991 ## Main body of $CONFIG_STATUS script. ##
11992 ## ----------------------------------- ##
11993 _ASEOF
11994 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11997 # Save the log message, to keep $0 and so on meaningful, and to
11998 # report actual input values of CONFIG_FILES etc. instead of their
11999 # values after options handling.
12000 ac_log="
12001 This file was extended by sqlcipher $as_me 3.7.17, which was
12002 generated by GNU Autoconf 2.68. Invocation command line was
12004 CONFIG_FILES = $CONFIG_FILES
12005 CONFIG_HEADERS = $CONFIG_HEADERS
12006 CONFIG_LINKS = $CONFIG_LINKS
12007 CONFIG_COMMANDS = $CONFIG_COMMANDS
12008 $ $0 $@
12010 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12013 _ACEOF
12015 case $ac_config_files in *"
12016 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12017 esac
12019 case $ac_config_headers in *"
12020 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12021 esac
12024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12025 # Files that config.status was made for.
12026 config_files="$ac_config_files"
12027 config_headers="$ac_config_headers"
12028 config_commands="$ac_config_commands"
12030 _ACEOF
12032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12033 ac_cs_usage="\
12034 \`$as_me' instantiates files and other configuration actions
12035 from templates according to the current configuration. Unless the files
12036 and actions are specified as TAGs, all are instantiated by default.
12038 Usage: $0 [OPTION]... [TAG]...
12040 -h, --help print this help, then exit
12041 -V, --version print version number and configuration settings, then exit
12042 --config print configuration, then exit
12043 -q, --quiet, --silent
12044 do not print progress messages
12045 -d, --debug don't remove temporary files
12046 --recheck update $as_me by reconfiguring in the same conditions
12047 --file=FILE[:TEMPLATE]
12048 instantiate the configuration file FILE
12049 --header=FILE[:TEMPLATE]
12050 instantiate the configuration header FILE
12052 Configuration files:
12053 $config_files
12055 Configuration headers:
12056 $config_headers
12058 Configuration commands:
12059 $config_commands
12061 Report bugs to the package provider."
12063 _ACEOF
12064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12065 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12066 ac_cs_version="\\
12067 sqlcipher config.status 3.7.17
12068 configured by $0, generated by GNU Autoconf 2.68,
12069 with options \\"\$ac_cs_config\\"
12071 Copyright (C) 2010 Free Software Foundation, Inc.
12072 This config.status script is free software; the Free Software Foundation
12073 gives unlimited permission to copy, distribute and modify it."
12075 ac_pwd='$ac_pwd'
12076 srcdir='$srcdir'
12077 INSTALL='$INSTALL'
12078 AWK='$AWK'
12079 test -n "\$AWK" || AWK=awk
12080 _ACEOF
12082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12083 # The default lists apply if the user does not specify any file.
12084 ac_need_defaults=:
12085 while test $# != 0
12087 case $1 in
12088 --*=?*)
12089 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12090 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12091 ac_shift=:
12093 --*=)
12094 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12095 ac_optarg=
12096 ac_shift=:
12099 ac_option=$1
12100 ac_optarg=$2
12101 ac_shift=shift
12103 esac
12105 case $ac_option in
12106 # Handling of the options.
12107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12108 ac_cs_recheck=: ;;
12109 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12110 $as_echo "$ac_cs_version"; exit ;;
12111 --config | --confi | --conf | --con | --co | --c )
12112 $as_echo "$ac_cs_config"; exit ;;
12113 --debug | --debu | --deb | --de | --d | -d )
12114 debug=: ;;
12115 --file | --fil | --fi | --f )
12116 $ac_shift
12117 case $ac_optarg in
12118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12119 '') as_fn_error $? "missing file argument" ;;
12120 esac
12121 as_fn_append CONFIG_FILES " '$ac_optarg'"
12122 ac_need_defaults=false;;
12123 --header | --heade | --head | --hea )
12124 $ac_shift
12125 case $ac_optarg in
12126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12127 esac
12128 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12129 ac_need_defaults=false;;
12130 --he | --h)
12131 # Conflict between --help and --header
12132 as_fn_error $? "ambiguous option: \`$1'
12133 Try \`$0 --help' for more information.";;
12134 --help | --hel | -h )
12135 $as_echo "$ac_cs_usage"; exit ;;
12136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12137 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12138 ac_cs_silent=: ;;
12140 # This is an error.
12141 -*) as_fn_error $? "unrecognized option: \`$1'
12142 Try \`$0 --help' for more information." ;;
12144 *) as_fn_append ac_config_targets " $1"
12145 ac_need_defaults=false ;;
12147 esac
12148 shift
12149 done
12151 ac_configure_extra_args=
12153 if $ac_cs_silent; then
12154 exec 6>/dev/null
12155 ac_configure_extra_args="$ac_configure_extra_args --silent"
12158 _ACEOF
12159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12160 if \$ac_cs_recheck; then
12161 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12162 shift
12163 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12164 CONFIG_SHELL='$SHELL'
12165 export CONFIG_SHELL
12166 exec "\$@"
12169 _ACEOF
12170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12171 exec 5>>config.log
12173 echo
12174 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12175 ## Running $as_me. ##
12176 _ASBOX
12177 $as_echo "$ac_log"
12178 } >&5
12180 _ACEOF
12181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12183 # INIT-COMMANDS
12187 # The HP-UX ksh and POSIX shell print the target directory to stdout
12188 # if CDPATH is set.
12189 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12191 sed_quote_subst='$sed_quote_subst'
12192 double_quote_subst='$double_quote_subst'
12193 delay_variable_subst='$delay_variable_subst'
12194 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12195 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12196 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12197 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12198 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12199 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12200 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12201 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12202 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12203 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12204 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12205 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12206 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12207 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12208 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12209 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12210 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12211 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12212 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12213 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12214 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12215 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12216 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12217 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12218 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12219 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12220 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12221 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12222 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12223 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12224 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12225 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12226 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12227 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12228 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12229 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12230 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12231 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12232 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12233 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12234 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12235 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12236 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12237 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12238 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"`'
12239 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"`'
12240 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12241 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12242 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12243 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12244 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12245 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12246 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12247 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12248 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12249 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12250 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12251 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12252 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12253 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12254 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12255 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12256 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12257 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12258 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12259 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12260 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12261 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12262 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12263 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12264 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12265 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12266 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12267 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12268 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12269 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12270 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12271 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12272 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12273 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12274 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12275 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12276 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12277 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12278 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12279 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12280 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12281 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12282 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12283 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12284 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12285 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12286 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12287 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12288 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12289 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12290 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12291 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12292 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12293 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12294 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12295 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12296 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12297 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12298 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12299 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12300 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12301 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12302 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12303 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12304 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12305 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12306 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12307 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12308 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12309 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12310 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12311 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12313 LTCC='$LTCC'
12314 LTCFLAGS='$LTCFLAGS'
12315 compiler='$compiler_DEFAULT'
12317 # Quote evaled strings.
12318 for var in SED \
12319 GREP \
12320 EGREP \
12321 FGREP \
12322 LD \
12323 NM \
12324 LN_S \
12325 lt_SP2NL \
12326 lt_NL2SP \
12327 reload_flag \
12328 OBJDUMP \
12329 deplibs_check_method \
12330 file_magic_cmd \
12331 AR \
12332 AR_FLAGS \
12333 STRIP \
12334 RANLIB \
12335 CC \
12336 CFLAGS \
12337 compiler \
12338 lt_cv_sys_global_symbol_pipe \
12339 lt_cv_sys_global_symbol_to_cdecl \
12340 lt_cv_sys_global_symbol_to_c_name_address \
12341 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12342 SHELL \
12343 ECHO \
12344 lt_prog_compiler_no_builtin_flag \
12345 lt_prog_compiler_wl \
12346 lt_prog_compiler_pic \
12347 lt_prog_compiler_static \
12348 lt_cv_prog_compiler_c_o \
12349 need_locks \
12350 DSYMUTIL \
12351 NMEDIT \
12352 LIPO \
12353 OTOOL \
12354 OTOOL64 \
12355 shrext_cmds \
12356 export_dynamic_flag_spec \
12357 whole_archive_flag_spec \
12358 compiler_needs_object \
12359 with_gnu_ld \
12360 allow_undefined_flag \
12361 no_undefined_flag \
12362 hardcode_libdir_flag_spec \
12363 hardcode_libdir_flag_spec_ld \
12364 hardcode_libdir_separator \
12365 fix_srcfile_path \
12366 exclude_expsyms \
12367 include_expsyms \
12368 file_list_spec \
12369 variables_saved_for_relink \
12370 libname_spec \
12371 library_names_spec \
12372 soname_spec \
12373 finish_eval \
12374 old_striplib \
12375 striplib; do
12376 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12377 *[\\\\\\\`\\"\\\$]*)
12378 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12381 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12383 esac
12384 done
12386 # Double-quote double-evaled strings.
12387 for var in reload_cmds \
12388 old_postinstall_cmds \
12389 old_postuninstall_cmds \
12390 old_archive_cmds \
12391 extract_expsyms_cmds \
12392 old_archive_from_new_cmds \
12393 old_archive_from_expsyms_cmds \
12394 archive_cmds \
12395 archive_expsym_cmds \
12396 module_cmds \
12397 module_expsym_cmds \
12398 export_symbols_cmds \
12399 prelink_cmds \
12400 postinstall_cmds \
12401 postuninstall_cmds \
12402 finish_cmds \
12403 sys_lib_search_path_spec \
12404 sys_lib_dlsearch_path_spec; do
12405 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12406 *[\\\\\\\`\\"\\\$]*)
12407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12412 esac
12413 done
12415 # Fix-up fallback echo if it was mangled by the above quoting rules.
12416 case \$lt_ECHO in
12417 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12419 esac
12421 ac_aux_dir='$ac_aux_dir'
12422 xsi_shell='$xsi_shell'
12423 lt_shell_append='$lt_shell_append'
12425 # See if we are running on zsh, and set the options which allow our
12426 # commands through without removal of \ escapes INIT.
12427 if test -n "\${ZSH_VERSION+set}" ; then
12428 setopt NO_GLOB_SUBST
12432 PACKAGE='$PACKAGE'
12433 VERSION='$VERSION'
12434 TIMESTAMP='$TIMESTAMP'
12435 RM='$RM'
12436 ofile='$ofile'
12441 _ACEOF
12443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12445 # Handling of arguments.
12446 for ac_config_target in $ac_config_targets
12448 case $ac_config_target in
12449 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12450 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12451 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12452 "sqlcipher.pc") CONFIG_FILES="$CONFIG_FILES sqlcipher.pc" ;;
12454 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12455 esac
12456 done
12459 # If the user did not use the arguments to specify the items to instantiate,
12460 # then the envvar interface is used. Set only those that are not.
12461 # We use the long form for the default assignment because of an extremely
12462 # bizarre bug on SunOS 4.1.3.
12463 if $ac_need_defaults; then
12464 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12465 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12466 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12469 # Have a temporary directory for convenience. Make it in the build tree
12470 # simply because there is no reason against having it here, and in addition,
12471 # creating and moving files from /tmp can sometimes cause problems.
12472 # Hook for its removal unless debugging.
12473 # Note that there is a small window in which the directory will not be cleaned:
12474 # after its creation but before its name has been assigned to `$tmp'.
12475 $debug ||
12477 tmp= ac_tmp=
12478 trap 'exit_status=$?
12479 : "${ac_tmp:=$tmp}"
12480 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12482 trap 'as_fn_exit 1' 1 2 13 15
12484 # Create a (secure) tmp directory for tmp files.
12487 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12488 test -d "$tmp"
12489 } ||
12491 tmp=./conf$$-$RANDOM
12492 (umask 077 && mkdir "$tmp")
12493 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12494 ac_tmp=$tmp
12496 # Set up the scripts for CONFIG_FILES section.
12497 # No need to generate them if there are no CONFIG_FILES.
12498 # This happens for instance with `./config.status config.h'.
12499 if test -n "$CONFIG_FILES"; then
12502 ac_cr=`echo X | tr X '\015'`
12503 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12504 # But we know of no other shell where ac_cr would be empty at this
12505 # point, so we can use a bashism as a fallback.
12506 if test "x$ac_cr" = x; then
12507 eval ac_cr=\$\'\\r\'
12509 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12510 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12511 ac_cs_awk_cr='\\r'
12512 else
12513 ac_cs_awk_cr=$ac_cr
12516 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12517 _ACEOF
12521 echo "cat >conf$$subs.awk <<_ACEOF" &&
12522 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12523 echo "_ACEOF"
12524 } >conf$$subs.sh ||
12525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12526 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12527 ac_delim='%!_!# '
12528 for ac_last_try in false false false false false :; do
12529 . ./conf$$subs.sh ||
12530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12532 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12533 if test $ac_delim_n = $ac_delim_num; then
12534 break
12535 elif $ac_last_try; then
12536 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12537 else
12538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12540 done
12541 rm -f conf$$subs.sh
12543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12544 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12545 _ACEOF
12546 sed -n '
12548 s/^/S["/; s/!.*/"]=/
12551 s/^[^!]*!//
12552 :repl
12553 t repl
12554 s/'"$ac_delim"'$//
12555 t delim
12558 s/\(.\{148\}\)..*/\1/
12559 t more1
12560 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12563 b repl
12564 :more1
12565 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12568 s/.\{148\}//
12569 t nl
12570 :delim
12572 s/\(.\{148\}\)..*/\1/
12573 t more2
12574 s/["\\]/\\&/g; s/^/"/; s/$/"/
12577 :more2
12578 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12581 s/.\{148\}//
12582 t delim
12583 ' <conf$$subs.awk | sed '
12584 /^[^""]/{
12586 s/\n//
12588 ' >>$CONFIG_STATUS || ac_write_fail=1
12589 rm -f conf$$subs.awk
12590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12591 _ACAWK
12592 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12593 for (key in S) S_is_set[key] = 1
12594 FS = "\a"
12598 line = $ 0
12599 nfields = split(line, field, "@")
12600 substed = 0
12601 len = length(field[1])
12602 for (i = 2; i < nfields; i++) {
12603 key = field[i]
12604 keylen = length(key)
12605 if (S_is_set[key]) {
12606 value = S[key]
12607 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12608 len += length(value) + length(field[++i])
12609 substed = 1
12610 } else
12611 len += 1 + keylen
12614 print line
12617 _ACAWK
12618 _ACEOF
12619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12620 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12621 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12622 else
12624 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12625 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12626 _ACEOF
12628 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12629 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12630 # trailing colons and then remove the whole line if VPATH becomes empty
12631 # (actually we leave an empty line to preserve line numbers).
12632 if test "x$srcdir" = x.; then
12633 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12635 s///
12636 s/^/:/
12637 s/[ ]*$/:/
12638 s/:\$(srcdir):/:/g
12639 s/:\${srcdir}:/:/g
12640 s/:@srcdir@:/:/g
12641 s/^:*//
12642 s/:*$//
12644 s/\(=[ ]*\).*/\1/
12646 s/\n//
12647 s/^[^=]*=[ ]*$//
12651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12652 fi # test -n "$CONFIG_FILES"
12654 # Set up the scripts for CONFIG_HEADERS section.
12655 # No need to generate them if there are no CONFIG_HEADERS.
12656 # This happens for instance with `./config.status Makefile'.
12657 if test -n "$CONFIG_HEADERS"; then
12658 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12659 BEGIN {
12660 _ACEOF
12662 # Transform confdefs.h into an awk script `defines.awk', embedded as
12663 # here-document in config.status, that substitutes the proper values into
12664 # config.h.in to produce config.h.
12666 # Create a delimiter string that does not exist in confdefs.h, to ease
12667 # handling of long lines.
12668 ac_delim='%!_!# '
12669 for ac_last_try in false false :; do
12670 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12671 if test -z "$ac_tt"; then
12672 break
12673 elif $ac_last_try; then
12674 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12675 else
12676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12678 done
12680 # For the awk script, D is an array of macro values keyed by name,
12681 # likewise P contains macro parameters if any. Preserve backslash
12682 # newline sequences.
12684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12685 sed -n '
12686 s/.\{148\}/&'"$ac_delim"'/g
12687 t rset
12688 :rset
12689 s/^[ ]*#[ ]*define[ ][ ]*/ /
12690 t def
12692 :def
12693 s/\\$//
12694 t bsnl
12695 s/["\\]/\\&/g
12696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12697 D["\1"]=" \3"/p
12698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12700 :bsnl
12701 s/["\\]/\\&/g
12702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12703 D["\1"]=" \3\\\\\\n"\\/p
12704 t cont
12705 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12706 t cont
12708 :cont
12710 s/.\{148\}/&'"$ac_delim"'/g
12711 t clear
12712 :clear
12713 s/\\$//
12714 t bsnlc
12715 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12717 :bsnlc
12718 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12719 b cont
12720 ' <confdefs.h | sed '
12721 s/'"$ac_delim"'/"\\\
12722 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12725 for (key in D) D_is_set[key] = 1
12726 FS = "\a"
12728 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12729 line = \$ 0
12730 split(line, arg, " ")
12731 if (arg[1] == "#") {
12732 defundef = arg[2]
12733 mac1 = arg[3]
12734 } else {
12735 defundef = substr(arg[1], 2)
12736 mac1 = arg[2]
12738 split(mac1, mac2, "(") #)
12739 macro = mac2[1]
12740 prefix = substr(line, 1, index(line, defundef) - 1)
12741 if (D_is_set[macro]) {
12742 # Preserve the white space surrounding the "#".
12743 print prefix "define", macro P[macro] D[macro]
12744 next
12745 } else {
12746 # Replace #undef with comments. This is necessary, for example,
12747 # in the case of _POSIX_SOURCE, which is predefined and required
12748 # on some systems where configure will not decide to define it.
12749 if (defundef == "undef") {
12750 print "/*", prefix defundef, macro, "*/"
12751 next
12755 { print }
12756 _ACAWK
12757 _ACEOF
12758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12759 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12760 fi # test -n "$CONFIG_HEADERS"
12763 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12764 shift
12765 for ac_tag
12767 case $ac_tag in
12768 :[FHLC]) ac_mode=$ac_tag; continue;;
12769 esac
12770 case $ac_mode$ac_tag in
12771 :[FHL]*:*);;
12772 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12773 :[FH]-) ac_tag=-:-;;
12774 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12775 esac
12776 ac_save_IFS=$IFS
12777 IFS=:
12778 set x $ac_tag
12779 IFS=$ac_save_IFS
12780 shift
12781 ac_file=$1
12782 shift
12784 case $ac_mode in
12785 :L) ac_source=$1;;
12786 :[FH])
12787 ac_file_inputs=
12788 for ac_f
12790 case $ac_f in
12791 -) ac_f="$ac_tmp/stdin";;
12792 *) # Look for the file first in the build tree, then in the source tree
12793 # (if the path is not absolute). The absolute path cannot be DOS-style,
12794 # because $ac_f cannot contain `:'.
12795 test -f "$ac_f" ||
12796 case $ac_f in
12797 [\\/$]*) false;;
12798 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12799 esac ||
12800 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12801 esac
12802 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12803 as_fn_append ac_file_inputs " '$ac_f'"
12804 done
12806 # Let's still pretend it is `configure' which instantiates (i.e., don't
12807 # use $as_me), people would be surprised to read:
12808 # /* config.h. Generated by config.status. */
12809 configure_input='Generated from '`
12810 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12811 `' by configure.'
12812 if test x"$ac_file" != x-; then
12813 configure_input="$ac_file. $configure_input"
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12815 $as_echo "$as_me: creating $ac_file" >&6;}
12817 # Neutralize special characters interpreted by sed in replacement strings.
12818 case $configure_input in #(
12819 *\&* | *\|* | *\\* )
12820 ac_sed_conf_input=`$as_echo "$configure_input" |
12821 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12822 *) ac_sed_conf_input=$configure_input;;
12823 esac
12825 case $ac_tag in
12826 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12828 esac
12830 esac
12832 ac_dir=`$as_dirname -- "$ac_file" ||
12833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12834 X"$ac_file" : 'X\(//\)[^/]' \| \
12835 X"$ac_file" : 'X\(//\)$' \| \
12836 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12837 $as_echo X"$ac_file" |
12838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12839 s//\1/
12842 /^X\(\/\/\)[^/].*/{
12843 s//\1/
12846 /^X\(\/\/\)$/{
12847 s//\1/
12850 /^X\(\/\).*/{
12851 s//\1/
12854 s/.*/./; q'`
12855 as_dir="$ac_dir"; as_fn_mkdir_p
12856 ac_builddir=.
12858 case "$ac_dir" in
12859 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12861 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12862 # A ".." for each directory in $ac_dir_suffix.
12863 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12864 case $ac_top_builddir_sub in
12865 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12866 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12867 esac ;;
12868 esac
12869 ac_abs_top_builddir=$ac_pwd
12870 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12871 # for backward compatibility:
12872 ac_top_builddir=$ac_top_build_prefix
12874 case $srcdir in
12875 .) # We are building in place.
12876 ac_srcdir=.
12877 ac_top_srcdir=$ac_top_builddir_sub
12878 ac_abs_top_srcdir=$ac_pwd ;;
12879 [\\/]* | ?:[\\/]* ) # Absolute name.
12880 ac_srcdir=$srcdir$ac_dir_suffix;
12881 ac_top_srcdir=$srcdir
12882 ac_abs_top_srcdir=$srcdir ;;
12883 *) # Relative name.
12884 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12885 ac_top_srcdir=$ac_top_build_prefix$srcdir
12886 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12887 esac
12888 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12891 case $ac_mode in
12894 # CONFIG_FILE
12897 case $INSTALL in
12898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12899 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12900 esac
12901 _ACEOF
12903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12904 # If the template does not know about datarootdir, expand it.
12905 # FIXME: This hack should be removed a few years after 2.60.
12906 ac_datarootdir_hack=; ac_datarootdir_seen=
12907 ac_sed_dataroot='
12908 /datarootdir/ {
12912 /@datadir@/p
12913 /@docdir@/p
12914 /@infodir@/p
12915 /@localedir@/p
12916 /@mandir@/p'
12917 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12918 *datarootdir*) ac_datarootdir_seen=yes;;
12919 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12921 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12922 _ACEOF
12923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12924 ac_datarootdir_hack='
12925 s&@datadir@&$datadir&g
12926 s&@docdir@&$docdir&g
12927 s&@infodir@&$infodir&g
12928 s&@localedir@&$localedir&g
12929 s&@mandir@&$mandir&g
12930 s&\\\${datarootdir}&$datarootdir&g' ;;
12931 esac
12932 _ACEOF
12934 # Neutralize VPATH when `$srcdir' = `.'.
12935 # Shell code in configure.ac might set extrasub.
12936 # FIXME: do we really want to maintain this feature?
12937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12938 ac_sed_extra="$ac_vpsub
12939 $extrasub
12940 _ACEOF
12941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12944 s|@configure_input@|$ac_sed_conf_input|;t t
12945 s&@top_builddir@&$ac_top_builddir_sub&;t t
12946 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12947 s&@srcdir@&$ac_srcdir&;t t
12948 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12949 s&@top_srcdir@&$ac_top_srcdir&;t t
12950 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12951 s&@builddir@&$ac_builddir&;t t
12952 s&@abs_builddir@&$ac_abs_builddir&;t t
12953 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12954 s&@INSTALL@&$ac_INSTALL&;t t
12955 $ac_datarootdir_hack
12957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12958 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12961 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12963 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12965 which seems to be undefined. Please make sure it is defined" >&5
12966 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12967 which seems to be undefined. Please make sure it is defined" >&2;}
12969 rm -f "$ac_tmp/stdin"
12970 case $ac_file in
12971 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12972 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12973 esac \
12974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12978 # CONFIG_HEADER
12980 if test x"$ac_file" != x-; then
12982 $as_echo "/* $configure_input */" \
12983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12984 } >"$ac_tmp/config.h" \
12985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12986 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12988 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12989 else
12990 rm -f "$ac_file"
12991 mv "$ac_tmp/config.h" "$ac_file" \
12992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12994 else
12995 $as_echo "/* $configure_input */" \
12996 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12997 || as_fn_error $? "could not create -" "$LINENO" 5
13001 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13002 $as_echo "$as_me: executing $ac_file commands" >&6;}
13004 esac
13007 case $ac_file$ac_mode in
13008 "libtool":C)
13010 # See if we are running on zsh, and set the options which allow our
13011 # commands through without removal of \ escapes.
13012 if test -n "${ZSH_VERSION+set}" ; then
13013 setopt NO_GLOB_SUBST
13016 cfgfile="${ofile}T"
13017 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13018 $RM "$cfgfile"
13020 cat <<_LT_EOF >> "$cfgfile"
13021 #! $SHELL
13023 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13024 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13025 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13026 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13028 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13029 # 2006, 2007, 2008 Free Software Foundation, Inc.
13030 # Written by Gordon Matzigkeit, 1996
13032 # This file is part of GNU Libtool.
13034 # GNU Libtool is free software; you can redistribute it and/or
13035 # modify it under the terms of the GNU General Public License as
13036 # published by the Free Software Foundation; either version 2 of
13037 # the License, or (at your option) any later version.
13039 # As a special exception to the GNU General Public License,
13040 # if you distribute this file as part of a program or library that
13041 # is built using GNU Libtool, you may include this file under the
13042 # same distribution terms that you use for the rest of that program.
13044 # GNU Libtool is distributed in the hope that it will be useful,
13045 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13046 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13047 # GNU General Public License for more details.
13049 # You should have received a copy of the GNU General Public License
13050 # along with GNU Libtool; see the file COPYING. If not, a copy
13051 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13052 # obtained by writing to the Free Software Foundation, Inc.,
13053 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13056 # The names of the tagged configurations supported by this script.
13057 available_tags=""
13059 # ### BEGIN LIBTOOL CONFIG
13061 # Which release of libtool.m4 was used?
13062 macro_version=$macro_version
13063 macro_revision=$macro_revision
13065 # Whether or not to build shared libraries.
13066 build_libtool_libs=$enable_shared
13068 # Whether or not to build static libraries.
13069 build_old_libs=$enable_static
13071 # What type of objects to build.
13072 pic_mode=$pic_mode
13074 # Whether or not to optimize for fast installation.
13075 fast_install=$enable_fast_install
13077 # The host system.
13078 host_alias=$host_alias
13079 host=$host
13080 host_os=$host_os
13082 # The build system.
13083 build_alias=$build_alias
13084 build=$build
13085 build_os=$build_os
13087 # A sed program that does not truncate output.
13088 SED=$lt_SED
13090 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13091 Xsed="\$SED -e 1s/^X//"
13093 # A grep program that handles long lines.
13094 GREP=$lt_GREP
13096 # An ERE matcher.
13097 EGREP=$lt_EGREP
13099 # A literal string matcher.
13100 FGREP=$lt_FGREP
13102 # A BSD- or MS-compatible name lister.
13103 NM=$lt_NM
13105 # Whether we need soft or hard links.
13106 LN_S=$lt_LN_S
13108 # What is the maximum length of a command?
13109 max_cmd_len=$max_cmd_len
13111 # Object file suffix (normally "o").
13112 objext=$ac_objext
13114 # Executable file suffix (normally "").
13115 exeext=$exeext
13117 # whether the shell understands "unset".
13118 lt_unset=$lt_unset
13120 # turn spaces into newlines.
13121 SP2NL=$lt_lt_SP2NL
13123 # turn newlines into spaces.
13124 NL2SP=$lt_lt_NL2SP
13126 # How to create reloadable object files.
13127 reload_flag=$lt_reload_flag
13128 reload_cmds=$lt_reload_cmds
13130 # An object symbol dumper.
13131 OBJDUMP=$lt_OBJDUMP
13133 # Method to check whether dependent libraries are shared objects.
13134 deplibs_check_method=$lt_deplibs_check_method
13136 # Command to use when deplibs_check_method == "file_magic".
13137 file_magic_cmd=$lt_file_magic_cmd
13139 # The archiver.
13140 AR=$lt_AR
13141 AR_FLAGS=$lt_AR_FLAGS
13143 # A symbol stripping program.
13144 STRIP=$lt_STRIP
13146 # Commands used to install an old-style archive.
13147 RANLIB=$lt_RANLIB
13148 old_postinstall_cmds=$lt_old_postinstall_cmds
13149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13151 # A C compiler.
13152 LTCC=$lt_CC
13154 # LTCC compiler flags.
13155 LTCFLAGS=$lt_CFLAGS
13157 # Take the output of nm and produce a listing of raw symbols and C names.
13158 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13160 # Transform the output of nm in a proper C declaration.
13161 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13163 # Transform the output of nm in a C name address pair.
13164 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13166 # Transform the output of nm in a C name address pair when lib prefix is needed.
13167 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13169 # The name of the directory that contains temporary libtool files.
13170 objdir=$objdir
13172 # Shell to use when invoking shell scripts.
13173 SHELL=$lt_SHELL
13175 # An echo program that does not interpret backslashes.
13176 ECHO=$lt_ECHO
13178 # Used to examine libraries when file_magic_cmd begins with "file".
13179 MAGIC_CMD=$MAGIC_CMD
13181 # Must we lock files when doing compilation?
13182 need_locks=$lt_need_locks
13184 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13185 DSYMUTIL=$lt_DSYMUTIL
13187 # Tool to change global to local symbols on Mac OS X.
13188 NMEDIT=$lt_NMEDIT
13190 # Tool to manipulate fat objects and archives on Mac OS X.
13191 LIPO=$lt_LIPO
13193 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13194 OTOOL=$lt_OTOOL
13196 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13197 OTOOL64=$lt_OTOOL64
13199 # Old archive suffix (normally "a").
13200 libext=$libext
13202 # Shared library suffix (normally ".so").
13203 shrext_cmds=$lt_shrext_cmds
13205 # The commands to extract the exported symbol list from a shared archive.
13206 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13208 # Variables whose values should be saved in libtool wrapper scripts and
13209 # restored at link time.
13210 variables_saved_for_relink=$lt_variables_saved_for_relink
13212 # Do we need the "lib" prefix for modules?
13213 need_lib_prefix=$need_lib_prefix
13215 # Do we need a version for libraries?
13216 need_version=$need_version
13218 # Library versioning type.
13219 version_type=$version_type
13221 # Shared library runtime path variable.
13222 runpath_var=$runpath_var
13224 # Shared library path variable.
13225 shlibpath_var=$shlibpath_var
13227 # Is shlibpath searched before the hard-coded library search path?
13228 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13230 # Format of library name prefix.
13231 libname_spec=$lt_libname_spec
13233 # List of archive names. First name is the real one, the rest are links.
13234 # The last name is the one that the linker finds with -lNAME
13235 library_names_spec=$lt_library_names_spec
13237 # The coded name of the library, if different from the real name.
13238 soname_spec=$lt_soname_spec
13240 # Command to use after installation of a shared archive.
13241 postinstall_cmds=$lt_postinstall_cmds
13243 # Command to use after uninstallation of a shared archive.
13244 postuninstall_cmds=$lt_postuninstall_cmds
13246 # Commands used to finish a libtool library installation in a directory.
13247 finish_cmds=$lt_finish_cmds
13249 # As "finish_cmds", except a single script fragment to be evaled but
13250 # not shown.
13251 finish_eval=$lt_finish_eval
13253 # Whether we should hardcode library paths into libraries.
13254 hardcode_into_libs=$hardcode_into_libs
13256 # Compile-time system search path for libraries.
13257 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13259 # Run-time system search path for libraries.
13260 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13262 # Whether dlopen is supported.
13263 dlopen_support=$enable_dlopen
13265 # Whether dlopen of programs is supported.
13266 dlopen_self=$enable_dlopen_self
13268 # Whether dlopen of statically linked programs is supported.
13269 dlopen_self_static=$enable_dlopen_self_static
13271 # Commands to strip libraries.
13272 old_striplib=$lt_old_striplib
13273 striplib=$lt_striplib
13276 # The linker used to build libraries.
13277 LD=$lt_LD
13279 # Commands used to build an old-style archive.
13280 old_archive_cmds=$lt_old_archive_cmds
13282 # A language specific compiler.
13283 CC=$lt_compiler
13285 # Is the compiler the GNU compiler?
13286 with_gcc=$GCC
13288 # Compiler flag to turn off builtin functions.
13289 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13291 # How to pass a linker flag through the compiler.
13292 wl=$lt_lt_prog_compiler_wl
13294 # Additional compiler flags for building library objects.
13295 pic_flag=$lt_lt_prog_compiler_pic
13297 # Compiler flag to prevent dynamic linking.
13298 link_static_flag=$lt_lt_prog_compiler_static
13300 # Does compiler simultaneously support -c and -o options?
13301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13303 # Whether or not to add -lc for building shared libraries.
13304 build_libtool_need_lc=$archive_cmds_need_lc
13306 # Whether or not to disallow shared libs when runtime libs are static.
13307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13309 # Compiler flag to allow reflexive dlopens.
13310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13312 # Compiler flag to generate shared objects directly from archives.
13313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13315 # Whether the compiler copes with passing no objects directly.
13316 compiler_needs_object=$lt_compiler_needs_object
13318 # Create an old-style archive from a shared archive.
13319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13321 # Create a temporary old-style archive to link instead of a shared archive.
13322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13324 # Commands used to build a shared archive.
13325 archive_cmds=$lt_archive_cmds
13326 archive_expsym_cmds=$lt_archive_expsym_cmds
13328 # Commands used to build a loadable module if different from building
13329 # a shared archive.
13330 module_cmds=$lt_module_cmds
13331 module_expsym_cmds=$lt_module_expsym_cmds
13333 # Whether we are building with GNU ld or not.
13334 with_gnu_ld=$lt_with_gnu_ld
13336 # Flag that allows shared libraries with undefined symbols to be built.
13337 allow_undefined_flag=$lt_allow_undefined_flag
13339 # Flag that enforces no undefined symbols.
13340 no_undefined_flag=$lt_no_undefined_flag
13342 # Flag to hardcode \$libdir into a binary during linking.
13343 # This must work even if \$libdir does not exist
13344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13346 # If ld is used when linking, flag to hardcode \$libdir into a binary
13347 # during linking. This must work even if \$libdir does not exist.
13348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13350 # Whether we need a single "-rpath" flag with a separated argument.
13351 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13353 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13354 # DIR into the resulting binary.
13355 hardcode_direct=$hardcode_direct
13357 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13358 # DIR into the resulting binary and the resulting library dependency is
13359 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13360 # library is relocated.
13361 hardcode_direct_absolute=$hardcode_direct_absolute
13363 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13364 # into the resulting binary.
13365 hardcode_minus_L=$hardcode_minus_L
13367 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13368 # into the resulting binary.
13369 hardcode_shlibpath_var=$hardcode_shlibpath_var
13371 # Set to "yes" if building a shared library automatically hardcodes DIR
13372 # into the library and all subsequent libraries and executables linked
13373 # against it.
13374 hardcode_automatic=$hardcode_automatic
13376 # Set to yes if linker adds runtime paths of dependent libraries
13377 # to runtime path list.
13378 inherit_rpath=$inherit_rpath
13380 # Whether libtool must link a program against all its dependency libraries.
13381 link_all_deplibs=$link_all_deplibs
13383 # Fix the shell variable \$srcfile for the compiler.
13384 fix_srcfile_path=$lt_fix_srcfile_path
13386 # Set to "yes" if exported symbols are required.
13387 always_export_symbols=$always_export_symbols
13389 # The commands to list exported symbols.
13390 export_symbols_cmds=$lt_export_symbols_cmds
13392 # Symbols that should not be listed in the preloaded symbols.
13393 exclude_expsyms=$lt_exclude_expsyms
13395 # Symbols that must always be exported.
13396 include_expsyms=$lt_include_expsyms
13398 # Commands necessary for linking programs (against libraries) with templates.
13399 prelink_cmds=$lt_prelink_cmds
13401 # Specify filename containing input files.
13402 file_list_spec=$lt_file_list_spec
13404 # How to hardcode a shared library path into an executable.
13405 hardcode_action=$hardcode_action
13407 # ### END LIBTOOL CONFIG
13409 _LT_EOF
13411 case $host_os in
13412 aix3*)
13413 cat <<\_LT_EOF >> "$cfgfile"
13414 # AIX sometimes has problems with the GCC collect2 program. For some
13415 # reason, if we set the COLLECT_NAMES environment variable, the problems
13416 # vanish in a puff of smoke.
13417 if test "X${COLLECT_NAMES+set}" != Xset; then
13418 COLLECT_NAMES=
13419 export COLLECT_NAMES
13421 _LT_EOF
13423 esac
13426 ltmain="$ac_aux_dir/ltmain.sh"
13429 # We use sed instead of cat because bash on DJGPP gets confused if
13430 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13431 # text mode, it properly converts lines to CR/LF. This bash problem
13432 # is reportedly fixed, but why not run on old versions too?
13433 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13434 || (rm -f "$cfgfile"; exit 1)
13436 case $xsi_shell in
13437 yes)
13438 cat << \_LT_EOF >> "$cfgfile"
13440 # func_dirname file append nondir_replacement
13441 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13442 # otherwise set result to NONDIR_REPLACEMENT.
13443 func_dirname ()
13445 case ${1} in
13446 */*) func_dirname_result="${1%/*}${2}" ;;
13447 * ) func_dirname_result="${3}" ;;
13448 esac
13451 # func_basename file
13452 func_basename ()
13454 func_basename_result="${1##*/}"
13457 # func_dirname_and_basename file append nondir_replacement
13458 # perform func_basename and func_dirname in a single function
13459 # call:
13460 # dirname: Compute the dirname of FILE. If nonempty,
13461 # add APPEND to the result, otherwise set result
13462 # to NONDIR_REPLACEMENT.
13463 # value returned in "$func_dirname_result"
13464 # basename: Compute filename of FILE.
13465 # value retuned in "$func_basename_result"
13466 # Implementation must be kept synchronized with func_dirname
13467 # and func_basename. For efficiency, we do not delegate to
13468 # those functions but instead duplicate the functionality here.
13469 func_dirname_and_basename ()
13471 case ${1} in
13472 */*) func_dirname_result="${1%/*}${2}" ;;
13473 * ) func_dirname_result="${3}" ;;
13474 esac
13475 func_basename_result="${1##*/}"
13478 # func_stripname prefix suffix name
13479 # strip PREFIX and SUFFIX off of NAME.
13480 # PREFIX and SUFFIX must not contain globbing or regex special
13481 # characters, hashes, percent signs, but SUFFIX may contain a leading
13482 # dot (in which case that matches only a dot).
13483 func_stripname ()
13485 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13486 # positional parameters, so assign one to ordinary parameter first.
13487 func_stripname_result=${3}
13488 func_stripname_result=${func_stripname_result#"${1}"}
13489 func_stripname_result=${func_stripname_result%"${2}"}
13492 # func_opt_split
13493 func_opt_split ()
13495 func_opt_split_opt=${1%%=*}
13496 func_opt_split_arg=${1#*=}
13499 # func_lo2o object
13500 func_lo2o ()
13502 case ${1} in
13503 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13504 *) func_lo2o_result=${1} ;;
13505 esac
13508 # func_xform libobj-or-source
13509 func_xform ()
13511 func_xform_result=${1%.*}.lo
13514 # func_arith arithmetic-term...
13515 func_arith ()
13517 func_arith_result=$(( $* ))
13520 # func_len string
13521 # STRING may not start with a hyphen.
13522 func_len ()
13524 func_len_result=${#1}
13527 _LT_EOF
13529 *) # Bourne compatible functions.
13530 cat << \_LT_EOF >> "$cfgfile"
13532 # func_dirname file append nondir_replacement
13533 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13534 # otherwise set result to NONDIR_REPLACEMENT.
13535 func_dirname ()
13537 # Extract subdirectory from the argument.
13538 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13539 if test "X$func_dirname_result" = "X${1}"; then
13540 func_dirname_result="${3}"
13541 else
13542 func_dirname_result="$func_dirname_result${2}"
13546 # func_basename file
13547 func_basename ()
13549 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13553 # func_stripname prefix suffix name
13554 # strip PREFIX and SUFFIX off of NAME.
13555 # PREFIX and SUFFIX must not contain globbing or regex special
13556 # characters, hashes, percent signs, but SUFFIX may contain a leading
13557 # dot (in which case that matches only a dot).
13558 # func_strip_suffix prefix name
13559 func_stripname ()
13561 case ${2} in
13562 .*) func_stripname_result=`$ECHO "X${3}" \
13563 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13564 *) func_stripname_result=`$ECHO "X${3}" \
13565 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13566 esac
13569 # sed scripts:
13570 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13571 my_sed_long_arg='1s/^-[^=]*=//'
13573 # func_opt_split
13574 func_opt_split ()
13576 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13577 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13580 # func_lo2o object
13581 func_lo2o ()
13583 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13586 # func_xform libobj-or-source
13587 func_xform ()
13589 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13592 # func_arith arithmetic-term...
13593 func_arith ()
13595 func_arith_result=`expr "$@"`
13598 # func_len string
13599 # STRING may not start with a hyphen.
13600 func_len ()
13602 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13605 _LT_EOF
13606 esac
13608 case $lt_shell_append in
13609 yes)
13610 cat << \_LT_EOF >> "$cfgfile"
13612 # func_append var value
13613 # Append VALUE to the end of shell variable VAR.
13614 func_append ()
13616 eval "$1+=\$2"
13618 _LT_EOF
13621 cat << \_LT_EOF >> "$cfgfile"
13623 # func_append var value
13624 # Append VALUE to the end of shell variable VAR.
13625 func_append ()
13627 eval "$1=\$$1\$2"
13630 _LT_EOF
13632 esac
13635 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13636 || (rm -f "$cfgfile"; exit 1)
13638 mv -f "$cfgfile" "$ofile" ||
13639 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13640 chmod +x "$ofile"
13644 esac
13645 done # for ac_tag
13648 as_fn_exit 0
13649 _ACEOF
13650 ac_clean_files=$ac_clean_files_save
13652 test $ac_write_fail = 0 ||
13653 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13656 # configure is writing to config.log, and then calls config.status.
13657 # config.status does its own redirection, appending to config.log.
13658 # Unfortunately, on DOS this fails, as config.log is still kept open
13659 # by configure, so config.status won't be able to write to it; its
13660 # output is simply discarded. So we exec the FD to /dev/null,
13661 # effectively closing config.log, so it can be properly (re)opened and
13662 # appended to by config.status. When coming back to configure, we
13663 # need to make the FD available again.
13664 if test "$no_create" != yes; then
13665 ac_cs_success=:
13666 ac_config_status_args=
13667 test "$silent" = yes &&
13668 ac_config_status_args="$ac_config_status_args --quiet"
13669 exec 5>/dev/null
13670 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13671 exec 5>>config.log
13672 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13673 # would make configure fail if this is the last instruction.
13674 $ac_cs_success || as_fn_exit 1
13676 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13678 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}