Add contributions section to README
[sqlcipher.git] / configure
blobebb8e3a18e87f7401923671ae95a39f2e84a7432
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlcipher 3.8.8.3.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 case X$lt_ECHO in
562 X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 esac
568 ECHO=${lt_ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572 elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
575 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
578 else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
583 if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
586 cat <<_LT_EOF
588 _LT_EOF
589 exit 0
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 # if CDPATH is set.
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
596 if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
606 done
609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
630 done
631 IFS="$lt_save_ifs"
633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 else
649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
679 prev="$cmd"
680 done
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 lt_ECHO=$ECHO
699 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 test -n "$DJDIR" || exec 7<&0 </dev/null
707 exec 6>&1
709 # Name of the host.
710 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715 # Initializations.
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
726 # Identity of this package.
727 PACKAGE_NAME='sqlcipher'
728 PACKAGE_TARNAME='sqlcipher'
729 PACKAGE_VERSION='3.8.8.3'
730 PACKAGE_STRING='sqlcipher 3.8.8.3'
731 PACKAGE_BUGREPORT=''
732 PACKAGE_URL=''
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='LTLIBOBJS
771 LIBOBJS
772 BUILD_CFLAGS
773 USE_GCOV
774 OPT_FEATURE_FLAGS
775 USE_AMALGAMATION
776 TARGET_DEBUG
777 TARGET_HAVE_READLINE
778 TARGET_READLINE_INC
779 TARGET_READLINE_LIBS
780 HAVE_TCL
781 TCL_STUB_LIB_SPEC
782 TCL_STUB_LIB_FLAG
783 TCL_STUB_LIB_FILE
784 TCL_LIB_SPEC
785 TCL_LIB_FLAG
786 TCL_LIB_FILE
787 TCL_INCLUDE_SPEC
788 TCL_SRC_DIR
789 TCL_BIN_DIR
790 TCL_VERSION
791 TARGET_EXEEXT
792 SQLITE_OS_WIN
793 SQLITE_OS_UNIX
794 BUILD_EXEEXT
795 TEMP_STORE
796 ALLOWRELEASE
797 XTHREADCONNECT
798 SQLITE_THREADSAFE
799 BUILD_CC
800 VERSION_NUMBER
801 RELEASE
802 VERSION
803 program_prefix
804 TCLLIBDIR
805 TCLSH_CMD
807 INSTALL_DATA
808 INSTALL_SCRIPT
809 INSTALL_PROGRAM
811 OTOOL64
812 OTOOL
813 LIPO
814 NMEDIT
815 DSYMUTIL
816 lt_ECHO
817 RANLIB
818 STRIP
820 OBJDUMP
821 LN_S
823 ac_ct_DUMPBIN
824 DUMPBIN
826 FGREP
827 EGREP
828 GREP
830 OBJEXT
831 EXEEXT
832 ac_ct_CC
833 CPPFLAGS
834 LDFLAGS
835 CFLAGS
837 host_os
838 host_vendor
839 host_cpu
840 host
841 build_os
842 build_vendor
843 build_cpu
844 build
845 LIBTOOL
846 target_alias
847 host_alias
848 build_alias
849 LIBS
850 ECHO_T
851 ECHO_N
852 ECHO_C
853 DEFS
854 mandir
855 localedir
856 libdir
857 psdir
858 pdfdir
859 dvidir
860 htmldir
861 infodir
862 docdir
863 oldincludedir
864 includedir
865 localstatedir
866 sharedstatedir
867 sysconfdir
868 datadir
869 datarootdir
870 libexecdir
871 sbindir
872 bindir
873 program_transform_name
874 prefix
875 exec_prefix
876 PACKAGE_URL
877 PACKAGE_BUGREPORT
878 PACKAGE_STRING
879 PACKAGE_VERSION
880 PACKAGE_TARNAME
881 PACKAGE_NAME
882 PATH_SEPARATOR
883 SHELL'
884 ac_subst_files=''
885 ac_user_opts='
886 enable_option_checking
887 enable_shared
888 enable_static
889 with_pic
890 enable_fast_install
891 with_gnu_ld
892 enable_libtool_lock
893 enable_largefile
894 enable_threadsafe
895 with_crypto_lib
896 enable_cross_thread_connections
897 enable_releasemode
898 enable_tempstore
899 enable_tcl
900 with_tcl
901 enable_readline
902 with_readline_lib
903 with_readline_inc
904 enable_debug
905 enable_amalgamation
906 enable_load_extension
907 enable_gcov
909 ac_precious_vars='build_alias
910 host_alias
911 target_alias
913 CFLAGS
914 LDFLAGS
915 LIBS
916 CPPFLAGS
918 TCLLIBDIR'
921 # Initialize some variables set by options.
922 ac_init_help=
923 ac_init_version=false
924 ac_unrecognized_opts=
925 ac_unrecognized_sep=
926 # The variables have the same names as the options, with
927 # dashes changed to underlines.
928 cache_file=/dev/null
929 exec_prefix=NONE
930 no_create=
931 no_recursion=
932 prefix=NONE
933 program_prefix=NONE
934 program_suffix=NONE
935 program_transform_name=s,x,x,
936 silent=
937 site=
938 srcdir=
939 verbose=
940 x_includes=NONE
941 x_libraries=NONE
943 # Installation directory options.
944 # These are left unexpanded so users can "make install exec_prefix=/foo"
945 # and all the variables that are supposed to be based on exec_prefix
946 # by default will actually change.
947 # Use braces instead of parens because sh, perl, etc. also accept them.
948 # (The list follows the same order as the GNU Coding Standards.)
949 bindir='${exec_prefix}/bin'
950 sbindir='${exec_prefix}/sbin'
951 libexecdir='${exec_prefix}/libexec'
952 datarootdir='${prefix}/share'
953 datadir='${datarootdir}'
954 sysconfdir='${prefix}/etc'
955 sharedstatedir='${prefix}/com'
956 localstatedir='${prefix}/var'
957 includedir='${prefix}/include'
958 oldincludedir='/usr/include'
959 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
960 infodir='${datarootdir}/info'
961 htmldir='${docdir}'
962 dvidir='${docdir}'
963 pdfdir='${docdir}'
964 psdir='${docdir}'
965 libdir='${exec_prefix}/lib'
966 localedir='${datarootdir}/locale'
967 mandir='${datarootdir}/man'
969 ac_prev=
970 ac_dashdash=
971 for ac_option
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\$ac_option
976 ac_prev=
977 continue
980 case $ac_option in
981 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 *=) ac_optarg= ;;
983 *) ac_optarg=yes ;;
984 esac
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
990 ac_dashdash=yes ;;
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1024 -disable-* | --disable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error $? "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_$ac_useropt"
1034 "*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=no ;;
1040 -docdir | --docdir | --docdi | --doc | --do)
1041 ac_prev=docdir ;;
1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043 docdir=$ac_optarg ;;
1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 ac_prev=dvidir ;;
1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048 dvidir=$ac_optarg ;;
1050 -enable-* | --enable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=\$ac_optarg ;;
1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068 | --exec | --exe | --ex)
1069 ac_prev=exec_prefix ;;
1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072 | --exec=* | --exe=* | --ex=*)
1073 exec_prefix=$ac_optarg ;;
1075 -gas | --gas | --ga | --g)
1076 # Obsolete; use --with-gas.
1077 with_gas=yes ;;
1079 -help | --help | --hel | --he | -h)
1080 ac_init_help=long ;;
1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082 ac_init_help=recursive ;;
1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084 ac_init_help=short ;;
1086 -host | --host | --hos | --ho)
1087 ac_prev=host_alias ;;
1088 -host=* | --host=* | --hos=* | --ho=*)
1089 host_alias=$ac_optarg ;;
1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 ac_prev=htmldir ;;
1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 | --ht=*)
1095 htmldir=$ac_optarg ;;
1097 -includedir | --includedir | --includedi | --included | --include \
1098 | --includ | --inclu | --incl | --inc)
1099 ac_prev=includedir ;;
1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101 | --includ=* | --inclu=* | --incl=* | --inc=*)
1102 includedir=$ac_optarg ;;
1104 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 ac_prev=infodir ;;
1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107 infodir=$ac_optarg ;;
1109 -libdir | --libdir | --libdi | --libd)
1110 ac_prev=libdir ;;
1111 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112 libdir=$ac_optarg ;;
1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115 | --libexe | --libex | --libe)
1116 ac_prev=libexecdir ;;
1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118 | --libexe=* | --libex=* | --libe=*)
1119 libexecdir=$ac_optarg ;;
1121 -localedir | --localedir | --localedi | --localed | --locale)
1122 ac_prev=localedir ;;
1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124 localedir=$ac_optarg ;;
1126 -localstatedir | --localstatedir | --localstatedi | --localstated \
1127 | --localstate | --localstat | --localsta | --localst | --locals)
1128 ac_prev=localstatedir ;;
1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131 localstatedir=$ac_optarg ;;
1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 ac_prev=mandir ;;
1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136 mandir=$ac_optarg ;;
1138 -nfp | --nfp | --nf)
1139 # Obsolete; use --without-fp.
1140 with_fp=no ;;
1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143 | --no-cr | --no-c | -n)
1144 no_create=yes ;;
1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148 no_recursion=yes ;;
1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152 | --oldin | --oldi | --old | --ol | --o)
1153 ac_prev=oldincludedir ;;
1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157 oldincludedir=$ac_optarg ;;
1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 ac_prev=prefix ;;
1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162 prefix=$ac_optarg ;;
1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165 | --program-pre | --program-pr | --program-p)
1166 ac_prev=program_prefix ;;
1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169 program_prefix=$ac_optarg ;;
1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172 | --program-suf | --program-su | --program-s)
1173 ac_prev=program_suffix ;;
1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176 program_suffix=$ac_optarg ;;
1178 -program-transform-name | --program-transform-name \
1179 | --program-transform-nam | --program-transform-na \
1180 | --program-transform-n | --program-transform- \
1181 | --program-transform | --program-transfor \
1182 | --program-transfo | --program-transf \
1183 | --program-trans | --program-tran \
1184 | --progr-tra | --program-tr | --program-t)
1185 ac_prev=program_transform_name ;;
1186 -program-transform-name=* | --program-transform-name=* \
1187 | --program-transform-nam=* | --program-transform-na=* \
1188 | --program-transform-n=* | --program-transform-=* \
1189 | --program-transform=* | --program-transfor=* \
1190 | --program-transfo=* | --program-transf=* \
1191 | --program-trans=* | --program-tran=* \
1192 | --progr-tra=* | --program-tr=* | --program-t=*)
1193 program_transform_name=$ac_optarg ;;
1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 ac_prev=pdfdir ;;
1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198 pdfdir=$ac_optarg ;;
1200 -psdir | --psdir | --psdi | --psd | --ps)
1201 ac_prev=psdir ;;
1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203 psdir=$ac_optarg ;;
1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206 | -silent | --silent | --silen | --sile | --sil)
1207 silent=yes ;;
1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 ac_prev=sbindir ;;
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 | --sbi=* | --sb=*)
1213 sbindir=$ac_optarg ;;
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1218 | --sha | --sh)
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 | --sha=* | --sh=*)
1224 sharedstatedir=$ac_optarg ;;
1226 -site | --site | --sit)
1227 ac_prev=site ;;
1228 -site=* | --site=* | --sit=*)
1229 site=$ac_optarg ;;
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 ac_prev=srcdir ;;
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234 srcdir=$ac_optarg ;;
1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241 sysconfdir=$ac_optarg ;;
1243 -target | --target | --targe | --targ | --tar | --ta | --t)
1244 ac_prev=target_alias ;;
1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246 target_alias=$ac_optarg ;;
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 verbose=yes ;;
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
1254 -with-* | --with-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=\$ac_optarg ;;
1270 -without-* | --without-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error $? "invalid package name: $ac_useropt"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1279 "with_$ac_useropt"
1280 "*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=no ;;
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1304 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1308 *=*)
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' | [0-9]* | *[!_$as_cr_alnum]* )
1313 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1314 esac
1315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1326 esac
1327 done
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error $? "missing argument to $ac_option"
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1336 no) ;;
1337 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 esac
1342 # Check all directory arguments for consistency.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1348 eval ac_val=\$$ac_var
1349 # Remove trailing slashes.
1350 case $ac_val in
1351 */ )
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1354 esac
1355 # Be sure to have absolute directory names.
1356 case $ac_val in
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 esac
1360 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1361 done
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1366 build=$build_alias
1367 host=$host_alias
1368 target=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1379 ac_tool_prefix=
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382 test "$silent" = yes && exec 6>/dev/null
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $? "working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $? "pwd does not report name of working directory"
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1411 /^X\(\/\/\)$/{
1412 s//\1/
1415 /^X\(\/\).*/{
1416 s//\1/
1419 s/.*/./; q'`
1420 srcdir=$ac_confdir
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 srcdir=..
1424 else
1425 ac_srcdir_defaulted=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 ac_abs_confdir=`(
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 pwd)`
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 srcdir=.
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1442 case $srcdir in
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 esac
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459 \`configure' configures sqlcipher 3.8.8.3 to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1468 Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 [PREFIX]
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1512 _ACEOF
1514 cat <<\_ACEOF
1516 System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 _ACEOF
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive ) echo "Configuration of sqlcipher 3.8.8.3:";;
1525 esac
1526 cat <<\_ACEOF
1528 Optional Features:
1529 --disable-option-checking ignore unrecognized --enable/--with options
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --enable-shared[=PKGS] build shared libraries [default=yes]
1533 --enable-static[=PKGS] build static libraries [default=yes]
1534 --enable-fast-install[=PKGS]
1535 optimize for fast installation [default=yes]
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1537 --disable-largefile omit support for large files
1538 --disable-threadsafe Disable mutexing
1539 --enable-cross-thread-connections
1540 Allow connection sharing across threads
1541 --enable-releasemode Support libtool link to release mode
1542 --enable-tempstore Use an in-ram database for temporary tables
1543 (never,no,yes,always)
1544 --disable-tcl do not build TCL extension
1545 --disable-readline disable readline support [default=detect]
1546 --enable-debug enable debugging & verbose explain
1547 --disable-amalgamation Disable the amalgamation and instead build all files
1548 separately
1549 --disable-load-extension
1550 Disable loading of external extensions
1551 --enable-gcov Enable coverage testing using gcov
1553 Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-pic try to use only PIC/non-PIC objects [default=use
1557 both]
1558 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1559 --with-crypto-lib Specify which crypto library to use
1560 --with-tcl=DIR directory containing tcl configuration
1561 (tclConfig.sh)
1562 --with-readline-lib specify readline library
1563 --with-readline-inc specify readline include paths
1565 Some influential environment variables:
1566 CC C compiler command
1567 CFLAGS C compiler flags
1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569 nonstandard directory <lib dir>
1570 LIBS libraries to pass to the linker, e.g. -l<library>
1571 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
1573 CPP C preprocessor
1574 TCLLIBDIR Where to install tcl plugin
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1579 Report bugs to the package provider.
1580 _ACEOF
1581 ac_status=$?
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 continue
1590 ac_builddir=.
1592 case "$ac_dir" in
1593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596 # A ".." for each directory in $ac_dir_suffix.
1597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 esac ;;
1602 esac
1603 ac_abs_top_builddir=$ac_pwd
1604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir=$ac_top_build_prefix
1608 case $srcdir in
1609 .) # We are building in place.
1610 ac_srcdir=.
1611 ac_top_srcdir=$ac_top_builddir_sub
1612 ac_abs_top_srcdir=$ac_pwd ;;
1613 [\\/]* | ?:[\\/]* ) # Absolute name.
1614 ac_srcdir=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir=$srcdir
1616 ac_abs_top_srcdir=$srcdir ;;
1617 *) # Relative name.
1618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 esac
1622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624 cd "$ac_dir" || { ac_status=$?; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1632 else
1633 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 fi || ac_status=$?
1635 cd "$ac_pwd" || { ac_status=$?; break; }
1636 done
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1641 cat <<\_ACEOF
1642 sqlcipher configure 3.8.8.3
1643 generated by GNU Autoconf 2.69
1645 Copyright (C) 2012 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648 _ACEOF
1649 exit
1652 ## ------------------------ ##
1653 ## Autoconf initialization. ##
1654 ## ------------------------ ##
1656 # ac_fn_c_try_compile LINENO
1657 # --------------------------
1658 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_compile ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext
1663 if { { ac_try="$ac_compile"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_compile") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest.$ac_objext; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1687 ac_retval=1
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1692 } # ac_fn_c_try_compile
1694 # ac_fn_c_try_link LINENO
1695 # -----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_link ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext conftest$ac_exeext
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest$ac_exeext && {
1720 test "$cross_compiling" = yes ||
1721 test -x conftest$ac_exeext
1722 }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=1
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1738 } # ac_fn_c_try_link
1740 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1741 # -------------------------------------------------------
1742 # Tests whether HEADER exists and can be compiled using the include files in
1743 # INCLUDES, setting the cache variable VAR accordingly.
1744 ac_fn_c_check_header_compile ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1751 else
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1755 #include <$2>
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"; then :
1758 eval "$3=yes"
1759 else
1760 eval "$3=no"
1762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 } # ac_fn_c_check_header_compile
1771 # ac_fn_c_try_cpp LINENO
1772 # ----------------------
1773 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_cpp ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if { { ac_try="$ac_cpp conftest.$ac_ext"
1778 case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } > conftest.i && {
1793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=1
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1806 } # ac_fn_c_try_cpp
1808 # ac_fn_c_try_run LINENO
1809 # ----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1811 # that executables *can* be run.
1812 ac_fn_c_try_run ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1826 { { case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_try") 2>&5
1833 ac_status=$?
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; }; }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: program exited with status $ac_status" >&5
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1842 ac_retval=$ac_status
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1848 } # ac_fn_c_try_run
1850 # ac_fn_c_check_func LINENO FUNC VAR
1851 # ----------------------------------
1852 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1853 ac_fn_c_check_func ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if eval \${$3+:} false; then :
1859 $as_echo_n "(cached) " >&6
1860 else
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1865 #define $2 innocuous_$2
1867 /* System header to define __stub macros and hopefully few prototypes,
1868 which can conflict with char $2 (); below.
1869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1870 <limits.h> exists even on freestanding compilers. */
1872 #ifdef __STDC__
1873 # include <limits.h>
1874 #else
1875 # include <assert.h>
1876 #endif
1878 #undef $2
1880 /* Override any GCC internal prototype to avoid an error.
1881 Use char because int might match the return type of a GCC
1882 builtin and then its argument prototype would still apply. */
1883 #ifdef __cplusplus
1884 extern "C"
1885 #endif
1886 char $2 ();
1887 /* The GNU C library defines this for functions which it implements
1888 to always fail with ENOSYS. Some functions are actually named
1889 something starting with __ and the normal name is an alias. */
1890 #if defined __stub_$2 || defined __stub___$2
1891 choke me
1892 #endif
1895 main ()
1897 return $2 ();
1899 return 0;
1901 _ACEOF
1902 if ac_fn_c_try_link "$LINENO"; then :
1903 eval "$3=yes"
1904 else
1905 eval "$3=no"
1907 rm -f core conftest.err conftest.$ac_objext \
1908 conftest$ac_exeext conftest.$ac_ext
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 } # ac_fn_c_check_func
1917 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1918 # -------------------------------------------
1919 # Tests whether TYPE exists after having included INCLUDES, setting cache
1920 # variable VAR accordingly.
1921 ac_fn_c_check_type ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 eval "$3=no"
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1934 main ()
1936 if (sizeof ($2))
1937 return 0;
1939 return 0;
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1947 main ()
1949 if (sizeof (($2)))
1950 return 0;
1952 return 0;
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1957 else
1958 eval "$3=yes"
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 } # ac_fn_c_check_type
1971 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1972 # -------------------------------------------------------
1973 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1974 # the include files in INCLUDES and setting the cache variable VAR
1975 # accordingly.
1976 ac_fn_c_check_header_mongrel ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if eval \${$3+:} false; then :
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 else
1989 # Is the header compilable?
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1991 $as_echo_n "checking $2 usability... " >&6; }
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_header_compiler=yes
1999 else
2000 ac_header_compiler=no
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2004 $as_echo "$ac_header_compiler" >&6; }
2006 # Is the header present?
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2008 $as_echo_n "checking $2 presence... " >&6; }
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 #include <$2>
2012 _ACEOF
2013 if ac_fn_c_try_cpp "$LINENO"; then :
2014 ac_header_preproc=yes
2015 else
2016 ac_header_preproc=no
2018 rm -f conftest.err conftest.i conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2020 $as_echo "$ac_header_preproc" >&6; }
2022 # So? What about this header?
2023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2024 yes:no: )
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2026 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030 no:yes:* )
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2032 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2034 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2036 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2038 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 esac
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \${$3+:} false; then :
2046 $as_echo_n "(cached) " >&6
2047 else
2048 eval "$3=\$ac_header_compiler"
2050 eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_header_mongrel
2057 cat >config.log <<_ACEOF
2058 This file contains any messages produced by compilers while
2059 running configure, to aid debugging if configure makes a mistake.
2061 It was created by sqlcipher $as_me 3.8.8.3, which was
2062 generated by GNU Autoconf 2.69. Invocation command line was
2064 $ $0 $@
2066 _ACEOF
2067 exec 5>>config.log
2069 cat <<_ASUNAME
2070 ## --------- ##
2071 ## Platform. ##
2072 ## --------- ##
2074 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2080 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2083 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2084 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2085 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2087 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2088 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2089 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2091 _ASUNAME
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 $as_echo "PATH: $as_dir"
2099 done
2100 IFS=$as_save_IFS
2102 } >&5
2104 cat >&5 <<_ACEOF
2107 ## ----------- ##
2108 ## Core tests. ##
2109 ## ----------- ##
2111 _ACEOF
2114 # Keep a trace of the command line.
2115 # Strip out --no-create and --no-recursion so they do not pile up.
2116 # Strip out --silent because we don't want to record it for future runs.
2117 # Also quote any args containing shell meta-characters.
2118 # Make two passes to allow for proper duplicate-argument suppression.
2119 ac_configure_args=
2120 ac_configure_args0=
2121 ac_configure_args1=
2122 ac_must_keep_next=false
2123 for ac_pass in 1 2
2125 for ac_arg
2127 case $ac_arg in
2128 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130 | -silent | --silent | --silen | --sile | --sil)
2131 continue ;;
2132 *\'*)
2133 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2134 esac
2135 case $ac_pass in
2136 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2138 as_fn_append ac_configure_args1 " '$ac_arg'"
2139 if test $ac_must_keep_next = true; then
2140 ac_must_keep_next=false # Got value, back to normal.
2141 else
2142 case $ac_arg in
2143 *=* | --config-cache | -C | -disable-* | --disable-* \
2144 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2145 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2146 | -with-* | --with-* | -without-* | --without-* | --x)
2147 case "$ac_configure_args0 " in
2148 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2149 esac
2151 -* ) ac_must_keep_next=true ;;
2152 esac
2154 as_fn_append ac_configure_args " '$ac_arg'"
2156 esac
2157 done
2158 done
2159 { ac_configure_args0=; unset ac_configure_args0;}
2160 { ac_configure_args1=; unset ac_configure_args1;}
2162 # When interrupted or exit'd, cleanup temporary files, and complete
2163 # config.log. We remove comments because anyway the quotes in there
2164 # would cause problems or look ugly.
2165 # WARNING: Use '\'' to represent an apostrophe within the trap.
2166 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2167 trap 'exit_status=$?
2168 # Save into config.log some information that might help in debugging.
2170 echo
2172 $as_echo "## ---------------- ##
2173 ## Cache variables. ##
2174 ## ---------------- ##"
2175 echo
2176 # The following way of writing the cache mishandles newlines in values,
2178 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2179 eval ac_val=\$$ac_var
2180 case $ac_val in #(
2181 *${as_nl}*)
2182 case $ac_var in #(
2183 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2184 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2185 esac
2186 case $ac_var in #(
2187 _ | IFS | as_nl) ;; #(
2188 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2189 *) { eval $ac_var=; unset $ac_var;} ;;
2190 esac ;;
2191 esac
2192 done
2193 (set) 2>&1 |
2194 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2195 *${as_nl}ac_space=\ *)
2196 sed -n \
2197 "s/'\''/'\''\\\\'\'''\''/g;
2198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2199 ;; #(
2201 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2203 esac |
2204 sort
2206 echo
2208 $as_echo "## ----------------- ##
2209 ## Output variables. ##
2210 ## ----------------- ##"
2211 echo
2212 for ac_var in $ac_subst_vars
2214 eval ac_val=\$$ac_var
2215 case $ac_val in
2216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217 esac
2218 $as_echo "$ac_var='\''$ac_val'\''"
2219 done | sort
2220 echo
2222 if test -n "$ac_subst_files"; then
2223 $as_echo "## ------------------- ##
2224 ## File substitutions. ##
2225 ## ------------------- ##"
2226 echo
2227 for ac_var in $ac_subst_files
2229 eval ac_val=\$$ac_var
2230 case $ac_val in
2231 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2232 esac
2233 $as_echo "$ac_var='\''$ac_val'\''"
2234 done | sort
2235 echo
2238 if test -s confdefs.h; then
2239 $as_echo "## ----------- ##
2240 ## confdefs.h. ##
2241 ## ----------- ##"
2242 echo
2243 cat confdefs.h
2244 echo
2246 test "$ac_signal" != 0 &&
2247 $as_echo "$as_me: caught signal $ac_signal"
2248 $as_echo "$as_me: exit $exit_status"
2249 } >&5
2250 rm -f core *.core core.conftest.* &&
2251 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2252 exit $exit_status
2254 for ac_signal in 1 2 13 15; do
2255 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2256 done
2257 ac_signal=0
2259 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2260 rm -f -r conftest* confdefs.h
2262 $as_echo "/* confdefs.h */" > confdefs.h
2264 # Predefined preprocessor variables.
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_NAME "$PACKAGE_NAME"
2268 _ACEOF
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2272 _ACEOF
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2276 _ACEOF
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_STRING "$PACKAGE_STRING"
2280 _ACEOF
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2284 _ACEOF
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_URL "$PACKAGE_URL"
2288 _ACEOF
2291 # Let the site file select an alternate cache file if it wants to.
2292 # Prefer an explicitly selected file to automatically selected ones.
2293 ac_site_file1=NONE
2294 ac_site_file2=NONE
2295 if test -n "$CONFIG_SITE"; then
2296 # We do not want a PATH search for config.site.
2297 case $CONFIG_SITE in #((
2298 -*) ac_site_file1=./$CONFIG_SITE;;
2299 */*) ac_site_file1=$CONFIG_SITE;;
2300 *) ac_site_file1=./$CONFIG_SITE;;
2301 esac
2302 elif test "x$prefix" != xNONE; then
2303 ac_site_file1=$prefix/share/config.site
2304 ac_site_file2=$prefix/etc/config.site
2305 else
2306 ac_site_file1=$ac_default_prefix/share/config.site
2307 ac_site_file2=$ac_default_prefix/etc/config.site
2309 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2311 test "x$ac_site_file" = xNONE && continue
2312 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2314 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2315 sed 's/^/| /' "$ac_site_file" >&5
2316 . "$ac_site_file" \
2317 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 as_fn_error $? "failed to load site script $ac_site_file
2320 See \`config.log' for more details" "$LINENO" 5; }
2322 done
2324 if test -r "$cache_file"; then
2325 # Some versions of bash will fail to source /dev/null (special files
2326 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2327 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2329 $as_echo "$as_me: loading cache $cache_file" >&6;}
2330 case $cache_file in
2331 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2332 *) . "./$cache_file";;
2333 esac
2335 else
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2337 $as_echo "$as_me: creating cache $cache_file" >&6;}
2338 >$cache_file
2341 # Check that the precious variables saved in the cache have kept the same
2342 # value.
2343 ac_cache_corrupted=false
2344 for ac_var in $ac_precious_vars; do
2345 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2346 eval ac_new_set=\$ac_env_${ac_var}_set
2347 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2348 eval ac_new_val=\$ac_env_${ac_var}_value
2349 case $ac_old_set,$ac_new_set in
2350 set,)
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2352 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2353 ac_cache_corrupted=: ;;
2354 ,set)
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2356 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2357 ac_cache_corrupted=: ;;
2358 ,);;
2360 if test "x$ac_old_val" != "x$ac_new_val"; then
2361 # differences in whitespace do not lead to failure.
2362 ac_old_val_w=`echo x $ac_old_val`
2363 ac_new_val_w=`echo x $ac_new_val`
2364 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2366 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2367 ac_cache_corrupted=:
2368 else
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2370 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2371 eval $ac_var=\$ac_old_val
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2374 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2376 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2377 fi;;
2378 esac
2379 # Pass precious variables to config.status.
2380 if test "$ac_new_set" = set; then
2381 case $ac_new_val in
2382 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2383 *) ac_arg=$ac_var=$ac_new_val ;;
2384 esac
2385 case " $ac_configure_args " in
2386 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2387 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2388 esac
2390 done
2391 if $ac_cache_corrupted; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2395 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2396 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2398 ## -------------------- ##
2399 ## Main body of script. ##
2400 ## -------------------- ##
2402 ac_ext=c
2403 ac_cpp='$CPP $CPPFLAGS'
2404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2411 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2412 as_fn_error $? "configure script is out of date:
2413 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2414 top level VERSION file = $sqlite_version_sanity_check
2415 please regen with autoconf" "$LINENO" 5
2418 #########
2419 # Programs needed
2421 case `pwd` in
2422 *\ * | *\ *)
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2424 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2425 esac
2429 macro_version='2.2.6'
2430 macro_revision='1.3012'
2444 ltmain="$ac_aux_dir/ltmain.sh"
2446 ac_aux_dir=
2447 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2448 if test -f "$ac_dir/install-sh"; then
2449 ac_aux_dir=$ac_dir
2450 ac_install_sh="$ac_aux_dir/install-sh -c"
2451 break
2452 elif test -f "$ac_dir/install.sh"; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/install.sh -c"
2455 break
2456 elif test -f "$ac_dir/shtool"; then
2457 ac_aux_dir=$ac_dir
2458 ac_install_sh="$ac_aux_dir/shtool install -c"
2459 break
2461 done
2462 if test -z "$ac_aux_dir"; then
2463 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2466 # These three variables are undocumented and unsupported,
2467 # and are intended to be withdrawn in a future Autoconf release.
2468 # They can cause serious problems if a builder's source tree is in a directory
2469 # whose full name contains unusual characters.
2470 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2471 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2472 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2475 # Make sure we can run config.sub.
2476 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2477 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2480 $as_echo_n "checking build system type... " >&6; }
2481 if ${ac_cv_build+:} false; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 ac_build_alias=$build_alias
2485 test "x$ac_build_alias" = x &&
2486 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2487 test "x$ac_build_alias" = x &&
2488 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2489 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2494 $as_echo "$ac_cv_build" >&6; }
2495 case $ac_cv_build in
2496 *-*-*) ;;
2497 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2498 esac
2499 build=$ac_cv_build
2500 ac_save_IFS=$IFS; IFS='-'
2501 set x $ac_cv_build
2502 shift
2503 build_cpu=$1
2504 build_vendor=$2
2505 shift; shift
2506 # Remember, the first character of IFS is used to create $*,
2507 # except with old shells:
2508 build_os=$*
2509 IFS=$ac_save_IFS
2510 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2514 $as_echo_n "checking host system type... " >&6; }
2515 if ${ac_cv_host+:} false; then :
2516 $as_echo_n "(cached) " >&6
2517 else
2518 if test "x$host_alias" = x; then
2519 ac_cv_host=$ac_cv_build
2520 else
2521 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2522 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2527 $as_echo "$ac_cv_host" >&6; }
2528 case $ac_cv_host in
2529 *-*-*) ;;
2530 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2531 esac
2532 host=$ac_cv_host
2533 ac_save_IFS=$IFS; IFS='-'
2534 set x $ac_cv_host
2535 shift
2536 host_cpu=$1
2537 host_vendor=$2
2538 shift; shift
2539 # Remember, the first character of IFS is used to create $*,
2540 # except with old shells:
2541 host_os=$*
2542 IFS=$ac_save_IFS
2543 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2546 ac_ext=c
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551 if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_CC+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2573 done
2574 done
2575 IFS=$as_save_IFS
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582 $as_echo "$CC" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2590 if test -z "$ac_cv_prog_CC"; then
2591 ac_ct_CC=$CC
2592 # Extract the first word of "gcc", so it can be a program name with args.
2593 set dummy gcc; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test -n "$ac_ct_CC"; then
2600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609 ac_cv_prog_ac_ct_CC="gcc"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2613 done
2614 done
2615 IFS=$as_save_IFS
2619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2620 if test -n "$ac_ct_CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2622 $as_echo "$ac_ct_CC" >&6; }
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2628 if test "x$ac_ct_CC" = x; then
2629 CC=""
2630 else
2631 case $cross_compiling:$ac_tool_warned in
2632 yes:)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2635 ac_tool_warned=yes ;;
2636 esac
2637 CC=$ac_ct_CC
2639 else
2640 CC="$ac_cv_prog_CC"
2643 if test -z "$CC"; then
2644 if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2646 set dummy ${ac_tool_prefix}cc; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if ${ac_cv_prog_CC+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_CC="${ac_tool_prefix}cc"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2666 done
2667 done
2668 IFS=$as_save_IFS
2672 CC=$ac_cv_prog_CC
2673 if test -n "$CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675 $as_echo "$CC" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2684 if test -z "$CC"; then
2685 # Extract the first word of "cc", so it can be a program name with args.
2686 set dummy cc; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 else
2695 ac_prog_rejected=no
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2704 ac_prog_rejected=yes
2705 continue
2707 ac_cv_prog_CC="cc"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2711 done
2712 done
2713 IFS=$as_save_IFS
2715 if test $ac_prog_rejected = yes; then
2716 # We found a bogon in the path, so make sure we never use it.
2717 set dummy $ac_cv_prog_CC
2718 shift
2719 if test $# != 0; then
2720 # We chose a different compiler from the bogus one.
2721 # However, it has the same basename, so the bogon will be chosen
2722 # first if we set CC to just the basename; use the full file name.
2723 shift
2724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2729 CC=$ac_cv_prog_CC
2730 if test -n "$CC"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2732 $as_echo "$CC" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2740 if test -z "$CC"; then
2741 if test -n "$ac_tool_prefix"; then
2742 for ac_prog in cl.exe
2744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if ${ac_cv_prog_CC+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 break 2
2765 done
2766 done
2767 IFS=$as_save_IFS
2771 CC=$ac_cv_prog_CC
2772 if test -n "$CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774 $as_echo "$CC" >&6; }
2775 else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2781 test -n "$CC" && break
2782 done
2784 if test -z "$CC"; then
2785 ac_ct_CC=$CC
2786 for ac_prog in cl.exe
2788 # Extract the first word of "$ac_prog", so it can be a program name with args.
2789 set dummy $ac_prog; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$ac_ct_CC"; then
2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_ac_ct_CC="$ac_prog"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2809 done
2810 done
2811 IFS=$as_save_IFS
2815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816 if test -n "$ac_ct_CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818 $as_echo "$ac_ct_CC" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2825 test -n "$ac_ct_CC" && break
2826 done
2828 if test "x$ac_ct_CC" = x; then
2829 CC=""
2830 else
2831 case $cross_compiling:$ac_tool_warned in
2832 yes:)
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835 ac_tool_warned=yes ;;
2836 esac
2837 CC=$ac_ct_CC
2844 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2846 as_fn_error $? "no acceptable C compiler found in \$PATH
2847 See \`config.log' for more details" "$LINENO" 5; }
2849 # Provide some information about the compiler.
2850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2851 set X $ac_compile
2852 ac_compiler=$2
2853 for ac_option in --version -v -V -qversion; do
2854 { { ac_try="$ac_compiler $ac_option >&5"
2855 case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858 esac
2859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2860 $as_echo "$ac_try_echo"; } >&5
2861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2862 ac_status=$?
2863 if test -s conftest.err; then
2864 sed '10a\
2865 ... rest of stderr output deleted ...
2866 10q' conftest.err >conftest.er1
2867 cat conftest.er1 >&5
2869 rm -f conftest.er1 conftest.err
2870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2871 test $ac_status = 0; }
2872 done
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2878 main ()
2882 return 0;
2884 _ACEOF
2885 ac_clean_files_save=$ac_clean_files
2886 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2887 # Try to create an executable without -o first, disregard a.out.
2888 # It will help us diagnose broken compilers, and finding out an intuition
2889 # of exeext.
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2891 $as_echo_n "checking whether the C compiler works... " >&6; }
2892 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2894 # The possible output files:
2895 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2897 ac_rmfiles=
2898 for ac_file in $ac_files
2900 case $ac_file in
2901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2902 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2903 esac
2904 done
2905 rm -f $ac_rmfiles
2907 if { { ac_try="$ac_link_default"
2908 case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911 esac
2912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2913 $as_echo "$ac_try_echo"; } >&5
2914 (eval "$ac_link_default") 2>&5
2915 ac_status=$?
2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917 test $ac_status = 0; }; then :
2918 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2919 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2920 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2921 # so that the user can short-circuit this test for compilers unknown to
2922 # Autoconf.
2923 for ac_file in $ac_files ''
2925 test -f "$ac_file" || continue
2926 case $ac_file in
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2929 [ab].out )
2930 # We found the default executable, but exeext='' is most
2931 # certainly right.
2932 break;;
2933 *.* )
2934 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2935 then :; else
2936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938 # We set ac_cv_exeext here because the later test for it is not
2939 # safe: cross compilers may not add the suffix if given an `-o'
2940 # argument, so we may need to know it at that point already.
2941 # Even if this section looks crufty: it has the advantage of
2942 # actually working.
2943 break;;
2945 break;;
2946 esac
2947 done
2948 test "$ac_cv_exeext" = no && ac_cv_exeext=
2950 else
2951 ac_file=''
2953 if test -z "$ac_file"; then :
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 $as_echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961 as_fn_error 77 "C compiler cannot create executables
2962 See \`config.log' for more details" "$LINENO" 5; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965 $as_echo "yes" >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2968 $as_echo_n "checking for C compiler default output file name... " >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2970 $as_echo "$ac_file" >&6; }
2971 ac_exeext=$ac_cv_exeext
2973 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2974 ac_clean_files=$ac_clean_files_save
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2976 $as_echo_n "checking for suffix of executables... " >&6; }
2977 if { { ac_try="$ac_link"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_link") 2>&5
2985 ac_status=$?
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; then :
2988 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2989 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2990 # work properly (i.e., refer to `conftest.exe'), while it won't with
2991 # `rm'.
2992 for ac_file in conftest.exe conftest conftest.*; do
2993 test -f "$ac_file" || continue
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2997 break;;
2998 * ) break;;
2999 esac
3000 done
3001 else
3002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3005 See \`config.log' for more details" "$LINENO" 5; }
3007 rm -f conftest conftest$ac_cv_exeext
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3009 $as_echo "$ac_cv_exeext" >&6; }
3011 rm -f conftest.$ac_ext
3012 EXEEXT=$ac_cv_exeext
3013 ac_exeext=$EXEEXT
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3016 #include <stdio.h>
3018 main ()
3020 FILE *f = fopen ("conftest.out", "w");
3021 return ferror (f) || fclose (f) != 0;
3024 return 0;
3026 _ACEOF
3027 ac_clean_files="$ac_clean_files conftest.out"
3028 # Check that the compiler produces executables we can run. If not, either
3029 # the compiler is broken, or we cross compile.
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3031 $as_echo_n "checking whether we are cross compiling... " >&6; }
3032 if test "$cross_compiling" != yes; then
3033 { { ac_try="$ac_link"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040 (eval "$ac_link") 2>&5
3041 ac_status=$?
3042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043 test $ac_status = 0; }
3044 if { ac_try='./conftest$ac_cv_exeext'
3045 { { case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_try") 2>&5
3052 ac_status=$?
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; }; then
3055 cross_compiling=no
3056 else
3057 if test "$cross_compiling" = maybe; then
3058 cross_compiling=yes
3059 else
3060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 as_fn_error $? "cannot run C compiled programs.
3063 If you meant to cross compile, use \`--host'.
3064 See \`config.log' for more details" "$LINENO" 5; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3069 $as_echo "$cross_compiling" >&6; }
3071 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3072 ac_clean_files=$ac_clean_files_save
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3074 $as_echo_n "checking for suffix of object files... " >&6; }
3075 if ${ac_cv_objext+:} false; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h. */
3082 main ()
3086 return 0;
3088 _ACEOF
3089 rm -f conftest.o conftest.obj
3090 if { { ac_try="$ac_compile"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096 $as_echo "$ac_try_echo"; } >&5
3097 (eval "$ac_compile") 2>&5
3098 ac_status=$?
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }; then :
3101 for ac_file in conftest.o conftest.obj conftest.*; do
3102 test -f "$ac_file" || continue;
3103 case $ac_file in
3104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3105 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3106 break;;
3107 esac
3108 done
3109 else
3110 $as_echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 as_fn_error $? "cannot compute suffix of object files: cannot compile
3116 See \`config.log' for more details" "$LINENO" 5; }
3118 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3121 $as_echo "$ac_cv_objext" >&6; }
3122 OBJEXT=$ac_cv_objext
3123 ac_objext=$OBJEXT
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3125 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3126 if ${ac_cv_c_compiler_gnu+:} false; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130 /* end confdefs.h. */
3133 main ()
3135 #ifndef __GNUC__
3136 choke me
3137 #endif
3140 return 0;
3142 _ACEOF
3143 if ac_fn_c_try_compile "$LINENO"; then :
3144 ac_compiler_gnu=yes
3145 else
3146 ac_compiler_gnu=no
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3153 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3154 if test $ac_compiler_gnu = yes; then
3155 GCC=yes
3156 else
3157 GCC=
3159 ac_test_CFLAGS=${CFLAGS+set}
3160 ac_save_CFLAGS=$CFLAGS
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3162 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3163 if ${ac_cv_prog_cc_g+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 ac_save_c_werror_flag=$ac_c_werror_flag
3167 ac_c_werror_flag=yes
3168 ac_cv_prog_cc_g=no
3169 CFLAGS="-g"
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3174 main ()
3178 return 0;
3180 _ACEOF
3181 if ac_fn_c_try_compile "$LINENO"; then :
3182 ac_cv_prog_cc_g=yes
3183 else
3184 CFLAGS=""
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3189 main ()
3193 return 0;
3195 _ACEOF
3196 if ac_fn_c_try_compile "$LINENO"; then :
3198 else
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3200 CFLAGS="-g"
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3205 main ()
3209 return 0;
3211 _ACEOF
3212 if ac_fn_c_try_compile "$LINENO"; then :
3213 ac_cv_prog_cc_g=yes
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_c_werror_flag=$ac_save_c_werror_flag
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3223 $as_echo "$ac_cv_prog_cc_g" >&6; }
3224 if test "$ac_test_CFLAGS" = set; then
3225 CFLAGS=$ac_save_CFLAGS
3226 elif test $ac_cv_prog_cc_g = yes; then
3227 if test "$GCC" = yes; then
3228 CFLAGS="-g -O2"
3229 else
3230 CFLAGS="-g"
3232 else
3233 if test "$GCC" = yes; then
3234 CFLAGS="-O2"
3235 else
3236 CFLAGS=
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3240 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3241 if ${ac_cv_prog_cc_c89+:} false; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 ac_cv_prog_cc_c89=no
3245 ac_save_CC=$CC
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3248 #include <stdarg.h>
3249 #include <stdio.h>
3250 struct stat;
3251 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3252 struct buf { int x; };
3253 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3254 static char *e (p, i)
3255 char **p;
3256 int i;
3258 return p[i];
3260 static char *f (char * (*g) (char **, int), char **p, ...)
3262 char *s;
3263 va_list v;
3264 va_start (v,p);
3265 s = g (p, va_arg (v,int));
3266 va_end (v);
3267 return s;
3270 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3271 function prototypes and stuff, but not '\xHH' hex character constants.
3272 These don't provoke an error unfortunately, instead are silently treated
3273 as 'x'. The following induces an error, until -std is added to get
3274 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3275 array size at least. It's necessary to write '\x00'==0 to get something
3276 that's true only with -std. */
3277 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3279 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3280 inside strings and character constants. */
3281 #define FOO(x) 'x'
3282 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3284 int test (int i, double x);
3285 struct s1 {int (*f) (int a);};
3286 struct s2 {int (*f) (double a);};
3287 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3288 int argc;
3289 char **argv;
3291 main ()
3293 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3295 return 0;
3297 _ACEOF
3298 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3299 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3301 CC="$ac_save_CC $ac_arg"
3302 if ac_fn_c_try_compile "$LINENO"; then :
3303 ac_cv_prog_cc_c89=$ac_arg
3305 rm -f core conftest.err conftest.$ac_objext
3306 test "x$ac_cv_prog_cc_c89" != "xno" && break
3307 done
3308 rm -f conftest.$ac_ext
3309 CC=$ac_save_CC
3312 # AC_CACHE_VAL
3313 case "x$ac_cv_prog_cc_c89" in
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3316 $as_echo "none needed" >&6; } ;;
3317 xno)
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3319 $as_echo "unsupported" >&6; } ;;
3321 CC="$CC $ac_cv_prog_cc_c89"
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3323 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3324 esac
3325 if test "x$ac_cv_prog_cc_c89" != xno; then :
3329 ac_ext=c
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3336 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3337 if ${ac_cv_path_SED+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3341 for ac_i in 1 2 3 4 5 6 7; do
3342 ac_script="$ac_script$as_nl$ac_script"
3343 done
3344 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3345 { ac_script=; unset ac_script;}
3346 if test -z "$SED"; then
3347 ac_path_SED_found=false
3348 # Loop through the user's path and test for each of PROGNAME-LIST
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_prog in sed gsed; do
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3357 as_fn_executable_p "$ac_path_SED" || continue
3358 # Check for GNU ac_path_SED and select it if it is found.
3359 # Check for GNU $ac_path_SED
3360 case `"$ac_path_SED" --version 2>&1` in
3361 *GNU*)
3362 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3364 ac_count=0
3365 $as_echo_n 0123456789 >"conftest.in"
3366 while :
3368 cat "conftest.in" "conftest.in" >"conftest.tmp"
3369 mv "conftest.tmp" "conftest.in"
3370 cp "conftest.in" "conftest.nl"
3371 $as_echo '' >> "conftest.nl"
3372 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3374 as_fn_arith $ac_count + 1 && ac_count=$as_val
3375 if test $ac_count -gt ${ac_path_SED_max-0}; then
3376 # Best one so far, save it but keep looking for a better one
3377 ac_cv_path_SED="$ac_path_SED"
3378 ac_path_SED_max=$ac_count
3380 # 10*(2^10) chars as input seems more than enough
3381 test $ac_count -gt 10 && break
3382 done
3383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3384 esac
3386 $ac_path_SED_found && break 3
3387 done
3388 done
3389 done
3390 IFS=$as_save_IFS
3391 if test -z "$ac_cv_path_SED"; then
3392 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3394 else
3395 ac_cv_path_SED=$SED
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3400 $as_echo "$ac_cv_path_SED" >&6; }
3401 SED="$ac_cv_path_SED"
3402 rm -f conftest.sed
3404 test -z "$SED" && SED=sed
3405 Xsed="$SED -e 1s/^X//"
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3418 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3419 if ${ac_cv_path_GREP+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test -z "$GREP"; then
3423 ac_path_GREP_found=false
3424 # Loop through the user's path and test for each of PROGNAME-LIST
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_prog in grep ggrep; do
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3433 as_fn_executable_p "$ac_path_GREP" || continue
3434 # Check for GNU ac_path_GREP and select it if it is found.
3435 # Check for GNU $ac_path_GREP
3436 case `"$ac_path_GREP" --version 2>&1` in
3437 *GNU*)
3438 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3440 ac_count=0
3441 $as_echo_n 0123456789 >"conftest.in"
3442 while :
3444 cat "conftest.in" "conftest.in" >"conftest.tmp"
3445 mv "conftest.tmp" "conftest.in"
3446 cp "conftest.in" "conftest.nl"
3447 $as_echo 'GREP' >> "conftest.nl"
3448 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3450 as_fn_arith $ac_count + 1 && ac_count=$as_val
3451 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3452 # Best one so far, save it but keep looking for a better one
3453 ac_cv_path_GREP="$ac_path_GREP"
3454 ac_path_GREP_max=$ac_count
3456 # 10*(2^10) chars as input seems more than enough
3457 test $ac_count -gt 10 && break
3458 done
3459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3460 esac
3462 $ac_path_GREP_found && break 3
3463 done
3464 done
3465 done
3466 IFS=$as_save_IFS
3467 if test -z "$ac_cv_path_GREP"; then
3468 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3470 else
3471 ac_cv_path_GREP=$GREP
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3476 $as_echo "$ac_cv_path_GREP" >&6; }
3477 GREP="$ac_cv_path_GREP"
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3481 $as_echo_n "checking for egrep... " >&6; }
3482 if ${ac_cv_path_EGREP+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3486 then ac_cv_path_EGREP="$GREP -E"
3487 else
3488 if test -z "$EGREP"; then
3489 ac_path_EGREP_found=false
3490 # Loop through the user's path and test for each of PROGNAME-LIST
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_prog in egrep; do
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3499 as_fn_executable_p "$ac_path_EGREP" || continue
3500 # Check for GNU ac_path_EGREP and select it if it is found.
3501 # Check for GNU $ac_path_EGREP
3502 case `"$ac_path_EGREP" --version 2>&1` in
3503 *GNU*)
3504 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3506 ac_count=0
3507 $as_echo_n 0123456789 >"conftest.in"
3508 while :
3510 cat "conftest.in" "conftest.in" >"conftest.tmp"
3511 mv "conftest.tmp" "conftest.in"
3512 cp "conftest.in" "conftest.nl"
3513 $as_echo 'EGREP' >> "conftest.nl"
3514 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3516 as_fn_arith $ac_count + 1 && ac_count=$as_val
3517 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3518 # Best one so far, save it but keep looking for a better one
3519 ac_cv_path_EGREP="$ac_path_EGREP"
3520 ac_path_EGREP_max=$ac_count
3522 # 10*(2^10) chars as input seems more than enough
3523 test $ac_count -gt 10 && break
3524 done
3525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3526 esac
3528 $ac_path_EGREP_found && break 3
3529 done
3530 done
3531 done
3532 IFS=$as_save_IFS
3533 if test -z "$ac_cv_path_EGREP"; then
3534 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3536 else
3537 ac_cv_path_EGREP=$EGREP
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3543 $as_echo "$ac_cv_path_EGREP" >&6; }
3544 EGREP="$ac_cv_path_EGREP"
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3548 $as_echo_n "checking for fgrep... " >&6; }
3549 if ${ac_cv_path_FGREP+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3553 then ac_cv_path_FGREP="$GREP -F"
3554 else
3555 if test -z "$FGREP"; then
3556 ac_path_FGREP_found=false
3557 # Loop through the user's path and test for each of PROGNAME-LIST
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_prog in fgrep; do
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3566 as_fn_executable_p "$ac_path_FGREP" || continue
3567 # Check for GNU ac_path_FGREP and select it if it is found.
3568 # Check for GNU $ac_path_FGREP
3569 case `"$ac_path_FGREP" --version 2>&1` in
3570 *GNU*)
3571 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3573 ac_count=0
3574 $as_echo_n 0123456789 >"conftest.in"
3575 while :
3577 cat "conftest.in" "conftest.in" >"conftest.tmp"
3578 mv "conftest.tmp" "conftest.in"
3579 cp "conftest.in" "conftest.nl"
3580 $as_echo 'FGREP' >> "conftest.nl"
3581 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3583 as_fn_arith $ac_count + 1 && ac_count=$as_val
3584 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3585 # Best one so far, save it but keep looking for a better one
3586 ac_cv_path_FGREP="$ac_path_FGREP"
3587 ac_path_FGREP_max=$ac_count
3589 # 10*(2^10) chars as input seems more than enough
3590 test $ac_count -gt 10 && break
3591 done
3592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3593 esac
3595 $ac_path_FGREP_found && break 3
3596 done
3597 done
3598 done
3599 IFS=$as_save_IFS
3600 if test -z "$ac_cv_path_FGREP"; then
3601 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3603 else
3604 ac_cv_path_FGREP=$FGREP
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3610 $as_echo "$ac_cv_path_FGREP" >&6; }
3611 FGREP="$ac_cv_path_FGREP"
3614 test -z "$GREP" && GREP=grep
3634 # Check whether --with-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then :
3636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3637 else
3638 with_gnu_ld=no
3641 ac_prog=ld
3642 if test "$GCC" = yes; then
3643 # Check if gcc -print-prog-name=ld gives a path.
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3645 $as_echo_n "checking for ld used by $CC... " >&6; }
3646 case $host in
3647 *-*-mingw*)
3648 # gcc leaves a trailing carriage return which upsets mingw
3649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3652 esac
3653 case $ac_prog in
3654 # Accept absolute paths.
3655 [\\/]* | ?:[\\/]*)
3656 re_direlt='/[^/][^/]*/\.\./'
3657 # Canonicalize the pathname of ld
3658 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3659 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3660 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3661 done
3662 test -z "$LD" && LD="$ac_prog"
3665 # If it fails, then pretend we aren't using GCC.
3666 ac_prog=ld
3669 # If it is relative, then search for the first ld in PATH.
3670 with_gnu_ld=unknown
3672 esac
3673 elif test "$with_gnu_ld" = yes; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3675 $as_echo_n "checking for GNU ld... " >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3678 $as_echo_n "checking for non-GNU ld... " >&6; }
3680 if ${lt_cv_path_LD+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 if test -z "$LD"; then
3684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3685 for ac_dir in $PATH; do
3686 IFS="$lt_save_ifs"
3687 test -z "$ac_dir" && ac_dir=.
3688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3689 lt_cv_path_LD="$ac_dir/$ac_prog"
3690 # Check to see if the program is GNU ld. I'd rather use --version,
3691 # but apparently some variants of GNU ld only accept -v.
3692 # Break only if it was the GNU/non-GNU ld that we prefer.
3693 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3694 *GNU* | *'with BFD'*)
3695 test "$with_gnu_ld" != no && break
3698 test "$with_gnu_ld" != yes && break
3700 esac
3702 done
3703 IFS="$lt_save_ifs"
3704 else
3705 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3709 LD="$lt_cv_path_LD"
3710 if test -n "$LD"; then
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3712 $as_echo "$LD" >&6; }
3713 else
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 $as_echo "no" >&6; }
3717 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3719 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3720 if ${lt_cv_prog_gnu_ld+:} false; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3724 case `$LD -v 2>&1 </dev/null` in
3725 *GNU* | *'with BFD'*)
3726 lt_cv_prog_gnu_ld=yes
3729 lt_cv_prog_gnu_ld=no
3731 esac
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3734 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3735 with_gnu_ld=$lt_cv_prog_gnu_ld
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3746 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3747 if ${lt_cv_path_NM+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$NM"; then
3751 # Let the user override the test.
3752 lt_cv_path_NM="$NM"
3753 else
3754 lt_nm_to_check="${ac_tool_prefix}nm"
3755 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3756 lt_nm_to_check="$lt_nm_to_check nm"
3758 for lt_tmp_nm in $lt_nm_to_check; do
3759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3760 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3761 IFS="$lt_save_ifs"
3762 test -z "$ac_dir" && ac_dir=.
3763 tmp_nm="$ac_dir/$lt_tmp_nm"
3764 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3765 # Check to see if the nm accepts a BSD-compat flag.
3766 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3767 # nm: unknown option "B" ignored
3768 # Tru64's nm complains that /dev/null is an invalid object file
3769 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3770 */dev/null* | *'Invalid file or object type'*)
3771 lt_cv_path_NM="$tmp_nm -B"
3772 break
3775 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3776 */dev/null*)
3777 lt_cv_path_NM="$tmp_nm -p"
3778 break
3781 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3782 continue # so that we can try to find one that supports BSD flags
3784 esac
3786 esac
3788 done
3789 IFS="$lt_save_ifs"
3790 done
3791 : ${lt_cv_path_NM=no}
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3795 $as_echo "$lt_cv_path_NM" >&6; }
3796 if test "$lt_cv_path_NM" != "no"; then
3797 NM="$lt_cv_path_NM"
3798 else
3799 # Didn't find any BSD compatible name lister, look for dumpbin.
3800 if test -n "$ac_tool_prefix"; then
3801 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if ${ac_cv_prog_DUMPBIN+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 if test -n "$DUMPBIN"; then
3811 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3824 done
3825 done
3826 IFS=$as_save_IFS
3830 DUMPBIN=$ac_cv_prog_DUMPBIN
3831 if test -n "$DUMPBIN"; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3833 $as_echo "$DUMPBIN" >&6; }
3834 else
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3840 test -n "$DUMPBIN" && break
3841 done
3843 if test -z "$DUMPBIN"; then
3844 ac_ct_DUMPBIN=$DUMPBIN
3845 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$ac_ct_DUMPBIN"; then
3855 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3870 IFS=$as_save_IFS
3874 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3875 if test -n "$ac_ct_DUMPBIN"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3877 $as_echo "$ac_ct_DUMPBIN" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 test -n "$ac_ct_DUMPBIN" && break
3885 done
3887 if test "x$ac_ct_DUMPBIN" = x; then
3888 DUMPBIN=":"
3889 else
3890 case $cross_compiling:$ac_tool_warned in
3891 yes:)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3895 esac
3896 DUMPBIN=$ac_ct_DUMPBIN
3901 if test "$DUMPBIN" != ":"; then
3902 NM="$DUMPBIN"
3905 test -z "$NM" && NM=nm
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3913 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3914 if ${lt_cv_nm_interface+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 lt_cv_nm_interface="BSD nm"
3918 echo "int some_variable = 0;" > conftest.$ac_ext
3919 (eval echo "\"\$as_me:3919: $ac_compile\"" >&5)
3920 (eval "$ac_compile" 2>conftest.err)
3921 cat conftest.err >&5
3922 (eval echo "\"\$as_me:3922: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3923 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3924 cat conftest.err >&5
3925 (eval echo "\"\$as_me:3925: output\"" >&5)
3926 cat conftest.out >&5
3927 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3928 lt_cv_nm_interface="MS dumpbin"
3930 rm -f conftest*
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3933 $as_echo "$lt_cv_nm_interface" >&6; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3936 $as_echo_n "checking whether ln -s works... " >&6; }
3937 LN_S=$as_ln_s
3938 if test "$LN_S" = "ln -s"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3941 else
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3943 $as_echo "no, using $LN_S" >&6; }
3946 # find the maximum length of command line arguments
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3948 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3949 if ${lt_cv_sys_max_cmd_len+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3953 teststring="ABCD"
3955 case $build_os in
3956 msdosdjgpp*)
3957 # On DJGPP, this test can blow up pretty badly due to problems in libc
3958 # (any single argument exceeding 2000 bytes causes a buffer overrun
3959 # during glob expansion). Even if it were fixed, the result of this
3960 # check would be larger than it should be.
3961 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3964 gnu*)
3965 # Under GNU Hurd, this test is not required because there is
3966 # no limit to the length of command line arguments.
3967 # Libtool will interpret -1 as no limit whatsoever
3968 lt_cv_sys_max_cmd_len=-1;
3971 cygwin* | mingw* | cegcc*)
3972 # On Win9x/ME, this test blows up -- it succeeds, but takes
3973 # about 5 minutes as the teststring grows exponentially.
3974 # Worse, since 9x/ME are not pre-emptively multitasking,
3975 # you end up with a "frozen" computer, even though with patience
3976 # the test eventually succeeds (with a max line length of 256k).
3977 # Instead, let's just punt: use the minimum linelength reported by
3978 # all of the supported platforms: 8192 (on NT/2K/XP).
3979 lt_cv_sys_max_cmd_len=8192;
3982 amigaos*)
3983 # On AmigaOS with pdksh, this test takes hours, literally.
3984 # So we just punt and use a minimum line length of 8192.
3985 lt_cv_sys_max_cmd_len=8192;
3988 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3989 # This has been around since 386BSD, at least. Likely further.
3990 if test -x /sbin/sysctl; then
3991 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3992 elif test -x /usr/sbin/sysctl; then
3993 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3994 else
3995 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3997 # And add a safety zone
3998 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4002 interix*)
4003 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4004 lt_cv_sys_max_cmd_len=196608
4007 osf*)
4008 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4009 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4010 # nice to cause kernel panics so lets avoid the loop below.
4011 # First set a reasonable default.
4012 lt_cv_sys_max_cmd_len=16384
4014 if test -x /sbin/sysconfig; then
4015 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4016 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4017 esac
4020 sco3.2v5*)
4021 lt_cv_sys_max_cmd_len=102400
4023 sysv5* | sco5v6* | sysv4.2uw2*)
4024 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4025 if test -n "$kargmax"; then
4026 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4027 else
4028 lt_cv_sys_max_cmd_len=32768
4032 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4033 if test -n "$lt_cv_sys_max_cmd_len"; then
4034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4036 else
4037 # Make teststring a little bigger before we do anything with it.
4038 # a 1K string should be a reasonable start.
4039 for i in 1 2 3 4 5 6 7 8 ; do
4040 teststring=$teststring$teststring
4041 done
4042 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4043 # If test is not a shell built-in, we'll probably end up computing a
4044 # maximum length that is only half of the actual maximum length, but
4045 # we can't tell.
4046 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4047 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4048 test $i != 17 # 1/2 MB should be enough
4050 i=`expr $i + 1`
4051 teststring=$teststring$teststring
4052 done
4053 # Only check the string length outside the loop.
4054 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4055 teststring=
4056 # Add a significant safety factor because C++ compilers can tack on
4057 # massive amounts of additional arguments before passing them to the
4058 # linker. It appears as though 1/2 is a usable value.
4059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4062 esac
4066 if test -n $lt_cv_sys_max_cmd_len ; then
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4068 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4069 else
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4071 $as_echo "none" >&6; }
4073 max_cmd_len=$lt_cv_sys_max_cmd_len
4080 : ${CP="cp -f"}
4081 : ${MV="mv -f"}
4082 : ${RM="rm -f"}
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4085 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4086 # Try some XSI features
4087 xsi_shell=no
4088 ( _lt_dummy="a/b/c"
4089 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4090 = c,a/b,, \
4091 && eval 'test $(( 1 + 1 )) -eq 2 \
4092 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4093 && xsi_shell=yes
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4095 $as_echo "$xsi_shell" >&6; }
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4099 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4100 lt_shell_append=no
4101 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4102 >/dev/null 2>&1 \
4103 && lt_shell_append=yes
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4105 $as_echo "$lt_shell_append" >&6; }
4108 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4109 lt_unset=unset
4110 else
4111 lt_unset=false
4118 # test EBCDIC or ASCII
4119 case `echo X|tr X '\101'` in
4120 A) # ASCII based system
4121 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4122 lt_SP2NL='tr \040 \012'
4123 lt_NL2SP='tr \015\012 \040\040'
4125 *) # EBCDIC based system
4126 lt_SP2NL='tr \100 \n'
4127 lt_NL2SP='tr \r\n \100\100'
4129 esac
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4140 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4141 if ${lt_cv_ld_reload_flag+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 lt_cv_ld_reload_flag='-r'
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4147 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4148 reload_flag=$lt_cv_ld_reload_flag
4149 case $reload_flag in
4150 "" | " "*) ;;
4151 *) reload_flag=" $reload_flag" ;;
4152 esac
4153 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4154 case $host_os in
4155 darwin*)
4156 if test "$GCC" = yes; then
4157 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4158 else
4159 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4162 esac
4172 if test -n "$ac_tool_prefix"; then
4173 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4174 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if ${ac_cv_prog_OBJDUMP+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 if test -n "$OBJDUMP"; then
4181 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 break 2
4194 done
4195 done
4196 IFS=$as_save_IFS
4200 OBJDUMP=$ac_cv_prog_OBJDUMP
4201 if test -n "$OBJDUMP"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4203 $as_echo "$OBJDUMP" >&6; }
4204 else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4211 if test -z "$ac_cv_prog_OBJDUMP"; then
4212 ac_ct_OBJDUMP=$OBJDUMP
4213 # Extract the first word of "objdump", so it can be a program name with args.
4214 set dummy objdump; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if test -n "$ac_ct_OBJDUMP"; then
4221 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4234 done
4235 done
4236 IFS=$as_save_IFS
4240 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4241 if test -n "$ac_ct_OBJDUMP"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4243 $as_echo "$ac_ct_OBJDUMP" >&6; }
4244 else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4249 if test "x$ac_ct_OBJDUMP" = x; then
4250 OBJDUMP="false"
4251 else
4252 case $cross_compiling:$ac_tool_warned in
4253 yes:)
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4256 ac_tool_warned=yes ;;
4257 esac
4258 OBJDUMP=$ac_ct_OBJDUMP
4260 else
4261 OBJDUMP="$ac_cv_prog_OBJDUMP"
4264 test -z "$OBJDUMP" && OBJDUMP=objdump
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4275 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4276 if ${lt_cv_deplibs_check_method+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 lt_cv_file_magic_cmd='$MAGIC_CMD'
4280 lt_cv_file_magic_test_file=
4281 lt_cv_deplibs_check_method='unknown'
4282 # Need to set the preceding variable on all platforms that support
4283 # interlibrary dependencies.
4284 # 'none' -- dependencies not supported.
4285 # `unknown' -- same as none, but documents that we really don't know.
4286 # 'pass_all' -- all dependencies passed with no checks.
4287 # 'test_compile' -- check by making test program.
4288 # 'file_magic [[regex]]' -- check by looking for files in library path
4289 # which responds to the $file_magic_cmd with a given extended regex.
4290 # If you have `file' or equivalent on your system and you're not sure
4291 # whether `pass_all' will *always* work, you probably want this one.
4293 case $host_os in
4294 aix[4-9]*)
4295 lt_cv_deplibs_check_method=pass_all
4298 beos*)
4299 lt_cv_deplibs_check_method=pass_all
4302 bsdi[45]*)
4303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4304 lt_cv_file_magic_cmd='/usr/bin/file -L'
4305 lt_cv_file_magic_test_file=/shlib/libc.so
4308 cygwin*)
4309 # func_win32_libid is a shell function defined in ltmain.sh
4310 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4311 lt_cv_file_magic_cmd='func_win32_libid'
4314 mingw* | pw32*)
4315 # Base MSYS/MinGW do not provide the 'file' command needed by
4316 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4317 # unless we find 'file', for example because we are cross-compiling.
4318 if ( file / ) >/dev/null 2>&1; then
4319 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4320 lt_cv_file_magic_cmd='func_win32_libid'
4321 else
4322 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4323 lt_cv_file_magic_cmd='$OBJDUMP -f'
4327 cegcc)
4328 # use the weaker test based on 'objdump'. See mingw*.
4329 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4330 lt_cv_file_magic_cmd='$OBJDUMP -f'
4333 darwin* | rhapsody*)
4334 lt_cv_deplibs_check_method=pass_all
4337 freebsd* | dragonfly*)
4338 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4339 case $host_cpu in
4340 i*86 )
4341 # Not sure whether the presence of OpenBSD here was a mistake.
4342 # Let's accept both of them until this is cleared up.
4343 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4344 lt_cv_file_magic_cmd=/usr/bin/file
4345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4347 esac
4348 else
4349 lt_cv_deplibs_check_method=pass_all
4353 gnu*)
4354 lt_cv_deplibs_check_method=pass_all
4357 hpux10.20* | hpux11*)
4358 lt_cv_file_magic_cmd=/usr/bin/file
4359 case $host_cpu in
4360 ia64*)
4361 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4362 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4364 hppa*64*)
4365 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]'
4366 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4369 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4370 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4372 esac
4375 interix[3-9]*)
4376 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4380 irix5* | irix6* | nonstopux*)
4381 case $LD in
4382 *-32|*"-32 ") libmagic=32-bit;;
4383 *-n32|*"-n32 ") libmagic=N32;;
4384 *-64|*"-64 ") libmagic=64-bit;;
4385 *) libmagic=never-match;;
4386 esac
4387 lt_cv_deplibs_check_method=pass_all
4390 # This must be Linux ELF.
4391 linux* | k*bsd*-gnu)
4392 lt_cv_deplibs_check_method=pass_all
4395 netbsd*)
4396 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4398 else
4399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4403 newos6*)
4404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4405 lt_cv_file_magic_cmd=/usr/bin/file
4406 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4409 *nto* | *qnx*)
4410 lt_cv_deplibs_check_method=pass_all
4413 openbsd*)
4414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4416 else
4417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4421 osf3* | osf4* | osf5*)
4422 lt_cv_deplibs_check_method=pass_all
4425 rdos*)
4426 lt_cv_deplibs_check_method=pass_all
4429 solaris*)
4430 lt_cv_deplibs_check_method=pass_all
4433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4434 lt_cv_deplibs_check_method=pass_all
4437 sysv4 | sysv4.3*)
4438 case $host_vendor in
4439 motorola)
4440 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]'
4441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4443 ncr)
4444 lt_cv_deplibs_check_method=pass_all
4446 sequent)
4447 lt_cv_file_magic_cmd='/bin/file'
4448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4450 sni)
4451 lt_cv_file_magic_cmd='/bin/file'
4452 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4453 lt_cv_file_magic_test_file=/lib/libc.so
4455 siemens)
4456 lt_cv_deplibs_check_method=pass_all
4459 lt_cv_deplibs_check_method=pass_all
4461 esac
4464 tpf*)
4465 lt_cv_deplibs_check_method=pass_all
4467 esac
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4471 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4472 file_magic_cmd=$lt_cv_file_magic_cmd
4473 deplibs_check_method=$lt_cv_deplibs_check_method
4474 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4487 if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4489 set dummy ${ac_tool_prefix}ar; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_AR+:} false; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 if test -n "$AR"; then
4496 ac_cv_prog_AR="$AR" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_AR="${ac_tool_prefix}ar"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4509 done
4510 done
4511 IFS=$as_save_IFS
4515 AR=$ac_cv_prog_AR
4516 if test -n "$AR"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4518 $as_echo "$AR" >&6; }
4519 else
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4526 if test -z "$ac_cv_prog_AR"; then
4527 ac_ct_AR=$AR
4528 # Extract the first word of "ar", so it can be a program name with args.
4529 set dummy ar; ac_word=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 if test -n "$ac_ct_AR"; then
4536 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4537 else
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545 ac_cv_prog_ac_ct_AR="ar"
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4549 done
4550 done
4551 IFS=$as_save_IFS
4555 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4556 if test -n "$ac_ct_AR"; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4558 $as_echo "$ac_ct_AR" >&6; }
4559 else
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4564 if test "x$ac_ct_AR" = x; then
4565 AR="false"
4566 else
4567 case $cross_compiling:$ac_tool_warned in
4568 yes:)
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4571 ac_tool_warned=yes ;;
4572 esac
4573 AR=$ac_ct_AR
4575 else
4576 AR="$ac_cv_prog_AR"
4579 test -z "$AR" && AR=ar
4580 test -z "$AR_FLAGS" && AR_FLAGS=cru
4592 if test -n "$ac_tool_prefix"; then
4593 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4594 set dummy ${ac_tool_prefix}strip; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_STRIP+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$STRIP"; then
4601 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4616 IFS=$as_save_IFS
4620 STRIP=$ac_cv_prog_STRIP
4621 if test -n "$STRIP"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4623 $as_echo "$STRIP" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4631 if test -z "$ac_cv_prog_STRIP"; then
4632 ac_ct_STRIP=$STRIP
4633 # Extract the first word of "strip", so it can be a program name with args.
4634 set dummy strip; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$ac_ct_STRIP"; then
4641 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_ac_ct_STRIP="strip"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4660 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4661 if test -n "$ac_ct_STRIP"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4663 $as_echo "$ac_ct_STRIP" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4669 if test "x$ac_ct_STRIP" = x; then
4670 STRIP=":"
4671 else
4672 case $cross_compiling:$ac_tool_warned in
4673 yes:)
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4676 ac_tool_warned=yes ;;
4677 esac
4678 STRIP=$ac_ct_STRIP
4680 else
4681 STRIP="$ac_cv_prog_STRIP"
4684 test -z "$STRIP" && STRIP=:
4691 if test -n "$ac_tool_prefix"; then
4692 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4693 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_RANLIB+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$RANLIB"; then
4700 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4715 IFS=$as_save_IFS
4719 RANLIB=$ac_cv_prog_RANLIB
4720 if test -n "$RANLIB"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4722 $as_echo "$RANLIB" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4730 if test -z "$ac_cv_prog_RANLIB"; then
4731 ac_ct_RANLIB=$RANLIB
4732 # Extract the first word of "ranlib", so it can be a program name with args.
4733 set dummy ranlib; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 if test -n "$ac_ct_RANLIB"; then
4740 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4741 else
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749 ac_cv_prog_ac_ct_RANLIB="ranlib"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4753 done
4754 done
4755 IFS=$as_save_IFS
4759 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4760 if test -n "$ac_ct_RANLIB"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4762 $as_echo "$ac_ct_RANLIB" >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4768 if test "x$ac_ct_RANLIB" = x; then
4769 RANLIB=":"
4770 else
4771 case $cross_compiling:$ac_tool_warned in
4772 yes:)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4775 ac_tool_warned=yes ;;
4776 esac
4777 RANLIB=$ac_ct_RANLIB
4779 else
4780 RANLIB="$ac_cv_prog_RANLIB"
4783 test -z "$RANLIB" && RANLIB=:
4790 # Determine commands to create old-style static archives.
4791 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4792 old_postinstall_cmds='chmod 644 $oldlib'
4793 old_postuninstall_cmds=
4795 if test -n "$RANLIB"; then
4796 case $host_os in
4797 openbsd*)
4798 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4801 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4803 esac
4804 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4840 # If no C compiler was specified, use CC.
4841 LTCC=${LTCC-"$CC"}
4843 # If no C compiler flags were specified, use CFLAGS.
4844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4846 # Allow CC to be a program name with arguments.
4847 compiler=$CC
4850 # Check for command to grab the raw symbol name followed by C symbol from nm.
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4852 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4853 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4857 # These are sane defaults that work on at least a few old systems.
4858 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4860 # Character class describing NM global symbol codes.
4861 symcode='[BCDEGRST]'
4863 # Regexp to match symbols that can be accessed directly from C.
4864 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4866 # Define system-specific variables.
4867 case $host_os in
4868 aix*)
4869 symcode='[BCDT]'
4871 cygwin* | mingw* | pw32* | cegcc*)
4872 symcode='[ABCDGISTW]'
4874 hpux*)
4875 if test "$host_cpu" = ia64; then
4876 symcode='[ABCDEGRST]'
4879 irix* | nonstopux*)
4880 symcode='[BCDEGRST]'
4882 osf*)
4883 symcode='[BCDEGQRST]'
4885 solaris*)
4886 symcode='[BDRT]'
4888 sco3.2v5*)
4889 symcode='[DT]'
4891 sysv4.2uw2*)
4892 symcode='[DT]'
4894 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4895 symcode='[ABDT]'
4897 sysv4)
4898 symcode='[DFNSTU]'
4900 esac
4902 # If we're using GNU nm, then use its standard symbol codes.
4903 case `$NM -V 2>&1` in
4904 *GNU* | *'with BFD'*)
4905 symcode='[ABCDGIRSTW]' ;;
4906 esac
4908 # Transform an extracted symbol line into a proper C declaration.
4909 # Some systems (esp. on ia64) link data and code symbols differently,
4910 # so use this general approach.
4911 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4913 # Transform an extracted symbol line into symbol name and symbol address
4914 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4915 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'"
4917 # Handle CRLF in mingw tool chain
4918 opt_cr=
4919 case $build_os in
4920 mingw*)
4921 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4923 esac
4925 # Try without a prefix underscore, then with it.
4926 for ac_symprfx in "" "_"; do
4928 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4929 symxfrm="\\1 $ac_symprfx\\2 \\2"
4931 # Write the raw and C identifiers.
4932 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4933 # Fake it for dumpbin and say T for any non-static function
4934 # and D for any global variable.
4935 # Also find C++ and __fastcall symbols from MSVC++,
4936 # which start with @ or ?.
4937 lt_cv_sys_global_symbol_pipe="$AWK '"\
4938 " {last_section=section; section=\$ 3};"\
4939 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4940 " \$ 0!~/External *\|/{next};"\
4941 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4942 " {if(hide[section]) next};"\
4943 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4944 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4945 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4946 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4947 " ' prfx=^$ac_symprfx"
4948 else
4949 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4952 # Check to see that the pipe works correctly.
4953 pipe_works=no
4955 rm -f conftest*
4956 cat > conftest.$ac_ext <<_LT_EOF
4957 #ifdef __cplusplus
4958 extern "C" {
4959 #endif
4960 char nm_test_var;
4961 void nm_test_func(void);
4962 void nm_test_func(void){}
4963 #ifdef __cplusplus
4965 #endif
4966 int main(){nm_test_var='a';nm_test_func();return(0);}
4967 _LT_EOF
4969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4970 (eval $ac_compile) 2>&5
4971 ac_status=$?
4972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4973 test $ac_status = 0; }; then
4974 # Now try to grab the symbols.
4975 nlist=conftest.nm
4976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4977 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4978 ac_status=$?
4979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4980 test $ac_status = 0; } && test -s "$nlist"; then
4981 # Try sorting and uniquifying the output.
4982 if sort "$nlist" | uniq > "$nlist"T; then
4983 mv -f "$nlist"T "$nlist"
4984 else
4985 rm -f "$nlist"T
4988 # Make sure that we snagged all the symbols we need.
4989 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4990 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4991 cat <<_LT_EOF > conftest.$ac_ext
4992 #ifdef __cplusplus
4993 extern "C" {
4994 #endif
4996 _LT_EOF
4997 # Now generate the symbol file.
4998 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5000 cat <<_LT_EOF >> conftest.$ac_ext
5002 /* The mapping between symbol names and symbols. */
5003 const struct {
5004 const char *name;
5005 void *address;
5007 lt__PROGRAM__LTX_preloaded_symbols[] =
5009 { "@PROGRAM@", (void *) 0 },
5010 _LT_EOF
5011 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5012 cat <<\_LT_EOF >> conftest.$ac_ext
5013 {0, (void *) 0}
5016 /* This works around a problem in FreeBSD linker */
5017 #ifdef FREEBSD_WORKAROUND
5018 static const void *lt_preloaded_setup() {
5019 return lt__PROGRAM__LTX_preloaded_symbols;
5021 #endif
5023 #ifdef __cplusplus
5025 #endif
5026 _LT_EOF
5027 # Now try linking the two files.
5028 mv conftest.$ac_objext conftstm.$ac_objext
5029 lt_save_LIBS="$LIBS"
5030 lt_save_CFLAGS="$CFLAGS"
5031 LIBS="conftstm.$ac_objext"
5032 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5034 (eval $ac_link) 2>&5
5035 ac_status=$?
5036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5037 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5038 pipe_works=yes
5040 LIBS="$lt_save_LIBS"
5041 CFLAGS="$lt_save_CFLAGS"
5042 else
5043 echo "cannot find nm_test_func in $nlist" >&5
5045 else
5046 echo "cannot find nm_test_var in $nlist" >&5
5048 else
5049 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5051 else
5052 echo "$progname: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5055 rm -rf conftest* conftst*
5057 # Do not use the global_symbol_pipe unless it works.
5058 if test "$pipe_works" = yes; then
5059 break
5060 else
5061 lt_cv_sys_global_symbol_pipe=
5063 done
5067 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5068 lt_cv_sys_global_symbol_to_cdecl=
5070 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5072 $as_echo "failed" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5075 $as_echo "ok" >&6; }
5100 # Check whether --enable-libtool-lock was given.
5101 if test "${enable_libtool_lock+set}" = set; then :
5102 enableval=$enable_libtool_lock;
5105 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5107 # Some flags need to be propagated to the compiler or linker for good
5108 # libtool support.
5109 case $host in
5110 ia64-*-hpux*)
5111 # Find out which ABI we are using.
5112 echo 'int i;' > conftest.$ac_ext
5113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5114 (eval $ac_compile) 2>&5
5115 ac_status=$?
5116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5117 test $ac_status = 0; }; then
5118 case `/usr/bin/file conftest.$ac_objext` in
5119 *ELF-32*)
5120 HPUX_IA64_MODE="32"
5122 *ELF-64*)
5123 HPUX_IA64_MODE="64"
5125 esac
5127 rm -rf conftest*
5129 *-*-irix6*)
5130 # Find out which ABI we are using.
5131 echo '#line 5131 "configure"' > conftest.$ac_ext
5132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5133 (eval $ac_compile) 2>&5
5134 ac_status=$?
5135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5136 test $ac_status = 0; }; then
5137 if test "$lt_cv_prog_gnu_ld" = yes; then
5138 case `/usr/bin/file conftest.$ac_objext` in
5139 *32-bit*)
5140 LD="${LD-ld} -melf32bsmip"
5142 *N32*)
5143 LD="${LD-ld} -melf32bmipn32"
5145 *64-bit*)
5146 LD="${LD-ld} -melf64bmip"
5148 esac
5149 else
5150 case `/usr/bin/file conftest.$ac_objext` in
5151 *32-bit*)
5152 LD="${LD-ld} -32"
5154 *N32*)
5155 LD="${LD-ld} -n32"
5157 *64-bit*)
5158 LD="${LD-ld} -64"
5160 esac
5163 rm -rf conftest*
5166 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5167 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5168 # Find out which ABI we are using.
5169 echo 'int i;' > conftest.$ac_ext
5170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5171 (eval $ac_compile) 2>&5
5172 ac_status=$?
5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; }; then
5175 case `/usr/bin/file conftest.o` in
5176 *32-bit*)
5177 case $host in
5178 x86_64-*kfreebsd*-gnu)
5179 LD="${LD-ld} -m elf_i386_fbsd"
5181 x86_64-*linux*)
5182 LD="${LD-ld} -m elf_i386"
5184 ppc64-*linux*|powerpc64-*linux*)
5185 LD="${LD-ld} -m elf32ppclinux"
5187 s390x-*linux*)
5188 LD="${LD-ld} -m elf_s390"
5190 sparc64-*linux*)
5191 LD="${LD-ld} -m elf32_sparc"
5193 esac
5195 *64-bit*)
5196 case $host in
5197 x86_64-*kfreebsd*-gnu)
5198 LD="${LD-ld} -m elf_x86_64_fbsd"
5200 x86_64-*linux*)
5201 LD="${LD-ld} -m elf_x86_64"
5203 ppc*-*linux*|powerpc*-*linux*)
5204 LD="${LD-ld} -m elf64ppc"
5206 s390*-*linux*|s390*-*tpf*)
5207 LD="${LD-ld} -m elf64_s390"
5209 sparc*-*linux*)
5210 LD="${LD-ld} -m elf64_sparc"
5212 esac
5214 esac
5216 rm -rf conftest*
5219 *-*-sco3.2v5*)
5220 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5221 SAVE_CFLAGS="$CFLAGS"
5222 CFLAGS="$CFLAGS -belf"
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5224 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5225 if ${lt_cv_cc_needs_belf+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 ac_ext=c
5229 ac_cpp='$CPP $CPPFLAGS'
5230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5238 main ()
5242 return 0;
5244 _ACEOF
5245 if ac_fn_c_try_link "$LINENO"; then :
5246 lt_cv_cc_needs_belf=yes
5247 else
5248 lt_cv_cc_needs_belf=no
5250 rm -f core conftest.err conftest.$ac_objext \
5251 conftest$ac_exeext conftest.$ac_ext
5252 ac_ext=c
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5260 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5261 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5262 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5263 CFLAGS="$SAVE_CFLAGS"
5266 sparc*-*solaris*)
5267 # Find out which ABI we are using.
5268 echo 'int i;' > conftest.$ac_ext
5269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5270 (eval $ac_compile) 2>&5
5271 ac_status=$?
5272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5273 test $ac_status = 0; }; then
5274 case `/usr/bin/file conftest.o` in
5275 *64-bit*)
5276 case $lt_cv_prog_gnu_ld in
5277 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5279 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5280 LD="${LD-ld} -64"
5283 esac
5285 esac
5287 rm -rf conftest*
5289 esac
5291 need_locks="$enable_libtool_lock"
5294 case $host_os in
5295 rhapsody* | darwin*)
5296 if test -n "$ac_tool_prefix"; then
5297 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5298 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$DSYMUTIL"; then
5305 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5318 done
5319 done
5320 IFS=$as_save_IFS
5324 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5325 if test -n "$DSYMUTIL"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5327 $as_echo "$DSYMUTIL" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5335 if test -z "$ac_cv_prog_DSYMUTIL"; then
5336 ac_ct_DSYMUTIL=$DSYMUTIL
5337 # Extract the first word of "dsymutil", so it can be a program name with args.
5338 set dummy dsymutil; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$ac_ct_DSYMUTIL"; then
5345 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5364 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5365 if test -n "$ac_ct_DSYMUTIL"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5367 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5373 if test "x$ac_ct_DSYMUTIL" = x; then
5374 DSYMUTIL=":"
5375 else
5376 case $cross_compiling:$ac_tool_warned in
5377 yes:)
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5380 ac_tool_warned=yes ;;
5381 esac
5382 DSYMUTIL=$ac_ct_DSYMUTIL
5384 else
5385 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5388 if test -n "$ac_tool_prefix"; then
5389 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5390 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_NMEDIT+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$NMEDIT"; then
5397 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5410 done
5411 done
5412 IFS=$as_save_IFS
5416 NMEDIT=$ac_cv_prog_NMEDIT
5417 if test -n "$NMEDIT"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5419 $as_echo "$NMEDIT" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5427 if test -z "$ac_cv_prog_NMEDIT"; then
5428 ac_ct_NMEDIT=$NMEDIT
5429 # Extract the first word of "nmedit", so it can be a program name with args.
5430 set dummy nmedit; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 if test -n "$ac_ct_NMEDIT"; then
5437 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5450 done
5451 done
5452 IFS=$as_save_IFS
5456 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5457 if test -n "$ac_ct_NMEDIT"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5459 $as_echo "$ac_ct_NMEDIT" >&6; }
5460 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5465 if test "x$ac_ct_NMEDIT" = x; then
5466 NMEDIT=":"
5467 else
5468 case $cross_compiling:$ac_tool_warned in
5469 yes:)
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5472 ac_tool_warned=yes ;;
5473 esac
5474 NMEDIT=$ac_ct_NMEDIT
5476 else
5477 NMEDIT="$ac_cv_prog_NMEDIT"
5480 if test -n "$ac_tool_prefix"; then
5481 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5482 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_LIPO+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$LIPO"; then
5489 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5502 done
5503 done
5504 IFS=$as_save_IFS
5508 LIPO=$ac_cv_prog_LIPO
5509 if test -n "$LIPO"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5511 $as_echo "$LIPO" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5519 if test -z "$ac_cv_prog_LIPO"; then
5520 ac_ct_LIPO=$LIPO
5521 # Extract the first word of "lipo", so it can be a program name with args.
5522 set dummy lipo; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -n "$ac_ct_LIPO"; then
5529 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_prog_ac_ct_LIPO="lipo"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5542 done
5543 done
5544 IFS=$as_save_IFS
5548 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5549 if test -n "$ac_ct_LIPO"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5551 $as_echo "$ac_ct_LIPO" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5557 if test "x$ac_ct_LIPO" = x; then
5558 LIPO=":"
5559 else
5560 case $cross_compiling:$ac_tool_warned in
5561 yes:)
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5565 esac
5566 LIPO=$ac_ct_LIPO
5568 else
5569 LIPO="$ac_cv_prog_LIPO"
5572 if test -n "$ac_tool_prefix"; then
5573 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5574 set dummy ${ac_tool_prefix}otool; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_OTOOL+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test -n "$OTOOL"; then
5581 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5582 else
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5594 done
5595 done
5596 IFS=$as_save_IFS
5600 OTOOL=$ac_cv_prog_OTOOL
5601 if test -n "$OTOOL"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5603 $as_echo "$OTOOL" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5611 if test -z "$ac_cv_prog_OTOOL"; then
5612 ac_ct_OTOOL=$OTOOL
5613 # Extract the first word of "otool", so it can be a program name with args.
5614 set dummy otool; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 if test -n "$ac_ct_OTOOL"; then
5621 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630 ac_cv_prog_ac_ct_OTOOL="otool"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5634 done
5635 done
5636 IFS=$as_save_IFS
5640 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5641 if test -n "$ac_ct_OTOOL"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5643 $as_echo "$ac_ct_OTOOL" >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5649 if test "x$ac_ct_OTOOL" = x; then
5650 OTOOL=":"
5651 else
5652 case $cross_compiling:$ac_tool_warned in
5653 yes:)
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5656 ac_tool_warned=yes ;;
5657 esac
5658 OTOOL=$ac_ct_OTOOL
5660 else
5661 OTOOL="$ac_cv_prog_OTOOL"
5664 if test -n "$ac_tool_prefix"; then
5665 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5666 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if ${ac_cv_prog_OTOOL64+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if test -n "$OTOOL64"; then
5673 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5686 done
5687 done
5688 IFS=$as_save_IFS
5692 OTOOL64=$ac_cv_prog_OTOOL64
5693 if test -n "$OTOOL64"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5695 $as_echo "$OTOOL64" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5703 if test -z "$ac_cv_prog_OTOOL64"; then
5704 ac_ct_OTOOL64=$OTOOL64
5705 # Extract the first word of "otool64", so it can be a program name with args.
5706 set dummy otool64; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if test -n "$ac_ct_OTOOL64"; then
5713 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_prog_ac_ct_OTOOL64="otool64"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5726 done
5727 done
5728 IFS=$as_save_IFS
5732 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5733 if test -n "$ac_ct_OTOOL64"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5735 $as_echo "$ac_ct_OTOOL64" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5741 if test "x$ac_ct_OTOOL64" = x; then
5742 OTOOL64=":"
5743 else
5744 case $cross_compiling:$ac_tool_warned in
5745 yes:)
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5748 ac_tool_warned=yes ;;
5749 esac
5750 OTOOL64=$ac_ct_OTOOL64
5752 else
5753 OTOOL64="$ac_cv_prog_OTOOL64"
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5783 $as_echo_n "checking for -single_module linker flag... " >&6; }
5784 if ${lt_cv_apple_cc_single_mod+:} false; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 lt_cv_apple_cc_single_mod=no
5788 if test -z "${LT_MULTI_MODULE}"; then
5789 # By default we will add the -single_module flag. You can override
5790 # by either setting the environment variable LT_MULTI_MODULE
5791 # non-empty at configure time, or by adding -multi_module to the
5792 # link flags.
5793 rm -rf libconftest.dylib*
5794 echo "int foo(void){return 1;}" > conftest.c
5795 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5796 -dynamiclib -Wl,-single_module conftest.c" >&5
5797 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5798 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5799 _lt_result=$?
5800 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5801 lt_cv_apple_cc_single_mod=yes
5802 else
5803 cat conftest.err >&5
5805 rm -rf libconftest.dylib*
5806 rm -f conftest.*
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5810 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5812 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5813 if ${lt_cv_ld_exported_symbols_list+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 lt_cv_ld_exported_symbols_list=no
5817 save_LDFLAGS=$LDFLAGS
5818 echo "_main" > conftest.sym
5819 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5824 main ()
5828 return 0;
5830 _ACEOF
5831 if ac_fn_c_try_link "$LINENO"; then :
5832 lt_cv_ld_exported_symbols_list=yes
5833 else
5834 lt_cv_ld_exported_symbols_list=no
5836 rm -f core conftest.err conftest.$ac_objext \
5837 conftest$ac_exeext conftest.$ac_ext
5838 LDFLAGS="$save_LDFLAGS"
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5842 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5843 case $host_os in
5844 rhapsody* | darwin1.[012])
5845 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5846 darwin1.*)
5847 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5848 darwin*) # darwin 5.x on
5849 # if running on 10.5 or later, the deployment target defaults
5850 # to the OS version, if on x86, and 10.4, the deployment
5851 # target defaults to 10.4. Don't you love it?
5852 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5853 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5854 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5855 10.[012]*)
5856 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5857 10.*)
5858 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5859 esac
5861 esac
5862 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5863 _lt_dar_single_mod='$single_module'
5865 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5866 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5867 else
5868 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5870 if test "$DSYMUTIL" != ":"; then
5871 _lt_dsymutil='~$DSYMUTIL $lib || :'
5872 else
5873 _lt_dsymutil=
5876 esac
5878 ac_ext=c
5879 ac_cpp='$CPP $CPPFLAGS'
5880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5884 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5885 # On Suns, sometimes $CPP names a directory.
5886 if test -n "$CPP" && test -d "$CPP"; then
5887 CPP=
5889 if test -z "$CPP"; then
5890 if ${ac_cv_prog_CPP+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 # Double quotes because CPP needs to be expanded
5894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5896 ac_preproc_ok=false
5897 for ac_c_preproc_warn_flag in '' yes
5899 # Use a header file that comes with gcc, so configuring glibc
5900 # with a fresh cross-compiler works.
5901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5902 # <limits.h> exists even on freestanding compilers.
5903 # On the NeXT, cc -E runs the code through the compiler's parser,
5904 # not just through cpp. "Syntax error" is here to catch this case.
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 #ifdef __STDC__
5908 # include <limits.h>
5909 #else
5910 # include <assert.h>
5911 #endif
5912 Syntax error
5913 _ACEOF
5914 if ac_fn_c_try_cpp "$LINENO"; then :
5916 else
5917 # Broken: fails on valid input.
5918 continue
5920 rm -f conftest.err conftest.i conftest.$ac_ext
5922 # OK, works on sane cases. Now check whether nonexistent headers
5923 # can be detected and how.
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 #include <ac_nonexistent.h>
5927 _ACEOF
5928 if ac_fn_c_try_cpp "$LINENO"; then :
5929 # Broken: success on invalid input.
5930 continue
5931 else
5932 # Passes both tests.
5933 ac_preproc_ok=:
5934 break
5936 rm -f conftest.err conftest.i conftest.$ac_ext
5938 done
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.i conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok; then :
5942 break
5945 done
5946 ac_cv_prog_CPP=$CPP
5949 CPP=$ac_cv_prog_CPP
5950 else
5951 ac_cv_prog_CPP=$CPP
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5954 $as_echo "$CPP" >&6; }
5955 ac_preproc_ok=false
5956 for ac_c_preproc_warn_flag in '' yes
5958 # Use a header file that comes with gcc, so configuring glibc
5959 # with a fresh cross-compiler works.
5960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5961 # <limits.h> exists even on freestanding compilers.
5962 # On the NeXT, cc -E runs the code through the compiler's parser,
5963 # not just through cpp. "Syntax error" is here to catch this case.
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966 #ifdef __STDC__
5967 # include <limits.h>
5968 #else
5969 # include <assert.h>
5970 #endif
5971 Syntax error
5972 _ACEOF
5973 if ac_fn_c_try_cpp "$LINENO"; then :
5975 else
5976 # Broken: fails on valid input.
5977 continue
5979 rm -f conftest.err conftest.i conftest.$ac_ext
5981 # OK, works on sane cases. Now check whether nonexistent headers
5982 # can be detected and how.
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 #include <ac_nonexistent.h>
5986 _ACEOF
5987 if ac_fn_c_try_cpp "$LINENO"; then :
5988 # Broken: success on invalid input.
5989 continue
5990 else
5991 # Passes both tests.
5992 ac_preproc_ok=:
5993 break
5995 rm -f conftest.err conftest.i conftest.$ac_ext
5997 done
5998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5999 rm -f conftest.i conftest.err conftest.$ac_ext
6000 if $ac_preproc_ok; then :
6002 else
6003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6006 See \`config.log' for more details" "$LINENO" 5; }
6009 ac_ext=c
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6017 $as_echo_n "checking for ANSI C header files... " >&6; }
6018 if ${ac_cv_header_stdc+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 #include <stdlib.h>
6024 #include <stdarg.h>
6025 #include <string.h>
6026 #include <float.h>
6029 main ()
6033 return 0;
6035 _ACEOF
6036 if ac_fn_c_try_compile "$LINENO"; then :
6037 ac_cv_header_stdc=yes
6038 else
6039 ac_cv_header_stdc=no
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 if test $ac_cv_header_stdc = yes; then
6044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 #include <string.h>
6049 _ACEOF
6050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6051 $EGREP "memchr" >/dev/null 2>&1; then :
6053 else
6054 ac_cv_header_stdc=no
6056 rm -f conftest*
6060 if test $ac_cv_header_stdc = yes; then
6061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 #include <stdlib.h>
6066 _ACEOF
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068 $EGREP "free" >/dev/null 2>&1; then :
6070 else
6071 ac_cv_header_stdc=no
6073 rm -f conftest*
6077 if test $ac_cv_header_stdc = yes; then
6078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6079 if test "$cross_compiling" = yes; then :
6081 else
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 #include <ctype.h>
6085 #include <stdlib.h>
6086 #if ((' ' & 0x0FF) == 0x020)
6087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6089 #else
6090 # define ISLOWER(c) \
6091 (('a' <= (c) && (c) <= 'i') \
6092 || ('j' <= (c) && (c) <= 'r') \
6093 || ('s' <= (c) && (c) <= 'z'))
6094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6095 #endif
6097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6099 main ()
6101 int i;
6102 for (i = 0; i < 256; i++)
6103 if (XOR (islower (i), ISLOWER (i))
6104 || toupper (i) != TOUPPER (i))
6105 return 2;
6106 return 0;
6108 _ACEOF
6109 if ac_fn_c_try_run "$LINENO"; then :
6111 else
6112 ac_cv_header_stdc=no
6114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6115 conftest.$ac_objext conftest.beam conftest.$ac_ext
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6121 $as_echo "$ac_cv_header_stdc" >&6; }
6122 if test $ac_cv_header_stdc = yes; then
6124 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6129 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6130 inttypes.h stdint.h unistd.h
6131 do :
6132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6133 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6136 cat >>confdefs.h <<_ACEOF
6137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6138 _ACEOF
6142 done
6145 for ac_header in dlfcn.h
6146 do :
6147 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6149 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6150 cat >>confdefs.h <<_ACEOF
6151 #define HAVE_DLFCN_H 1
6152 _ACEOF
6156 done
6160 # Set options
6164 enable_dlopen=no
6167 enable_win32_dll=no
6170 # Check whether --enable-shared was given.
6171 if test "${enable_shared+set}" = set; then :
6172 enableval=$enable_shared; p=${PACKAGE-default}
6173 case $enableval in
6174 yes) enable_shared=yes ;;
6175 no) enable_shared=no ;;
6177 enable_shared=no
6178 # Look at the argument we got. We use all the common list separators.
6179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6180 for pkg in $enableval; do
6181 IFS="$lt_save_ifs"
6182 if test "X$pkg" = "X$p"; then
6183 enable_shared=yes
6185 done
6186 IFS="$lt_save_ifs"
6188 esac
6189 else
6190 enable_shared=yes
6201 # Check whether --enable-static was given.
6202 if test "${enable_static+set}" = set; then :
6203 enableval=$enable_static; p=${PACKAGE-default}
6204 case $enableval in
6205 yes) enable_static=yes ;;
6206 no) enable_static=no ;;
6208 enable_static=no
6209 # Look at the argument we got. We use all the common list separators.
6210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6211 for pkg in $enableval; do
6212 IFS="$lt_save_ifs"
6213 if test "X$pkg" = "X$p"; then
6214 enable_static=yes
6216 done
6217 IFS="$lt_save_ifs"
6219 esac
6220 else
6221 enable_static=yes
6233 # Check whether --with-pic was given.
6234 if test "${with_pic+set}" = set; then :
6235 withval=$with_pic; pic_mode="$withval"
6236 else
6237 pic_mode=default
6241 test -z "$pic_mode" && pic_mode=default
6249 # Check whether --enable-fast-install was given.
6250 if test "${enable_fast_install+set}" = set; then :
6251 enableval=$enable_fast_install; p=${PACKAGE-default}
6252 case $enableval in
6253 yes) enable_fast_install=yes ;;
6254 no) enable_fast_install=no ;;
6256 enable_fast_install=no
6257 # Look at the argument we got. We use all the common list separators.
6258 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6259 for pkg in $enableval; do
6260 IFS="$lt_save_ifs"
6261 if test "X$pkg" = "X$p"; then
6262 enable_fast_install=yes
6264 done
6265 IFS="$lt_save_ifs"
6267 esac
6268 else
6269 enable_fast_install=yes
6282 # This can be used to rebuild libtool when needed
6283 LIBTOOL_DEPS="$ltmain"
6285 # Always use our own libtool.
6286 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6312 test -z "$LN_S" && LN_S="ln -s"
6327 if test -n "${ZSH_VERSION+set}" ; then
6328 setopt NO_GLOB_SUBST
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6332 $as_echo_n "checking for objdir... " >&6; }
6333 if ${lt_cv_objdir+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 rm -f .libs 2>/dev/null
6337 mkdir .libs 2>/dev/null
6338 if test -d .libs; then
6339 lt_cv_objdir=.libs
6340 else
6341 # MS-DOS does not allow filenames that begin with a dot.
6342 lt_cv_objdir=_libs
6344 rmdir .libs 2>/dev/null
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6347 $as_echo "$lt_cv_objdir" >&6; }
6348 objdir=$lt_cv_objdir
6354 cat >>confdefs.h <<_ACEOF
6355 #define LT_OBJDIR "$lt_cv_objdir/"
6356 _ACEOF
6374 case $host_os in
6375 aix3*)
6376 # AIX sometimes has problems with the GCC collect2 program. For some
6377 # reason, if we set the COLLECT_NAMES environment variable, the problems
6378 # vanish in a puff of smoke.
6379 if test "X${COLLECT_NAMES+set}" != Xset; then
6380 COLLECT_NAMES=
6381 export COLLECT_NAMES
6384 esac
6386 # Sed substitution that helps us do robust quoting. It backslashifies
6387 # metacharacters that are still active within double-quoted strings.
6388 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6390 # Same as above, but do not quote variable references.
6391 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6393 # Sed substitution to delay expansion of an escaped shell variable in a
6394 # double_quote_subst'ed string.
6395 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6397 # Sed substitution to delay expansion of an escaped single quote.
6398 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6400 # Sed substitution to avoid accidental globbing in evaled expressions
6401 no_glob_subst='s/\*/\\\*/g'
6403 # Global variables:
6404 ofile=libtool
6405 can_build_shared=yes
6407 # All known linkers require a `.a' archive for static linking (except MSVC,
6408 # which needs '.lib').
6409 libext=a
6411 with_gnu_ld="$lt_cv_prog_gnu_ld"
6413 old_CC="$CC"
6414 old_CFLAGS="$CFLAGS"
6416 # Set sane defaults for various variables
6417 test -z "$CC" && CC=cc
6418 test -z "$LTCC" && LTCC=$CC
6419 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6420 test -z "$LD" && LD=ld
6421 test -z "$ac_objext" && ac_objext=o
6423 for cc_temp in $compiler""; do
6424 case $cc_temp in
6425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6427 \-*) ;;
6428 *) break;;
6429 esac
6430 done
6431 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6434 # Only perform the check for file, if the check method requires it
6435 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6436 case $deplibs_check_method in
6437 file_magic*)
6438 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6440 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6441 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 case $MAGIC_CMD in
6445 [\\/*] | ?:[\\/]*)
6446 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6449 lt_save_MAGIC_CMD="$MAGIC_CMD"
6450 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6451 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6452 for ac_dir in $ac_dummy; do
6453 IFS="$lt_save_ifs"
6454 test -z "$ac_dir" && ac_dir=.
6455 if test -f $ac_dir/${ac_tool_prefix}file; then
6456 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6457 if test -n "$file_magic_test_file"; then
6458 case $deplibs_check_method in
6459 "file_magic "*)
6460 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6462 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6463 $EGREP "$file_magic_regex" > /dev/null; then
6465 else
6466 cat <<_LT_EOF 1>&2
6468 *** Warning: the command libtool uses to detect shared libraries,
6469 *** $file_magic_cmd, produces output that libtool cannot recognize.
6470 *** The result is that libtool may fail to recognize shared libraries
6471 *** as such. This will affect the creation of libtool libraries that
6472 *** depend on shared libraries, but programs linked with such libtool
6473 *** libraries will work regardless of this problem. Nevertheless, you
6474 *** may want to report the problem to your system manager and/or to
6475 *** bug-libtool@gnu.org
6477 _LT_EOF
6478 fi ;;
6479 esac
6481 break
6483 done
6484 IFS="$lt_save_ifs"
6485 MAGIC_CMD="$lt_save_MAGIC_CMD"
6487 esac
6490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6491 if test -n "$MAGIC_CMD"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6493 $as_echo "$MAGIC_CMD" >&6; }
6494 else
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6503 if test -z "$lt_cv_path_MAGIC_CMD"; then
6504 if test -n "$ac_tool_prefix"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6506 $as_echo_n "checking for file... " >&6; }
6507 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 case $MAGIC_CMD in
6511 [\\/*] | ?:[\\/]*)
6512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6515 lt_save_MAGIC_CMD="$MAGIC_CMD"
6516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6518 for ac_dir in $ac_dummy; do
6519 IFS="$lt_save_ifs"
6520 test -z "$ac_dir" && ac_dir=.
6521 if test -f $ac_dir/file; then
6522 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6523 if test -n "$file_magic_test_file"; then
6524 case $deplibs_check_method in
6525 "file_magic "*)
6526 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6529 $EGREP "$file_magic_regex" > /dev/null; then
6531 else
6532 cat <<_LT_EOF 1>&2
6534 *** Warning: the command libtool uses to detect shared libraries,
6535 *** $file_magic_cmd, produces output that libtool cannot recognize.
6536 *** The result is that libtool may fail to recognize shared libraries
6537 *** as such. This will affect the creation of libtool libraries that
6538 *** depend on shared libraries, but programs linked with such libtool
6539 *** libraries will work regardless of this problem. Nevertheless, you
6540 *** may want to report the problem to your system manager and/or to
6541 *** bug-libtool@gnu.org
6543 _LT_EOF
6544 fi ;;
6545 esac
6547 break
6549 done
6550 IFS="$lt_save_ifs"
6551 MAGIC_CMD="$lt_save_MAGIC_CMD"
6553 esac
6556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6557 if test -n "$MAGIC_CMD"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6559 $as_echo "$MAGIC_CMD" >&6; }
6560 else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6566 else
6567 MAGIC_CMD=:
6573 esac
6575 # Use C for the default configuration in the libtool script
6577 lt_save_CC="$CC"
6578 ac_ext=c
6579 ac_cpp='$CPP $CPPFLAGS'
6580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6585 # Source file extension for C test sources.
6586 ac_ext=c
6588 # Object file extension for compiled C test sources.
6589 objext=o
6590 objext=$objext
6592 # Code to be used in simple compile tests
6593 lt_simple_compile_test_code="int some_variable = 0;"
6595 # Code to be used in simple link tests
6596 lt_simple_link_test_code='int main(){return(0);}'
6604 # If no C compiler was specified, use CC.
6605 LTCC=${LTCC-"$CC"}
6607 # If no C compiler flags were specified, use CFLAGS.
6608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6610 # Allow CC to be a program name with arguments.
6611 compiler=$CC
6613 # Save the default compiler, since it gets overwritten when the other
6614 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6615 compiler_DEFAULT=$CC
6617 # save warnings/boilerplate of simple test code
6618 ac_outfile=conftest.$ac_objext
6619 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6620 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6621 _lt_compiler_boilerplate=`cat conftest.err`
6622 $RM conftest*
6624 ac_outfile=conftest.$ac_objext
6625 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6626 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6627 _lt_linker_boilerplate=`cat conftest.err`
6628 $RM -r conftest*
6631 if test -n "$compiler"; then
6633 lt_prog_compiler_no_builtin_flag=
6635 if test "$GCC" = yes; then
6636 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6639 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6640 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 lt_cv_prog_compiler_rtti_exceptions=no
6644 ac_outfile=conftest.$ac_objext
6645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6646 lt_compiler_flag="-fno-rtti -fno-exceptions"
6647 # Insert the option either (1) after the last *FLAGS variable, or
6648 # (2) before a word containing "conftest.", or (3) at the end.
6649 # Note that $ac_compile itself does not contain backslashes and begins
6650 # with a dollar sign (not a hyphen), so the echo should work correctly.
6651 # The option is referenced via a variable to avoid confusing sed.
6652 lt_compile=`echo "$ac_compile" | $SED \
6653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6655 -e 's:$: $lt_compiler_flag:'`
6656 (eval echo "\"\$as_me:6656: $lt_compile\"" >&5)
6657 (eval "$lt_compile" 2>conftest.err)
6658 ac_status=$?
6659 cat conftest.err >&5
6660 echo "$as_me:6660: \$? = $ac_status" >&5
6661 if (exit $ac_status) && test -s "$ac_outfile"; then
6662 # The compiler can only warn and ignore the option if not recognized
6663 # So say no if there are warnings other than the usual output.
6664 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6667 lt_cv_prog_compiler_rtti_exceptions=yes
6670 $RM conftest*
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6674 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6676 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6677 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6678 else
6689 lt_prog_compiler_wl=
6690 lt_prog_compiler_pic=
6691 lt_prog_compiler_static=
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6694 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6696 if test "$GCC" = yes; then
6697 lt_prog_compiler_wl='-Wl,'
6698 lt_prog_compiler_static='-static'
6700 case $host_os in
6701 aix*)
6702 # All AIX code is PIC.
6703 if test "$host_cpu" = ia64; then
6704 # AIX 5 now supports IA64 processor
6705 lt_prog_compiler_static='-Bstatic'
6709 amigaos*)
6710 case $host_cpu in
6711 powerpc)
6712 # see comment about AmigaOS4 .so support
6713 lt_prog_compiler_pic='-fPIC'
6715 m68k)
6716 # FIXME: we need at least 68020 code to build shared libraries, but
6717 # adding the `-m68020' flag to GCC prevents building anything better,
6718 # like `-m68040'.
6719 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6721 esac
6724 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6725 # PIC is the default for these OSes.
6728 mingw* | cygwin* | pw32* | os2* | cegcc*)
6729 # This hack is so that the source file can tell whether it is being
6730 # built for inclusion in a dll (and should export symbols for example).
6731 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6732 # (--disable-auto-import) libraries
6733 lt_prog_compiler_pic='-DDLL_EXPORT'
6736 darwin* | rhapsody*)
6737 # PIC is the default on this platform
6738 # Common symbols not allowed in MH_DYLIB files
6739 lt_prog_compiler_pic='-fno-common'
6742 hpux*)
6743 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6744 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6745 # sets the default TLS model and affects inlining.
6746 case $host_cpu in
6747 hppa*64*)
6748 # +Z the default
6751 lt_prog_compiler_pic='-fPIC'
6753 esac
6756 interix[3-9]*)
6757 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6758 # Instead, we relocate shared libraries at runtime.
6761 msdosdjgpp*)
6762 # Just because we use GCC doesn't mean we suddenly get shared libraries
6763 # on systems that don't support them.
6764 lt_prog_compiler_can_build_shared=no
6765 enable_shared=no
6768 *nto* | *qnx*)
6769 # QNX uses GNU C++, but need to define -shared option too, otherwise
6770 # it will coredump.
6771 lt_prog_compiler_pic='-fPIC -shared'
6774 sysv4*MP*)
6775 if test -d /usr/nec; then
6776 lt_prog_compiler_pic=-Kconform_pic
6781 lt_prog_compiler_pic='-fPIC'
6783 esac
6784 else
6785 # PORTME Check for flag to pass linker flags through the system compiler.
6786 case $host_os in
6787 aix*)
6788 lt_prog_compiler_wl='-Wl,'
6789 if test "$host_cpu" = ia64; then
6790 # AIX 5 now supports IA64 processor
6791 lt_prog_compiler_static='-Bstatic'
6792 else
6793 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6797 mingw* | cygwin* | pw32* | os2* | cegcc*)
6798 # This hack is so that the source file can tell whether it is being
6799 # built for inclusion in a dll (and should export symbols for example).
6800 lt_prog_compiler_pic='-DDLL_EXPORT'
6803 hpux9* | hpux10* | hpux11*)
6804 lt_prog_compiler_wl='-Wl,'
6805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6806 # not for PA HP-UX.
6807 case $host_cpu in
6808 hppa*64*|ia64*)
6809 # +Z the default
6812 lt_prog_compiler_pic='+Z'
6814 esac
6815 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6816 lt_prog_compiler_static='${wl}-a ${wl}archive'
6819 irix5* | irix6* | nonstopux*)
6820 lt_prog_compiler_wl='-Wl,'
6821 # PIC (with -KPIC) is the default.
6822 lt_prog_compiler_static='-non_shared'
6825 linux* | k*bsd*-gnu)
6826 case $cc_basename in
6827 # old Intel for x86_64 which still supported -KPIC.
6828 ecc*)
6829 lt_prog_compiler_wl='-Wl,'
6830 lt_prog_compiler_pic='-KPIC'
6831 lt_prog_compiler_static='-static'
6833 # icc used to be incompatible with GCC.
6834 # ICC 10 doesn't accept -KPIC any more.
6835 icc* | ifort*)
6836 lt_prog_compiler_wl='-Wl,'
6837 lt_prog_compiler_pic='-fPIC'
6838 lt_prog_compiler_static='-static'
6840 # Lahey Fortran 8.1.
6841 lf95*)
6842 lt_prog_compiler_wl='-Wl,'
6843 lt_prog_compiler_pic='--shared'
6844 lt_prog_compiler_static='--static'
6846 pgcc* | pgf77* | pgf90* | pgf95*)
6847 # Portland Group compilers (*not* the Pentium gcc compiler,
6848 # which looks to be a dead project)
6849 lt_prog_compiler_wl='-Wl,'
6850 lt_prog_compiler_pic='-fpic'
6851 lt_prog_compiler_static='-Bstatic'
6853 ccc*)
6854 lt_prog_compiler_wl='-Wl,'
6855 # All Alpha code is PIC.
6856 lt_prog_compiler_static='-non_shared'
6858 xl*)
6859 # IBM XL C 8.0/Fortran 10.1 on PPC
6860 lt_prog_compiler_wl='-Wl,'
6861 lt_prog_compiler_pic='-qpic'
6862 lt_prog_compiler_static='-qstaticlink'
6865 case `$CC -V 2>&1 | sed 5q` in
6866 *Sun\ C*)
6867 # Sun C 5.9
6868 lt_prog_compiler_pic='-KPIC'
6869 lt_prog_compiler_static='-Bstatic'
6870 lt_prog_compiler_wl='-Wl,'
6872 *Sun\ F*)
6873 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6874 lt_prog_compiler_pic='-KPIC'
6875 lt_prog_compiler_static='-Bstatic'
6876 lt_prog_compiler_wl=''
6878 esac
6880 esac
6883 newsos6)
6884 lt_prog_compiler_pic='-KPIC'
6885 lt_prog_compiler_static='-Bstatic'
6888 *nto* | *qnx*)
6889 # QNX uses GNU C++, but need to define -shared option too, otherwise
6890 # it will coredump.
6891 lt_prog_compiler_pic='-fPIC -shared'
6894 osf3* | osf4* | osf5*)
6895 lt_prog_compiler_wl='-Wl,'
6896 # All OSF/1 code is PIC.
6897 lt_prog_compiler_static='-non_shared'
6900 rdos*)
6901 lt_prog_compiler_static='-non_shared'
6904 solaris*)
6905 lt_prog_compiler_pic='-KPIC'
6906 lt_prog_compiler_static='-Bstatic'
6907 case $cc_basename in
6908 f77* | f90* | f95*)
6909 lt_prog_compiler_wl='-Qoption ld ';;
6911 lt_prog_compiler_wl='-Wl,';;
6912 esac
6915 sunos4*)
6916 lt_prog_compiler_wl='-Qoption ld '
6917 lt_prog_compiler_pic='-PIC'
6918 lt_prog_compiler_static='-Bstatic'
6921 sysv4 | sysv4.2uw2* | sysv4.3*)
6922 lt_prog_compiler_wl='-Wl,'
6923 lt_prog_compiler_pic='-KPIC'
6924 lt_prog_compiler_static='-Bstatic'
6927 sysv4*MP*)
6928 if test -d /usr/nec ;then
6929 lt_prog_compiler_pic='-Kconform_pic'
6930 lt_prog_compiler_static='-Bstatic'
6934 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6935 lt_prog_compiler_wl='-Wl,'
6936 lt_prog_compiler_pic='-KPIC'
6937 lt_prog_compiler_static='-Bstatic'
6940 unicos*)
6941 lt_prog_compiler_wl='-Wl,'
6942 lt_prog_compiler_can_build_shared=no
6945 uts4*)
6946 lt_prog_compiler_pic='-pic'
6947 lt_prog_compiler_static='-Bstatic'
6951 lt_prog_compiler_can_build_shared=no
6953 esac
6956 case $host_os in
6957 # For platforms which do not support PIC, -DPIC is meaningless:
6958 *djgpp*)
6959 lt_prog_compiler_pic=
6962 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6964 esac
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6966 $as_echo "$lt_prog_compiler_pic" >&6; }
6974 # Check to make sure the PIC flag actually works.
6976 if test -n "$lt_prog_compiler_pic"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6978 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6979 if ${lt_cv_prog_compiler_pic_works+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 lt_cv_prog_compiler_pic_works=no
6983 ac_outfile=conftest.$ac_objext
6984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6985 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6986 # Insert the option either (1) after the last *FLAGS variable, or
6987 # (2) before a word containing "conftest.", or (3) at the end.
6988 # Note that $ac_compile itself does not contain backslashes and begins
6989 # with a dollar sign (not a hyphen), so the echo should work correctly.
6990 # The option is referenced via a variable to avoid confusing sed.
6991 lt_compile=`echo "$ac_compile" | $SED \
6992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6994 -e 's:$: $lt_compiler_flag:'`
6995 (eval echo "\"\$as_me:6995: $lt_compile\"" >&5)
6996 (eval "$lt_compile" 2>conftest.err)
6997 ac_status=$?
6998 cat conftest.err >&5
6999 echo "$as_me:6999: \$? = $ac_status" >&5
7000 if (exit $ac_status) && test -s "$ac_outfile"; then
7001 # The compiler can only warn and ignore the option if not recognized
7002 # So say no if there are warnings other than the usual output.
7003 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7006 lt_cv_prog_compiler_pic_works=yes
7009 $RM conftest*
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7013 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7015 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7016 case $lt_prog_compiler_pic in
7017 "" | " "*) ;;
7018 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7019 esac
7020 else
7021 lt_prog_compiler_pic=
7022 lt_prog_compiler_can_build_shared=no
7033 # Check to make sure the static flag actually works.
7035 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7037 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7038 if ${lt_cv_prog_compiler_static_works+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 lt_cv_prog_compiler_static_works=no
7042 save_LDFLAGS="$LDFLAGS"
7043 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7046 # The linker can only warn and ignore the option if not recognized
7047 # So say no if there are warnings
7048 if test -s conftest.err; then
7049 # Append any errors to the config.log.
7050 cat conftest.err 1>&5
7051 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7053 if diff conftest.exp conftest.er2 >/dev/null; then
7054 lt_cv_prog_compiler_static_works=yes
7056 else
7057 lt_cv_prog_compiler_static_works=yes
7060 $RM -r conftest*
7061 LDFLAGS="$save_LDFLAGS"
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7065 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7067 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7069 else
7070 lt_prog_compiler_static=
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7081 if ${lt_cv_prog_compiler_c_o+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 lt_cv_prog_compiler_c_o=no
7085 $RM -r conftest 2>/dev/null
7086 mkdir conftest
7087 cd conftest
7088 mkdir out
7089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7091 lt_compiler_flag="-o out/conftest2.$ac_objext"
7092 # Insert the option either (1) after the last *FLAGS variable, or
7093 # (2) before a word containing "conftest.", or (3) at the end.
7094 # Note that $ac_compile itself does not contain backslashes and begins
7095 # with a dollar sign (not a hyphen), so the echo should work correctly.
7096 lt_compile=`echo "$ac_compile" | $SED \
7097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7099 -e 's:$: $lt_compiler_flag:'`
7100 (eval echo "\"\$as_me:7100: $lt_compile\"" >&5)
7101 (eval "$lt_compile" 2>out/conftest.err)
7102 ac_status=$?
7103 cat out/conftest.err >&5
7104 echo "$as_me:7104: \$? = $ac_status" >&5
7105 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7106 then
7107 # The compiler can only warn and ignore the option if not recognized
7108 # So say no if there are warnings
7109 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7112 lt_cv_prog_compiler_c_o=yes
7115 chmod u+w . 2>&5
7116 $RM conftest*
7117 # SGI C++ compiler will create directory out/ii_files/ for
7118 # template instantiation
7119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7120 $RM out/* && rmdir out
7121 cd ..
7122 $RM -r conftest
7123 $RM conftest*
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7127 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7135 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7136 if ${lt_cv_prog_compiler_c_o+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 lt_cv_prog_compiler_c_o=no
7140 $RM -r conftest 2>/dev/null
7141 mkdir conftest
7142 cd conftest
7143 mkdir out
7144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7146 lt_compiler_flag="-o out/conftest2.$ac_objext"
7147 # Insert the option either (1) after the last *FLAGS variable, or
7148 # (2) before a word containing "conftest.", or (3) at the end.
7149 # Note that $ac_compile itself does not contain backslashes and begins
7150 # with a dollar sign (not a hyphen), so the echo should work correctly.
7151 lt_compile=`echo "$ac_compile" | $SED \
7152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7154 -e 's:$: $lt_compiler_flag:'`
7155 (eval echo "\"\$as_me:7155: $lt_compile\"" >&5)
7156 (eval "$lt_compile" 2>out/conftest.err)
7157 ac_status=$?
7158 cat out/conftest.err >&5
7159 echo "$as_me:7159: \$? = $ac_status" >&5
7160 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7161 then
7162 # The compiler can only warn and ignore the option if not recognized
7163 # So say no if there are warnings
7164 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7165 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7166 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7167 lt_cv_prog_compiler_c_o=yes
7170 chmod u+w . 2>&5
7171 $RM conftest*
7172 # SGI C++ compiler will create directory out/ii_files/ for
7173 # template instantiation
7174 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7175 $RM out/* && rmdir out
7176 cd ..
7177 $RM -r conftest
7178 $RM conftest*
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7182 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7187 hard_links="nottested"
7188 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7189 # do not overwrite the value of need_locks provided by the user
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7191 $as_echo_n "checking if we can lock with hard links... " >&6; }
7192 hard_links=yes
7193 $RM conftest*
7194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7195 touch conftest.a
7196 ln conftest.a conftest.b 2>&5 || hard_links=no
7197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7199 $as_echo "$hard_links" >&6; }
7200 if test "$hard_links" = no; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7202 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7203 need_locks=warn
7205 else
7206 need_locks=no
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7215 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7217 runpath_var=
7218 allow_undefined_flag=
7219 always_export_symbols=no
7220 archive_cmds=
7221 archive_expsym_cmds=
7222 compiler_needs_object=no
7223 enable_shared_with_static_runtimes=no
7224 export_dynamic_flag_spec=
7225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7226 hardcode_automatic=no
7227 hardcode_direct=no
7228 hardcode_direct_absolute=no
7229 hardcode_libdir_flag_spec=
7230 hardcode_libdir_flag_spec_ld=
7231 hardcode_libdir_separator=
7232 hardcode_minus_L=no
7233 hardcode_shlibpath_var=unsupported
7234 inherit_rpath=no
7235 link_all_deplibs=unknown
7236 module_cmds=
7237 module_expsym_cmds=
7238 old_archive_from_new_cmds=
7239 old_archive_from_expsyms_cmds=
7240 thread_safe_flag_spec=
7241 whole_archive_flag_spec=
7242 # include_expsyms should be a list of space-separated symbols to be *always*
7243 # included in the symbol list
7244 include_expsyms=
7245 # exclude_expsyms can be an extended regexp of symbols to exclude
7246 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7247 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7248 # as well as any symbol that contains `d'.
7249 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7250 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7251 # platforms (ab)use it in PIC code, but their linkers get confused if
7252 # the symbol is explicitly referenced. Since portable code cannot
7253 # rely on this symbol name, it's probably fine to never include it in
7254 # preloaded symbol tables.
7255 # Exclude shared library initialization/finalization symbols.
7256 extract_expsyms_cmds=
7258 case $host_os in
7259 cygwin* | mingw* | pw32* | cegcc*)
7260 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7261 # When not using gcc, we currently assume that we are using
7262 # Microsoft Visual C++.
7263 if test "$GCC" != yes; then
7264 with_gnu_ld=no
7267 interix*)
7268 # we just hope/assume this is gcc and not c89 (= MSVC++)
7269 with_gnu_ld=yes
7271 openbsd*)
7272 with_gnu_ld=no
7274 esac
7276 ld_shlibs=yes
7277 if test "$with_gnu_ld" = yes; then
7278 # If archive_cmds runs LD, not CC, wlarc should be empty
7279 wlarc='${wl}'
7281 # Set some defaults for GNU ld with shared library support. These
7282 # are reset later if shared libraries are not supported. Putting them
7283 # here allows them to be overridden if necessary.
7284 runpath_var=LD_RUN_PATH
7285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7286 export_dynamic_flag_spec='${wl}--export-dynamic'
7287 # ancient GNU ld didn't support --whole-archive et. al.
7288 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7289 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7290 else
7291 whole_archive_flag_spec=
7293 supports_anon_versioning=no
7294 case `$LD -v 2>&1` in
7295 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7296 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7297 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7298 *\ 2.11.*) ;; # other 2.11 versions
7299 *) supports_anon_versioning=yes ;;
7300 esac
7302 # See if GNU ld supports shared libraries.
7303 case $host_os in
7304 aix[3-9]*)
7305 # On AIX/PPC, the GNU linker is very broken
7306 if test "$host_cpu" != ia64; then
7307 ld_shlibs=no
7308 cat <<_LT_EOF 1>&2
7310 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7311 *** to be unable to reliably create shared libraries on AIX.
7312 *** Therefore, libtool is disabling shared libraries support. If you
7313 *** really care for shared libraries, you may want to modify your PATH
7314 *** so that a non-GNU linker is found, and then restart.
7316 _LT_EOF
7320 amigaos*)
7321 case $host_cpu in
7322 powerpc)
7323 # see comment about AmigaOS4 .so support
7324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7325 archive_expsym_cmds=''
7327 m68k)
7328 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)'
7329 hardcode_libdir_flag_spec='-L$libdir'
7330 hardcode_minus_L=yes
7332 esac
7335 beos*)
7336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7337 allow_undefined_flag=unsupported
7338 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7339 # support --undefined. This deserves some investigation. FIXME
7340 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7341 else
7342 ld_shlibs=no
7346 cygwin* | mingw* | pw32* | cegcc*)
7347 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7348 # as there is no search path for DLLs.
7349 hardcode_libdir_flag_spec='-L$libdir'
7350 allow_undefined_flag=unsupported
7351 always_export_symbols=no
7352 enable_shared_with_static_runtimes=yes
7353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7355 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7357 # If the export-symbols file already is a .def file (1st line
7358 # is EXPORTS), use it as is; otherwise, prepend...
7359 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7360 cp $export_symbols $output_objdir/$soname.def;
7361 else
7362 echo EXPORTS > $output_objdir/$soname.def;
7363 cat $export_symbols >> $output_objdir/$soname.def;
7365 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7366 else
7367 ld_shlibs=no
7371 interix[3-9]*)
7372 hardcode_direct=no
7373 hardcode_shlibpath_var=no
7374 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7375 export_dynamic_flag_spec='${wl}-E'
7376 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7377 # Instead, shared libraries are loaded at an image base (0x10000000 by
7378 # default) and relocated if they conflict, which is a slow very memory
7379 # consuming and fragmenting process. To avoid this, we pick a random,
7380 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7381 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7382 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7383 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'
7386 gnu* | linux* | tpf* | k*bsd*-gnu)
7387 tmp_diet=no
7388 if test "$host_os" = linux-dietlibc; then
7389 case $cc_basename in
7390 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7391 esac
7393 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7394 && test "$tmp_diet" = no
7395 then
7396 tmp_addflag=
7397 tmp_sharedflag='-shared'
7398 case $cc_basename,$host_cpu in
7399 pgcc*) # Portland Group C compiler
7400 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'
7401 tmp_addflag=' $pic_flag'
7403 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7404 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'
7405 tmp_addflag=' $pic_flag -Mnomain' ;;
7406 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7407 tmp_addflag=' -i_dynamic' ;;
7408 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7409 tmp_addflag=' -i_dynamic -nofor_main' ;;
7410 ifc* | ifort*) # Intel Fortran compiler
7411 tmp_addflag=' -nofor_main' ;;
7412 lf95*) # Lahey Fortran 8.1
7413 whole_archive_flag_spec=
7414 tmp_sharedflag='--shared' ;;
7415 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7416 tmp_sharedflag='-qmkshrobj'
7417 tmp_addflag= ;;
7418 esac
7419 case `$CC -V 2>&1 | sed 5q` in
7420 *Sun\ C*) # Sun C 5.9
7421 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'
7422 compiler_needs_object=yes
7423 tmp_sharedflag='-G' ;;
7424 *Sun\ F*) # Sun Fortran 8.3
7425 tmp_sharedflag='-G' ;;
7426 esac
7427 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7429 if test "x$supports_anon_versioning" = xyes; then
7430 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7432 echo "local: *; };" >> $output_objdir/$libname.ver~
7433 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7436 case $cc_basename in
7437 xlf*)
7438 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7439 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7440 hardcode_libdir_flag_spec=
7441 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7442 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7443 if test "x$supports_anon_versioning" = xyes; then
7444 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7446 echo "local: *; };" >> $output_objdir/$libname.ver~
7447 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7450 esac
7451 else
7452 ld_shlibs=no
7456 netbsd*)
7457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7458 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7459 wlarc=
7460 else
7461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7462 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7466 solaris*)
7467 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7468 ld_shlibs=no
7469 cat <<_LT_EOF 1>&2
7471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7472 *** create shared libraries on Solaris systems. Therefore, libtool
7473 *** is disabling shared libraries support. We urge you to upgrade GNU
7474 *** binutils to release 2.9.1 or newer. Another option is to modify
7475 *** your PATH or compiler configuration so that the native linker is
7476 *** used, and then restart.
7478 _LT_EOF
7479 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7482 else
7483 ld_shlibs=no
7487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7488 case `$LD -v 2>&1` in
7489 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7490 ld_shlibs=no
7491 cat <<_LT_EOF 1>&2
7493 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7494 *** reliably create shared libraries on SCO systems. Therefore, libtool
7495 *** is disabling shared libraries support. We urge you to upgrade GNU
7496 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7497 *** your PATH or compiler configuration so that the native linker is
7498 *** used, and then restart.
7500 _LT_EOF
7503 # For security reasons, it is highly recommended that you always
7504 # use absolute paths for naming shared libraries, and exclude the
7505 # DT_RUNPATH tag from executables and libraries. But doing so
7506 # requires that you compile everything twice, which is a pain.
7507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7511 else
7512 ld_shlibs=no
7515 esac
7518 sunos4*)
7519 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7520 wlarc=
7521 hardcode_direct=yes
7522 hardcode_shlibpath_var=no
7526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7528 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7529 else
7530 ld_shlibs=no
7533 esac
7535 if test "$ld_shlibs" = no; then
7536 runpath_var=
7537 hardcode_libdir_flag_spec=
7538 export_dynamic_flag_spec=
7539 whole_archive_flag_spec=
7541 else
7542 # PORTME fill in a description of your system's linker (not GNU ld)
7543 case $host_os in
7544 aix3*)
7545 allow_undefined_flag=unsupported
7546 always_export_symbols=yes
7547 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'
7548 # Note: this linker hardcodes the directories in LIBPATH if there
7549 # are no directories specified by -L.
7550 hardcode_minus_L=yes
7551 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7552 # Neither direct hardcoding nor static linking is supported with a
7553 # broken collect2.
7554 hardcode_direct=unsupported
7558 aix[4-9]*)
7559 if test "$host_cpu" = ia64; then
7560 # On IA64, the linker does run time linking by default, so we don't
7561 # have to do anything special.
7562 aix_use_runtimelinking=no
7563 exp_sym_flag='-Bexport'
7564 no_entry_flag=""
7565 else
7566 # If we're using GNU nm, then we don't want the "-C" option.
7567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7568 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7569 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'
7570 else
7571 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'
7573 aix_use_runtimelinking=no
7575 # Test if we are trying to use run time linking or normal
7576 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7577 # need to do runtime linking.
7578 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7579 for ld_flag in $LDFLAGS; do
7580 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7581 aix_use_runtimelinking=yes
7582 break
7584 done
7586 esac
7588 exp_sym_flag='-bexport'
7589 no_entry_flag='-bnoentry'
7592 # When large executables or shared objects are built, AIX ld can
7593 # have problems creating the table of contents. If linking a library
7594 # or program results in "error TOC overflow" add -mminimal-toc to
7595 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7596 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7598 archive_cmds=''
7599 hardcode_direct=yes
7600 hardcode_direct_absolute=yes
7601 hardcode_libdir_separator=':'
7602 link_all_deplibs=yes
7603 file_list_spec='${wl}-f,'
7605 if test "$GCC" = yes; then
7606 case $host_os in aix4.[012]|aix4.[012].*)
7607 # We only want to do this on AIX 4.2 and lower, the check
7608 # below for broken collect2 doesn't work under 4.3+
7609 collect2name=`${CC} -print-prog-name=collect2`
7610 if test -f "$collect2name" &&
7611 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7612 then
7613 # We have reworked collect2
7615 else
7616 # We have old collect2
7617 hardcode_direct=unsupported
7618 # It fails to find uninstalled libraries when the uninstalled
7619 # path is not listed in the libpath. Setting hardcode_minus_L
7620 # to unsupported forces relinking
7621 hardcode_minus_L=yes
7622 hardcode_libdir_flag_spec='-L$libdir'
7623 hardcode_libdir_separator=
7626 esac
7627 shared_flag='-shared'
7628 if test "$aix_use_runtimelinking" = yes; then
7629 shared_flag="$shared_flag "'${wl}-G'
7631 else
7632 # not using gcc
7633 if test "$host_cpu" = ia64; then
7634 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7635 # chokes on -Wl,-G. The following line is correct:
7636 shared_flag='-G'
7637 else
7638 if test "$aix_use_runtimelinking" = yes; then
7639 shared_flag='${wl}-G'
7640 else
7641 shared_flag='${wl}-bM:SRE'
7646 export_dynamic_flag_spec='${wl}-bexpall'
7647 # It seems that -bexpall does not export symbols beginning with
7648 # underscore (_), so it is better to generate a list of symbols to export.
7649 always_export_symbols=yes
7650 if test "$aix_use_runtimelinking" = yes; then
7651 # Warning - without using the other runtime loading flags (-brtl),
7652 # -berok will link without error, but may produce a broken library.
7653 allow_undefined_flag='-berok'
7654 # Determine the default libpath from the value encoded in an
7655 # empty executable.
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7660 main ()
7664 return 0;
7666 _ACEOF
7667 if ac_fn_c_try_link "$LINENO"; then :
7669 lt_aix_libpath_sed='
7670 /Import File Strings/,/^$/ {
7671 /^0/ {
7672 s/^0 *\(.*\)$/\1/
7676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7677 # Check for a 64-bit object if we didn't find anything.
7678 if test -z "$aix_libpath"; then
7679 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7682 rm -f core conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
7684 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7686 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7687 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"
7688 else
7689 if test "$host_cpu" = ia64; then
7690 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7691 allow_undefined_flag="-z nodefs"
7692 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"
7693 else
7694 # Determine the default libpath from the value encoded in an
7695 # empty executable.
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7700 main ()
7704 return 0;
7706 _ACEOF
7707 if ac_fn_c_try_link "$LINENO"; then :
7709 lt_aix_libpath_sed='
7710 /Import File Strings/,/^$/ {
7711 /^0/ {
7712 s/^0 *\(.*\)$/\1/
7716 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7717 # Check for a 64-bit object if we didn't find anything.
7718 if test -z "$aix_libpath"; then
7719 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7722 rm -f core conftest.err conftest.$ac_objext \
7723 conftest$ac_exeext conftest.$ac_ext
7724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7726 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7727 # Warning - without using the other run time loading flags,
7728 # -berok will link without error, but may produce a broken library.
7729 no_undefined_flag=' ${wl}-bernotok'
7730 allow_undefined_flag=' ${wl}-berok'
7731 # Exported symbols can be pulled into shared objects from archives
7732 whole_archive_flag_spec='$convenience'
7733 archive_cmds_need_lc=yes
7734 # This is similar to how AIX traditionally builds its shared libraries.
7735 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'
7740 amigaos*)
7741 case $host_cpu in
7742 powerpc)
7743 # see comment about AmigaOS4 .so support
7744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7745 archive_expsym_cmds=''
7747 m68k)
7748 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)'
7749 hardcode_libdir_flag_spec='-L$libdir'
7750 hardcode_minus_L=yes
7752 esac
7755 bsdi[45]*)
7756 export_dynamic_flag_spec=-rdynamic
7759 cygwin* | mingw* | pw32* | cegcc*)
7760 # When not using gcc, we currently assume that we are using
7761 # Microsoft Visual C++.
7762 # hardcode_libdir_flag_spec is actually meaningless, as there is
7763 # no search path for DLLs.
7764 hardcode_libdir_flag_spec=' '
7765 allow_undefined_flag=unsupported
7766 # Tell ltmain to make .lib files, not .a files.
7767 libext=lib
7768 # Tell ltmain to make .dll files, not .so files.
7769 shrext_cmds=".dll"
7770 # FIXME: Setting linknames here is a bad hack.
7771 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7772 # The linker will automatically build a .lib file if we build a DLL.
7773 old_archive_from_new_cmds='true'
7774 # FIXME: Should let the user specify the lib program.
7775 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7776 fix_srcfile_path='`cygpath -w "$srcfile"`'
7777 enable_shared_with_static_runtimes=yes
7780 darwin* | rhapsody*)
7783 archive_cmds_need_lc=no
7784 hardcode_direct=no
7785 hardcode_automatic=yes
7786 hardcode_shlibpath_var=unsupported
7787 whole_archive_flag_spec=''
7788 link_all_deplibs=yes
7789 allow_undefined_flag="$_lt_dar_allow_undefined"
7790 case $cc_basename in
7791 ifort*) _lt_dar_can_shared=yes ;;
7792 *) _lt_dar_can_shared=$GCC ;;
7793 esac
7794 if test "$_lt_dar_can_shared" = "yes"; then
7795 output_verbose_link_cmd=echo
7796 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7797 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7798 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}"
7799 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}"
7801 else
7802 ld_shlibs=no
7807 dgux*)
7808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7809 hardcode_libdir_flag_spec='-L$libdir'
7810 hardcode_shlibpath_var=no
7813 freebsd1*)
7814 ld_shlibs=no
7817 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7818 # support. Future versions do this automatically, but an explicit c++rt0.o
7819 # does not break anything, and helps significantly (at the cost of a little
7820 # extra space).
7821 freebsd2.2*)
7822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7823 hardcode_libdir_flag_spec='-R$libdir'
7824 hardcode_direct=yes
7825 hardcode_shlibpath_var=no
7828 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7829 freebsd2*)
7830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_direct=yes
7832 hardcode_minus_L=yes
7833 hardcode_shlibpath_var=no
7836 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7837 freebsd* | dragonfly*)
7838 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7839 hardcode_libdir_flag_spec='-R$libdir'
7840 hardcode_direct=yes
7841 hardcode_shlibpath_var=no
7844 hpux9*)
7845 if test "$GCC" = yes; then
7846 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'
7847 else
7848 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'
7850 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7851 hardcode_libdir_separator=:
7852 hardcode_direct=yes
7854 # hardcode_minus_L: Not really in the search PATH,
7855 # but as the default location of the library.
7856 hardcode_minus_L=yes
7857 export_dynamic_flag_spec='${wl}-E'
7860 hpux10*)
7861 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7862 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7863 else
7864 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7866 if test "$with_gnu_ld" = no; then
7867 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7868 hardcode_libdir_flag_spec_ld='+b $libdir'
7869 hardcode_libdir_separator=:
7870 hardcode_direct=yes
7871 hardcode_direct_absolute=yes
7872 export_dynamic_flag_spec='${wl}-E'
7873 # hardcode_minus_L: Not really in the search PATH,
7874 # but as the default location of the library.
7875 hardcode_minus_L=yes
7879 hpux11*)
7880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7881 case $host_cpu in
7882 hppa*64*)
7883 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7885 ia64*)
7886 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7889 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7891 esac
7892 else
7893 case $host_cpu in
7894 hppa*64*)
7895 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7897 ia64*)
7898 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7901 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7903 esac
7905 if test "$with_gnu_ld" = no; then
7906 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7907 hardcode_libdir_separator=:
7909 case $host_cpu in
7910 hppa*64*|ia64*)
7911 hardcode_direct=no
7912 hardcode_shlibpath_var=no
7915 hardcode_direct=yes
7916 hardcode_direct_absolute=yes
7917 export_dynamic_flag_spec='${wl}-E'
7919 # hardcode_minus_L: Not really in the search PATH,
7920 # but as the default location of the library.
7921 hardcode_minus_L=yes
7923 esac
7927 irix5* | irix6* | nonstopux*)
7928 if test "$GCC" = yes; then
7929 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'
7930 # Try to use the -exported_symbol ld option, if it does not
7931 # work, assume that -exports_file does not work either and
7932 # implicitly export all symbols.
7933 save_LDFLAGS="$LDFLAGS"
7934 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 int foo(void) {}
7938 _ACEOF
7939 if ac_fn_c_try_link "$LINENO"; then :
7940 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'
7943 rm -f core conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
7945 LDFLAGS="$save_LDFLAGS"
7946 else
7947 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'
7948 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'
7950 archive_cmds_need_lc='no'
7951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7952 hardcode_libdir_separator=:
7953 inherit_rpath=yes
7954 link_all_deplibs=yes
7957 netbsd*)
7958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7960 else
7961 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7963 hardcode_libdir_flag_spec='-R$libdir'
7964 hardcode_direct=yes
7965 hardcode_shlibpath_var=no
7968 newsos6)
7969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7970 hardcode_direct=yes
7971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7972 hardcode_libdir_separator=:
7973 hardcode_shlibpath_var=no
7976 *nto* | *qnx*)
7979 openbsd*)
7980 if test -f /usr/libexec/ld.so; then
7981 hardcode_direct=yes
7982 hardcode_shlibpath_var=no
7983 hardcode_direct_absolute=yes
7984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7986 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7987 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7988 export_dynamic_flag_spec='${wl}-E'
7989 else
7990 case $host_os in
7991 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7993 hardcode_libdir_flag_spec='-R$libdir'
7996 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7999 esac
8001 else
8002 ld_shlibs=no
8006 os2*)
8007 hardcode_libdir_flag_spec='-L$libdir'
8008 hardcode_minus_L=yes
8009 allow_undefined_flag=unsupported
8010 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'
8011 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8014 osf3*)
8015 if test "$GCC" = yes; then
8016 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8017 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'
8018 else
8019 allow_undefined_flag=' -expect_unresolved \*'
8020 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'
8022 archive_cmds_need_lc='no'
8023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8024 hardcode_libdir_separator=:
8027 osf4* | osf5*) # as osf3* with the addition of -msym flag
8028 if test "$GCC" = yes; then
8029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8030 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'
8031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8032 else
8033 allow_undefined_flag=' -expect_unresolved \*'
8034 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'
8035 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~
8036 $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'
8038 # Both c and cxx compiler support -rpath directly
8039 hardcode_libdir_flag_spec='-rpath $libdir'
8041 archive_cmds_need_lc='no'
8042 hardcode_libdir_separator=:
8045 solaris*)
8046 no_undefined_flag=' -z defs'
8047 if test "$GCC" = yes; then
8048 wlarc='${wl}'
8049 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8050 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8051 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8052 else
8053 case `$CC -V 2>&1` in
8054 *"Compilers 5.0"*)
8055 wlarc=''
8056 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8057 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8058 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8061 wlarc='${wl}'
8062 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8064 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8066 esac
8068 hardcode_libdir_flag_spec='-R$libdir'
8069 hardcode_shlibpath_var=no
8070 case $host_os in
8071 solaris2.[0-5] | solaris2.[0-5].*) ;;
8073 # The compiler driver will combine and reorder linker options,
8074 # but understands `-z linker_flag'. GCC discards it without `$wl',
8075 # but is careful enough not to reorder.
8076 # Supported since Solaris 2.6 (maybe 2.5.1?)
8077 if test "$GCC" = yes; then
8078 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8079 else
8080 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8083 esac
8084 link_all_deplibs=yes
8087 sunos4*)
8088 if test "x$host_vendor" = xsequent; then
8089 # Use $CC to link under sequent, because it throws in some extra .o
8090 # files that make .init and .fini sections work.
8091 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8092 else
8093 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8095 hardcode_libdir_flag_spec='-L$libdir'
8096 hardcode_direct=yes
8097 hardcode_minus_L=yes
8098 hardcode_shlibpath_var=no
8101 sysv4)
8102 case $host_vendor in
8103 sni)
8104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8105 hardcode_direct=yes # is this really true???
8107 siemens)
8108 ## LD is ld it makes a PLAMLIB
8109 ## CC just makes a GrossModule.
8110 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8111 reload_cmds='$CC -r -o $output$reload_objs'
8112 hardcode_direct=no
8114 motorola)
8115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8116 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8118 esac
8119 runpath_var='LD_RUN_PATH'
8120 hardcode_shlibpath_var=no
8123 sysv4.3*)
8124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8125 hardcode_shlibpath_var=no
8126 export_dynamic_flag_spec='-Bexport'
8129 sysv4*MP*)
8130 if test -d /usr/nec; then
8131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8132 hardcode_shlibpath_var=no
8133 runpath_var=LD_RUN_PATH
8134 hardcode_runpath_var=yes
8135 ld_shlibs=yes
8139 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8140 no_undefined_flag='${wl}-z,text'
8141 archive_cmds_need_lc=no
8142 hardcode_shlibpath_var=no
8143 runpath_var='LD_RUN_PATH'
8145 if test "$GCC" = yes; then
8146 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8147 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8148 else
8149 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8150 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8154 sysv5* | sco3.2v5* | sco5v6*)
8155 # Note: We can NOT use -z defs as we might desire, because we do not
8156 # link with -lc, and that would cause any symbols used from libc to
8157 # always be unresolved, which means just about no library would
8158 # ever link correctly. If we're not using GNU ld we use -z text
8159 # though, which does catch some bad symbols but isn't as heavy-handed
8160 # as -z defs.
8161 no_undefined_flag='${wl}-z,text'
8162 allow_undefined_flag='${wl}-z,nodefs'
8163 archive_cmds_need_lc=no
8164 hardcode_shlibpath_var=no
8165 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8166 hardcode_libdir_separator=':'
8167 link_all_deplibs=yes
8168 export_dynamic_flag_spec='${wl}-Bexport'
8169 runpath_var='LD_RUN_PATH'
8171 if test "$GCC" = yes; then
8172 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8173 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8174 else
8175 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8176 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8180 uts4*)
8181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8182 hardcode_libdir_flag_spec='-L$libdir'
8183 hardcode_shlibpath_var=no
8187 ld_shlibs=no
8189 esac
8191 if test x$host_vendor = xsni; then
8192 case $host in
8193 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8194 export_dynamic_flag_spec='${wl}-Blargedynsym'
8196 esac
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8201 $as_echo "$ld_shlibs" >&6; }
8202 test "$ld_shlibs" = no && can_build_shared=no
8204 with_gnu_ld=$with_gnu_ld
8221 # Do we need to explicitly link libc?
8223 case "x$archive_cmds_need_lc" in
8224 x|xyes)
8225 # Assume -lc should be added
8226 archive_cmds_need_lc=yes
8228 if test "$enable_shared" = yes && test "$GCC" = yes; then
8229 case $archive_cmds in
8230 *'~'*)
8231 # FIXME: we may have to deal with multi-command sequences.
8233 '$CC '*)
8234 # Test whether the compiler implicitly links with -lc since on some
8235 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8236 # to ld, don't add -lc before -lgcc.
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8238 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8239 $RM conftest*
8240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8243 (eval $ac_compile) 2>&5
8244 ac_status=$?
8245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8246 test $ac_status = 0; } 2>conftest.err; then
8247 soname=conftest
8248 lib=conftest
8249 libobjs=conftest.$ac_objext
8250 deplibs=
8251 wl=$lt_prog_compiler_wl
8252 pic_flag=$lt_prog_compiler_pic
8253 compiler_flags=-v
8254 linker_flags=-v
8255 verstring=
8256 output_objdir=.
8257 libname=conftest
8258 lt_save_allow_undefined_flag=$allow_undefined_flag
8259 allow_undefined_flag=
8260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8261 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8262 ac_status=$?
8263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8264 test $ac_status = 0; }
8265 then
8266 archive_cmds_need_lc=no
8267 else
8268 archive_cmds_need_lc=yes
8270 allow_undefined_flag=$lt_save_allow_undefined_flag
8271 else
8272 cat conftest.err 1>&5
8274 $RM conftest*
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8276 $as_echo "$archive_cmds_need_lc" >&6; }
8278 esac
8281 esac
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8440 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8442 if test "$GCC" = yes; then
8443 case $host_os in
8444 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8445 *) lt_awk_arg="/^libraries:/" ;;
8446 esac
8447 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8448 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8449 # if the path contains ";" then we assume it to be the separator
8450 # otherwise default to the standard path separator (i.e. ":") - it is
8451 # assumed that no part of a normal pathname contains ";" but that should
8452 # okay in the real world where ";" in dirpaths is itself problematic.
8453 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8454 else
8455 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8457 # Ok, now we have the path, separated by spaces, we can step through it
8458 # and add multilib dir if necessary.
8459 lt_tmp_lt_search_path_spec=
8460 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8461 for lt_sys_path in $lt_search_path_spec; do
8462 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8463 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8464 else
8465 test -d "$lt_sys_path" && \
8466 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8468 done
8469 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8470 BEGIN {RS=" "; FS="/|\n";} {
8471 lt_foo="";
8472 lt_count=0;
8473 for (lt_i = NF; lt_i > 0; lt_i--) {
8474 if ($lt_i != "" && $lt_i != ".") {
8475 if ($lt_i == "..") {
8476 lt_count++;
8477 } else {
8478 if (lt_count == 0) {
8479 lt_foo="/" $lt_i lt_foo;
8480 } else {
8481 lt_count--;
8486 if (lt_foo != "") { lt_freq[lt_foo]++; }
8487 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8489 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8490 else
8491 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8493 library_names_spec=
8494 libname_spec='lib$name'
8495 soname_spec=
8496 shrext_cmds=".so"
8497 postinstall_cmds=
8498 postuninstall_cmds=
8499 finish_cmds=
8500 finish_eval=
8501 shlibpath_var=
8502 shlibpath_overrides_runpath=unknown
8503 version_type=none
8504 dynamic_linker="$host_os ld.so"
8505 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8506 need_lib_prefix=unknown
8507 hardcode_into_libs=no
8509 # when you set need_version to no, make sure it does not cause -set_version
8510 # flags to be left without arguments
8511 need_version=unknown
8513 case $host_os in
8514 aix3*)
8515 version_type=linux
8516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8517 shlibpath_var=LIBPATH
8519 # AIX 3 has no versioning support, so we append a major version to the name.
8520 soname_spec='${libname}${release}${shared_ext}$major'
8523 aix[4-9]*)
8524 version_type=linux
8525 need_lib_prefix=no
8526 need_version=no
8527 hardcode_into_libs=yes
8528 if test "$host_cpu" = ia64; then
8529 # AIX 5 supports IA64
8530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8531 shlibpath_var=LD_LIBRARY_PATH
8532 else
8533 # With GCC up to 2.95.x, collect2 would create an import file
8534 # for dependence libraries. The import file would start with
8535 # the line `#! .'. This would cause the generated library to
8536 # depend on `.', always an invalid library. This was fixed in
8537 # development snapshots of GCC prior to 3.0.
8538 case $host_os in
8539 aix4 | aix4.[01] | aix4.[01].*)
8540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8541 echo ' yes '
8542 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8544 else
8545 can_build_shared=no
8548 esac
8549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8550 # soname into executable. Probably we can add versioning support to
8551 # collect2, so additional links can be useful in future.
8552 if test "$aix_use_runtimelinking" = yes; then
8553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8554 # instead of lib<name>.a to let people know that these are not
8555 # typical AIX shared libraries.
8556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8557 else
8558 # We preserve .a as extension for shared libraries through AIX4.2
8559 # and later when we are not doing run time linking.
8560 library_names_spec='${libname}${release}.a $libname.a'
8561 soname_spec='${libname}${release}${shared_ext}$major'
8563 shlibpath_var=LIBPATH
8567 amigaos*)
8568 case $host_cpu in
8569 powerpc)
8570 # Since July 2007 AmigaOS4 officially supports .so libraries.
8571 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8574 m68k)
8575 library_names_spec='$libname.ixlibrary $libname.a'
8576 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8577 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'
8579 esac
8582 beos*)
8583 library_names_spec='${libname}${shared_ext}'
8584 dynamic_linker="$host_os ld.so"
8585 shlibpath_var=LIBRARY_PATH
8588 bsdi[45]*)
8589 version_type=linux
8590 need_version=no
8591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8592 soname_spec='${libname}${release}${shared_ext}$major'
8593 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8594 shlibpath_var=LD_LIBRARY_PATH
8595 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8596 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8597 # the default ld.so.conf also contains /usr/contrib/lib and
8598 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8599 # libtool to hard-code these into programs
8602 cygwin* | mingw* | pw32* | cegcc*)
8603 version_type=windows
8604 shrext_cmds=".dll"
8605 need_version=no
8606 need_lib_prefix=no
8608 case $GCC,$host_os in
8609 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8610 library_names_spec='$libname.dll.a'
8611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8612 postinstall_cmds='base_file=`basename \${file}`~
8613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8614 dldir=$destdir/`dirname \$dlpath`~
8615 test -d \$dldir || mkdir -p \$dldir~
8616 $install_prog $dir/$dlname \$dldir/$dlname~
8617 chmod a+x \$dldir/$dlname~
8618 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8619 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8621 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8622 dlpath=$dir/\$dldll~
8623 $RM \$dlpath'
8624 shlibpath_overrides_runpath=yes
8626 case $host_os in
8627 cygwin*)
8628 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8629 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8630 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8632 mingw* | cegcc*)
8633 # MinGW DLLs use traditional 'lib' prefix
8634 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8635 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8636 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8637 # It is most probably a Windows format PATH printed by
8638 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8639 # path with ; separators, and with drive letters. We can handle the
8640 # drive letters (cygwin fileutils understands them), so leave them,
8641 # especially as we might pass files found there to a mingw objdump,
8642 # which wouldn't understand a cygwinified path. Ahh.
8643 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8644 else
8645 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8648 pw32*)
8649 # pw32 DLLs use 'pw' prefix rather than 'lib'
8650 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8652 esac
8656 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8658 esac
8659 dynamic_linker='Win32 ld.exe'
8660 # FIXME: first we should search . and the directory the executable is in
8661 shlibpath_var=PATH
8664 darwin* | rhapsody*)
8665 dynamic_linker="$host_os dyld"
8666 version_type=darwin
8667 need_lib_prefix=no
8668 need_version=no
8669 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8670 soname_spec='${libname}${release}${major}$shared_ext'
8671 shlibpath_overrides_runpath=yes
8672 shlibpath_var=DYLD_LIBRARY_PATH
8673 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8675 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8679 dgux*)
8680 version_type=linux
8681 need_lib_prefix=no
8682 need_version=no
8683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8684 soname_spec='${libname}${release}${shared_ext}$major'
8685 shlibpath_var=LD_LIBRARY_PATH
8688 freebsd1*)
8689 dynamic_linker=no
8692 freebsd* | dragonfly*)
8693 # DragonFly does not have aout. When/if they implement a new
8694 # versioning mechanism, adjust this.
8695 if test -x /usr/bin/objformat; then
8696 objformat=`/usr/bin/objformat`
8697 else
8698 case $host_os in
8699 freebsd[123]*) objformat=aout ;;
8700 *) objformat=elf ;;
8701 esac
8703 # Handle Gentoo/FreeBSD as it was Linux
8704 case $host_vendor in
8705 gentoo)
8706 version_type=linux ;;
8708 version_type=freebsd-$objformat ;;
8709 esac
8711 case $version_type in
8712 freebsd-elf*)
8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8714 need_version=no
8715 need_lib_prefix=no
8717 freebsd-*)
8718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8719 need_version=yes
8721 linux)
8722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8723 soname_spec='${libname}${release}${shared_ext}$major'
8724 need_lib_prefix=no
8725 need_version=no
8727 esac
8728 shlibpath_var=LD_LIBRARY_PATH
8729 case $host_os in
8730 freebsd2*)
8731 shlibpath_overrides_runpath=yes
8733 freebsd3.[01]* | freebsdelf3.[01]*)
8734 shlibpath_overrides_runpath=yes
8735 hardcode_into_libs=yes
8737 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8738 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8739 shlibpath_overrides_runpath=no
8740 hardcode_into_libs=yes
8742 *) # from 4.6 on, and DragonFly
8743 shlibpath_overrides_runpath=yes
8744 hardcode_into_libs=yes
8746 esac
8749 gnu*)
8750 version_type=linux
8751 need_lib_prefix=no
8752 need_version=no
8753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 shlibpath_var=LD_LIBRARY_PATH
8756 hardcode_into_libs=yes
8759 hpux9* | hpux10* | hpux11*)
8760 # Give a soname corresponding to the major version so that dld.sl refuses to
8761 # link against other versions.
8762 version_type=sunos
8763 need_lib_prefix=no
8764 need_version=no
8765 case $host_cpu in
8766 ia64*)
8767 shrext_cmds='.so'
8768 hardcode_into_libs=yes
8769 dynamic_linker="$host_os dld.so"
8770 shlibpath_var=LD_LIBRARY_PATH
8771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8773 soname_spec='${libname}${release}${shared_ext}$major'
8774 if test "X$HPUX_IA64_MODE" = X32; then
8775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8776 else
8777 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8781 hppa*64*)
8782 shrext_cmds='.sl'
8783 hardcode_into_libs=yes
8784 dynamic_linker="$host_os dld.sl"
8785 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788 soname_spec='${libname}${release}${shared_ext}$major'
8789 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8793 shrext_cmds='.sl'
8794 dynamic_linker="$host_os dld.sl"
8795 shlibpath_var=SHLIB_PATH
8796 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
8800 esac
8801 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8802 postinstall_cmds='chmod 555 $lib'
8805 interix[3-9]*)
8806 version_type=linux
8807 need_lib_prefix=no
8808 need_version=no
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8812 shlibpath_var=LD_LIBRARY_PATH
8813 shlibpath_overrides_runpath=no
8814 hardcode_into_libs=yes
8817 irix5* | irix6* | nonstopux*)
8818 case $host_os in
8819 nonstopux*) version_type=nonstopux ;;
8821 if test "$lt_cv_prog_gnu_ld" = yes; then
8822 version_type=linux
8823 else
8824 version_type=irix
8825 fi ;;
8826 esac
8827 need_lib_prefix=no
8828 need_version=no
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8831 case $host_os in
8832 irix5* | nonstopux*)
8833 libsuff= shlibsuff=
8836 case $LD in # libtool.m4 will add one of these switches to LD
8837 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8838 libsuff= shlibsuff= libmagic=32-bit;;
8839 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8840 libsuff=32 shlibsuff=N32 libmagic=N32;;
8841 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8842 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8843 *) libsuff= shlibsuff= libmagic=never-match;;
8844 esac
8846 esac
8847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8848 shlibpath_overrides_runpath=no
8849 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8850 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8851 hardcode_into_libs=yes
8854 # No shared lib support for Linux oldld, aout, or coff.
8855 linux*oldld* | linux*aout* | linux*coff*)
8856 dynamic_linker=no
8859 # This must be Linux ELF.
8860 linux* | k*bsd*-gnu)
8861 version_type=linux
8862 need_lib_prefix=no
8863 need_version=no
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8865 soname_spec='${libname}${release}${shared_ext}$major'
8866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8867 shlibpath_var=LD_LIBRARY_PATH
8868 shlibpath_overrides_runpath=no
8869 # Some binutils ld are patched to set DT_RUNPATH
8870 save_LDFLAGS=$LDFLAGS
8871 save_libdir=$libdir
8872 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8873 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8878 main ()
8882 return 0;
8884 _ACEOF
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8887 shlibpath_overrides_runpath=yes
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 LDFLAGS=$save_LDFLAGS
8893 libdir=$save_libdir
8895 # This implies no fast_install, which is unacceptable.
8896 # Some rework will be needed to allow for fast_install
8897 # before this can be enabled.
8898 hardcode_into_libs=yes
8900 # Append ld.so.conf contents to the search path
8901 if test -f /etc/ld.so.conf; then
8902 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' ' '`
8903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8906 # We used to test for /lib/ld.so.1 and disable shared libraries on
8907 # powerpc, because MkLinux only supported shared libraries with the
8908 # GNU dynamic linker. Since this was broken with cross compilers,
8909 # most powerpc-linux boxes support dynamic linking these days and
8910 # people can always --disable-shared, the test was removed, and we
8911 # assume the GNU/Linux dynamic linker is in use.
8912 dynamic_linker='GNU/Linux ld.so'
8915 netbsd*)
8916 version_type=sunos
8917 need_lib_prefix=no
8918 need_version=no
8919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8922 dynamic_linker='NetBSD (a.out) ld.so'
8923 else
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 dynamic_linker='NetBSD ld.elf_so'
8928 shlibpath_var=LD_LIBRARY_PATH
8929 shlibpath_overrides_runpath=yes
8930 hardcode_into_libs=yes
8933 newsos6)
8934 version_type=linux
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 shlibpath_overrides_runpath=yes
8940 *nto* | *qnx*)
8941 version_type=qnx
8942 need_lib_prefix=no
8943 need_version=no
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 shlibpath_overrides_runpath=no
8948 hardcode_into_libs=yes
8949 dynamic_linker='ldqnx.so'
8952 openbsd*)
8953 version_type=sunos
8954 sys_lib_dlsearch_path_spec="/usr/lib"
8955 need_lib_prefix=no
8956 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8957 case $host_os in
8958 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8959 *) need_version=no ;;
8960 esac
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8963 shlibpath_var=LD_LIBRARY_PATH
8964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8965 case $host_os in
8966 openbsd2.[89] | openbsd2.[89].*)
8967 shlibpath_overrides_runpath=no
8970 shlibpath_overrides_runpath=yes
8972 esac
8973 else
8974 shlibpath_overrides_runpath=yes
8978 os2*)
8979 libname_spec='$name'
8980 shrext_cmds=".dll"
8981 need_lib_prefix=no
8982 library_names_spec='$libname${shared_ext} $libname.a'
8983 dynamic_linker='OS/2 ld.exe'
8984 shlibpath_var=LIBPATH
8987 osf3* | osf4* | osf5*)
8988 version_type=osf
8989 need_lib_prefix=no
8990 need_version=no
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8995 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8998 rdos*)
8999 dynamic_linker=no
9002 solaris*)
9003 version_type=linux
9004 need_lib_prefix=no
9005 need_version=no
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=yes
9010 hardcode_into_libs=yes
9011 # ldd complains unless libraries are executable
9012 postinstall_cmds='chmod +x $lib'
9015 sunos4*)
9016 version_type=sunos
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9018 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=yes
9021 if test "$with_gnu_ld" = yes; then
9022 need_lib_prefix=no
9024 need_version=yes
9027 sysv4 | sysv4.3*)
9028 version_type=linux
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 case $host_vendor in
9033 sni)
9034 shlibpath_overrides_runpath=no
9035 need_lib_prefix=no
9036 runpath_var=LD_RUN_PATH
9038 siemens)
9039 need_lib_prefix=no
9041 motorola)
9042 need_lib_prefix=no
9043 need_version=no
9044 shlibpath_overrides_runpath=no
9045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9047 esac
9050 sysv4*MP*)
9051 if test -d /usr/nec ;then
9052 version_type=linux
9053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9054 soname_spec='$libname${shared_ext}.$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9060 version_type=freebsd-elf
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
9067 hardcode_into_libs=yes
9068 if test "$with_gnu_ld" = yes; then
9069 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9070 else
9071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9072 case $host_os in
9073 sco3.2v5*)
9074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9076 esac
9078 sys_lib_dlsearch_path_spec='/usr/lib'
9081 tpf*)
9082 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9083 version_type=linux
9084 need_lib_prefix=no
9085 need_version=no
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=no
9089 hardcode_into_libs=yes
9092 uts4*)
9093 version_type=linux
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9100 dynamic_linker=no
9102 esac
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9104 $as_echo "$dynamic_linker" >&6; }
9105 test "$dynamic_linker" = no && can_build_shared=no
9107 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9108 if test "$GCC" = yes; then
9109 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9112 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9113 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9115 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9116 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9206 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9207 hardcode_action=
9208 if test -n "$hardcode_libdir_flag_spec" ||
9209 test -n "$runpath_var" ||
9210 test "X$hardcode_automatic" = "Xyes" ; then
9212 # We can hardcode non-existent directories.
9213 if test "$hardcode_direct" != no &&
9214 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9215 # have to relink, otherwise we might link with an installed library
9216 # when we should be linking with a yet-to-be-installed one
9217 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9218 test "$hardcode_minus_L" != no; then
9219 # Linking always hardcodes the temporary library directory.
9220 hardcode_action=relink
9221 else
9222 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9223 hardcode_action=immediate
9225 else
9226 # We cannot hardcode anything, or else we can only hardcode existing
9227 # directories.
9228 hardcode_action=unsupported
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9231 $as_echo "$hardcode_action" >&6; }
9233 if test "$hardcode_action" = relink ||
9234 test "$inherit_rpath" = yes; then
9235 # Fast installation is not supported
9236 enable_fast_install=no
9237 elif test "$shlibpath_overrides_runpath" = yes ||
9238 test "$enable_shared" = no; then
9239 # Fast installation is not necessary
9240 enable_fast_install=needless
9248 if test "x$enable_dlopen" != xyes; then
9249 enable_dlopen=unknown
9250 enable_dlopen_self=unknown
9251 enable_dlopen_self_static=unknown
9252 else
9253 lt_cv_dlopen=no
9254 lt_cv_dlopen_libs=
9256 case $host_os in
9257 beos*)
9258 lt_cv_dlopen="load_add_on"
9259 lt_cv_dlopen_libs=
9260 lt_cv_dlopen_self=yes
9263 mingw* | pw32* | cegcc*)
9264 lt_cv_dlopen="LoadLibrary"
9265 lt_cv_dlopen_libs=
9268 cygwin*)
9269 lt_cv_dlopen="dlopen"
9270 lt_cv_dlopen_libs=
9273 darwin*)
9274 # if libdl is installed we need to link against it
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9276 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9277 if ${ac_cv_lib_dl_dlopen+:} false; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-ldl $LIBS"
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char dlopen ();
9293 main ()
9295 return dlopen ();
9297 return 0;
9299 _ACEOF
9300 if ac_fn_c_try_link "$LINENO"; then :
9301 ac_cv_lib_dl_dlopen=yes
9302 else
9303 ac_cv_lib_dl_dlopen=no
9305 rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307 LIBS=$ac_check_lib_save_LIBS
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9310 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9311 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9313 else
9315 lt_cv_dlopen="dyld"
9316 lt_cv_dlopen_libs=
9317 lt_cv_dlopen_self=yes
9324 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9325 if test "x$ac_cv_func_shl_load" = xyes; then :
9326 lt_cv_dlopen="shl_load"
9327 else
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9329 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9330 if ${ac_cv_lib_dld_shl_load+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 ac_check_lib_save_LIBS=$LIBS
9334 LIBS="-ldld $LIBS"
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9338 /* Override any GCC internal prototype to avoid an error.
9339 Use char because int might match the return type of a GCC
9340 builtin and then its argument prototype would still apply. */
9341 #ifdef __cplusplus
9342 extern "C"
9343 #endif
9344 char shl_load ();
9346 main ()
9348 return shl_load ();
9350 return 0;
9352 _ACEOF
9353 if ac_fn_c_try_link "$LINENO"; then :
9354 ac_cv_lib_dld_shl_load=yes
9355 else
9356 ac_cv_lib_dld_shl_load=no
9358 rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360 LIBS=$ac_check_lib_save_LIBS
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9363 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9364 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9365 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9366 else
9367 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9368 if test "x$ac_cv_func_dlopen" = xyes; then :
9369 lt_cv_dlopen="dlopen"
9370 else
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9372 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9373 if ${ac_cv_lib_dl_dlopen+:} false; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 ac_check_lib_save_LIBS=$LIBS
9377 LIBS="-ldl $LIBS"
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9381 /* Override any GCC internal prototype to avoid an error.
9382 Use char because int might match the return type of a GCC
9383 builtin and then its argument prototype would still apply. */
9384 #ifdef __cplusplus
9385 extern "C"
9386 #endif
9387 char dlopen ();
9389 main ()
9391 return dlopen ();
9393 return 0;
9395 _ACEOF
9396 if ac_fn_c_try_link "$LINENO"; then :
9397 ac_cv_lib_dl_dlopen=yes
9398 else
9399 ac_cv_lib_dl_dlopen=no
9401 rm -f core conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9403 LIBS=$ac_check_lib_save_LIBS
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9406 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9407 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9409 else
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9411 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9412 if ${ac_cv_lib_svld_dlopen+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 ac_check_lib_save_LIBS=$LIBS
9416 LIBS="-lsvld $LIBS"
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9420 /* Override any GCC internal prototype to avoid an error.
9421 Use char because int might match the return type of a GCC
9422 builtin and then its argument prototype would still apply. */
9423 #ifdef __cplusplus
9424 extern "C"
9425 #endif
9426 char dlopen ();
9428 main ()
9430 return dlopen ();
9432 return 0;
9434 _ACEOF
9435 if ac_fn_c_try_link "$LINENO"; then :
9436 ac_cv_lib_svld_dlopen=yes
9437 else
9438 ac_cv_lib_svld_dlopen=no
9440 rm -f core conftest.err conftest.$ac_objext \
9441 conftest$ac_exeext conftest.$ac_ext
9442 LIBS=$ac_check_lib_save_LIBS
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9445 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9446 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9447 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9448 else
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9450 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9451 if ${ac_cv_lib_dld_dld_link+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 ac_check_lib_save_LIBS=$LIBS
9455 LIBS="-ldld $LIBS"
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9459 /* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
9462 #ifdef __cplusplus
9463 extern "C"
9464 #endif
9465 char dld_link ();
9467 main ()
9469 return dld_link ();
9471 return 0;
9473 _ACEOF
9474 if ac_fn_c_try_link "$LINENO"; then :
9475 ac_cv_lib_dld_dld_link=yes
9476 else
9477 ac_cv_lib_dld_dld_link=no
9479 rm -f core conftest.err conftest.$ac_objext \
9480 conftest$ac_exeext conftest.$ac_ext
9481 LIBS=$ac_check_lib_save_LIBS
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9484 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9485 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9486 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9505 esac
9507 if test "x$lt_cv_dlopen" != xno; then
9508 enable_dlopen=yes
9509 else
9510 enable_dlopen=no
9513 case $lt_cv_dlopen in
9514 dlopen)
9515 save_CPPFLAGS="$CPPFLAGS"
9516 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9518 save_LDFLAGS="$LDFLAGS"
9519 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9521 save_LIBS="$LIBS"
9522 LIBS="$lt_cv_dlopen_libs $LIBS"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9525 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9526 if ${lt_cv_dlopen_self+:} false; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 if test "$cross_compiling" = yes; then :
9530 lt_cv_dlopen_self=cross
9531 else
9532 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9533 lt_status=$lt_dlunknown
9534 cat > conftest.$ac_ext <<_LT_EOF
9535 #line 9535 "configure"
9536 #include "confdefs.h"
9538 #if HAVE_DLFCN_H
9539 #include <dlfcn.h>
9540 #endif
9542 #include <stdio.h>
9544 #ifdef RTLD_GLOBAL
9545 # define LT_DLGLOBAL RTLD_GLOBAL
9546 #else
9547 # ifdef DL_GLOBAL
9548 # define LT_DLGLOBAL DL_GLOBAL
9549 # else
9550 # define LT_DLGLOBAL 0
9551 # endif
9552 #endif
9554 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9555 find out it does not work in some platform. */
9556 #ifndef LT_DLLAZY_OR_NOW
9557 # ifdef RTLD_LAZY
9558 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9559 # else
9560 # ifdef DL_LAZY
9561 # define LT_DLLAZY_OR_NOW DL_LAZY
9562 # else
9563 # ifdef RTLD_NOW
9564 # define LT_DLLAZY_OR_NOW RTLD_NOW
9565 # else
9566 # ifdef DL_NOW
9567 # define LT_DLLAZY_OR_NOW DL_NOW
9568 # else
9569 # define LT_DLLAZY_OR_NOW 0
9570 # endif
9571 # endif
9572 # endif
9573 # endif
9574 #endif
9576 void fnord() { int i=42;}
9577 int main ()
9579 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9580 int status = $lt_dlunknown;
9582 if (self)
9584 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9585 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9586 /* dlclose (self); */
9588 else
9589 puts (dlerror ());
9591 return status;
9593 _LT_EOF
9594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9595 (eval $ac_link) 2>&5
9596 ac_status=$?
9597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9598 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9599 (./conftest; exit; ) >&5 2>/dev/null
9600 lt_status=$?
9601 case x$lt_status in
9602 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9603 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9604 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9605 esac
9606 else :
9607 # compilation failed
9608 lt_cv_dlopen_self=no
9611 rm -fr conftest*
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9616 $as_echo "$lt_cv_dlopen_self" >&6; }
9618 if test "x$lt_cv_dlopen_self" = xyes; then
9619 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9621 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9622 if ${lt_cv_dlopen_self_static+:} false; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 if test "$cross_compiling" = yes; then :
9626 lt_cv_dlopen_self_static=cross
9627 else
9628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9629 lt_status=$lt_dlunknown
9630 cat > conftest.$ac_ext <<_LT_EOF
9631 #line 9631 "configure"
9632 #include "confdefs.h"
9634 #if HAVE_DLFCN_H
9635 #include <dlfcn.h>
9636 #endif
9638 #include <stdio.h>
9640 #ifdef RTLD_GLOBAL
9641 # define LT_DLGLOBAL RTLD_GLOBAL
9642 #else
9643 # ifdef DL_GLOBAL
9644 # define LT_DLGLOBAL DL_GLOBAL
9645 # else
9646 # define LT_DLGLOBAL 0
9647 # endif
9648 #endif
9650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9651 find out it does not work in some platform. */
9652 #ifndef LT_DLLAZY_OR_NOW
9653 # ifdef RTLD_LAZY
9654 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9655 # else
9656 # ifdef DL_LAZY
9657 # define LT_DLLAZY_OR_NOW DL_LAZY
9658 # else
9659 # ifdef RTLD_NOW
9660 # define LT_DLLAZY_OR_NOW RTLD_NOW
9661 # else
9662 # ifdef DL_NOW
9663 # define LT_DLLAZY_OR_NOW DL_NOW
9664 # else
9665 # define LT_DLLAZY_OR_NOW 0
9666 # endif
9667 # endif
9668 # endif
9669 # endif
9670 #endif
9672 void fnord() { int i=42;}
9673 int main ()
9675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9676 int status = $lt_dlunknown;
9678 if (self)
9680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9681 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9682 /* dlclose (self); */
9684 else
9685 puts (dlerror ());
9687 return status;
9689 _LT_EOF
9690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9691 (eval $ac_link) 2>&5
9692 ac_status=$?
9693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9694 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9695 (./conftest; exit; ) >&5 2>/dev/null
9696 lt_status=$?
9697 case x$lt_status in
9698 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9699 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9700 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9701 esac
9702 else :
9703 # compilation failed
9704 lt_cv_dlopen_self_static=no
9707 rm -fr conftest*
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9712 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9715 CPPFLAGS="$save_CPPFLAGS"
9716 LDFLAGS="$save_LDFLAGS"
9717 LIBS="$save_LIBS"
9719 esac
9721 case $lt_cv_dlopen_self in
9722 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9723 *) enable_dlopen_self=unknown ;;
9724 esac
9726 case $lt_cv_dlopen_self_static in
9727 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9728 *) enable_dlopen_self_static=unknown ;;
9729 esac
9748 striplib=
9749 old_striplib=
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9751 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9752 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9753 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9754 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9756 $as_echo "yes" >&6; }
9757 else
9758 # FIXME - insert some real tests, host_os isn't really good enough
9759 case $host_os in
9760 darwin*)
9761 if test -n "$STRIP" ; then
9762 striplib="$STRIP -x"
9763 old_striplib="$STRIP -S"
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9765 $as_echo "yes" >&6; }
9766 else
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9775 esac
9789 # Report which library types will actually be built
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9791 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9793 $as_echo "$can_build_shared" >&6; }
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9796 $as_echo_n "checking whether to build shared libraries... " >&6; }
9797 test "$can_build_shared" = "no" && enable_shared=no
9799 # On AIX, shared libraries and static libraries use the same namespace, and
9800 # are all built from PIC.
9801 case $host_os in
9802 aix3*)
9803 test "$enable_shared" = yes && enable_static=no
9804 if test -n "$RANLIB"; then
9805 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9806 postinstall_cmds='$RANLIB $lib'
9810 aix[4-9]*)
9811 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9812 test "$enable_shared" = yes && enable_static=no
9815 esac
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9817 $as_echo "$enable_shared" >&6; }
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9820 $as_echo_n "checking whether to build static libraries... " >&6; }
9821 # Make sure either enable_shared or enable_static is yes.
9822 test "$enable_shared" = yes || enable_static=yes
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9824 $as_echo "$enable_static" >&6; }
9830 ac_ext=c
9831 ac_cpp='$CPP $CPPFLAGS'
9832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9836 CC="$lt_save_CC"
9850 ac_config_commands="$ac_config_commands libtool"
9855 # Only expand once:
9858 # Find a good install program. We prefer a C program (faster),
9859 # so one script is as good as another. But avoid the broken or
9860 # incompatible versions:
9861 # SysV /etc/install, /usr/sbin/install
9862 # SunOS /usr/etc/install
9863 # IRIX /sbin/install
9864 # AIX /bin/install
9865 # AmigaOS /C/install, which installs bootblocks on floppy discs
9866 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9867 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9868 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9869 # OS/2's system install, which has a completely different semantic
9870 # ./install, which can be erroneously created by make from ./install.sh.
9871 # Reject install programs that cannot install multiple files.
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9873 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9874 if test -z "$INSTALL"; then
9875 if ${ac_cv_path_install+:} false; then :
9876 $as_echo_n "(cached) " >&6
9877 else
9878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879 for as_dir in $PATH
9881 IFS=$as_save_IFS
9882 test -z "$as_dir" && as_dir=.
9883 # Account for people who put trailing slashes in PATH elements.
9884 case $as_dir/ in #((
9885 ./ | .// | /[cC]/* | \
9886 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9887 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9888 /usr/ucb/* ) ;;
9890 # OSF1 and SCO ODT 3.0 have their own names for install.
9891 # Don't use installbsd from OSF since it installs stuff as root
9892 # by default.
9893 for ac_prog in ginstall scoinst install; do
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9896 if test $ac_prog = install &&
9897 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9898 # AIX install. It has an incompatible calling convention.
9900 elif test $ac_prog = install &&
9901 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9902 # program-specific install script used by HP pwplus--don't use.
9904 else
9905 rm -rf conftest.one conftest.two conftest.dir
9906 echo one > conftest.one
9907 echo two > conftest.two
9908 mkdir conftest.dir
9909 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9910 test -s conftest.one && test -s conftest.two &&
9911 test -s conftest.dir/conftest.one &&
9912 test -s conftest.dir/conftest.two
9913 then
9914 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9915 break 3
9919 done
9920 done
9922 esac
9924 done
9925 IFS=$as_save_IFS
9927 rm -rf conftest.one conftest.two conftest.dir
9930 if test "${ac_cv_path_install+set}" = set; then
9931 INSTALL=$ac_cv_path_install
9932 else
9933 # As a last resort, use the slow shell script. Don't cache a
9934 # value for INSTALL within a source directory, because that will
9935 # break other packages using the cache if that directory is
9936 # removed, or if the value is a relative name.
9937 INSTALL=$ac_install_sh
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9941 $as_echo "$INSTALL" >&6; }
9943 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9944 # It thinks the first close brace ends the variable substitution.
9945 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9947 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9949 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9951 for ac_prog in gawk mawk nawk awk
9953 # Extract the first word of "$ac_prog", so it can be a program name with args.
9954 set dummy $ac_prog; ac_word=$2
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956 $as_echo_n "checking for $ac_word... " >&6; }
9957 if ${ac_cv_prog_AWK+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 if test -n "$AWK"; then
9961 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9962 else
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 for as_dir in $PATH
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970 ac_cv_prog_AWK="$ac_prog"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 break 2
9974 done
9975 done
9976 IFS=$as_save_IFS
9980 AWK=$ac_cv_prog_AWK
9981 if test -n "$AWK"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9983 $as_echo "$AWK" >&6; }
9984 else
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9990 test -n "$AWK" && break
9991 done
9994 #########
9995 # Enable large file support (if special flags are necessary)
9997 # Check whether --enable-largefile was given.
9998 if test "${enable_largefile+set}" = set; then :
9999 enableval=$enable_largefile;
10002 if test "$enable_largefile" != no; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10005 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10006 if ${ac_cv_sys_largefile_CC+:} false; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009 ac_cv_sys_largefile_CC=no
10010 if test "$GCC" != yes; then
10011 ac_save_CC=$CC
10012 while :; do
10013 # IRIX 6.2 and later do not support large files by default,
10014 # so use the C compiler's -n32 option if that helps.
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017 #include <sys/types.h>
10018 /* Check that off_t can represent 2**63 - 1 correctly.
10019 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10020 since some C++ compilers masquerading as C compilers
10021 incorrectly reject 9223372036854775807. */
10022 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10023 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10024 && LARGE_OFF_T % 2147483647 == 1)
10025 ? 1 : -1];
10027 main ()
10031 return 0;
10033 _ACEOF
10034 if ac_fn_c_try_compile "$LINENO"; then :
10035 break
10037 rm -f core conftest.err conftest.$ac_objext
10038 CC="$CC -n32"
10039 if ac_fn_c_try_compile "$LINENO"; then :
10040 ac_cv_sys_largefile_CC=' -n32'; break
10042 rm -f core conftest.err conftest.$ac_objext
10043 break
10044 done
10045 CC=$ac_save_CC
10046 rm -f conftest.$ac_ext
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10050 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10051 if test "$ac_cv_sys_largefile_CC" != no; then
10052 CC=$CC$ac_cv_sys_largefile_CC
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10056 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10057 if ${ac_cv_sys_file_offset_bits+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 while :; do
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 #include <sys/types.h>
10064 /* Check that off_t can represent 2**63 - 1 correctly.
10065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10066 since some C++ compilers masquerading as C compilers
10067 incorrectly reject 9223372036854775807. */
10068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10070 && LARGE_OFF_T % 2147483647 == 1)
10071 ? 1 : -1];
10073 main ()
10077 return 0;
10079 _ACEOF
10080 if ac_fn_c_try_compile "$LINENO"; then :
10081 ac_cv_sys_file_offset_bits=no; break
10083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086 #define _FILE_OFFSET_BITS 64
10087 #include <sys/types.h>
10088 /* Check that off_t can represent 2**63 - 1 correctly.
10089 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10090 since some C++ compilers masquerading as C compilers
10091 incorrectly reject 9223372036854775807. */
10092 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10093 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10094 && LARGE_OFF_T % 2147483647 == 1)
10095 ? 1 : -1];
10097 main ()
10101 return 0;
10103 _ACEOF
10104 if ac_fn_c_try_compile "$LINENO"; then :
10105 ac_cv_sys_file_offset_bits=64; break
10107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108 ac_cv_sys_file_offset_bits=unknown
10109 break
10110 done
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10113 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10114 case $ac_cv_sys_file_offset_bits in #(
10115 no | unknown) ;;
10117 cat >>confdefs.h <<_ACEOF
10118 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10119 _ACEOF
10121 esac
10122 rm -rf conftest*
10123 if test $ac_cv_sys_file_offset_bits = unknown; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10125 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10126 if ${ac_cv_sys_large_files+:} false; then :
10127 $as_echo_n "(cached) " >&6
10128 else
10129 while :; do
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h. */
10132 #include <sys/types.h>
10133 /* Check that off_t can represent 2**63 - 1 correctly.
10134 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10135 since some C++ compilers masquerading as C compilers
10136 incorrectly reject 9223372036854775807. */
10137 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10138 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10139 && LARGE_OFF_T % 2147483647 == 1)
10140 ? 1 : -1];
10142 main ()
10146 return 0;
10148 _ACEOF
10149 if ac_fn_c_try_compile "$LINENO"; then :
10150 ac_cv_sys_large_files=no; break
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10155 #define _LARGE_FILES 1
10156 #include <sys/types.h>
10157 /* Check that off_t can represent 2**63 - 1 correctly.
10158 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10159 since some C++ compilers masquerading as C compilers
10160 incorrectly reject 9223372036854775807. */
10161 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10163 && LARGE_OFF_T % 2147483647 == 1)
10164 ? 1 : -1];
10166 main ()
10170 return 0;
10172 _ACEOF
10173 if ac_fn_c_try_compile "$LINENO"; then :
10174 ac_cv_sys_large_files=1; break
10176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10177 ac_cv_sys_large_files=unknown
10178 break
10179 done
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10182 $as_echo "$ac_cv_sys_large_files" >&6; }
10183 case $ac_cv_sys_large_files in #(
10184 no | unknown) ;;
10186 cat >>confdefs.h <<_ACEOF
10187 #define _LARGE_FILES $ac_cv_sys_large_files
10188 _ACEOF
10190 esac
10191 rm -rf conftest*
10198 #########
10199 # Check for needed/wanted data types
10200 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10201 if test "x$ac_cv_type_int8_t" = xyes; then :
10203 cat >>confdefs.h <<_ACEOF
10204 #define HAVE_INT8_T 1
10205 _ACEOF
10209 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10210 if test "x$ac_cv_type_int16_t" = xyes; then :
10212 cat >>confdefs.h <<_ACEOF
10213 #define HAVE_INT16_T 1
10214 _ACEOF
10218 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10219 if test "x$ac_cv_type_int32_t" = xyes; then :
10221 cat >>confdefs.h <<_ACEOF
10222 #define HAVE_INT32_T 1
10223 _ACEOF
10227 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10228 if test "x$ac_cv_type_int64_t" = xyes; then :
10230 cat >>confdefs.h <<_ACEOF
10231 #define HAVE_INT64_T 1
10232 _ACEOF
10236 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10237 if test "x$ac_cv_type_intptr_t" = xyes; then :
10239 cat >>confdefs.h <<_ACEOF
10240 #define HAVE_INTPTR_T 1
10241 _ACEOF
10245 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10246 if test "x$ac_cv_type_uint8_t" = xyes; then :
10248 cat >>confdefs.h <<_ACEOF
10249 #define HAVE_UINT8_T 1
10250 _ACEOF
10254 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10255 if test "x$ac_cv_type_uint16_t" = xyes; then :
10257 cat >>confdefs.h <<_ACEOF
10258 #define HAVE_UINT16_T 1
10259 _ACEOF
10263 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10264 if test "x$ac_cv_type_uint32_t" = xyes; then :
10266 cat >>confdefs.h <<_ACEOF
10267 #define HAVE_UINT32_T 1
10268 _ACEOF
10272 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10273 if test "x$ac_cv_type_uint64_t" = xyes; then :
10275 cat >>confdefs.h <<_ACEOF
10276 #define HAVE_UINT64_T 1
10277 _ACEOF
10281 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10282 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10284 cat >>confdefs.h <<_ACEOF
10285 #define HAVE_UINTPTR_T 1
10286 _ACEOF
10292 #########
10293 # Check for needed/wanted headers
10294 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10295 do :
10296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10297 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10298 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10299 cat >>confdefs.h <<_ACEOF
10300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10301 _ACEOF
10305 done
10308 #########
10309 # Figure out whether or not we have these functions
10311 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime
10312 do :
10313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10314 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10315 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10316 cat >>confdefs.h <<_ACEOF
10317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10318 _ACEOF
10321 done
10324 #########
10325 # By default, we use the amalgamation (this may be changed below...)
10327 USE_AMALGAMATION=1
10329 #########
10330 # See whether we can run specific tclsh versions known to work well;
10331 # if not, then we fall back to plain tclsh.
10332 # TODO: try other versions before falling back?
10334 for ac_prog in tclsh8.6 tclsh8.5 tclsh
10336 # Extract the first word of "$ac_prog", so it can be a program name with args.
10337 set dummy $ac_prog; ac_word=$2
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10339 $as_echo_n "checking for $ac_word... " >&6; }
10340 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 if test -n "$TCLSH_CMD"; then
10344 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10345 else
10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10349 IFS=$as_save_IFS
10350 test -z "$as_dir" && as_dir=.
10351 for ac_exec_ext in '' $ac_executable_extensions; do
10352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10353 ac_cv_prog_TCLSH_CMD="$ac_prog"
10354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10355 break 2
10357 done
10358 done
10359 IFS=$as_save_IFS
10363 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10364 if test -n "$TCLSH_CMD"; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10366 $as_echo "$TCLSH_CMD" >&6; }
10367 else
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369 $as_echo "no" >&6; }
10373 test -n "$TCLSH_CMD" && break
10374 done
10375 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10377 if test "$TCLSH_CMD" = "none"; then
10378 # If we can't find a local tclsh, then building the amalgamation will fail.
10379 # We act as though --disable-amalgamation has been used.
10380 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10381 USE_AMALGAMATION=0
10382 TCLSH_CMD="tclsh"
10387 if test "x${TCLLIBDIR+set}" != "xset" ; then
10388 TCLLIBDIR='$(libdir)'
10389 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10390 TCLLIBDIR=$i
10391 break
10392 done
10393 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10396 #########
10397 # Set up an appropriate program prefix
10399 if test "$program_prefix" = "NONE"; then
10400 program_prefix=""
10404 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10406 $as_echo "$as_me: Version set to $VERSION" >&6;}
10408 RELEASE=`cat $srcdir/VERSION`
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10410 $as_echo "$as_me: Release set to $RELEASE" >&6;}
10412 VERSION_NUMBER=`cat $srcdir/VERSION \
10413 | sed 's/[^0-9]/ /g' \
10414 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
10416 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
10419 #########
10420 # Locate a compiler for the build machine. This compiler should
10421 # generate command-line programs that run on the build machine.
10423 if test x"$cross_compiling" = xno; then
10424 BUILD_CC=$CC
10425 BUILD_CFLAGS=$CFLAGS
10426 else
10427 if test "${BUILD_CC+set}" != set; then
10428 for ac_prog in gcc cc cl
10430 # Extract the first word of "$ac_prog", so it can be a program name with args.
10431 set dummy $ac_prog; ac_word=$2
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10433 $as_echo_n "checking for $ac_word... " >&6; }
10434 if ${ac_cv_prog_BUILD_CC+:} false; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 if test -n "$BUILD_CC"; then
10438 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10439 else
10440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441 for as_dir in $PATH
10443 IFS=$as_save_IFS
10444 test -z "$as_dir" && as_dir=.
10445 for ac_exec_ext in '' $ac_executable_extensions; do
10446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10447 ac_cv_prog_BUILD_CC="$ac_prog"
10448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10449 break 2
10451 done
10452 done
10453 IFS=$as_save_IFS
10457 BUILD_CC=$ac_cv_prog_BUILD_CC
10458 if test -n "$BUILD_CC"; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10460 $as_echo "$BUILD_CC" >&6; }
10461 else
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463 $as_echo "no" >&6; }
10467 test -n "$BUILD_CC" && break
10468 done
10471 if test "${BUILD_CFLAGS+set}" != set; then
10472 BUILD_CFLAGS="-g"
10477 ##########
10478 # Do we want to support multithreaded use of sqlite
10480 # Check whether --enable-threadsafe was given.
10481 if test "${enable_threadsafe+set}" = set; then :
10482 enableval=$enable_threadsafe;
10483 else
10484 enable_threadsafe=yes
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10488 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
10489 if test "$enable_threadsafe" = "no"; then
10490 SQLITE_THREADSAFE=0
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492 $as_echo "no" >&6; }
10493 else
10494 SQLITE_THREADSAFE=1
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10496 $as_echo "yes" >&6; }
10500 if test "$SQLITE_THREADSAFE" = "1"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10502 $as_echo_n "checking for library containing pthread_create... " >&6; }
10503 if ${ac_cv_search_pthread_create+:} false; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 ac_func_search_save_LIBS=$LIBS
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10510 /* Override any GCC internal prototype to avoid an error.
10511 Use char because int might match the return type of a GCC
10512 builtin and then its argument prototype would still apply. */
10513 #ifdef __cplusplus
10514 extern "C"
10515 #endif
10516 char pthread_create ();
10518 main ()
10520 return pthread_create ();
10522 return 0;
10524 _ACEOF
10525 for ac_lib in '' pthread; do
10526 if test -z "$ac_lib"; then
10527 ac_res="none required"
10528 else
10529 ac_res=-l$ac_lib
10530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10532 if ac_fn_c_try_link "$LINENO"; then :
10533 ac_cv_search_pthread_create=$ac_res
10535 rm -f core conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext
10537 if ${ac_cv_search_pthread_create+:} false; then :
10538 break
10540 done
10541 if ${ac_cv_search_pthread_create+:} false; then :
10543 else
10544 ac_cv_search_pthread_create=no
10546 rm conftest.$ac_ext
10547 LIBS=$ac_func_search_save_LIBS
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10550 $as_echo "$ac_cv_search_pthread_create" >&6; }
10551 ac_res=$ac_cv_search_pthread_create
10552 if test "$ac_res" != no; then :
10553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10559 ##########
10560 # Which crypto library do we use
10563 # Check whether --with-crypto-lib was given.
10564 if test "${with_crypto_lib+set}" = set; then :
10565 withval=$with_crypto_lib; crypto_lib=$withval
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
10569 $as_echo_n "checking for crypto library to use... " >&6; }
10570 if test "$crypto_lib" = "none"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10572 $as_echo "none" >&6; }
10573 else
10574 if test "$crypto_lib" = "commoncrypto"; then
10575 CFLAGS+=" -DSQLCIPHER_CRYPTO_CC"
10576 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_CC"
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
10578 $as_echo "commoncrypto" >&6; }
10579 else
10580 if test "$crypto_lib" = "libtomcrypt"; then
10581 CFLAGS+=" -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
10582 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
10584 $as_echo "libtomcrypt" >&6; }
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
10586 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
10587 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 ac_check_lib_save_LIBS=$LIBS
10591 LIBS="-ltomcrypt $LIBS"
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10595 /* Override any GCC internal prototype to avoid an error.
10596 Use char because int might match the return type of a GCC
10597 builtin and then its argument prototype would still apply. */
10598 #ifdef __cplusplus
10599 extern "C"
10600 #endif
10601 char register_cipher ();
10603 main ()
10605 return register_cipher ();
10607 return 0;
10609 _ACEOF
10610 if ac_fn_c_try_link "$LINENO"; then :
10611 ac_cv_lib_tomcrypt_register_cipher=yes
10612 else
10613 ac_cv_lib_tomcrypt_register_cipher=no
10615 rm -f core conftest.err conftest.$ac_objext \
10616 conftest$ac_exeext conftest.$ac_ext
10617 LIBS=$ac_check_lib_save_LIBS
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
10620 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
10621 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
10622 cat >>confdefs.h <<_ACEOF
10623 #define HAVE_LIBTOMCRYPT 1
10624 _ACEOF
10626 LIBS="-ltomcrypt $LIBS"
10628 else
10629 as_fn_error $? "Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
10632 else
10633 CFLAGS+=" -DSQLCIPHER_CRYPTO_OPENSSL"
10634 BUILD_CFLAGS+=" -DSQLCIPHER_CRYPTO_OPENSSL"
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
10636 $as_echo "openssl" >&6; }
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
10638 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
10639 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
10640 $as_echo_n "(cached) " >&6
10641 else
10642 ac_check_lib_save_LIBS=$LIBS
10643 LIBS="-lcrypto $LIBS"
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10647 /* Override any GCC internal prototype to avoid an error.
10648 Use char because int might match the return type of a GCC
10649 builtin and then its argument prototype would still apply. */
10650 #ifdef __cplusplus
10651 extern "C"
10652 #endif
10653 char HMAC_Init_ex ();
10655 main ()
10657 return HMAC_Init_ex ();
10659 return 0;
10661 _ACEOF
10662 if ac_fn_c_try_link "$LINENO"; then :
10663 ac_cv_lib_crypto_HMAC_Init_ex=yes
10664 else
10665 ac_cv_lib_crypto_HMAC_Init_ex=no
10667 rm -f core conftest.err conftest.$ac_objext \
10668 conftest$ac_exeext conftest.$ac_ext
10669 LIBS=$ac_check_lib_save_LIBS
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
10672 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
10673 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
10674 cat >>confdefs.h <<_ACEOF
10675 #define HAVE_LIBCRYPTO 1
10676 _ACEOF
10678 LIBS="-lcrypto $LIBS"
10680 else
10681 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
10688 ##########
10689 # Do we want to allow a connection created in one thread to be used
10690 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
10691 # due to bugs in the threading implementations. This is thus off by default.
10693 # Check whether --enable-cross-thread-connections was given.
10694 if test "${enable_cross_thread_connections+set}" = set; then :
10695 enableval=$enable_cross_thread_connections;
10696 else
10697 enable_xthreadconnect=no
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
10701 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
10702 if test "$enable_xthreadconnect" = "no"; then
10703 XTHREADCONNECT=''
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10706 else
10707 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10709 $as_echo "yes" >&6; }
10713 ##########
10714 # Do we want to support release
10716 # Check whether --enable-releasemode was given.
10717 if test "${enable_releasemode+set}" = set; then :
10718 enableval=$enable_releasemode;
10719 else
10720 enable_releasemode=no
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10724 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10725 if test "$enable_releasemode" = "no"; then
10726 ALLOWRELEASE=""
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10729 else
10730 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10732 $as_echo "yes" >&6; }
10736 ##########
10737 # Do we want temporary databases in memory
10739 # Check whether --enable-tempstore was given.
10740 if test "${enable_tempstore+set}" = set; then :
10741 enableval=$enable_tempstore;
10742 else
10743 enable_tempstore=no
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10747 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10748 case "$enable_tempstore" in
10749 never )
10750 TEMP_STORE=0
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10752 $as_echo "never" >&6; }
10754 no )
10755 TEMP_STORE=1
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757 $as_echo "no" >&6; }
10759 yes )
10760 TEMP_STORE=2
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10762 $as_echo "yes" >&6; }
10764 always )
10765 TEMP_STORE=3
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10767 $as_echo "always" >&6; }
10770 TEMP_STORE=1
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; }
10774 esac
10778 ###########
10779 # Lots of things are different if we are compiling for Windows using
10780 # the CYGWIN environment. So check for that special case and handle
10781 # things accordingly.
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10784 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
10785 if test "$config_BUILD_EXEEXT" = ".exe"; then
10786 CYGWIN=yes
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10788 $as_echo "yes" >&6; }
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10791 $as_echo "unknown" >&6; }
10793 if test "$CYGWIN" != "yes"; then
10795 case $host_os in
10796 *cygwin* ) CYGWIN=yes;;
10797 * ) CYGWIN=no;;
10798 esac
10801 if test "$CYGWIN" = "yes"; then
10802 BUILD_EXEEXT=.exe
10803 else
10804 BUILD_EXEEXT=$EXEEXT
10806 if test x"$cross_compiling" = xno; then
10807 TARGET_EXEEXT=$BUILD_EXEEXT
10808 else
10809 TARGET_EXEEXT=$config_TARGET_EXEEXT
10811 if test "$TARGET_EXEEXT" = ".exe"; then
10812 SQLITE_OS_UNIX=0
10813 SQLITE_OS_WIN=1
10814 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10815 else
10816 SQLITE_OS_UNIX=1
10817 SQLITE_OS_WIN=0
10818 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10826 ##########
10827 # Figure out all the parameters needed to compile against Tcl.
10829 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10830 # macros in the in the tcl.m4 file of the standard TCL distribution.
10831 # Those macros could not be used directly since we have to make some
10832 # minor changes to accomodate systems that do not have TCL installed.
10834 # Check whether --enable-tcl was given.
10835 if test "${enable_tcl+set}" = set; then :
10836 enableval=$enable_tcl; use_tcl=$enableval
10837 else
10838 use_tcl=yes
10841 if test "${use_tcl}" = "yes" ; then
10843 # Check whether --with-tcl was given.
10844 if test "${with_tcl+set}" = set; then :
10845 withval=$with_tcl; with_tclconfig=${withval}
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10849 $as_echo_n "checking for Tcl configuration... " >&6; }
10850 if ${ac_cv_c_tclconfig+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10854 # First check to see if --with-tcl was specified.
10855 if test x"${with_tclconfig}" != x ; then
10856 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10857 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10858 else
10859 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10863 # Start autosearch by asking tclsh
10864 if test x"${ac_cv_c_tclconfig}" = x ; then
10865 if test x"$cross_compiling" = xno; then
10866 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10868 if test -f "$i/tclConfig.sh" ; then
10869 ac_cv_c_tclconfig="$i"
10870 break
10872 done
10876 # then check for a private Tcl installation
10877 if test x"${ac_cv_c_tclconfig}" = x ; then
10878 for i in \
10879 ../tcl \
10880 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10881 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10882 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10883 ../../tcl \
10884 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10885 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10886 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10887 ../../../tcl \
10888 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10889 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10890 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10892 if test -f "$i/unix/tclConfig.sh" ; then
10893 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10894 break
10896 done
10899 # check in a few common install locations
10900 if test x"${ac_cv_c_tclconfig}" = x ; then
10901 for i in \
10902 `ls -d ${libdir} 2>/dev/null` \
10903 `ls -d /usr/local/lib 2>/dev/null` \
10904 `ls -d /usr/contrib/lib 2>/dev/null` \
10905 `ls -d /usr/lib 2>/dev/null`
10907 if test -f "$i/tclConfig.sh" ; then
10908 ac_cv_c_tclconfig=`(cd $i; pwd)`
10909 break
10911 done
10914 # check in a few other private locations
10915 if test x"${ac_cv_c_tclconfig}" = x ; then
10916 for i in \
10917 ${srcdir}/../tcl \
10918 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10919 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10920 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10922 if test -f "$i/unix/tclConfig.sh" ; then
10923 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10924 break
10926 done
10932 if test x"${ac_cv_c_tclconfig}" = x ; then
10933 use_tcl=no
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10935 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10937 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10939 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10940 else
10941 TCL_BIN_DIR=${ac_cv_c_tclconfig}
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10943 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10946 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10947 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10949 $as_echo "loading" >&6; }
10950 . $TCL_BIN_DIR/tclConfig.sh
10951 else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10953 $as_echo "file not found" >&6; }
10957 # If the TCL_BIN_DIR is the build directory (not the install directory),
10958 # then set the common variable name to the value of the build variables.
10959 # For example, the variable TCL_LIB_SPEC will be set to the value
10960 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10961 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10962 # installed and uninstalled version of Tcl.
10965 if test -f $TCL_BIN_DIR/Makefile ; then
10966 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10967 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10968 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10972 # eval is required to do the TCL_DBGX substitution
10975 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10976 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10977 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10979 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10980 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10981 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10997 if test "${use_tcl}" = "no" ; then
10998 HAVE_TCL=""
10999 else
11000 HAVE_TCL=1
11004 ##########
11005 # Figure out what C libraries are required to compile programs
11006 # that use "readline()" library.
11008 TARGET_READLINE_LIBS=""
11009 TARGET_READLINE_INC=""
11010 TARGET_HAVE_READLINE=0
11011 # Check whether --enable-readline was given.
11012 if test "${enable_readline+set}" = set; then :
11013 enableval=$enable_readline; with_readline=$enableval
11014 else
11015 with_readline=auto
11019 if test x"$with_readline" != xno; then
11020 found="yes"
11023 # Check whether --with-readline-lib was given.
11024 if test "${with_readline_lib+set}" = set; then :
11025 withval=$with_readline_lib; with_readline_lib=$withval
11026 else
11027 with_readline_lib="auto"
11030 if test "x$with_readline_lib" = xauto; then
11031 save_LIBS="$LIBS"
11032 LIBS=""
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
11034 $as_echo_n "checking for library containing tgetent... " >&6; }
11035 if ${ac_cv_search_tgetent+:} false; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 ac_func_search_save_LIBS=$LIBS
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11042 /* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11045 #ifdef __cplusplus
11046 extern "C"
11047 #endif
11048 char tgetent ();
11050 main ()
11052 return tgetent ();
11054 return 0;
11056 _ACEOF
11057 for ac_lib in '' readline ncurses curses termcap; do
11058 if test -z "$ac_lib"; then
11059 ac_res="none required"
11060 else
11061 ac_res=-l$ac_lib
11062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11064 if ac_fn_c_try_link "$LINENO"; then :
11065 ac_cv_search_tgetent=$ac_res
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext
11069 if ${ac_cv_search_tgetent+:} false; then :
11070 break
11072 done
11073 if ${ac_cv_search_tgetent+:} false; then :
11075 else
11076 ac_cv_search_tgetent=no
11078 rm conftest.$ac_ext
11079 LIBS=$ac_func_search_save_LIBS
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11082 $as_echo "$ac_cv_search_tgetent" >&6; }
11083 ac_res=$ac_cv_search_tgetent
11084 if test "$ac_res" != no; then :
11085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11086 term_LIBS="$LIBS"
11087 else
11088 term_LIBS=""
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11092 $as_echo_n "checking for readline in -lreadline... " >&6; }
11093 if ${ac_cv_lib_readline_readline+:} false; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 ac_check_lib_save_LIBS=$LIBS
11097 LIBS="-lreadline $LIBS"
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11101 /* Override any GCC internal prototype to avoid an error.
11102 Use char because int might match the return type of a GCC
11103 builtin and then its argument prototype would still apply. */
11104 #ifdef __cplusplus
11105 extern "C"
11106 #endif
11107 char readline ();
11109 main ()
11111 return readline ();
11113 return 0;
11115 _ACEOF
11116 if ac_fn_c_try_link "$LINENO"; then :
11117 ac_cv_lib_readline_readline=yes
11118 else
11119 ac_cv_lib_readline_readline=no
11121 rm -f core conftest.err conftest.$ac_objext \
11122 conftest$ac_exeext conftest.$ac_ext
11123 LIBS=$ac_check_lib_save_LIBS
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11126 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11127 if test "x$ac_cv_lib_readline_readline" = xyes; then :
11128 TARGET_READLINE_LIBS="-lreadline"
11129 else
11130 found="no"
11133 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11134 LIBS="$save_LIBS"
11135 else
11136 TARGET_READLINE_LIBS="$with_readline_lib"
11140 # Check whether --with-readline-inc was given.
11141 if test "${with_readline_inc+set}" = set; then :
11142 withval=$with_readline_inc; with_readline_inc=$withval
11143 else
11144 with_readline_inc="auto"
11147 if test "x$with_readline_inc" = xauto; then
11148 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11149 if test "x$ac_cv_header_readline_h" = xyes; then :
11150 found="yes"
11151 else
11153 found="no"
11154 if test "$cross_compiling" != yes; then
11155 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11156 for subdir in include include/readline; do
11157 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11159 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11160 if eval \${$as_ac_File+:} false; then :
11161 $as_echo_n "(cached) " >&6
11162 else
11163 test "$cross_compiling" = yes &&
11164 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11165 if test -r "$dir/$subdir/readline.h"; then
11166 eval "$as_ac_File=yes"
11167 else
11168 eval "$as_ac_File=no"
11171 eval ac_res=\$$as_ac_File
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11173 $as_echo "$ac_res" >&6; }
11174 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11175 found=yes
11178 if test "$found" = "yes"; then
11179 TARGET_READLINE_INC="-I$dir/$subdir"
11180 break
11182 done
11183 test "$found" = "yes" && break
11184 done
11190 else
11191 TARGET_READLINE_INC="$with_readline_inc"
11194 if test x"$found" = xno; then
11195 TARGET_READLINE_LIBS=""
11196 TARGET_READLINE_INC=""
11197 TARGET_HAVE_READLINE=0
11198 else
11199 TARGET_HAVE_READLINE=1
11207 ##########
11208 # Figure out what C libraries are required to compile programs
11209 # that use "fdatasync()" function.
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11212 $as_echo_n "checking for library containing fdatasync... " >&6; }
11213 if ${ac_cv_search_fdatasync+:} false; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 ac_func_search_save_LIBS=$LIBS
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char fdatasync ();
11228 main ()
11230 return fdatasync ();
11232 return 0;
11234 _ACEOF
11235 for ac_lib in '' rt; do
11236 if test -z "$ac_lib"; then
11237 ac_res="none required"
11238 else
11239 ac_res=-l$ac_lib
11240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 ac_cv_search_fdatasync=$ac_res
11245 rm -f core conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext
11247 if ${ac_cv_search_fdatasync+:} false; then :
11248 break
11250 done
11251 if ${ac_cv_search_fdatasync+:} false; then :
11253 else
11254 ac_cv_search_fdatasync=no
11256 rm conftest.$ac_ext
11257 LIBS=$ac_func_search_save_LIBS
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11260 $as_echo "$ac_cv_search_fdatasync" >&6; }
11261 ac_res=$ac_cv_search_fdatasync
11262 if test "$ac_res" != no; then :
11263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11268 #########
11269 # check for debug enabled
11270 # Check whether --enable-debug was given.
11271 if test "${enable_debug+set}" = set; then :
11272 enableval=$enable_debug; use_debug=$enableval
11273 else
11274 use_debug=no
11277 if test "${use_debug}" = "yes" ; then
11278 TARGET_DEBUG="-DSQLITE_DEBUG=1"
11279 else
11280 TARGET_DEBUG="-DNDEBUG"
11284 #########
11285 # See whether we should use the amalgamation to build
11286 # Check whether --enable-amalgamation was given.
11287 if test "${enable_amalgamation+set}" = set; then :
11288 enableval=$enable_amalgamation; use_amalgamation=$enableval
11289 else
11290 use_amalgamation=yes
11293 if test "${use_amalgamation}" != "yes" ; then
11294 USE_AMALGAMATION=0
11298 #########
11299 # See whether we should allow loadable extensions
11300 # Check whether --enable-load-extension was given.
11301 if test "${enable_load_extension+set}" = set; then :
11302 enableval=$enable_load_extension; use_loadextension=$enableval
11303 else
11304 use_loadextension=yes
11307 if test "${use_loadextension}" = "yes" ; then
11308 OPT_FEATURE_FLAGS=""
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11310 $as_echo_n "checking for library containing dlopen... " >&6; }
11311 if ${ac_cv_search_dlopen+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314 ac_func_search_save_LIBS=$LIBS
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11318 /* Override any GCC internal prototype to avoid an error.
11319 Use char because int might match the return type of a GCC
11320 builtin and then its argument prototype would still apply. */
11321 #ifdef __cplusplus
11322 extern "C"
11323 #endif
11324 char dlopen ();
11326 main ()
11328 return dlopen ();
11330 return 0;
11332 _ACEOF
11333 for ac_lib in '' dl; do
11334 if test -z "$ac_lib"; then
11335 ac_res="none required"
11336 else
11337 ac_res=-l$ac_lib
11338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11340 if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_search_dlopen=$ac_res
11343 rm -f core conftest.err conftest.$ac_objext \
11344 conftest$ac_exeext
11345 if ${ac_cv_search_dlopen+:} false; then :
11346 break
11348 done
11349 if ${ac_cv_search_dlopen+:} false; then :
11351 else
11352 ac_cv_search_dlopen=no
11354 rm conftest.$ac_ext
11355 LIBS=$ac_func_search_save_LIBS
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11358 $as_echo "$ac_cv_search_dlopen" >&6; }
11359 ac_res=$ac_cv_search_dlopen
11360 if test "$ac_res" != no; then :
11361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11365 else
11366 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11369 #########
11370 # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
11371 for option in $CFLAGS $CPPFLAGS
11373 case $option in
11374 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11375 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11376 esac
11377 done
11381 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11382 ac_temp_CFLAGS=""
11383 for option in $CFLAGS
11385 case $option in
11386 -DSQLITE_OMIT*) ;;
11387 -DSQLITE_ENABLE*) ;;
11388 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11389 esac
11390 done
11391 CFLAGS=$ac_temp_CFLAGS
11394 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11395 ac_temp_CPPFLAGS=""
11396 for option in $CPPFLAGS
11398 case $option in
11399 -DSQLITE_OMIT*) ;;
11400 -DSQLITE_ENABLE*) ;;
11401 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11402 esac
11403 done
11404 CPPFLAGS=$ac_temp_CPPFLAGS
11407 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11408 ac_temp_BUILD_CFLAGS=""
11409 for option in $BUILD_CFLAGS
11411 case $option in
11412 -DSQLITE_OMIT*) ;;
11413 -DSQLITE_ENABLE*) ;;
11414 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11415 esac
11416 done
11417 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11420 #########
11421 # See whether we should use GCOV
11422 # Check whether --enable-gcov was given.
11423 if test "${enable_gcov+set}" = set; then :
11424 enableval=$enable_gcov; use_gcov=$enableval
11425 else
11426 use_gcov=no
11429 if test "${use_gcov}" = "yes" ; then
11430 USE_GCOV=1
11431 else
11432 USE_GCOV=0
11437 #########
11438 # Output the config header
11439 ac_config_headers="$ac_config_headers config.h"
11442 #########
11443 # Generate the output files.
11446 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
11448 cat >confcache <<\_ACEOF
11449 # This file is a shell script that caches the results of configure
11450 # tests run on this system so they can be shared between configure
11451 # scripts and configure runs, see configure's option --config-cache.
11452 # It is not useful on other systems. If it contains results you don't
11453 # want to keep, you may remove or edit it.
11455 # config.status only pays attention to the cache file if you give it
11456 # the --recheck option to rerun configure.
11458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11460 # following values.
11462 _ACEOF
11464 # The following way of writing the cache mishandles newlines in values,
11465 # but we know of no workaround that is simple, portable, and efficient.
11466 # So, we kill variables containing newlines.
11467 # Ultrix sh set writes to stderr and can't be redirected directly,
11468 # and sets the high bit in the cache file unless we assign to the vars.
11470 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11471 eval ac_val=\$$ac_var
11472 case $ac_val in #(
11473 *${as_nl}*)
11474 case $ac_var in #(
11475 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11476 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11477 esac
11478 case $ac_var in #(
11479 _ | IFS | as_nl) ;; #(
11480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11481 *) { eval $ac_var=; unset $ac_var;} ;;
11482 esac ;;
11483 esac
11484 done
11486 (set) 2>&1 |
11487 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11488 *${as_nl}ac_space=\ *)
11489 # `set' does not quote correctly, so add quotes: double-quote
11490 # substitution turns \\\\ into \\, and sed turns \\ into \.
11491 sed -n \
11492 "s/'/'\\\\''/g;
11493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11494 ;; #(
11496 # `set' quotes correctly as required by POSIX, so do not add quotes.
11497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11499 esac |
11500 sort
11502 sed '
11503 /^ac_cv_env_/b end
11504 t clear
11505 :clear
11506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11507 t end
11508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11509 :end' >>confcache
11510 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11511 if test -w "$cache_file"; then
11512 if test "x$cache_file" != "x/dev/null"; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11514 $as_echo "$as_me: updating cache $cache_file" >&6;}
11515 if test ! -f "$cache_file" || test -h "$cache_file"; then
11516 cat confcache >"$cache_file"
11517 else
11518 case $cache_file in #(
11519 */* | ?:*)
11520 mv -f confcache "$cache_file"$$ &&
11521 mv -f "$cache_file"$$ "$cache_file" ;; #(
11523 mv -f confcache "$cache_file" ;;
11524 esac
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11529 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11532 rm -f confcache
11534 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11535 # Let make expand exec_prefix.
11536 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11538 DEFS=-DHAVE_CONFIG_H
11540 ac_libobjs=
11541 ac_ltlibobjs=
11543 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11544 # 1. Remove the extension, and $U if already installed.
11545 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11546 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11547 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11548 # will be set to the directory where LIBOBJS objects are built.
11549 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11550 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11551 done
11552 LIBOBJS=$ac_libobjs
11554 LTLIBOBJS=$ac_ltlibobjs
11558 : "${CONFIG_STATUS=./config.status}"
11559 ac_write_fail=0
11560 ac_clean_files_save=$ac_clean_files
11561 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11563 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11564 as_write_fail=0
11565 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11566 #! $SHELL
11567 # Generated by $as_me.
11568 # Run this file to recreate the current configuration.
11569 # Compiler output produced by configure, useful for debugging
11570 # configure, is in config.log if it exists.
11572 debug=false
11573 ac_cs_recheck=false
11574 ac_cs_silent=false
11576 SHELL=\${CONFIG_SHELL-$SHELL}
11577 export SHELL
11578 _ASEOF
11579 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11580 ## -------------------- ##
11581 ## M4sh Initialization. ##
11582 ## -------------------- ##
11584 # Be more Bourne compatible
11585 DUALCASE=1; export DUALCASE # for MKS sh
11586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11587 emulate sh
11588 NULLCMD=:
11589 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11590 # is contrary to our usage. Disable this feature.
11591 alias -g '${1+"$@"}'='"$@"'
11592 setopt NO_GLOB_SUBST
11593 else
11594 case `(set -o) 2>/dev/null` in #(
11595 *posix*) :
11596 set -o posix ;; #(
11597 *) :
11599 esac
11603 as_nl='
11605 export as_nl
11606 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11607 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11608 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11609 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11610 # Prefer a ksh shell builtin over an external printf program on Solaris,
11611 # but without wasting forks for bash or zsh.
11612 if test -z "$BASH_VERSION$ZSH_VERSION" \
11613 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11614 as_echo='print -r --'
11615 as_echo_n='print -rn --'
11616 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11617 as_echo='printf %s\n'
11618 as_echo_n='printf %s'
11619 else
11620 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11621 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11622 as_echo_n='/usr/ucb/echo -n'
11623 else
11624 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11625 as_echo_n_body='eval
11626 arg=$1;
11627 case $arg in #(
11628 *"$as_nl"*)
11629 expr "X$arg" : "X\\(.*\\)$as_nl";
11630 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11631 esac;
11632 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11634 export as_echo_n_body
11635 as_echo_n='sh -c $as_echo_n_body as_echo'
11637 export as_echo_body
11638 as_echo='sh -c $as_echo_body as_echo'
11641 # The user is always right.
11642 if test "${PATH_SEPARATOR+set}" != set; then
11643 PATH_SEPARATOR=:
11644 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11645 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11646 PATH_SEPARATOR=';'
11651 # IFS
11652 # We need space, tab and new line, in precisely that order. Quoting is
11653 # there to prevent editors from complaining about space-tab.
11654 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11655 # splitting by setting IFS to empty value.)
11656 IFS=" "" $as_nl"
11658 # Find who we are. Look in the path if we contain no directory separator.
11659 as_myself=
11660 case $0 in #((
11661 *[\\/]* ) as_myself=$0 ;;
11662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
11667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11668 done
11669 IFS=$as_save_IFS
11672 esac
11673 # We did not find ourselves, most probably we were run as `sh COMMAND'
11674 # in which case we are not to be found in the path.
11675 if test "x$as_myself" = x; then
11676 as_myself=$0
11678 if test ! -f "$as_myself"; then
11679 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11680 exit 1
11683 # Unset variables that we do not need and which cause bugs (e.g. in
11684 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11685 # suppresses any "Segmentation fault" message there. '((' could
11686 # trigger a bug in pdksh 5.2.14.
11687 for as_var in BASH_ENV ENV MAIL MAILPATH
11688 do eval test x\${$as_var+set} = xset \
11689 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11690 done
11691 PS1='$ '
11692 PS2='> '
11693 PS4='+ '
11695 # NLS nuisances.
11696 LC_ALL=C
11697 export LC_ALL
11698 LANGUAGE=C
11699 export LANGUAGE
11701 # CDPATH.
11702 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11705 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11706 # ----------------------------------------
11707 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11708 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11709 # script with STATUS, using 1 if that was 0.
11710 as_fn_error ()
11712 as_status=$1; test $as_status -eq 0 && as_status=1
11713 if test "$4"; then
11714 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11715 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11717 $as_echo "$as_me: error: $2" >&2
11718 as_fn_exit $as_status
11719 } # as_fn_error
11722 # as_fn_set_status STATUS
11723 # -----------------------
11724 # Set $? to STATUS, without forking.
11725 as_fn_set_status ()
11727 return $1
11728 } # as_fn_set_status
11730 # as_fn_exit STATUS
11731 # -----------------
11732 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11733 as_fn_exit ()
11735 set +e
11736 as_fn_set_status $1
11737 exit $1
11738 } # as_fn_exit
11740 # as_fn_unset VAR
11741 # ---------------
11742 # Portably unset VAR.
11743 as_fn_unset ()
11745 { eval $1=; unset $1;}
11747 as_unset=as_fn_unset
11748 # as_fn_append VAR VALUE
11749 # ----------------------
11750 # Append the text in VALUE to the end of the definition contained in VAR. Take
11751 # advantage of any shell optimizations that allow amortized linear growth over
11752 # repeated appends, instead of the typical quadratic growth present in naive
11753 # implementations.
11754 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11755 eval 'as_fn_append ()
11757 eval $1+=\$2
11759 else
11760 as_fn_append ()
11762 eval $1=\$$1\$2
11764 fi # as_fn_append
11766 # as_fn_arith ARG...
11767 # ------------------
11768 # Perform arithmetic evaluation on the ARGs, and store the result in the
11769 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11770 # must be portable across $(()) and expr.
11771 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11772 eval 'as_fn_arith ()
11774 as_val=$(( $* ))
11776 else
11777 as_fn_arith ()
11779 as_val=`expr "$@" || test $? -eq 1`
11781 fi # as_fn_arith
11784 if expr a : '\(a\)' >/dev/null 2>&1 &&
11785 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11786 as_expr=expr
11787 else
11788 as_expr=false
11791 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11792 as_basename=basename
11793 else
11794 as_basename=false
11797 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11798 as_dirname=dirname
11799 else
11800 as_dirname=false
11803 as_me=`$as_basename -- "$0" ||
11804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11805 X"$0" : 'X\(//\)$' \| \
11806 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11807 $as_echo X/"$0" |
11808 sed '/^.*\/\([^/][^/]*\)\/*$/{
11809 s//\1/
11812 /^X\/\(\/\/\)$/{
11813 s//\1/
11816 /^X\/\(\/\).*/{
11817 s//\1/
11820 s/.*/./; q'`
11822 # Avoid depending upon Character Ranges.
11823 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11824 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11825 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11826 as_cr_digits='0123456789'
11827 as_cr_alnum=$as_cr_Letters$as_cr_digits
11829 ECHO_C= ECHO_N= ECHO_T=
11830 case `echo -n x` in #(((((
11831 -n*)
11832 case `echo 'xy\c'` in
11833 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11834 xy) ECHO_C='\c';;
11835 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11836 ECHO_T=' ';;
11837 esac;;
11839 ECHO_N='-n';;
11840 esac
11842 rm -f conf$$ conf$$.exe conf$$.file
11843 if test -d conf$$.dir; then
11844 rm -f conf$$.dir/conf$$.file
11845 else
11846 rm -f conf$$.dir
11847 mkdir conf$$.dir 2>/dev/null
11849 if (echo >conf$$.file) 2>/dev/null; then
11850 if ln -s conf$$.file conf$$ 2>/dev/null; then
11851 as_ln_s='ln -s'
11852 # ... but there are two gotchas:
11853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11855 # In both cases, we have to default to `cp -pR'.
11856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11857 as_ln_s='cp -pR'
11858 elif ln conf$$.file conf$$ 2>/dev/null; then
11859 as_ln_s=ln
11860 else
11861 as_ln_s='cp -pR'
11863 else
11864 as_ln_s='cp -pR'
11866 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11867 rmdir conf$$.dir 2>/dev/null
11870 # as_fn_mkdir_p
11871 # -------------
11872 # Create "$as_dir" as a directory, including parents if necessary.
11873 as_fn_mkdir_p ()
11876 case $as_dir in #(
11877 -*) as_dir=./$as_dir;;
11878 esac
11879 test -d "$as_dir" || eval $as_mkdir_p || {
11880 as_dirs=
11881 while :; do
11882 case $as_dir in #(
11883 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11884 *) as_qdir=$as_dir;;
11885 esac
11886 as_dirs="'$as_qdir' $as_dirs"
11887 as_dir=`$as_dirname -- "$as_dir" ||
11888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11889 X"$as_dir" : 'X\(//\)[^/]' \| \
11890 X"$as_dir" : 'X\(//\)$' \| \
11891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11892 $as_echo X"$as_dir" |
11893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11894 s//\1/
11897 /^X\(\/\/\)[^/].*/{
11898 s//\1/
11901 /^X\(\/\/\)$/{
11902 s//\1/
11905 /^X\(\/\).*/{
11906 s//\1/
11909 s/.*/./; q'`
11910 test -d "$as_dir" && break
11911 done
11912 test -z "$as_dirs" || eval "mkdir $as_dirs"
11913 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11916 } # as_fn_mkdir_p
11917 if mkdir -p . 2>/dev/null; then
11918 as_mkdir_p='mkdir -p "$as_dir"'
11919 else
11920 test -d ./-p && rmdir ./-p
11921 as_mkdir_p=false
11925 # as_fn_executable_p FILE
11926 # -----------------------
11927 # Test if FILE is an executable regular file.
11928 as_fn_executable_p ()
11930 test -f "$1" && test -x "$1"
11931 } # as_fn_executable_p
11932 as_test_x='test -x'
11933 as_executable_p=as_fn_executable_p
11935 # Sed expression to map a string onto a valid CPP name.
11936 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11938 # Sed expression to map a string onto a valid variable name.
11939 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11942 exec 6>&1
11943 ## ----------------------------------- ##
11944 ## Main body of $CONFIG_STATUS script. ##
11945 ## ----------------------------------- ##
11946 _ASEOF
11947 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11950 # Save the log message, to keep $0 and so on meaningful, and to
11951 # report actual input values of CONFIG_FILES etc. instead of their
11952 # values after options handling.
11953 ac_log="
11954 This file was extended by sqlcipher $as_me 3.8.8.3, which was
11955 generated by GNU Autoconf 2.69. Invocation command line was
11957 CONFIG_FILES = $CONFIG_FILES
11958 CONFIG_HEADERS = $CONFIG_HEADERS
11959 CONFIG_LINKS = $CONFIG_LINKS
11960 CONFIG_COMMANDS = $CONFIG_COMMANDS
11961 $ $0 $@
11963 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11966 _ACEOF
11968 case $ac_config_files in *"
11969 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11970 esac
11972 case $ac_config_headers in *"
11973 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11974 esac
11977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11978 # Files that config.status was made for.
11979 config_files="$ac_config_files"
11980 config_headers="$ac_config_headers"
11981 config_commands="$ac_config_commands"
11983 _ACEOF
11985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11986 ac_cs_usage="\
11987 \`$as_me' instantiates files and other configuration actions
11988 from templates according to the current configuration. Unless the files
11989 and actions are specified as TAGs, all are instantiated by default.
11991 Usage: $0 [OPTION]... [TAG]...
11993 -h, --help print this help, then exit
11994 -V, --version print version number and configuration settings, then exit
11995 --config print configuration, then exit
11996 -q, --quiet, --silent
11997 do not print progress messages
11998 -d, --debug don't remove temporary files
11999 --recheck update $as_me by reconfiguring in the same conditions
12000 --file=FILE[:TEMPLATE]
12001 instantiate the configuration file FILE
12002 --header=FILE[:TEMPLATE]
12003 instantiate the configuration header FILE
12005 Configuration files:
12006 $config_files
12008 Configuration headers:
12009 $config_headers
12011 Configuration commands:
12012 $config_commands
12014 Report bugs to the package provider."
12016 _ACEOF
12017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12018 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12019 ac_cs_version="\\
12020 sqlcipher config.status 3.8.8.3
12021 configured by $0, generated by GNU Autoconf 2.69,
12022 with options \\"\$ac_cs_config\\"
12024 Copyright (C) 2012 Free Software Foundation, Inc.
12025 This config.status script is free software; the Free Software Foundation
12026 gives unlimited permission to copy, distribute and modify it."
12028 ac_pwd='$ac_pwd'
12029 srcdir='$srcdir'
12030 INSTALL='$INSTALL'
12031 AWK='$AWK'
12032 test -n "\$AWK" || AWK=awk
12033 _ACEOF
12035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12036 # The default lists apply if the user does not specify any file.
12037 ac_need_defaults=:
12038 while test $# != 0
12040 case $1 in
12041 --*=?*)
12042 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12043 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12044 ac_shift=:
12046 --*=)
12047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12048 ac_optarg=
12049 ac_shift=:
12052 ac_option=$1
12053 ac_optarg=$2
12054 ac_shift=shift
12056 esac
12058 case $ac_option in
12059 # Handling of the options.
12060 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12061 ac_cs_recheck=: ;;
12062 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12063 $as_echo "$ac_cs_version"; exit ;;
12064 --config | --confi | --conf | --con | --co | --c )
12065 $as_echo "$ac_cs_config"; exit ;;
12066 --debug | --debu | --deb | --de | --d | -d )
12067 debug=: ;;
12068 --file | --fil | --fi | --f )
12069 $ac_shift
12070 case $ac_optarg in
12071 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12072 '') as_fn_error $? "missing file argument" ;;
12073 esac
12074 as_fn_append CONFIG_FILES " '$ac_optarg'"
12075 ac_need_defaults=false;;
12076 --header | --heade | --head | --hea )
12077 $ac_shift
12078 case $ac_optarg in
12079 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12080 esac
12081 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12082 ac_need_defaults=false;;
12083 --he | --h)
12084 # Conflict between --help and --header
12085 as_fn_error $? "ambiguous option: \`$1'
12086 Try \`$0 --help' for more information.";;
12087 --help | --hel | -h )
12088 $as_echo "$ac_cs_usage"; exit ;;
12089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12091 ac_cs_silent=: ;;
12093 # This is an error.
12094 -*) as_fn_error $? "unrecognized option: \`$1'
12095 Try \`$0 --help' for more information." ;;
12097 *) as_fn_append ac_config_targets " $1"
12098 ac_need_defaults=false ;;
12100 esac
12101 shift
12102 done
12104 ac_configure_extra_args=
12106 if $ac_cs_silent; then
12107 exec 6>/dev/null
12108 ac_configure_extra_args="$ac_configure_extra_args --silent"
12111 _ACEOF
12112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12113 if \$ac_cs_recheck; then
12114 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12115 shift
12116 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12117 CONFIG_SHELL='$SHELL'
12118 export CONFIG_SHELL
12119 exec "\$@"
12122 _ACEOF
12123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12124 exec 5>>config.log
12126 echo
12127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12128 ## Running $as_me. ##
12129 _ASBOX
12130 $as_echo "$ac_log"
12131 } >&5
12133 _ACEOF
12134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12136 # INIT-COMMANDS
12140 # The HP-UX ksh and POSIX shell print the target directory to stdout
12141 # if CDPATH is set.
12142 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12144 sed_quote_subst='$sed_quote_subst'
12145 double_quote_subst='$double_quote_subst'
12146 delay_variable_subst='$delay_variable_subst'
12147 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12148 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12149 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12150 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12151 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12152 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12153 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12154 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12155 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12156 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12157 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12158 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12159 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12160 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12161 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12162 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12163 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12164 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12165 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12166 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12167 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12168 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12169 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12170 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12171 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12172 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12173 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12174 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12175 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12176 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12177 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12178 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12179 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12180 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12181 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12182 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12183 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12184 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12185 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12186 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12187 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12188 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12189 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12190 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12191 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"`'
12192 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"`'
12193 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12194 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12195 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12196 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12197 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12198 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12199 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12200 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12201 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12202 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12203 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12204 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12205 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12206 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12207 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12208 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12209 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12210 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12211 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12212 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12213 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12214 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12215 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12216 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12217 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12218 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12219 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12220 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12221 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12222 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12223 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12224 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12225 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12226 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12227 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12228 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12229 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12230 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12231 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12232 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12233 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12234 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12235 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12236 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12237 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12238 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12239 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12240 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12241 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12242 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12243 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12244 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12245 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12246 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12247 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12248 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12249 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12250 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12251 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12252 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12253 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12254 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12255 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12256 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12257 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12258 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12259 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12260 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12261 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12262 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12263 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12264 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12266 LTCC='$LTCC'
12267 LTCFLAGS='$LTCFLAGS'
12268 compiler='$compiler_DEFAULT'
12270 # Quote evaled strings.
12271 for var in SED \
12272 GREP \
12273 EGREP \
12274 FGREP \
12275 LD \
12276 NM \
12277 LN_S \
12278 lt_SP2NL \
12279 lt_NL2SP \
12280 reload_flag \
12281 OBJDUMP \
12282 deplibs_check_method \
12283 file_magic_cmd \
12284 AR \
12285 AR_FLAGS \
12286 STRIP \
12287 RANLIB \
12288 CC \
12289 CFLAGS \
12290 compiler \
12291 lt_cv_sys_global_symbol_pipe \
12292 lt_cv_sys_global_symbol_to_cdecl \
12293 lt_cv_sys_global_symbol_to_c_name_address \
12294 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12295 SHELL \
12296 ECHO \
12297 lt_prog_compiler_no_builtin_flag \
12298 lt_prog_compiler_wl \
12299 lt_prog_compiler_pic \
12300 lt_prog_compiler_static \
12301 lt_cv_prog_compiler_c_o \
12302 need_locks \
12303 DSYMUTIL \
12304 NMEDIT \
12305 LIPO \
12306 OTOOL \
12307 OTOOL64 \
12308 shrext_cmds \
12309 export_dynamic_flag_spec \
12310 whole_archive_flag_spec \
12311 compiler_needs_object \
12312 with_gnu_ld \
12313 allow_undefined_flag \
12314 no_undefined_flag \
12315 hardcode_libdir_flag_spec \
12316 hardcode_libdir_flag_spec_ld \
12317 hardcode_libdir_separator \
12318 fix_srcfile_path \
12319 exclude_expsyms \
12320 include_expsyms \
12321 file_list_spec \
12322 variables_saved_for_relink \
12323 libname_spec \
12324 library_names_spec \
12325 soname_spec \
12326 finish_eval \
12327 old_striplib \
12328 striplib; do
12329 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12330 *[\\\\\\\`\\"\\\$]*)
12331 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12334 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12336 esac
12337 done
12339 # Double-quote double-evaled strings.
12340 for var in reload_cmds \
12341 old_postinstall_cmds \
12342 old_postuninstall_cmds \
12343 old_archive_cmds \
12344 extract_expsyms_cmds \
12345 old_archive_from_new_cmds \
12346 old_archive_from_expsyms_cmds \
12347 archive_cmds \
12348 archive_expsym_cmds \
12349 module_cmds \
12350 module_expsym_cmds \
12351 export_symbols_cmds \
12352 prelink_cmds \
12353 postinstall_cmds \
12354 postuninstall_cmds \
12355 finish_cmds \
12356 sys_lib_search_path_spec \
12357 sys_lib_dlsearch_path_spec; do
12358 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12359 *[\\\\\\\`\\"\\\$]*)
12360 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12363 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12365 esac
12366 done
12368 # Fix-up fallback echo if it was mangled by the above quoting rules.
12369 case \$lt_ECHO in
12370 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12372 esac
12374 ac_aux_dir='$ac_aux_dir'
12375 xsi_shell='$xsi_shell'
12376 lt_shell_append='$lt_shell_append'
12378 # See if we are running on zsh, and set the options which allow our
12379 # commands through without removal of \ escapes INIT.
12380 if test -n "\${ZSH_VERSION+set}" ; then
12381 setopt NO_GLOB_SUBST
12385 PACKAGE='$PACKAGE'
12386 VERSION='$VERSION'
12387 TIMESTAMP='$TIMESTAMP'
12388 RM='$RM'
12389 ofile='$ofile'
12394 _ACEOF
12396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12398 # Handling of arguments.
12399 for ac_config_target in $ac_config_targets
12401 case $ac_config_target in
12402 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12403 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12404 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12405 "sqlcipher.pc") CONFIG_FILES="$CONFIG_FILES sqlcipher.pc" ;;
12407 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12408 esac
12409 done
12412 # If the user did not use the arguments to specify the items to instantiate,
12413 # then the envvar interface is used. Set only those that are not.
12414 # We use the long form for the default assignment because of an extremely
12415 # bizarre bug on SunOS 4.1.3.
12416 if $ac_need_defaults; then
12417 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12418 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12419 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12422 # Have a temporary directory for convenience. Make it in the build tree
12423 # simply because there is no reason against having it here, and in addition,
12424 # creating and moving files from /tmp can sometimes cause problems.
12425 # Hook for its removal unless debugging.
12426 # Note that there is a small window in which the directory will not be cleaned:
12427 # after its creation but before its name has been assigned to `$tmp'.
12428 $debug ||
12430 tmp= ac_tmp=
12431 trap 'exit_status=$?
12432 : "${ac_tmp:=$tmp}"
12433 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12435 trap 'as_fn_exit 1' 1 2 13 15
12437 # Create a (secure) tmp directory for tmp files.
12440 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12441 test -d "$tmp"
12442 } ||
12444 tmp=./conf$$-$RANDOM
12445 (umask 077 && mkdir "$tmp")
12446 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12447 ac_tmp=$tmp
12449 # Set up the scripts for CONFIG_FILES section.
12450 # No need to generate them if there are no CONFIG_FILES.
12451 # This happens for instance with `./config.status config.h'.
12452 if test -n "$CONFIG_FILES"; then
12455 ac_cr=`echo X | tr X '\015'`
12456 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12457 # But we know of no other shell where ac_cr would be empty at this
12458 # point, so we can use a bashism as a fallback.
12459 if test "x$ac_cr" = x; then
12460 eval ac_cr=\$\'\\r\'
12462 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12463 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12464 ac_cs_awk_cr='\\r'
12465 else
12466 ac_cs_awk_cr=$ac_cr
12469 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12470 _ACEOF
12474 echo "cat >conf$$subs.awk <<_ACEOF" &&
12475 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12476 echo "_ACEOF"
12477 } >conf$$subs.sh ||
12478 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12479 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12480 ac_delim='%!_!# '
12481 for ac_last_try in false false false false false :; do
12482 . ./conf$$subs.sh ||
12483 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12485 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12486 if test $ac_delim_n = $ac_delim_num; then
12487 break
12488 elif $ac_last_try; then
12489 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12490 else
12491 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12493 done
12494 rm -f conf$$subs.sh
12496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12497 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12498 _ACEOF
12499 sed -n '
12501 s/^/S["/; s/!.*/"]=/
12504 s/^[^!]*!//
12505 :repl
12506 t repl
12507 s/'"$ac_delim"'$//
12508 t delim
12511 s/\(.\{148\}\)..*/\1/
12512 t more1
12513 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12516 b repl
12517 :more1
12518 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12521 s/.\{148\}//
12522 t nl
12523 :delim
12525 s/\(.\{148\}\)..*/\1/
12526 t more2
12527 s/["\\]/\\&/g; s/^/"/; s/$/"/
12530 :more2
12531 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12534 s/.\{148\}//
12535 t delim
12536 ' <conf$$subs.awk | sed '
12537 /^[^""]/{
12539 s/\n//
12541 ' >>$CONFIG_STATUS || ac_write_fail=1
12542 rm -f conf$$subs.awk
12543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12544 _ACAWK
12545 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12546 for (key in S) S_is_set[key] = 1
12547 FS = "\a"
12551 line = $ 0
12552 nfields = split(line, field, "@")
12553 substed = 0
12554 len = length(field[1])
12555 for (i = 2; i < nfields; i++) {
12556 key = field[i]
12557 keylen = length(key)
12558 if (S_is_set[key]) {
12559 value = S[key]
12560 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12561 len += length(value) + length(field[++i])
12562 substed = 1
12563 } else
12564 len += 1 + keylen
12567 print line
12570 _ACAWK
12571 _ACEOF
12572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12574 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12575 else
12577 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12578 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12579 _ACEOF
12581 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12582 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12583 # trailing colons and then remove the whole line if VPATH becomes empty
12584 # (actually we leave an empty line to preserve line numbers).
12585 if test "x$srcdir" = x.; then
12586 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12588 s///
12589 s/^/:/
12590 s/[ ]*$/:/
12591 s/:\$(srcdir):/:/g
12592 s/:\${srcdir}:/:/g
12593 s/:@srcdir@:/:/g
12594 s/^:*//
12595 s/:*$//
12597 s/\(=[ ]*\).*/\1/
12599 s/\n//
12600 s/^[^=]*=[ ]*$//
12604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12605 fi # test -n "$CONFIG_FILES"
12607 # Set up the scripts for CONFIG_HEADERS section.
12608 # No need to generate them if there are no CONFIG_HEADERS.
12609 # This happens for instance with `./config.status Makefile'.
12610 if test -n "$CONFIG_HEADERS"; then
12611 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12612 BEGIN {
12613 _ACEOF
12615 # Transform confdefs.h into an awk script `defines.awk', embedded as
12616 # here-document in config.status, that substitutes the proper values into
12617 # config.h.in to produce config.h.
12619 # Create a delimiter string that does not exist in confdefs.h, to ease
12620 # handling of long lines.
12621 ac_delim='%!_!# '
12622 for ac_last_try in false false :; do
12623 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12624 if test -z "$ac_tt"; then
12625 break
12626 elif $ac_last_try; then
12627 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12628 else
12629 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12631 done
12633 # For the awk script, D is an array of macro values keyed by name,
12634 # likewise P contains macro parameters if any. Preserve backslash
12635 # newline sequences.
12637 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12638 sed -n '
12639 s/.\{148\}/&'"$ac_delim"'/g
12640 t rset
12641 :rset
12642 s/^[ ]*#[ ]*define[ ][ ]*/ /
12643 t def
12645 :def
12646 s/\\$//
12647 t bsnl
12648 s/["\\]/\\&/g
12649 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12650 D["\1"]=" \3"/p
12651 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12653 :bsnl
12654 s/["\\]/\\&/g
12655 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12656 D["\1"]=" \3\\\\\\n"\\/p
12657 t cont
12658 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12659 t cont
12661 :cont
12663 s/.\{148\}/&'"$ac_delim"'/g
12664 t clear
12665 :clear
12666 s/\\$//
12667 t bsnlc
12668 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12670 :bsnlc
12671 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12672 b cont
12673 ' <confdefs.h | sed '
12674 s/'"$ac_delim"'/"\\\
12675 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12678 for (key in D) D_is_set[key] = 1
12679 FS = "\a"
12681 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12682 line = \$ 0
12683 split(line, arg, " ")
12684 if (arg[1] == "#") {
12685 defundef = arg[2]
12686 mac1 = arg[3]
12687 } else {
12688 defundef = substr(arg[1], 2)
12689 mac1 = arg[2]
12691 split(mac1, mac2, "(") #)
12692 macro = mac2[1]
12693 prefix = substr(line, 1, index(line, defundef) - 1)
12694 if (D_is_set[macro]) {
12695 # Preserve the white space surrounding the "#".
12696 print prefix "define", macro P[macro] D[macro]
12697 next
12698 } else {
12699 # Replace #undef with comments. This is necessary, for example,
12700 # in the case of _POSIX_SOURCE, which is predefined and required
12701 # on some systems where configure will not decide to define it.
12702 if (defundef == "undef") {
12703 print "/*", prefix defundef, macro, "*/"
12704 next
12708 { print }
12709 _ACAWK
12710 _ACEOF
12711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12712 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12713 fi # test -n "$CONFIG_HEADERS"
12716 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12717 shift
12718 for ac_tag
12720 case $ac_tag in
12721 :[FHLC]) ac_mode=$ac_tag; continue;;
12722 esac
12723 case $ac_mode$ac_tag in
12724 :[FHL]*:*);;
12725 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12726 :[FH]-) ac_tag=-:-;;
12727 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12728 esac
12729 ac_save_IFS=$IFS
12730 IFS=:
12731 set x $ac_tag
12732 IFS=$ac_save_IFS
12733 shift
12734 ac_file=$1
12735 shift
12737 case $ac_mode in
12738 :L) ac_source=$1;;
12739 :[FH])
12740 ac_file_inputs=
12741 for ac_f
12743 case $ac_f in
12744 -) ac_f="$ac_tmp/stdin";;
12745 *) # Look for the file first in the build tree, then in the source tree
12746 # (if the path is not absolute). The absolute path cannot be DOS-style,
12747 # because $ac_f cannot contain `:'.
12748 test -f "$ac_f" ||
12749 case $ac_f in
12750 [\\/$]*) false;;
12751 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12752 esac ||
12753 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12754 esac
12755 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12756 as_fn_append ac_file_inputs " '$ac_f'"
12757 done
12759 # Let's still pretend it is `configure' which instantiates (i.e., don't
12760 # use $as_me), people would be surprised to read:
12761 # /* config.h. Generated by config.status. */
12762 configure_input='Generated from '`
12763 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12764 `' by configure.'
12765 if test x"$ac_file" != x-; then
12766 configure_input="$ac_file. $configure_input"
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12768 $as_echo "$as_me: creating $ac_file" >&6;}
12770 # Neutralize special characters interpreted by sed in replacement strings.
12771 case $configure_input in #(
12772 *\&* | *\|* | *\\* )
12773 ac_sed_conf_input=`$as_echo "$configure_input" |
12774 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12775 *) ac_sed_conf_input=$configure_input;;
12776 esac
12778 case $ac_tag in
12779 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12781 esac
12783 esac
12785 ac_dir=`$as_dirname -- "$ac_file" ||
12786 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12787 X"$ac_file" : 'X\(//\)[^/]' \| \
12788 X"$ac_file" : 'X\(//\)$' \| \
12789 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12790 $as_echo X"$ac_file" |
12791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12792 s//\1/
12795 /^X\(\/\/\)[^/].*/{
12796 s//\1/
12799 /^X\(\/\/\)$/{
12800 s//\1/
12803 /^X\(\/\).*/{
12804 s//\1/
12807 s/.*/./; q'`
12808 as_dir="$ac_dir"; as_fn_mkdir_p
12809 ac_builddir=.
12811 case "$ac_dir" in
12812 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12814 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12815 # A ".." for each directory in $ac_dir_suffix.
12816 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12817 case $ac_top_builddir_sub in
12818 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12819 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12820 esac ;;
12821 esac
12822 ac_abs_top_builddir=$ac_pwd
12823 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12824 # for backward compatibility:
12825 ac_top_builddir=$ac_top_build_prefix
12827 case $srcdir in
12828 .) # We are building in place.
12829 ac_srcdir=.
12830 ac_top_srcdir=$ac_top_builddir_sub
12831 ac_abs_top_srcdir=$ac_pwd ;;
12832 [\\/]* | ?:[\\/]* ) # Absolute name.
12833 ac_srcdir=$srcdir$ac_dir_suffix;
12834 ac_top_srcdir=$srcdir
12835 ac_abs_top_srcdir=$srcdir ;;
12836 *) # Relative name.
12837 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12838 ac_top_srcdir=$ac_top_build_prefix$srcdir
12839 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12840 esac
12841 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12844 case $ac_mode in
12847 # CONFIG_FILE
12850 case $INSTALL in
12851 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12852 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12853 esac
12854 _ACEOF
12856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12857 # If the template does not know about datarootdir, expand it.
12858 # FIXME: This hack should be removed a few years after 2.60.
12859 ac_datarootdir_hack=; ac_datarootdir_seen=
12860 ac_sed_dataroot='
12861 /datarootdir/ {
12865 /@datadir@/p
12866 /@docdir@/p
12867 /@infodir@/p
12868 /@localedir@/p
12869 /@mandir@/p'
12870 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12871 *datarootdir*) ac_datarootdir_seen=yes;;
12872 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12874 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12875 _ACEOF
12876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12877 ac_datarootdir_hack='
12878 s&@datadir@&$datadir&g
12879 s&@docdir@&$docdir&g
12880 s&@infodir@&$infodir&g
12881 s&@localedir@&$localedir&g
12882 s&@mandir@&$mandir&g
12883 s&\\\${datarootdir}&$datarootdir&g' ;;
12884 esac
12885 _ACEOF
12887 # Neutralize VPATH when `$srcdir' = `.'.
12888 # Shell code in configure.ac might set extrasub.
12889 # FIXME: do we really want to maintain this feature?
12890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12891 ac_sed_extra="$ac_vpsub
12892 $extrasub
12893 _ACEOF
12894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12897 s|@configure_input@|$ac_sed_conf_input|;t t
12898 s&@top_builddir@&$ac_top_builddir_sub&;t t
12899 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12900 s&@srcdir@&$ac_srcdir&;t t
12901 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12902 s&@top_srcdir@&$ac_top_srcdir&;t t
12903 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12904 s&@builddir@&$ac_builddir&;t t
12905 s&@abs_builddir@&$ac_abs_builddir&;t t
12906 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12907 s&@INSTALL@&$ac_INSTALL&;t t
12908 $ac_datarootdir_hack
12910 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12911 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12913 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12914 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12915 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12916 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12918 which seems to be undefined. Please make sure it is defined" >&5
12919 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12920 which seems to be undefined. Please make sure it is defined" >&2;}
12922 rm -f "$ac_tmp/stdin"
12923 case $ac_file in
12924 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12925 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12926 esac \
12927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12931 # CONFIG_HEADER
12933 if test x"$ac_file" != x-; then
12935 $as_echo "/* $configure_input */" \
12936 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12937 } >"$ac_tmp/config.h" \
12938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12939 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12941 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12942 else
12943 rm -f "$ac_file"
12944 mv "$ac_tmp/config.h" "$ac_file" \
12945 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12947 else
12948 $as_echo "/* $configure_input */" \
12949 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12950 || as_fn_error $? "could not create -" "$LINENO" 5
12954 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12955 $as_echo "$as_me: executing $ac_file commands" >&6;}
12957 esac
12960 case $ac_file$ac_mode in
12961 "libtool":C)
12963 # See if we are running on zsh, and set the options which allow our
12964 # commands through without removal of \ escapes.
12965 if test -n "${ZSH_VERSION+set}" ; then
12966 setopt NO_GLOB_SUBST
12969 cfgfile="${ofile}T"
12970 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12971 $RM "$cfgfile"
12973 cat <<_LT_EOF >> "$cfgfile"
12974 #! $SHELL
12976 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12977 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12979 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12981 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12982 # 2006, 2007, 2008 Free Software Foundation, Inc.
12983 # Written by Gordon Matzigkeit, 1996
12985 # This file is part of GNU Libtool.
12987 # GNU Libtool is free software; you can redistribute it and/or
12988 # modify it under the terms of the GNU General Public License as
12989 # published by the Free Software Foundation; either version 2 of
12990 # the License, or (at your option) any later version.
12992 # As a special exception to the GNU General Public License,
12993 # if you distribute this file as part of a program or library that
12994 # is built using GNU Libtool, you may include this file under the
12995 # same distribution terms that you use for the rest of that program.
12997 # GNU Libtool is distributed in the hope that it will be useful,
12998 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12999 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13000 # GNU General Public License for more details.
13002 # You should have received a copy of the GNU General Public License
13003 # along with GNU Libtool; see the file COPYING. If not, a copy
13004 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13005 # obtained by writing to the Free Software Foundation, Inc.,
13006 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13009 # The names of the tagged configurations supported by this script.
13010 available_tags=""
13012 # ### BEGIN LIBTOOL CONFIG
13014 # Which release of libtool.m4 was used?
13015 macro_version=$macro_version
13016 macro_revision=$macro_revision
13018 # Whether or not to build shared libraries.
13019 build_libtool_libs=$enable_shared
13021 # Whether or not to build static libraries.
13022 build_old_libs=$enable_static
13024 # What type of objects to build.
13025 pic_mode=$pic_mode
13027 # Whether or not to optimize for fast installation.
13028 fast_install=$enable_fast_install
13030 # The host system.
13031 host_alias=$host_alias
13032 host=$host
13033 host_os=$host_os
13035 # The build system.
13036 build_alias=$build_alias
13037 build=$build
13038 build_os=$build_os
13040 # A sed program that does not truncate output.
13041 SED=$lt_SED
13043 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13044 Xsed="\$SED -e 1s/^X//"
13046 # A grep program that handles long lines.
13047 GREP=$lt_GREP
13049 # An ERE matcher.
13050 EGREP=$lt_EGREP
13052 # A literal string matcher.
13053 FGREP=$lt_FGREP
13055 # A BSD- or MS-compatible name lister.
13056 NM=$lt_NM
13058 # Whether we need soft or hard links.
13059 LN_S=$lt_LN_S
13061 # What is the maximum length of a command?
13062 max_cmd_len=$max_cmd_len
13064 # Object file suffix (normally "o").
13065 objext=$ac_objext
13067 # Executable file suffix (normally "").
13068 exeext=$exeext
13070 # whether the shell understands "unset".
13071 lt_unset=$lt_unset
13073 # turn spaces into newlines.
13074 SP2NL=$lt_lt_SP2NL
13076 # turn newlines into spaces.
13077 NL2SP=$lt_lt_NL2SP
13079 # How to create reloadable object files.
13080 reload_flag=$lt_reload_flag
13081 reload_cmds=$lt_reload_cmds
13083 # An object symbol dumper.
13084 OBJDUMP=$lt_OBJDUMP
13086 # Method to check whether dependent libraries are shared objects.
13087 deplibs_check_method=$lt_deplibs_check_method
13089 # Command to use when deplibs_check_method == "file_magic".
13090 file_magic_cmd=$lt_file_magic_cmd
13092 # The archiver.
13093 AR=$lt_AR
13094 AR_FLAGS=$lt_AR_FLAGS
13096 # A symbol stripping program.
13097 STRIP=$lt_STRIP
13099 # Commands used to install an old-style archive.
13100 RANLIB=$lt_RANLIB
13101 old_postinstall_cmds=$lt_old_postinstall_cmds
13102 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13104 # A C compiler.
13105 LTCC=$lt_CC
13107 # LTCC compiler flags.
13108 LTCFLAGS=$lt_CFLAGS
13110 # Take the output of nm and produce a listing of raw symbols and C names.
13111 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13113 # Transform the output of nm in a proper C declaration.
13114 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13116 # Transform the output of nm in a C name address pair.
13117 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13119 # Transform the output of nm in a C name address pair when lib prefix is needed.
13120 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13122 # The name of the directory that contains temporary libtool files.
13123 objdir=$objdir
13125 # Shell to use when invoking shell scripts.
13126 SHELL=$lt_SHELL
13128 # An echo program that does not interpret backslashes.
13129 ECHO=$lt_ECHO
13131 # Used to examine libraries when file_magic_cmd begins with "file".
13132 MAGIC_CMD=$MAGIC_CMD
13134 # Must we lock files when doing compilation?
13135 need_locks=$lt_need_locks
13137 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13138 DSYMUTIL=$lt_DSYMUTIL
13140 # Tool to change global to local symbols on Mac OS X.
13141 NMEDIT=$lt_NMEDIT
13143 # Tool to manipulate fat objects and archives on Mac OS X.
13144 LIPO=$lt_LIPO
13146 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13147 OTOOL=$lt_OTOOL
13149 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13150 OTOOL64=$lt_OTOOL64
13152 # Old archive suffix (normally "a").
13153 libext=$libext
13155 # Shared library suffix (normally ".so").
13156 shrext_cmds=$lt_shrext_cmds
13158 # The commands to extract the exported symbol list from a shared archive.
13159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13161 # Variables whose values should be saved in libtool wrapper scripts and
13162 # restored at link time.
13163 variables_saved_for_relink=$lt_variables_saved_for_relink
13165 # Do we need the "lib" prefix for modules?
13166 need_lib_prefix=$need_lib_prefix
13168 # Do we need a version for libraries?
13169 need_version=$need_version
13171 # Library versioning type.
13172 version_type=$version_type
13174 # Shared library runtime path variable.
13175 runpath_var=$runpath_var
13177 # Shared library path variable.
13178 shlibpath_var=$shlibpath_var
13180 # Is shlibpath searched before the hard-coded library search path?
13181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13183 # Format of library name prefix.
13184 libname_spec=$lt_libname_spec
13186 # List of archive names. First name is the real one, the rest are links.
13187 # The last name is the one that the linker finds with -lNAME
13188 library_names_spec=$lt_library_names_spec
13190 # The coded name of the library, if different from the real name.
13191 soname_spec=$lt_soname_spec
13193 # Command to use after installation of a shared archive.
13194 postinstall_cmds=$lt_postinstall_cmds
13196 # Command to use after uninstallation of a shared archive.
13197 postuninstall_cmds=$lt_postuninstall_cmds
13199 # Commands used to finish a libtool library installation in a directory.
13200 finish_cmds=$lt_finish_cmds
13202 # As "finish_cmds", except a single script fragment to be evaled but
13203 # not shown.
13204 finish_eval=$lt_finish_eval
13206 # Whether we should hardcode library paths into libraries.
13207 hardcode_into_libs=$hardcode_into_libs
13209 # Compile-time system search path for libraries.
13210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13212 # Run-time system search path for libraries.
13213 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13215 # Whether dlopen is supported.
13216 dlopen_support=$enable_dlopen
13218 # Whether dlopen of programs is supported.
13219 dlopen_self=$enable_dlopen_self
13221 # Whether dlopen of statically linked programs is supported.
13222 dlopen_self_static=$enable_dlopen_self_static
13224 # Commands to strip libraries.
13225 old_striplib=$lt_old_striplib
13226 striplib=$lt_striplib
13229 # The linker used to build libraries.
13230 LD=$lt_LD
13232 # Commands used to build an old-style archive.
13233 old_archive_cmds=$lt_old_archive_cmds
13235 # A language specific compiler.
13236 CC=$lt_compiler
13238 # Is the compiler the GNU compiler?
13239 with_gcc=$GCC
13241 # Compiler flag to turn off builtin functions.
13242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13244 # How to pass a linker flag through the compiler.
13245 wl=$lt_lt_prog_compiler_wl
13247 # Additional compiler flags for building library objects.
13248 pic_flag=$lt_lt_prog_compiler_pic
13250 # Compiler flag to prevent dynamic linking.
13251 link_static_flag=$lt_lt_prog_compiler_static
13253 # Does compiler simultaneously support -c and -o options?
13254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13256 # Whether or not to add -lc for building shared libraries.
13257 build_libtool_need_lc=$archive_cmds_need_lc
13259 # Whether or not to disallow shared libs when runtime libs are static.
13260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13262 # Compiler flag to allow reflexive dlopens.
13263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13265 # Compiler flag to generate shared objects directly from archives.
13266 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13268 # Whether the compiler copes with passing no objects directly.
13269 compiler_needs_object=$lt_compiler_needs_object
13271 # Create an old-style archive from a shared archive.
13272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13274 # Create a temporary old-style archive to link instead of a shared archive.
13275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13277 # Commands used to build a shared archive.
13278 archive_cmds=$lt_archive_cmds
13279 archive_expsym_cmds=$lt_archive_expsym_cmds
13281 # Commands used to build a loadable module if different from building
13282 # a shared archive.
13283 module_cmds=$lt_module_cmds
13284 module_expsym_cmds=$lt_module_expsym_cmds
13286 # Whether we are building with GNU ld or not.
13287 with_gnu_ld=$lt_with_gnu_ld
13289 # Flag that allows shared libraries with undefined symbols to be built.
13290 allow_undefined_flag=$lt_allow_undefined_flag
13292 # Flag that enforces no undefined symbols.
13293 no_undefined_flag=$lt_no_undefined_flag
13295 # Flag to hardcode \$libdir into a binary during linking.
13296 # This must work even if \$libdir does not exist
13297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13299 # If ld is used when linking, flag to hardcode \$libdir into a binary
13300 # during linking. This must work even if \$libdir does not exist.
13301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13303 # Whether we need a single "-rpath" flag with a separated argument.
13304 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13306 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13307 # DIR into the resulting binary.
13308 hardcode_direct=$hardcode_direct
13310 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13311 # DIR into the resulting binary and the resulting library dependency is
13312 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13313 # library is relocated.
13314 hardcode_direct_absolute=$hardcode_direct_absolute
13316 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13317 # into the resulting binary.
13318 hardcode_minus_L=$hardcode_minus_L
13320 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13321 # into the resulting binary.
13322 hardcode_shlibpath_var=$hardcode_shlibpath_var
13324 # Set to "yes" if building a shared library automatically hardcodes DIR
13325 # into the library and all subsequent libraries and executables linked
13326 # against it.
13327 hardcode_automatic=$hardcode_automatic
13329 # Set to yes if linker adds runtime paths of dependent libraries
13330 # to runtime path list.
13331 inherit_rpath=$inherit_rpath
13333 # Whether libtool must link a program against all its dependency libraries.
13334 link_all_deplibs=$link_all_deplibs
13336 # Fix the shell variable \$srcfile for the compiler.
13337 fix_srcfile_path=$lt_fix_srcfile_path
13339 # Set to "yes" if exported symbols are required.
13340 always_export_symbols=$always_export_symbols
13342 # The commands to list exported symbols.
13343 export_symbols_cmds=$lt_export_symbols_cmds
13345 # Symbols that should not be listed in the preloaded symbols.
13346 exclude_expsyms=$lt_exclude_expsyms
13348 # Symbols that must always be exported.
13349 include_expsyms=$lt_include_expsyms
13351 # Commands necessary for linking programs (against libraries) with templates.
13352 prelink_cmds=$lt_prelink_cmds
13354 # Specify filename containing input files.
13355 file_list_spec=$lt_file_list_spec
13357 # How to hardcode a shared library path into an executable.
13358 hardcode_action=$hardcode_action
13360 # ### END LIBTOOL CONFIG
13362 _LT_EOF
13364 case $host_os in
13365 aix3*)
13366 cat <<\_LT_EOF >> "$cfgfile"
13367 # AIX sometimes has problems with the GCC collect2 program. For some
13368 # reason, if we set the COLLECT_NAMES environment variable, the problems
13369 # vanish in a puff of smoke.
13370 if test "X${COLLECT_NAMES+set}" != Xset; then
13371 COLLECT_NAMES=
13372 export COLLECT_NAMES
13374 _LT_EOF
13376 esac
13379 ltmain="$ac_aux_dir/ltmain.sh"
13382 # We use sed instead of cat because bash on DJGPP gets confused if
13383 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13384 # text mode, it properly converts lines to CR/LF. This bash problem
13385 # is reportedly fixed, but why not run on old versions too?
13386 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13387 || (rm -f "$cfgfile"; exit 1)
13389 case $xsi_shell in
13390 yes)
13391 cat << \_LT_EOF >> "$cfgfile"
13393 # func_dirname file append nondir_replacement
13394 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13395 # otherwise set result to NONDIR_REPLACEMENT.
13396 func_dirname ()
13398 case ${1} in
13399 */*) func_dirname_result="${1%/*}${2}" ;;
13400 * ) func_dirname_result="${3}" ;;
13401 esac
13404 # func_basename file
13405 func_basename ()
13407 func_basename_result="${1##*/}"
13410 # func_dirname_and_basename file append nondir_replacement
13411 # perform func_basename and func_dirname in a single function
13412 # call:
13413 # dirname: Compute the dirname of FILE. If nonempty,
13414 # add APPEND to the result, otherwise set result
13415 # to NONDIR_REPLACEMENT.
13416 # value returned in "$func_dirname_result"
13417 # basename: Compute filename of FILE.
13418 # value retuned in "$func_basename_result"
13419 # Implementation must be kept synchronized with func_dirname
13420 # and func_basename. For efficiency, we do not delegate to
13421 # those functions but instead duplicate the functionality here.
13422 func_dirname_and_basename ()
13424 case ${1} in
13425 */*) func_dirname_result="${1%/*}${2}" ;;
13426 * ) func_dirname_result="${3}" ;;
13427 esac
13428 func_basename_result="${1##*/}"
13431 # func_stripname prefix suffix name
13432 # strip PREFIX and SUFFIX off of NAME.
13433 # PREFIX and SUFFIX must not contain globbing or regex special
13434 # characters, hashes, percent signs, but SUFFIX may contain a leading
13435 # dot (in which case that matches only a dot).
13436 func_stripname ()
13438 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13439 # positional parameters, so assign one to ordinary parameter first.
13440 func_stripname_result=${3}
13441 func_stripname_result=${func_stripname_result#"${1}"}
13442 func_stripname_result=${func_stripname_result%"${2}"}
13445 # func_opt_split
13446 func_opt_split ()
13448 func_opt_split_opt=${1%%=*}
13449 func_opt_split_arg=${1#*=}
13452 # func_lo2o object
13453 func_lo2o ()
13455 case ${1} in
13456 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13457 *) func_lo2o_result=${1} ;;
13458 esac
13461 # func_xform libobj-or-source
13462 func_xform ()
13464 func_xform_result=${1%.*}.lo
13467 # func_arith arithmetic-term...
13468 func_arith ()
13470 func_arith_result=$(( $* ))
13473 # func_len string
13474 # STRING may not start with a hyphen.
13475 func_len ()
13477 func_len_result=${#1}
13480 _LT_EOF
13482 *) # Bourne compatible functions.
13483 cat << \_LT_EOF >> "$cfgfile"
13485 # func_dirname file append nondir_replacement
13486 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13487 # otherwise set result to NONDIR_REPLACEMENT.
13488 func_dirname ()
13490 # Extract subdirectory from the argument.
13491 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13492 if test "X$func_dirname_result" = "X${1}"; then
13493 func_dirname_result="${3}"
13494 else
13495 func_dirname_result="$func_dirname_result${2}"
13499 # func_basename file
13500 func_basename ()
13502 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13506 # func_stripname prefix suffix name
13507 # strip PREFIX and SUFFIX off of NAME.
13508 # PREFIX and SUFFIX must not contain globbing or regex special
13509 # characters, hashes, percent signs, but SUFFIX may contain a leading
13510 # dot (in which case that matches only a dot).
13511 # func_strip_suffix prefix name
13512 func_stripname ()
13514 case ${2} in
13515 .*) func_stripname_result=`$ECHO "X${3}" \
13516 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13517 *) func_stripname_result=`$ECHO "X${3}" \
13518 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13519 esac
13522 # sed scripts:
13523 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13524 my_sed_long_arg='1s/^-[^=]*=//'
13526 # func_opt_split
13527 func_opt_split ()
13529 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13530 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13533 # func_lo2o object
13534 func_lo2o ()
13536 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13539 # func_xform libobj-or-source
13540 func_xform ()
13542 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13545 # func_arith arithmetic-term...
13546 func_arith ()
13548 func_arith_result=`expr "$@"`
13551 # func_len string
13552 # STRING may not start with a hyphen.
13553 func_len ()
13555 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13558 _LT_EOF
13559 esac
13561 case $lt_shell_append in
13562 yes)
13563 cat << \_LT_EOF >> "$cfgfile"
13565 # func_append var value
13566 # Append VALUE to the end of shell variable VAR.
13567 func_append ()
13569 eval "$1+=\$2"
13571 _LT_EOF
13574 cat << \_LT_EOF >> "$cfgfile"
13576 # func_append var value
13577 # Append VALUE to the end of shell variable VAR.
13578 func_append ()
13580 eval "$1=\$$1\$2"
13583 _LT_EOF
13585 esac
13588 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13589 || (rm -f "$cfgfile"; exit 1)
13591 mv -f "$cfgfile" "$ofile" ||
13592 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13593 chmod +x "$ofile"
13597 esac
13598 done # for ac_tag
13601 as_fn_exit 0
13602 _ACEOF
13603 ac_clean_files=$ac_clean_files_save
13605 test $ac_write_fail = 0 ||
13606 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13609 # configure is writing to config.log, and then calls config.status.
13610 # config.status does its own redirection, appending to config.log.
13611 # Unfortunately, on DOS this fails, as config.log is still kept open
13612 # by configure, so config.status won't be able to write to it; its
13613 # output is simply discarded. So we exec the FD to /dev/null,
13614 # effectively closing config.log, so it can be properly (re)opened and
13615 # appended to by config.status. When coming back to configure, we
13616 # need to make the FD available again.
13617 if test "$no_create" != yes; then
13618 ac_cs_success=:
13619 ac_config_status_args=
13620 test "$silent" = yes &&
13621 ac_config_status_args="$ac_config_status_args --quiet"
13622 exec 5>/dev/null
13623 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13624 exec 5>>config.log
13625 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13626 # would make configure fail if this is the last instruction.
13627 $ac_cs_success || as_fn_exit 1
13629 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13631 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}