remove files generated buy build automatically
[sqlcipher.git] / configure
bloba6c7200b9bc645eed4167bfb65022b9f4096c8f8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sqlcipher 2.2.0.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
541 case X$lt_ECHO in
542 X*--fallback-echo)
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
546 esac
548 ECHO=${lt_ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
551 shift
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $ECHO works!
558 else
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
565 shift
566 cat <<_LT_EOF
568 _LT_EOF
569 exit 0
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$lt_ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583 then
584 break
586 done
589 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591 test "X$echo_testing_string" = "X$echo_test_string"; then
593 else
594 # The Solaris, AIX, and Digital Unix default echo programs unquote
595 # backslashes. This makes it impossible to quote backslashes using
596 # echo "$something" | sed 's/\\/\\\\/g'
598 # So, first we look for a working echo in the user's PATH.
600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601 for dir in $PATH /usr/ucb; do
602 IFS="$lt_save_ifs"
603 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 ECHO="$dir/echo"
608 break
610 done
611 IFS="$lt_save_ifs"
613 if test "X$ECHO" = Xecho; then
614 # We didn't find a better echo, so look for alternatives.
615 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # This shell has a builtin print -r that does the trick.
619 ECHO='print -r'
620 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621 test "X$CONFIG_SHELL" != X/bin/ksh; then
622 # If we have ksh, try running configure again with it.
623 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624 export ORIGINAL_CONFIG_SHELL
625 CONFIG_SHELL=/bin/ksh
626 export CONFIG_SHELL
627 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628 else
629 # Try using printf.
630 ECHO='printf %s\n'
631 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # Cool, printf works
636 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641 export CONFIG_SHELL
642 SHELL="$CONFIG_SHELL"
643 export SHELL
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646 test "X$echo_testing_string" = 'X\t' &&
647 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 ECHO="$CONFIG_SHELL $0 --fallback-echo"
650 else
651 # maybe with a smaller string...
652 prev=:
654 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656 then
657 break
659 prev="$cmd"
660 done
662 if test "$prev" != 'sed 50q "$0"'; then
663 echo_test_string=`eval $prev`
664 export echo_test_string
665 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666 else
667 # Oops. We lost completely, so just stick with echo.
668 ECHO=echo
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
678 lt_ECHO=$ECHO
679 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 test -n "$DJDIR" || exec 7<&0 </dev/null
687 exec 6>&1
689 # Name of the host.
690 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
695 # Initializations.
697 ac_default_prefix=/usr/local
698 ac_clean_files=
699 ac_config_libobj_dir=.
700 LIBOBJS=
701 cross_compiling=no
702 subdirs=
703 MFLAGS=
704 MAKEFLAGS=
706 # Identity of this package.
707 PACKAGE_NAME='sqlcipher'
708 PACKAGE_TARNAME='sqlcipher'
709 PACKAGE_VERSION='2.2.0'
710 PACKAGE_STRING='sqlcipher 2.2.0'
711 PACKAGE_BUGREPORT=''
712 PACKAGE_URL=''
714 # Factoring default headers for most tests.
715 ac_includes_default="\
716 #include <stdio.h>
717 #ifdef HAVE_SYS_TYPES_H
718 # include <sys/types.h>
719 #endif
720 #ifdef HAVE_SYS_STAT_H
721 # include <sys/stat.h>
722 #endif
723 #ifdef STDC_HEADERS
724 # include <stdlib.h>
725 # include <stddef.h>
726 #else
727 # ifdef HAVE_STDLIB_H
728 # include <stdlib.h>
729 # endif
730 #endif
731 #ifdef HAVE_STRING_H
732 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 # include <memory.h>
734 # endif
735 # include <string.h>
736 #endif
737 #ifdef HAVE_STRINGS_H
738 # include <strings.h>
739 #endif
740 #ifdef HAVE_INTTYPES_H
741 # include <inttypes.h>
742 #endif
743 #ifdef HAVE_STDINT_H
744 # include <stdint.h>
745 #endif
746 #ifdef HAVE_UNISTD_H
747 # include <unistd.h>
748 #endif"
750 ac_subst_vars='LTLIBOBJS
751 LIBOBJS
752 BUILD_CFLAGS
753 USE_GCOV
754 OPT_FEATURE_FLAGS
755 USE_AMALGAMATION
756 TARGET_DEBUG
757 TARGET_HAVE_READLINE
758 TARGET_READLINE_INC
759 TARGET_READLINE_LIBS
760 HAVE_TCL
761 TCL_STUB_LIB_SPEC
762 TCL_STUB_LIB_FLAG
763 TCL_STUB_LIB_FILE
764 TCL_LIB_SPEC
765 TCL_LIB_FLAG
766 TCL_LIB_FILE
767 TCL_INCLUDE_SPEC
768 TCL_SRC_DIR
769 TCL_BIN_DIR
770 TCL_VERSION
771 TARGET_EXEEXT
772 SQLITE_OS_OS2
773 SQLITE_OS_WIN
774 SQLITE_OS_UNIX
775 BUILD_EXEEXT
776 TEMP_STORE
777 ALLOWRELEASE
778 XTHREADCONNECT
779 SQLITE_THREADSAFE
780 BUILD_CC
781 VERSION_NUMBER
782 RELEASE
783 VERSION
784 program_prefix
785 TCLLIBDIR
786 TCLSH_CMD
788 INSTALL_DATA
789 INSTALL_SCRIPT
790 INSTALL_PROGRAM
792 OTOOL64
793 OTOOL
794 LIPO
795 NMEDIT
796 DSYMUTIL
797 lt_ECHO
798 RANLIB
799 STRIP
801 OBJDUMP
802 LN_S
804 ac_ct_DUMPBIN
805 DUMPBIN
807 FGREP
808 EGREP
809 GREP
811 OBJEXT
812 EXEEXT
813 ac_ct_CC
814 CPPFLAGS
815 LDFLAGS
816 CFLAGS
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 LIBTOOL
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files=''
866 ac_user_opts='
867 enable_option_checking
868 enable_shared
869 enable_static
870 with_pic
871 enable_fast_install
872 with_gnu_ld
873 enable_libtool_lock
874 enable_largefile
875 with_hints
876 enable_threadsafe
877 enable_cross_thread_connections
878 enable_releasemode
879 enable_tempstore
880 enable_tcl
881 with_tcl
882 enable_readline
883 with_readline_lib
884 with_readline_inc
885 enable_debug
886 enable_amalgamation
887 enable_load_extension
888 enable_gcov
890 ac_precious_vars='build_alias
891 host_alias
892 target_alias
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
899 TCLLIBDIR'
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 ac_unrecognized_opts=
906 ac_unrecognized_sep=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
950 ac_prev=
951 ac_dashdash=
952 for ac_option
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\$ac_option
957 ac_prev=
958 continue
961 case $ac_option in
962 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 *=) ac_optarg= ;;
964 *) ac_optarg=yes ;;
965 esac
967 # Accept the important Cygnus configure options, so we can diagnose typos.
969 case $ac_dashdash$ac_option in
971 ac_dashdash=yes ;;
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 ac_prev=bindir ;;
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976 bindir=$ac_optarg ;;
978 -build | --build | --buil | --bui | --bu)
979 ac_prev=build_alias ;;
980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981 build_alias=$ac_optarg ;;
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988 cache_file=$ac_optarg ;;
990 --config-cache | -C)
991 cache_file=config.cache ;;
993 -datadir | --datadir | --datadi | --datad)
994 ac_prev=datadir ;;
995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
996 datadir=$ac_optarg ;;
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1005 -disable-* | --disable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_$ac_useropt"
1015 "*) ;;
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1018 esac
1019 eval enable_$ac_useropt=no ;;
1021 -docdir | --docdir | --docdi | --doc | --do)
1022 ac_prev=docdir ;;
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 ac_prev=dvidir ;;
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
1031 -enable-* | --enable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid feature name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval enable_$ac_useropt=\$ac_optarg ;;
1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049 | --exec | --exe | --ex)
1050 ac_prev=exec_prefix ;;
1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053 | --exec=* | --exe=* | --ex=*)
1054 exec_prefix=$ac_optarg ;;
1056 -gas | --gas | --ga | --g)
1057 # Obsolete; use --with-gas.
1058 with_gas=yes ;;
1060 -help | --help | --hel | --he | -h)
1061 ac_init_help=long ;;
1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063 ac_init_help=recursive ;;
1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065 ac_init_help=short ;;
1067 -host | --host | --hos | --ho)
1068 ac_prev=host_alias ;;
1069 -host=* | --host=* | --hos=* | --ho=*)
1070 host_alias=$ac_optarg ;;
1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073 ac_prev=htmldir ;;
1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075 | --ht=*)
1076 htmldir=$ac_optarg ;;
1078 -includedir | --includedir | --includedi | --included | --include \
1079 | --includ | --inclu | --incl | --inc)
1080 ac_prev=includedir ;;
1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082 | --includ=* | --inclu=* | --incl=* | --inc=*)
1083 includedir=$ac_optarg ;;
1085 -infodir | --infodir | --infodi | --infod | --info | --inf)
1086 ac_prev=infodir ;;
1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088 infodir=$ac_optarg ;;
1090 -libdir | --libdir | --libdi | --libd)
1091 ac_prev=libdir ;;
1092 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093 libdir=$ac_optarg ;;
1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096 | --libexe | --libex | --libe)
1097 ac_prev=libexecdir ;;
1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099 | --libexe=* | --libex=* | --libe=*)
1100 libexecdir=$ac_optarg ;;
1102 -localedir | --localedir | --localedi | --localed | --locale)
1103 ac_prev=localedir ;;
1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105 localedir=$ac_optarg ;;
1107 -localstatedir | --localstatedir | --localstatedi | --localstated \
1108 | --localstate | --localstat | --localsta | --localst | --locals)
1109 ac_prev=localstatedir ;;
1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112 localstatedir=$ac_optarg ;;
1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 ac_prev=mandir ;;
1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117 mandir=$ac_optarg ;;
1119 -nfp | --nfp | --nf)
1120 # Obsolete; use --without-fp.
1121 with_fp=no ;;
1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124 | --no-cr | --no-c | -n)
1125 no_create=yes ;;
1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 no_recursion=yes ;;
1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133 | --oldin | --oldi | --old | --ol | --o)
1134 ac_prev=oldincludedir ;;
1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138 oldincludedir=$ac_optarg ;;
1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 ac_prev=prefix ;;
1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143 prefix=$ac_optarg ;;
1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146 | --program-pre | --program-pr | --program-p)
1147 ac_prev=program_prefix ;;
1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150 program_prefix=$ac_optarg ;;
1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153 | --program-suf | --program-su | --program-s)
1154 ac_prev=program_suffix ;;
1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157 program_suffix=$ac_optarg ;;
1159 -program-transform-name | --program-transform-name \
1160 | --program-transform-nam | --program-transform-na \
1161 | --program-transform-n | --program-transform- \
1162 | --program-transform | --program-transfor \
1163 | --program-transfo | --program-transf \
1164 | --program-trans | --program-tran \
1165 | --progr-tra | --program-tr | --program-t)
1166 ac_prev=program_transform_name ;;
1167 -program-transform-name=* | --program-transform-name=* \
1168 | --program-transform-nam=* | --program-transform-na=* \
1169 | --program-transform-n=* | --program-transform-=* \
1170 | --program-transform=* | --program-transfor=* \
1171 | --program-transfo=* | --program-transf=* \
1172 | --program-trans=* | --program-tran=* \
1173 | --progr-tra=* | --program-tr=* | --program-t=*)
1174 program_transform_name=$ac_optarg ;;
1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177 ac_prev=pdfdir ;;
1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179 pdfdir=$ac_optarg ;;
1181 -psdir | --psdir | --psdi | --psd | --ps)
1182 ac_prev=psdir ;;
1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 psdir=$ac_optarg ;;
1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187 | -silent | --silent | --silen | --sile | --sil)
1188 silent=yes ;;
1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191 ac_prev=sbindir ;;
1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193 | --sbi=* | --sb=*)
1194 sbindir=$ac_optarg ;;
1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198 | --sharedst | --shareds | --shared | --share | --shar \
1199 | --sha | --sh)
1200 ac_prev=sharedstatedir ;;
1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204 | --sha=* | --sh=*)
1205 sharedstatedir=$ac_optarg ;;
1207 -site | --site | --sit)
1208 ac_prev=site ;;
1209 -site=* | --site=* | --sit=*)
1210 site=$ac_optarg ;;
1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213 ac_prev=srcdir ;;
1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215 srcdir=$ac_optarg ;;
1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218 | --syscon | --sysco | --sysc | --sys | --sy)
1219 ac_prev=sysconfdir ;;
1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222 sysconfdir=$ac_optarg ;;
1224 -target | --target | --targe | --targ | --tar | --ta | --t)
1225 ac_prev=target_alias ;;
1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227 target_alias=$ac_optarg ;;
1229 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 verbose=yes ;;
1232 -version | --version | --versio | --versi | --vers | -V)
1233 ac_init_version=: ;;
1235 -with-* | --with-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=\$ac_optarg ;;
1251 -without-* | --without-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1260 "with_$ac_useropt"
1261 "*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=no ;;
1267 --x)
1268 # Obsolete; use --with-x.
1269 with_x=yes ;;
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1289 *=*)
1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 case $ac_envvar in #(
1293 '' | [0-9]* | *[!_$as_cr_alnum]* )
1294 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1295 esac
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1307 esac
1308 done
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 as_fn_error $? "missing argument to $ac_option"
1315 if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1317 no) ;;
1318 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1320 esac
1323 # Check all directory arguments for consistency.
1324 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir
1329 eval ac_val=\$$ac_var
1330 # Remove trailing slashes.
1331 case $ac_val in
1332 */ )
1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\$ac_val;;
1335 esac
1336 # Be sure to have absolute directory names.
1337 case $ac_val in
1338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340 esac
1341 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1342 done
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1347 build=$build_alias
1348 host=$host_alias
1349 target=$target_alias
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353 if test "x$build_alias" = x; then
1354 cross_compiling=maybe
1355 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1356 If a cross compiler is detected then cross compile mode will be used" >&2
1357 elif test "x$build_alias" != "x$host_alias"; then
1358 cross_compiling=yes
1362 ac_tool_prefix=
1363 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365 test "$silent" = yes && exec 6>/dev/null
1368 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di=`ls -di .` &&
1370 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $? "working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $? "pwd does not report name of working directory"
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387 s//\1/
1390 /^X\(\/\/\)[^/].*/{
1391 s//\1/
1394 /^X\(\/\/\)$/{
1395 s//\1/
1398 /^X\(\/\).*/{
1399 s//\1/
1402 s/.*/./; q'`
1403 srcdir=$ac_confdir
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 srcdir=..
1407 else
1408 ac_srcdir_defaulted=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 ac_abs_confdir=`(
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1417 pwd)`
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 srcdir=.
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1425 case $srcdir in
1426 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427 esac
1428 for ac_var in $ac_precious_vars; do
1429 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_${ac_var}_value=\$${ac_var}
1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 done
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1441 cat <<_ACEOF
1442 \`configure' configures sqlcipher 2.2.0 to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1451 Configuration:
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 [PREFIX]
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1495 _ACEOF
1497 cat <<\_ACEOF
1499 System types:
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 _ACEOF
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive ) echo "Configuration of sqlcipher 2.2.0:";;
1508 esac
1509 cat <<\_ACEOF
1511 Optional Features:
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-static[=PKGS] build static libraries [default=yes]
1517 --enable-fast-install[=PKGS]
1518 optimize for fast installation [default=yes]
1519 --disable-libtool-lock avoid locking (might break parallel builds)
1520 --disable-largefile omit support for large files
1521 --enable-threadsafe Support threadsafe operation
1522 --enable-cross-thread-connections
1523 Allow connection sharing across threads
1524 --enable-releasemode Support libtool link to release mode
1525 --enable-tempstore Use an in-ram database for temporary tables
1526 (never,no,yes,always)
1527 --disable-tcl do not build TCL extension
1528 --disable-readline disable readline support [default=detect]
1529 --enable-debug enable debugging & verbose explain
1530 --disable-amalgamation Disable the amalgamation and instead build all files
1531 separately
1532 --enable-load-extension Enable loading of external extensions
1533 --enable-gcov Enable coverage testing using gcov
1535 Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538 --with-pic try to use only PIC/non-PIC objects [default=use
1539 both]
1540 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1541 --with-hints=FILE Read configuration options from FILE
1542 --with-tcl=DIR directory containing tcl configuration
1543 (tclConfig.sh)
1544 --with-readline-lib specify readline library
1545 --with-readline-inc specify readline include paths
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 CPP C preprocessor
1556 TCLLIBDIR Where to install tcl plugin
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1561 Report bugs to the package provider.
1562 _ACEOF
1563 ac_status=$?
1566 if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 test -d "$ac_dir" ||
1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 continue
1572 ac_builddir=.
1574 case "$ac_dir" in
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 esac ;;
1584 esac
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1590 case $srcdir in
1591 .) # We are building in place.
1592 ac_srcdir=.
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
1596 ac_srcdir=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1599 *) # Relative name.
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 esac
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1609 echo &&
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure" --help=recursive
1614 else
1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 fi || ac_status=$?
1617 cd "$ac_pwd" || { ac_status=$?; break; }
1618 done
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1623 cat <<\_ACEOF
1624 sqlcipher configure 2.2.0
1625 generated by GNU Autoconf 2.68
1627 Copyright (C) 2010 Free Software Foundation, Inc.
1628 This configure script is free software; the Free Software Foundation
1629 gives unlimited permission to copy, distribute and modify it.
1630 _ACEOF
1631 exit
1634 ## ------------------------ ##
1635 ## Autoconf initialization. ##
1636 ## ------------------------ ##
1638 # ac_fn_c_try_compile LINENO
1639 # --------------------------
1640 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_compile ()
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 rm -f conftest.$ac_objext
1645 if { { ac_try="$ac_compile"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_compile") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && {
1661 test -z "$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 } && test -s conftest.$ac_objext; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1669 ac_retval=1
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1674 } # ac_fn_c_try_compile
1676 # ac_fn_c_try_link LINENO
1677 # -----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_link ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext conftest$ac_exeext
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest$ac_exeext && {
1702 test "$cross_compiling" = yes ||
1703 $as_test_x conftest$ac_exeext
1704 }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 ac_retval=1
1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714 # interfere with the next link command; also delete a directory that is
1715 # left behind by Apple's compiler. We do this before executing the actions.
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1720 } # ac_fn_c_try_link
1722 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1723 # -------------------------------------------------------
1724 # Tests whether HEADER exists and can be compiled using the include files in
1725 # INCLUDES, setting the cache variable VAR accordingly.
1726 ac_fn_c_check_header_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1733 else
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1737 #include <$2>
1738 _ACEOF
1739 if ac_fn_c_try_compile "$LINENO"; then :
1740 eval "$3=yes"
1741 else
1742 eval "$3=no"
1744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746 eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 } # ac_fn_c_check_header_compile
1753 # ac_fn_c_try_cpp LINENO
1754 # ----------------------
1755 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_cpp ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_cpp conftest.$ac_ext"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } > conftest.i && {
1775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1783 ac_retval=1
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1788 } # ac_fn_c_try_cpp
1790 # ac_fn_c_try_run LINENO
1791 # ----------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1793 # that executables *can* be run.
1794 ac_fn_c_try_run ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>&5
1805 ac_status=$?
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1808 { { case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_try") 2>&5
1815 ac_status=$?
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; }; }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: program exited with status $ac_status" >&5
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 ac_retval=$ac_status
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1830 } # ac_fn_c_try_run
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847 #define $2 innocuous_$2
1849 /* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below.
1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852 <limits.h> exists even on freestanding compilers. */
1854 #ifdef __STDC__
1855 # include <limits.h>
1856 #else
1857 # include <assert.h>
1858 #endif
1860 #undef $2
1862 /* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1865 #ifdef __cplusplus
1866 extern "C"
1867 #endif
1868 char $2 ();
1869 /* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872 #if defined __stub_$2 || defined __stub___$2
1873 choke me
1874 #endif
1877 main ()
1879 return $2 ();
1881 return 0;
1883 _ACEOF
1884 if ac_fn_c_try_link "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1889 rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
1892 eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 } # ac_fn_c_check_func
1899 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1900 # -------------------------------------------
1901 # Tests whether TYPE exists after having included INCLUDES, setting cache
1902 # variable VAR accordingly.
1903 ac_fn_c_check_type ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 eval "$3=no"
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1916 main ()
1918 if (sizeof ($2))
1919 return 0;
1921 return 0;
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 main ()
1931 if (sizeof (($2)))
1932 return 0;
1934 return 0;
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1939 else
1940 eval "$3=yes"
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 } # ac_fn_c_check_type
1953 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # -------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1957 # accordingly.
1958 ac_fn_c_check_header_mongrel ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if eval \${$3+:} false; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 else
1971 # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1981 else
1982 ac_header_compiler=no
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 #include <$2>
1994 _ACEOF
1995 if ac_fn_c_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1997 else
1998 ac_header_preproc=no
2000 rm -f conftest.err conftest.i conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2004 # So? What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2006 yes:no: )
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 no:yes:* )
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 esac
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=\$ac_header_compiler"
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 } # ac_fn_c_check_header_mongrel
2039 cat >config.log <<_ACEOF
2040 This file contains any messages produced by compilers while
2041 running configure, to aid debugging if configure makes a mistake.
2043 It was created by sqlcipher $as_me 2.2.0, which was
2044 generated by GNU Autoconf 2.68. Invocation command line was
2046 $ $0 $@
2048 _ACEOF
2049 exec 5>>config.log
2051 cat <<_ASUNAME
2052 ## --------- ##
2053 ## Platform. ##
2054 ## --------- ##
2056 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2057 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2058 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2059 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2060 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2062 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2063 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2065 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2066 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2067 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2068 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2069 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2070 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2071 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2073 _ASUNAME
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 $as_echo "PATH: $as_dir"
2081 done
2082 IFS=$as_save_IFS
2084 } >&5
2086 cat >&5 <<_ACEOF
2089 ## ----------- ##
2090 ## Core tests. ##
2091 ## ----------- ##
2093 _ACEOF
2096 # Keep a trace of the command line.
2097 # Strip out --no-create and --no-recursion so they do not pile up.
2098 # Strip out --silent because we don't want to record it for future runs.
2099 # Also quote any args containing shell meta-characters.
2100 # Make two passes to allow for proper duplicate-argument suppression.
2101 ac_configure_args=
2102 ac_configure_args0=
2103 ac_configure_args1=
2104 ac_must_keep_next=false
2105 for ac_pass in 1 2
2107 for ac_arg
2109 case $ac_arg in
2110 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2112 | -silent | --silent | --silen | --sile | --sil)
2113 continue ;;
2114 *\'*)
2115 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2116 esac
2117 case $ac_pass in
2118 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2120 as_fn_append ac_configure_args1 " '$ac_arg'"
2121 if test $ac_must_keep_next = true; then
2122 ac_must_keep_next=false # Got value, back to normal.
2123 else
2124 case $ac_arg in
2125 *=* | --config-cache | -C | -disable-* | --disable-* \
2126 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2127 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2128 | -with-* | --with-* | -without-* | --without-* | --x)
2129 case "$ac_configure_args0 " in
2130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2131 esac
2133 -* ) ac_must_keep_next=true ;;
2134 esac
2136 as_fn_append ac_configure_args " '$ac_arg'"
2138 esac
2139 done
2140 done
2141 { ac_configure_args0=; unset ac_configure_args0;}
2142 { ac_configure_args1=; unset ac_configure_args1;}
2144 # When interrupted or exit'd, cleanup temporary files, and complete
2145 # config.log. We remove comments because anyway the quotes in there
2146 # would cause problems or look ugly.
2147 # WARNING: Use '\'' to represent an apostrophe within the trap.
2148 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2149 trap 'exit_status=$?
2150 # Save into config.log some information that might help in debugging.
2152 echo
2154 $as_echo "## ---------------- ##
2155 ## Cache variables. ##
2156 ## ---------------- ##"
2157 echo
2158 # The following way of writing the cache mishandles newlines in values,
2160 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in #(
2163 *${as_nl}*)
2164 case $ac_var in #(
2165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2167 esac
2168 case $ac_var in #(
2169 _ | IFS | as_nl) ;; #(
2170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2171 *) { eval $ac_var=; unset $ac_var;} ;;
2172 esac ;;
2173 esac
2174 done
2175 (set) 2>&1 |
2176 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2177 *${as_nl}ac_space=\ *)
2178 sed -n \
2179 "s/'\''/'\''\\\\'\'''\''/g;
2180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2181 ;; #(
2183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2185 esac |
2186 sort
2188 echo
2190 $as_echo "## ----------------- ##
2191 ## Output variables. ##
2192 ## ----------------- ##"
2193 echo
2194 for ac_var in $ac_subst_vars
2196 eval ac_val=\$$ac_var
2197 case $ac_val in
2198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2199 esac
2200 $as_echo "$ac_var='\''$ac_val'\''"
2201 done | sort
2202 echo
2204 if test -n "$ac_subst_files"; then
2205 $as_echo "## ------------------- ##
2206 ## File substitutions. ##
2207 ## ------------------- ##"
2208 echo
2209 for ac_var in $ac_subst_files
2211 eval ac_val=\$$ac_var
2212 case $ac_val in
2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214 esac
2215 $as_echo "$ac_var='\''$ac_val'\''"
2216 done | sort
2217 echo
2220 if test -s confdefs.h; then
2221 $as_echo "## ----------- ##
2222 ## confdefs.h. ##
2223 ## ----------- ##"
2224 echo
2225 cat confdefs.h
2226 echo
2228 test "$ac_signal" != 0 &&
2229 $as_echo "$as_me: caught signal $ac_signal"
2230 $as_echo "$as_me: exit $exit_status"
2231 } >&5
2232 rm -f core *.core core.conftest.* &&
2233 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2234 exit $exit_status
2236 for ac_signal in 1 2 13 15; do
2237 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2238 done
2239 ac_signal=0
2241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2242 rm -f -r conftest* confdefs.h
2244 $as_echo "/* confdefs.h */" > confdefs.h
2246 # Predefined preprocessor variables.
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_NAME "$PACKAGE_NAME"
2250 _ACEOF
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2254 _ACEOF
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2258 _ACEOF
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_STRING "$PACKAGE_STRING"
2262 _ACEOF
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2266 _ACEOF
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_URL "$PACKAGE_URL"
2270 _ACEOF
2273 # Let the site file select an alternate cache file if it wants to.
2274 # Prefer an explicitly selected file to automatically selected ones.
2275 ac_site_file1=NONE
2276 ac_site_file2=NONE
2277 if test -n "$CONFIG_SITE"; then
2278 # We do not want a PATH search for config.site.
2279 case $CONFIG_SITE in #((
2280 -*) ac_site_file1=./$CONFIG_SITE;;
2281 */*) ac_site_file1=$CONFIG_SITE;;
2282 *) ac_site_file1=./$CONFIG_SITE;;
2283 esac
2284 elif test "x$prefix" != xNONE; then
2285 ac_site_file1=$prefix/share/config.site
2286 ac_site_file2=$prefix/etc/config.site
2287 else
2288 ac_site_file1=$ac_default_prefix/share/config.site
2289 ac_site_file2=$ac_default_prefix/etc/config.site
2291 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2293 test "x$ac_site_file" = xNONE && continue
2294 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2296 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2297 sed 's/^/| /' "$ac_site_file" >&5
2298 . "$ac_site_file" \
2299 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301 as_fn_error $? "failed to load site script $ac_site_file
2302 See \`config.log' for more details" "$LINENO" 5; }
2304 done
2306 if test -r "$cache_file"; then
2307 # Some versions of bash will fail to source /dev/null (special files
2308 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2309 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2311 $as_echo "$as_me: loading cache $cache_file" >&6;}
2312 case $cache_file in
2313 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2314 *) . "./$cache_file";;
2315 esac
2317 else
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2319 $as_echo "$as_me: creating cache $cache_file" >&6;}
2320 >$cache_file
2323 # Check that the precious variables saved in the cache have kept the same
2324 # value.
2325 ac_cache_corrupted=false
2326 for ac_var in $ac_precious_vars; do
2327 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2328 eval ac_new_set=\$ac_env_${ac_var}_set
2329 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2330 eval ac_new_val=\$ac_env_${ac_var}_value
2331 case $ac_old_set,$ac_new_set in
2332 set,)
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2334 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2335 ac_cache_corrupted=: ;;
2336 ,set)
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2338 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2339 ac_cache_corrupted=: ;;
2340 ,);;
2342 if test "x$ac_old_val" != "x$ac_new_val"; then
2343 # differences in whitespace do not lead to failure.
2344 ac_old_val_w=`echo x $ac_old_val`
2345 ac_new_val_w=`echo x $ac_new_val`
2346 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2348 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2349 ac_cache_corrupted=:
2350 else
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2352 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2353 eval $ac_var=\$ac_old_val
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2356 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2358 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2359 fi;;
2360 esac
2361 # Pass precious variables to config.status.
2362 if test "$ac_new_set" = set; then
2363 case $ac_new_val in
2364 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2365 *) ac_arg=$ac_var=$ac_new_val ;;
2366 esac
2367 case " $ac_configure_args " in
2368 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2369 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2370 esac
2372 done
2373 if $ac_cache_corrupted; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2377 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2378 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2380 ## -------------------- ##
2381 ## Main body of script. ##
2382 ## -------------------- ##
2384 ac_ext=c
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2393 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2394 as_fn_error $? "configure script is out of date:
2395 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2396 top level VERSION file = $sqlite_version_sanity_check
2397 please regen with autoconf" "$LINENO" 5
2400 # The following RCS revision string applies to configure.in
2401 # $Revision: 1.56 $
2403 #########
2404 # Programs needed
2406 case `pwd` in
2407 *\ * | *\ *)
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2409 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2410 esac
2414 macro_version='2.2.6'
2415 macro_revision='1.3012'
2429 ltmain="$ac_aux_dir/ltmain.sh"
2431 ac_aux_dir=
2432 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2433 if test -f "$ac_dir/install-sh"; then
2434 ac_aux_dir=$ac_dir
2435 ac_install_sh="$ac_aux_dir/install-sh -c"
2436 break
2437 elif test -f "$ac_dir/install.sh"; then
2438 ac_aux_dir=$ac_dir
2439 ac_install_sh="$ac_aux_dir/install.sh -c"
2440 break
2441 elif test -f "$ac_dir/shtool"; then
2442 ac_aux_dir=$ac_dir
2443 ac_install_sh="$ac_aux_dir/shtool install -c"
2444 break
2446 done
2447 if test -z "$ac_aux_dir"; then
2448 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2451 # These three variables are undocumented and unsupported,
2452 # and are intended to be withdrawn in a future Autoconf release.
2453 # They can cause serious problems if a builder's source tree is in a directory
2454 # whose full name contains unusual characters.
2455 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2456 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2457 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2460 # Make sure we can run config.sub.
2461 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2462 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2465 $as_echo_n "checking build system type... " >&6; }
2466 if ${ac_cv_build+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 ac_build_alias=$build_alias
2470 test "x$ac_build_alias" = x &&
2471 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2472 test "x$ac_build_alias" = x &&
2473 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2474 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2475 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2479 $as_echo "$ac_cv_build" >&6; }
2480 case $ac_cv_build in
2481 *-*-*) ;;
2482 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2483 esac
2484 build=$ac_cv_build
2485 ac_save_IFS=$IFS; IFS='-'
2486 set x $ac_cv_build
2487 shift
2488 build_cpu=$1
2489 build_vendor=$2
2490 shift; shift
2491 # Remember, the first character of IFS is used to create $*,
2492 # except with old shells:
2493 build_os=$*
2494 IFS=$ac_save_IFS
2495 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2499 $as_echo_n "checking host system type... " >&6; }
2500 if ${ac_cv_host+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test "x$host_alias" = x; then
2504 ac_cv_host=$ac_cv_build
2505 else
2506 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2507 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2512 $as_echo "$ac_cv_host" >&6; }
2513 case $ac_cv_host in
2514 *-*-*) ;;
2515 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2516 esac
2517 host=$ac_cv_host
2518 ac_save_IFS=$IFS; IFS='-'
2519 set x $ac_cv_host
2520 shift
2521 host_cpu=$1
2522 host_vendor=$2
2523 shift; shift
2524 # Remember, the first character of IFS is used to create $*,
2525 # except with old shells:
2526 host_os=$*
2527 IFS=$ac_save_IFS
2528 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2531 ac_ext=c
2532 ac_cpp='$CPP $CPPFLAGS'
2533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536 if test -n "$ac_tool_prefix"; then
2537 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2538 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_CC+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2558 done
2559 done
2560 IFS=$as_save_IFS
2564 CC=$ac_cv_prog_CC
2565 if test -n "$CC"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2567 $as_echo "$CC" >&6; }
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2575 if test -z "$ac_cv_prog_CC"; then
2576 ac_ct_CC=$CC
2577 # Extract the first word of "gcc", so it can be a program name with args.
2578 set dummy gcc; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test -n "$ac_ct_CC"; then
2585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_ac_ct_CC="gcc"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2598 done
2599 done
2600 IFS=$as_save_IFS
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2607 $as_echo "$ac_ct_CC" >&6; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2613 if test "x$ac_ct_CC" = x; then
2614 CC=""
2615 else
2616 case $cross_compiling:$ac_tool_warned in
2617 yes:)
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2620 ac_tool_warned=yes ;;
2621 esac
2622 CC=$ac_ct_CC
2624 else
2625 CC="$ac_cv_prog_CC"
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}cc; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_CC+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_CC="${ac_tool_prefix}cc"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2651 done
2652 done
2653 IFS=$as_save_IFS
2657 CC=$ac_cv_prog_CC
2658 if test -n "$CC"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660 $as_echo "$CC" >&6; }
2661 else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2669 if test -z "$CC"; then
2670 # Extract the first word of "cc", so it can be a program name with args.
2671 set dummy cc; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_CC+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2679 else
2680 ac_prog_rejected=no
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2689 ac_prog_rejected=yes
2690 continue
2692 ac_cv_prog_CC="cc"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2698 IFS=$as_save_IFS
2700 if test $ac_prog_rejected = yes; then
2701 # We found a bogon in the path, so make sure we never use it.
2702 set dummy $ac_cv_prog_CC
2703 shift
2704 if test $# != 0; then
2705 # We chose a different compiler from the bogus one.
2706 # However, it has the same basename, so the bogon will be chosen
2707 # first if we set CC to just the basename; use the full file name.
2708 shift
2709 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2714 CC=$ac_cv_prog_CC
2715 if test -n "$CC"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717 $as_echo "$CC" >&6; }
2718 else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2725 if test -z "$CC"; then
2726 if test -n "$ac_tool_prefix"; then
2727 for ac_prog in cl.exe
2729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_CC+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2750 done
2751 done
2752 IFS=$as_save_IFS
2756 CC=$ac_cv_prog_CC
2757 if test -n "$CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2760 else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2766 test -n "$CC" && break
2767 done
2769 if test -z "$CC"; then
2770 ac_ct_CC=$CC
2771 for ac_prog in cl.exe
2773 # Extract the first word of "$ac_prog", so it can be a program name with args.
2774 set dummy $ac_prog; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$ac_ct_CC"; then
2781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_ac_ct_CC="$ac_prog"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2794 done
2795 done
2796 IFS=$as_save_IFS
2800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801 if test -n "$ac_ct_CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2803 $as_echo "$ac_ct_CC" >&6; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2810 test -n "$ac_ct_CC" && break
2811 done
2813 if test "x$ac_ct_CC" = x; then
2814 CC=""
2815 else
2816 case $cross_compiling:$ac_tool_warned in
2817 yes:)
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2820 ac_tool_warned=yes ;;
2821 esac
2822 CC=$ac_ct_CC
2829 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831 as_fn_error $? "no acceptable C compiler found in \$PATH
2832 See \`config.log' for more details" "$LINENO" 5; }
2834 # Provide some information about the compiler.
2835 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2836 set X $ac_compile
2837 ac_compiler=$2
2838 for ac_option in --version -v -V -qversion; do
2839 { { ac_try="$ac_compiler $ac_option >&5"
2840 case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843 esac
2844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2845 $as_echo "$ac_try_echo"; } >&5
2846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2847 ac_status=$?
2848 if test -s conftest.err; then
2849 sed '10a\
2850 ... rest of stderr output deleted ...
2851 10q' conftest.err >conftest.er1
2852 cat conftest.er1 >&5
2854 rm -f conftest.er1 conftest.err
2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; }
2857 done
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2863 main ()
2867 return 0;
2869 _ACEOF
2870 ac_clean_files_save=$ac_clean_files
2871 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2872 # Try to create an executable without -o first, disregard a.out.
2873 # It will help us diagnose broken compilers, and finding out an intuition
2874 # of exeext.
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2876 $as_echo_n "checking whether the C compiler works... " >&6; }
2877 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2879 # The possible output files:
2880 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2882 ac_rmfiles=
2883 for ac_file in $ac_files
2885 case $ac_file in
2886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2887 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2888 esac
2889 done
2890 rm -f $ac_rmfiles
2892 if { { ac_try="$ac_link_default"
2893 case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896 esac
2897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2898 $as_echo "$ac_try_echo"; } >&5
2899 (eval "$ac_link_default") 2>&5
2900 ac_status=$?
2901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902 test $ac_status = 0; }; then :
2903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2904 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2905 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2906 # so that the user can short-circuit this test for compilers unknown to
2907 # Autoconf.
2908 for ac_file in $ac_files ''
2910 test -f "$ac_file" || continue
2911 case $ac_file in
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2914 [ab].out )
2915 # We found the default executable, but exeext='' is most
2916 # certainly right.
2917 break;;
2918 *.* )
2919 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2920 then :; else
2921 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923 # We set ac_cv_exeext here because the later test for it is not
2924 # safe: cross compilers may not add the suffix if given an `-o'
2925 # argument, so we may need to know it at that point already.
2926 # Even if this section looks crufty: it has the advantage of
2927 # actually working.
2928 break;;
2930 break;;
2931 esac
2932 done
2933 test "$ac_cv_exeext" = no && ac_cv_exeext=
2935 else
2936 ac_file=''
2938 if test -z "$ac_file"; then :
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 $as_echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946 as_fn_error 77 "C compiler cannot create executables
2947 See \`config.log' for more details" "$LINENO" 5; }
2948 else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2950 $as_echo "yes" >&6; }
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2953 $as_echo_n "checking for C compiler default output file name... " >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2955 $as_echo "$ac_file" >&6; }
2956 ac_exeext=$ac_cv_exeext
2958 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2959 ac_clean_files=$ac_clean_files_save
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2961 $as_echo_n "checking for suffix of executables... " >&6; }
2962 if { { ac_try="$ac_link"
2963 case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966 esac
2967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968 $as_echo "$ac_try_echo"; } >&5
2969 (eval "$ac_link") 2>&5
2970 ac_status=$?
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }; then :
2973 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2974 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2975 # work properly (i.e., refer to `conftest.exe'), while it won't with
2976 # `rm'.
2977 for ac_file in conftest.exe conftest conftest.*; do
2978 test -f "$ac_file" || continue
2979 case $ac_file in
2980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2981 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982 break;;
2983 * ) break;;
2984 esac
2985 done
2986 else
2987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2990 See \`config.log' for more details" "$LINENO" 5; }
2992 rm -f conftest conftest$ac_cv_exeext
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2994 $as_echo "$ac_cv_exeext" >&6; }
2996 rm -f conftest.$ac_ext
2997 EXEEXT=$ac_cv_exeext
2998 ac_exeext=$EXEEXT
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h. */
3001 #include <stdio.h>
3003 main ()
3005 FILE *f = fopen ("conftest.out", "w");
3006 return ferror (f) || fclose (f) != 0;
3009 return 0;
3011 _ACEOF
3012 ac_clean_files="$ac_clean_files conftest.out"
3013 # Check that the compiler produces executables we can run. If not, either
3014 # the compiler is broken, or we cross compile.
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3016 $as_echo_n "checking whether we are cross compiling... " >&6; }
3017 if test "$cross_compiling" != yes; then
3018 { { ac_try="$ac_link"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_link") 2>&5
3026 ac_status=$?
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }
3029 if { ac_try='./conftest$ac_cv_exeext'
3030 { { case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035 $as_echo "$ac_try_echo"; } >&5
3036 (eval "$ac_try") 2>&5
3037 ac_status=$?
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }; }; then
3040 cross_compiling=no
3041 else
3042 if test "$cross_compiling" = maybe; then
3043 cross_compiling=yes
3044 else
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 as_fn_error $? "cannot run C compiled programs.
3048 If you meant to cross compile, use \`--host'.
3049 See \`config.log' for more details" "$LINENO" 5; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3054 $as_echo "$cross_compiling" >&6; }
3056 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3057 ac_clean_files=$ac_clean_files_save
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3059 $as_echo_n "checking for suffix of object files... " >&6; }
3060 if ${ac_cv_objext+:} false; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h. */
3067 main ()
3071 return 0;
3073 _ACEOF
3074 rm -f conftest.o conftest.obj
3075 if { { ac_try="$ac_compile"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081 $as_echo "$ac_try_echo"; } >&5
3082 (eval "$ac_compile") 2>&5
3083 ac_status=$?
3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }; then :
3086 for ac_file in conftest.o conftest.obj conftest.*; do
3087 test -f "$ac_file" || continue;
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3091 break;;
3092 esac
3093 done
3094 else
3095 $as_echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100 as_fn_error $? "cannot compute suffix of object files: cannot compile
3101 See \`config.log' for more details" "$LINENO" 5; }
3103 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3106 $as_echo "$ac_cv_objext" >&6; }
3107 OBJEXT=$ac_cv_objext
3108 ac_objext=$OBJEXT
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3110 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3111 if ${ac_cv_c_compiler_gnu+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h. */
3118 main ()
3120 #ifndef __GNUC__
3121 choke me
3122 #endif
3125 return 0;
3127 _ACEOF
3128 if ac_fn_c_try_compile "$LINENO"; then :
3129 ac_compiler_gnu=yes
3130 else
3131 ac_compiler_gnu=no
3133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3138 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3139 if test $ac_compiler_gnu = yes; then
3140 GCC=yes
3141 else
3142 GCC=
3144 ac_test_CFLAGS=${CFLAGS+set}
3145 ac_save_CFLAGS=$CFLAGS
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3147 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3148 if ${ac_cv_prog_cc_g+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 ac_save_c_werror_flag=$ac_c_werror_flag
3152 ac_c_werror_flag=yes
3153 ac_cv_prog_cc_g=no
3154 CFLAGS="-g"
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3159 main ()
3163 return 0;
3165 _ACEOF
3166 if ac_fn_c_try_compile "$LINENO"; then :
3167 ac_cv_prog_cc_g=yes
3168 else
3169 CFLAGS=""
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 :
3183 else
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3185 CFLAGS="-g"
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3190 main ()
3194 return 0;
3196 _ACEOF
3197 if ac_fn_c_try_compile "$LINENO"; then :
3198 ac_cv_prog_cc_g=yes
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 ac_c_werror_flag=$ac_save_c_werror_flag
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3208 $as_echo "$ac_cv_prog_cc_g" >&6; }
3209 if test "$ac_test_CFLAGS" = set; then
3210 CFLAGS=$ac_save_CFLAGS
3211 elif test $ac_cv_prog_cc_g = yes; then
3212 if test "$GCC" = yes; then
3213 CFLAGS="-g -O2"
3214 else
3215 CFLAGS="-g"
3217 else
3218 if test "$GCC" = yes; then
3219 CFLAGS="-O2"
3220 else
3221 CFLAGS=
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3225 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3226 if ${ac_cv_prog_cc_c89+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 ac_cv_prog_cc_c89=no
3230 ac_save_CC=$CC
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3233 #include <stdarg.h>
3234 #include <stdio.h>
3235 #include <sys/types.h>
3236 #include <sys/stat.h>
3237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3238 struct buf { int x; };
3239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3240 static char *e (p, i)
3241 char **p;
3242 int i;
3244 return p[i];
3246 static char *f (char * (*g) (char **, int), char **p, ...)
3248 char *s;
3249 va_list v;
3250 va_start (v,p);
3251 s = g (p, va_arg (v,int));
3252 va_end (v);
3253 return s;
3256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3257 function prototypes and stuff, but not '\xHH' hex character constants.
3258 These don't provoke an error unfortunately, instead are silently treated
3259 as 'x'. The following induces an error, until -std is added to get
3260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3261 array size at least. It's necessary to write '\x00'==0 to get something
3262 that's true only with -std. */
3263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3266 inside strings and character constants. */
3267 #define FOO(x) 'x'
3268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270 int test (int i, double x);
3271 struct s1 {int (*f) (int a);};
3272 struct s2 {int (*f) (double a);};
3273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274 int argc;
3275 char **argv;
3277 main ()
3279 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3281 return 0;
3283 _ACEOF
3284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287 CC="$ac_save_CC $ac_arg"
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289 ac_cv_prog_cc_c89=$ac_arg
3291 rm -f core conftest.err conftest.$ac_objext
3292 test "x$ac_cv_prog_cc_c89" != "xno" && break
3293 done
3294 rm -f conftest.$ac_ext
3295 CC=$ac_save_CC
3298 # AC_CACHE_VAL
3299 case "x$ac_cv_prog_cc_c89" in
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3302 $as_echo "none needed" >&6; } ;;
3303 xno)
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3305 $as_echo "unsupported" >&6; } ;;
3307 CC="$CC $ac_cv_prog_cc_c89"
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3309 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3310 esac
3311 if test "x$ac_cv_prog_cc_c89" != xno; then :
3315 ac_ext=c
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3322 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3323 if ${ac_cv_path_SED+:} false; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3327 for ac_i in 1 2 3 4 5 6 7; do
3328 ac_script="$ac_script$as_nl$ac_script"
3329 done
3330 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3331 { ac_script=; unset ac_script;}
3332 if test -z "$SED"; then
3333 ac_path_SED_found=false
3334 # Loop through the user's path and test for each of PROGNAME-LIST
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_prog in sed gsed; do
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3343 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3344 # Check for GNU ac_path_SED and select it if it is found.
3345 # Check for GNU $ac_path_SED
3346 case `"$ac_path_SED" --version 2>&1` in
3347 *GNU*)
3348 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3350 ac_count=0
3351 $as_echo_n 0123456789 >"conftest.in"
3352 while :
3354 cat "conftest.in" "conftest.in" >"conftest.tmp"
3355 mv "conftest.tmp" "conftest.in"
3356 cp "conftest.in" "conftest.nl"
3357 $as_echo '' >> "conftest.nl"
3358 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3359 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3360 as_fn_arith $ac_count + 1 && ac_count=$as_val
3361 if test $ac_count -gt ${ac_path_SED_max-0}; then
3362 # Best one so far, save it but keep looking for a better one
3363 ac_cv_path_SED="$ac_path_SED"
3364 ac_path_SED_max=$ac_count
3366 # 10*(2^10) chars as input seems more than enough
3367 test $ac_count -gt 10 && break
3368 done
3369 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3370 esac
3372 $ac_path_SED_found && break 3
3373 done
3374 done
3375 done
3376 IFS=$as_save_IFS
3377 if test -z "$ac_cv_path_SED"; then
3378 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3380 else
3381 ac_cv_path_SED=$SED
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3386 $as_echo "$ac_cv_path_SED" >&6; }
3387 SED="$ac_cv_path_SED"
3388 rm -f conftest.sed
3390 test -z "$SED" && SED=sed
3391 Xsed="$SED -e 1s/^X//"
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3404 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3405 if ${ac_cv_path_GREP+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 if test -z "$GREP"; then
3409 ac_path_GREP_found=false
3410 # Loop through the user's path and test for each of PROGNAME-LIST
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_prog in grep ggrep; do
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3419 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3420 # Check for GNU ac_path_GREP and select it if it is found.
3421 # Check for GNU $ac_path_GREP
3422 case `"$ac_path_GREP" --version 2>&1` in
3423 *GNU*)
3424 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3426 ac_count=0
3427 $as_echo_n 0123456789 >"conftest.in"
3428 while :
3430 cat "conftest.in" "conftest.in" >"conftest.tmp"
3431 mv "conftest.tmp" "conftest.in"
3432 cp "conftest.in" "conftest.nl"
3433 $as_echo 'GREP' >> "conftest.nl"
3434 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3436 as_fn_arith $ac_count + 1 && ac_count=$as_val
3437 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3438 # Best one so far, save it but keep looking for a better one
3439 ac_cv_path_GREP="$ac_path_GREP"
3440 ac_path_GREP_max=$ac_count
3442 # 10*(2^10) chars as input seems more than enough
3443 test $ac_count -gt 10 && break
3444 done
3445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3446 esac
3448 $ac_path_GREP_found && break 3
3449 done
3450 done
3451 done
3452 IFS=$as_save_IFS
3453 if test -z "$ac_cv_path_GREP"; then
3454 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3456 else
3457 ac_cv_path_GREP=$GREP
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3462 $as_echo "$ac_cv_path_GREP" >&6; }
3463 GREP="$ac_cv_path_GREP"
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3467 $as_echo_n "checking for egrep... " >&6; }
3468 if ${ac_cv_path_EGREP+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3472 then ac_cv_path_EGREP="$GREP -E"
3473 else
3474 if test -z "$EGREP"; then
3475 ac_path_EGREP_found=false
3476 # Loop through the user's path and test for each of PROGNAME-LIST
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_prog in egrep; do
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3485 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3486 # Check for GNU ac_path_EGREP and select it if it is found.
3487 # Check for GNU $ac_path_EGREP
3488 case `"$ac_path_EGREP" --version 2>&1` in
3489 *GNU*)
3490 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3492 ac_count=0
3493 $as_echo_n 0123456789 >"conftest.in"
3494 while :
3496 cat "conftest.in" "conftest.in" >"conftest.tmp"
3497 mv "conftest.tmp" "conftest.in"
3498 cp "conftest.in" "conftest.nl"
3499 $as_echo 'EGREP' >> "conftest.nl"
3500 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3502 as_fn_arith $ac_count + 1 && ac_count=$as_val
3503 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3504 # Best one so far, save it but keep looking for a better one
3505 ac_cv_path_EGREP="$ac_path_EGREP"
3506 ac_path_EGREP_max=$ac_count
3508 # 10*(2^10) chars as input seems more than enough
3509 test $ac_count -gt 10 && break
3510 done
3511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3512 esac
3514 $ac_path_EGREP_found && break 3
3515 done
3516 done
3517 done
3518 IFS=$as_save_IFS
3519 if test -z "$ac_cv_path_EGREP"; then
3520 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3522 else
3523 ac_cv_path_EGREP=$EGREP
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3529 $as_echo "$ac_cv_path_EGREP" >&6; }
3530 EGREP="$ac_cv_path_EGREP"
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3534 $as_echo_n "checking for fgrep... " >&6; }
3535 if ${ac_cv_path_FGREP+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3539 then ac_cv_path_FGREP="$GREP -F"
3540 else
3541 if test -z "$FGREP"; then
3542 ac_path_FGREP_found=false
3543 # Loop through the user's path and test for each of PROGNAME-LIST
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_prog in fgrep; do
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3552 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3553 # Check for GNU ac_path_FGREP and select it if it is found.
3554 # Check for GNU $ac_path_FGREP
3555 case `"$ac_path_FGREP" --version 2>&1` in
3556 *GNU*)
3557 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3559 ac_count=0
3560 $as_echo_n 0123456789 >"conftest.in"
3561 while :
3563 cat "conftest.in" "conftest.in" >"conftest.tmp"
3564 mv "conftest.tmp" "conftest.in"
3565 cp "conftest.in" "conftest.nl"
3566 $as_echo 'FGREP' >> "conftest.nl"
3567 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3569 as_fn_arith $ac_count + 1 && ac_count=$as_val
3570 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3571 # Best one so far, save it but keep looking for a better one
3572 ac_cv_path_FGREP="$ac_path_FGREP"
3573 ac_path_FGREP_max=$ac_count
3575 # 10*(2^10) chars as input seems more than enough
3576 test $ac_count -gt 10 && break
3577 done
3578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3579 esac
3581 $ac_path_FGREP_found && break 3
3582 done
3583 done
3584 done
3585 IFS=$as_save_IFS
3586 if test -z "$ac_cv_path_FGREP"; then
3587 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3589 else
3590 ac_cv_path_FGREP=$FGREP
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3596 $as_echo "$ac_cv_path_FGREP" >&6; }
3597 FGREP="$ac_cv_path_FGREP"
3600 test -z "$GREP" && GREP=grep
3620 # Check whether --with-gnu-ld was given.
3621 if test "${with_gnu_ld+set}" = set; then :
3622 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3623 else
3624 with_gnu_ld=no
3627 ac_prog=ld
3628 if test "$GCC" = yes; then
3629 # Check if gcc -print-prog-name=ld gives a path.
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3631 $as_echo_n "checking for ld used by $CC... " >&6; }
3632 case $host in
3633 *-*-mingw*)
3634 # gcc leaves a trailing carriage return which upsets mingw
3635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3638 esac
3639 case $ac_prog in
3640 # Accept absolute paths.
3641 [\\/]* | ?:[\\/]*)
3642 re_direlt='/[^/][^/]*/\.\./'
3643 # Canonicalize the pathname of ld
3644 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3645 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3646 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3647 done
3648 test -z "$LD" && LD="$ac_prog"
3651 # If it fails, then pretend we aren't using GCC.
3652 ac_prog=ld
3655 # If it is relative, then search for the first ld in PATH.
3656 with_gnu_ld=unknown
3658 esac
3659 elif test "$with_gnu_ld" = yes; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3661 $as_echo_n "checking for GNU ld... " >&6; }
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3664 $as_echo_n "checking for non-GNU ld... " >&6; }
3666 if ${lt_cv_path_LD+:} false; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 if test -z "$LD"; then
3670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3671 for ac_dir in $PATH; do
3672 IFS="$lt_save_ifs"
3673 test -z "$ac_dir" && ac_dir=.
3674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3675 lt_cv_path_LD="$ac_dir/$ac_prog"
3676 # Check to see if the program is GNU ld. I'd rather use --version,
3677 # but apparently some variants of GNU ld only accept -v.
3678 # Break only if it was the GNU/non-GNU ld that we prefer.
3679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3680 *GNU* | *'with BFD'*)
3681 test "$with_gnu_ld" != no && break
3684 test "$with_gnu_ld" != yes && break
3686 esac
3688 done
3689 IFS="$lt_save_ifs"
3690 else
3691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3695 LD="$lt_cv_path_LD"
3696 if test -n "$LD"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3698 $as_echo "$LD" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3703 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3705 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3706 if ${lt_cv_prog_gnu_ld+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3710 case `$LD -v 2>&1 </dev/null` in
3711 *GNU* | *'with BFD'*)
3712 lt_cv_prog_gnu_ld=yes
3715 lt_cv_prog_gnu_ld=no
3717 esac
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3720 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3721 with_gnu_ld=$lt_cv_prog_gnu_ld
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3732 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3733 if ${lt_cv_path_NM+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 if test -n "$NM"; then
3737 # Let the user override the test.
3738 lt_cv_path_NM="$NM"
3739 else
3740 lt_nm_to_check="${ac_tool_prefix}nm"
3741 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3742 lt_nm_to_check="$lt_nm_to_check nm"
3744 for lt_tmp_nm in $lt_nm_to_check; do
3745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3746 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3747 IFS="$lt_save_ifs"
3748 test -z "$ac_dir" && ac_dir=.
3749 tmp_nm="$ac_dir/$lt_tmp_nm"
3750 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3751 # Check to see if the nm accepts a BSD-compat flag.
3752 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3753 # nm: unknown option "B" ignored
3754 # Tru64's nm complains that /dev/null is an invalid object file
3755 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3756 */dev/null* | *'Invalid file or object type'*)
3757 lt_cv_path_NM="$tmp_nm -B"
3758 break
3761 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3762 */dev/null*)
3763 lt_cv_path_NM="$tmp_nm -p"
3764 break
3767 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3768 continue # so that we can try to find one that supports BSD flags
3770 esac
3772 esac
3774 done
3775 IFS="$lt_save_ifs"
3776 done
3777 : ${lt_cv_path_NM=no}
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3781 $as_echo "$lt_cv_path_NM" >&6; }
3782 if test "$lt_cv_path_NM" != "no"; then
3783 NM="$lt_cv_path_NM"
3784 else
3785 # Didn't find any BSD compatible name lister, look for dumpbin.
3786 if test -n "$ac_tool_prefix"; then
3787 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_DUMPBIN+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -n "$DUMPBIN"; then
3797 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3810 done
3811 done
3812 IFS=$as_save_IFS
3816 DUMPBIN=$ac_cv_prog_DUMPBIN
3817 if test -n "$DUMPBIN"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3819 $as_echo "$DUMPBIN" >&6; }
3820 else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3826 test -n "$DUMPBIN" && break
3827 done
3829 if test -z "$DUMPBIN"; then
3830 ac_ct_DUMPBIN=$DUMPBIN
3831 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3833 # Extract the first word of "$ac_prog", so it can be a program name with args.
3834 set dummy $ac_prog; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$ac_ct_DUMPBIN"; then
3841 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3854 done
3855 done
3856 IFS=$as_save_IFS
3860 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3861 if test -n "$ac_ct_DUMPBIN"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3863 $as_echo "$ac_ct_DUMPBIN" >&6; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3870 test -n "$ac_ct_DUMPBIN" && break
3871 done
3873 if test "x$ac_ct_DUMPBIN" = x; then
3874 DUMPBIN=":"
3875 else
3876 case $cross_compiling:$ac_tool_warned in
3877 yes:)
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3880 ac_tool_warned=yes ;;
3881 esac
3882 DUMPBIN=$ac_ct_DUMPBIN
3887 if test "$DUMPBIN" != ":"; then
3888 NM="$DUMPBIN"
3891 test -z "$NM" && NM=nm
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3899 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3900 if ${lt_cv_nm_interface+:} false; then :
3901 $as_echo_n "(cached) " >&6
3902 else
3903 lt_cv_nm_interface="BSD nm"
3904 echo "int some_variable = 0;" > conftest.$ac_ext
3905 (eval echo "\"\$as_me:3905: $ac_compile\"" >&5)
3906 (eval "$ac_compile" 2>conftest.err)
3907 cat conftest.err >&5
3908 (eval echo "\"\$as_me:3908: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3909 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3910 cat conftest.err >&5
3911 (eval echo "\"\$as_me:3911: output\"" >&5)
3912 cat conftest.out >&5
3913 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3914 lt_cv_nm_interface="MS dumpbin"
3916 rm -f conftest*
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3919 $as_echo "$lt_cv_nm_interface" >&6; }
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3922 $as_echo_n "checking whether ln -s works... " >&6; }
3923 LN_S=$as_ln_s
3924 if test "$LN_S" = "ln -s"; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3926 $as_echo "yes" >&6; }
3927 else
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3929 $as_echo "no, using $LN_S" >&6; }
3932 # find the maximum length of command line arguments
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3934 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3935 if ${lt_cv_sys_max_cmd_len+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3939 teststring="ABCD"
3941 case $build_os in
3942 msdosdjgpp*)
3943 # On DJGPP, this test can blow up pretty badly due to problems in libc
3944 # (any single argument exceeding 2000 bytes causes a buffer overrun
3945 # during glob expansion). Even if it were fixed, the result of this
3946 # check would be larger than it should be.
3947 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3950 gnu*)
3951 # Under GNU Hurd, this test is not required because there is
3952 # no limit to the length of command line arguments.
3953 # Libtool will interpret -1 as no limit whatsoever
3954 lt_cv_sys_max_cmd_len=-1;
3957 cygwin* | mingw* | cegcc*)
3958 # On Win9x/ME, this test blows up -- it succeeds, but takes
3959 # about 5 minutes as the teststring grows exponentially.
3960 # Worse, since 9x/ME are not pre-emptively multitasking,
3961 # you end up with a "frozen" computer, even though with patience
3962 # the test eventually succeeds (with a max line length of 256k).
3963 # Instead, let's just punt: use the minimum linelength reported by
3964 # all of the supported platforms: 8192 (on NT/2K/XP).
3965 lt_cv_sys_max_cmd_len=8192;
3968 amigaos*)
3969 # On AmigaOS with pdksh, this test takes hours, literally.
3970 # So we just punt and use a minimum line length of 8192.
3971 lt_cv_sys_max_cmd_len=8192;
3974 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3975 # This has been around since 386BSD, at least. Likely further.
3976 if test -x /sbin/sysctl; then
3977 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3978 elif test -x /usr/sbin/sysctl; then
3979 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3980 else
3981 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3983 # And add a safety zone
3984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3988 interix*)
3989 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3990 lt_cv_sys_max_cmd_len=196608
3993 osf*)
3994 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3995 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3996 # nice to cause kernel panics so lets avoid the loop below.
3997 # First set a reasonable default.
3998 lt_cv_sys_max_cmd_len=16384
4000 if test -x /sbin/sysconfig; then
4001 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4002 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4003 esac
4006 sco3.2v5*)
4007 lt_cv_sys_max_cmd_len=102400
4009 sysv5* | sco5v6* | sysv4.2uw2*)
4010 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4011 if test -n "$kargmax"; then
4012 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4013 else
4014 lt_cv_sys_max_cmd_len=32768
4018 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4019 if test -n "$lt_cv_sys_max_cmd_len"; then
4020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4022 else
4023 # Make teststring a little bigger before we do anything with it.
4024 # a 1K string should be a reasonable start.
4025 for i in 1 2 3 4 5 6 7 8 ; do
4026 teststring=$teststring$teststring
4027 done
4028 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4029 # If test is not a shell built-in, we'll probably end up computing a
4030 # maximum length that is only half of the actual maximum length, but
4031 # we can't tell.
4032 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4033 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4034 test $i != 17 # 1/2 MB should be enough
4036 i=`expr $i + 1`
4037 teststring=$teststring$teststring
4038 done
4039 # Only check the string length outside the loop.
4040 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4041 teststring=
4042 # Add a significant safety factor because C++ compilers can tack on
4043 # massive amounts of additional arguments before passing them to the
4044 # linker. It appears as though 1/2 is a usable value.
4045 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4048 esac
4052 if test -n $lt_cv_sys_max_cmd_len ; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4054 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4057 $as_echo "none" >&6; }
4059 max_cmd_len=$lt_cv_sys_max_cmd_len
4066 : ${CP="cp -f"}
4067 : ${MV="mv -f"}
4068 : ${RM="rm -f"}
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4071 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4072 # Try some XSI features
4073 xsi_shell=no
4074 ( _lt_dummy="a/b/c"
4075 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4076 = c,a/b,, \
4077 && eval 'test $(( 1 + 1 )) -eq 2 \
4078 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4079 && xsi_shell=yes
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4081 $as_echo "$xsi_shell" >&6; }
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4085 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4086 lt_shell_append=no
4087 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4088 >/dev/null 2>&1 \
4089 && lt_shell_append=yes
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4091 $as_echo "$lt_shell_append" >&6; }
4094 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4095 lt_unset=unset
4096 else
4097 lt_unset=false
4104 # test EBCDIC or ASCII
4105 case `echo X|tr X '\101'` in
4106 A) # ASCII based system
4107 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4108 lt_SP2NL='tr \040 \012'
4109 lt_NL2SP='tr \015\012 \040\040'
4111 *) # EBCDIC based system
4112 lt_SP2NL='tr \100 \n'
4113 lt_NL2SP='tr \r\n \100\100'
4115 esac
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4126 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4127 if ${lt_cv_ld_reload_flag+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 lt_cv_ld_reload_flag='-r'
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4133 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4134 reload_flag=$lt_cv_ld_reload_flag
4135 case $reload_flag in
4136 "" | " "*) ;;
4137 *) reload_flag=" $reload_flag" ;;
4138 esac
4139 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4140 case $host_os in
4141 darwin*)
4142 if test "$GCC" = yes; then
4143 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4144 else
4145 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4148 esac
4158 if test -n "$ac_tool_prefix"; then
4159 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4160 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if ${ac_cv_prog_OBJDUMP+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 if test -n "$OBJDUMP"; then
4167 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4180 done
4181 done
4182 IFS=$as_save_IFS
4186 OBJDUMP=$ac_cv_prog_OBJDUMP
4187 if test -n "$OBJDUMP"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4189 $as_echo "$OBJDUMP" >&6; }
4190 else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4197 if test -z "$ac_cv_prog_OBJDUMP"; then
4198 ac_ct_OBJDUMP=$OBJDUMP
4199 # Extract the first word of "objdump", so it can be a program name with args.
4200 set dummy objdump; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$ac_ct_OBJDUMP"; then
4207 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4220 done
4221 done
4222 IFS=$as_save_IFS
4226 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4227 if test -n "$ac_ct_OBJDUMP"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4229 $as_echo "$ac_ct_OBJDUMP" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4235 if test "x$ac_ct_OBJDUMP" = x; then
4236 OBJDUMP="false"
4237 else
4238 case $cross_compiling:$ac_tool_warned in
4239 yes:)
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4242 ac_tool_warned=yes ;;
4243 esac
4244 OBJDUMP=$ac_ct_OBJDUMP
4246 else
4247 OBJDUMP="$ac_cv_prog_OBJDUMP"
4250 test -z "$OBJDUMP" && OBJDUMP=objdump
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4261 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4262 if ${lt_cv_deplibs_check_method+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 lt_cv_file_magic_cmd='$MAGIC_CMD'
4266 lt_cv_file_magic_test_file=
4267 lt_cv_deplibs_check_method='unknown'
4268 # Need to set the preceding variable on all platforms that support
4269 # interlibrary dependencies.
4270 # 'none' -- dependencies not supported.
4271 # `unknown' -- same as none, but documents that we really don't know.
4272 # 'pass_all' -- all dependencies passed with no checks.
4273 # 'test_compile' -- check by making test program.
4274 # 'file_magic [[regex]]' -- check by looking for files in library path
4275 # which responds to the $file_magic_cmd with a given extended regex.
4276 # If you have `file' or equivalent on your system and you're not sure
4277 # whether `pass_all' will *always* work, you probably want this one.
4279 case $host_os in
4280 aix[4-9]*)
4281 lt_cv_deplibs_check_method=pass_all
4284 beos*)
4285 lt_cv_deplibs_check_method=pass_all
4288 bsdi[45]*)
4289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4290 lt_cv_file_magic_cmd='/usr/bin/file -L'
4291 lt_cv_file_magic_test_file=/shlib/libc.so
4294 cygwin*)
4295 # func_win32_libid is a shell function defined in ltmain.sh
4296 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4297 lt_cv_file_magic_cmd='func_win32_libid'
4300 mingw* | pw32*)
4301 # Base MSYS/MinGW do not provide the 'file' command needed by
4302 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4303 # unless we find 'file', for example because we are cross-compiling.
4304 if ( file / ) >/dev/null 2>&1; then
4305 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4306 lt_cv_file_magic_cmd='func_win32_libid'
4307 else
4308 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4309 lt_cv_file_magic_cmd='$OBJDUMP -f'
4313 cegcc)
4314 # use the weaker test based on 'objdump'. See mingw*.
4315 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4316 lt_cv_file_magic_cmd='$OBJDUMP -f'
4319 darwin* | rhapsody*)
4320 lt_cv_deplibs_check_method=pass_all
4323 freebsd* | dragonfly*)
4324 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4325 case $host_cpu in
4326 i*86 )
4327 # Not sure whether the presence of OpenBSD here was a mistake.
4328 # Let's accept both of them until this is cleared up.
4329 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4330 lt_cv_file_magic_cmd=/usr/bin/file
4331 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4333 esac
4334 else
4335 lt_cv_deplibs_check_method=pass_all
4339 gnu*)
4340 lt_cv_deplibs_check_method=pass_all
4343 hpux10.20* | hpux11*)
4344 lt_cv_file_magic_cmd=/usr/bin/file
4345 case $host_cpu in
4346 ia64*)
4347 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4348 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4350 hppa*64*)
4351 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]'
4352 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4355 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4356 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4358 esac
4361 interix[3-9]*)
4362 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4366 irix5* | irix6* | nonstopux*)
4367 case $LD in
4368 *-32|*"-32 ") libmagic=32-bit;;
4369 *-n32|*"-n32 ") libmagic=N32;;
4370 *-64|*"-64 ") libmagic=64-bit;;
4371 *) libmagic=never-match;;
4372 esac
4373 lt_cv_deplibs_check_method=pass_all
4376 # This must be Linux ELF.
4377 linux* | k*bsd*-gnu)
4378 lt_cv_deplibs_check_method=pass_all
4381 netbsd*)
4382 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4384 else
4385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4389 newos6*)
4390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4391 lt_cv_file_magic_cmd=/usr/bin/file
4392 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4395 *nto* | *qnx*)
4396 lt_cv_deplibs_check_method=pass_all
4399 openbsd*)
4400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4402 else
4403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4407 osf3* | osf4* | osf5*)
4408 lt_cv_deplibs_check_method=pass_all
4411 rdos*)
4412 lt_cv_deplibs_check_method=pass_all
4415 solaris*)
4416 lt_cv_deplibs_check_method=pass_all
4419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4420 lt_cv_deplibs_check_method=pass_all
4423 sysv4 | sysv4.3*)
4424 case $host_vendor in
4425 motorola)
4426 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]'
4427 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4429 ncr)
4430 lt_cv_deplibs_check_method=pass_all
4432 sequent)
4433 lt_cv_file_magic_cmd='/bin/file'
4434 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4436 sni)
4437 lt_cv_file_magic_cmd='/bin/file'
4438 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4439 lt_cv_file_magic_test_file=/lib/libc.so
4441 siemens)
4442 lt_cv_deplibs_check_method=pass_all
4445 lt_cv_deplibs_check_method=pass_all
4447 esac
4450 tpf*)
4451 lt_cv_deplibs_check_method=pass_all
4453 esac
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4457 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4458 file_magic_cmd=$lt_cv_file_magic_cmd
4459 deplibs_check_method=$lt_cv_deplibs_check_method
4460 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4473 if test -n "$ac_tool_prefix"; then
4474 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4475 set dummy ${ac_tool_prefix}ar; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if ${ac_cv_prog_AR+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 if test -n "$AR"; then
4482 ac_cv_prog_AR="$AR" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 ac_cv_prog_AR="${ac_tool_prefix}ar"
4492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4495 done
4496 done
4497 IFS=$as_save_IFS
4501 AR=$ac_cv_prog_AR
4502 if test -n "$AR"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4504 $as_echo "$AR" >&6; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4512 if test -z "$ac_cv_prog_AR"; then
4513 ac_ct_AR=$AR
4514 # Extract the first word of "ar", so it can be a program name with args.
4515 set dummy ar; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -n "$ac_ct_AR"; then
4522 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_prog_ac_ct_AR="ar"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4535 done
4536 done
4537 IFS=$as_save_IFS
4541 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4542 if test -n "$ac_ct_AR"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4544 $as_echo "$ac_ct_AR" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4550 if test "x$ac_ct_AR" = x; then
4551 AR="false"
4552 else
4553 case $cross_compiling:$ac_tool_warned in
4554 yes:)
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4557 ac_tool_warned=yes ;;
4558 esac
4559 AR=$ac_ct_AR
4561 else
4562 AR="$ac_cv_prog_AR"
4565 test -z "$AR" && AR=ar
4566 test -z "$AR_FLAGS" && AR_FLAGS=cru
4578 if test -n "$ac_tool_prefix"; then
4579 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4580 set dummy ${ac_tool_prefix}strip; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_prog_STRIP+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 if test -n "$STRIP"; then
4587 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4600 done
4601 done
4602 IFS=$as_save_IFS
4606 STRIP=$ac_cv_prog_STRIP
4607 if test -n "$STRIP"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4609 $as_echo "$STRIP" >&6; }
4610 else
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4617 if test -z "$ac_cv_prog_STRIP"; then
4618 ac_ct_STRIP=$STRIP
4619 # Extract the first word of "strip", so it can be a program name with args.
4620 set dummy strip; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$ac_ct_STRIP"; then
4627 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_ac_ct_STRIP="strip"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4642 IFS=$as_save_IFS
4646 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4647 if test -n "$ac_ct_STRIP"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4649 $as_echo "$ac_ct_STRIP" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4655 if test "x$ac_ct_STRIP" = x; then
4656 STRIP=":"
4657 else
4658 case $cross_compiling:$ac_tool_warned in
4659 yes:)
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662 ac_tool_warned=yes ;;
4663 esac
4664 STRIP=$ac_ct_STRIP
4666 else
4667 STRIP="$ac_cv_prog_STRIP"
4670 test -z "$STRIP" && STRIP=:
4677 if test -n "$ac_tool_prefix"; then
4678 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if ${ac_cv_prog_RANLIB+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if test -n "$RANLIB"; then
4686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4687 else
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 break 2
4699 done
4700 done
4701 IFS=$as_save_IFS
4705 RANLIB=$ac_cv_prog_RANLIB
4706 if test -n "$RANLIB"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4708 $as_echo "$RANLIB" >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4716 if test -z "$ac_cv_prog_RANLIB"; then
4717 ac_ct_RANLIB=$RANLIB
4718 # Extract the first word of "ranlib", so it can be a program name with args.
4719 set dummy ranlib; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$ac_ct_RANLIB"; then
4726 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_ac_ct_RANLIB="ranlib"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4739 done
4740 done
4741 IFS=$as_save_IFS
4745 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4746 if test -n "$ac_ct_RANLIB"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4748 $as_echo "$ac_ct_RANLIB" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4754 if test "x$ac_ct_RANLIB" = x; then
4755 RANLIB=":"
4756 else
4757 case $cross_compiling:$ac_tool_warned in
4758 yes:)
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4761 ac_tool_warned=yes ;;
4762 esac
4763 RANLIB=$ac_ct_RANLIB
4765 else
4766 RANLIB="$ac_cv_prog_RANLIB"
4769 test -z "$RANLIB" && RANLIB=:
4776 # Determine commands to create old-style static archives.
4777 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4778 old_postinstall_cmds='chmod 644 $oldlib'
4779 old_postuninstall_cmds=
4781 if test -n "$RANLIB"; then
4782 case $host_os in
4783 openbsd*)
4784 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4787 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4789 esac
4790 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4826 # If no C compiler was specified, use CC.
4827 LTCC=${LTCC-"$CC"}
4829 # If no C compiler flags were specified, use CFLAGS.
4830 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4832 # Allow CC to be a program name with arguments.
4833 compiler=$CC
4836 # Check for command to grab the raw symbol name followed by C symbol from nm.
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4838 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4839 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4843 # These are sane defaults that work on at least a few old systems.
4844 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4846 # Character class describing NM global symbol codes.
4847 symcode='[BCDEGRST]'
4849 # Regexp to match symbols that can be accessed directly from C.
4850 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4852 # Define system-specific variables.
4853 case $host_os in
4854 aix*)
4855 symcode='[BCDT]'
4857 cygwin* | mingw* | pw32* | cegcc*)
4858 symcode='[ABCDGISTW]'
4860 hpux*)
4861 if test "$host_cpu" = ia64; then
4862 symcode='[ABCDEGRST]'
4865 irix* | nonstopux*)
4866 symcode='[BCDEGRST]'
4868 osf*)
4869 symcode='[BCDEGQRST]'
4871 solaris*)
4872 symcode='[BDRT]'
4874 sco3.2v5*)
4875 symcode='[DT]'
4877 sysv4.2uw2*)
4878 symcode='[DT]'
4880 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4881 symcode='[ABDT]'
4883 sysv4)
4884 symcode='[DFNSTU]'
4886 esac
4888 # If we're using GNU nm, then use its standard symbol codes.
4889 case `$NM -V 2>&1` in
4890 *GNU* | *'with BFD'*)
4891 symcode='[ABCDGIRSTW]' ;;
4892 esac
4894 # Transform an extracted symbol line into a proper C declaration.
4895 # Some systems (esp. on ia64) link data and code symbols differently,
4896 # so use this general approach.
4897 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4899 # Transform an extracted symbol line into symbol name and symbol address
4900 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4901 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'"
4903 # Handle CRLF in mingw tool chain
4904 opt_cr=
4905 case $build_os in
4906 mingw*)
4907 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4909 esac
4911 # Try without a prefix underscore, then with it.
4912 for ac_symprfx in "" "_"; do
4914 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4915 symxfrm="\\1 $ac_symprfx\\2 \\2"
4917 # Write the raw and C identifiers.
4918 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4919 # Fake it for dumpbin and say T for any non-static function
4920 # and D for any global variable.
4921 # Also find C++ and __fastcall symbols from MSVC++,
4922 # which start with @ or ?.
4923 lt_cv_sys_global_symbol_pipe="$AWK '"\
4924 " {last_section=section; section=\$ 3};"\
4925 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4926 " \$ 0!~/External *\|/{next};"\
4927 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4928 " {if(hide[section]) next};"\
4929 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4930 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4931 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4932 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4933 " ' prfx=^$ac_symprfx"
4934 else
4935 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4938 # Check to see that the pipe works correctly.
4939 pipe_works=no
4941 rm -f conftest*
4942 cat > conftest.$ac_ext <<_LT_EOF
4943 #ifdef __cplusplus
4944 extern "C" {
4945 #endif
4946 char nm_test_var;
4947 void nm_test_func(void);
4948 void nm_test_func(void){}
4949 #ifdef __cplusplus
4951 #endif
4952 int main(){nm_test_var='a';nm_test_func();return(0);}
4953 _LT_EOF
4955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4956 (eval $ac_compile) 2>&5
4957 ac_status=$?
4958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4959 test $ac_status = 0; }; then
4960 # Now try to grab the symbols.
4961 nlist=conftest.nm
4962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4963 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4964 ac_status=$?
4965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4966 test $ac_status = 0; } && test -s "$nlist"; then
4967 # Try sorting and uniquifying the output.
4968 if sort "$nlist" | uniq > "$nlist"T; then
4969 mv -f "$nlist"T "$nlist"
4970 else
4971 rm -f "$nlist"T
4974 # Make sure that we snagged all the symbols we need.
4975 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4976 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4977 cat <<_LT_EOF > conftest.$ac_ext
4978 #ifdef __cplusplus
4979 extern "C" {
4980 #endif
4982 _LT_EOF
4983 # Now generate the symbol file.
4984 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4986 cat <<_LT_EOF >> conftest.$ac_ext
4988 /* The mapping between symbol names and symbols. */
4989 const struct {
4990 const char *name;
4991 void *address;
4993 lt__PROGRAM__LTX_preloaded_symbols[] =
4995 { "@PROGRAM@", (void *) 0 },
4996 _LT_EOF
4997 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4998 cat <<\_LT_EOF >> conftest.$ac_ext
4999 {0, (void *) 0}
5002 /* This works around a problem in FreeBSD linker */
5003 #ifdef FREEBSD_WORKAROUND
5004 static const void *lt_preloaded_setup() {
5005 return lt__PROGRAM__LTX_preloaded_symbols;
5007 #endif
5009 #ifdef __cplusplus
5011 #endif
5012 _LT_EOF
5013 # Now try linking the two files.
5014 mv conftest.$ac_objext conftstm.$ac_objext
5015 lt_save_LIBS="$LIBS"
5016 lt_save_CFLAGS="$CFLAGS"
5017 LIBS="conftstm.$ac_objext"
5018 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5020 (eval $ac_link) 2>&5
5021 ac_status=$?
5022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5023 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5024 pipe_works=yes
5026 LIBS="$lt_save_LIBS"
5027 CFLAGS="$lt_save_CFLAGS"
5028 else
5029 echo "cannot find nm_test_func in $nlist" >&5
5031 else
5032 echo "cannot find nm_test_var in $nlist" >&5
5034 else
5035 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5037 else
5038 echo "$progname: failed program was:" >&5
5039 cat conftest.$ac_ext >&5
5041 rm -rf conftest* conftst*
5043 # Do not use the global_symbol_pipe unless it works.
5044 if test "$pipe_works" = yes; then
5045 break
5046 else
5047 lt_cv_sys_global_symbol_pipe=
5049 done
5053 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5054 lt_cv_sys_global_symbol_to_cdecl=
5056 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5058 $as_echo "failed" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5061 $as_echo "ok" >&6; }
5086 # Check whether --enable-libtool-lock was given.
5087 if test "${enable_libtool_lock+set}" = set; then :
5088 enableval=$enable_libtool_lock;
5091 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5093 # Some flags need to be propagated to the compiler or linker for good
5094 # libtool support.
5095 case $host in
5096 ia64-*-hpux*)
5097 # Find out which ABI we are using.
5098 echo 'int i;' > conftest.$ac_ext
5099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5100 (eval $ac_compile) 2>&5
5101 ac_status=$?
5102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5103 test $ac_status = 0; }; then
5104 case `/usr/bin/file conftest.$ac_objext` in
5105 *ELF-32*)
5106 HPUX_IA64_MODE="32"
5108 *ELF-64*)
5109 HPUX_IA64_MODE="64"
5111 esac
5113 rm -rf conftest*
5115 *-*-irix6*)
5116 # Find out which ABI we are using.
5117 echo '#line 5117 "configure"' > conftest.$ac_ext
5118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5119 (eval $ac_compile) 2>&5
5120 ac_status=$?
5121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122 test $ac_status = 0; }; then
5123 if test "$lt_cv_prog_gnu_ld" = yes; then
5124 case `/usr/bin/file conftest.$ac_objext` in
5125 *32-bit*)
5126 LD="${LD-ld} -melf32bsmip"
5128 *N32*)
5129 LD="${LD-ld} -melf32bmipn32"
5131 *64-bit*)
5132 LD="${LD-ld} -melf64bmip"
5134 esac
5135 else
5136 case `/usr/bin/file conftest.$ac_objext` in
5137 *32-bit*)
5138 LD="${LD-ld} -32"
5140 *N32*)
5141 LD="${LD-ld} -n32"
5143 *64-bit*)
5144 LD="${LD-ld} -64"
5146 esac
5149 rm -rf conftest*
5152 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5153 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5154 # Find out which ABI we are using.
5155 echo 'int i;' > conftest.$ac_ext
5156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5157 (eval $ac_compile) 2>&5
5158 ac_status=$?
5159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5160 test $ac_status = 0; }; then
5161 case `/usr/bin/file conftest.o` in
5162 *32-bit*)
5163 case $host in
5164 x86_64-*kfreebsd*-gnu)
5165 LD="${LD-ld} -m elf_i386_fbsd"
5167 x86_64-*linux*)
5168 LD="${LD-ld} -m elf_i386"
5170 ppc64-*linux*|powerpc64-*linux*)
5171 LD="${LD-ld} -m elf32ppclinux"
5173 s390x-*linux*)
5174 LD="${LD-ld} -m elf_s390"
5176 sparc64-*linux*)
5177 LD="${LD-ld} -m elf32_sparc"
5179 esac
5181 *64-bit*)
5182 case $host in
5183 x86_64-*kfreebsd*-gnu)
5184 LD="${LD-ld} -m elf_x86_64_fbsd"
5186 x86_64-*linux*)
5187 LD="${LD-ld} -m elf_x86_64"
5189 ppc*-*linux*|powerpc*-*linux*)
5190 LD="${LD-ld} -m elf64ppc"
5192 s390*-*linux*|s390*-*tpf*)
5193 LD="${LD-ld} -m elf64_s390"
5195 sparc*-*linux*)
5196 LD="${LD-ld} -m elf64_sparc"
5198 esac
5200 esac
5202 rm -rf conftest*
5205 *-*-sco3.2v5*)
5206 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5207 SAVE_CFLAGS="$CFLAGS"
5208 CFLAGS="$CFLAGS -belf"
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5210 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5211 if ${lt_cv_cc_needs_belf+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 ac_ext=c
5215 ac_cpp='$CPP $CPPFLAGS'
5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5224 main ()
5228 return 0;
5230 _ACEOF
5231 if ac_fn_c_try_link "$LINENO"; then :
5232 lt_cv_cc_needs_belf=yes
5233 else
5234 lt_cv_cc_needs_belf=no
5236 rm -f core conftest.err conftest.$ac_objext \
5237 conftest$ac_exeext conftest.$ac_ext
5238 ac_ext=c
5239 ac_cpp='$CPP $CPPFLAGS'
5240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5246 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5247 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5248 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5249 CFLAGS="$SAVE_CFLAGS"
5252 sparc*-*solaris*)
5253 # Find out which ABI we are using.
5254 echo 'int i;' > conftest.$ac_ext
5255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5256 (eval $ac_compile) 2>&5
5257 ac_status=$?
5258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259 test $ac_status = 0; }; then
5260 case `/usr/bin/file conftest.o` in
5261 *64-bit*)
5262 case $lt_cv_prog_gnu_ld in
5263 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5265 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5266 LD="${LD-ld} -64"
5269 esac
5271 esac
5273 rm -rf conftest*
5275 esac
5277 need_locks="$enable_libtool_lock"
5280 case $host_os in
5281 rhapsody* | darwin*)
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$DSYMUTIL"; then
5291 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5306 IFS=$as_save_IFS
5310 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5311 if test -n "$DSYMUTIL"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5313 $as_echo "$DSYMUTIL" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5321 if test -z "$ac_cv_prog_DSYMUTIL"; then
5322 ac_ct_DSYMUTIL=$DSYMUTIL
5323 # Extract the first word of "dsymutil", so it can be a program name with args.
5324 set dummy dsymutil; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$ac_ct_DSYMUTIL"; then
5331 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5344 done
5345 done
5346 IFS=$as_save_IFS
5350 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5351 if test -n "$ac_ct_DSYMUTIL"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5353 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5359 if test "x$ac_ct_DSYMUTIL" = x; then
5360 DSYMUTIL=":"
5361 else
5362 case $cross_compiling:$ac_tool_warned in
5363 yes:)
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368 DSYMUTIL=$ac_ct_DSYMUTIL
5370 else
5371 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5374 if test -n "$ac_tool_prefix"; then
5375 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5376 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_NMEDIT+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 if test -n "$NMEDIT"; then
5383 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5396 done
5397 done
5398 IFS=$as_save_IFS
5402 NMEDIT=$ac_cv_prog_NMEDIT
5403 if test -n "$NMEDIT"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5405 $as_echo "$NMEDIT" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5413 if test -z "$ac_cv_prog_NMEDIT"; then
5414 ac_ct_NMEDIT=$NMEDIT
5415 # Extract the first word of "nmedit", so it can be a program name with args.
5416 set dummy nmedit; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 if test -n "$ac_ct_NMEDIT"; then
5423 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5432 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5438 IFS=$as_save_IFS
5442 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5443 if test -n "$ac_ct_NMEDIT"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5445 $as_echo "$ac_ct_NMEDIT" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5451 if test "x$ac_ct_NMEDIT" = x; then
5452 NMEDIT=":"
5453 else
5454 case $cross_compiling:$ac_tool_warned in
5455 yes:)
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5458 ac_tool_warned=yes ;;
5459 esac
5460 NMEDIT=$ac_ct_NMEDIT
5462 else
5463 NMEDIT="$ac_cv_prog_NMEDIT"
5466 if test -n "$ac_tool_prefix"; then
5467 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5468 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_prog_LIPO+:} false; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 if test -n "$LIPO"; then
5475 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5476 else
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5488 done
5489 done
5490 IFS=$as_save_IFS
5494 LIPO=$ac_cv_prog_LIPO
5495 if test -n "$LIPO"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5497 $as_echo "$LIPO" >&6; }
5498 else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5505 if test -z "$ac_cv_prog_LIPO"; then
5506 ac_ct_LIPO=$LIPO
5507 # Extract the first word of "lipo", so it can be a program name with args.
5508 set dummy lipo; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -n "$ac_ct_LIPO"; then
5515 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5524 ac_cv_prog_ac_ct_LIPO="lipo"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5528 done
5529 done
5530 IFS=$as_save_IFS
5534 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5535 if test -n "$ac_ct_LIPO"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5537 $as_echo "$ac_ct_LIPO" >&6; }
5538 else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5543 if test "x$ac_ct_LIPO" = x; then
5544 LIPO=":"
5545 else
5546 case $cross_compiling:$ac_tool_warned in
5547 yes:)
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5550 ac_tool_warned=yes ;;
5551 esac
5552 LIPO=$ac_ct_LIPO
5554 else
5555 LIPO="$ac_cv_prog_LIPO"
5558 if test -n "$ac_tool_prefix"; then
5559 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5560 set dummy ${ac_tool_prefix}otool; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_OTOOL+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$OTOOL"; then
5567 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5580 done
5581 done
5582 IFS=$as_save_IFS
5586 OTOOL=$ac_cv_prog_OTOOL
5587 if test -n "$OTOOL"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5589 $as_echo "$OTOOL" >&6; }
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5597 if test -z "$ac_cv_prog_OTOOL"; then
5598 ac_ct_OTOOL=$OTOOL
5599 # Extract the first word of "otool", so it can be a program name with args.
5600 set dummy otool; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$ac_ct_OTOOL"; then
5607 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_ac_ct_OTOOL="otool"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5620 done
5621 done
5622 IFS=$as_save_IFS
5626 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5627 if test -n "$ac_ct_OTOOL"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5629 $as_echo "$ac_ct_OTOOL" >&6; }
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5635 if test "x$ac_ct_OTOOL" = x; then
5636 OTOOL=":"
5637 else
5638 case $cross_compiling:$ac_tool_warned in
5639 yes:)
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5642 ac_tool_warned=yes ;;
5643 esac
5644 OTOOL=$ac_ct_OTOOL
5646 else
5647 OTOOL="$ac_cv_prog_OTOOL"
5650 if test -n "$ac_tool_prefix"; then
5651 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5652 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_OTOOL64+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$OTOOL64"; then
5659 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5672 done
5673 done
5674 IFS=$as_save_IFS
5678 OTOOL64=$ac_cv_prog_OTOOL64
5679 if test -n "$OTOOL64"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5681 $as_echo "$OTOOL64" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5689 if test -z "$ac_cv_prog_OTOOL64"; then
5690 ac_ct_OTOOL64=$OTOOL64
5691 # Extract the first word of "otool64", so it can be a program name with args.
5692 set dummy otool64; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$ac_ct_OTOOL64"; then
5699 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_ac_ct_OTOOL64="otool64"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5712 done
5713 done
5714 IFS=$as_save_IFS
5718 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5719 if test -n "$ac_ct_OTOOL64"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5721 $as_echo "$ac_ct_OTOOL64" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5727 if test "x$ac_ct_OTOOL64" = x; then
5728 OTOOL64=":"
5729 else
5730 case $cross_compiling:$ac_tool_warned in
5731 yes:)
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5734 ac_tool_warned=yes ;;
5735 esac
5736 OTOOL64=$ac_ct_OTOOL64
5738 else
5739 OTOOL64="$ac_cv_prog_OTOOL64"
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5769 $as_echo_n "checking for -single_module linker flag... " >&6; }
5770 if ${lt_cv_apple_cc_single_mod+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 lt_cv_apple_cc_single_mod=no
5774 if test -z "${LT_MULTI_MODULE}"; then
5775 # By default we will add the -single_module flag. You can override
5776 # by either setting the environment variable LT_MULTI_MODULE
5777 # non-empty at configure time, or by adding -multi_module to the
5778 # link flags.
5779 rm -rf libconftest.dylib*
5780 echo "int foo(void){return 1;}" > conftest.c
5781 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5782 -dynamiclib -Wl,-single_module conftest.c" >&5
5783 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5784 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5785 _lt_result=$?
5786 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5787 lt_cv_apple_cc_single_mod=yes
5788 else
5789 cat conftest.err >&5
5791 rm -rf libconftest.dylib*
5792 rm -f conftest.*
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5796 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5798 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5799 if ${lt_cv_ld_exported_symbols_list+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 lt_cv_ld_exported_symbols_list=no
5803 save_LDFLAGS=$LDFLAGS
5804 echo "_main" > conftest.sym
5805 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5810 main ()
5814 return 0;
5816 _ACEOF
5817 if ac_fn_c_try_link "$LINENO"; then :
5818 lt_cv_ld_exported_symbols_list=yes
5819 else
5820 lt_cv_ld_exported_symbols_list=no
5822 rm -f core conftest.err conftest.$ac_objext \
5823 conftest$ac_exeext conftest.$ac_ext
5824 LDFLAGS="$save_LDFLAGS"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5828 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5829 case $host_os in
5830 rhapsody* | darwin1.[012])
5831 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5832 darwin1.*)
5833 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5834 darwin*) # darwin 5.x on
5835 # if running on 10.5 or later, the deployment target defaults
5836 # to the OS version, if on x86, and 10.4, the deployment
5837 # target defaults to 10.4. Don't you love it?
5838 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5839 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5840 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5841 10.[012]*)
5842 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5843 10.*)
5844 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5845 esac
5847 esac
5848 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5849 _lt_dar_single_mod='$single_module'
5851 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5852 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5853 else
5854 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5856 if test "$DSYMUTIL" != ":"; then
5857 _lt_dsymutil='~$DSYMUTIL $lib || :'
5858 else
5859 _lt_dsymutil=
5862 esac
5864 ac_ext=c
5865 ac_cpp='$CPP $CPPFLAGS'
5866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5870 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5871 # On Suns, sometimes $CPP names a directory.
5872 if test -n "$CPP" && test -d "$CPP"; then
5873 CPP=
5875 if test -z "$CPP"; then
5876 if ${ac_cv_prog_CPP+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 # Double quotes because CPP needs to be expanded
5880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5882 ac_preproc_ok=false
5883 for ac_c_preproc_warn_flag in '' yes
5885 # Use a header file that comes with gcc, so configuring glibc
5886 # with a fresh cross-compiler works.
5887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5888 # <limits.h> exists even on freestanding compilers.
5889 # On the NeXT, cc -E runs the code through the compiler's parser,
5890 # not just through cpp. "Syntax error" is here to catch this case.
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893 #ifdef __STDC__
5894 # include <limits.h>
5895 #else
5896 # include <assert.h>
5897 #endif
5898 Syntax error
5899 _ACEOF
5900 if ac_fn_c_try_cpp "$LINENO"; then :
5902 else
5903 # Broken: fails on valid input.
5904 continue
5906 rm -f conftest.err conftest.i conftest.$ac_ext
5908 # OK, works on sane cases. Now check whether nonexistent headers
5909 # can be detected and how.
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5912 #include <ac_nonexistent.h>
5913 _ACEOF
5914 if ac_fn_c_try_cpp "$LINENO"; then :
5915 # Broken: success on invalid input.
5916 continue
5917 else
5918 # Passes both tests.
5919 ac_preproc_ok=:
5920 break
5922 rm -f conftest.err conftest.i conftest.$ac_ext
5924 done
5925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5926 rm -f conftest.i conftest.err conftest.$ac_ext
5927 if $ac_preproc_ok; then :
5928 break
5931 done
5932 ac_cv_prog_CPP=$CPP
5935 CPP=$ac_cv_prog_CPP
5936 else
5937 ac_cv_prog_CPP=$CPP
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5940 $as_echo "$CPP" >&6; }
5941 ac_preproc_ok=false
5942 for ac_c_preproc_warn_flag in '' yes
5944 # Use a header file that comes with gcc, so configuring glibc
5945 # with a fresh cross-compiler works.
5946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5947 # <limits.h> exists even on freestanding compilers.
5948 # On the NeXT, cc -E runs the code through the compiler's parser,
5949 # not just through cpp. "Syntax error" is here to catch this case.
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #ifdef __STDC__
5953 # include <limits.h>
5954 #else
5955 # include <assert.h>
5956 #endif
5957 Syntax error
5958 _ACEOF
5959 if ac_fn_c_try_cpp "$LINENO"; then :
5961 else
5962 # Broken: fails on valid input.
5963 continue
5965 rm -f conftest.err conftest.i conftest.$ac_ext
5967 # OK, works on sane cases. Now check whether nonexistent headers
5968 # can be detected and how.
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 #include <ac_nonexistent.h>
5972 _ACEOF
5973 if ac_fn_c_try_cpp "$LINENO"; then :
5974 # Broken: success on invalid input.
5975 continue
5976 else
5977 # Passes both tests.
5978 ac_preproc_ok=:
5979 break
5981 rm -f conftest.err conftest.i conftest.$ac_ext
5983 done
5984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5985 rm -f conftest.i conftest.err conftest.$ac_ext
5986 if $ac_preproc_ok; then :
5988 else
5989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5991 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5992 See \`config.log' for more details" "$LINENO" 5; }
5995 ac_ext=c
5996 ac_cpp='$CPP $CPPFLAGS'
5997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6003 $as_echo_n "checking for ANSI C header files... " >&6; }
6004 if ${ac_cv_header_stdc+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #include <stdlib.h>
6010 #include <stdarg.h>
6011 #include <string.h>
6012 #include <float.h>
6015 main ()
6019 return 0;
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 ac_cv_header_stdc=yes
6024 else
6025 ac_cv_header_stdc=no
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 if test $ac_cv_header_stdc = yes; then
6030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 #include <string.h>
6035 _ACEOF
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 $EGREP "memchr" >/dev/null 2>&1; then :
6039 else
6040 ac_cv_header_stdc=no
6042 rm -f conftest*
6046 if test $ac_cv_header_stdc = yes; then
6047 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 #include <stdlib.h>
6052 _ACEOF
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054 $EGREP "free" >/dev/null 2>&1; then :
6056 else
6057 ac_cv_header_stdc=no
6059 rm -f conftest*
6063 if test $ac_cv_header_stdc = yes; then
6064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6065 if test "$cross_compiling" = yes; then :
6067 else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #include <ctype.h>
6071 #include <stdlib.h>
6072 #if ((' ' & 0x0FF) == 0x020)
6073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6075 #else
6076 # define ISLOWER(c) \
6077 (('a' <= (c) && (c) <= 'i') \
6078 || ('j' <= (c) && (c) <= 'r') \
6079 || ('s' <= (c) && (c) <= 'z'))
6080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6081 #endif
6083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6085 main ()
6087 int i;
6088 for (i = 0; i < 256; i++)
6089 if (XOR (islower (i), ISLOWER (i))
6090 || toupper (i) != TOUPPER (i))
6091 return 2;
6092 return 0;
6094 _ACEOF
6095 if ac_fn_c_try_run "$LINENO"; then :
6097 else
6098 ac_cv_header_stdc=no
6100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6101 conftest.$ac_objext conftest.beam conftest.$ac_ext
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6107 $as_echo "$ac_cv_header_stdc" >&6; }
6108 if test $ac_cv_header_stdc = yes; then
6110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6114 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6115 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6116 inttypes.h stdint.h unistd.h
6117 do :
6118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6122 cat >>confdefs.h <<_ACEOF
6123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6124 _ACEOF
6128 done
6131 for ac_header in dlfcn.h
6132 do :
6133 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6135 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6136 cat >>confdefs.h <<_ACEOF
6137 #define HAVE_DLFCN_H 1
6138 _ACEOF
6142 done
6146 # Set options
6150 enable_dlopen=no
6153 enable_win32_dll=no
6156 # Check whether --enable-shared was given.
6157 if test "${enable_shared+set}" = set; then :
6158 enableval=$enable_shared; p=${PACKAGE-default}
6159 case $enableval in
6160 yes) enable_shared=yes ;;
6161 no) enable_shared=no ;;
6163 enable_shared=no
6164 # Look at the argument we got. We use all the common list separators.
6165 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6166 for pkg in $enableval; do
6167 IFS="$lt_save_ifs"
6168 if test "X$pkg" = "X$p"; then
6169 enable_shared=yes
6171 done
6172 IFS="$lt_save_ifs"
6174 esac
6175 else
6176 enable_shared=yes
6187 # Check whether --enable-static was given.
6188 if test "${enable_static+set}" = set; then :
6189 enableval=$enable_static; p=${PACKAGE-default}
6190 case $enableval in
6191 yes) enable_static=yes ;;
6192 no) enable_static=no ;;
6194 enable_static=no
6195 # Look at the argument we got. We use all the common list separators.
6196 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6197 for pkg in $enableval; do
6198 IFS="$lt_save_ifs"
6199 if test "X$pkg" = "X$p"; then
6200 enable_static=yes
6202 done
6203 IFS="$lt_save_ifs"
6205 esac
6206 else
6207 enable_static=yes
6219 # Check whether --with-pic was given.
6220 if test "${with_pic+set}" = set; then :
6221 withval=$with_pic; pic_mode="$withval"
6222 else
6223 pic_mode=default
6227 test -z "$pic_mode" && pic_mode=default
6235 # Check whether --enable-fast-install was given.
6236 if test "${enable_fast_install+set}" = set; then :
6237 enableval=$enable_fast_install; p=${PACKAGE-default}
6238 case $enableval in
6239 yes) enable_fast_install=yes ;;
6240 no) enable_fast_install=no ;;
6242 enable_fast_install=no
6243 # Look at the argument we got. We use all the common list separators.
6244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6245 for pkg in $enableval; do
6246 IFS="$lt_save_ifs"
6247 if test "X$pkg" = "X$p"; then
6248 enable_fast_install=yes
6250 done
6251 IFS="$lt_save_ifs"
6253 esac
6254 else
6255 enable_fast_install=yes
6268 # This can be used to rebuild libtool when needed
6269 LIBTOOL_DEPS="$ltmain"
6271 # Always use our own libtool.
6272 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6298 test -z "$LN_S" && LN_S="ln -s"
6313 if test -n "${ZSH_VERSION+set}" ; then
6314 setopt NO_GLOB_SUBST
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6318 $as_echo_n "checking for objdir... " >&6; }
6319 if ${lt_cv_objdir+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 rm -f .libs 2>/dev/null
6323 mkdir .libs 2>/dev/null
6324 if test -d .libs; then
6325 lt_cv_objdir=.libs
6326 else
6327 # MS-DOS does not allow filenames that begin with a dot.
6328 lt_cv_objdir=_libs
6330 rmdir .libs 2>/dev/null
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6333 $as_echo "$lt_cv_objdir" >&6; }
6334 objdir=$lt_cv_objdir
6340 cat >>confdefs.h <<_ACEOF
6341 #define LT_OBJDIR "$lt_cv_objdir/"
6342 _ACEOF
6360 case $host_os in
6361 aix3*)
6362 # AIX sometimes has problems with the GCC collect2 program. For some
6363 # reason, if we set the COLLECT_NAMES environment variable, the problems
6364 # vanish in a puff of smoke.
6365 if test "X${COLLECT_NAMES+set}" != Xset; then
6366 COLLECT_NAMES=
6367 export COLLECT_NAMES
6370 esac
6372 # Sed substitution that helps us do robust quoting. It backslashifies
6373 # metacharacters that are still active within double-quoted strings.
6374 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6376 # Same as above, but do not quote variable references.
6377 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6379 # Sed substitution to delay expansion of an escaped shell variable in a
6380 # double_quote_subst'ed string.
6381 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6383 # Sed substitution to delay expansion of an escaped single quote.
6384 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6386 # Sed substitution to avoid accidental globbing in evaled expressions
6387 no_glob_subst='s/\*/\\\*/g'
6389 # Global variables:
6390 ofile=libtool
6391 can_build_shared=yes
6393 # All known linkers require a `.a' archive for static linking (except MSVC,
6394 # which needs '.lib').
6395 libext=a
6397 with_gnu_ld="$lt_cv_prog_gnu_ld"
6399 old_CC="$CC"
6400 old_CFLAGS="$CFLAGS"
6402 # Set sane defaults for various variables
6403 test -z "$CC" && CC=cc
6404 test -z "$LTCC" && LTCC=$CC
6405 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6406 test -z "$LD" && LD=ld
6407 test -z "$ac_objext" && ac_objext=o
6409 for cc_temp in $compiler""; do
6410 case $cc_temp in
6411 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6412 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6413 \-*) ;;
6414 *) break;;
6415 esac
6416 done
6417 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6420 # Only perform the check for file, if the check method requires it
6421 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6422 case $deplibs_check_method in
6423 file_magic*)
6424 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6426 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6427 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 case $MAGIC_CMD in
6431 [\\/*] | ?:[\\/]*)
6432 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6435 lt_save_MAGIC_CMD="$MAGIC_CMD"
6436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6437 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6438 for ac_dir in $ac_dummy; do
6439 IFS="$lt_save_ifs"
6440 test -z "$ac_dir" && ac_dir=.
6441 if test -f $ac_dir/${ac_tool_prefix}file; then
6442 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6443 if test -n "$file_magic_test_file"; then
6444 case $deplibs_check_method in
6445 "file_magic "*)
6446 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6448 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6449 $EGREP "$file_magic_regex" > /dev/null; then
6451 else
6452 cat <<_LT_EOF 1>&2
6454 *** Warning: the command libtool uses to detect shared libraries,
6455 *** $file_magic_cmd, produces output that libtool cannot recognize.
6456 *** The result is that libtool may fail to recognize shared libraries
6457 *** as such. This will affect the creation of libtool libraries that
6458 *** depend on shared libraries, but programs linked with such libtool
6459 *** libraries will work regardless of this problem. Nevertheless, you
6460 *** may want to report the problem to your system manager and/or to
6461 *** bug-libtool@gnu.org
6463 _LT_EOF
6464 fi ;;
6465 esac
6467 break
6469 done
6470 IFS="$lt_save_ifs"
6471 MAGIC_CMD="$lt_save_MAGIC_CMD"
6473 esac
6476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6477 if test -n "$MAGIC_CMD"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6479 $as_echo "$MAGIC_CMD" >&6; }
6480 else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6489 if test -z "$lt_cv_path_MAGIC_CMD"; then
6490 if test -n "$ac_tool_prefix"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6492 $as_echo_n "checking for file... " >&6; }
6493 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 case $MAGIC_CMD in
6497 [\\/*] | ?:[\\/]*)
6498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6501 lt_save_MAGIC_CMD="$MAGIC_CMD"
6502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6504 for ac_dir in $ac_dummy; do
6505 IFS="$lt_save_ifs"
6506 test -z "$ac_dir" && ac_dir=.
6507 if test -f $ac_dir/file; then
6508 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6509 if test -n "$file_magic_test_file"; then
6510 case $deplibs_check_method in
6511 "file_magic "*)
6512 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6515 $EGREP "$file_magic_regex" > /dev/null; then
6517 else
6518 cat <<_LT_EOF 1>&2
6520 *** Warning: the command libtool uses to detect shared libraries,
6521 *** $file_magic_cmd, produces output that libtool cannot recognize.
6522 *** The result is that libtool may fail to recognize shared libraries
6523 *** as such. This will affect the creation of libtool libraries that
6524 *** depend on shared libraries, but programs linked with such libtool
6525 *** libraries will work regardless of this problem. Nevertheless, you
6526 *** may want to report the problem to your system manager and/or to
6527 *** bug-libtool@gnu.org
6529 _LT_EOF
6530 fi ;;
6531 esac
6533 break
6535 done
6536 IFS="$lt_save_ifs"
6537 MAGIC_CMD="$lt_save_MAGIC_CMD"
6539 esac
6542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6543 if test -n "$MAGIC_CMD"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6545 $as_echo "$MAGIC_CMD" >&6; }
6546 else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6552 else
6553 MAGIC_CMD=:
6559 esac
6561 # Use C for the default configuration in the libtool script
6563 lt_save_CC="$CC"
6564 ac_ext=c
6565 ac_cpp='$CPP $CPPFLAGS'
6566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571 # Source file extension for C test sources.
6572 ac_ext=c
6574 # Object file extension for compiled C test sources.
6575 objext=o
6576 objext=$objext
6578 # Code to be used in simple compile tests
6579 lt_simple_compile_test_code="int some_variable = 0;"
6581 # Code to be used in simple link tests
6582 lt_simple_link_test_code='int main(){return(0);}'
6590 # If no C compiler was specified, use CC.
6591 LTCC=${LTCC-"$CC"}
6593 # If no C compiler flags were specified, use CFLAGS.
6594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6596 # Allow CC to be a program name with arguments.
6597 compiler=$CC
6599 # Save the default compiler, since it gets overwritten when the other
6600 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6601 compiler_DEFAULT=$CC
6603 # save warnings/boilerplate of simple test code
6604 ac_outfile=conftest.$ac_objext
6605 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6606 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6607 _lt_compiler_boilerplate=`cat conftest.err`
6608 $RM conftest*
6610 ac_outfile=conftest.$ac_objext
6611 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6612 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6613 _lt_linker_boilerplate=`cat conftest.err`
6614 $RM -r conftest*
6617 if test -n "$compiler"; then
6619 lt_prog_compiler_no_builtin_flag=
6621 if test "$GCC" = yes; then
6622 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6625 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6626 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 lt_cv_prog_compiler_rtti_exceptions=no
6630 ac_outfile=conftest.$ac_objext
6631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6632 lt_compiler_flag="-fno-rtti -fno-exceptions"
6633 # Insert the option either (1) after the last *FLAGS variable, or
6634 # (2) before a word containing "conftest.", or (3) at the end.
6635 # Note that $ac_compile itself does not contain backslashes and begins
6636 # with a dollar sign (not a hyphen), so the echo should work correctly.
6637 # The option is referenced via a variable to avoid confusing sed.
6638 lt_compile=`echo "$ac_compile" | $SED \
6639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6641 -e 's:$: $lt_compiler_flag:'`
6642 (eval echo "\"\$as_me:6642: $lt_compile\"" >&5)
6643 (eval "$lt_compile" 2>conftest.err)
6644 ac_status=$?
6645 cat conftest.err >&5
6646 echo "$as_me:6646: \$? = $ac_status" >&5
6647 if (exit $ac_status) && test -s "$ac_outfile"; then
6648 # The compiler can only warn and ignore the option if not recognized
6649 # So say no if there are warnings other than the usual output.
6650 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6653 lt_cv_prog_compiler_rtti_exceptions=yes
6656 $RM conftest*
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6660 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6662 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6663 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6664 else
6675 lt_prog_compiler_wl=
6676 lt_prog_compiler_pic=
6677 lt_prog_compiler_static=
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6680 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6682 if test "$GCC" = yes; then
6683 lt_prog_compiler_wl='-Wl,'
6684 lt_prog_compiler_static='-static'
6686 case $host_os in
6687 aix*)
6688 # All AIX code is PIC.
6689 if test "$host_cpu" = ia64; then
6690 # AIX 5 now supports IA64 processor
6691 lt_prog_compiler_static='-Bstatic'
6695 amigaos*)
6696 case $host_cpu in
6697 powerpc)
6698 # see comment about AmigaOS4 .so support
6699 lt_prog_compiler_pic='-fPIC'
6701 m68k)
6702 # FIXME: we need at least 68020 code to build shared libraries, but
6703 # adding the `-m68020' flag to GCC prevents building anything better,
6704 # like `-m68040'.
6705 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6707 esac
6710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6711 # PIC is the default for these OSes.
6714 mingw* | cygwin* | pw32* | os2* | cegcc*)
6715 # This hack is so that the source file can tell whether it is being
6716 # built for inclusion in a dll (and should export symbols for example).
6717 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6718 # (--disable-auto-import) libraries
6719 lt_prog_compiler_pic='-DDLL_EXPORT'
6722 darwin* | rhapsody*)
6723 # PIC is the default on this platform
6724 # Common symbols not allowed in MH_DYLIB files
6725 lt_prog_compiler_pic='-fno-common'
6728 hpux*)
6729 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6730 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6731 # sets the default TLS model and affects inlining.
6732 case $host_cpu in
6733 hppa*64*)
6734 # +Z the default
6737 lt_prog_compiler_pic='-fPIC'
6739 esac
6742 interix[3-9]*)
6743 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6744 # Instead, we relocate shared libraries at runtime.
6747 msdosdjgpp*)
6748 # Just because we use GCC doesn't mean we suddenly get shared libraries
6749 # on systems that don't support them.
6750 lt_prog_compiler_can_build_shared=no
6751 enable_shared=no
6754 *nto* | *qnx*)
6755 # QNX uses GNU C++, but need to define -shared option too, otherwise
6756 # it will coredump.
6757 lt_prog_compiler_pic='-fPIC -shared'
6760 sysv4*MP*)
6761 if test -d /usr/nec; then
6762 lt_prog_compiler_pic=-Kconform_pic
6767 lt_prog_compiler_pic='-fPIC'
6769 esac
6770 else
6771 # PORTME Check for flag to pass linker flags through the system compiler.
6772 case $host_os in
6773 aix*)
6774 lt_prog_compiler_wl='-Wl,'
6775 if test "$host_cpu" = ia64; then
6776 # AIX 5 now supports IA64 processor
6777 lt_prog_compiler_static='-Bstatic'
6778 else
6779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6783 mingw* | cygwin* | pw32* | os2* | cegcc*)
6784 # This hack is so that the source file can tell whether it is being
6785 # built for inclusion in a dll (and should export symbols for example).
6786 lt_prog_compiler_pic='-DDLL_EXPORT'
6789 hpux9* | hpux10* | hpux11*)
6790 lt_prog_compiler_wl='-Wl,'
6791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6792 # not for PA HP-UX.
6793 case $host_cpu in
6794 hppa*64*|ia64*)
6795 # +Z the default
6798 lt_prog_compiler_pic='+Z'
6800 esac
6801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6802 lt_prog_compiler_static='${wl}-a ${wl}archive'
6805 irix5* | irix6* | nonstopux*)
6806 lt_prog_compiler_wl='-Wl,'
6807 # PIC (with -KPIC) is the default.
6808 lt_prog_compiler_static='-non_shared'
6811 linux* | k*bsd*-gnu)
6812 case $cc_basename in
6813 # old Intel for x86_64 which still supported -KPIC.
6814 ecc*)
6815 lt_prog_compiler_wl='-Wl,'
6816 lt_prog_compiler_pic='-KPIC'
6817 lt_prog_compiler_static='-static'
6819 # icc used to be incompatible with GCC.
6820 # ICC 10 doesn't accept -KPIC any more.
6821 icc* | ifort*)
6822 lt_prog_compiler_wl='-Wl,'
6823 lt_prog_compiler_pic='-fPIC'
6824 lt_prog_compiler_static='-static'
6826 # Lahey Fortran 8.1.
6827 lf95*)
6828 lt_prog_compiler_wl='-Wl,'
6829 lt_prog_compiler_pic='--shared'
6830 lt_prog_compiler_static='--static'
6832 pgcc* | pgf77* | pgf90* | pgf95*)
6833 # Portland Group compilers (*not* the Pentium gcc compiler,
6834 # which looks to be a dead project)
6835 lt_prog_compiler_wl='-Wl,'
6836 lt_prog_compiler_pic='-fpic'
6837 lt_prog_compiler_static='-Bstatic'
6839 ccc*)
6840 lt_prog_compiler_wl='-Wl,'
6841 # All Alpha code is PIC.
6842 lt_prog_compiler_static='-non_shared'
6844 xl*)
6845 # IBM XL C 8.0/Fortran 10.1 on PPC
6846 lt_prog_compiler_wl='-Wl,'
6847 lt_prog_compiler_pic='-qpic'
6848 lt_prog_compiler_static='-qstaticlink'
6851 case `$CC -V 2>&1 | sed 5q` in
6852 *Sun\ C*)
6853 # Sun C 5.9
6854 lt_prog_compiler_pic='-KPIC'
6855 lt_prog_compiler_static='-Bstatic'
6856 lt_prog_compiler_wl='-Wl,'
6858 *Sun\ F*)
6859 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6860 lt_prog_compiler_pic='-KPIC'
6861 lt_prog_compiler_static='-Bstatic'
6862 lt_prog_compiler_wl=''
6864 esac
6866 esac
6869 newsos6)
6870 lt_prog_compiler_pic='-KPIC'
6871 lt_prog_compiler_static='-Bstatic'
6874 *nto* | *qnx*)
6875 # QNX uses GNU C++, but need to define -shared option too, otherwise
6876 # it will coredump.
6877 lt_prog_compiler_pic='-fPIC -shared'
6880 osf3* | osf4* | osf5*)
6881 lt_prog_compiler_wl='-Wl,'
6882 # All OSF/1 code is PIC.
6883 lt_prog_compiler_static='-non_shared'
6886 rdos*)
6887 lt_prog_compiler_static='-non_shared'
6890 solaris*)
6891 lt_prog_compiler_pic='-KPIC'
6892 lt_prog_compiler_static='-Bstatic'
6893 case $cc_basename in
6894 f77* | f90* | f95*)
6895 lt_prog_compiler_wl='-Qoption ld ';;
6897 lt_prog_compiler_wl='-Wl,';;
6898 esac
6901 sunos4*)
6902 lt_prog_compiler_wl='-Qoption ld '
6903 lt_prog_compiler_pic='-PIC'
6904 lt_prog_compiler_static='-Bstatic'
6907 sysv4 | sysv4.2uw2* | sysv4.3*)
6908 lt_prog_compiler_wl='-Wl,'
6909 lt_prog_compiler_pic='-KPIC'
6910 lt_prog_compiler_static='-Bstatic'
6913 sysv4*MP*)
6914 if test -d /usr/nec ;then
6915 lt_prog_compiler_pic='-Kconform_pic'
6916 lt_prog_compiler_static='-Bstatic'
6920 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6921 lt_prog_compiler_wl='-Wl,'
6922 lt_prog_compiler_pic='-KPIC'
6923 lt_prog_compiler_static='-Bstatic'
6926 unicos*)
6927 lt_prog_compiler_wl='-Wl,'
6928 lt_prog_compiler_can_build_shared=no
6931 uts4*)
6932 lt_prog_compiler_pic='-pic'
6933 lt_prog_compiler_static='-Bstatic'
6937 lt_prog_compiler_can_build_shared=no
6939 esac
6942 case $host_os in
6943 # For platforms which do not support PIC, -DPIC is meaningless:
6944 *djgpp*)
6945 lt_prog_compiler_pic=
6948 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6950 esac
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6952 $as_echo "$lt_prog_compiler_pic" >&6; }
6960 # Check to make sure the PIC flag actually works.
6962 if test -n "$lt_prog_compiler_pic"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6965 if ${lt_cv_prog_compiler_pic_works+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 lt_cv_prog_compiler_pic_works=no
6969 ac_outfile=conftest.$ac_objext
6970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6972 # Insert the option either (1) after the last *FLAGS variable, or
6973 # (2) before a word containing "conftest.", or (3) at the end.
6974 # Note that $ac_compile itself does not contain backslashes and begins
6975 # with a dollar sign (not a hyphen), so the echo should work correctly.
6976 # The option is referenced via a variable to avoid confusing sed.
6977 lt_compile=`echo "$ac_compile" | $SED \
6978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6980 -e 's:$: $lt_compiler_flag:'`
6981 (eval echo "\"\$as_me:6981: $lt_compile\"" >&5)
6982 (eval "$lt_compile" 2>conftest.err)
6983 ac_status=$?
6984 cat conftest.err >&5
6985 echo "$as_me:6985: \$? = $ac_status" >&5
6986 if (exit $ac_status) && test -s "$ac_outfile"; then
6987 # The compiler can only warn and ignore the option if not recognized
6988 # So say no if there are warnings other than the usual output.
6989 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6992 lt_cv_prog_compiler_pic_works=yes
6995 $RM conftest*
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
6999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7001 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7002 case $lt_prog_compiler_pic in
7003 "" | " "*) ;;
7004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7005 esac
7006 else
7007 lt_prog_compiler_pic=
7008 lt_prog_compiler_can_build_shared=no
7019 # Check to make sure the static flag actually works.
7021 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7024 if ${lt_cv_prog_compiler_static_works+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 lt_cv_prog_compiler_static_works=no
7028 save_LDFLAGS="$LDFLAGS"
7029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7030 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7032 # The linker can only warn and ignore the option if not recognized
7033 # So say no if there are warnings
7034 if test -s conftest.err; then
7035 # Append any errors to the config.log.
7036 cat conftest.err 1>&5
7037 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7039 if diff conftest.exp conftest.er2 >/dev/null; then
7040 lt_cv_prog_compiler_static_works=yes
7042 else
7043 lt_cv_prog_compiler_static_works=yes
7046 $RM -r conftest*
7047 LDFLAGS="$save_LDFLAGS"
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7051 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7053 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7055 else
7056 lt_prog_compiler_static=
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7067 if ${lt_cv_prog_compiler_c_o+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 lt_cv_prog_compiler_c_o=no
7071 $RM -r conftest 2>/dev/null
7072 mkdir conftest
7073 cd conftest
7074 mkdir out
7075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7077 lt_compiler_flag="-o out/conftest2.$ac_objext"
7078 # Insert the option either (1) after the last *FLAGS variable, or
7079 # (2) before a word containing "conftest.", or (3) at the end.
7080 # Note that $ac_compile itself does not contain backslashes and begins
7081 # with a dollar sign (not a hyphen), so the echo should work correctly.
7082 lt_compile=`echo "$ac_compile" | $SED \
7083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7085 -e 's:$: $lt_compiler_flag:'`
7086 (eval echo "\"\$as_me:7086: $lt_compile\"" >&5)
7087 (eval "$lt_compile" 2>out/conftest.err)
7088 ac_status=$?
7089 cat out/conftest.err >&5
7090 echo "$as_me:7090: \$? = $ac_status" >&5
7091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7092 then
7093 # The compiler can only warn and ignore the option if not recognized
7094 # So say no if there are warnings
7095 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7098 lt_cv_prog_compiler_c_o=yes
7101 chmod u+w . 2>&5
7102 $RM conftest*
7103 # SGI C++ compiler will create directory out/ii_files/ for
7104 # template instantiation
7105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7106 $RM out/* && rmdir out
7107 cd ..
7108 $RM -r conftest
7109 $RM conftest*
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7121 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7122 if ${lt_cv_prog_compiler_c_o+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 lt_cv_prog_compiler_c_o=no
7126 $RM -r conftest 2>/dev/null
7127 mkdir conftest
7128 cd conftest
7129 mkdir out
7130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7132 lt_compiler_flag="-o out/conftest2.$ac_objext"
7133 # Insert the option either (1) after the last *FLAGS variable, or
7134 # (2) before a word containing "conftest.", or (3) at the end.
7135 # Note that $ac_compile itself does not contain backslashes and begins
7136 # with a dollar sign (not a hyphen), so the echo should work correctly.
7137 lt_compile=`echo "$ac_compile" | $SED \
7138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7140 -e 's:$: $lt_compiler_flag:'`
7141 (eval echo "\"\$as_me:7141: $lt_compile\"" >&5)
7142 (eval "$lt_compile" 2>out/conftest.err)
7143 ac_status=$?
7144 cat out/conftest.err >&5
7145 echo "$as_me:7145: \$? = $ac_status" >&5
7146 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7147 then
7148 # The compiler can only warn and ignore the option if not recognized
7149 # So say no if there are warnings
7150 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7153 lt_cv_prog_compiler_c_o=yes
7156 chmod u+w . 2>&5
7157 $RM conftest*
7158 # SGI C++ compiler will create directory out/ii_files/ for
7159 # template instantiation
7160 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7161 $RM out/* && rmdir out
7162 cd ..
7163 $RM -r conftest
7164 $RM conftest*
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7168 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7173 hard_links="nottested"
7174 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7175 # do not overwrite the value of need_locks provided by the user
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7177 $as_echo_n "checking if we can lock with hard links... " >&6; }
7178 hard_links=yes
7179 $RM conftest*
7180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7181 touch conftest.a
7182 ln conftest.a conftest.b 2>&5 || hard_links=no
7183 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7185 $as_echo "$hard_links" >&6; }
7186 if test "$hard_links" = no; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7188 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7189 need_locks=warn
7191 else
7192 need_locks=no
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7201 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7203 runpath_var=
7204 allow_undefined_flag=
7205 always_export_symbols=no
7206 archive_cmds=
7207 archive_expsym_cmds=
7208 compiler_needs_object=no
7209 enable_shared_with_static_runtimes=no
7210 export_dynamic_flag_spec=
7211 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7212 hardcode_automatic=no
7213 hardcode_direct=no
7214 hardcode_direct_absolute=no
7215 hardcode_libdir_flag_spec=
7216 hardcode_libdir_flag_spec_ld=
7217 hardcode_libdir_separator=
7218 hardcode_minus_L=no
7219 hardcode_shlibpath_var=unsupported
7220 inherit_rpath=no
7221 link_all_deplibs=unknown
7222 module_cmds=
7223 module_expsym_cmds=
7224 old_archive_from_new_cmds=
7225 old_archive_from_expsyms_cmds=
7226 thread_safe_flag_spec=
7227 whole_archive_flag_spec=
7228 # include_expsyms should be a list of space-separated symbols to be *always*
7229 # included in the symbol list
7230 include_expsyms=
7231 # exclude_expsyms can be an extended regexp of symbols to exclude
7232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7234 # as well as any symbol that contains `d'.
7235 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7237 # platforms (ab)use it in PIC code, but their linkers get confused if
7238 # the symbol is explicitly referenced. Since portable code cannot
7239 # rely on this symbol name, it's probably fine to never include it in
7240 # preloaded symbol tables.
7241 # Exclude shared library initialization/finalization symbols.
7242 extract_expsyms_cmds=
7244 case $host_os in
7245 cygwin* | mingw* | pw32* | cegcc*)
7246 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7247 # When not using gcc, we currently assume that we are using
7248 # Microsoft Visual C++.
7249 if test "$GCC" != yes; then
7250 with_gnu_ld=no
7253 interix*)
7254 # we just hope/assume this is gcc and not c89 (= MSVC++)
7255 with_gnu_ld=yes
7257 openbsd*)
7258 with_gnu_ld=no
7260 esac
7262 ld_shlibs=yes
7263 if test "$with_gnu_ld" = yes; then
7264 # If archive_cmds runs LD, not CC, wlarc should be empty
7265 wlarc='${wl}'
7267 # Set some defaults for GNU ld with shared library support. These
7268 # are reset later if shared libraries are not supported. Putting them
7269 # here allows them to be overridden if necessary.
7270 runpath_var=LD_RUN_PATH
7271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7272 export_dynamic_flag_spec='${wl}--export-dynamic'
7273 # ancient GNU ld didn't support --whole-archive et. al.
7274 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7275 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7276 else
7277 whole_archive_flag_spec=
7279 supports_anon_versioning=no
7280 case `$LD -v 2>&1` in
7281 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7282 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7283 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7284 *\ 2.11.*) ;; # other 2.11 versions
7285 *) supports_anon_versioning=yes ;;
7286 esac
7288 # See if GNU ld supports shared libraries.
7289 case $host_os in
7290 aix[3-9]*)
7291 # On AIX/PPC, the GNU linker is very broken
7292 if test "$host_cpu" != ia64; then
7293 ld_shlibs=no
7294 cat <<_LT_EOF 1>&2
7296 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7297 *** to be unable to reliably create shared libraries on AIX.
7298 *** Therefore, libtool is disabling shared libraries support. If you
7299 *** really care for shared libraries, you may want to modify your PATH
7300 *** so that a non-GNU linker is found, and then restart.
7302 _LT_EOF
7306 amigaos*)
7307 case $host_cpu in
7308 powerpc)
7309 # see comment about AmigaOS4 .so support
7310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7311 archive_expsym_cmds=''
7313 m68k)
7314 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)'
7315 hardcode_libdir_flag_spec='-L$libdir'
7316 hardcode_minus_L=yes
7318 esac
7321 beos*)
7322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7323 allow_undefined_flag=unsupported
7324 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7325 # support --undefined. This deserves some investigation. FIXME
7326 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7327 else
7328 ld_shlibs=no
7332 cygwin* | mingw* | pw32* | cegcc*)
7333 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7334 # as there is no search path for DLLs.
7335 hardcode_libdir_flag_spec='-L$libdir'
7336 allow_undefined_flag=unsupported
7337 always_export_symbols=no
7338 enable_shared_with_static_runtimes=yes
7339 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7341 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7343 # If the export-symbols file already is a .def file (1st line
7344 # is EXPORTS), use it as is; otherwise, prepend...
7345 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7346 cp $export_symbols $output_objdir/$soname.def;
7347 else
7348 echo EXPORTS > $output_objdir/$soname.def;
7349 cat $export_symbols >> $output_objdir/$soname.def;
7351 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7352 else
7353 ld_shlibs=no
7357 interix[3-9]*)
7358 hardcode_direct=no
7359 hardcode_shlibpath_var=no
7360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7361 export_dynamic_flag_spec='${wl}-E'
7362 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7363 # Instead, shared libraries are loaded at an image base (0x10000000 by
7364 # default) and relocated if they conflict, which is a slow very memory
7365 # consuming and fragmenting process. To avoid this, we pick a random,
7366 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7367 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7368 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7369 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'
7372 gnu* | linux* | tpf* | k*bsd*-gnu)
7373 tmp_diet=no
7374 if test "$host_os" = linux-dietlibc; then
7375 case $cc_basename in
7376 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7377 esac
7379 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7380 && test "$tmp_diet" = no
7381 then
7382 tmp_addflag=
7383 tmp_sharedflag='-shared'
7384 case $cc_basename,$host_cpu in
7385 pgcc*) # Portland Group C compiler
7386 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'
7387 tmp_addflag=' $pic_flag'
7389 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7390 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'
7391 tmp_addflag=' $pic_flag -Mnomain' ;;
7392 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7393 tmp_addflag=' -i_dynamic' ;;
7394 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7395 tmp_addflag=' -i_dynamic -nofor_main' ;;
7396 ifc* | ifort*) # Intel Fortran compiler
7397 tmp_addflag=' -nofor_main' ;;
7398 lf95*) # Lahey Fortran 8.1
7399 whole_archive_flag_spec=
7400 tmp_sharedflag='--shared' ;;
7401 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7402 tmp_sharedflag='-qmkshrobj'
7403 tmp_addflag= ;;
7404 esac
7405 case `$CC -V 2>&1 | sed 5q` in
7406 *Sun\ C*) # Sun C 5.9
7407 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'
7408 compiler_needs_object=yes
7409 tmp_sharedflag='-G' ;;
7410 *Sun\ F*) # Sun Fortran 8.3
7411 tmp_sharedflag='-G' ;;
7412 esac
7413 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7415 if test "x$supports_anon_versioning" = xyes; then
7416 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7418 echo "local: *; };" >> $output_objdir/$libname.ver~
7419 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7422 case $cc_basename in
7423 xlf*)
7424 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7425 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7426 hardcode_libdir_flag_spec=
7427 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7428 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $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 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7436 esac
7437 else
7438 ld_shlibs=no
7442 netbsd*)
7443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7444 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7445 wlarc=
7446 else
7447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7452 solaris*)
7453 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7454 ld_shlibs=no
7455 cat <<_LT_EOF 1>&2
7457 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7458 *** create shared libraries on Solaris systems. Therefore, libtool
7459 *** is disabling shared libraries support. We urge you to upgrade GNU
7460 *** binutils to release 2.9.1 or newer. Another option is to modify
7461 *** your PATH or compiler configuration so that the native linker is
7462 *** used, and then restart.
7464 _LT_EOF
7465 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7468 else
7469 ld_shlibs=no
7473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7474 case `$LD -v 2>&1` in
7475 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7476 ld_shlibs=no
7477 cat <<_LT_EOF 1>&2
7479 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7480 *** reliably create shared libraries on SCO systems. Therefore, libtool
7481 *** is disabling shared libraries support. We urge you to upgrade GNU
7482 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7483 *** your PATH or compiler configuration so that the native linker is
7484 *** used, and then restart.
7486 _LT_EOF
7489 # For security reasons, it is highly recommended that you always
7490 # use absolute paths for naming shared libraries, and exclude the
7491 # DT_RUNPATH tag from executables and libraries. But doing so
7492 # requires that you compile everything twice, which is a pain.
7493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7496 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7497 else
7498 ld_shlibs=no
7501 esac
7504 sunos4*)
7505 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7506 wlarc=
7507 hardcode_direct=yes
7508 hardcode_shlibpath_var=no
7512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7514 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7515 else
7516 ld_shlibs=no
7519 esac
7521 if test "$ld_shlibs" = no; then
7522 runpath_var=
7523 hardcode_libdir_flag_spec=
7524 export_dynamic_flag_spec=
7525 whole_archive_flag_spec=
7527 else
7528 # PORTME fill in a description of your system's linker (not GNU ld)
7529 case $host_os in
7530 aix3*)
7531 allow_undefined_flag=unsupported
7532 always_export_symbols=yes
7533 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'
7534 # Note: this linker hardcodes the directories in LIBPATH if there
7535 # are no directories specified by -L.
7536 hardcode_minus_L=yes
7537 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7538 # Neither direct hardcoding nor static linking is supported with a
7539 # broken collect2.
7540 hardcode_direct=unsupported
7544 aix[4-9]*)
7545 if test "$host_cpu" = ia64; then
7546 # On IA64, the linker does run time linking by default, so we don't
7547 # have to do anything special.
7548 aix_use_runtimelinking=no
7549 exp_sym_flag='-Bexport'
7550 no_entry_flag=""
7551 else
7552 # If we're using GNU nm, then we don't want the "-C" option.
7553 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7554 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7555 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'
7556 else
7557 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'
7559 aix_use_runtimelinking=no
7561 # Test if we are trying to use run time linking or normal
7562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7563 # need to do runtime linking.
7564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7565 for ld_flag in $LDFLAGS; do
7566 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7567 aix_use_runtimelinking=yes
7568 break
7570 done
7572 esac
7574 exp_sym_flag='-bexport'
7575 no_entry_flag='-bnoentry'
7578 # When large executables or shared objects are built, AIX ld can
7579 # have problems creating the table of contents. If linking a library
7580 # or program results in "error TOC overflow" add -mminimal-toc to
7581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7584 archive_cmds=''
7585 hardcode_direct=yes
7586 hardcode_direct_absolute=yes
7587 hardcode_libdir_separator=':'
7588 link_all_deplibs=yes
7589 file_list_spec='${wl}-f,'
7591 if test "$GCC" = yes; then
7592 case $host_os in aix4.[012]|aix4.[012].*)
7593 # We only want to do this on AIX 4.2 and lower, the check
7594 # below for broken collect2 doesn't work under 4.3+
7595 collect2name=`${CC} -print-prog-name=collect2`
7596 if test -f "$collect2name" &&
7597 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7598 then
7599 # We have reworked collect2
7601 else
7602 # We have old collect2
7603 hardcode_direct=unsupported
7604 # It fails to find uninstalled libraries when the uninstalled
7605 # path is not listed in the libpath. Setting hardcode_minus_L
7606 # to unsupported forces relinking
7607 hardcode_minus_L=yes
7608 hardcode_libdir_flag_spec='-L$libdir'
7609 hardcode_libdir_separator=
7612 esac
7613 shared_flag='-shared'
7614 if test "$aix_use_runtimelinking" = yes; then
7615 shared_flag="$shared_flag "'${wl}-G'
7617 else
7618 # not using gcc
7619 if test "$host_cpu" = ia64; then
7620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7621 # chokes on -Wl,-G. The following line is correct:
7622 shared_flag='-G'
7623 else
7624 if test "$aix_use_runtimelinking" = yes; then
7625 shared_flag='${wl}-G'
7626 else
7627 shared_flag='${wl}-bM:SRE'
7632 export_dynamic_flag_spec='${wl}-bexpall'
7633 # It seems that -bexpall does not export symbols beginning with
7634 # underscore (_), so it is better to generate a list of symbols to export.
7635 always_export_symbols=yes
7636 if test "$aix_use_runtimelinking" = yes; then
7637 # Warning - without using the other runtime loading flags (-brtl),
7638 # -berok will link without error, but may produce a broken library.
7639 allow_undefined_flag='-berok'
7640 # Determine the default libpath from the value encoded in an
7641 # empty executable.
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7646 main ()
7650 return 0;
7652 _ACEOF
7653 if ac_fn_c_try_link "$LINENO"; then :
7655 lt_aix_libpath_sed='
7656 /Import File Strings/,/^$/ {
7657 /^0/ {
7658 s/^0 *\(.*\)$/\1/
7662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7663 # Check for a 64-bit object if we didn't find anything.
7664 if test -z "$aix_libpath"; then
7665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7668 rm -f core conftest.err conftest.$ac_objext \
7669 conftest$ac_exeext conftest.$ac_ext
7670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7673 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"
7674 else
7675 if test "$host_cpu" = ia64; then
7676 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7677 allow_undefined_flag="-z nodefs"
7678 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"
7679 else
7680 # Determine the default libpath from the value encoded in an
7681 # empty executable.
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7686 main ()
7690 return 0;
7692 _ACEOF
7693 if ac_fn_c_try_link "$LINENO"; then :
7695 lt_aix_libpath_sed='
7696 /Import File Strings/,/^$/ {
7697 /^0/ {
7698 s/^0 *\(.*\)$/\1/
7702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7703 # Check for a 64-bit object if we didn't find anything.
7704 if test -z "$aix_libpath"; then
7705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7708 rm -f core conftest.err conftest.$ac_objext \
7709 conftest$ac_exeext conftest.$ac_ext
7710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7713 # Warning - without using the other run time loading flags,
7714 # -berok will link without error, but may produce a broken library.
7715 no_undefined_flag=' ${wl}-bernotok'
7716 allow_undefined_flag=' ${wl}-berok'
7717 # Exported symbols can be pulled into shared objects from archives
7718 whole_archive_flag_spec='$convenience'
7719 archive_cmds_need_lc=yes
7720 # This is similar to how AIX traditionally builds its shared libraries.
7721 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'
7726 amigaos*)
7727 case $host_cpu in
7728 powerpc)
7729 # see comment about AmigaOS4 .so support
7730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7731 archive_expsym_cmds=''
7733 m68k)
7734 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)'
7735 hardcode_libdir_flag_spec='-L$libdir'
7736 hardcode_minus_L=yes
7738 esac
7741 bsdi[45]*)
7742 export_dynamic_flag_spec=-rdynamic
7745 cygwin* | mingw* | pw32* | cegcc*)
7746 # When not using gcc, we currently assume that we are using
7747 # Microsoft Visual C++.
7748 # hardcode_libdir_flag_spec is actually meaningless, as there is
7749 # no search path for DLLs.
7750 hardcode_libdir_flag_spec=' '
7751 allow_undefined_flag=unsupported
7752 # Tell ltmain to make .lib files, not .a files.
7753 libext=lib
7754 # Tell ltmain to make .dll files, not .so files.
7755 shrext_cmds=".dll"
7756 # FIXME: Setting linknames here is a bad hack.
7757 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7758 # The linker will automatically build a .lib file if we build a DLL.
7759 old_archive_from_new_cmds='true'
7760 # FIXME: Should let the user specify the lib program.
7761 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7762 fix_srcfile_path='`cygpath -w "$srcfile"`'
7763 enable_shared_with_static_runtimes=yes
7766 darwin* | rhapsody*)
7769 archive_cmds_need_lc=no
7770 hardcode_direct=no
7771 hardcode_automatic=yes
7772 hardcode_shlibpath_var=unsupported
7773 whole_archive_flag_spec=''
7774 link_all_deplibs=yes
7775 allow_undefined_flag="$_lt_dar_allow_undefined"
7776 case $cc_basename in
7777 ifort*) _lt_dar_can_shared=yes ;;
7778 *) _lt_dar_can_shared=$GCC ;;
7779 esac
7780 if test "$_lt_dar_can_shared" = "yes"; then
7781 output_verbose_link_cmd=echo
7782 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7783 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7784 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}"
7785 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}"
7787 else
7788 ld_shlibs=no
7793 dgux*)
7794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7795 hardcode_libdir_flag_spec='-L$libdir'
7796 hardcode_shlibpath_var=no
7799 freebsd1*)
7800 ld_shlibs=no
7803 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7804 # support. Future versions do this automatically, but an explicit c++rt0.o
7805 # does not break anything, and helps significantly (at the cost of a little
7806 # extra space).
7807 freebsd2.2*)
7808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7809 hardcode_libdir_flag_spec='-R$libdir'
7810 hardcode_direct=yes
7811 hardcode_shlibpath_var=no
7814 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7815 freebsd2*)
7816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7817 hardcode_direct=yes
7818 hardcode_minus_L=yes
7819 hardcode_shlibpath_var=no
7822 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7823 freebsd* | dragonfly*)
7824 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7825 hardcode_libdir_flag_spec='-R$libdir'
7826 hardcode_direct=yes
7827 hardcode_shlibpath_var=no
7830 hpux9*)
7831 if test "$GCC" = yes; then
7832 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'
7833 else
7834 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'
7836 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7837 hardcode_libdir_separator=:
7838 hardcode_direct=yes
7840 # hardcode_minus_L: Not really in the search PATH,
7841 # but as the default location of the library.
7842 hardcode_minus_L=yes
7843 export_dynamic_flag_spec='${wl}-E'
7846 hpux10*)
7847 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7848 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7849 else
7850 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7852 if test "$with_gnu_ld" = no; then
7853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7854 hardcode_libdir_flag_spec_ld='+b $libdir'
7855 hardcode_libdir_separator=:
7856 hardcode_direct=yes
7857 hardcode_direct_absolute=yes
7858 export_dynamic_flag_spec='${wl}-E'
7859 # hardcode_minus_L: Not really in the search PATH,
7860 # but as the default location of the library.
7861 hardcode_minus_L=yes
7865 hpux11*)
7866 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7867 case $host_cpu in
7868 hppa*64*)
7869 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7871 ia64*)
7872 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7875 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7877 esac
7878 else
7879 case $host_cpu in
7880 hppa*64*)
7881 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7883 ia64*)
7884 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7887 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7889 esac
7891 if test "$with_gnu_ld" = no; then
7892 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7893 hardcode_libdir_separator=:
7895 case $host_cpu in
7896 hppa*64*|ia64*)
7897 hardcode_direct=no
7898 hardcode_shlibpath_var=no
7901 hardcode_direct=yes
7902 hardcode_direct_absolute=yes
7903 export_dynamic_flag_spec='${wl}-E'
7905 # hardcode_minus_L: Not really in the search PATH,
7906 # but as the default location of the library.
7907 hardcode_minus_L=yes
7909 esac
7913 irix5* | irix6* | nonstopux*)
7914 if test "$GCC" = yes; then
7915 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'
7916 # Try to use the -exported_symbol ld option, if it does not
7917 # work, assume that -exports_file does not work either and
7918 # implicitly export all symbols.
7919 save_LDFLAGS="$LDFLAGS"
7920 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 int foo(void) {}
7924 _ACEOF
7925 if ac_fn_c_try_link "$LINENO"; then :
7926 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'
7929 rm -f core conftest.err conftest.$ac_objext \
7930 conftest$ac_exeext conftest.$ac_ext
7931 LDFLAGS="$save_LDFLAGS"
7932 else
7933 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'
7934 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'
7936 archive_cmds_need_lc='no'
7937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7938 hardcode_libdir_separator=:
7939 inherit_rpath=yes
7940 link_all_deplibs=yes
7943 netbsd*)
7944 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7946 else
7947 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7949 hardcode_libdir_flag_spec='-R$libdir'
7950 hardcode_direct=yes
7951 hardcode_shlibpath_var=no
7954 newsos6)
7955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7956 hardcode_direct=yes
7957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7958 hardcode_libdir_separator=:
7959 hardcode_shlibpath_var=no
7962 *nto* | *qnx*)
7965 openbsd*)
7966 if test -f /usr/libexec/ld.so; then
7967 hardcode_direct=yes
7968 hardcode_shlibpath_var=no
7969 hardcode_direct_absolute=yes
7970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7972 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7973 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7974 export_dynamic_flag_spec='${wl}-E'
7975 else
7976 case $host_os in
7977 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7979 hardcode_libdir_flag_spec='-R$libdir'
7982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7983 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7985 esac
7987 else
7988 ld_shlibs=no
7992 os2*)
7993 hardcode_libdir_flag_spec='-L$libdir'
7994 hardcode_minus_L=yes
7995 allow_undefined_flag=unsupported
7996 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'
7997 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8000 osf3*)
8001 if test "$GCC" = yes; then
8002 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8003 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'
8004 else
8005 allow_undefined_flag=' -expect_unresolved \*'
8006 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'
8008 archive_cmds_need_lc='no'
8009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8010 hardcode_libdir_separator=:
8013 osf4* | osf5*) # as osf3* with the addition of -msym flag
8014 if test "$GCC" = yes; then
8015 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8016 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'
8017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8018 else
8019 allow_undefined_flag=' -expect_unresolved \*'
8020 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'
8021 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~
8022 $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'
8024 # Both c and cxx compiler support -rpath directly
8025 hardcode_libdir_flag_spec='-rpath $libdir'
8027 archive_cmds_need_lc='no'
8028 hardcode_libdir_separator=:
8031 solaris*)
8032 no_undefined_flag=' -z defs'
8033 if test "$GCC" = yes; then
8034 wlarc='${wl}'
8035 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8036 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8037 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8038 else
8039 case `$CC -V 2>&1` in
8040 *"Compilers 5.0"*)
8041 wlarc=''
8042 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8043 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8044 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8047 wlarc='${wl}'
8048 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8049 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8050 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8052 esac
8054 hardcode_libdir_flag_spec='-R$libdir'
8055 hardcode_shlibpath_var=no
8056 case $host_os in
8057 solaris2.[0-5] | solaris2.[0-5].*) ;;
8059 # The compiler driver will combine and reorder linker options,
8060 # but understands `-z linker_flag'. GCC discards it without `$wl',
8061 # but is careful enough not to reorder.
8062 # Supported since Solaris 2.6 (maybe 2.5.1?)
8063 if test "$GCC" = yes; then
8064 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8065 else
8066 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8069 esac
8070 link_all_deplibs=yes
8073 sunos4*)
8074 if test "x$host_vendor" = xsequent; then
8075 # Use $CC to link under sequent, because it throws in some extra .o
8076 # files that make .init and .fini sections work.
8077 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8078 else
8079 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8081 hardcode_libdir_flag_spec='-L$libdir'
8082 hardcode_direct=yes
8083 hardcode_minus_L=yes
8084 hardcode_shlibpath_var=no
8087 sysv4)
8088 case $host_vendor in
8089 sni)
8090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8091 hardcode_direct=yes # is this really true???
8093 siemens)
8094 ## LD is ld it makes a PLAMLIB
8095 ## CC just makes a GrossModule.
8096 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8097 reload_cmds='$CC -r -o $output$reload_objs'
8098 hardcode_direct=no
8100 motorola)
8101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8102 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8104 esac
8105 runpath_var='LD_RUN_PATH'
8106 hardcode_shlibpath_var=no
8109 sysv4.3*)
8110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8111 hardcode_shlibpath_var=no
8112 export_dynamic_flag_spec='-Bexport'
8115 sysv4*MP*)
8116 if test -d /usr/nec; then
8117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8118 hardcode_shlibpath_var=no
8119 runpath_var=LD_RUN_PATH
8120 hardcode_runpath_var=yes
8121 ld_shlibs=yes
8125 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8126 no_undefined_flag='${wl}-z,text'
8127 archive_cmds_need_lc=no
8128 hardcode_shlibpath_var=no
8129 runpath_var='LD_RUN_PATH'
8131 if test "$GCC" = yes; then
8132 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8133 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8134 else
8135 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8136 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8140 sysv5* | sco3.2v5* | sco5v6*)
8141 # Note: We can NOT use -z defs as we might desire, because we do not
8142 # link with -lc, and that would cause any symbols used from libc to
8143 # always be unresolved, which means just about no library would
8144 # ever link correctly. If we're not using GNU ld we use -z text
8145 # though, which does catch some bad symbols but isn't as heavy-handed
8146 # as -z defs.
8147 no_undefined_flag='${wl}-z,text'
8148 allow_undefined_flag='${wl}-z,nodefs'
8149 archive_cmds_need_lc=no
8150 hardcode_shlibpath_var=no
8151 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8152 hardcode_libdir_separator=':'
8153 link_all_deplibs=yes
8154 export_dynamic_flag_spec='${wl}-Bexport'
8155 runpath_var='LD_RUN_PATH'
8157 if test "$GCC" = yes; then
8158 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8159 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8160 else
8161 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8162 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8166 uts4*)
8167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8168 hardcode_libdir_flag_spec='-L$libdir'
8169 hardcode_shlibpath_var=no
8173 ld_shlibs=no
8175 esac
8177 if test x$host_vendor = xsni; then
8178 case $host in
8179 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8180 export_dynamic_flag_spec='${wl}-Blargedynsym'
8182 esac
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8187 $as_echo "$ld_shlibs" >&6; }
8188 test "$ld_shlibs" = no && can_build_shared=no
8190 with_gnu_ld=$with_gnu_ld
8207 # Do we need to explicitly link libc?
8209 case "x$archive_cmds_need_lc" in
8210 x|xyes)
8211 # Assume -lc should be added
8212 archive_cmds_need_lc=yes
8214 if test "$enable_shared" = yes && test "$GCC" = yes; then
8215 case $archive_cmds in
8216 *'~'*)
8217 # FIXME: we may have to deal with multi-command sequences.
8219 '$CC '*)
8220 # Test whether the compiler implicitly links with -lc since on some
8221 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8222 # to ld, don't add -lc before -lgcc.
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8224 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8225 $RM conftest*
8226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8229 (eval $ac_compile) 2>&5
8230 ac_status=$?
8231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8232 test $ac_status = 0; } 2>conftest.err; then
8233 soname=conftest
8234 lib=conftest
8235 libobjs=conftest.$ac_objext
8236 deplibs=
8237 wl=$lt_prog_compiler_wl
8238 pic_flag=$lt_prog_compiler_pic
8239 compiler_flags=-v
8240 linker_flags=-v
8241 verstring=
8242 output_objdir=.
8243 libname=conftest
8244 lt_save_allow_undefined_flag=$allow_undefined_flag
8245 allow_undefined_flag=
8246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8247 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8248 ac_status=$?
8249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8250 test $ac_status = 0; }
8251 then
8252 archive_cmds_need_lc=no
8253 else
8254 archive_cmds_need_lc=yes
8256 allow_undefined_flag=$lt_save_allow_undefined_flag
8257 else
8258 cat conftest.err 1>&5
8260 $RM conftest*
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8262 $as_echo "$archive_cmds_need_lc" >&6; }
8264 esac
8267 esac
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8426 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8428 if test "$GCC" = yes; then
8429 case $host_os in
8430 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8431 *) lt_awk_arg="/^libraries:/" ;;
8432 esac
8433 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8434 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8435 # if the path contains ";" then we assume it to be the separator
8436 # otherwise default to the standard path separator (i.e. ":") - it is
8437 # assumed that no part of a normal pathname contains ";" but that should
8438 # okay in the real world where ";" in dirpaths is itself problematic.
8439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8440 else
8441 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8443 # Ok, now we have the path, separated by spaces, we can step through it
8444 # and add multilib dir if necessary.
8445 lt_tmp_lt_search_path_spec=
8446 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8447 for lt_sys_path in $lt_search_path_spec; do
8448 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8449 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8450 else
8451 test -d "$lt_sys_path" && \
8452 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8454 done
8455 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8456 BEGIN {RS=" "; FS="/|\n";} {
8457 lt_foo="";
8458 lt_count=0;
8459 for (lt_i = NF; lt_i > 0; lt_i--) {
8460 if ($lt_i != "" && $lt_i != ".") {
8461 if ($lt_i == "..") {
8462 lt_count++;
8463 } else {
8464 if (lt_count == 0) {
8465 lt_foo="/" $lt_i lt_foo;
8466 } else {
8467 lt_count--;
8472 if (lt_foo != "") { lt_freq[lt_foo]++; }
8473 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8475 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8476 else
8477 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8479 library_names_spec=
8480 libname_spec='lib$name'
8481 soname_spec=
8482 shrext_cmds=".so"
8483 postinstall_cmds=
8484 postuninstall_cmds=
8485 finish_cmds=
8486 finish_eval=
8487 shlibpath_var=
8488 shlibpath_overrides_runpath=unknown
8489 version_type=none
8490 dynamic_linker="$host_os ld.so"
8491 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8492 need_lib_prefix=unknown
8493 hardcode_into_libs=no
8495 # when you set need_version to no, make sure it does not cause -set_version
8496 # flags to be left without arguments
8497 need_version=unknown
8499 case $host_os in
8500 aix3*)
8501 version_type=linux
8502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8503 shlibpath_var=LIBPATH
8505 # AIX 3 has no versioning support, so we append a major version to the name.
8506 soname_spec='${libname}${release}${shared_ext}$major'
8509 aix[4-9]*)
8510 version_type=linux
8511 need_lib_prefix=no
8512 need_version=no
8513 hardcode_into_libs=yes
8514 if test "$host_cpu" = ia64; then
8515 # AIX 5 supports IA64
8516 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8517 shlibpath_var=LD_LIBRARY_PATH
8518 else
8519 # With GCC up to 2.95.x, collect2 would create an import file
8520 # for dependence libraries. The import file would start with
8521 # the line `#! .'. This would cause the generated library to
8522 # depend on `.', always an invalid library. This was fixed in
8523 # development snapshots of GCC prior to 3.0.
8524 case $host_os in
8525 aix4 | aix4.[01] | aix4.[01].*)
8526 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8527 echo ' yes '
8528 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8530 else
8531 can_build_shared=no
8534 esac
8535 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8536 # soname into executable. Probably we can add versioning support to
8537 # collect2, so additional links can be useful in future.
8538 if test "$aix_use_runtimelinking" = yes; then
8539 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8540 # instead of lib<name>.a to let people know that these are not
8541 # typical AIX shared libraries.
8542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8543 else
8544 # We preserve .a as extension for shared libraries through AIX4.2
8545 # and later when we are not doing run time linking.
8546 library_names_spec='${libname}${release}.a $libname.a'
8547 soname_spec='${libname}${release}${shared_ext}$major'
8549 shlibpath_var=LIBPATH
8553 amigaos*)
8554 case $host_cpu in
8555 powerpc)
8556 # Since July 2007 AmigaOS4 officially supports .so libraries.
8557 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8560 m68k)
8561 library_names_spec='$libname.ixlibrary $libname.a'
8562 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8563 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'
8565 esac
8568 beos*)
8569 library_names_spec='${libname}${shared_ext}'
8570 dynamic_linker="$host_os ld.so"
8571 shlibpath_var=LIBRARY_PATH
8574 bsdi[45]*)
8575 version_type=linux
8576 need_version=no
8577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8578 soname_spec='${libname}${release}${shared_ext}$major'
8579 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8580 shlibpath_var=LD_LIBRARY_PATH
8581 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8582 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8583 # the default ld.so.conf also contains /usr/contrib/lib and
8584 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8585 # libtool to hard-code these into programs
8588 cygwin* | mingw* | pw32* | cegcc*)
8589 version_type=windows
8590 shrext_cmds=".dll"
8591 need_version=no
8592 need_lib_prefix=no
8594 case $GCC,$host_os in
8595 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8596 library_names_spec='$libname.dll.a'
8597 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8598 postinstall_cmds='base_file=`basename \${file}`~
8599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8600 dldir=$destdir/`dirname \$dlpath`~
8601 test -d \$dldir || mkdir -p \$dldir~
8602 $install_prog $dir/$dlname \$dldir/$dlname~
8603 chmod a+x \$dldir/$dlname~
8604 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8605 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8607 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8608 dlpath=$dir/\$dldll~
8609 $RM \$dlpath'
8610 shlibpath_overrides_runpath=yes
8612 case $host_os in
8613 cygwin*)
8614 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8615 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8616 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8618 mingw* | cegcc*)
8619 # MinGW DLLs use traditional 'lib' prefix
8620 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8621 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8622 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8623 # It is most probably a Windows format PATH printed by
8624 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8625 # path with ; separators, and with drive letters. We can handle the
8626 # drive letters (cygwin fileutils understands them), so leave them,
8627 # especially as we might pass files found there to a mingw objdump,
8628 # which wouldn't understand a cygwinified path. Ahh.
8629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8630 else
8631 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8634 pw32*)
8635 # pw32 DLLs use 'pw' prefix rather than 'lib'
8636 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8638 esac
8642 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8644 esac
8645 dynamic_linker='Win32 ld.exe'
8646 # FIXME: first we should search . and the directory the executable is in
8647 shlibpath_var=PATH
8650 darwin* | rhapsody*)
8651 dynamic_linker="$host_os dyld"
8652 version_type=darwin
8653 need_lib_prefix=no
8654 need_version=no
8655 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8656 soname_spec='${libname}${release}${major}$shared_ext'
8657 shlibpath_overrides_runpath=yes
8658 shlibpath_var=DYLD_LIBRARY_PATH
8659 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8661 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8665 dgux*)
8666 version_type=linux
8667 need_lib_prefix=no
8668 need_version=no
8669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8670 soname_spec='${libname}${release}${shared_ext}$major'
8671 shlibpath_var=LD_LIBRARY_PATH
8674 freebsd1*)
8675 dynamic_linker=no
8678 freebsd* | dragonfly*)
8679 # DragonFly does not have aout. When/if they implement a new
8680 # versioning mechanism, adjust this.
8681 if test -x /usr/bin/objformat; then
8682 objformat=`/usr/bin/objformat`
8683 else
8684 case $host_os in
8685 freebsd[123]*) objformat=aout ;;
8686 *) objformat=elf ;;
8687 esac
8689 # Handle Gentoo/FreeBSD as it was Linux
8690 case $host_vendor in
8691 gentoo)
8692 version_type=linux ;;
8694 version_type=freebsd-$objformat ;;
8695 esac
8697 case $version_type in
8698 freebsd-elf*)
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8700 need_version=no
8701 need_lib_prefix=no
8703 freebsd-*)
8704 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8705 need_version=yes
8707 linux)
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 need_lib_prefix=no
8711 need_version=no
8713 esac
8714 shlibpath_var=LD_LIBRARY_PATH
8715 case $host_os in
8716 freebsd2*)
8717 shlibpath_overrides_runpath=yes
8719 freebsd3.[01]* | freebsdelf3.[01]*)
8720 shlibpath_overrides_runpath=yes
8721 hardcode_into_libs=yes
8723 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8724 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8725 shlibpath_overrides_runpath=no
8726 hardcode_into_libs=yes
8728 *) # from 4.6 on, and DragonFly
8729 shlibpath_overrides_runpath=yes
8730 hardcode_into_libs=yes
8732 esac
8735 gnu*)
8736 version_type=linux
8737 need_lib_prefix=no
8738 need_version=no
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8740 soname_spec='${libname}${release}${shared_ext}$major'
8741 shlibpath_var=LD_LIBRARY_PATH
8742 hardcode_into_libs=yes
8745 hpux9* | hpux10* | hpux11*)
8746 # Give a soname corresponding to the major version so that dld.sl refuses to
8747 # link against other versions.
8748 version_type=sunos
8749 need_lib_prefix=no
8750 need_version=no
8751 case $host_cpu in
8752 ia64*)
8753 shrext_cmds='.so'
8754 hardcode_into_libs=yes
8755 dynamic_linker="$host_os dld.so"
8756 shlibpath_var=LD_LIBRARY_PATH
8757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8759 soname_spec='${libname}${release}${shared_ext}$major'
8760 if test "X$HPUX_IA64_MODE" = X32; then
8761 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8762 else
8763 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8765 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8767 hppa*64*)
8768 shrext_cmds='.sl'
8769 hardcode_into_libs=yes
8770 dynamic_linker="$host_os dld.sl"
8771 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8774 soname_spec='${libname}${release}${shared_ext}$major'
8775 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8779 shrext_cmds='.sl'
8780 dynamic_linker="$host_os dld.sl"
8781 shlibpath_var=SHLIB_PATH
8782 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8786 esac
8787 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8788 postinstall_cmds='chmod 555 $lib'
8791 interix[3-9]*)
8792 version_type=linux
8793 need_lib_prefix=no
8794 need_version=no
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8796 soname_spec='${libname}${release}${shared_ext}$major'
8797 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8798 shlibpath_var=LD_LIBRARY_PATH
8799 shlibpath_overrides_runpath=no
8800 hardcode_into_libs=yes
8803 irix5* | irix6* | nonstopux*)
8804 case $host_os in
8805 nonstopux*) version_type=nonstopux ;;
8807 if test "$lt_cv_prog_gnu_ld" = yes; then
8808 version_type=linux
8809 else
8810 version_type=irix
8811 fi ;;
8812 esac
8813 need_lib_prefix=no
8814 need_version=no
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8817 case $host_os in
8818 irix5* | nonstopux*)
8819 libsuff= shlibsuff=
8822 case $LD in # libtool.m4 will add one of these switches to LD
8823 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8824 libsuff= shlibsuff= libmagic=32-bit;;
8825 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8826 libsuff=32 shlibsuff=N32 libmagic=N32;;
8827 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8828 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8829 *) libsuff= shlibsuff= libmagic=never-match;;
8830 esac
8832 esac
8833 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8834 shlibpath_overrides_runpath=no
8835 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8836 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8837 hardcode_into_libs=yes
8840 # No shared lib support for Linux oldld, aout, or coff.
8841 linux*oldld* | linux*aout* | linux*coff*)
8842 dynamic_linker=no
8845 # This must be Linux ELF.
8846 linux* | k*bsd*-gnu)
8847 version_type=linux
8848 need_lib_prefix=no
8849 need_version=no
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851 soname_spec='${libname}${release}${shared_ext}$major'
8852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8853 shlibpath_var=LD_LIBRARY_PATH
8854 shlibpath_overrides_runpath=no
8855 # Some binutils ld are patched to set DT_RUNPATH
8856 save_LDFLAGS=$LDFLAGS
8857 save_libdir=$libdir
8858 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8859 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8864 main ()
8868 return 0;
8870 _ACEOF
8871 if ac_fn_c_try_link "$LINENO"; then :
8872 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8873 shlibpath_overrides_runpath=yes
8876 rm -f core conftest.err conftest.$ac_objext \
8877 conftest$ac_exeext conftest.$ac_ext
8878 LDFLAGS=$save_LDFLAGS
8879 libdir=$save_libdir
8881 # This implies no fast_install, which is unacceptable.
8882 # Some rework will be needed to allow for fast_install
8883 # before this can be enabled.
8884 hardcode_into_libs=yes
8886 # Append ld.so.conf contents to the search path
8887 if test -f /etc/ld.so.conf; then
8888 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' ' '`
8889 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8892 # We used to test for /lib/ld.so.1 and disable shared libraries on
8893 # powerpc, because MkLinux only supported shared libraries with the
8894 # GNU dynamic linker. Since this was broken with cross compilers,
8895 # most powerpc-linux boxes support dynamic linking these days and
8896 # people can always --disable-shared, the test was removed, and we
8897 # assume the GNU/Linux dynamic linker is in use.
8898 dynamic_linker='GNU/Linux ld.so'
8901 netbsd*)
8902 version_type=sunos
8903 need_lib_prefix=no
8904 need_version=no
8905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8908 dynamic_linker='NetBSD (a.out) ld.so'
8909 else
8910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8911 soname_spec='${libname}${release}${shared_ext}$major'
8912 dynamic_linker='NetBSD ld.elf_so'
8914 shlibpath_var=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath=yes
8916 hardcode_into_libs=yes
8919 newsos6)
8920 version_type=linux
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=yes
8926 *nto* | *qnx*)
8927 version_type=qnx
8928 need_lib_prefix=no
8929 need_version=no
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 shlibpath_var=LD_LIBRARY_PATH
8933 shlibpath_overrides_runpath=no
8934 hardcode_into_libs=yes
8935 dynamic_linker='ldqnx.so'
8938 openbsd*)
8939 version_type=sunos
8940 sys_lib_dlsearch_path_spec="/usr/lib"
8941 need_lib_prefix=no
8942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8943 case $host_os in
8944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8945 *) need_version=no ;;
8946 esac
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8951 case $host_os in
8952 openbsd2.[89] | openbsd2.[89].*)
8953 shlibpath_overrides_runpath=no
8956 shlibpath_overrides_runpath=yes
8958 esac
8959 else
8960 shlibpath_overrides_runpath=yes
8964 os2*)
8965 libname_spec='$name'
8966 shrext_cmds=".dll"
8967 need_lib_prefix=no
8968 library_names_spec='$libname${shared_ext} $libname.a'
8969 dynamic_linker='OS/2 ld.exe'
8970 shlibpath_var=LIBPATH
8973 osf3* | osf4* | osf5*)
8974 version_type=osf
8975 need_lib_prefix=no
8976 need_version=no
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8984 rdos*)
8985 dynamic_linker=no
8988 solaris*)
8989 version_type=linux
8990 need_lib_prefix=no
8991 need_version=no
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=yes
8996 hardcode_into_libs=yes
8997 # ldd complains unless libraries are executable
8998 postinstall_cmds='chmod +x $lib'
9001 sunos4*)
9002 version_type=sunos
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9004 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 shlibpath_overrides_runpath=yes
9007 if test "$with_gnu_ld" = yes; then
9008 need_lib_prefix=no
9010 need_version=yes
9013 sysv4 | sysv4.3*)
9014 version_type=linux
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016 soname_spec='${libname}${release}${shared_ext}$major'
9017 shlibpath_var=LD_LIBRARY_PATH
9018 case $host_vendor in
9019 sni)
9020 shlibpath_overrides_runpath=no
9021 need_lib_prefix=no
9022 runpath_var=LD_RUN_PATH
9024 siemens)
9025 need_lib_prefix=no
9027 motorola)
9028 need_lib_prefix=no
9029 need_version=no
9030 shlibpath_overrides_runpath=no
9031 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9033 esac
9036 sysv4*MP*)
9037 if test -d /usr/nec ;then
9038 version_type=linux
9039 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9040 soname_spec='$libname${shared_ext}.$major'
9041 shlibpath_var=LD_LIBRARY_PATH
9045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9046 version_type=freebsd-elf
9047 need_lib_prefix=no
9048 need_version=no
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9050 soname_spec='${libname}${release}${shared_ext}$major'
9051 shlibpath_var=LD_LIBRARY_PATH
9052 shlibpath_overrides_runpath=yes
9053 hardcode_into_libs=yes
9054 if test "$with_gnu_ld" = yes; then
9055 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9056 else
9057 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9058 case $host_os in
9059 sco3.2v5*)
9060 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9062 esac
9064 sys_lib_dlsearch_path_spec='/usr/lib'
9067 tpf*)
9068 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9069 version_type=linux
9070 need_lib_prefix=no
9071 need_version=no
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=no
9075 hardcode_into_libs=yes
9078 uts4*)
9079 version_type=linux
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 shlibpath_var=LD_LIBRARY_PATH
9086 dynamic_linker=no
9088 esac
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9090 $as_echo "$dynamic_linker" >&6; }
9091 test "$dynamic_linker" = no && can_build_shared=no
9093 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9094 if test "$GCC" = yes; then
9095 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9098 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9099 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9101 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9102 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9192 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9193 hardcode_action=
9194 if test -n "$hardcode_libdir_flag_spec" ||
9195 test -n "$runpath_var" ||
9196 test "X$hardcode_automatic" = "Xyes" ; then
9198 # We can hardcode non-existent directories.
9199 if test "$hardcode_direct" != no &&
9200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9201 # have to relink, otherwise we might link with an installed library
9202 # when we should be linking with a yet-to-be-installed one
9203 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9204 test "$hardcode_minus_L" != no; then
9205 # Linking always hardcodes the temporary library directory.
9206 hardcode_action=relink
9207 else
9208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9209 hardcode_action=immediate
9211 else
9212 # We cannot hardcode anything, or else we can only hardcode existing
9213 # directories.
9214 hardcode_action=unsupported
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9217 $as_echo "$hardcode_action" >&6; }
9219 if test "$hardcode_action" = relink ||
9220 test "$inherit_rpath" = yes; then
9221 # Fast installation is not supported
9222 enable_fast_install=no
9223 elif test "$shlibpath_overrides_runpath" = yes ||
9224 test "$enable_shared" = no; then
9225 # Fast installation is not necessary
9226 enable_fast_install=needless
9234 if test "x$enable_dlopen" != xyes; then
9235 enable_dlopen=unknown
9236 enable_dlopen_self=unknown
9237 enable_dlopen_self_static=unknown
9238 else
9239 lt_cv_dlopen=no
9240 lt_cv_dlopen_libs=
9242 case $host_os in
9243 beos*)
9244 lt_cv_dlopen="load_add_on"
9245 lt_cv_dlopen_libs=
9246 lt_cv_dlopen_self=yes
9249 mingw* | pw32* | cegcc*)
9250 lt_cv_dlopen="LoadLibrary"
9251 lt_cv_dlopen_libs=
9254 cygwin*)
9255 lt_cv_dlopen="dlopen"
9256 lt_cv_dlopen_libs=
9259 darwin*)
9260 # if libdl is installed we need to link against it
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9263 if ${ac_cv_lib_dl_dlopen+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-ldl $LIBS"
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9271 /* Override any GCC internal prototype to avoid an error.
9272 Use char because int might match the return type of a GCC
9273 builtin and then its argument prototype would still apply. */
9274 #ifdef __cplusplus
9275 extern "C"
9276 #endif
9277 char dlopen ();
9279 main ()
9281 return dlopen ();
9283 return 0;
9285 _ACEOF
9286 if ac_fn_c_try_link "$LINENO"; then :
9287 ac_cv_lib_dl_dlopen=yes
9288 else
9289 ac_cv_lib_dl_dlopen=no
9291 rm -f core conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293 LIBS=$ac_check_lib_save_LIBS
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9296 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9297 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9299 else
9301 lt_cv_dlopen="dyld"
9302 lt_cv_dlopen_libs=
9303 lt_cv_dlopen_self=yes
9310 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9311 if test "x$ac_cv_func_shl_load" = xyes; then :
9312 lt_cv_dlopen="shl_load"
9313 else
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9315 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9316 if ${ac_cv_lib_dld_shl_load+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 ac_check_lib_save_LIBS=$LIBS
9320 LIBS="-ldld $LIBS"
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322 /* end confdefs.h. */
9324 /* Override any GCC internal prototype to avoid an error.
9325 Use char because int might match the return type of a GCC
9326 builtin and then its argument prototype would still apply. */
9327 #ifdef __cplusplus
9328 extern "C"
9329 #endif
9330 char shl_load ();
9332 main ()
9334 return shl_load ();
9336 return 0;
9338 _ACEOF
9339 if ac_fn_c_try_link "$LINENO"; then :
9340 ac_cv_lib_dld_shl_load=yes
9341 else
9342 ac_cv_lib_dld_shl_load=no
9344 rm -f core conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
9346 LIBS=$ac_check_lib_save_LIBS
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9349 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9350 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9351 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9352 else
9353 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9354 if test "x$ac_cv_func_dlopen" = xyes; then :
9355 lt_cv_dlopen="dlopen"
9356 else
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9358 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9359 if ${ac_cv_lib_dl_dlopen+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 ac_check_lib_save_LIBS=$LIBS
9363 LIBS="-ldl $LIBS"
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9367 /* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9370 #ifdef __cplusplus
9371 extern "C"
9372 #endif
9373 char dlopen ();
9375 main ()
9377 return dlopen ();
9379 return 0;
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"; then :
9383 ac_cv_lib_dl_dlopen=yes
9384 else
9385 ac_cv_lib_dl_dlopen=no
9387 rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext conftest.$ac_ext
9389 LIBS=$ac_check_lib_save_LIBS
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9392 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9393 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9395 else
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9397 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9398 if ${ac_cv_lib_svld_dlopen+:} false; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401 ac_check_lib_save_LIBS=$LIBS
9402 LIBS="-lsvld $LIBS"
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9406 /* Override any GCC internal prototype to avoid an error.
9407 Use char because int might match the return type of a GCC
9408 builtin and then its argument prototype would still apply. */
9409 #ifdef __cplusplus
9410 extern "C"
9411 #endif
9412 char dlopen ();
9414 main ()
9416 return dlopen ();
9418 return 0;
9420 _ACEOF
9421 if ac_fn_c_try_link "$LINENO"; then :
9422 ac_cv_lib_svld_dlopen=yes
9423 else
9424 ac_cv_lib_svld_dlopen=no
9426 rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
9428 LIBS=$ac_check_lib_save_LIBS
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9431 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9432 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9433 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9434 else
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9436 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9437 if ${ac_cv_lib_dld_dld_link+:} false; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 ac_check_lib_save_LIBS=$LIBS
9441 LIBS="-ldld $LIBS"
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9445 /* Override any GCC internal prototype to avoid an error.
9446 Use char because int might match the return type of a GCC
9447 builtin and then its argument prototype would still apply. */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 char dld_link ();
9453 main ()
9455 return dld_link ();
9457 return 0;
9459 _ACEOF
9460 if ac_fn_c_try_link "$LINENO"; then :
9461 ac_cv_lib_dld_dld_link=yes
9462 else
9463 ac_cv_lib_dld_dld_link=no
9465 rm -f core conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9467 LIBS=$ac_check_lib_save_LIBS
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9470 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9471 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9472 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9491 esac
9493 if test "x$lt_cv_dlopen" != xno; then
9494 enable_dlopen=yes
9495 else
9496 enable_dlopen=no
9499 case $lt_cv_dlopen in
9500 dlopen)
9501 save_CPPFLAGS="$CPPFLAGS"
9502 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9504 save_LDFLAGS="$LDFLAGS"
9505 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9507 save_LIBS="$LIBS"
9508 LIBS="$lt_cv_dlopen_libs $LIBS"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9511 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9512 if ${lt_cv_dlopen_self+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 if test "$cross_compiling" = yes; then :
9516 lt_cv_dlopen_self=cross
9517 else
9518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9519 lt_status=$lt_dlunknown
9520 cat > conftest.$ac_ext <<_LT_EOF
9521 #line 9521 "configure"
9522 #include "confdefs.h"
9524 #if HAVE_DLFCN_H
9525 #include <dlfcn.h>
9526 #endif
9528 #include <stdio.h>
9530 #ifdef RTLD_GLOBAL
9531 # define LT_DLGLOBAL RTLD_GLOBAL
9532 #else
9533 # ifdef DL_GLOBAL
9534 # define LT_DLGLOBAL DL_GLOBAL
9535 # else
9536 # define LT_DLGLOBAL 0
9537 # endif
9538 #endif
9540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9541 find out it does not work in some platform. */
9542 #ifndef LT_DLLAZY_OR_NOW
9543 # ifdef RTLD_LAZY
9544 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9545 # else
9546 # ifdef DL_LAZY
9547 # define LT_DLLAZY_OR_NOW DL_LAZY
9548 # else
9549 # ifdef RTLD_NOW
9550 # define LT_DLLAZY_OR_NOW RTLD_NOW
9551 # else
9552 # ifdef DL_NOW
9553 # define LT_DLLAZY_OR_NOW DL_NOW
9554 # else
9555 # define LT_DLLAZY_OR_NOW 0
9556 # endif
9557 # endif
9558 # endif
9559 # endif
9560 #endif
9562 void fnord() { int i=42;}
9563 int main ()
9565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9566 int status = $lt_dlunknown;
9568 if (self)
9570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9571 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9572 /* dlclose (self); */
9574 else
9575 puts (dlerror ());
9577 return status;
9579 _LT_EOF
9580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9581 (eval $ac_link) 2>&5
9582 ac_status=$?
9583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9584 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9585 (./conftest; exit; ) >&5 2>/dev/null
9586 lt_status=$?
9587 case x$lt_status in
9588 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9589 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9590 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9591 esac
9592 else :
9593 # compilation failed
9594 lt_cv_dlopen_self=no
9597 rm -fr conftest*
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9602 $as_echo "$lt_cv_dlopen_self" >&6; }
9604 if test "x$lt_cv_dlopen_self" = xyes; then
9605 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9607 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9608 if ${lt_cv_dlopen_self_static+:} false; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 if test "$cross_compiling" = yes; then :
9612 lt_cv_dlopen_self_static=cross
9613 else
9614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9615 lt_status=$lt_dlunknown
9616 cat > conftest.$ac_ext <<_LT_EOF
9617 #line 9617 "configure"
9618 #include "confdefs.h"
9620 #if HAVE_DLFCN_H
9621 #include <dlfcn.h>
9622 #endif
9624 #include <stdio.h>
9626 #ifdef RTLD_GLOBAL
9627 # define LT_DLGLOBAL RTLD_GLOBAL
9628 #else
9629 # ifdef DL_GLOBAL
9630 # define LT_DLGLOBAL DL_GLOBAL
9631 # else
9632 # define LT_DLGLOBAL 0
9633 # endif
9634 #endif
9636 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9637 find out it does not work in some platform. */
9638 #ifndef LT_DLLAZY_OR_NOW
9639 # ifdef RTLD_LAZY
9640 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9641 # else
9642 # ifdef DL_LAZY
9643 # define LT_DLLAZY_OR_NOW DL_LAZY
9644 # else
9645 # ifdef RTLD_NOW
9646 # define LT_DLLAZY_OR_NOW RTLD_NOW
9647 # else
9648 # ifdef DL_NOW
9649 # define LT_DLLAZY_OR_NOW DL_NOW
9650 # else
9651 # define LT_DLLAZY_OR_NOW 0
9652 # endif
9653 # endif
9654 # endif
9655 # endif
9656 #endif
9658 void fnord() { int i=42;}
9659 int main ()
9661 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9662 int status = $lt_dlunknown;
9664 if (self)
9666 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9667 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9668 /* dlclose (self); */
9670 else
9671 puts (dlerror ());
9673 return status;
9675 _LT_EOF
9676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9677 (eval $ac_link) 2>&5
9678 ac_status=$?
9679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9680 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9681 (./conftest; exit; ) >&5 2>/dev/null
9682 lt_status=$?
9683 case x$lt_status in
9684 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9685 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9686 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9687 esac
9688 else :
9689 # compilation failed
9690 lt_cv_dlopen_self_static=no
9693 rm -fr conftest*
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9698 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9701 CPPFLAGS="$save_CPPFLAGS"
9702 LDFLAGS="$save_LDFLAGS"
9703 LIBS="$save_LIBS"
9705 esac
9707 case $lt_cv_dlopen_self in
9708 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9709 *) enable_dlopen_self=unknown ;;
9710 esac
9712 case $lt_cv_dlopen_self_static in
9713 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9714 *) enable_dlopen_self_static=unknown ;;
9715 esac
9734 striplib=
9735 old_striplib=
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9737 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9738 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9739 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9740 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742 $as_echo "yes" >&6; }
9743 else
9744 # FIXME - insert some real tests, host_os isn't really good enough
9745 case $host_os in
9746 darwin*)
9747 if test -n "$STRIP" ; then
9748 striplib="$STRIP -x"
9749 old_striplib="$STRIP -S"
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9751 $as_echo "yes" >&6; }
9752 else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754 $as_echo "no" >&6; }
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9759 $as_echo "no" >&6; }
9761 esac
9775 # Report which library types will actually be built
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9777 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9779 $as_echo "$can_build_shared" >&6; }
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9782 $as_echo_n "checking whether to build shared libraries... " >&6; }
9783 test "$can_build_shared" = "no" && enable_shared=no
9785 # On AIX, shared libraries and static libraries use the same namespace, and
9786 # are all built from PIC.
9787 case $host_os in
9788 aix3*)
9789 test "$enable_shared" = yes && enable_static=no
9790 if test -n "$RANLIB"; then
9791 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9792 postinstall_cmds='$RANLIB $lib'
9796 aix[4-9]*)
9797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9798 test "$enable_shared" = yes && enable_static=no
9801 esac
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9803 $as_echo "$enable_shared" >&6; }
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9806 $as_echo_n "checking whether to build static libraries... " >&6; }
9807 # Make sure either enable_shared or enable_static is yes.
9808 test "$enable_shared" = yes || enable_static=yes
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9810 $as_echo "$enable_static" >&6; }
9816 ac_ext=c
9817 ac_cpp='$CPP $CPPFLAGS'
9818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9822 CC="$lt_save_CC"
9836 ac_config_commands="$ac_config_commands libtool"
9841 # Only expand once:
9844 # Find a good install program. We prefer a C program (faster),
9845 # so one script is as good as another. But avoid the broken or
9846 # incompatible versions:
9847 # SysV /etc/install, /usr/sbin/install
9848 # SunOS /usr/etc/install
9849 # IRIX /sbin/install
9850 # AIX /bin/install
9851 # AmigaOS /C/install, which installs bootblocks on floppy discs
9852 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9853 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9854 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9855 # OS/2's system install, which has a completely different semantic
9856 # ./install, which can be erroneously created by make from ./install.sh.
9857 # Reject install programs that cannot install multiple files.
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9859 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9860 if test -z "$INSTALL"; then
9861 if ${ac_cv_path_install+:} false; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 for as_dir in $PATH
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 # Account for people who put trailing slashes in PATH elements.
9870 case $as_dir/ in #((
9871 ./ | .// | /[cC]/* | \
9872 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9873 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9874 /usr/ucb/* ) ;;
9876 # OSF1 and SCO ODT 3.0 have their own names for install.
9877 # Don't use installbsd from OSF since it installs stuff as root
9878 # by default.
9879 for ac_prog in ginstall scoinst install; do
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9882 if test $ac_prog = install &&
9883 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9884 # AIX install. It has an incompatible calling convention.
9886 elif test $ac_prog = install &&
9887 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9888 # program-specific install script used by HP pwplus--don't use.
9890 else
9891 rm -rf conftest.one conftest.two conftest.dir
9892 echo one > conftest.one
9893 echo two > conftest.two
9894 mkdir conftest.dir
9895 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9896 test -s conftest.one && test -s conftest.two &&
9897 test -s conftest.dir/conftest.one &&
9898 test -s conftest.dir/conftest.two
9899 then
9900 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9901 break 3
9905 done
9906 done
9908 esac
9910 done
9911 IFS=$as_save_IFS
9913 rm -rf conftest.one conftest.two conftest.dir
9916 if test "${ac_cv_path_install+set}" = set; then
9917 INSTALL=$ac_cv_path_install
9918 else
9919 # As a last resort, use the slow shell script. Don't cache a
9920 # value for INSTALL within a source directory, because that will
9921 # break other packages using the cache if that directory is
9922 # removed, or if the value is a relative name.
9923 INSTALL=$ac_install_sh
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9927 $as_echo "$INSTALL" >&6; }
9929 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9930 # It thinks the first close brace ends the variable substitution.
9931 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9933 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9935 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9937 for ac_prog in gawk mawk nawk awk
9939 # Extract the first word of "$ac_prog", so it can be a program name with args.
9940 set dummy $ac_prog; ac_word=$2
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9942 $as_echo_n "checking for $ac_word... " >&6; }
9943 if ${ac_cv_prog_AWK+:} false; then :
9944 $as_echo_n "(cached) " >&6
9945 else
9946 if test -n "$AWK"; then
9947 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9948 else
9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 for as_dir in $PATH
9952 IFS=$as_save_IFS
9953 test -z "$as_dir" && as_dir=.
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9956 ac_cv_prog_AWK="$ac_prog"
9957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9958 break 2
9960 done
9961 done
9962 IFS=$as_save_IFS
9966 AWK=$ac_cv_prog_AWK
9967 if test -n "$AWK"; then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9969 $as_echo "$AWK" >&6; }
9970 else
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972 $as_echo "no" >&6; }
9976 test -n "$AWK" && break
9977 done
9980 #########
9981 # Enable large file support (if special flags are necessary)
9983 # Check whether --enable-largefile was given.
9984 if test "${enable_largefile+set}" = set; then :
9985 enableval=$enable_largefile;
9988 if test "$enable_largefile" != no; then
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9991 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9992 if ${ac_cv_sys_largefile_CC+:} false; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 ac_cv_sys_largefile_CC=no
9996 if test "$GCC" != yes; then
9997 ac_save_CC=$CC
9998 while :; do
9999 # IRIX 6.2 and later do not support large files by default,
10000 # so use the C compiler's -n32 option if that helps.
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10003 #include <sys/types.h>
10004 /* Check that off_t can represent 2**63 - 1 correctly.
10005 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10006 since some C++ compilers masquerading as C compilers
10007 incorrectly reject 9223372036854775807. */
10008 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10009 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10010 && LARGE_OFF_T % 2147483647 == 1)
10011 ? 1 : -1];
10013 main ()
10017 return 0;
10019 _ACEOF
10020 if ac_fn_c_try_compile "$LINENO"; then :
10021 break
10023 rm -f core conftest.err conftest.$ac_objext
10024 CC="$CC -n32"
10025 if ac_fn_c_try_compile "$LINENO"; then :
10026 ac_cv_sys_largefile_CC=' -n32'; break
10028 rm -f core conftest.err conftest.$ac_objext
10029 break
10030 done
10031 CC=$ac_save_CC
10032 rm -f conftest.$ac_ext
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10036 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10037 if test "$ac_cv_sys_largefile_CC" != no; then
10038 CC=$CC$ac_cv_sys_largefile_CC
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10042 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10043 if ${ac_cv_sys_file_offset_bits+:} false; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10046 while :; do
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 #include <sys/types.h>
10050 /* Check that off_t can represent 2**63 - 1 correctly.
10051 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10052 since some C++ compilers masquerading as C compilers
10053 incorrectly reject 9223372036854775807. */
10054 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10055 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10056 && LARGE_OFF_T % 2147483647 == 1)
10057 ? 1 : -1];
10059 main ()
10063 return 0;
10065 _ACEOF
10066 if ac_fn_c_try_compile "$LINENO"; then :
10067 ac_cv_sys_file_offset_bits=no; break
10069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072 #define _FILE_OFFSET_BITS 64
10073 #include <sys/types.h>
10074 /* Check that off_t can represent 2**63 - 1 correctly.
10075 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10076 since some C++ compilers masquerading as C compilers
10077 incorrectly reject 9223372036854775807. */
10078 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10079 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10080 && LARGE_OFF_T % 2147483647 == 1)
10081 ? 1 : -1];
10083 main ()
10087 return 0;
10089 _ACEOF
10090 if ac_fn_c_try_compile "$LINENO"; then :
10091 ac_cv_sys_file_offset_bits=64; break
10093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094 ac_cv_sys_file_offset_bits=unknown
10095 break
10096 done
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10099 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10100 case $ac_cv_sys_file_offset_bits in #(
10101 no | unknown) ;;
10103 cat >>confdefs.h <<_ACEOF
10104 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10105 _ACEOF
10107 esac
10108 rm -rf conftest*
10109 if test $ac_cv_sys_file_offset_bits = unknown; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10111 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10112 if ${ac_cv_sys_large_files+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 while :; do
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 #include <sys/types.h>
10119 /* Check that off_t can represent 2**63 - 1 correctly.
10120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10121 since some C++ compilers masquerading as C compilers
10122 incorrectly reject 9223372036854775807. */
10123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10125 && LARGE_OFF_T % 2147483647 == 1)
10126 ? 1 : -1];
10128 main ()
10132 return 0;
10134 _ACEOF
10135 if ac_fn_c_try_compile "$LINENO"; then :
10136 ac_cv_sys_large_files=no; break
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h. */
10141 #define _LARGE_FILES 1
10142 #include <sys/types.h>
10143 /* Check that off_t can represent 2**63 - 1 correctly.
10144 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10145 since some C++ compilers masquerading as C compilers
10146 incorrectly reject 9223372036854775807. */
10147 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10149 && LARGE_OFF_T % 2147483647 == 1)
10150 ? 1 : -1];
10152 main ()
10156 return 0;
10158 _ACEOF
10159 if ac_fn_c_try_compile "$LINENO"; then :
10160 ac_cv_sys_large_files=1; break
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 ac_cv_sys_large_files=unknown
10164 break
10165 done
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10168 $as_echo "$ac_cv_sys_large_files" >&6; }
10169 case $ac_cv_sys_large_files in #(
10170 no | unknown) ;;
10172 cat >>confdefs.h <<_ACEOF
10173 #define _LARGE_FILES $ac_cv_sys_large_files
10174 _ACEOF
10176 esac
10177 rm -rf conftest*
10182 #########
10183 # Check for needed/wanted data types
10184 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10185 if test "x$ac_cv_type_int8_t" = xyes; then :
10187 cat >>confdefs.h <<_ACEOF
10188 #define HAVE_INT8_T 1
10189 _ACEOF
10193 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10194 if test "x$ac_cv_type_int16_t" = xyes; then :
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_INT16_T 1
10198 _ACEOF
10202 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10203 if test "x$ac_cv_type_int32_t" = xyes; then :
10205 cat >>confdefs.h <<_ACEOF
10206 #define HAVE_INT32_T 1
10207 _ACEOF
10211 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10212 if test "x$ac_cv_type_int64_t" = xyes; then :
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_INT64_T 1
10216 _ACEOF
10220 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10221 if test "x$ac_cv_type_intptr_t" = xyes; then :
10223 cat >>confdefs.h <<_ACEOF
10224 #define HAVE_INTPTR_T 1
10225 _ACEOF
10229 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10230 if test "x$ac_cv_type_uint8_t" = xyes; then :
10232 cat >>confdefs.h <<_ACEOF
10233 #define HAVE_UINT8_T 1
10234 _ACEOF
10238 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10239 if test "x$ac_cv_type_uint16_t" = xyes; then :
10241 cat >>confdefs.h <<_ACEOF
10242 #define HAVE_UINT16_T 1
10243 _ACEOF
10247 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10248 if test "x$ac_cv_type_uint32_t" = xyes; then :
10250 cat >>confdefs.h <<_ACEOF
10251 #define HAVE_UINT32_T 1
10252 _ACEOF
10256 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10257 if test "x$ac_cv_type_uint64_t" = xyes; then :
10259 cat >>confdefs.h <<_ACEOF
10260 #define HAVE_UINT64_T 1
10261 _ACEOF
10265 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10266 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10268 cat >>confdefs.h <<_ACEOF
10269 #define HAVE_UINTPTR_T 1
10270 _ACEOF
10276 #########
10277 # Check for needed/wanted headers
10278 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10279 do :
10280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10283 cat >>confdefs.h <<_ACEOF
10284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10285 _ACEOF
10289 done
10292 #########
10293 # Figure out whether or not we have these functions
10295 for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime malloc_usable_size
10296 do :
10297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10298 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10299 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10300 cat >>confdefs.h <<_ACEOF
10301 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10302 _ACEOF
10305 done
10308 #########
10309 # By default, we use the amalgamation (this may be changed below...)
10311 USE_AMALGAMATION=1
10313 #########
10314 # See whether we can run specific tclsh versions known to work well;
10315 # if not, then we fall back to plain tclsh.
10316 # TODO: try other versions before falling back?
10318 for ac_prog in tclsh8.5 tclsh
10320 # Extract the first word of "$ac_prog", so it can be a program name with args.
10321 set dummy $ac_prog; ac_word=$2
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10323 $as_echo_n "checking for $ac_word... " >&6; }
10324 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10325 $as_echo_n "(cached) " >&6
10326 else
10327 if test -n "$TCLSH_CMD"; then
10328 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10329 else
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10333 IFS=$as_save_IFS
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
10336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10337 ac_cv_prog_TCLSH_CMD="$ac_prog"
10338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 break 2
10341 done
10342 done
10343 IFS=$as_save_IFS
10347 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10348 if test -n "$TCLSH_CMD"; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10350 $as_echo "$TCLSH_CMD" >&6; }
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10357 test -n "$TCLSH_CMD" && break
10358 done
10359 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10361 if test "$TCLSH_CMD" = "none"; then
10362 # If we can't find a local tclsh, then building the amalgamation will fail.
10363 # We act as though --disable-amalgamation has been used.
10364 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10365 USE_AMALGAMATION=0
10366 TCLSH_CMD="tclsh"
10371 if test "x${TCLLIBDIR+set}" != "xset" ; then
10372 TCLLIBDIR='$(libdir)'
10373 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10374 TCLLIBDIR=$i
10375 break
10376 done
10377 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
10381 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
10382 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 ac_check_lib_save_LIBS=$LIBS
10386 LIBS="-lcrypto $LIBS"
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10390 /* Override any GCC internal prototype to avoid an error.
10391 Use char because int might match the return type of a GCC
10392 builtin and then its argument prototype would still apply. */
10393 #ifdef __cplusplus
10394 extern "C"
10395 #endif
10396 char HMAC_Init_ex ();
10398 main ()
10400 return HMAC_Init_ex ();
10402 return 0;
10404 _ACEOF
10405 if ac_fn_c_try_link "$LINENO"; then :
10406 ac_cv_lib_crypto_HMAC_Init_ex=yes
10407 else
10408 ac_cv_lib_crypto_HMAC_Init_ex=no
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 LIBS=$ac_check_lib_save_LIBS
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
10415 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
10416 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
10417 cat >>confdefs.h <<_ACEOF
10418 #define HAVE_LIBCRYPTO 1
10419 _ACEOF
10421 LIBS="-lcrypto $LIBS"
10423 else
10424 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
10428 #########
10429 # Set up an appropriate program prefix
10431 if test "$program_prefix" = "NONE"; then
10432 program_prefix=""
10436 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10438 $as_echo "$as_me: Version set to $VERSION" >&6;}
10440 RELEASE=`cat $srcdir/VERSION`
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10442 $as_echo "$as_me: Release set to $RELEASE" >&6;}
10444 VERSION_NUMBER=`cat $srcdir/VERSION \
10445 | sed 's/[^0-9]/ /g' \
10446 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
10448 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
10451 #########
10452 # Check to see if the --with-hints=FILE option is used. If there is none,
10453 # then check for a files named "$host.hints" and ../$hosts.hints where
10454 # $host is the hostname of the build system. If still no hints are
10455 # found, try looking in $system.hints and ../$system.hints where
10456 # $system is the result of uname -s.
10459 # Check whether --with-hints was given.
10460 if test "${with_hints+set}" = set; then :
10461 withval=$with_hints; hints=$withval
10464 if test "$hints" = ""; then
10465 host=`hostname | sed 's/\..*//'`
10466 if test -r $host.hints; then
10467 hints=$host.hints
10468 else
10469 if test -r ../$host.hints; then
10470 hints=../$host.hints
10474 if test "$hints" = ""; then
10475 sys=`uname -s`
10476 if test -r $sys.hints; then
10477 hints=$sys.hints
10478 else
10479 if test -r ../$sys.hints; then
10480 hints=../$sys.hints
10484 if test "$hints" != ""; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: reading hints from $hints" >&5
10486 $as_echo "reading hints from $hints" >&6; }
10487 . $hints
10490 #########
10491 # Locate a compiler for the build machine. This compiler should
10492 # generate command-line programs that run on the build machine.
10494 if test x"$cross_compiling" = xno; then
10495 BUILD_CC=$CC
10496 BUILD_CFLAGS=$CFLAGS
10497 else
10498 if test "${BUILD_CC+set}" != set; then
10499 for ac_prog in gcc cc cl
10501 # Extract the first word of "$ac_prog", so it can be a program name with args.
10502 set dummy $ac_prog; ac_word=$2
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504 $as_echo_n "checking for $ac_word... " >&6; }
10505 if ${ac_cv_prog_BUILD_CC+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 if test -n "$BUILD_CC"; then
10509 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10510 else
10511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512 for as_dir in $PATH
10514 IFS=$as_save_IFS
10515 test -z "$as_dir" && as_dir=.
10516 for ac_exec_ext in '' $ac_executable_extensions; do
10517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10518 ac_cv_prog_BUILD_CC="$ac_prog"
10519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 break 2
10522 done
10523 done
10524 IFS=$as_save_IFS
10528 BUILD_CC=$ac_cv_prog_BUILD_CC
10529 if test -n "$BUILD_CC"; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10531 $as_echo "$BUILD_CC" >&6; }
10532 else
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534 $as_echo "no" >&6; }
10538 test -n "$BUILD_CC" && break
10539 done
10542 if test "${BUILD_CFLAGS+set}" != set; then
10543 BUILD_CFLAGS="-g"
10548 ##########
10549 # Do we want to support multithreaded use of sqlite
10551 # Check whether --enable-threadsafe was given.
10552 if test "${enable_threadsafe+set}" = set; then :
10553 enableval=$enable_threadsafe;
10554 else
10555 enable_threadsafe=yes
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10559 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
10560 if test "$enable_threadsafe" = "no"; then
10561 SQLITE_THREADSAFE=0
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564 else
10565 SQLITE_THREADSAFE=1
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10567 $as_echo "yes" >&6; }
10571 if test "$SQLITE_THREADSAFE" = "1"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10573 $as_echo_n "checking for library containing pthread_create... " >&6; }
10574 if ${ac_cv_search_pthread_create+:} false; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 ac_func_search_save_LIBS=$LIBS
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10581 /* Override any GCC internal prototype to avoid an error.
10582 Use char because int might match the return type of a GCC
10583 builtin and then its argument prototype would still apply. */
10584 #ifdef __cplusplus
10585 extern "C"
10586 #endif
10587 char pthread_create ();
10589 main ()
10591 return pthread_create ();
10593 return 0;
10595 _ACEOF
10596 for ac_lib in '' pthread; do
10597 if test -z "$ac_lib"; then
10598 ac_res="none required"
10599 else
10600 ac_res=-l$ac_lib
10601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10603 if ac_fn_c_try_link "$LINENO"; then :
10604 ac_cv_search_pthread_create=$ac_res
10606 rm -f core conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext
10608 if ${ac_cv_search_pthread_create+:} false; then :
10609 break
10611 done
10612 if ${ac_cv_search_pthread_create+:} false; then :
10614 else
10615 ac_cv_search_pthread_create=no
10617 rm conftest.$ac_ext
10618 LIBS=$ac_func_search_save_LIBS
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10621 $as_echo "$ac_cv_search_pthread_create" >&6; }
10622 ac_res=$ac_cv_search_pthread_create
10623 if test "$ac_res" != no; then :
10624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10630 ##########
10631 # Do we want to allow a connection created in one thread to be used
10632 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
10633 # due to bugs in the threading implementations. This is thus off by default.
10635 # Check whether --enable-cross-thread-connections was given.
10636 if test "${enable_cross_thread_connections+set}" = set; then :
10637 enableval=$enable_cross_thread_connections;
10638 else
10639 enable_xthreadconnect=no
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
10643 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
10644 if test "$enable_xthreadconnect" = "no"; then
10645 XTHREADCONNECT=''
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10648 else
10649 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10651 $as_echo "yes" >&6; }
10655 ##########
10656 # Do we want to support release
10658 # Check whether --enable-releasemode was given.
10659 if test "${enable_releasemode+set}" = set; then :
10660 enableval=$enable_releasemode;
10661 else
10662 enable_releasemode=no
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10666 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10667 if test "$enable_releasemode" = "no"; then
10668 ALLOWRELEASE=""
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10671 else
10672 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10674 $as_echo "yes" >&6; }
10678 ##########
10679 # Do we want temporary databases in memory
10681 # Check whether --enable-tempstore was given.
10682 if test "${enable_tempstore+set}" = set; then :
10683 enableval=$enable_tempstore;
10684 else
10685 enable_tempstore=no
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10689 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10690 case "$enable_tempstore" in
10691 never )
10692 TEMP_STORE=0
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10694 $as_echo "never" >&6; }
10696 no )
10697 TEMP_STORE=1
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; }
10701 yes )
10702 TEMP_STORE=2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10704 $as_echo "yes" >&6; }
10706 always )
10707 TEMP_STORE=3
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10709 $as_echo "always" >&6; }
10712 TEMP_STORE=1
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; }
10716 esac
10720 ###########
10721 # Lots of things are different if we are compiling for Windows using
10722 # the CYGWIN environment. So check for that special case and handle
10723 # things accordingly.
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10726 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
10727 if test "$config_BUILD_EXEEXT" = ".exe"; then
10728 CYGWIN=yes
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10730 $as_echo "yes" >&6; }
10731 else
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10733 $as_echo "unknown" >&6; }
10735 if test "$CYGWIN" != "yes"; then
10737 case $host_os in
10738 *cygwin* ) CYGWIN=yes;;
10739 * ) CYGWIN=no;;
10740 esac
10743 if test "$CYGWIN" = "yes"; then
10744 BUILD_EXEEXT=.exe
10745 else
10746 BUILD_EXEEXT=$EXEEXT
10748 if test x"$cross_compiling" = xno; then
10749 TARGET_EXEEXT=$BUILD_EXEEXT
10750 else
10751 TARGET_EXEEXT=$config_TARGET_EXEEXT
10753 if test "$TARGET_EXEEXT" = ".exe"; then
10754 if test $OS2_SHELL ; then
10755 SQLITE_OS_UNIX=0
10756 SQLITE_OS_WIN=0
10757 SQLITE_OS_OS2=1
10758 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
10759 else
10760 SQLITE_OS_UNIX=0
10761 SQLITE_OS_WIN=1
10762 SQLITE_OS_OS2=0
10763 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10765 else
10766 SQLITE_OS_UNIX=1
10767 SQLITE_OS_WIN=0
10768 SQLITE_OS_OS2=0
10769 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10778 ##########
10779 # Figure out all the parameters needed to compile against Tcl.
10781 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10782 # macros in the in the tcl.m4 file of the standard TCL distribution.
10783 # Those macros could not be used directly since we have to make some
10784 # minor changes to accomodate systems that do not have TCL installed.
10786 # Check whether --enable-tcl was given.
10787 if test "${enable_tcl+set}" = set; then :
10788 enableval=$enable_tcl; use_tcl=$enableval
10789 else
10790 use_tcl=yes
10793 if test "${use_tcl}" = "yes" ; then
10795 # Check whether --with-tcl was given.
10796 if test "${with_tcl+set}" = set; then :
10797 withval=$with_tcl; with_tclconfig=${withval}
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10801 $as_echo_n "checking for Tcl configuration... " >&6; }
10802 if ${ac_cv_c_tclconfig+:} false; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10806 # First check to see if --with-tcl was specified.
10807 if test x"${with_tclconfig}" != x ; then
10808 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10809 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10810 else
10811 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10815 # Start autosearch by asking tclsh
10816 if test x"${ac_cv_c_tclconfig}" = x ; then
10817 if test x"$cross_compiling" = xno; then
10818 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10820 if test -f "$i/tclConfig.sh" ; then
10821 ac_cv_c_tclconfig="$i"
10822 break
10824 done
10828 # then check for a private Tcl installation
10829 if test x"${ac_cv_c_tclconfig}" = x ; then
10830 for i in \
10831 ../tcl \
10832 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10833 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10834 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10835 ../../tcl \
10836 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10837 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10838 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10839 ../../../tcl \
10840 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10841 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10842 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10844 if test -f "$i/unix/tclConfig.sh" ; then
10845 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10846 break
10848 done
10851 # check in a few common install locations
10852 if test x"${ac_cv_c_tclconfig}" = x ; then
10853 for i in \
10854 `ls -d ${libdir} 2>/dev/null` \
10855 `ls -d /usr/local/lib 2>/dev/null` \
10856 `ls -d /usr/contrib/lib 2>/dev/null` \
10857 `ls -d /usr/lib 2>/dev/null`
10859 if test -f "$i/tclConfig.sh" ; then
10860 ac_cv_c_tclconfig=`(cd $i; pwd)`
10861 break
10863 done
10866 # check in a few other private locations
10867 if test x"${ac_cv_c_tclconfig}" = x ; then
10868 for i in \
10869 ${srcdir}/../tcl \
10870 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10871 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10872 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10874 if test -f "$i/unix/tclConfig.sh" ; then
10875 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10876 break
10878 done
10884 if test x"${ac_cv_c_tclconfig}" = x ; then
10885 use_tcl=no
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10887 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10889 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10891 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10892 else
10893 TCL_BIN_DIR=${ac_cv_c_tclconfig}
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10895 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10898 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10899 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10901 $as_echo "loading" >&6; }
10902 . $TCL_BIN_DIR/tclConfig.sh
10903 else
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10905 $as_echo "file not found" >&6; }
10909 # If the TCL_BIN_DIR is the build directory (not the install directory),
10910 # then set the common variable name to the value of the build variables.
10911 # For example, the variable TCL_LIB_SPEC will be set to the value
10912 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10913 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10914 # installed and uninstalled version of Tcl.
10917 if test -f $TCL_BIN_DIR/Makefile ; then
10918 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10919 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10920 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10924 # eval is required to do the TCL_DBGX substitution
10927 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10928 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10929 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10931 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10932 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10933 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10949 if test "${use_tcl}" = "no" ; then
10950 HAVE_TCL=""
10951 else
10952 HAVE_TCL=1
10956 ##########
10957 # Figure out what C libraries are required to compile programs
10958 # that use "readline()" library.
10960 TARGET_READLINE_LIBS=""
10961 TARGET_READLINE_INC=""
10962 TARGET_HAVE_READLINE=0
10963 # Check whether --enable-readline was given.
10964 if test "${enable_readline+set}" = set; then :
10965 enableval=$enable_readline; with_readline=$enableval
10966 else
10967 with_readline=auto
10971 if test x"$with_readline" != xno; then
10972 found="yes"
10975 # Check whether --with-readline-lib was given.
10976 if test "${with_readline_lib+set}" = set; then :
10977 withval=$with_readline_lib; with_readline_lib=$withval
10978 else
10979 with_readline_lib="auto"
10982 if test "x$with_readline_lib" = xauto; then
10983 save_LIBS="$LIBS"
10984 LIBS=""
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
10986 $as_echo_n "checking for library containing tgetent... " >&6; }
10987 if ${ac_cv_search_tgetent+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_func_search_save_LIBS=$LIBS
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char tgetent ();
11002 main ()
11004 return tgetent ();
11006 return 0;
11008 _ACEOF
11009 for ac_lib in '' readline ncurses curses termcap; do
11010 if test -z "$ac_lib"; then
11011 ac_res="none required"
11012 else
11013 ac_res=-l$ac_lib
11014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11016 if ac_fn_c_try_link "$LINENO"; then :
11017 ac_cv_search_tgetent=$ac_res
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext
11021 if ${ac_cv_search_tgetent+:} false; then :
11022 break
11024 done
11025 if ${ac_cv_search_tgetent+:} false; then :
11027 else
11028 ac_cv_search_tgetent=no
11030 rm conftest.$ac_ext
11031 LIBS=$ac_func_search_save_LIBS
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11034 $as_echo "$ac_cv_search_tgetent" >&6; }
11035 ac_res=$ac_cv_search_tgetent
11036 if test "$ac_res" != no; then :
11037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11038 term_LIBS="$LIBS"
11039 else
11040 term_LIBS=""
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11044 $as_echo_n "checking for readline in -lreadline... " >&6; }
11045 if ${ac_cv_lib_readline_readline+:} false; then :
11046 $as_echo_n "(cached) " >&6
11047 else
11048 ac_check_lib_save_LIBS=$LIBS
11049 LIBS="-lreadline $LIBS"
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11053 /* Override any GCC internal prototype to avoid an error.
11054 Use char because int might match the return type of a GCC
11055 builtin and then its argument prototype would still apply. */
11056 #ifdef __cplusplus
11057 extern "C"
11058 #endif
11059 char readline ();
11061 main ()
11063 return readline ();
11065 return 0;
11067 _ACEOF
11068 if ac_fn_c_try_link "$LINENO"; then :
11069 ac_cv_lib_readline_readline=yes
11070 else
11071 ac_cv_lib_readline_readline=no
11073 rm -f core conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
11075 LIBS=$ac_check_lib_save_LIBS
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11078 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11079 if test "x$ac_cv_lib_readline_readline" = xyes; then :
11080 TARGET_READLINE_LIBS="-lreadline"
11081 else
11082 found="no"
11085 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11086 LIBS="$save_LIBS"
11087 else
11088 TARGET_READLINE_LIBS="$with_readline_lib"
11092 # Check whether --with-readline-inc was given.
11093 if test "${with_readline_inc+set}" = set; then :
11094 withval=$with_readline_inc; with_readline_inc=$withval
11095 else
11096 with_readline_inc="auto"
11099 if test "x$with_readline_inc" = xauto; then
11100 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11101 if test "x$ac_cv_header_readline_h" = xyes; then :
11102 found="yes"
11103 else
11105 found="no"
11106 if test "$cross_compiling" != yes; then
11107 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11108 for subdir in include include/readline; do
11109 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11111 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11112 if eval \${$as_ac_File+:} false; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 test "$cross_compiling" = yes &&
11116 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11117 if test -r "$dir/$subdir/readline.h"; then
11118 eval "$as_ac_File=yes"
11119 else
11120 eval "$as_ac_File=no"
11123 eval ac_res=\$$as_ac_File
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11125 $as_echo "$ac_res" >&6; }
11126 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11127 found=yes
11130 if test "$found" = "yes"; then
11131 TARGET_READLINE_INC="-I$dir/$subdir"
11132 break
11134 done
11135 test "$found" = "yes" && break
11136 done
11142 else
11143 TARGET_READLINE_INC="$with_readline_inc"
11146 if test x"$found" = xno; then
11147 TARGET_READLINE_LIBS=""
11148 TARGET_READLINE_INC=""
11149 TARGET_HAVE_READLINE=0
11150 else
11151 TARGET_HAVE_READLINE=1
11159 ##########
11160 # Figure out what C libraries are required to compile programs
11161 # that use "fdatasync()" function.
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11164 $as_echo_n "checking for library containing fdatasync... " >&6; }
11165 if ${ac_cv_search_fdatasync+:} false; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 ac_func_search_save_LIBS=$LIBS
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11172 /* Override any GCC internal prototype to avoid an error.
11173 Use char because int might match the return type of a GCC
11174 builtin and then its argument prototype would still apply. */
11175 #ifdef __cplusplus
11176 extern "C"
11177 #endif
11178 char fdatasync ();
11180 main ()
11182 return fdatasync ();
11184 return 0;
11186 _ACEOF
11187 for ac_lib in '' rt; do
11188 if test -z "$ac_lib"; then
11189 ac_res="none required"
11190 else
11191 ac_res=-l$ac_lib
11192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11194 if ac_fn_c_try_link "$LINENO"; then :
11195 ac_cv_search_fdatasync=$ac_res
11197 rm -f core conftest.err conftest.$ac_objext \
11198 conftest$ac_exeext
11199 if ${ac_cv_search_fdatasync+:} false; then :
11200 break
11202 done
11203 if ${ac_cv_search_fdatasync+:} false; then :
11205 else
11206 ac_cv_search_fdatasync=no
11208 rm conftest.$ac_ext
11209 LIBS=$ac_func_search_save_LIBS
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11212 $as_echo "$ac_cv_search_fdatasync" >&6; }
11213 ac_res=$ac_cv_search_fdatasync
11214 if test "$ac_res" != no; then :
11215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11220 #########
11221 # check for debug enabled
11222 # Check whether --enable-debug was given.
11223 if test "${enable_debug+set}" = set; then :
11224 enableval=$enable_debug; use_debug=$enableval
11225 else
11226 use_debug=no
11229 if test "${use_debug}" = "yes" ; then
11230 TARGET_DEBUG="-DSQLITE_DEBUG=1"
11231 else
11232 TARGET_DEBUG="-DNDEBUG"
11236 #########
11237 # See whether we should use the amalgamation to build
11238 # Check whether --enable-amalgamation was given.
11239 if test "${enable_amalgamation+set}" = set; then :
11240 enableval=$enable_amalgamation; use_amalgamation=$enableval
11241 else
11242 use_amalgamation=yes
11245 if test "${use_amalgamation}" != "yes" ; then
11246 USE_AMALGAMATION=0
11250 #########
11251 # See whether we should allow loadable extensions
11252 # Check whether --enable-load-extension was given.
11253 if test "${enable_load_extension+set}" = set; then :
11254 enableval=$enable_load_extension; use_loadextension=$enableval
11255 else
11256 use_loadextension=no
11259 if test "${use_loadextension}" = "yes" ; then
11260 OPT_FEATURE_FLAGS=""
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11262 $as_echo_n "checking for library containing dlopen... " >&6; }
11263 if ${ac_cv_search_dlopen+:} false; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 ac_func_search_save_LIBS=$LIBS
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11270 /* Override any GCC internal prototype to avoid an error.
11271 Use char because int might match the return type of a GCC
11272 builtin and then its argument prototype would still apply. */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 char dlopen ();
11278 main ()
11280 return dlopen ();
11282 return 0;
11284 _ACEOF
11285 for ac_lib in '' dl; do
11286 if test -z "$ac_lib"; then
11287 ac_res="none required"
11288 else
11289 ac_res=-l$ac_lib
11290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11292 if ac_fn_c_try_link "$LINENO"; then :
11293 ac_cv_search_dlopen=$ac_res
11295 rm -f core conftest.err conftest.$ac_objext \
11296 conftest$ac_exeext
11297 if ${ac_cv_search_dlopen+:} false; then :
11298 break
11300 done
11301 if ${ac_cv_search_dlopen+:} false; then :
11303 else
11304 ac_cv_search_dlopen=no
11306 rm conftest.$ac_ext
11307 LIBS=$ac_func_search_save_LIBS
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11310 $as_echo "$ac_cv_search_dlopen" >&6; }
11311 ac_res=$ac_cv_search_dlopen
11312 if test "$ac_res" != no; then :
11313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11317 else
11318 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11321 #########
11322 # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
11323 for option in $CFLAGS $CPPFLAGS
11325 case $option in
11326 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11327 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11328 esac
11329 done
11333 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11334 ac_temp_CFLAGS=""
11335 for option in $CFLAGS
11337 case $option in
11338 -DSQLITE_OMIT*) ;;
11339 -DSQLITE_ENABLE*) ;;
11340 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11341 esac
11342 done
11343 CFLAGS=$ac_temp_CFLAGS
11346 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11347 ac_temp_CPPFLAGS=""
11348 for option in $CPPFLAGS
11350 case $option in
11351 -DSQLITE_OMIT*) ;;
11352 -DSQLITE_ENABLE*) ;;
11353 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11354 esac
11355 done
11356 CPPFLAGS=$ac_temp_CPPFLAGS
11359 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11360 ac_temp_BUILD_CFLAGS=""
11361 for option in $BUILD_CFLAGS
11363 case $option in
11364 -DSQLITE_OMIT*) ;;
11365 -DSQLITE_ENABLE*) ;;
11366 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11367 esac
11368 done
11369 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11372 #########
11373 # See whether we should use GCOV
11374 # Check whether --enable-gcov was given.
11375 if test "${enable_gcov+set}" = set; then :
11376 enableval=$enable_gcov; use_gcov=$enableval
11377 else
11378 use_gcov=no
11381 if test "${use_gcov}" = "yes" ; then
11382 USE_GCOV=1
11383 else
11384 USE_GCOV=0
11389 #########
11390 # Output the config header
11391 ac_config_headers="$ac_config_headers config.h"
11394 #########
11395 # Generate the output files.
11398 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
11400 cat >confcache <<\_ACEOF
11401 # This file is a shell script that caches the results of configure
11402 # tests run on this system so they can be shared between configure
11403 # scripts and configure runs, see configure's option --config-cache.
11404 # It is not useful on other systems. If it contains results you don't
11405 # want to keep, you may remove or edit it.
11407 # config.status only pays attention to the cache file if you give it
11408 # the --recheck option to rerun configure.
11410 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11411 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11412 # following values.
11414 _ACEOF
11416 # The following way of writing the cache mishandles newlines in values,
11417 # but we know of no workaround that is simple, portable, and efficient.
11418 # So, we kill variables containing newlines.
11419 # Ultrix sh set writes to stderr and can't be redirected directly,
11420 # and sets the high bit in the cache file unless we assign to the vars.
11422 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11423 eval ac_val=\$$ac_var
11424 case $ac_val in #(
11425 *${as_nl}*)
11426 case $ac_var in #(
11427 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11428 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11429 esac
11430 case $ac_var in #(
11431 _ | IFS | as_nl) ;; #(
11432 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11433 *) { eval $ac_var=; unset $ac_var;} ;;
11434 esac ;;
11435 esac
11436 done
11438 (set) 2>&1 |
11439 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11440 *${as_nl}ac_space=\ *)
11441 # `set' does not quote correctly, so add quotes: double-quote
11442 # substitution turns \\\\ into \\, and sed turns \\ into \.
11443 sed -n \
11444 "s/'/'\\\\''/g;
11445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11446 ;; #(
11448 # `set' quotes correctly as required by POSIX, so do not add quotes.
11449 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11451 esac |
11452 sort
11454 sed '
11455 /^ac_cv_env_/b end
11456 t clear
11457 :clear
11458 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11459 t end
11460 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11461 :end' >>confcache
11462 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11463 if test -w "$cache_file"; then
11464 if test "x$cache_file" != "x/dev/null"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11466 $as_echo "$as_me: updating cache $cache_file" >&6;}
11467 if test ! -f "$cache_file" || test -h "$cache_file"; then
11468 cat confcache >"$cache_file"
11469 else
11470 case $cache_file in #(
11471 */* | ?:*)
11472 mv -f confcache "$cache_file"$$ &&
11473 mv -f "$cache_file"$$ "$cache_file" ;; #(
11475 mv -f confcache "$cache_file" ;;
11476 esac
11479 else
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11481 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11484 rm -f confcache
11486 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11487 # Let make expand exec_prefix.
11488 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11490 DEFS=-DHAVE_CONFIG_H
11492 ac_libobjs=
11493 ac_ltlibobjs=
11495 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11496 # 1. Remove the extension, and $U if already installed.
11497 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11498 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11499 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11500 # will be set to the directory where LIBOBJS objects are built.
11501 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11502 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11503 done
11504 LIBOBJS=$ac_libobjs
11506 LTLIBOBJS=$ac_ltlibobjs
11510 : "${CONFIG_STATUS=./config.status}"
11511 ac_write_fail=0
11512 ac_clean_files_save=$ac_clean_files
11513 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11515 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11516 as_write_fail=0
11517 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11518 #! $SHELL
11519 # Generated by $as_me.
11520 # Run this file to recreate the current configuration.
11521 # Compiler output produced by configure, useful for debugging
11522 # configure, is in config.log if it exists.
11524 debug=false
11525 ac_cs_recheck=false
11526 ac_cs_silent=false
11528 SHELL=\${CONFIG_SHELL-$SHELL}
11529 export SHELL
11530 _ASEOF
11531 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11532 ## -------------------- ##
11533 ## M4sh Initialization. ##
11534 ## -------------------- ##
11536 # Be more Bourne compatible
11537 DUALCASE=1; export DUALCASE # for MKS sh
11538 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11539 emulate sh
11540 NULLCMD=:
11541 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11542 # is contrary to our usage. Disable this feature.
11543 alias -g '${1+"$@"}'='"$@"'
11544 setopt NO_GLOB_SUBST
11545 else
11546 case `(set -o) 2>/dev/null` in #(
11547 *posix*) :
11548 set -o posix ;; #(
11549 *) :
11551 esac
11555 as_nl='
11557 export as_nl
11558 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11559 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11560 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11562 # Prefer a ksh shell builtin over an external printf program on Solaris,
11563 # but without wasting forks for bash or zsh.
11564 if test -z "$BASH_VERSION$ZSH_VERSION" \
11565 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11566 as_echo='print -r --'
11567 as_echo_n='print -rn --'
11568 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11569 as_echo='printf %s\n'
11570 as_echo_n='printf %s'
11571 else
11572 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11573 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11574 as_echo_n='/usr/ucb/echo -n'
11575 else
11576 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11577 as_echo_n_body='eval
11578 arg=$1;
11579 case $arg in #(
11580 *"$as_nl"*)
11581 expr "X$arg" : "X\\(.*\\)$as_nl";
11582 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11583 esac;
11584 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11586 export as_echo_n_body
11587 as_echo_n='sh -c $as_echo_n_body as_echo'
11589 export as_echo_body
11590 as_echo='sh -c $as_echo_body as_echo'
11593 # The user is always right.
11594 if test "${PATH_SEPARATOR+set}" != set; then
11595 PATH_SEPARATOR=:
11596 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11597 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11598 PATH_SEPARATOR=';'
11603 # IFS
11604 # We need space, tab and new line, in precisely that order. Quoting is
11605 # there to prevent editors from complaining about space-tab.
11606 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11607 # splitting by setting IFS to empty value.)
11608 IFS=" "" $as_nl"
11610 # Find who we are. Look in the path if we contain no directory separator.
11611 as_myself=
11612 case $0 in #((
11613 *[\\/]* ) as_myself=$0 ;;
11614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11617 IFS=$as_save_IFS
11618 test -z "$as_dir" && as_dir=.
11619 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11620 done
11621 IFS=$as_save_IFS
11624 esac
11625 # We did not find ourselves, most probably we were run as `sh COMMAND'
11626 # in which case we are not to be found in the path.
11627 if test "x$as_myself" = x; then
11628 as_myself=$0
11630 if test ! -f "$as_myself"; then
11631 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11632 exit 1
11635 # Unset variables that we do not need and which cause bugs (e.g. in
11636 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11637 # suppresses any "Segmentation fault" message there. '((' could
11638 # trigger a bug in pdksh 5.2.14.
11639 for as_var in BASH_ENV ENV MAIL MAILPATH
11640 do eval test x\${$as_var+set} = xset \
11641 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11642 done
11643 PS1='$ '
11644 PS2='> '
11645 PS4='+ '
11647 # NLS nuisances.
11648 LC_ALL=C
11649 export LC_ALL
11650 LANGUAGE=C
11651 export LANGUAGE
11653 # CDPATH.
11654 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11657 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11658 # ----------------------------------------
11659 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11660 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11661 # script with STATUS, using 1 if that was 0.
11662 as_fn_error ()
11664 as_status=$1; test $as_status -eq 0 && as_status=1
11665 if test "$4"; then
11666 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11667 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11669 $as_echo "$as_me: error: $2" >&2
11670 as_fn_exit $as_status
11671 } # as_fn_error
11674 # as_fn_set_status STATUS
11675 # -----------------------
11676 # Set $? to STATUS, without forking.
11677 as_fn_set_status ()
11679 return $1
11680 } # as_fn_set_status
11682 # as_fn_exit STATUS
11683 # -----------------
11684 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11685 as_fn_exit ()
11687 set +e
11688 as_fn_set_status $1
11689 exit $1
11690 } # as_fn_exit
11692 # as_fn_unset VAR
11693 # ---------------
11694 # Portably unset VAR.
11695 as_fn_unset ()
11697 { eval $1=; unset $1;}
11699 as_unset=as_fn_unset
11700 # as_fn_append VAR VALUE
11701 # ----------------------
11702 # Append the text in VALUE to the end of the definition contained in VAR. Take
11703 # advantage of any shell optimizations that allow amortized linear growth over
11704 # repeated appends, instead of the typical quadratic growth present in naive
11705 # implementations.
11706 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11707 eval 'as_fn_append ()
11709 eval $1+=\$2
11711 else
11712 as_fn_append ()
11714 eval $1=\$$1\$2
11716 fi # as_fn_append
11718 # as_fn_arith ARG...
11719 # ------------------
11720 # Perform arithmetic evaluation on the ARGs, and store the result in the
11721 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11722 # must be portable across $(()) and expr.
11723 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11724 eval 'as_fn_arith ()
11726 as_val=$(( $* ))
11728 else
11729 as_fn_arith ()
11731 as_val=`expr "$@" || test $? -eq 1`
11733 fi # as_fn_arith
11736 if expr a : '\(a\)' >/dev/null 2>&1 &&
11737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11738 as_expr=expr
11739 else
11740 as_expr=false
11743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11744 as_basename=basename
11745 else
11746 as_basename=false
11749 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11750 as_dirname=dirname
11751 else
11752 as_dirname=false
11755 as_me=`$as_basename -- "$0" ||
11756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11757 X"$0" : 'X\(//\)$' \| \
11758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11759 $as_echo X/"$0" |
11760 sed '/^.*\/\([^/][^/]*\)\/*$/{
11761 s//\1/
11764 /^X\/\(\/\/\)$/{
11765 s//\1/
11768 /^X\/\(\/\).*/{
11769 s//\1/
11772 s/.*/./; q'`
11774 # Avoid depending upon Character Ranges.
11775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11778 as_cr_digits='0123456789'
11779 as_cr_alnum=$as_cr_Letters$as_cr_digits
11781 ECHO_C= ECHO_N= ECHO_T=
11782 case `echo -n x` in #(((((
11783 -n*)
11784 case `echo 'xy\c'` in
11785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11786 xy) ECHO_C='\c';;
11787 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11788 ECHO_T=' ';;
11789 esac;;
11791 ECHO_N='-n';;
11792 esac
11794 rm -f conf$$ conf$$.exe conf$$.file
11795 if test -d conf$$.dir; then
11796 rm -f conf$$.dir/conf$$.file
11797 else
11798 rm -f conf$$.dir
11799 mkdir conf$$.dir 2>/dev/null
11801 if (echo >conf$$.file) 2>/dev/null; then
11802 if ln -s conf$$.file conf$$ 2>/dev/null; then
11803 as_ln_s='ln -s'
11804 # ... but there are two gotchas:
11805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11807 # In both cases, we have to default to `cp -p'.
11808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11809 as_ln_s='cp -p'
11810 elif ln conf$$.file conf$$ 2>/dev/null; then
11811 as_ln_s=ln
11812 else
11813 as_ln_s='cp -p'
11815 else
11816 as_ln_s='cp -p'
11818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11819 rmdir conf$$.dir 2>/dev/null
11822 # as_fn_mkdir_p
11823 # -------------
11824 # Create "$as_dir" as a directory, including parents if necessary.
11825 as_fn_mkdir_p ()
11828 case $as_dir in #(
11829 -*) as_dir=./$as_dir;;
11830 esac
11831 test -d "$as_dir" || eval $as_mkdir_p || {
11832 as_dirs=
11833 while :; do
11834 case $as_dir in #(
11835 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11836 *) as_qdir=$as_dir;;
11837 esac
11838 as_dirs="'$as_qdir' $as_dirs"
11839 as_dir=`$as_dirname -- "$as_dir" ||
11840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11841 X"$as_dir" : 'X\(//\)[^/]' \| \
11842 X"$as_dir" : 'X\(//\)$' \| \
11843 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11844 $as_echo X"$as_dir" |
11845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11846 s//\1/
11849 /^X\(\/\/\)[^/].*/{
11850 s//\1/
11853 /^X\(\/\/\)$/{
11854 s//\1/
11857 /^X\(\/\).*/{
11858 s//\1/
11861 s/.*/./; q'`
11862 test -d "$as_dir" && break
11863 done
11864 test -z "$as_dirs" || eval "mkdir $as_dirs"
11865 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11868 } # as_fn_mkdir_p
11869 if mkdir -p . 2>/dev/null; then
11870 as_mkdir_p='mkdir -p "$as_dir"'
11871 else
11872 test -d ./-p && rmdir ./-p
11873 as_mkdir_p=false
11876 if test -x / >/dev/null 2>&1; then
11877 as_test_x='test -x'
11878 else
11879 if ls -dL / >/dev/null 2>&1; then
11880 as_ls_L_option=L
11881 else
11882 as_ls_L_option=
11884 as_test_x='
11885 eval sh -c '\''
11886 if test -d "$1"; then
11887 test -d "$1/.";
11888 else
11889 case $1 in #(
11890 -*)set "./$1";;
11891 esac;
11892 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11893 ???[sx]*):;;*)false;;esac;fi
11894 '\'' sh
11897 as_executable_p=$as_test_x
11899 # Sed expression to map a string onto a valid CPP name.
11900 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11902 # Sed expression to map a string onto a valid variable name.
11903 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11906 exec 6>&1
11907 ## ----------------------------------- ##
11908 ## Main body of $CONFIG_STATUS script. ##
11909 ## ----------------------------------- ##
11910 _ASEOF
11911 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11914 # Save the log message, to keep $0 and so on meaningful, and to
11915 # report actual input values of CONFIG_FILES etc. instead of their
11916 # values after options handling.
11917 ac_log="
11918 This file was extended by sqlcipher $as_me 2.2.0, which was
11919 generated by GNU Autoconf 2.68. Invocation command line was
11921 CONFIG_FILES = $CONFIG_FILES
11922 CONFIG_HEADERS = $CONFIG_HEADERS
11923 CONFIG_LINKS = $CONFIG_LINKS
11924 CONFIG_COMMANDS = $CONFIG_COMMANDS
11925 $ $0 $@
11927 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11930 _ACEOF
11932 case $ac_config_files in *"
11933 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11934 esac
11936 case $ac_config_headers in *"
11937 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11938 esac
11941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11942 # Files that config.status was made for.
11943 config_files="$ac_config_files"
11944 config_headers="$ac_config_headers"
11945 config_commands="$ac_config_commands"
11947 _ACEOF
11949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11950 ac_cs_usage="\
11951 \`$as_me' instantiates files and other configuration actions
11952 from templates according to the current configuration. Unless the files
11953 and actions are specified as TAGs, all are instantiated by default.
11955 Usage: $0 [OPTION]... [TAG]...
11957 -h, --help print this help, then exit
11958 -V, --version print version number and configuration settings, then exit
11959 --config print configuration, then exit
11960 -q, --quiet, --silent
11961 do not print progress messages
11962 -d, --debug don't remove temporary files
11963 --recheck update $as_me by reconfiguring in the same conditions
11964 --file=FILE[:TEMPLATE]
11965 instantiate the configuration file FILE
11966 --header=FILE[:TEMPLATE]
11967 instantiate the configuration header FILE
11969 Configuration files:
11970 $config_files
11972 Configuration headers:
11973 $config_headers
11975 Configuration commands:
11976 $config_commands
11978 Report bugs to the package provider."
11980 _ACEOF
11981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11982 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11983 ac_cs_version="\\
11984 sqlcipher config.status 2.2.0
11985 configured by $0, generated by GNU Autoconf 2.68,
11986 with options \\"\$ac_cs_config\\"
11988 Copyright (C) 2010 Free Software Foundation, Inc.
11989 This config.status script is free software; the Free Software Foundation
11990 gives unlimited permission to copy, distribute and modify it."
11992 ac_pwd='$ac_pwd'
11993 srcdir='$srcdir'
11994 INSTALL='$INSTALL'
11995 AWK='$AWK'
11996 test -n "\$AWK" || AWK=awk
11997 _ACEOF
11999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12000 # The default lists apply if the user does not specify any file.
12001 ac_need_defaults=:
12002 while test $# != 0
12004 case $1 in
12005 --*=?*)
12006 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12007 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12008 ac_shift=:
12010 --*=)
12011 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12012 ac_optarg=
12013 ac_shift=:
12016 ac_option=$1
12017 ac_optarg=$2
12018 ac_shift=shift
12020 esac
12022 case $ac_option in
12023 # Handling of the options.
12024 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12025 ac_cs_recheck=: ;;
12026 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12027 $as_echo "$ac_cs_version"; exit ;;
12028 --config | --confi | --conf | --con | --co | --c )
12029 $as_echo "$ac_cs_config"; exit ;;
12030 --debug | --debu | --deb | --de | --d | -d )
12031 debug=: ;;
12032 --file | --fil | --fi | --f )
12033 $ac_shift
12034 case $ac_optarg in
12035 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12036 '') as_fn_error $? "missing file argument" ;;
12037 esac
12038 as_fn_append CONFIG_FILES " '$ac_optarg'"
12039 ac_need_defaults=false;;
12040 --header | --heade | --head | --hea )
12041 $ac_shift
12042 case $ac_optarg in
12043 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12044 esac
12045 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12046 ac_need_defaults=false;;
12047 --he | --h)
12048 # Conflict between --help and --header
12049 as_fn_error $? "ambiguous option: \`$1'
12050 Try \`$0 --help' for more information.";;
12051 --help | --hel | -h )
12052 $as_echo "$ac_cs_usage"; exit ;;
12053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12054 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12055 ac_cs_silent=: ;;
12057 # This is an error.
12058 -*) as_fn_error $? "unrecognized option: \`$1'
12059 Try \`$0 --help' for more information." ;;
12061 *) as_fn_append ac_config_targets " $1"
12062 ac_need_defaults=false ;;
12064 esac
12065 shift
12066 done
12068 ac_configure_extra_args=
12070 if $ac_cs_silent; then
12071 exec 6>/dev/null
12072 ac_configure_extra_args="$ac_configure_extra_args --silent"
12075 _ACEOF
12076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12077 if \$ac_cs_recheck; then
12078 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12079 shift
12080 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12081 CONFIG_SHELL='$SHELL'
12082 export CONFIG_SHELL
12083 exec "\$@"
12086 _ACEOF
12087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12088 exec 5>>config.log
12090 echo
12091 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12092 ## Running $as_me. ##
12093 _ASBOX
12094 $as_echo "$ac_log"
12095 } >&5
12097 _ACEOF
12098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12100 # INIT-COMMANDS
12104 # The HP-UX ksh and POSIX shell print the target directory to stdout
12105 # if CDPATH is set.
12106 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12108 sed_quote_subst='$sed_quote_subst'
12109 double_quote_subst='$double_quote_subst'
12110 delay_variable_subst='$delay_variable_subst'
12111 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12112 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12113 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12114 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12115 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12116 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12117 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12118 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12119 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12120 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12121 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12122 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12123 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12124 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12125 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12126 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12127 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12128 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12129 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12130 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12131 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12132 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12133 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12134 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12135 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12136 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12137 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12138 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12139 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12140 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12141 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12142 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12143 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12144 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12145 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12146 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12147 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12148 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12149 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12150 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12151 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12152 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12153 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12154 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12155 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"`'
12156 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"`'
12157 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12158 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12159 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12160 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12161 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12162 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12163 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12164 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12165 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12166 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12167 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12168 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12169 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12170 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12171 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12172 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12173 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12174 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12175 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12176 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12177 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12178 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12179 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12180 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12181 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12182 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12183 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12184 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12185 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12186 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12187 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12188 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12189 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12190 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12191 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12192 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12193 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12194 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12195 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12196 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12197 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12198 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12199 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12200 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12201 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12202 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12203 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12204 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12205 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12206 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12207 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12208 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12209 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12210 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12211 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12212 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12213 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12214 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12215 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12216 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12217 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12218 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12219 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12220 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12221 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12222 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12223 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12224 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12225 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12226 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12227 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12228 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12230 LTCC='$LTCC'
12231 LTCFLAGS='$LTCFLAGS'
12232 compiler='$compiler_DEFAULT'
12234 # Quote evaled strings.
12235 for var in SED \
12236 GREP \
12237 EGREP \
12238 FGREP \
12239 LD \
12240 NM \
12241 LN_S \
12242 lt_SP2NL \
12243 lt_NL2SP \
12244 reload_flag \
12245 OBJDUMP \
12246 deplibs_check_method \
12247 file_magic_cmd \
12248 AR \
12249 AR_FLAGS \
12250 STRIP \
12251 RANLIB \
12252 CC \
12253 CFLAGS \
12254 compiler \
12255 lt_cv_sys_global_symbol_pipe \
12256 lt_cv_sys_global_symbol_to_cdecl \
12257 lt_cv_sys_global_symbol_to_c_name_address \
12258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12259 SHELL \
12260 ECHO \
12261 lt_prog_compiler_no_builtin_flag \
12262 lt_prog_compiler_wl \
12263 lt_prog_compiler_pic \
12264 lt_prog_compiler_static \
12265 lt_cv_prog_compiler_c_o \
12266 need_locks \
12267 DSYMUTIL \
12268 NMEDIT \
12269 LIPO \
12270 OTOOL \
12271 OTOOL64 \
12272 shrext_cmds \
12273 export_dynamic_flag_spec \
12274 whole_archive_flag_spec \
12275 compiler_needs_object \
12276 with_gnu_ld \
12277 allow_undefined_flag \
12278 no_undefined_flag \
12279 hardcode_libdir_flag_spec \
12280 hardcode_libdir_flag_spec_ld \
12281 hardcode_libdir_separator \
12282 fix_srcfile_path \
12283 exclude_expsyms \
12284 include_expsyms \
12285 file_list_spec \
12286 variables_saved_for_relink \
12287 libname_spec \
12288 library_names_spec \
12289 soname_spec \
12290 finish_eval \
12291 old_striplib \
12292 striplib; do
12293 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12294 *[\\\\\\\`\\"\\\$]*)
12295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12300 esac
12301 done
12303 # Double-quote double-evaled strings.
12304 for var in reload_cmds \
12305 old_postinstall_cmds \
12306 old_postuninstall_cmds \
12307 old_archive_cmds \
12308 extract_expsyms_cmds \
12309 old_archive_from_new_cmds \
12310 old_archive_from_expsyms_cmds \
12311 archive_cmds \
12312 archive_expsym_cmds \
12313 module_cmds \
12314 module_expsym_cmds \
12315 export_symbols_cmds \
12316 prelink_cmds \
12317 postinstall_cmds \
12318 postuninstall_cmds \
12319 finish_cmds \
12320 sys_lib_search_path_spec \
12321 sys_lib_dlsearch_path_spec; do
12322 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12323 *[\\\\\\\`\\"\\\$]*)
12324 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12327 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12329 esac
12330 done
12332 # Fix-up fallback echo if it was mangled by the above quoting rules.
12333 case \$lt_ECHO in
12334 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12336 esac
12338 ac_aux_dir='$ac_aux_dir'
12339 xsi_shell='$xsi_shell'
12340 lt_shell_append='$lt_shell_append'
12342 # See if we are running on zsh, and set the options which allow our
12343 # commands through without removal of \ escapes INIT.
12344 if test -n "\${ZSH_VERSION+set}" ; then
12345 setopt NO_GLOB_SUBST
12349 PACKAGE='$PACKAGE'
12350 VERSION='$VERSION'
12351 TIMESTAMP='$TIMESTAMP'
12352 RM='$RM'
12353 ofile='$ofile'
12358 _ACEOF
12360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12362 # Handling of arguments.
12363 for ac_config_target in $ac_config_targets
12365 case $ac_config_target in
12366 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12367 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12368 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12369 "sqlcipher.pc") CONFIG_FILES="$CONFIG_FILES sqlcipher.pc" ;;
12371 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12372 esac
12373 done
12376 # If the user did not use the arguments to specify the items to instantiate,
12377 # then the envvar interface is used. Set only those that are not.
12378 # We use the long form for the default assignment because of an extremely
12379 # bizarre bug on SunOS 4.1.3.
12380 if $ac_need_defaults; then
12381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12383 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12386 # Have a temporary directory for convenience. Make it in the build tree
12387 # simply because there is no reason against having it here, and in addition,
12388 # creating and moving files from /tmp can sometimes cause problems.
12389 # Hook for its removal unless debugging.
12390 # Note that there is a small window in which the directory will not be cleaned:
12391 # after its creation but before its name has been assigned to `$tmp'.
12392 $debug ||
12394 tmp= ac_tmp=
12395 trap 'exit_status=$?
12396 : "${ac_tmp:=$tmp}"
12397 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12399 trap 'as_fn_exit 1' 1 2 13 15
12401 # Create a (secure) tmp directory for tmp files.
12404 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12405 test -d "$tmp"
12406 } ||
12408 tmp=./conf$$-$RANDOM
12409 (umask 077 && mkdir "$tmp")
12410 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12411 ac_tmp=$tmp
12413 # Set up the scripts for CONFIG_FILES section.
12414 # No need to generate them if there are no CONFIG_FILES.
12415 # This happens for instance with `./config.status config.h'.
12416 if test -n "$CONFIG_FILES"; then
12419 ac_cr=`echo X | tr X '\015'`
12420 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12421 # But we know of no other shell where ac_cr would be empty at this
12422 # point, so we can use a bashism as a fallback.
12423 if test "x$ac_cr" = x; then
12424 eval ac_cr=\$\'\\r\'
12426 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12427 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12428 ac_cs_awk_cr='\\r'
12429 else
12430 ac_cs_awk_cr=$ac_cr
12433 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12434 _ACEOF
12438 echo "cat >conf$$subs.awk <<_ACEOF" &&
12439 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12440 echo "_ACEOF"
12441 } >conf$$subs.sh ||
12442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12443 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12444 ac_delim='%!_!# '
12445 for ac_last_try in false false false false false :; do
12446 . ./conf$$subs.sh ||
12447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12449 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12450 if test $ac_delim_n = $ac_delim_num; then
12451 break
12452 elif $ac_last_try; then
12453 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12454 else
12455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12457 done
12458 rm -f conf$$subs.sh
12460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12461 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12462 _ACEOF
12463 sed -n '
12465 s/^/S["/; s/!.*/"]=/
12468 s/^[^!]*!//
12469 :repl
12470 t repl
12471 s/'"$ac_delim"'$//
12472 t delim
12475 s/\(.\{148\}\)..*/\1/
12476 t more1
12477 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12480 b repl
12481 :more1
12482 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12485 s/.\{148\}//
12486 t nl
12487 :delim
12489 s/\(.\{148\}\)..*/\1/
12490 t more2
12491 s/["\\]/\\&/g; s/^/"/; s/$/"/
12494 :more2
12495 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12498 s/.\{148\}//
12499 t delim
12500 ' <conf$$subs.awk | sed '
12501 /^[^""]/{
12503 s/\n//
12505 ' >>$CONFIG_STATUS || ac_write_fail=1
12506 rm -f conf$$subs.awk
12507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12508 _ACAWK
12509 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12510 for (key in S) S_is_set[key] = 1
12511 FS = "\a"
12515 line = $ 0
12516 nfields = split(line, field, "@")
12517 substed = 0
12518 len = length(field[1])
12519 for (i = 2; i < nfields; i++) {
12520 key = field[i]
12521 keylen = length(key)
12522 if (S_is_set[key]) {
12523 value = S[key]
12524 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12525 len += length(value) + length(field[++i])
12526 substed = 1
12527 } else
12528 len += 1 + keylen
12531 print line
12534 _ACAWK
12535 _ACEOF
12536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12537 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12538 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12539 else
12541 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12542 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12543 _ACEOF
12545 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12546 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12547 # trailing colons and then remove the whole line if VPATH becomes empty
12548 # (actually we leave an empty line to preserve line numbers).
12549 if test "x$srcdir" = x.; then
12550 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12552 s///
12553 s/^/:/
12554 s/[ ]*$/:/
12555 s/:\$(srcdir):/:/g
12556 s/:\${srcdir}:/:/g
12557 s/:@srcdir@:/:/g
12558 s/^:*//
12559 s/:*$//
12561 s/\(=[ ]*\).*/\1/
12563 s/\n//
12564 s/^[^=]*=[ ]*$//
12568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12569 fi # test -n "$CONFIG_FILES"
12571 # Set up the scripts for CONFIG_HEADERS section.
12572 # No need to generate them if there are no CONFIG_HEADERS.
12573 # This happens for instance with `./config.status Makefile'.
12574 if test -n "$CONFIG_HEADERS"; then
12575 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12576 BEGIN {
12577 _ACEOF
12579 # Transform confdefs.h into an awk script `defines.awk', embedded as
12580 # here-document in config.status, that substitutes the proper values into
12581 # config.h.in to produce config.h.
12583 # Create a delimiter string that does not exist in confdefs.h, to ease
12584 # handling of long lines.
12585 ac_delim='%!_!# '
12586 for ac_last_try in false false :; do
12587 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12588 if test -z "$ac_tt"; then
12589 break
12590 elif $ac_last_try; then
12591 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12592 else
12593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12595 done
12597 # For the awk script, D is an array of macro values keyed by name,
12598 # likewise P contains macro parameters if any. Preserve backslash
12599 # newline sequences.
12601 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12602 sed -n '
12603 s/.\{148\}/&'"$ac_delim"'/g
12604 t rset
12605 :rset
12606 s/^[ ]*#[ ]*define[ ][ ]*/ /
12607 t def
12609 :def
12610 s/\\$//
12611 t bsnl
12612 s/["\\]/\\&/g
12613 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12614 D["\1"]=" \3"/p
12615 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12617 :bsnl
12618 s/["\\]/\\&/g
12619 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12620 D["\1"]=" \3\\\\\\n"\\/p
12621 t cont
12622 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12623 t cont
12625 :cont
12627 s/.\{148\}/&'"$ac_delim"'/g
12628 t clear
12629 :clear
12630 s/\\$//
12631 t bsnlc
12632 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12634 :bsnlc
12635 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12636 b cont
12637 ' <confdefs.h | sed '
12638 s/'"$ac_delim"'/"\\\
12639 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12642 for (key in D) D_is_set[key] = 1
12643 FS = "\a"
12645 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12646 line = \$ 0
12647 split(line, arg, " ")
12648 if (arg[1] == "#") {
12649 defundef = arg[2]
12650 mac1 = arg[3]
12651 } else {
12652 defundef = substr(arg[1], 2)
12653 mac1 = arg[2]
12655 split(mac1, mac2, "(") #)
12656 macro = mac2[1]
12657 prefix = substr(line, 1, index(line, defundef) - 1)
12658 if (D_is_set[macro]) {
12659 # Preserve the white space surrounding the "#".
12660 print prefix "define", macro P[macro] D[macro]
12661 next
12662 } else {
12663 # Replace #undef with comments. This is necessary, for example,
12664 # in the case of _POSIX_SOURCE, which is predefined and required
12665 # on some systems where configure will not decide to define it.
12666 if (defundef == "undef") {
12667 print "/*", prefix defundef, macro, "*/"
12668 next
12672 { print }
12673 _ACAWK
12674 _ACEOF
12675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12676 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12677 fi # test -n "$CONFIG_HEADERS"
12680 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12681 shift
12682 for ac_tag
12684 case $ac_tag in
12685 :[FHLC]) ac_mode=$ac_tag; continue;;
12686 esac
12687 case $ac_mode$ac_tag in
12688 :[FHL]*:*);;
12689 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12690 :[FH]-) ac_tag=-:-;;
12691 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12692 esac
12693 ac_save_IFS=$IFS
12694 IFS=:
12695 set x $ac_tag
12696 IFS=$ac_save_IFS
12697 shift
12698 ac_file=$1
12699 shift
12701 case $ac_mode in
12702 :L) ac_source=$1;;
12703 :[FH])
12704 ac_file_inputs=
12705 for ac_f
12707 case $ac_f in
12708 -) ac_f="$ac_tmp/stdin";;
12709 *) # Look for the file first in the build tree, then in the source tree
12710 # (if the path is not absolute). The absolute path cannot be DOS-style,
12711 # because $ac_f cannot contain `:'.
12712 test -f "$ac_f" ||
12713 case $ac_f in
12714 [\\/$]*) false;;
12715 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12716 esac ||
12717 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12718 esac
12719 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12720 as_fn_append ac_file_inputs " '$ac_f'"
12721 done
12723 # Let's still pretend it is `configure' which instantiates (i.e., don't
12724 # use $as_me), people would be surprised to read:
12725 # /* config.h. Generated by config.status. */
12726 configure_input='Generated from '`
12727 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12728 `' by configure.'
12729 if test x"$ac_file" != x-; then
12730 configure_input="$ac_file. $configure_input"
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12732 $as_echo "$as_me: creating $ac_file" >&6;}
12734 # Neutralize special characters interpreted by sed in replacement strings.
12735 case $configure_input in #(
12736 *\&* | *\|* | *\\* )
12737 ac_sed_conf_input=`$as_echo "$configure_input" |
12738 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12739 *) ac_sed_conf_input=$configure_input;;
12740 esac
12742 case $ac_tag in
12743 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12745 esac
12747 esac
12749 ac_dir=`$as_dirname -- "$ac_file" ||
12750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12751 X"$ac_file" : 'X\(//\)[^/]' \| \
12752 X"$ac_file" : 'X\(//\)$' \| \
12753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12754 $as_echo X"$ac_file" |
12755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12756 s//\1/
12759 /^X\(\/\/\)[^/].*/{
12760 s//\1/
12763 /^X\(\/\/\)$/{
12764 s//\1/
12767 /^X\(\/\).*/{
12768 s//\1/
12771 s/.*/./; q'`
12772 as_dir="$ac_dir"; as_fn_mkdir_p
12773 ac_builddir=.
12775 case "$ac_dir" in
12776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12779 # A ".." for each directory in $ac_dir_suffix.
12780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12781 case $ac_top_builddir_sub in
12782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12784 esac ;;
12785 esac
12786 ac_abs_top_builddir=$ac_pwd
12787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12788 # for backward compatibility:
12789 ac_top_builddir=$ac_top_build_prefix
12791 case $srcdir in
12792 .) # We are building in place.
12793 ac_srcdir=.
12794 ac_top_srcdir=$ac_top_builddir_sub
12795 ac_abs_top_srcdir=$ac_pwd ;;
12796 [\\/]* | ?:[\\/]* ) # Absolute name.
12797 ac_srcdir=$srcdir$ac_dir_suffix;
12798 ac_top_srcdir=$srcdir
12799 ac_abs_top_srcdir=$srcdir ;;
12800 *) # Relative name.
12801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12802 ac_top_srcdir=$ac_top_build_prefix$srcdir
12803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12804 esac
12805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12808 case $ac_mode in
12811 # CONFIG_FILE
12814 case $INSTALL in
12815 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12816 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12817 esac
12818 _ACEOF
12820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12821 # If the template does not know about datarootdir, expand it.
12822 # FIXME: This hack should be removed a few years after 2.60.
12823 ac_datarootdir_hack=; ac_datarootdir_seen=
12824 ac_sed_dataroot='
12825 /datarootdir/ {
12829 /@datadir@/p
12830 /@docdir@/p
12831 /@infodir@/p
12832 /@localedir@/p
12833 /@mandir@/p'
12834 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12835 *datarootdir*) ac_datarootdir_seen=yes;;
12836 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12838 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12839 _ACEOF
12840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12841 ac_datarootdir_hack='
12842 s&@datadir@&$datadir&g
12843 s&@docdir@&$docdir&g
12844 s&@infodir@&$infodir&g
12845 s&@localedir@&$localedir&g
12846 s&@mandir@&$mandir&g
12847 s&\\\${datarootdir}&$datarootdir&g' ;;
12848 esac
12849 _ACEOF
12851 # Neutralize VPATH when `$srcdir' = `.'.
12852 # Shell code in configure.ac might set extrasub.
12853 # FIXME: do we really want to maintain this feature?
12854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12855 ac_sed_extra="$ac_vpsub
12856 $extrasub
12857 _ACEOF
12858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12861 s|@configure_input@|$ac_sed_conf_input|;t t
12862 s&@top_builddir@&$ac_top_builddir_sub&;t t
12863 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12864 s&@srcdir@&$ac_srcdir&;t t
12865 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12866 s&@top_srcdir@&$ac_top_srcdir&;t t
12867 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12868 s&@builddir@&$ac_builddir&;t t
12869 s&@abs_builddir@&$ac_abs_builddir&;t t
12870 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12871 s&@INSTALL@&$ac_INSTALL&;t t
12872 $ac_datarootdir_hack
12874 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12875 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12877 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12878 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12879 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12880 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12882 which seems to be undefined. Please make sure it is defined" >&5
12883 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12884 which seems to be undefined. Please make sure it is defined" >&2;}
12886 rm -f "$ac_tmp/stdin"
12887 case $ac_file in
12888 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12889 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12890 esac \
12891 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12895 # CONFIG_HEADER
12897 if test x"$ac_file" != x-; then
12899 $as_echo "/* $configure_input */" \
12900 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12901 } >"$ac_tmp/config.h" \
12902 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12903 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12905 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12906 else
12907 rm -f "$ac_file"
12908 mv "$ac_tmp/config.h" "$ac_file" \
12909 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12911 else
12912 $as_echo "/* $configure_input */" \
12913 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12914 || as_fn_error $? "could not create -" "$LINENO" 5
12918 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12919 $as_echo "$as_me: executing $ac_file commands" >&6;}
12921 esac
12924 case $ac_file$ac_mode in
12925 "libtool":C)
12927 # See if we are running on zsh, and set the options which allow our
12928 # commands through without removal of \ escapes.
12929 if test -n "${ZSH_VERSION+set}" ; then
12930 setopt NO_GLOB_SUBST
12933 cfgfile="${ofile}T"
12934 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12935 $RM "$cfgfile"
12937 cat <<_LT_EOF >> "$cfgfile"
12938 #! $SHELL
12940 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12941 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12943 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12945 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12946 # 2006, 2007, 2008 Free Software Foundation, Inc.
12947 # Written by Gordon Matzigkeit, 1996
12949 # This file is part of GNU Libtool.
12951 # GNU Libtool is free software; you can redistribute it and/or
12952 # modify it under the terms of the GNU General Public License as
12953 # published by the Free Software Foundation; either version 2 of
12954 # the License, or (at your option) any later version.
12956 # As a special exception to the GNU General Public License,
12957 # if you distribute this file as part of a program or library that
12958 # is built using GNU Libtool, you may include this file under the
12959 # same distribution terms that you use for the rest of that program.
12961 # GNU Libtool is distributed in the hope that it will be useful,
12962 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12963 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12964 # GNU General Public License for more details.
12966 # You should have received a copy of the GNU General Public License
12967 # along with GNU Libtool; see the file COPYING. If not, a copy
12968 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12969 # obtained by writing to the Free Software Foundation, Inc.,
12970 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12973 # The names of the tagged configurations supported by this script.
12974 available_tags=""
12976 # ### BEGIN LIBTOOL CONFIG
12978 # Which release of libtool.m4 was used?
12979 macro_version=$macro_version
12980 macro_revision=$macro_revision
12982 # Whether or not to build shared libraries.
12983 build_libtool_libs=$enable_shared
12985 # Whether or not to build static libraries.
12986 build_old_libs=$enable_static
12988 # What type of objects to build.
12989 pic_mode=$pic_mode
12991 # Whether or not to optimize for fast installation.
12992 fast_install=$enable_fast_install
12994 # The host system.
12995 host_alias=$host_alias
12996 host=$host
12997 host_os=$host_os
12999 # The build system.
13000 build_alias=$build_alias
13001 build=$build
13002 build_os=$build_os
13004 # A sed program that does not truncate output.
13005 SED=$lt_SED
13007 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13008 Xsed="\$SED -e 1s/^X//"
13010 # A grep program that handles long lines.
13011 GREP=$lt_GREP
13013 # An ERE matcher.
13014 EGREP=$lt_EGREP
13016 # A literal string matcher.
13017 FGREP=$lt_FGREP
13019 # A BSD- or MS-compatible name lister.
13020 NM=$lt_NM
13022 # Whether we need soft or hard links.
13023 LN_S=$lt_LN_S
13025 # What is the maximum length of a command?
13026 max_cmd_len=$max_cmd_len
13028 # Object file suffix (normally "o").
13029 objext=$ac_objext
13031 # Executable file suffix (normally "").
13032 exeext=$exeext
13034 # whether the shell understands "unset".
13035 lt_unset=$lt_unset
13037 # turn spaces into newlines.
13038 SP2NL=$lt_lt_SP2NL
13040 # turn newlines into spaces.
13041 NL2SP=$lt_lt_NL2SP
13043 # How to create reloadable object files.
13044 reload_flag=$lt_reload_flag
13045 reload_cmds=$lt_reload_cmds
13047 # An object symbol dumper.
13048 OBJDUMP=$lt_OBJDUMP
13050 # Method to check whether dependent libraries are shared objects.
13051 deplibs_check_method=$lt_deplibs_check_method
13053 # Command to use when deplibs_check_method == "file_magic".
13054 file_magic_cmd=$lt_file_magic_cmd
13056 # The archiver.
13057 AR=$lt_AR
13058 AR_FLAGS=$lt_AR_FLAGS
13060 # A symbol stripping program.
13061 STRIP=$lt_STRIP
13063 # Commands used to install an old-style archive.
13064 RANLIB=$lt_RANLIB
13065 old_postinstall_cmds=$lt_old_postinstall_cmds
13066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13068 # A C compiler.
13069 LTCC=$lt_CC
13071 # LTCC compiler flags.
13072 LTCFLAGS=$lt_CFLAGS
13074 # Take the output of nm and produce a listing of raw symbols and C names.
13075 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13077 # Transform the output of nm in a proper C declaration.
13078 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13080 # Transform the output of nm in a C name address pair.
13081 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13083 # Transform the output of nm in a C name address pair when lib prefix is needed.
13084 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13086 # The name of the directory that contains temporary libtool files.
13087 objdir=$objdir
13089 # Shell to use when invoking shell scripts.
13090 SHELL=$lt_SHELL
13092 # An echo program that does not interpret backslashes.
13093 ECHO=$lt_ECHO
13095 # Used to examine libraries when file_magic_cmd begins with "file".
13096 MAGIC_CMD=$MAGIC_CMD
13098 # Must we lock files when doing compilation?
13099 need_locks=$lt_need_locks
13101 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13102 DSYMUTIL=$lt_DSYMUTIL
13104 # Tool to change global to local symbols on Mac OS X.
13105 NMEDIT=$lt_NMEDIT
13107 # Tool to manipulate fat objects and archives on Mac OS X.
13108 LIPO=$lt_LIPO
13110 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13111 OTOOL=$lt_OTOOL
13113 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13114 OTOOL64=$lt_OTOOL64
13116 # Old archive suffix (normally "a").
13117 libext=$libext
13119 # Shared library suffix (normally ".so").
13120 shrext_cmds=$lt_shrext_cmds
13122 # The commands to extract the exported symbol list from a shared archive.
13123 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13125 # Variables whose values should be saved in libtool wrapper scripts and
13126 # restored at link time.
13127 variables_saved_for_relink=$lt_variables_saved_for_relink
13129 # Do we need the "lib" prefix for modules?
13130 need_lib_prefix=$need_lib_prefix
13132 # Do we need a version for libraries?
13133 need_version=$need_version
13135 # Library versioning type.
13136 version_type=$version_type
13138 # Shared library runtime path variable.
13139 runpath_var=$runpath_var
13141 # Shared library path variable.
13142 shlibpath_var=$shlibpath_var
13144 # Is shlibpath searched before the hard-coded library search path?
13145 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13147 # Format of library name prefix.
13148 libname_spec=$lt_libname_spec
13150 # List of archive names. First name is the real one, the rest are links.
13151 # The last name is the one that the linker finds with -lNAME
13152 library_names_spec=$lt_library_names_spec
13154 # The coded name of the library, if different from the real name.
13155 soname_spec=$lt_soname_spec
13157 # Command to use after installation of a shared archive.
13158 postinstall_cmds=$lt_postinstall_cmds
13160 # Command to use after uninstallation of a shared archive.
13161 postuninstall_cmds=$lt_postuninstall_cmds
13163 # Commands used to finish a libtool library installation in a directory.
13164 finish_cmds=$lt_finish_cmds
13166 # As "finish_cmds", except a single script fragment to be evaled but
13167 # not shown.
13168 finish_eval=$lt_finish_eval
13170 # Whether we should hardcode library paths into libraries.
13171 hardcode_into_libs=$hardcode_into_libs
13173 # Compile-time system search path for libraries.
13174 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13176 # Run-time system search path for libraries.
13177 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13179 # Whether dlopen is supported.
13180 dlopen_support=$enable_dlopen
13182 # Whether dlopen of programs is supported.
13183 dlopen_self=$enable_dlopen_self
13185 # Whether dlopen of statically linked programs is supported.
13186 dlopen_self_static=$enable_dlopen_self_static
13188 # Commands to strip libraries.
13189 old_striplib=$lt_old_striplib
13190 striplib=$lt_striplib
13193 # The linker used to build libraries.
13194 LD=$lt_LD
13196 # Commands used to build an old-style archive.
13197 old_archive_cmds=$lt_old_archive_cmds
13199 # A language specific compiler.
13200 CC=$lt_compiler
13202 # Is the compiler the GNU compiler?
13203 with_gcc=$GCC
13205 # Compiler flag to turn off builtin functions.
13206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13208 # How to pass a linker flag through the compiler.
13209 wl=$lt_lt_prog_compiler_wl
13211 # Additional compiler flags for building library objects.
13212 pic_flag=$lt_lt_prog_compiler_pic
13214 # Compiler flag to prevent dynamic linking.
13215 link_static_flag=$lt_lt_prog_compiler_static
13217 # Does compiler simultaneously support -c and -o options?
13218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13220 # Whether or not to add -lc for building shared libraries.
13221 build_libtool_need_lc=$archive_cmds_need_lc
13223 # Whether or not to disallow shared libs when runtime libs are static.
13224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13226 # Compiler flag to allow reflexive dlopens.
13227 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13229 # Compiler flag to generate shared objects directly from archives.
13230 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13232 # Whether the compiler copes with passing no objects directly.
13233 compiler_needs_object=$lt_compiler_needs_object
13235 # Create an old-style archive from a shared archive.
13236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13238 # Create a temporary old-style archive to link instead of a shared archive.
13239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13241 # Commands used to build a shared archive.
13242 archive_cmds=$lt_archive_cmds
13243 archive_expsym_cmds=$lt_archive_expsym_cmds
13245 # Commands used to build a loadable module if different from building
13246 # a shared archive.
13247 module_cmds=$lt_module_cmds
13248 module_expsym_cmds=$lt_module_expsym_cmds
13250 # Whether we are building with GNU ld or not.
13251 with_gnu_ld=$lt_with_gnu_ld
13253 # Flag that allows shared libraries with undefined symbols to be built.
13254 allow_undefined_flag=$lt_allow_undefined_flag
13256 # Flag that enforces no undefined symbols.
13257 no_undefined_flag=$lt_no_undefined_flag
13259 # Flag to hardcode \$libdir into a binary during linking.
13260 # This must work even if \$libdir does not exist
13261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13263 # If ld is used when linking, flag to hardcode \$libdir into a binary
13264 # during linking. This must work even if \$libdir does not exist.
13265 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13267 # Whether we need a single "-rpath" flag with a separated argument.
13268 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13270 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13271 # DIR into the resulting binary.
13272 hardcode_direct=$hardcode_direct
13274 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13275 # DIR into the resulting binary and the resulting library dependency is
13276 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13277 # library is relocated.
13278 hardcode_direct_absolute=$hardcode_direct_absolute
13280 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13281 # into the resulting binary.
13282 hardcode_minus_L=$hardcode_minus_L
13284 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13285 # into the resulting binary.
13286 hardcode_shlibpath_var=$hardcode_shlibpath_var
13288 # Set to "yes" if building a shared library automatically hardcodes DIR
13289 # into the library and all subsequent libraries and executables linked
13290 # against it.
13291 hardcode_automatic=$hardcode_automatic
13293 # Set to yes if linker adds runtime paths of dependent libraries
13294 # to runtime path list.
13295 inherit_rpath=$inherit_rpath
13297 # Whether libtool must link a program against all its dependency libraries.
13298 link_all_deplibs=$link_all_deplibs
13300 # Fix the shell variable \$srcfile for the compiler.
13301 fix_srcfile_path=$lt_fix_srcfile_path
13303 # Set to "yes" if exported symbols are required.
13304 always_export_symbols=$always_export_symbols
13306 # The commands to list exported symbols.
13307 export_symbols_cmds=$lt_export_symbols_cmds
13309 # Symbols that should not be listed in the preloaded symbols.
13310 exclude_expsyms=$lt_exclude_expsyms
13312 # Symbols that must always be exported.
13313 include_expsyms=$lt_include_expsyms
13315 # Commands necessary for linking programs (against libraries) with templates.
13316 prelink_cmds=$lt_prelink_cmds
13318 # Specify filename containing input files.
13319 file_list_spec=$lt_file_list_spec
13321 # How to hardcode a shared library path into an executable.
13322 hardcode_action=$hardcode_action
13324 # ### END LIBTOOL CONFIG
13326 _LT_EOF
13328 case $host_os in
13329 aix3*)
13330 cat <<\_LT_EOF >> "$cfgfile"
13331 # AIX sometimes has problems with the GCC collect2 program. For some
13332 # reason, if we set the COLLECT_NAMES environment variable, the problems
13333 # vanish in a puff of smoke.
13334 if test "X${COLLECT_NAMES+set}" != Xset; then
13335 COLLECT_NAMES=
13336 export COLLECT_NAMES
13338 _LT_EOF
13340 esac
13343 ltmain="$ac_aux_dir/ltmain.sh"
13346 # We use sed instead of cat because bash on DJGPP gets confused if
13347 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13348 # text mode, it properly converts lines to CR/LF. This bash problem
13349 # is reportedly fixed, but why not run on old versions too?
13350 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13351 || (rm -f "$cfgfile"; exit 1)
13353 case $xsi_shell in
13354 yes)
13355 cat << \_LT_EOF >> "$cfgfile"
13357 # func_dirname file append nondir_replacement
13358 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13359 # otherwise set result to NONDIR_REPLACEMENT.
13360 func_dirname ()
13362 case ${1} in
13363 */*) func_dirname_result="${1%/*}${2}" ;;
13364 * ) func_dirname_result="${3}" ;;
13365 esac
13368 # func_basename file
13369 func_basename ()
13371 func_basename_result="${1##*/}"
13374 # func_dirname_and_basename file append nondir_replacement
13375 # perform func_basename and func_dirname in a single function
13376 # call:
13377 # dirname: Compute the dirname of FILE. If nonempty,
13378 # add APPEND to the result, otherwise set result
13379 # to NONDIR_REPLACEMENT.
13380 # value returned in "$func_dirname_result"
13381 # basename: Compute filename of FILE.
13382 # value retuned in "$func_basename_result"
13383 # Implementation must be kept synchronized with func_dirname
13384 # and func_basename. For efficiency, we do not delegate to
13385 # those functions but instead duplicate the functionality here.
13386 func_dirname_and_basename ()
13388 case ${1} in
13389 */*) func_dirname_result="${1%/*}${2}" ;;
13390 * ) func_dirname_result="${3}" ;;
13391 esac
13392 func_basename_result="${1##*/}"
13395 # func_stripname prefix suffix name
13396 # strip PREFIX and SUFFIX off of NAME.
13397 # PREFIX and SUFFIX must not contain globbing or regex special
13398 # characters, hashes, percent signs, but SUFFIX may contain a leading
13399 # dot (in which case that matches only a dot).
13400 func_stripname ()
13402 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13403 # positional parameters, so assign one to ordinary parameter first.
13404 func_stripname_result=${3}
13405 func_stripname_result=${func_stripname_result#"${1}"}
13406 func_stripname_result=${func_stripname_result%"${2}"}
13409 # func_opt_split
13410 func_opt_split ()
13412 func_opt_split_opt=${1%%=*}
13413 func_opt_split_arg=${1#*=}
13416 # func_lo2o object
13417 func_lo2o ()
13419 case ${1} in
13420 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13421 *) func_lo2o_result=${1} ;;
13422 esac
13425 # func_xform libobj-or-source
13426 func_xform ()
13428 func_xform_result=${1%.*}.lo
13431 # func_arith arithmetic-term...
13432 func_arith ()
13434 func_arith_result=$(( $* ))
13437 # func_len string
13438 # STRING may not start with a hyphen.
13439 func_len ()
13441 func_len_result=${#1}
13444 _LT_EOF
13446 *) # Bourne compatible functions.
13447 cat << \_LT_EOF >> "$cfgfile"
13449 # func_dirname file append nondir_replacement
13450 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13451 # otherwise set result to NONDIR_REPLACEMENT.
13452 func_dirname ()
13454 # Extract subdirectory from the argument.
13455 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13456 if test "X$func_dirname_result" = "X${1}"; then
13457 func_dirname_result="${3}"
13458 else
13459 func_dirname_result="$func_dirname_result${2}"
13463 # func_basename file
13464 func_basename ()
13466 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13470 # func_stripname prefix suffix name
13471 # strip PREFIX and SUFFIX off of NAME.
13472 # PREFIX and SUFFIX must not contain globbing or regex special
13473 # characters, hashes, percent signs, but SUFFIX may contain a leading
13474 # dot (in which case that matches only a dot).
13475 # func_strip_suffix prefix name
13476 func_stripname ()
13478 case ${2} in
13479 .*) func_stripname_result=`$ECHO "X${3}" \
13480 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13481 *) func_stripname_result=`$ECHO "X${3}" \
13482 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13483 esac
13486 # sed scripts:
13487 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13488 my_sed_long_arg='1s/^-[^=]*=//'
13490 # func_opt_split
13491 func_opt_split ()
13493 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13494 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13497 # func_lo2o object
13498 func_lo2o ()
13500 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13503 # func_xform libobj-or-source
13504 func_xform ()
13506 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13509 # func_arith arithmetic-term...
13510 func_arith ()
13512 func_arith_result=`expr "$@"`
13515 # func_len string
13516 # STRING may not start with a hyphen.
13517 func_len ()
13519 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13522 _LT_EOF
13523 esac
13525 case $lt_shell_append in
13526 yes)
13527 cat << \_LT_EOF >> "$cfgfile"
13529 # func_append var value
13530 # Append VALUE to the end of shell variable VAR.
13531 func_append ()
13533 eval "$1+=\$2"
13535 _LT_EOF
13538 cat << \_LT_EOF >> "$cfgfile"
13540 # func_append var value
13541 # Append VALUE to the end of shell variable VAR.
13542 func_append ()
13544 eval "$1=\$$1\$2"
13547 _LT_EOF
13549 esac
13552 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13553 || (rm -f "$cfgfile"; exit 1)
13555 mv -f "$cfgfile" "$ofile" ||
13556 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13557 chmod +x "$ofile"
13561 esac
13562 done # for ac_tag
13565 as_fn_exit 0
13566 _ACEOF
13567 ac_clean_files=$ac_clean_files_save
13569 test $ac_write_fail = 0 ||
13570 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13573 # configure is writing to config.log, and then calls config.status.
13574 # config.status does its own redirection, appending to config.log.
13575 # Unfortunately, on DOS this fails, as config.log is still kept open
13576 # by configure, so config.status won't be able to write to it; its
13577 # output is simply discarded. So we exec the FD to /dev/null,
13578 # effectively closing config.log, so it can be properly (re)opened and
13579 # appended to by config.status. When coming back to configure, we
13580 # need to make the FD available again.
13581 if test "$no_create" != yes; then
13582 ac_cs_success=:
13583 ac_config_status_args=
13584 test "$silent" = yes &&
13585 ac_config_status_args="$ac_config_status_args --quiet"
13586 exec 5>/dev/null
13587 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13588 exec 5>>config.log
13589 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13590 # would make configure fail if this is the last instruction.
13591 $ac_cs_success || as_fn_exit 1
13593 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13595 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}