Debian Codegraph @

lang/sql/jdbc/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
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.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell [email protected] about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537 ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
549 :
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<_LT_EOF
559 $*
560 _LT_EOF
561 exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
580
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
589 #
590 # So, first we look for a working echo in the user's PATH.
591
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
603 IFS="$lt_save_ifs"
604
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620 else
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
645
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
653
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
661 fi
662 fi
663 fi
664 fi
665 fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="native/sqlite_jni.c"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 # include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 # include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='LTLIBOBJS
744 LIBOBJS
745 NATIVE_LIB_DIR
746 JDBCVER
747 JAR_DIR
748 JNIINCLUDE
749 JAVADOC
750 JAR
751 JAVAC_FLAGS
752 JAVAC
753 JAVA_FLAGS
754 JAVA_RUN
755 JAVAH
756 READLINK
757 VALIST_FLAGS
758 SQLITE3_A10N_FLAGS
759 SQLITE3_A10N_O
760 SQLITE3_A10N_C
761 HAVE_SQLITE3_STMT_STATUS
762 HAVE_SQLITE3_DB_STATUS
763 HAVE_SQLITE3_STATUS
764 HAVE_SQLITE3_PROFILE
765 HAVE_SQLITE3_BACKUPAPI
766 HAVE_SQLITE3_LOAD_EXTENSION
767 HAVE_SQLITE3_OPEN_V2
768 HAVE_SQLITE3_SHARED_CACHE
769 HAVE_SQLITE3_KEY
770 HAVE_SQLITE3_INCRBLOBIO
771 HAVE_SQLITE3_RESULT_ZEROBLOB
772 HAVE_SQLITE3_BIND_PARAMETER_INDEX
773 HAVE_SQLITE3_BIND_PARAMETER_NAME
774 HAVE_SQLITE3_BIND_PARAMETER_COUNT
775 HAVE_SQLITE3_COLUMN_ORIGIN_NAME16
776 HAVE_SQLITE3_COLUMN_DATABASE_NAME16
777 HAVE_SQLITE3_COLUMN_TABLE_NAME16
778 HAVE_SQLITE3_CLEAR_BINDINGS
779 HAVE_SQLITE3_BIND_ZEROBLOB
780 HAVE_SQLITE3_PREPARE16_V2
781 HAVE_SQLITE3_PREPARE_V2
782 HAVE_SQLITE3_MALLOC
783 HAVE_SQLITE3
784 SQLITE3_LIB
785 SQLITE3_INC
786 HAVE_SQLITE_PROGRESS_HANDLER
787 HAVE_SQLITE_COMPILE
788 HAVE_SQLITE_TRACE
789 HAVE_SQLITE_SET_AUTHORIZER
790 HAVE_SQLITE_OPEN_AUX_FILE
791 HAVE_SQLITE_FUNCTION_TYPE
792 HAVE_SQLITE2
793 SQLITE_LIB
794 SQLITE_INC
795 target_os
796 target_vendor
797 target_cpu
798 target
799 HOST_CFLAGS
800 HOSTCC
801 INSTALL_DATA
802 INSTALL_SCRIPT
803 INSTALL_PROGRAM
804 CPP
805 OTOOL64
806 OTOOL
807 LIPO
808 NMEDIT
809 DSYMUTIL
810 lt_ECHO
811 RANLIB
812 STRIP
813 AR
814 OBJDUMP
815 LN_S
816 NM
817 ac_ct_DUMPBIN
818 DUMPBIN
819 LD
820 FGREP
821 EGREP
822 GREP
823 SED
824 OBJEXT
825 EXEEXT
826 ac_ct_CC
827 CPPFLAGS
828 LDFLAGS
829 CFLAGS
830 CC
831 host_os
832 host_vendor
833 host_cpu
834 host
835 build_os
836 build_vendor
837 build_cpu
838 build
839 LIBTOOL
840 target_alias
841 host_alias
842 build_alias
843 LIBS
844 ECHO_T
845 ECHO_N
846 ECHO_C
847 DEFS
848 mandir
849 localedir
850 libdir
851 psdir
852 pdfdir
853 dvidir
854 htmldir
855 infodir
856 docdir
857 oldincludedir
858 includedir
859 localstatedir
860 sharedstatedir
861 sysconfdir
862 datadir
863 datarootdir
864 libexecdir
865 sbindir
866 bindir
867 program_transform_name
868 prefix
869 exec_prefix
870 PACKAGE_URL
871 PACKAGE_BUGREPORT
872 PACKAGE_STRING
873 PACKAGE_VERSION
874 PACKAGE_TARNAME
875 PACKAGE_NAME
876 PATH_SEPARATOR
877 SHELL'
878 ac_subst_files=''
879 ac_user_opts='
880 enable_option_checking
881 enable_static
882 enable_shared
883 with_pic
884 enable_fast_install
885 with_gnu_ld
886 enable_libtool_lock
887 with_jardir
888 with_sqlite
889 with_sqlite3
890 enable_load_extension
891 with_jdk
892 '
893 ac_precious_vars='build_alias
894 host_alias
895 target_alias
896 CC
897 CFLAGS
898 LDFLAGS
899 LIBS
900 CPPFLAGS
901 CPP'
902
903
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 ac_unrecognized_opts=
908 ac_unrecognized_sep=
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
911 cache_file=/dev/null
912 exec_prefix=NONE
913 no_create=
914 no_recursion=
915 prefix=NONE
916 program_prefix=NONE
917 program_suffix=NONE
918 program_transform_name=s,x,x,
919 silent=
920 site=
921 srcdir=
922 verbose=
923 x_includes=NONE
924 x_libraries=NONE
925
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir='${exec_prefix}/bin'
933 sbindir='${exec_prefix}/sbin'
934 libexecdir='${exec_prefix}/libexec'
935 datarootdir='${prefix}/share'
936 datadir='${datarootdir}'
937 sysconfdir='${prefix}/etc'
938 sharedstatedir='${prefix}/com'
939 localstatedir='${prefix}/var'
940 includedir='${prefix}/include'
941 oldincludedir='/usr/include'
942 docdir='${datarootdir}/doc/${PACKAGE}'
943 infodir='${datarootdir}/info'
944 htmldir='${docdir}'
945 dvidir='${docdir}'
946 pdfdir='${docdir}'
947 psdir='${docdir}'
948 libdir='${exec_prefix}/lib'
949 localedir='${datarootdir}/locale'
950 mandir='${datarootdir}/man'
951
952 ac_prev=
953 ac_dashdash=
954 for ac_option
955 do
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
959 ac_prev=
960 continue
961 fi
962
963 case $ac_option in
964 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *=) ac_optarg= ;;
966 *) ac_optarg=yes ;;
967 esac
968
969 # Accept the important Cygnus configure options, so we can diagnose typos.
970
971 case $ac_dashdash$ac_option in
972 --)
973 ac_dashdash=yes ;;
974
975 -bindir | --bindir | --bindi | --bind | --bin | --bi)
976 ac_prev=bindir ;;
977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978 bindir=$ac_optarg ;;
979
980 -build | --build | --buil | --bui | --bu)
981 ac_prev=build_alias ;;
982 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983 build_alias=$ac_optarg ;;
984
985 -cache-file | --cache-file | --cache-fil | --cache-fi \
986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987 ac_prev=cache_file ;;
988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990 cache_file=$ac_optarg ;;
991
992 --config-cache | -C)
993 cache_file=config.cache ;;
994
995 -datadir | --datadir | --datadi | --datad)
996 ac_prev=datadir ;;
997 -datadir=* | --datadir=* | --datadi=* | --datad=*)
998 datadir=$ac_optarg ;;
999
1000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001 | --dataroo | --dataro | --datar)
1002 ac_prev=datarootdir ;;
1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005 datarootdir=$ac_optarg ;;
1006
1007 -disable-* | --disable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error $? "invalid feature name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016 "enable_$ac_useropt"
1017 "*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=no ;;
1022
1023 -docdir | --docdir | --docdi | --doc | --do)
1024 ac_prev=docdir ;;
1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026 docdir=$ac_optarg ;;
1027
1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 ac_prev=dvidir ;;
1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031 dvidir=$ac_optarg ;;
1032
1033 -enable-* | --enable-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1041 *"
1042 "enable_$ac_useropt"
1043 "*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval enable_$ac_useropt=\$ac_optarg ;;
1048
1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051 | --exec | --exe | --ex)
1052 ac_prev=exec_prefix ;;
1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055 | --exec=* | --exe=* | --ex=*)
1056 exec_prefix=$ac_optarg ;;
1057
1058 -gas | --gas | --ga | --g)
1059 # Obsolete; use --with-gas.
1060 with_gas=yes ;;
1061
1062 -help | --help | --hel | --he | -h)
1063 ac_init_help=long ;;
1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065 ac_init_help=recursive ;;
1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067 ac_init_help=short ;;
1068
1069 -host | --host | --hos | --ho)
1070 ac_prev=host_alias ;;
1071 -host=* | --host=* | --hos=* | --ho=*)
1072 host_alias=$ac_optarg ;;
1073
1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 ac_prev=htmldir ;;
1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 | --ht=*)
1078 htmldir=$ac_optarg ;;
1079
1080 -includedir | --includedir | --includedi | --included | --include \
1081 | --includ | --inclu | --incl | --inc)
1082 ac_prev=includedir ;;
1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084 | --includ=* | --inclu=* | --incl=* | --inc=*)
1085 includedir=$ac_optarg ;;
1086
1087 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 ac_prev=infodir ;;
1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090 infodir=$ac_optarg ;;
1091
1092 -libdir | --libdir | --libdi | --libd)
1093 ac_prev=libdir ;;
1094 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095 libdir=$ac_optarg ;;
1096
1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098 | --libexe | --libex | --libe)
1099 ac_prev=libexecdir ;;
1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101 | --libexe=* | --libex=* | --libe=*)
1102 libexecdir=$ac_optarg ;;
1103
1104 -localedir | --localedir | --localedi | --localed | --locale)
1105 ac_prev=localedir ;;
1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107 localedir=$ac_optarg ;;
1108
1109 -localstatedir | --localstatedir | --localstatedi | --localstated \
1110 | --localstate | --localstat | --localsta | --localst | --locals)
1111 ac_prev=localstatedir ;;
1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114 localstatedir=$ac_optarg ;;
1115
1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 ac_prev=mandir ;;
1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119 mandir=$ac_optarg ;;
1120
1121 -nfp | --nfp | --nf)
1122 # Obsolete; use --without-fp.
1123 with_fp=no ;;
1124
1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126 | --no-cr | --no-c | -n)
1127 no_create=yes ;;
1128
1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 no_recursion=yes ;;
1132
1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135 | --oldin | --oldi | --old | --ol | --o)
1136 ac_prev=oldincludedir ;;
1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140 oldincludedir=$ac_optarg ;;
1141
1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 ac_prev=prefix ;;
1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145 prefix=$ac_optarg ;;
1146
1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148 | --program-pre | --program-pr | --program-p)
1149 ac_prev=program_prefix ;;
1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152 program_prefix=$ac_optarg ;;
1153
1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155 | --program-suf | --program-su | --program-s)
1156 ac_prev=program_suffix ;;
1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159 program_suffix=$ac_optarg ;;
1160
1161 -program-transform-name | --program-transform-name \
1162 | --program-transform-nam | --program-transform-na \
1163 | --program-transform-n | --program-transform- \
1164 | --program-transform | --program-transfor \
1165 | --program-transfo | --program-transf \
1166 | --program-trans | --program-tran \
1167 | --progr-tra | --program-tr | --program-t)
1168 ac_prev=program_transform_name ;;
1169 -program-transform-name=* | --program-transform-name=* \
1170 | --program-transform-nam=* | --program-transform-na=* \
1171 | --program-transform-n=* | --program-transform-=* \
1172 | --program-transform=* | --program-transfor=* \
1173 | --program-transfo=* | --program-transf=* \
1174 | --program-trans=* | --program-tran=* \
1175 | --progr-tra=* | --program-tr=* | --program-t=*)
1176 program_transform_name=$ac_optarg ;;
1177
1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 ac_prev=pdfdir ;;
1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181 pdfdir=$ac_optarg ;;
1182
1183 -psdir | --psdir | --psdi | --psd | --ps)
1184 ac_prev=psdir ;;
1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 psdir=$ac_optarg ;;
1187
1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189 | -silent | --silent | --silen | --sile | --sil)
1190 silent=yes ;;
1191
1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 ac_prev=sbindir ;;
1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 | --sbi=* | --sb=*)
1196 sbindir=$ac_optarg ;;
1197
1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200 | --sharedst | --shareds | --shared | --share | --shar \
1201 | --sha | --sh)
1202 ac_prev=sharedstatedir ;;
1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 | --sha=* | --sh=*)
1207 sharedstatedir=$ac_optarg ;;
1208
1209 -site | --site | --sit)
1210 ac_prev=site ;;
1211 -site=* | --site=* | --sit=*)
1212 site=$ac_optarg ;;
1213
1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 ac_prev=srcdir ;;
1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217 srcdir=$ac_optarg ;;
1218
1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220 | --syscon | --sysco | --sysc | --sys | --sy)
1221 ac_prev=sysconfdir ;;
1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224 sysconfdir=$ac_optarg ;;
1225
1226 -target | --target | --targe | --targ | --tar | --ta | --t)
1227 ac_prev=target_alias ;;
1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229 target_alias=$ac_optarg ;;
1230
1231 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 verbose=yes ;;
1233
1234 -version | --version | --versio | --versi | --vers | -V)
1235 ac_init_version=: ;;
1236
1237 -with-* | --with-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error $? "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1245 *"
1246 "with_$ac_useropt"
1247 "*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=\$ac_optarg ;;
1252
1253 -without-* | --without-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1261 *"
1262 "with_$ac_useropt"
1263 "*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=no ;;
1268
1269 --x)
1270 # Obsolete; use --with-x.
1271 with_x=yes ;;
1272
1273 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1274 | --x-incl | --x-inc | --x-in | --x-i)
1275 ac_prev=x_includes ;;
1276 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1277 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1278 x_includes=$ac_optarg ;;
1279
1280 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1281 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1282 ac_prev=x_libraries ;;
1283 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1284 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1285 x_libraries=$ac_optarg ;;
1286
1287 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1288 Try \`$0 --help' for more information"
1289 ;;
1290
1291 *=*)
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 case $ac_envvar in #(
1295 '' | [0-9]* | *[!_$as_cr_alnum]* )
1296 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1297 esac
1298 eval $ac_envvar=\$ac_optarg
1299 export $ac_envvar ;;
1300
1301 *)
1302 # FIXME: should be removed in autoconf 3.0.
1303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1307 ;;
1308
1309 esac
1310 done
1311
1312 if test -n "$ac_prev"; then
1313 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1314 as_fn_error $? "missing argument to $ac_option"
1315 fi
1316
1317 if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1319 no) ;;
1320 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322 esac
1323 fi
1324
1325 # Check all directory arguments for consistency.
1326 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1330 do
1331 eval ac_val=\$$ac_var
1332 # Remove trailing slashes.
1333 case $ac_val in
1334 */ )
1335 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\$ac_val;;
1337 esac
1338 # Be sure to have absolute directory names.
1339 case $ac_val in
1340 [\\/$]* | ?:[\\/]* ) continue;;
1341 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1342 esac
1343 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1344 done
1345
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1349 build=$build_alias
1350 host=$host_alias
1351 target=$target_alias
1352
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
1357 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1358 If a cross compiler is detected then cross compile mode will be used" >&2
1359 elif test "x$build_alias" != "x$host_alias"; then
1360 cross_compiling=yes
1361 fi
1362 fi
1363
1364 ac_tool_prefix=
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367 test "$silent" = yes && exec 6>/dev/null
1368
1369
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373 as_fn_error $? "working directory cannot be determined"
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 as_fn_error $? "pwd does not report name of working directory"
1376
1377
1378 # Find the source files, if location was not specified.
1379 if test -z "$srcdir"; then
1380 ac_srcdir_defaulted=yes
1381 # Try the directory containing this script, then the parent directory.
1382 ac_confdir=`$as_dirname -- "$as_myself" ||
1383 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384 X"$as_myself" : 'X\(//\)[^/]' \| \
1385 X"$as_myself" : 'X\(//\)$' \| \
1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387 $as_echo X"$as_myself" |
1388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\/\)[^/].*/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\).*/{
1401 s//\1/
1402 q
1403 }
1404 s/.*/./; q'`
1405 srcdir=$ac_confdir
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 srcdir=..
1408 fi
1409 else
1410 ac_srcdir_defaulted=no
1411 fi
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1415 fi
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 ac_abs_confdir=`(
1418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1419 pwd)`
1420 # When building in place, set srcdir=.
1421 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 srcdir=.
1423 fi
1424 # Remove unnecessary trailing slashes from srcdir.
1425 # Double slashes in file names in object file debugging info
1426 # mess up M-x gdb in Emacs.
1427 case $srcdir in
1428 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429 esac
1430 for ac_var in $ac_precious_vars; do
1431 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_env_${ac_var}_value=\$${ac_var}
1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435 done
1436
1437 #
1438 # Report the --help message.
1439 #
1440 if test "$ac_init_help" = "long"; then
1441 # Omit some internal or obsolete options to make the list less imposing.
1442 # This message is too long to be a string in the A/UX 3.1 sh.
1443 cat <<_ACEOF
1444 \`configure' configures this package to adapt to many kinds of systems.
1445
1446 Usage: $0 [OPTION]... [VAR=VALUE]...
1447
1448 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449 VAR=VALUE. See below for descriptions of some of the useful variables.
1450
1451 Defaults for the options are specified in brackets.
1452
1453 Configuration:
1454 -h, --help display this help and exit
1455 --help=short display options specific to this package
1456 --help=recursive display the short help of all the included packages
1457 -V, --version display version information and exit
1458 -q, --quiet, --silent do not print \`checking ...' messages
1459 --cache-file=FILE cache test results in FILE [disabled]
1460 -C, --config-cache alias for \`--cache-file=config.cache'
1461 -n, --no-create do not create output files
1462 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463
1464 Installation directories:
1465 --prefix=PREFIX install architecture-independent files in PREFIX
1466 [$ac_default_prefix]
1467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 [PREFIX]
1469
1470 By default, \`make install' will install all the files in
1471 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1472 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473 for instance \`--prefix=\$HOME'.
1474
1475 For better control, use the options below.
1476
1477 Fine tuning of the installation directories:
1478 --bindir=DIR user executables [EPREFIX/bin]
1479 --sbindir=DIR system admin executables [EPREFIX/sbin]
1480 --libexecdir=DIR program executables [EPREFIX/libexec]
1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1484 --libdir=DIR object code libraries [EPREFIX/lib]
1485 --includedir=DIR C header files [PREFIX/include]
1486 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1489 --infodir=DIR info documentation [DATAROOTDIR/info]
1490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1491 --mandir=DIR man documentation [DATAROOTDIR/man]
1492 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1493 --htmldir=DIR html documentation [DOCDIR]
1494 --dvidir=DIR dvi documentation [DOCDIR]
1495 --pdfdir=DIR pdf documentation [DOCDIR]
1496 --psdir=DIR ps documentation [DOCDIR]
1497 _ACEOF
1498
1499 cat <<\_ACEOF
1500
1501 System types:
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 --target=TARGET configure for building compilers for TARGET [HOST]
1505 _ACEOF
1506 fi
1507
1508 if test -n "$ac_init_help"; then
1509
1510 cat <<\_ACEOF
1511
1512 Optional Features:
1513 --disable-option-checking ignore unrecognized --enable/--with options
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --enable-static[=PKGS] build static libraries [default=no]
1517 --enable-shared[=PKGS] build shared libraries [default=yes]
1518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-libtool-lock avoid locking (might break parallel builds)
1521 --enable-load-extension support for loading SQLite 3.x extensions.
1522 ***** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *****
1523 *** Note that the --enable-load-extension option makes it ***
1524 *** possible for library users to load arbitrary native code ***
1525 *** into the JVM bypassing its security manager checks, and ***
1526 *** thus should be enabled only if you know what you're doing. ***
1527 *******************************************************************
1528
1529 Optional Packages:
1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1532 --with-pic try to use only PIC/non-PIC objects [default=use
1533 both]
1534 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1535 --with-jardir=DIR where to place .jar files
1536 --with-sqlite=DIR use SQLite header/lib from DIR
1537 --with-sqlite3=DIR use SQLite3 header/lib from DIR
1538 --with-jdk=DIR use Java top directory DIR
1539
1540 Some influential environment variables:
1541 CC C compiler command
1542 CFLAGS C compiler flags
1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1544 nonstandard directory <lib dir>
1545 LIBS libraries to pass to the linker, e.g. -l<library>
1546 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1547 you have headers in a nonstandard directory <include dir>
1548 CPP C preprocessor
1549
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1552
1553 Report bugs to the package provider.
1554 _ACEOF
1555 ac_status=$?
1556 fi
1557
1558 if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 test -d "$ac_dir" ||
1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 continue
1564 ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583 .) # We are building in place.
1584 ac_srcdir=.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1591 *) # Relative name.
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1606 else
1607 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 fi || ac_status=$?
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1610 done
1611 fi
1612
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615 cat <<\_ACEOF
1616 configure
1617 generated by GNU Autoconf 2.67
1618
1619 Copyright (C) 2010 Free Software Foundation, Inc.
1620 This configure script is free software; the Free Software Foundation
1621 gives unlimited permission to copy, distribute and modify it.
1622 _ACEOF
1623 exit
1624 fi
1625
1626 ## ------------------------ ##
1627 ## Autoconf initialization. ##
1628 ## ------------------------ ##
1629
1630 # ac_fn_c_try_compile LINENO
1631 # --------------------------
1632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_compile ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext
1637 if { { ac_try="$ac_compile"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_compile") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest.$ac_objext; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662 fi
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_compile
1667
1668 # ac_fn_c_try_link LINENO
1669 # -----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_link ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext conftest$ac_exeext
1675 if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest$ac_exeext && {
1694 test "$cross_compiling" = yes ||
1695 $as_test_x conftest$ac_exeext
1696 }; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703 fi
1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1706 # interfere with the next link command; also delete a directory that is
1707 # left behind by Apple's compiler. We do this before executing the actions.
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_link
1713
1714 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists and can be compiled using the include files in
1717 # INCLUDES, setting the cache variable VAR accordingly.
1718 ac_fn_c_check_header_compile ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval "test \"\${$3+set}\"" = set; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 $4
1729 #include <$2>
1730 _ACEOF
1731 if ac_fn_c_try_compile "$LINENO"; then :
1732 eval "$3=yes"
1733 else
1734 eval "$3=no"
1735 fi
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742
1743 } # ac_fn_c_check_header_compile
1744
1745 # ac_fn_c_try_cpp LINENO
1746 # ----------------------
1747 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_cpp ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_cpp conftest.$ac_ext"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } > conftest.i && {
1767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 }; then :
1770 ac_retval=0
1771 else
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1
1776 fi
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_cpp
1781
1782 # ac_fn_c_try_run LINENO
1783 # ----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785 # that executables *can* be run.
1786 ac_fn_c_try_run ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_link"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800 { { case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_try") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; }; }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: program exited with status $ac_status" >&5
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=$ac_status
1817 fi
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 as_fn_set_status $ac_retval
1821
1822 } # ac_fn_c_try_run
1823
1824 # ac_fn_c_check_func LINENO FUNC VAR
1825 # ----------------------------------
1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval "test \"\${$3+set}\"" = set; then :
1833 $as_echo_n "(cached) " >&6
1834 else
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1839 #define $2 innocuous_$2
1840
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char $2 (); below.
1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844 <limits.h> exists even on freestanding compilers. */
1845
1846 #ifdef __STDC__
1847 # include <limits.h>
1848 #else
1849 # include <assert.h>
1850 #endif
1851
1852 #undef $2
1853
1854 /* Override any GCC internal prototype to avoid an error.
1855 Use char because int might match the return type of a GCC
1856 builtin and then its argument prototype would still apply. */
1857 #ifdef __cplusplus
1858 extern "C"
1859 #endif
1860 char $2 ();
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined __stub_$2 || defined __stub___$2
1865 choke me
1866 #endif
1867
1868 int
1869 main ()
1870 {
1871 return $2 ();
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_link "$LINENO"; then :
1877 eval "$3=yes"
1878 else
1879 eval "$3=no"
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext \
1882 conftest$ac_exeext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888
1889 } # ac_fn_c_check_func
1890 cat >config.log <<_ACEOF
1891 This file contains any messages produced by compilers while
1892 running configure, to aid debugging if configure makes a mistake.
1893
1894 It was created by $as_me, which was
1895 generated by GNU Autoconf 2.67. Invocation command line was
1896
1897 $ $0 $@
1898
1899 _ACEOF
1900 exec 5>>config.log
1901 {
1902 cat <<_ASUNAME
1903 ## --------- ##
1904 ## Platform. ##
1905 ## --------- ##
1906
1907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1912
1913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1914 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1915
1916 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1917 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1919 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1920 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1921 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1922 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1923
1924 _ASUNAME
1925
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929 IFS=$as_save_IFS
1930 test -z "$as_dir" && as_dir=.
1931 $as_echo "PATH: $as_dir"
1932 done
1933 IFS=$as_save_IFS
1934
1935 } >&5
1936
1937 cat >&5 <<_ACEOF
1938
1939
1940 ## ----------- ##
1941 ## Core tests. ##
1942 ## ----------- ##
1943
1944 _ACEOF
1945
1946
1947 # Keep a trace of the command line.
1948 # Strip out --no-create and --no-recursion so they do not pile up.
1949 # Strip out --silent because we don't want to record it for future runs.
1950 # Also quote any args containing shell meta-characters.
1951 # Make two passes to allow for proper duplicate-argument suppression.
1952 ac_configure_args=
1953 ac_configure_args0=
1954 ac_configure_args1=
1955 ac_must_keep_next=false
1956 for ac_pass in 1 2
1957 do
1958 for ac_arg
1959 do
1960 case $ac_arg in
1961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963 | -silent | --silent | --silen | --sile | --sil)
1964 continue ;;
1965 *\'*)
1966 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 esac
1968 case $ac_pass in
1969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970 2)
1971 as_fn_append ac_configure_args1 " '$ac_arg'"
1972 if test $ac_must_keep_next = true; then
1973 ac_must_keep_next=false # Got value, back to normal.
1974 else
1975 case $ac_arg in
1976 *=* | --config-cache | -C | -disable-* | --disable-* \
1977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979 | -with-* | --with-* | -without-* | --without-* | --x)
1980 case "$ac_configure_args0 " in
1981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982 esac
1983 ;;
1984 -* ) ac_must_keep_next=true ;;
1985 esac
1986 fi
1987 as_fn_append ac_configure_args " '$ac_arg'"
1988 ;;
1989 esac
1990 done
1991 done
1992 { ac_configure_args0=; unset ac_configure_args0;}
1993 { ac_configure_args1=; unset ac_configure_args1;}
1994
1995 # When interrupted or exit'd, cleanup temporary files, and complete
1996 # config.log. We remove comments because anyway the quotes in there
1997 # would cause problems or look ugly.
1998 # WARNING: Use '\'' to represent an apostrophe within the trap.
1999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000 trap 'exit_status=$?
2001 # Save into config.log some information that might help in debugging.
2002 {
2003 echo
2004
2005 $as_echo "## ---------------- ##
2006 ## Cache variables. ##
2007 ## ---------------- ##"
2008 echo
2009 # The following way of writing the cache mishandles newlines in values,
2010 (
2011 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2012 eval ac_val=\$$ac_var
2013 case $ac_val in #(
2014 *${as_nl}*)
2015 case $ac_var in #(
2016 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2018 esac
2019 case $ac_var in #(
2020 _ | IFS | as_nl) ;; #(
2021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2022 *) { eval $ac_var=; unset $ac_var;} ;;
2023 esac ;;
2024 esac
2025 done
2026 (set) 2>&1 |
2027 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2028 *${as_nl}ac_space=\ *)
2029 sed -n \
2030 "s/'\''/'\''\\\\'\'''\''/g;
2031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2032 ;; #(
2033 *)
2034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2035 ;;
2036 esac |
2037 sort
2038 )
2039 echo
2040
2041 $as_echo "## ----------------- ##
2042 ## Output variables. ##
2043 ## ----------------- ##"
2044 echo
2045 for ac_var in $ac_subst_vars
2046 do
2047 eval ac_val=\$$ac_var
2048 case $ac_val in
2049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050 esac
2051 $as_echo "$ac_var='\''$ac_val'\''"
2052 done | sort
2053 echo
2054
2055 if test -n "$ac_subst_files"; then
2056 $as_echo "## ------------------- ##
2057 ## File substitutions. ##
2058 ## ------------------- ##"
2059 echo
2060 for ac_var in $ac_subst_files
2061 do
2062 eval ac_val=\$$ac_var
2063 case $ac_val in
2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 esac
2066 $as_echo "$ac_var='\''$ac_val'\''"
2067 done | sort
2068 echo
2069 fi
2070
2071 if test -s confdefs.h; then
2072 $as_echo "## ----------- ##
2073 ## confdefs.h. ##
2074 ## ----------- ##"
2075 echo
2076 cat confdefs.h
2077 echo
2078 fi
2079 test "$ac_signal" != 0 &&
2080 $as_echo "$as_me: caught signal $ac_signal"
2081 $as_echo "$as_me: exit $exit_status"
2082 } >&5
2083 rm -f core *.core core.conftest.* &&
2084 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085 exit $exit_status
2086 ' 0
2087 for ac_signal in 1 2 13 15; do
2088 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2089 done
2090 ac_signal=0
2091
2092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2093 rm -f -r conftest* confdefs.h
2094
2095 $as_echo "/* confdefs.h */" > confdefs.h
2096
2097 # Predefined preprocessor variables.
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_NAME "$PACKAGE_NAME"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_STRING "$PACKAGE_STRING"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_URL "$PACKAGE_URL"
2121 _ACEOF
2122
2123
2124 # Let the site file select an alternate cache file if it wants to.
2125 # Prefer an explicitly selected file to automatically selected ones.
2126 ac_site_file1=NONE
2127 ac_site_file2=NONE
2128 if test -n "$CONFIG_SITE"; then
2129 # We do not want a PATH search for config.site.
2130 case $CONFIG_SITE in #((
2131 -*) ac_site_file1=./$CONFIG_SITE;;
2132 */*) ac_site_file1=$CONFIG_SITE;;
2133 *) ac_site_file1=./$CONFIG_SITE;;
2134 esac
2135 elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2138 else
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
2141 fi
2142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143 do
2144 test "x$ac_site_file" = xNONE && continue
2145 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148 sed 's/^/| /' "$ac_site_file" >&5
2149 . "$ac_site_file" \
2150 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152 as_fn_error $? "failed to load site script $ac_site_file
2153 See \`config.log' for more details" "$LINENO" 5 ; }
2154 fi
2155 done
2156
2157 if test -r "$cache_file"; then
2158 # Some versions of bash will fail to source /dev/null (special files
2159 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2160 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162 $as_echo "$as_me: loading cache $cache_file" >&6;}
2163 case $cache_file in
2164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165 *) . "./$cache_file";;
2166 esac
2167 fi
2168 else
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170 $as_echo "$as_me: creating cache $cache_file" >&6;}
2171 >$cache_file
2172 fi
2173
2174 # Check that the precious variables saved in the cache have kept the same
2175 # value.
2176 ac_cache_corrupted=false
2177 for ac_var in $ac_precious_vars; do
2178 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179 eval ac_new_set=\$ac_env_${ac_var}_set
2180 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181 eval ac_new_val=\$ac_env_${ac_var}_value
2182 case $ac_old_set,$ac_new_set in
2183 set,)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2187 ,set)
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2190 ac_cache_corrupted=: ;;
2191 ,);;
2192 *)
2193 if test "x$ac_old_val" != "x$ac_new_val"; then
2194 # differences in whitespace do not lead to failure.
2195 ac_old_val_w=`echo x $ac_old_val`
2196 ac_new_val_w=`echo x $ac_new_val`
2197 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200 ac_cache_corrupted=:
2201 else
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204 eval $ac_var=\$ac_old_val
2205 fi
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2207 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2209 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2210 fi;;
2211 esac
2212 # Pass precious variables to config.status.
2213 if test "$ac_new_set" = set; then
2214 case $ac_new_val in
2215 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2216 *) ac_arg=$ac_var=$ac_new_val ;;
2217 esac
2218 case " $ac_configure_args " in
2219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2220 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2221 esac
2222 fi
2223 done
2224 if $ac_cache_corrupted; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2230 fi
2231 ## -------------------- ##
2232 ## Main body of script. ##
2233 ## -------------------- ##
2234
2235 ac_ext=c
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240
2241
2242 # Check whether --enable-static was given.
2243 if test "${enable_static+set}" = set; then :
2244 enableval=$enable_static; p=${PACKAGE-default}
2245 case $enableval in
2246 yes) enable_static=yes ;;
2247 no) enable_static=no ;;
2248 *)
2249 enable_static=no
2250 # Look at the argument we got. We use all the common list separators.
2251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2252 for pkg in $enableval; do
2253 IFS="$lt_save_ifs"
2254 if test "X$pkg" = "X$p"; then
2255 enable_static=yes
2256 fi
2257 done
2258 IFS="$lt_save_ifs"
2259 ;;
2260 esac
2261 else
2262 enable_static=no
2263 fi
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273 case `pwd` in
2274 *\ * | *\ *)
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2276 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2277 esac
2278
2279
2280
2281 macro_version='2.2.6b'
2282 macro_revision='1.3017'
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296 ltmain="$ac_aux_dir/ltmain.sh"
2297
2298 ac_aux_dir=
2299 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2300 if test -f "$ac_dir/install-sh"; then
2301 ac_aux_dir=$ac_dir
2302 ac_install_sh="$ac_aux_dir/install-sh -c"
2303 break
2304 elif test -f "$ac_dir/install.sh"; then
2305 ac_aux_dir=$ac_dir
2306 ac_install_sh="$ac_aux_dir/install.sh -c"
2307 break
2308 elif test -f "$ac_dir/shtool"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/shtool install -c"
2311 break
2312 fi
2313 done
2314 if test -z "$ac_aux_dir"; then
2315 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2316 fi
2317
2318 # These three variables are undocumented and unsupported,
2319 # and are intended to be withdrawn in a future Autoconf release.
2320 # They can cause serious problems if a builder's source tree is in a directory
2321 # whose full name contains unusual characters.
2322 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2323 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2324 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2325
2326
2327 # Make sure we can run config.sub.
2328 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2329 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2330
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2332 $as_echo_n "checking build system type... " >&6; }
2333 if test "${ac_cv_build+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 ac_build_alias=$build_alias
2337 test "x$ac_build_alias" = x &&
2338 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2339 test "x$ac_build_alias" = x &&
2340 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2341 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2342 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2343
2344 fi
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2346 $as_echo "$ac_cv_build" >&6; }
2347 case $ac_cv_build in
2348 *-*-*) ;;
2349 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2350 esac
2351 build=$ac_cv_build
2352 ac_save_IFS=$IFS; IFS='-'
2353 set x $ac_cv_build
2354 shift
2355 build_cpu=$1
2356 build_vendor=$2
2357 shift; shift
2358 # Remember, the first character of IFS is used to create $*,
2359 # except with old shells:
2360 build_os=$*
2361 IFS=$ac_save_IFS
2362 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2363
2364
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2366 $as_echo_n "checking host system type... " >&6; }
2367 if test "${ac_cv_host+set}" = set; then :
2368 $as_echo_n "(cached) " >&6
2369 else
2370 if test "x$host_alias" = x; then
2371 ac_cv_host=$ac_cv_build
2372 else
2373 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2374 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2375 fi
2376
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2379 $as_echo "$ac_cv_host" >&6; }
2380 case $ac_cv_host in
2381 *-*-*) ;;
2382 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2383 esac
2384 host=$ac_cv_host
2385 ac_save_IFS=$IFS; IFS='-'
2386 set x $ac_cv_host
2387 shift
2388 host_cpu=$1
2389 host_vendor=$2
2390 shift; shift
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2393 host_os=$*
2394 IFS=$ac_save_IFS
2395 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2396
2397
2398 ac_ext=c
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2407 $as_echo_n "checking for $ac_word... " >&6; }
2408 if test "${ac_cv_prog_CC+set}" = set; then :
2409 $as_echo_n "(cached) " >&6
2410 else
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2424 fi
2425 done
2426 done
2427 IFS=$as_save_IFS
2428
2429 fi
2430 fi
2431 CC=$ac_cv_prog_CC
2432 if test -n "$CC"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2434 $as_echo "$CC" >&6; }
2435 else
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2437 $as_echo "no" >&6; }
2438 fi
2439
2440
2441 fi
2442 if test -z "$ac_cv_prog_CC"; then
2443 ac_ct_CC=$CC
2444 # Extract the first word of "gcc", so it can be a program name with args.
2445 set dummy gcc; ac_word=$2
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2447 $as_echo_n "checking for $ac_word... " >&6; }
2448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 if test -n "$ac_ct_CC"; then
2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 ac_cv_prog_ac_ct_CC="gcc"
2462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 break 2
2464 fi
2465 done
2466 done
2467 IFS=$as_save_IFS
2468
2469 fi
2470 fi
2471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472 if test -n "$ac_ct_CC"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2474 $as_echo "$ac_ct_CC" >&6; }
2475 else
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2477 $as_echo "no" >&6; }
2478 fi
2479
2480 if test "x$ac_ct_CC" = x; then
2481 CC=""
2482 else
2483 case $cross_compiling:$ac_tool_warned in
2484 yes:)
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2487 ac_tool_warned=yes ;;
2488 esac
2489 CC=$ac_ct_CC
2490 fi
2491 else
2492 CC="$ac_cv_prog_CC"
2493 fi
2494
2495 if test -z "$CC"; then
2496 if test -n "$ac_tool_prefix"; then
2497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2498 set dummy ${ac_tool_prefix}cc; ac_word=$2
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_CC="${ac_tool_prefix}cc"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 fi
2523 fi
2524 CC=$ac_cv_prog_CC
2525 if test -n "$CC"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2527 $as_echo "$CC" >&6; }
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2531 fi
2532
2533
2534 fi
2535 fi
2536 if test -z "$CC"; then
2537 # Extract the first word of "cc", so it can be a program name with args.
2538 set dummy cc; 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 test "${ac_cv_prog_CC+set}" = set; 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 ac_prog_rejected=no
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2556 ac_prog_rejected=yes
2557 continue
2558 fi
2559 ac_cv_prog_CC="cc"
2560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563 done
2564 done
2565 IFS=$as_save_IFS
2566
2567 if test $ac_prog_rejected = yes; then
2568 # We found a bogon in the path, so make sure we never use it.
2569 set dummy $ac_cv_prog_CC
2570 shift
2571 if test $# != 0; then
2572 # We chose a different compiler from the bogus one.
2573 # However, it has the same basename, so the bogon will be chosen
2574 # first if we set CC to just the basename; use the full file name.
2575 shift
2576 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2577 fi
2578 fi
2579 fi
2580 fi
2581 CC=$ac_cv_prog_CC
2582 if test -n "$CC"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2584 $as_echo "$CC" >&6; }
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 fi
2589
2590
2591 fi
2592 if test -z "$CC"; then
2593 if test -n "$ac_tool_prefix"; then
2594 for ac_prog in cl.exe
2595 do
2596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if test "${ac_cv_prog_CC+set}" = set; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 CC=$ac_cv_prog_CC
2624 if test -n "$CC"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2626 $as_echo "$CC" >&6; }
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2630 fi
2631
2632
2633 test -n "$CC" && break
2634 done
2635 fi
2636 if test -z "$CC"; then
2637 ac_ct_CC=$CC
2638 for ac_prog in cl.exe
2639 do
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if test -n "$ac_ct_CC"; then
2648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_ac_ct_CC="$ac_prog"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2668 if test -n "$ac_ct_CC"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2670 $as_echo "$ac_ct_CC" >&6; }
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677 test -n "$ac_ct_CC" && break
2678 done
2679
2680 if test "x$ac_ct_CC" = x; then
2681 CC=""
2682 else
2683 case $cross_compiling:$ac_tool_warned in
2684 yes:)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2687 ac_tool_warned=yes ;;
2688 esac
2689 CC=$ac_ct_CC
2690 fi
2691 fi
2692
2693 fi
2694
2695
2696 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2698 as_fn_error $? "no acceptable C compiler found in \$PATH
2699 See \`config.log' for more details" "$LINENO" 5 ; }
2700
2701 # Provide some information about the compiler.
2702 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2703 set X $ac_compile
2704 ac_compiler=$2
2705 for ac_option in --version -v -V -qversion; do
2706 { { ac_try="$ac_compiler $ac_option >&5"
2707 case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710 esac
2711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2712 $as_echo "$ac_try_echo"; } >&5
2713 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2714 ac_status=$?
2715 if test -s conftest.err; then
2716 sed '10a\
2717 ... rest of stderr output deleted ...
2718 10q' conftest.err >conftest.er1
2719 cat conftest.er1 >&5
2720 fi
2721 rm -f conftest.er1 conftest.err
2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723 test $ac_status = 0; }
2724 done
2725
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2728
2729 int
2730 main ()
2731 {
2732
2733 ;
2734 return 0;
2735 }
2736 _ACEOF
2737 ac_clean_files_save=$ac_clean_files
2738 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2739 # Try to create an executable without -o first, disregard a.out.
2740 # It will help us diagnose broken compilers, and finding out an intuition
2741 # of exeext.
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2743 $as_echo_n "checking whether the C compiler works... " >&6; }
2744 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2745
2746 # The possible output files:
2747 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2748
2749 ac_rmfiles=
2750 for ac_file in $ac_files
2751 do
2752 case $ac_file in
2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2754 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2755 esac
2756 done
2757 rm -f $ac_rmfiles
2758
2759 if { { ac_try="$ac_link_default"
2760 case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763 esac
2764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2765 $as_echo "$ac_try_echo"; } >&5
2766 (eval "$ac_link_default") 2>&5
2767 ac_status=$?
2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769 test $ac_status = 0; }; then :
2770 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2771 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2772 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2773 # so that the user can short-circuit this test for compilers unknown to
2774 # Autoconf.
2775 for ac_file in $ac_files ''
2776 do
2777 test -f "$ac_file" || continue
2778 case $ac_file in
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2780 ;;
2781 [ab].out )
2782 # We found the default executable, but exeext='' is most
2783 # certainly right.
2784 break;;
2785 *.* )
2786 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2787 then :; else
2788 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2789 fi
2790 # We set ac_cv_exeext here because the later test for it is not
2791 # safe: cross compilers may not add the suffix if given an `-o'
2792 # argument, so we may need to know it at that point already.
2793 # Even if this section looks crufty: it has the advantage of
2794 # actually working.
2795 break;;
2796 * )
2797 break;;
2798 esac
2799 done
2800 test "$ac_cv_exeext" = no && ac_cv_exeext=
2801
2802 else
2803 ac_file=''
2804 fi
2805 if test -z "$ac_file"; then :
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2808 $as_echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813 as_fn_error 77 "C compiler cannot create executables
2814 See \`config.log' for more details" "$LINENO" 5 ; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817 $as_echo "yes" >&6; }
2818 fi
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2820 $as_echo_n "checking for C compiler default output file name... " >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2822 $as_echo "$ac_file" >&6; }
2823 ac_exeext=$ac_cv_exeext
2824
2825 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2826 ac_clean_files=$ac_clean_files_save
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2828 $as_echo_n "checking for suffix of executables... " >&6; }
2829 if { { ac_try="$ac_link"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835 $as_echo "$ac_try_echo"; } >&5
2836 (eval "$ac_link") 2>&5
2837 ac_status=$?
2838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839 test $ac_status = 0; }; then :
2840 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2841 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2842 # work properly (i.e., refer to `conftest.exe'), while it won't with
2843 # `rm'.
2844 for ac_file in conftest.exe conftest conftest.*; do
2845 test -f "$ac_file" || continue
2846 case $ac_file in
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 break;;
2850 * ) break;;
2851 esac
2852 done
2853 else
2854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2856 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details" "$LINENO" 5 ; }
2858 fi
2859 rm -f conftest conftest$ac_cv_exeext
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2861 $as_echo "$ac_cv_exeext" >&6; }
2862
2863 rm -f conftest.$ac_ext
2864 EXEEXT=$ac_cv_exeext
2865 ac_exeext=$EXEEXT
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h. */
2868 #include <stdio.h>
2869 int
2870 main ()
2871 {
2872 FILE *f = fopen ("conftest.out", "w");
2873 return ferror (f) || fclose (f) != 0;
2874
2875 ;
2876 return 0;
2877 }
2878 _ACEOF
2879 ac_clean_files="$ac_clean_files conftest.out"
2880 # Check that the compiler produces executables we can run. If not, either
2881 # the compiler is broken, or we cross compile.
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2883 $as_echo_n "checking whether we are cross compiling... " >&6; }
2884 if test "$cross_compiling" != yes; then
2885 { { ac_try="$ac_link"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2891 $as_echo "$ac_try_echo"; } >&5
2892 (eval "$ac_link") 2>&5
2893 ac_status=$?
2894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2895 test $ac_status = 0; }
2896 if { ac_try='./conftest$ac_cv_exeext'
2897 { { case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900 esac
2901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902 $as_echo "$ac_try_echo"; } >&5
2903 (eval "$ac_try") 2>&5
2904 ac_status=$?
2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }; }; then
2907 cross_compiling=no
2908 else
2909 if test "$cross_compiling" = maybe; then
2910 cross_compiling=yes
2911 else
2912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914 as_fn_error $? "cannot run C compiled programs.
2915 If you meant to cross compile, use \`--host'.
2916 See \`config.log' for more details" "$LINENO" 5 ; }
2917 fi
2918 fi
2919 fi
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2921 $as_echo "$cross_compiling" >&6; }
2922
2923 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2924 ac_clean_files=$ac_clean_files_save
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2926 $as_echo_n "checking for suffix of object files... " >&6; }
2927 if test "${ac_cv_objext+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2932
2933 int
2934 main ()
2935 {
2936
2937 ;
2938 return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.o conftest.obj
2942 if { { ac_try="$ac_compile"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948 $as_echo "$ac_try_echo"; } >&5
2949 (eval "$ac_compile") 2>&5
2950 ac_status=$?
2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952 test $ac_status = 0; }; then :
2953 for ac_file in conftest.o conftest.obj conftest.*; do
2954 test -f "$ac_file" || continue;
2955 case $ac_file in
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2957 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2958 break;;
2959 esac
2960 done
2961 else
2962 $as_echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967 as_fn_error $? "cannot compute suffix of object files: cannot compile
2968 See \`config.log' for more details" "$LINENO" 5 ; }
2969 fi
2970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971 fi
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2973 $as_echo "$ac_cv_objext" >&6; }
2974 OBJEXT=$ac_cv_objext
2975 ac_objext=$OBJEXT
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2977 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2978 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2983
2984 int
2985 main ()
2986 {
2987 #ifndef __GNUC__
2988 choke me
2989 #endif
2990
2991 ;
2992 return 0;
2993 }
2994 _ACEOF
2995 if ac_fn_c_try_compile "$LINENO"; then :
2996 ac_compiler_gnu=yes
2997 else
2998 ac_compiler_gnu=no
2999 fi
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3002
3003 fi
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3005 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3006 if test $ac_compiler_gnu = yes; then
3007 GCC=yes
3008 else
3009 GCC=
3010 fi
3011 ac_test_CFLAGS=${CFLAGS+set}
3012 ac_save_CFLAGS=$CFLAGS
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3014 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3015 if test "${ac_cv_prog_cc_g+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 ac_save_c_werror_flag=$ac_c_werror_flag
3019 ac_c_werror_flag=yes
3020 ac_cv_prog_cc_g=no
3021 CFLAGS="-g"
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3024
3025 int
3026 main ()
3027 {
3028
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 if ac_fn_c_try_compile "$LINENO"; then :
3034 ac_cv_prog_cc_g=yes
3035 else
3036 CFLAGS=""
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3039
3040 int
3041 main ()
3042 {
3043
3044 ;
3045 return 0;
3046 }
3047 _ACEOF
3048 if ac_fn_c_try_compile "$LINENO"; then :
3049
3050 else
3051 ac_c_werror_flag=$ac_save_c_werror_flag
3052 CFLAGS="-g"
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3055
3056 int
3057 main ()
3058 {
3059
3060 ;
3061 return 0;
3062 }
3063 _ACEOF
3064 if ac_fn_c_try_compile "$LINENO"; then :
3065 ac_cv_prog_cc_g=yes
3066 fi
3067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3068 fi
3069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070 fi
3071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072 ac_c_werror_flag=$ac_save_c_werror_flag
3073 fi
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3075 $as_echo "$ac_cv_prog_cc_g" >&6; }
3076 if test "$ac_test_CFLAGS" = set; then
3077 CFLAGS=$ac_save_CFLAGS
3078 elif test $ac_cv_prog_cc_g = yes; then
3079 if test "$GCC" = yes; then
3080 CFLAGS="-g -O2"
3081 else
3082 CFLAGS="-g"
3083 fi
3084 else
3085 if test "$GCC" = yes; then
3086 CFLAGS="-O2"
3087 else
3088 CFLAGS=
3089 fi
3090 fi
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3092 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3093 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 ac_cv_prog_cc_c89=no
3097 ac_save_CC=$CC
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3100 #include <stdarg.h>
3101 #include <stdio.h>
3102 #include <sys/types.h>
3103 #include <sys/stat.h>
3104 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3105 struct buf { int x; };
3106 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3107 static char *e (p, i)
3108 char **p;
3109 int i;
3110 {
3111 return p[i];
3112 }
3113 static char *f (char * (*g) (char **, int), char **p, ...)
3114 {
3115 char *s;
3116 va_list v;
3117 va_start (v,p);
3118 s = g (p, va_arg (v,int));
3119 va_end (v);
3120 return s;
3121 }
3122
3123 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3124 function prototypes and stuff, but not '\xHH' hex character constants.
3125 These don't provoke an error unfortunately, instead are silently treated
3126 as 'x'. The following induces an error, until -std is added to get
3127 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3128 array size at least. It's necessary to write '\x00'==0 to get something
3129 that's true only with -std. */
3130 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3131
3132 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3133 inside strings and character constants. */
3134 #define FOO(x) 'x'
3135 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3136
3137 int test (int i, double x);
3138 struct s1 {int (*f) (int a);};
3139 struct s2 {int (*f) (double a);};
3140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3141 int argc;
3142 char **argv;
3143 int
3144 main ()
3145 {
3146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3147 ;
3148 return 0;
3149 }
3150 _ACEOF
3151 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3152 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3153 do
3154 CC="$ac_save_CC $ac_arg"
3155 if ac_fn_c_try_compile "$LINENO"; then :
3156 ac_cv_prog_cc_c89=$ac_arg
3157 fi
3158 rm -f core conftest.err conftest.$ac_objext
3159 test "x$ac_cv_prog_cc_c89" != "xno" && break
3160 done
3161 rm -f conftest.$ac_ext
3162 CC=$ac_save_CC
3163
3164 fi
3165 # AC_CACHE_VAL
3166 case "x$ac_cv_prog_cc_c89" in
3167 x)
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3169 $as_echo "none needed" >&6; } ;;
3170 xno)
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3172 $as_echo "unsupported" >&6; } ;;
3173 *)
3174 CC="$CC $ac_cv_prog_cc_c89"
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3176 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3177 esac
3178 if test "x$ac_cv_prog_cc_c89" != xno; then :
3179
3180 fi
3181
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3189 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3190 if test "${ac_cv_path_SED+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3194 for ac_i in 1 2 3 4 5 6 7; do
3195 ac_script="$ac_script$as_nl$ac_script"
3196 done
3197 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3198 { ac_script=; unset ac_script;}
3199 if test -z "$SED"; then
3200 ac_path_SED_found=false
3201 # Loop through the user's path and test for each of PROGNAME-LIST
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_prog in sed gsed; do
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3210 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3211 # Check for GNU ac_path_SED and select it if it is found.
3212 # Check for GNU $ac_path_SED
3213 case `"$ac_path_SED" --version 2>&1` in
3214 *GNU*)
3215 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3216 *)
3217 ac_count=0
3218 $as_echo_n 0123456789 >"conftest.in"
3219 while :
3220 do
3221 cat "conftest.in" "conftest.in" >"conftest.tmp"
3222 mv "conftest.tmp" "conftest.in"
3223 cp "conftest.in" "conftest.nl"
3224 $as_echo '' >> "conftest.nl"
3225 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3227 as_fn_arith $ac_count + 1 && ac_count=$as_val
3228 if test $ac_count -gt ${ac_path_SED_max-0}; then
3229 # Best one so far, save it but keep looking for a better one
3230 ac_cv_path_SED="$ac_path_SED"
3231 ac_path_SED_max=$ac_count
3232 fi
3233 # 10*(2^10) chars as input seems more than enough
3234 test $ac_count -gt 10 && break
3235 done
3236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3237 esac
3238
3239 $ac_path_SED_found && break 3
3240 done
3241 done
3242 done
3243 IFS=$as_save_IFS
3244 if test -z "$ac_cv_path_SED"; then
3245 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3246 fi
3247 else
3248 ac_cv_path_SED=$SED
3249 fi
3250
3251 fi
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3253 $as_echo "$ac_cv_path_SED" >&6; }
3254 SED="$ac_cv_path_SED"
3255 rm -f conftest.sed
3256
3257 test -z "$SED" && SED=sed
3258 Xsed="$SED -e 1s/^X//"
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3272 if test "${ac_cv_path_GREP+set}" = set; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -z "$GREP"; then
3276 ac_path_GREP_found=false
3277 # Loop through the user's path and test for each of PROGNAME-LIST
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3280 do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_prog in grep ggrep; do
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3287 # Check for GNU ac_path_GREP and select it if it is found.
3288 # Check for GNU $ac_path_GREP
3289 case `"$ac_path_GREP" --version 2>&1` in
3290 *GNU*)
3291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3292 *)
3293 ac_count=0
3294 $as_echo_n 0123456789 >"conftest.in"
3295 while :
3296 do
3297 cat "conftest.in" "conftest.in" >"conftest.tmp"
3298 mv "conftest.tmp" "conftest.in"
3299 cp "conftest.in" "conftest.nl"
3300 $as_echo 'GREP' >> "conftest.nl"
3301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3303 as_fn_arith $ac_count + 1 && ac_count=$as_val
3304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3305 # Best one so far, save it but keep looking for a better one
3306 ac_cv_path_GREP="$ac_path_GREP"
3307 ac_path_GREP_max=$ac_count
3308 fi
3309 # 10*(2^10) chars as input seems more than enough
3310 test $ac_count -gt 10 && break
3311 done
3312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3313 esac
3314
3315 $ac_path_GREP_found && break 3
3316 done
3317 done
3318 done
3319 IFS=$as_save_IFS
3320 if test -z "$ac_cv_path_GREP"; then
3321 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3322 fi
3323 else
3324 ac_cv_path_GREP=$GREP
3325 fi
3326
3327 fi
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3329 $as_echo "$ac_cv_path_GREP" >&6; }
3330 GREP="$ac_cv_path_GREP"
3331
3332
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3334 $as_echo_n "checking for egrep... " >&6; }
3335 if test "${ac_cv_path_EGREP+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3339 then ac_cv_path_EGREP="$GREP -E"
3340 else
3341 if test -z "$EGREP"; then
3342 ac_path_EGREP_found=false
3343 # Loop through the user's path and test for each of PROGNAME-LIST
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3346 do
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_prog in egrep; do
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3352 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3353 # Check for GNU ac_path_EGREP and select it if it is found.
3354 # Check for GNU $ac_path_EGREP
3355 case `"$ac_path_EGREP" --version 2>&1` in
3356 *GNU*)
3357 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3358 *)
3359 ac_count=0
3360 $as_echo_n 0123456789 >"conftest.in"
3361 while :
3362 do
3363 cat "conftest.in" "conftest.in" >"conftest.tmp"
3364 mv "conftest.tmp" "conftest.in"
3365 cp "conftest.in" "conftest.nl"
3366 $as_echo 'EGREP' >> "conftest.nl"
3367 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3369 as_fn_arith $ac_count + 1 && ac_count=$as_val
3370 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3371 # Best one so far, save it but keep looking for a better one
3372 ac_cv_path_EGREP="$ac_path_EGREP"
3373 ac_path_EGREP_max=$ac_count
3374 fi
3375 # 10*(2^10) chars as input seems more than enough
3376 test $ac_count -gt 10 && break
3377 done
3378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3379 esac
3380
3381 $ac_path_EGREP_found && break 3
3382 done
3383 done
3384 done
3385 IFS=$as_save_IFS
3386 if test -z "$ac_cv_path_EGREP"; then
3387 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3388 fi
3389 else
3390 ac_cv_path_EGREP=$EGREP
3391 fi
3392
3393 fi
3394 fi
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3396 $as_echo "$ac_cv_path_EGREP" >&6; }
3397 EGREP="$ac_cv_path_EGREP"
3398
3399
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3401 $as_echo_n "checking for fgrep... " >&6; }
3402 if test "${ac_cv_path_FGREP+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3406 then ac_cv_path_FGREP="$GREP -F"
3407 else
3408 if test -z "$FGREP"; then
3409 ac_path_FGREP_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
3413 do
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_prog in fgrep; do
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3419 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3420 # Check for GNU ac_path_FGREP and select it if it is found.
3421 # Check for GNU $ac_path_FGREP
3422 case `"$ac_path_FGREP" --version 2>&1` in
3423 *GNU*)
3424 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3425 *)
3426 ac_count=0
3427 $as_echo_n 0123456789 >"conftest.in"
3428 while :
3429 do
3430 cat "conftest.in" "conftest.in" >"conftest.tmp"
3431 mv "conftest.tmp" "conftest.in"
3432 cp "conftest.in" "conftest.nl"
3433 $as_echo 'FGREP' >> "conftest.nl"
3434 "$ac_path_FGREP" FGREP < "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_FGREP_max-0}; then
3438 # Best one so far, save it but keep looking for a better one
3439 ac_cv_path_FGREP="$ac_path_FGREP"
3440 ac_path_FGREP_max=$ac_count
3441 fi
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
3447
3448 $ac_path_FGREP_found && break 3
3449 done
3450 done
3451 done
3452 IFS=$as_save_IFS
3453 if test -z "$ac_cv_path_FGREP"; then
3454 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3455 fi
3456 else
3457 ac_cv_path_FGREP=$FGREP
3458 fi
3459
3460 fi
3461 fi
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3463 $as_echo "$ac_cv_path_FGREP" >&6; }
3464 FGREP="$ac_cv_path_FGREP"
3465
3466
3467 test -z "$GREP" && GREP=grep
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487 # Check whether --with-gnu-ld was given.
3488 if test "${with_gnu_ld+set}" = set; then :
3489 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3490 else
3491 with_gnu_ld=no
3492 fi
3493
3494 ac_prog=ld
3495 if test "$GCC" = yes; then
3496 # Check if gcc -print-prog-name=ld gives a path.
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3498 $as_echo_n "checking for ld used by $CC... " >&6; }
3499 case $host in
3500 *-*-mingw*)
3501 # gcc leaves a trailing carriage return which upsets mingw
3502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3503 *)
3504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3505 esac
3506 case $ac_prog in
3507 # Accept absolute paths.
3508 [\\/]* | ?:[\\/]*)
3509 re_direlt='/[^/][^/]*/\.\./'
3510 # Canonicalize the pathname of ld
3511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3514 done
3515 test -z "$LD" && LD="$ac_prog"
3516 ;;
3517 "")
3518 # If it fails, then pretend we aren't using GCC.
3519 ac_prog=ld
3520 ;;
3521 *)
3522 # If it is relative, then search for the first ld in PATH.
3523 with_gnu_ld=unknown
3524 ;;
3525 esac
3526 elif test "$with_gnu_ld" = yes; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3528 $as_echo_n "checking for GNU ld... " >&6; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3531 $as_echo_n "checking for non-GNU ld... " >&6; }
3532 fi
3533 if test "${lt_cv_path_LD+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 if test -z "$LD"; then
3537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3538 for ac_dir in $PATH; do
3539 IFS="$lt_save_ifs"
3540 test -z "$ac_dir" && ac_dir=.
3541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3542 lt_cv_path_LD="$ac_dir/$ac_prog"
3543 # Check to see if the program is GNU ld. I'd rather use --version,
3544 # but apparently some variants of GNU ld only accept -v.
3545 # Break only if it was the GNU/non-GNU ld that we prefer.
3546 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3547 *GNU* | *'with BFD'*)
3548 test "$with_gnu_ld" != no && break
3549 ;;
3550 *)
3551 test "$with_gnu_ld" != yes && break
3552 ;;
3553 esac
3554 fi
3555 done
3556 IFS="$lt_save_ifs"
3557 else
3558 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3559 fi
3560 fi
3561
3562 LD="$lt_cv_path_LD"
3563 if test -n "$LD"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3565 $as_echo "$LD" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3572 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3573 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3577 case `$LD -v 2>&1 </dev/null` in
3578 *GNU* | *'with BFD'*)
3579 lt_cv_prog_gnu_ld=yes
3580 ;;
3581 *)
3582 lt_cv_prog_gnu_ld=no
3583 ;;
3584 esac
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3587 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3588 with_gnu_ld=$lt_cv_prog_gnu_ld
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3599 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3600 if test "${lt_cv_path_NM+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$NM"; then
3604 # Let the user override the test.
3605 lt_cv_path_NM="$NM"
3606 else
3607 lt_nm_to_check="${ac_tool_prefix}nm"
3608 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3609 lt_nm_to_check="$lt_nm_to_check nm"
3610 fi
3611 for lt_tmp_nm in $lt_nm_to_check; do
3612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3613 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3614 IFS="$lt_save_ifs"
3615 test -z "$ac_dir" && ac_dir=.
3616 tmp_nm="$ac_dir/$lt_tmp_nm"
3617 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3618 # Check to see if the nm accepts a BSD-compat flag.
3619 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3620 # nm: unknown option "B" ignored
3621 # Tru64's nm complains that /dev/null is an invalid object file
3622 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3623 */dev/null* | *'Invalid file or object type'*)
3624 lt_cv_path_NM="$tmp_nm -B"
3625 break
3626 ;;
3627 *)
3628 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3629 */dev/null*)
3630 lt_cv_path_NM="$tmp_nm -p"
3631 break
3632 ;;
3633 *)
3634 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3635 continue # so that we can try to find one that supports BSD flags
3636 ;;
3637 esac
3638 ;;
3639 esac
3640 fi
3641 done
3642 IFS="$lt_save_ifs"
3643 done
3644 : ${lt_cv_path_NM=no}
3645 fi
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3648 $as_echo "$lt_cv_path_NM" >&6; }
3649 if test "$lt_cv_path_NM" != "no"; then
3650 NM="$lt_cv_path_NM"
3651 else
3652 # Didn't find any BSD compatible name lister, look for dumpbin.
3653 if test -n "$ac_tool_prefix"; then
3654 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3655 do
3656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -n "$DUMPBIN"; then
3664 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3676 fi
3677 done
3678 done
3679 IFS=$as_save_IFS
3680
3681 fi
3682 fi
3683 DUMPBIN=$ac_cv_prog_DUMPBIN
3684 if test -n "$DUMPBIN"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3686 $as_echo "$DUMPBIN" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 fi
3691
3692
3693 test -n "$DUMPBIN" && break
3694 done
3695 fi
3696 if test -z "$DUMPBIN"; then
3697 ac_ct_DUMPBIN=$DUMPBIN
3698 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3699 do
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701 set dummy $ac_prog; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 if test -n "$ac_ct_DUMPBIN"; then
3708 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3728 if test -n "$ac_ct_DUMPBIN"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3730 $as_echo "$ac_ct_DUMPBIN" >&6; }
3731 else
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 fi
3735
3736
3737 test -n "$ac_ct_DUMPBIN" && break
3738 done
3739
3740 if test "x$ac_ct_DUMPBIN" = x; then
3741 DUMPBIN=":"
3742 else
3743 case $cross_compiling:$ac_tool_warned in
3744 yes:)
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747 ac_tool_warned=yes ;;
3748 esac
3749 DUMPBIN=$ac_ct_DUMPBIN
3750 fi
3751 fi
3752
3753
3754 if test "$DUMPBIN" != ":"; then
3755 NM="$DUMPBIN"
3756 fi
3757 fi
3758 test -z "$NM" && NM=nm
3759
3760
3761
3762
3763
3764
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3766 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3767 if test "${lt_cv_nm_interface+set}" = set; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 lt_cv_nm_interface="BSD nm"
3771 echo "int some_variable = 0;" > conftest.$ac_ext
3772 (eval echo "\"\$as_me:3772: $ac_compile\"" >&5)
3773 (eval "$ac_compile" 2>conftest.err)
3774 cat conftest.err >&5
3775 (eval echo "\"\$as_me:3775: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3776 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3777 cat conftest.err >&5
3778 (eval echo "\"\$as_me:3778: output\"" >&5)
3779 cat conftest.out >&5
3780 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3781 lt_cv_nm_interface="MS dumpbin"
3782 fi
3783 rm -f conftest*
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3786 $as_echo "$lt_cv_nm_interface" >&6; }
3787
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3789 $as_echo_n "checking whether ln -s works... " >&6; }
3790 LN_S=$as_ln_s
3791 if test "$LN_S" = "ln -s"; then
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3793 $as_echo "yes" >&6; }
3794 else
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3796 $as_echo "no, using $LN_S" >&6; }
3797 fi
3798
3799 # find the maximum length of command line arguments
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3801 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3802 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 i=0
3806 teststring="ABCD"
3807
3808 case $build_os in
3809 msdosdjgpp*)
3810 # On DJGPP, this test can blow up pretty badly due to problems in libc
3811 # (any single argument exceeding 2000 bytes causes a buffer overrun
3812 # during glob expansion). Even if it were fixed, the result of this
3813 # check would be larger than it should be.
3814 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3815 ;;
3816
3817 gnu*)
3818 # Under GNU Hurd, this test is not required because there is
3819 # no limit to the length of command line arguments.
3820 # Libtool will interpret -1 as no limit whatsoever
3821 lt_cv_sys_max_cmd_len=-1;
3822 ;;
3823
3824 cygwin* | mingw* | cegcc*)
3825 # On Win9x/ME, this test blows up -- it succeeds, but takes
3826 # about 5 minutes as the teststring grows exponentially.
3827 # Worse, since 9x/ME are not pre-emptively multitasking,
3828 # you end up with a "frozen" computer, even though with patience
3829 # the test eventually succeeds (with a max line length of 256k).
3830 # Instead, let's just punt: use the minimum linelength reported by
3831 # all of the supported platforms: 8192 (on NT/2K/XP).
3832 lt_cv_sys_max_cmd_len=8192;
3833 ;;
3834
3835 amigaos*)
3836 # On AmigaOS with pdksh, this test takes hours, literally.
3837 # So we just punt and use a minimum line length of 8192.
3838 lt_cv_sys_max_cmd_len=8192;
3839 ;;
3840
3841 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3842 # This has been around since 386BSD, at least. Likely further.
3843 if test -x /sbin/sysctl; then
3844 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3845 elif test -x /usr/sbin/sysctl; then
3846 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3847 else
3848 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3849 fi
3850 # And add a safety zone
3851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3853 ;;
3854
3855 interix*)
3856 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3857 lt_cv_sys_max_cmd_len=196608
3858 ;;
3859
3860 osf*)
3861 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3862 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3863 # nice to cause kernel panics so lets avoid the loop below.
3864 # First set a reasonable default.
3865 lt_cv_sys_max_cmd_len=16384
3866 #
3867 if test -x /sbin/sysconfig; then
3868 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3869 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3870 esac
3871 fi
3872 ;;
3873 sco3.2v5*)
3874 lt_cv_sys_max_cmd_len=102400
3875 ;;
3876 sysv5* | sco5v6* | sysv4.2uw2*)
3877 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3878 if test -n "$kargmax"; then
3879 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3880 else
3881 lt_cv_sys_max_cmd_len=32768
3882 fi
3883 ;;
3884 *)
3885 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3886 if test -n "$lt_cv_sys_max_cmd_len"; then
3887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3889 else
3890 # Make teststring a little bigger before we do anything with it.
3891 # a 1K string should be a reasonable start.
3892 for i in 1 2 3 4 5 6 7 8 ; do
3893 teststring=$teststring$teststring
3894 done
3895 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3896 # If test is not a shell built-in, we'll probably end up computing a
3897 # maximum length that is only half of the actual maximum length, but
3898 # we can't tell.
3899 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3900 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3901 test $i != 17 # 1/2 MB should be enough
3902 do
3903 i=`expr $i + 1`
3904 teststring=$teststring$teststring
3905 done
3906 # Only check the string length outside the loop.
3907 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3908 teststring=
3909 # Add a significant safety factor because C++ compilers can tack on
3910 # massive amounts of additional arguments before passing them to the
3911 # linker. It appears as though 1/2 is a usable value.
3912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3913 fi
3914 ;;
3915 esac
3916
3917 fi
3918
3919 if test -n $lt_cv_sys_max_cmd_len ; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3921 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3924 $as_echo "none" >&6; }
3925 fi
3926 max_cmd_len=$lt_cv_sys_max_cmd_len
3927
3928
3929
3930
3931
3932
3933 : ${CP="cp -f"}
3934 : ${MV="mv -f"}
3935 : ${RM="rm -f"}
3936
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
3938 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3939 # Try some XSI features
3940 xsi_shell=no
3941 ( _lt_dummy="a/b/c"
3942 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3943 = c,a/b,, \
3944 && eval 'test $(( 1 + 1 )) -eq 2 \
3945 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3946 && xsi_shell=yes
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
3948 $as_echo "$xsi_shell" >&6; }
3949
3950
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
3952 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3953 lt_shell_append=no
3954 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3955 >/dev/null 2>&1 \
3956 && lt_shell_append=yes
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
3958 $as_echo "$lt_shell_append" >&6; }
3959
3960
3961 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3962 lt_unset=unset
3963 else
3964 lt_unset=false
3965 fi
3966
3967
3968
3969
3970
3971 # test EBCDIC or ASCII
3972 case `echo X|tr X '\101'` in
3973 A) # ASCII based system
3974 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3975 lt_SP2NL='tr \040 \012'
3976 lt_NL2SP='tr \015\012 \040\040'
3977 ;;
3978 *) # EBCDIC based system
3979 lt_SP2NL='tr \100 \n'
3980 lt_NL2SP='tr \r\n \100\100'
3981 ;;
3982 esac
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
3993 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3994 if test "${lt_cv_ld_reload_flag+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 lt_cv_ld_reload_flag='-r'
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4000 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4001 reload_flag=$lt_cv_ld_reload_flag
4002 case $reload_flag in
4003 "" | " "*) ;;
4004 *) reload_flag=" $reload_flag" ;;
4005 esac
4006 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4007 case $host_os in
4008 darwin*)
4009 if test "$GCC" = yes; then
4010 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4011 else
4012 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4013 fi
4014 ;;
4015 esac
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025 if test -n "$ac_tool_prefix"; then
4026 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 if test -n "$OBJDUMP"; then
4034 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4046 fi
4047 done
4048 done
4049 IFS=$as_save_IFS
4050
4051 fi
4052 fi
4053 OBJDUMP=$ac_cv_prog_OBJDUMP
4054 if test -n "$OBJDUMP"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4056 $as_echo "$OBJDUMP" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061
4062
4063 fi
4064 if test -z "$ac_cv_prog_OBJDUMP"; then
4065 ac_ct_OBJDUMP=$OBJDUMP
4066 # Extract the first word of "objdump", so it can be a program name with args.
4067 set dummy objdump; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 if test -n "$ac_ct_OBJDUMP"; then
4074 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4086 fi
4087 done
4088 done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4094 if test -n "$ac_ct_OBJDUMP"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4096 $as_echo "$ac_ct_OBJDUMP" >&6; }
4097 else
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102 if test "x$ac_ct_OBJDUMP" = x; then
4103 OBJDUMP="false"
4104 else
4105 case $cross_compiling:$ac_tool_warned in
4106 yes:)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111 OBJDUMP=$ac_ct_OBJDUMP
4112 fi
4113 else
4114 OBJDUMP="$ac_cv_prog_OBJDUMP"
4115 fi
4116
4117 test -z "$OBJDUMP" && OBJDUMP=objdump
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4128 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4129 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 lt_cv_file_magic_cmd='$MAGIC_CMD'
4133 lt_cv_file_magic_test_file=
4134 lt_cv_deplibs_check_method='unknown'
4135 # Need to set the preceding variable on all platforms that support
4136 # interlibrary dependencies.
4137 # 'none' -- dependencies not supported.
4138 # `unknown' -- same as none, but documents that we really don't know.
4139 # 'pass_all' -- all dependencies passed with no checks.
4140 # 'test_compile' -- check by making test program.
4141 # 'file_magic [[regex]]' -- check by looking for files in library path
4142 # which responds to the $file_magic_cmd with a given extended regex.
4143 # If you have `file' or equivalent on your system and you're not sure
4144 # whether `pass_all' will *always* work, you probably want this one.
4145
4146 case $host_os in
4147 aix[4-9]*)
4148 lt_cv_deplibs_check_method=pass_all
4149 ;;
4150
4151 beos*)
4152 lt_cv_deplibs_check_method=pass_all
4153 ;;
4154
4155 bsdi[45]*)
4156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4157 lt_cv_file_magic_cmd='/usr/bin/file -L'
4158 lt_cv_file_magic_test_file=/shlib/libc.so
4159 ;;
4160
4161 cygwin*)
4162 # func_win32_libid is a shell function defined in ltmain.sh
4163 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4164 lt_cv_file_magic_cmd='func_win32_libid'
4165 ;;
4166
4167 mingw* | pw32*)
4168 # Base MSYS/MinGW do not provide the 'file' command needed by
4169 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4170 # unless we find 'file', for example because we are cross-compiling.
4171 if ( file / ) >/dev/null 2>&1; then
4172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4173 lt_cv_file_magic_cmd='func_win32_libid'
4174 else
4175 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4176 lt_cv_file_magic_cmd='$OBJDUMP -f'
4177 fi
4178 ;;
4179
4180 cegcc)
4181 # use the weaker test based on 'objdump'. See mingw*.
4182 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4183 lt_cv_file_magic_cmd='$OBJDUMP -f'
4184 ;;
4185
4186 darwin* | rhapsody*)
4187 lt_cv_deplibs_check_method=pass_all
4188 ;;
4189
4190 freebsd* | dragonfly*)
4191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4192 case $host_cpu in
4193 i*86 )
4194 # Not sure whether the presence of OpenBSD here was a mistake.
4195 # Let's accept both of them until this is cleared up.
4196 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4197 lt_cv_file_magic_cmd=/usr/bin/file
4198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4199 ;;
4200 esac
4201 else
4202 lt_cv_deplibs_check_method=pass_all
4203 fi
4204 ;;
4205
4206 gnu*)
4207 lt_cv_deplibs_check_method=pass_all
4208 ;;
4209
4210 hpux10.20* | hpux11*)
4211 lt_cv_file_magic_cmd=/usr/bin/file
4212 case $host_cpu in
4213 ia64*)
4214 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4215 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4216 ;;
4217 hppa*64*)
4218 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]'
4219 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4220 ;;
4221 *)
4222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4223 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4224 ;;
4225 esac
4226 ;;
4227
4228 interix[3-9]*)
4229 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4231 ;;
4232
4233 irix5* | irix6* | nonstopux*)
4234 case $LD in
4235 *-32|*"-32 ") libmagic=32-bit;;
4236 *-n32|*"-n32 ") libmagic=N32;;
4237 *-64|*"-64 ") libmagic=64-bit;;
4238 *) libmagic=never-match;;
4239 esac
4240 lt_cv_deplibs_check_method=pass_all
4241 ;;
4242
4243 # This must be Linux ELF.
4244 linux* | k*bsd*-gnu)
4245 lt_cv_deplibs_check_method=pass_all
4246 ;;
4247
4248 netbsd*)
4249 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4251 else
4252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4253 fi
4254 ;;
4255
4256 newos6*)
4257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4258 lt_cv_file_magic_cmd=/usr/bin/file
4259 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4260 ;;
4261
4262 *nto* | *qnx*)
4263 lt_cv_deplibs_check_method=pass_all
4264 ;;
4265
4266 openbsd*)
4267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4269 else
4270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4271 fi
4272 ;;
4273
4274 osf3* | osf4* | osf5*)
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277
4278 rdos*)
4279 lt_cv_deplibs_check_method=pass_all
4280 ;;
4281
4282 solaris*)
4283 lt_cv_deplibs_check_method=pass_all
4284 ;;
4285
4286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4287 lt_cv_deplibs_check_method=pass_all
4288 ;;
4289
4290 sysv4 | sysv4.3*)
4291 case $host_vendor in
4292 motorola)
4293 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]'
4294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4295 ;;
4296 ncr)
4297 lt_cv_deplibs_check_method=pass_all
4298 ;;
4299 sequent)
4300 lt_cv_file_magic_cmd='/bin/file'
4301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4302 ;;
4303 sni)
4304 lt_cv_file_magic_cmd='/bin/file'
4305 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4306 lt_cv_file_magic_test_file=/lib/libc.so
4307 ;;
4308 siemens)
4309 lt_cv_deplibs_check_method=pass_all
4310 ;;
4311 pc)
4312 lt_cv_deplibs_check_method=pass_all
4313 ;;
4314 esac
4315 ;;
4316
4317 tpf*)
4318 lt_cv_deplibs_check_method=pass_all
4319 ;;
4320 esac
4321
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4324 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4325 file_magic_cmd=$lt_cv_file_magic_cmd
4326 deplibs_check_method=$lt_cv_deplibs_check_method
4327 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340 if test -n "$ac_tool_prefix"; then
4341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4342 set dummy ${ac_tool_prefix}ar; ac_word=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if test "${ac_cv_prog_AR+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -n "$AR"; then
4349 ac_cv_prog_AR="$AR" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 ac_cv_prog_AR="${ac_tool_prefix}ar"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4361 fi
4362 done
4363 done
4364 IFS=$as_save_IFS
4365
4366 fi
4367 fi
4368 AR=$ac_cv_prog_AR
4369 if test -n "$AR"; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4371 $as_echo "$AR" >&6; }
4372 else
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4375 fi
4376
4377
4378 fi
4379 if test -z "$ac_cv_prog_AR"; then
4380 ac_ct_AR=$AR
4381 # Extract the first word of "ar", so it can be a program name with args.
4382 set dummy ar; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -n "$ac_ct_AR"; then
4389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4393 do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4398 ac_cv_prog_ac_ct_AR="ar"
4399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4401 fi
4402 done
4403 done
4404 IFS=$as_save_IFS
4405
4406 fi
4407 fi
4408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4409 if test -n "$ac_ct_AR"; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4411 $as_echo "$ac_ct_AR" >&6; }
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4415 fi
4416
4417 if test "x$ac_ct_AR" = x; then
4418 AR="false"
4419 else
4420 case $cross_compiling:$ac_tool_warned in
4421 yes:)
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4425 esac
4426 AR=$ac_ct_AR
4427 fi
4428 else
4429 AR="$ac_cv_prog_AR"
4430 fi
4431
4432 test -z "$AR" && AR=ar
4433 test -z "$AR_FLAGS" && AR_FLAGS=cru
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445 if test -n "$ac_tool_prefix"; then
4446 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4447 set dummy ${ac_tool_prefix}strip; ac_word=$2
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if test "${ac_cv_prog_STRIP+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 if test -n "$STRIP"; then
4454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471 fi
4472 fi
4473 STRIP=$ac_cv_prog_STRIP
4474 if test -n "$STRIP"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4476 $as_echo "$STRIP" >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480 fi
4481
4482
4483 fi
4484 if test -z "$ac_cv_prog_STRIP"; then
4485 ac_ct_STRIP=$STRIP
4486 # Extract the first word of "strip", so it can be a program name with args.
4487 set dummy strip; ac_word=$2
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 if test -n "$ac_ct_STRIP"; then
4494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4495 else
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_prog_ac_ct_STRIP="strip"
4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4510
4511 fi
4512 fi
4513 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4514 if test -n "$ac_ct_STRIP"; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4516 $as_echo "$ac_ct_STRIP" >&6; }
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519 $as_echo "no" >&6; }
4520 fi
4521
4522 if test "x$ac_ct_STRIP" = x; then
4523 STRIP=":"
4524 else
4525 case $cross_compiling:$ac_tool_warned in
4526 yes:)
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4529 ac_tool_warned=yes ;;
4530 esac
4531 STRIP=$ac_ct_STRIP
4532 fi
4533 else
4534 STRIP="$ac_cv_prog_STRIP"
4535 fi
4536
4537 test -z "$STRIP" && STRIP=:
4538
4539
4540
4541
4542
4543
4544 if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4546 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if test -n "$RANLIB"; then
4553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4565 fi
4566 done
4567 done
4568 IFS=$as_save_IFS
4569
4570 fi
4571 fi
4572 RANLIB=$ac_cv_prog_RANLIB
4573 if test -n "$RANLIB"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4575 $as_echo "$RANLIB" >&6; }
4576 else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4579 fi
4580
4581
4582 fi
4583 if test -z "$ac_cv_prog_RANLIB"; then
4584 ac_ct_RANLIB=$RANLIB
4585 # Extract the first word of "ranlib", so it can be a program name with args.
4586 set dummy ranlib; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -n "$ac_ct_RANLIB"; then
4593 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_ac_ct_RANLIB="ranlib"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 fi
4611 fi
4612 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4613 if test -n "$ac_ct_RANLIB"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4615 $as_echo "$ac_ct_RANLIB" >&6; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620
4621 if test "x$ac_ct_RANLIB" = x; then
4622 RANLIB=":"
4623 else
4624 case $cross_compiling:$ac_tool_warned in
4625 yes:)
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628 ac_tool_warned=yes ;;
4629 esac
4630 RANLIB=$ac_ct_RANLIB
4631 fi
4632 else
4633 RANLIB="$ac_cv_prog_RANLIB"
4634 fi
4635
4636 test -z "$RANLIB" && RANLIB=:
4637
4638
4639
4640
4641
4642
4643 # Determine commands to create old-style static archives.
4644 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4645 old_postinstall_cmds='chmod 644 $oldlib'
4646 old_postuninstall_cmds=
4647
4648 if test -n "$RANLIB"; then
4649 case $host_os in
4650 openbsd*)
4651 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4652 ;;
4653 *)
4654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4655 ;;
4656 esac
4657 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4658 fi
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693 # If no C compiler was specified, use CC.
4694 LTCC=${LTCC-"$CC"}
4695
4696 # If no C compiler flags were specified, use CFLAGS.
4697 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4698
4699 # Allow CC to be a program name with arguments.
4700 compiler=$CC
4701
4702
4703 # Check for command to grab the raw symbol name followed by C symbol from nm.
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4705 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4706 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709
4710 # These are sane defaults that work on at least a few old systems.
4711 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4712
4713 # Character class describing NM global symbol codes.
4714 symcode='[BCDEGRST]'
4715
4716 # Regexp to match symbols that can be accessed directly from C.
4717 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4718
4719 # Define system-specific variables.
4720 case $host_os in
4721 aix*)
4722 symcode='[BCDT]'
4723 ;;
4724 cygwin* | mingw* | pw32* | cegcc*)
4725 symcode='[ABCDGISTW]'
4726 ;;
4727 hpux*)
4728 if test "$host_cpu" = ia64; then
4729 symcode='[ABCDEGRST]'
4730 fi
4731 ;;
4732 irix* | nonstopux*)
4733 symcode='[BCDEGRST]'
4734 ;;
4735 osf*)
4736 symcode='[BCDEGQRST]'
4737 ;;
4738 solaris*)
4739 symcode='[BDRT]'
4740 ;;
4741 sco3.2v5*)
4742 symcode='[DT]'
4743 ;;
4744 sysv4.2uw2*)
4745 symcode='[DT]'
4746 ;;
4747 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4748 symcode='[ABDT]'
4749 ;;
4750 sysv4)
4751 symcode='[DFNSTU]'
4752 ;;
4753 esac
4754
4755 # If we're using GNU nm, then use its standard symbol codes.
4756 case `$NM -V 2>&1` in
4757 *GNU* | *'with BFD'*)
4758 symcode='[ABCDGIRSTW]' ;;
4759 esac
4760
4761 # Transform an extracted symbol line into a proper C declaration.
4762 # Some systems (esp. on ia64) link data and code symbols differently,
4763 # so use this general approach.
4764 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4765
4766 # Transform an extracted symbol line into symbol name and symbol address
4767 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4768 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'"
4769
4770 # Handle CRLF in mingw tool chain
4771 opt_cr=
4772 case $build_os in
4773 mingw*)
4774 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4775 ;;
4776 esac
4777
4778 # Try without a prefix underscore, then with it.
4779 for ac_symprfx in "" "_"; do
4780
4781 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4782 symxfrm="\\1 $ac_symprfx\\2 \\2"
4783
4784 # Write the raw and C identifiers.
4785 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4786 # Fake it for dumpbin and say T for any non-static function
4787 # and D for any global variable.
4788 # Also find C++ and __fastcall symbols from MSVC++,
4789 # which start with @ or ?.
4790 lt_cv_sys_global_symbol_pipe="$AWK '"\
4791 " {last_section=section; section=\$ 3};"\
4792 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4793 " \$ 0!~/External *\|/{next};"\
4794 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4795 " {if(hide[section]) next};"\
4796 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4797 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4798 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4799 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4800 " ' prfx=^$ac_symprfx"
4801 else
4802 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4803 fi
4804
4805 # Check to see that the pipe works correctly.
4806 pipe_works=no
4807
4808 rm -f conftest*
4809 cat > conftest.$ac_ext <<_LT_EOF
4810 #ifdef __cplusplus
4811 extern "C" {
4812 #endif
4813 char nm_test_var;
4814 void nm_test_func(void);
4815 void nm_test_func(void){}
4816 #ifdef __cplusplus
4817 }
4818 #endif
4819 int main(){nm_test_var='a';nm_test_func();return(0);}
4820 _LT_EOF
4821
4822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4823 (eval $ac_compile) 2>&5
4824 ac_status=$?
4825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4826 test $ac_status = 0; }; then
4827 # Now try to grab the symbols.
4828 nlist=conftest.nm
4829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4830 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4831 ac_status=$?
4832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4833 test $ac_status = 0; } && test -s "$nlist"; then
4834 # Try sorting and uniquifying the output.
4835 if sort "$nlist" | uniq > "$nlist"T; then
4836 mv -f "$nlist"T "$nlist"
4837 else
4838 rm -f "$nlist"T
4839 fi
4840
4841 # Make sure that we snagged all the symbols we need.
4842 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4843 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4844 cat <<_LT_EOF > conftest.$ac_ext
4845 #ifdef __cplusplus
4846 extern "C" {
4847 #endif
4848
4849 _LT_EOF
4850 # Now generate the symbol file.
4851 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4852
4853 cat <<_LT_EOF >> conftest.$ac_ext
4854
4855 /* The mapping between symbol names and symbols. */
4856 const struct {
4857 const char *name;
4858 void *address;
4859 }
4860 lt__PROGRAM__LTX_preloaded_symbols[] =
4861 {
4862 { "@PROGRAM@", (void *) 0 },
4863 _LT_EOF
4864 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4865 cat <<\_LT_EOF >> conftest.$ac_ext
4866 {0, (void *) 0}
4867 };
4868
4869 /* This works around a problem in FreeBSD linker */
4870 #ifdef FREEBSD_WORKAROUND
4871 static const void *lt_preloaded_setup() {
4872 return lt__PROGRAM__LTX_preloaded_symbols;
4873 }
4874 #endif
4875
4876 #ifdef __cplusplus
4877 }
4878 #endif
4879 _LT_EOF
4880 # Now try linking the two files.
4881 mv conftest.$ac_objext conftstm.$ac_objext
4882 lt_save_LIBS="$LIBS"
4883 lt_save_CFLAGS="$CFLAGS"
4884 LIBS="conftstm.$ac_objext"
4885 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4887 (eval $ac_link) 2>&5
4888 ac_status=$?
4889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4890 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
4891 pipe_works=yes
4892 fi
4893 LIBS="$lt_save_LIBS"
4894 CFLAGS="$lt_save_CFLAGS"
4895 else
4896 echo "cannot find nm_test_func in $nlist" >&5
4897 fi
4898 else
4899 echo "cannot find nm_test_var in $nlist" >&5
4900 fi
4901 else
4902 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4903 fi
4904 else
4905 echo "$progname: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4907 fi
4908 rm -rf conftest* conftst*
4909
4910 # Do not use the global_symbol_pipe unless it works.
4911 if test "$pipe_works" = yes; then
4912 break
4913 else
4914 lt_cv_sys_global_symbol_pipe=
4915 fi
4916 done
4917
4918 fi
4919
4920 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4921 lt_cv_sys_global_symbol_to_cdecl=
4922 fi
4923 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4925 $as_echo "failed" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4928 $as_echo "ok" >&6; }
4929 fi
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 # Check whether --enable-libtool-lock was given.
4954 if test "${enable_libtool_lock+set}" = set; then :
4955 enableval=$enable_libtool_lock;
4956 fi
4957
4958 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4959
4960 # Some flags need to be propagated to the compiler or linker for good
4961 # libtool support.
4962 case $host in
4963 ia64-*-hpux*)
4964 # Find out which ABI we are using.
4965 echo 'int i;' > conftest.$ac_ext
4966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4967 (eval $ac_compile) 2>&5
4968 ac_status=$?
4969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4970 test $ac_status = 0; }; then
4971 case `/usr/bin/file conftest.$ac_objext` in
4972 *ELF-32*)
4973 HPUX_IA64_MODE="32"
4974 ;;
4975 *ELF-64*)
4976 HPUX_IA64_MODE="64"
4977 ;;
4978 esac
4979 fi
4980 rm -rf conftest*
4981 ;;
4982 *-*-irix6*)
4983 # Find out which ABI we are using.
4984 echo '#line 4984 "configure"' > conftest.$ac_ext
4985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4986 (eval $ac_compile) 2>&5
4987 ac_status=$?
4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }; then
4990 if test "$lt_cv_prog_gnu_ld" = yes; then
4991 case `/usr/bin/file conftest.$ac_objext` in
4992 *32-bit*)
4993 LD="${LD-ld} -melf32bsmip"
4994 ;;
4995 *N32*)
4996 LD="${LD-ld} -melf32bmipn32"
4997 ;;
4998 *64-bit*)
4999 LD="${LD-ld} -melf64bmip"
5000 ;;
5001 esac
5002 else
5003 case `/usr/bin/file conftest.$ac_objext` in
5004 *32-bit*)
5005 LD="${LD-ld} -32"
5006 ;;
5007 *N32*)
5008 LD="${LD-ld} -n32"
5009 ;;
5010 *64-bit*)
5011 LD="${LD-ld} -64"
5012 ;;
5013 esac
5014 fi
5015 fi
5016 rm -rf conftest*
5017 ;;
5018
5019 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5020 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5021 # Find out which ABI we are using.
5022 echo 'int i;' > conftest.$ac_ext
5023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5024 (eval $ac_compile) 2>&5
5025 ac_status=$?
5026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5027 test $ac_status = 0; }; then
5028 case `/usr/bin/file conftest.o` in
5029 *32-bit*)
5030 case $host in
5031 x86_64-*kfreebsd*-gnu)
5032 LD="${LD-ld} -m elf_i386_fbsd"
5033 ;;
5034 x86_64-*linux*)
5035 LD="${LD-ld} -m elf_i386"
5036 ;;
5037 ppc64-*linux*|powerpc64-*linux*)
5038 LD="${LD-ld} -m elf32ppclinux"
5039 ;;
5040 s390x-*linux*)
5041 LD="${LD-ld} -m elf_s390"
5042 ;;
5043 sparc64-*linux*)
5044 LD="${LD-ld} -m elf32_sparc"
5045 ;;
5046 esac
5047 ;;
5048 *64-bit*)
5049 case $host in
5050 x86_64-*kfreebsd*-gnu)
5051 LD="${LD-ld} -m elf_x86_64_fbsd"
5052 ;;
5053 x86_64-*linux*)
5054 LD="${LD-ld} -m elf_x86_64"
5055 ;;
5056 ppc*-*linux*|powerpc*-*linux*)
5057 LD="${LD-ld} -m elf64ppc"
5058 ;;
5059 s390*-*linux*|s390*-*tpf*)
5060 LD="${LD-ld} -m elf64_s390"
5061 ;;
5062 sparc*-*linux*)
5063 LD="${LD-ld} -m elf64_sparc"
5064 ;;
5065 esac
5066 ;;
5067 esac
5068 fi
5069 rm -rf conftest*
5070 ;;
5071
5072 *-*-sco3.2v5*)
5073 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5074 SAVE_CFLAGS="$CFLAGS"
5075 CFLAGS="$CFLAGS -belf"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5077 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5078 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 ac_ext=c
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089
5090 int
5091 main ()
5092 {
5093
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 if ac_fn_c_try_link "$LINENO"; then :
5099 lt_cv_cc_needs_belf=yes
5100 else
5101 lt_cv_cc_needs_belf=no
5102 fi
5103 rm -f core conftest.err conftest.$ac_objext \
5104 conftest$ac_exeext conftest.$ac_ext
5105 ac_ext=c
5106 ac_cpp='$CPP $CPPFLAGS'
5107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5113 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5114 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5115 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5116 CFLAGS="$SAVE_CFLAGS"
5117 fi
5118 ;;
5119 sparc*-*solaris*)
5120 # Find out which ABI we are using.
5121 echo 'int i;' > conftest.$ac_ext
5122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5123 (eval $ac_compile) 2>&5
5124 ac_status=$?
5125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5126 test $ac_status = 0; }; then
5127 case `/usr/bin/file conftest.o` in
5128 *64-bit*)
5129 case $lt_cv_prog_gnu_ld in
5130 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5131 *)
5132 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5133 LD="${LD-ld} -64"
5134 fi
5135 ;;
5136 esac
5137 ;;
5138 esac
5139 fi
5140 rm -rf conftest*
5141 ;;
5142 esac
5143
5144 need_locks="$enable_libtool_lock"
5145
5146
5147 case $host_os in
5148 rhapsody* | darwin*)
5149 if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5151 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$DSYMUTIL"; then
5158 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175 fi
5176 fi
5177 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5178 if test -n "$DSYMUTIL"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5180 $as_echo "$DSYMUTIL" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186
5187 fi
5188 if test -z "$ac_cv_prog_DSYMUTIL"; then
5189 ac_ct_DSYMUTIL=$DSYMUTIL
5190 # Extract the first word of "dsymutil", so it can be a program name with args.
5191 set dummy dsymutil; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$ac_ct_DSYMUTIL"; then
5198 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211 done
5212 done
5213 IFS=$as_save_IFS
5214
5215 fi
5216 fi
5217 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5218 if test -n "$ac_ct_DSYMUTIL"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5220 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5224 fi
5225
5226 if test "x$ac_ct_DSYMUTIL" = x; then
5227 DSYMUTIL=":"
5228 else
5229 case $cross_compiling:$ac_tool_warned in
5230 yes:)
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233 ac_tool_warned=yes ;;
5234 esac
5235 DSYMUTIL=$ac_ct_DSYMUTIL
5236 fi
5237 else
5238 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5239 fi
5240
5241 if test -n "$ac_tool_prefix"; then
5242 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5243 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 if test -n "$NMEDIT"; then
5250 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263 done
5264 done
5265 IFS=$as_save_IFS
5266
5267 fi
5268 fi
5269 NMEDIT=$ac_cv_prog_NMEDIT
5270 if test -n "$NMEDIT"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5272 $as_echo "$NMEDIT" >&6; }
5273 else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5276 fi
5277
5278
5279 fi
5280 if test -z "$ac_cv_prog_NMEDIT"; then
5281 ac_ct_NMEDIT=$NMEDIT
5282 # Extract the first word of "nmedit", so it can be a program name with args.
5283 set dummy nmedit; ac_word=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 if test -n "$ac_ct_NMEDIT"; then
5290 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5291 else
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5294 do
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 break 2
5302 fi
5303 done
5304 done
5305 IFS=$as_save_IFS
5306
5307 fi
5308 fi
5309 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5310 if test -n "$ac_ct_NMEDIT"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5312 $as_echo "$ac_ct_NMEDIT" >&6; }
5313 else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5316 fi
5317
5318 if test "x$ac_ct_NMEDIT" = x; then
5319 NMEDIT=":"
5320 else
5321 case $cross_compiling:$ac_tool_warned in
5322 yes:)
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5325 ac_tool_warned=yes ;;
5326 esac
5327 NMEDIT=$ac_ct_NMEDIT
5328 fi
5329 else
5330 NMEDIT="$ac_cv_prog_NMEDIT"
5331 fi
5332
5333 if test -n "$ac_tool_prefix"; then
5334 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5335 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if test "${ac_cv_prog_LIPO+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if test -n "$LIPO"; then
5342 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358
5359 fi
5360 fi
5361 LIPO=$ac_cv_prog_LIPO
5362 if test -n "$LIPO"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5364 $as_echo "$LIPO" >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370
5371 fi
5372 if test -z "$ac_cv_prog_LIPO"; then
5373 ac_ct_LIPO=$LIPO
5374 # Extract the first word of "lipo", so it can be a program name with args.
5375 set dummy lipo; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -n "$ac_ct_LIPO"; then
5382 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_ac_ct_LIPO="lipo"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5394 fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5398
5399 fi
5400 fi
5401 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5402 if test -n "$ac_ct_LIPO"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5404 $as_echo "$ac_ct_LIPO" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409
5410 if test "x$ac_ct_LIPO" = x; then
5411 LIPO=":"
5412 else
5413 case $cross_compiling:$ac_tool_warned in
5414 yes:)
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5417 ac_tool_warned=yes ;;
5418 esac
5419 LIPO=$ac_ct_LIPO
5420 fi
5421 else
5422 LIPO="$ac_cv_prog_LIPO"
5423 fi
5424
5425 if test -n "$ac_tool_prefix"; then
5426 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5427 set dummy ${ac_tool_prefix}otool; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if test "${ac_cv_prog_OTOOL+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 if test -n "$OTOOL"; then
5434 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5446 fi
5447 done
5448 done
5449 IFS=$as_save_IFS
5450
5451 fi
5452 fi
5453 OTOOL=$ac_cv_prog_OTOOL
5454 if test -n "$OTOOL"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5456 $as_echo "$OTOOL" >&6; }
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5460 fi
5461
5462
5463 fi
5464 if test -z "$ac_cv_prog_OTOOL"; then
5465 ac_ct_OTOOL=$OTOOL
5466 # Extract the first word of "otool", so it can be a program name with args.
5467 set dummy otool; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 if test -n "$ac_ct_OTOOL"; then
5474 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5475 else
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5483 ac_cv_prog_ac_ct_OTOOL="otool"
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 break 2
5486 fi
5487 done
5488 done
5489 IFS=$as_save_IFS
5490
5491 fi
5492 fi
5493 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5494 if test -n "$ac_ct_OTOOL"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5496 $as_echo "$ac_ct_OTOOL" >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5500 fi
5501
5502 if test "x$ac_ct_OTOOL" = x; then
5503 OTOOL=":"
5504 else
5505 case $cross_compiling:$ac_tool_warned in
5506 yes:)
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5509 ac_tool_warned=yes ;;
5510 esac
5511 OTOOL=$ac_ct_OTOOL
5512 fi
5513 else
5514 OTOOL="$ac_cv_prog_OTOOL"
5515 fi
5516
5517 if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$OTOOL64"; then
5526 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5538 fi
5539 done
5540 done
5541 IFS=$as_save_IFS
5542
5543 fi
5544 fi
5545 OTOOL64=$ac_cv_prog_OTOOL64
5546 if test -n "$OTOOL64"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5548 $as_echo "$OTOOL64" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 fi
5553
5554
5555 fi
5556 if test -z "$ac_cv_prog_OTOOL64"; then
5557 ac_ct_OTOOL64=$OTOOL64
5558 # Extract the first word of "otool64", so it can be a program name with args.
5559 set dummy otool64; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$ac_ct_OTOOL64"; then
5566 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_ac_ct_OTOOL64="otool64"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579 done
5580 done
5581 IFS=$as_save_IFS
5582
5583 fi
5584 fi
5585 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5586 if test -n "$ac_ct_OTOOL64"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5588 $as_echo "$ac_ct_OTOOL64" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593
5594 if test "x$ac_ct_OTOOL64" = x; then
5595 OTOOL64=":"
5596 else
5597 case $cross_compiling:$ac_tool_warned in
5598 yes:)
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601 ac_tool_warned=yes ;;
5602 esac
5603 OTOOL64=$ac_ct_OTOOL64
5604 fi
5605 else
5606 OTOOL64="$ac_cv_prog_OTOOL64"
5607 fi
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5636 $as_echo_n "checking for -single_module linker flag... " >&6; }
5637 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 lt_cv_apple_cc_single_mod=no
5641 if test -z "${LT_MULTI_MODULE}"; then
5642 # By default we will add the -single_module flag. You can override
5643 # by either setting the environment variable LT_MULTI_MODULE
5644 # non-empty at configure time, or by adding -multi_module to the
5645 # link flags.
5646 rm -rf libconftest.dylib*
5647 echo "int foo(void){return 1;}" > conftest.c
5648 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5649 -dynamiclib -Wl,-single_module conftest.c" >&5
5650 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5651 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5652 _lt_result=$?
5653 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5654 lt_cv_apple_cc_single_mod=yes
5655 else
5656 cat conftest.err >&5
5657 fi
5658 rm -rf libconftest.dylib*
5659 rm -f conftest.*
5660 fi
5661 fi
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5663 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5665 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5666 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 lt_cv_ld_exported_symbols_list=no
5670 save_LDFLAGS=$LDFLAGS
5671 echo "_main" > conftest.sym
5672 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675
5676 int
5677 main ()
5678 {
5679
5680 ;
5681 return 0;
5682 }
5683 _ACEOF
5684 if ac_fn_c_try_link "$LINENO"; then :
5685 lt_cv_ld_exported_symbols_list=yes
5686 else
5687 lt_cv_ld_exported_symbols_list=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5691 LDFLAGS="$save_LDFLAGS"
5692
5693 fi
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5695 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5696 case $host_os in
5697 rhapsody* | darwin1.[012])
5698 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5699 darwin1.*)
5700 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5701 darwin*) # darwin 5.x on
5702 # if running on 10.5 or later, the deployment target defaults
5703 # to the OS version, if on x86, and 10.4, the deployment
5704 # target defaults to 10.4. Don't you love it?
5705 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5706 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5707 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5708 10.[012]*)
5709 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5710 10.*)
5711 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5712 esac
5713 ;;
5714 esac
5715 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5716 _lt_dar_single_mod='$single_module'
5717 fi
5718 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5719 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5720 else
5721 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5722 fi
5723 if test "$DSYMUTIL" != ":"; then
5724 _lt_dsymutil='~$DSYMUTIL $lib || :'
5725 else
5726 _lt_dsymutil=
5727 fi
5728 ;;
5729 esac
5730
5731 ac_ext=c
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5737 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5738 # On Suns, sometimes $CPP names a directory.
5739 if test -n "$CPP" && test -d "$CPP"; then
5740 CPP=
5741 fi
5742 if test -z "$CPP"; then
5743 if test "${ac_cv_prog_CPP+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 # Double quotes because CPP needs to be expanded
5747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5748 do
5749 ac_preproc_ok=false
5750 for ac_c_preproc_warn_flag in '' yes
5751 do
5752 # Use a header file that comes with gcc, so configuring glibc
5753 # with a fresh cross-compiler works.
5754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5755 # <limits.h> exists even on freestanding compilers.
5756 # On the NeXT, cc -E runs the code through the compiler's parser,
5757 # not just through cpp. "Syntax error" is here to catch this case.
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #ifdef __STDC__
5761 # include <limits.h>
5762 #else
5763 # include <assert.h>
5764 #endif
5765 Syntax error
5766 _ACEOF
5767 if ac_fn_c_try_cpp "$LINENO"; then :
5768
5769 else
5770 # Broken: fails on valid input.
5771 continue
5772 fi
5773 rm -f conftest.err conftest.i conftest.$ac_ext
5774
5775 # OK, works on sane cases. Now check whether nonexistent headers
5776 # can be detected and how.
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #include <ac_nonexistent.h>
5780 _ACEOF
5781 if ac_fn_c_try_cpp "$LINENO"; then :
5782 # Broken: success on invalid input.
5783 continue
5784 else
5785 # Passes both tests.
5786 ac_preproc_ok=:
5787 break
5788 fi
5789 rm -f conftest.err conftest.i conftest.$ac_ext
5790
5791 done
5792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5793 rm -f conftest.i conftest.err conftest.$ac_ext
5794 if $ac_preproc_ok; then :
5795 break
5796 fi
5797
5798 done
5799 ac_cv_prog_CPP=$CPP
5800
5801 fi
5802 CPP=$ac_cv_prog_CPP
5803 else
5804 ac_cv_prog_CPP=$CPP
5805 fi
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5807 $as_echo "$CPP" >&6; }
5808 ac_preproc_ok=false
5809 for ac_c_preproc_warn_flag in '' yes
5810 do
5811 # Use a header file that comes with gcc, so configuring glibc
5812 # with a fresh cross-compiler works.
5813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814 # <limits.h> exists even on freestanding compilers.
5815 # On the NeXT, cc -E runs the code through the compiler's parser,
5816 # not just through cpp. "Syntax error" is here to catch this case.
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #ifdef __STDC__
5820 # include <limits.h>
5821 #else
5822 # include <assert.h>
5823 #endif
5824 Syntax error
5825 _ACEOF
5826 if ac_fn_c_try_cpp "$LINENO"; then :
5827
5828 else
5829 # Broken: fails on valid input.
5830 continue
5831 fi
5832 rm -f conftest.err conftest.i conftest.$ac_ext
5833
5834 # OK, works on sane cases. Now check whether nonexistent headers
5835 # can be detected and how.
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #include <ac_nonexistent.h>
5839 _ACEOF
5840 if ac_fn_c_try_cpp "$LINENO"; then :
5841 # Broken: success on invalid input.
5842 continue
5843 else
5844 # Passes both tests.
5845 ac_preproc_ok=:
5846 break
5847 fi
5848 rm -f conftest.err conftest.i conftest.$ac_ext
5849
5850 done
5851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5852 rm -f conftest.i conftest.err conftest.$ac_ext
5853 if $ac_preproc_ok; then :
5854
5855 else
5856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5859 See \`config.log' for more details" "$LINENO" 5 ; }
5860 fi
5861
5862 ac_ext=c
5863 ac_cpp='$CPP $CPPFLAGS'
5864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5867
5868
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5870 $as_echo_n "checking for ANSI C header files... " >&6; }
5871 if test "${ac_cv_header_stdc+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #include <stdlib.h>
5877 #include <stdarg.h>
5878 #include <string.h>
5879 #include <float.h>
5880
5881 int
5882 main ()
5883 {
5884
5885 ;
5886 return 0;
5887 }
5888 _ACEOF
5889 if ac_fn_c_try_compile "$LINENO"; then :
5890 ac_cv_header_stdc=yes
5891 else
5892 ac_cv_header_stdc=no
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895
5896 if test $ac_cv_header_stdc = yes; then
5897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900 #include <string.h>
5901
5902 _ACEOF
5903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904 $EGREP "memchr" >/dev/null 2>&1; then :
5905
5906 else
5907 ac_cv_header_stdc=no
5908 fi
5909 rm -f conftest*
5910
5911 fi
5912
5913 if test $ac_cv_header_stdc = yes; then
5914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #include <stdlib.h>
5918
5919 _ACEOF
5920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5921 $EGREP "free" >/dev/null 2>&1; then :
5922
5923 else
5924 ac_cv_header_stdc=no
5925 fi
5926 rm -f conftest*
5927
5928 fi
5929
5930 if test $ac_cv_header_stdc = yes; then
5931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5932 if test "$cross_compiling" = yes; then :
5933 :
5934 else
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 #include <ctype.h>
5938 #include <stdlib.h>
5939 #if ((' ' & 0x0FF) == 0x020)
5940 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5941 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5942 #else
5943 # define ISLOWER(c) \
5944 (('a' <= (c) && (c) <= 'i') \
5945 || ('j' <= (c) && (c) <= 'r') \
5946 || ('s' <= (c) && (c) <= 'z'))
5947 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5948 #endif
5949
5950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5951 int
5952 main ()
5953 {
5954 int i;
5955 for (i = 0; i < 256; i++)
5956 if (XOR (islower (i), ISLOWER (i))
5957 || toupper (i) != TOUPPER (i))
5958 return 2;
5959 return 0;
5960 }
5961 _ACEOF
5962 if ac_fn_c_try_run "$LINENO"; then :
5963
5964 else
5965 ac_cv_header_stdc=no
5966 fi
5967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5968 conftest.$ac_objext conftest.beam conftest.$ac_ext
5969 fi
5970
5971 fi
5972 fi
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5974 $as_echo "$ac_cv_header_stdc" >&6; }
5975 if test $ac_cv_header_stdc = yes; then
5976
5977 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5978
5979 fi
5980
5981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5983 inttypes.h stdint.h unistd.h
5984 do :
5985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5986 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5987 "
5988 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5989 cat >>confdefs.h <<_ACEOF
5990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5991 _ACEOF
5992
5993 fi
5994
5995 done
5996
5997
5998 for ac_header in dlfcn.h
5999 do :
6000 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6001 "
6002 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6003 cat >>confdefs.h <<_ACEOF
6004 #define HAVE_DLFCN_H 1
6005 _ACEOF
6006
6007 fi
6008
6009 done
6010
6011
6012
6013 # Set options
6014
6015
6016
6017 enable_dlopen=no
6018
6019
6020 enable_win32_dll=no
6021
6022
6023 # Check whether --enable-shared was given.
6024 if test "${enable_shared+set}" = set; then :
6025 enableval=$enable_shared; p=${PACKAGE-default}
6026 case $enableval in
6027 yes) enable_shared=yes ;;
6028 no) enable_shared=no ;;
6029 *)
6030 enable_shared=no
6031 # Look at the argument we got. We use all the common list separators.
6032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6033 for pkg in $enableval; do
6034 IFS="$lt_save_ifs"
6035 if test "X$pkg" = "X$p"; then
6036 enable_shared=yes
6037 fi
6038 done
6039 IFS="$lt_save_ifs"
6040 ;;
6041 esac
6042 else
6043 enable_shared=yes
6044 fi
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056 # Check whether --with-pic was given.
6057 if test "${with_pic+set}" = set; then :
6058 withval=$with_pic; pic_mode="$withval"
6059 else
6060 pic_mode=default
6061 fi
6062
6063
6064 test -z "$pic_mode" && pic_mode=default
6065
6066
6067
6068
6069
6070
6071
6072 # Check whether --enable-fast-install was given.
6073 if test "${enable_fast_install+set}" = set; then :
6074 enableval=$enable_fast_install; p=${PACKAGE-default}
6075 case $enableval in
6076 yes) enable_fast_install=yes ;;
6077 no) enable_fast_install=no ;;
6078 *)
6079 enable_fast_install=no
6080 # Look at the argument we got. We use all the common list separators.
6081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6082 for pkg in $enableval; do
6083 IFS="$lt_save_ifs"
6084 if test "X$pkg" = "X$p"; then
6085 enable_fast_install=yes
6086 fi
6087 done
6088 IFS="$lt_save_ifs"
6089 ;;
6090 esac
6091 else
6092 enable_fast_install=yes
6093 fi
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105 # This can be used to rebuild libtool when needed
6106 LIBTOOL_DEPS="$ltmain"
6107
6108 # Always use our own libtool.
6109 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135 test -z "$LN_S" && LN_S="ln -s"
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150 if test -n "${ZSH_VERSION+set}" ; then
6151 setopt NO_GLOB_SUBST
6152 fi
6153
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6155 $as_echo_n "checking for objdir... " >&6; }
6156 if test "${lt_cv_objdir+set}" = set; then :
6157 $as_echo_n "(cached) " >&6
6158 else
6159 rm -f .libs 2>/dev/null
6160 mkdir .libs 2>/dev/null
6161 if test -d .libs; then
6162 lt_cv_objdir=.libs
6163 else
6164 # MS-DOS does not allow filenames that begin with a dot.
6165 lt_cv_objdir=_libs
6166 fi
6167 rmdir .libs 2>/dev/null
6168 fi
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6170 $as_echo "$lt_cv_objdir" >&6; }
6171 objdir=$lt_cv_objdir
6172
6173
6174
6175
6176
6177 cat >>confdefs.h <<_ACEOF
6178 #define LT_OBJDIR "$lt_cv_objdir/"
6179 _ACEOF
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197 case $host_os in
6198 aix3*)
6199 # AIX sometimes has problems with the GCC collect2 program. For some
6200 # reason, if we set the COLLECT_NAMES environment variable, the problems
6201 # vanish in a puff of smoke.
6202 if test "X${COLLECT_NAMES+set}" != Xset; then
6203 COLLECT_NAMES=
6204 export COLLECT_NAMES
6205 fi
6206 ;;
6207 esac
6208
6209 # Sed substitution that helps us do robust quoting. It backslashifies
6210 # metacharacters that are still active within double-quoted strings.
6211 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6212
6213 # Same as above, but do not quote variable references.
6214 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6215
6216 # Sed substitution to delay expansion of an escaped shell variable in a
6217 # double_quote_subst'ed string.
6218 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6219
6220 # Sed substitution to delay expansion of an escaped single quote.
6221 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6222
6223 # Sed substitution to avoid accidental globbing in evaled expressions
6224 no_glob_subst='s/\*/\\\*/g'
6225
6226 # Global variables:
6227 ofile=libtool
6228 can_build_shared=yes
6229
6230 # All known linkers require a `.a' archive for static linking (except MSVC,
6231 # which needs '.lib').
6232 libext=a
6233
6234 with_gnu_ld="$lt_cv_prog_gnu_ld"
6235
6236 old_CC="$CC"
6237 old_CFLAGS="$CFLAGS"
6238
6239 # Set sane defaults for various variables
6240 test -z "$CC" && CC=cc
6241 test -z "$LTCC" && LTCC=$CC
6242 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6243 test -z "$LD" && LD=ld
6244 test -z "$ac_objext" && ac_objext=o
6245
6246 for cc_temp in $compiler""; do
6247 case $cc_temp in
6248 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6249 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6250 \-*) ;;
6251 *) break;;
6252 esac
6253 done
6254 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6255
6256
6257 # Only perform the check for file, if the check method requires it
6258 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6259 case $deplibs_check_method in
6260 file_magic*)
6261 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6263 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6264 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 case $MAGIC_CMD in
6268 [\\/*] | ?:[\\/]*)
6269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6270 ;;
6271 *)
6272 lt_save_MAGIC_CMD="$MAGIC_CMD"
6273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6275 for ac_dir in $ac_dummy; do
6276 IFS="$lt_save_ifs"
6277 test -z "$ac_dir" && ac_dir=.
6278 if test -f $ac_dir/${ac_tool_prefix}file; then
6279 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6280 if test -n "$file_magic_test_file"; then
6281 case $deplibs_check_method in
6282 "file_magic "*)
6283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6286 $EGREP "$file_magic_regex" > /dev/null; then
6287 :
6288 else
6289 cat <<_LT_EOF 1>&2
6290
6291 *** Warning: the command libtool uses to detect shared libraries,
6292 *** $file_magic_cmd, produces output that libtool cannot recognize.
6293 *** The result is that libtool may fail to recognize shared libraries
6294 *** as such. This will affect the creation of libtool libraries that
6295 *** depend on shared libraries, but programs linked with such libtool
6296 *** libraries will work regardless of this problem. Nevertheless, you
6297 *** may want to report the problem to your system manager and/or to
6298 *** [email protected]
6299
6300 _LT_EOF
6301 fi ;;
6302 esac
6303 fi
6304 break
6305 fi
6306 done
6307 IFS="$lt_save_ifs"
6308 MAGIC_CMD="$lt_save_MAGIC_CMD"
6309 ;;
6310 esac
6311 fi
6312
6313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6314 if test -n "$MAGIC_CMD"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6316 $as_echo "$MAGIC_CMD" >&6; }
6317 else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321
6322
6323
6324
6325
6326 if test -z "$lt_cv_path_MAGIC_CMD"; then
6327 if test -n "$ac_tool_prefix"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6329 $as_echo_n "checking for file... " >&6; }
6330 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 case $MAGIC_CMD in
6334 [\\/*] | ?:[\\/]*)
6335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6336 ;;
6337 *)
6338 lt_save_MAGIC_CMD="$MAGIC_CMD"
6339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6340 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6341 for ac_dir in $ac_dummy; do
6342 IFS="$lt_save_ifs"
6343 test -z "$ac_dir" && ac_dir=.
6344 if test -f $ac_dir/file; then
6345 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6346 if test -n "$file_magic_test_file"; then
6347 case $deplibs_check_method in
6348 "file_magic "*)
6349 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6351 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6352 $EGREP "$file_magic_regex" > /dev/null; then
6353 :
6354 else
6355 cat <<_LT_EOF 1>&2
6356
6357 *** Warning: the command libtool uses to detect shared libraries,
6358 *** $file_magic_cmd, produces output that libtool cannot recognize.
6359 *** The result is that libtool may fail to recognize shared libraries
6360 *** as such. This will affect the creation of libtool libraries that
6361 *** depend on shared libraries, but programs linked with such libtool
6362 *** libraries will work regardless of this problem. Nevertheless, you
6363 *** may want to report the problem to your system manager and/or to
6364 *** [email protected]
6365
6366 _LT_EOF
6367 fi ;;
6368 esac
6369 fi
6370 break
6371 fi
6372 done
6373 IFS="$lt_save_ifs"
6374 MAGIC_CMD="$lt_save_MAGIC_CMD"
6375 ;;
6376 esac
6377 fi
6378
6379 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6380 if test -n "$MAGIC_CMD"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6382 $as_echo "$MAGIC_CMD" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388
6389 else
6390 MAGIC_CMD=:
6391 fi
6392 fi
6393
6394 fi
6395 ;;
6396 esac
6397
6398 # Use C for the default configuration in the libtool script
6399
6400 lt_save_CC="$CC"
6401 ac_ext=c
6402 ac_cpp='$CPP $CPPFLAGS'
6403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406
6407
6408 # Source file extension for C test sources.
6409 ac_ext=c
6410
6411 # Object file extension for compiled C test sources.
6412 objext=o
6413 objext=$objext
6414
6415 # Code to be used in simple compile tests
6416 lt_simple_compile_test_code="int some_variable = 0;"
6417
6418 # Code to be used in simple link tests
6419 lt_simple_link_test_code='int main(){return(0);}'
6420
6421
6422
6423
6424
6425
6426
6427 # If no C compiler was specified, use CC.
6428 LTCC=${LTCC-"$CC"}
6429
6430 # If no C compiler flags were specified, use CFLAGS.
6431 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6432
6433 # Allow CC to be a program name with arguments.
6434 compiler=$CC
6435
6436 # Save the default compiler, since it gets overwritten when the other
6437 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6438 compiler_DEFAULT=$CC
6439
6440 # save warnings/boilerplate of simple test code
6441 ac_outfile=conftest.$ac_objext
6442 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6443 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6444 _lt_compiler_boilerplate=`cat conftest.err`
6445 $RM conftest*
6446
6447 ac_outfile=conftest.$ac_objext
6448 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6449 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6450 _lt_linker_boilerplate=`cat conftest.err`
6451 $RM -r conftest*
6452
6453
6454 if test -n "$compiler"; then
6455
6456 lt_prog_compiler_no_builtin_flag=
6457
6458 if test "$GCC" = yes; then
6459 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6460
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6462 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6463 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 lt_cv_prog_compiler_rtti_exceptions=no
6467 ac_outfile=conftest.$ac_objext
6468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6469 lt_compiler_flag="-fno-rtti -fno-exceptions"
6470 # Insert the option either (1) after the last *FLAGS variable, or
6471 # (2) before a word containing "conftest.", or (3) at the end.
6472 # Note that $ac_compile itself does not contain backslashes and begins
6473 # with a dollar sign (not a hyphen), so the echo should work correctly.
6474 # The option is referenced via a variable to avoid confusing sed.
6475 lt_compile=`echo "$ac_compile" | $SED \
6476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6478 -e 's:$: $lt_compiler_flag:'`
6479 (eval echo "\"\$as_me:6479: $lt_compile\"" >&5)
6480 (eval "$lt_compile" 2>conftest.err)
6481 ac_status=$?
6482 cat conftest.err >&5
6483 echo "$as_me:6483: \$? = $ac_status" >&5
6484 if (exit $ac_status) && test -s "$ac_outfile"; then
6485 # The compiler can only warn and ignore the option if not recognized
6486 # So say no if there are warnings other than the usual output.
6487 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6490 lt_cv_prog_compiler_rtti_exceptions=yes
6491 fi
6492 fi
6493 $RM conftest*
6494
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6497 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6498
6499 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6500 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6501 else
6502 :
6503 fi
6504
6505 fi
6506
6507
6508
6509
6510
6511
6512 lt_prog_compiler_wl=
6513 lt_prog_compiler_pic=
6514 lt_prog_compiler_static=
6515
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6517 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6518
6519 if test "$GCC" = yes; then
6520 lt_prog_compiler_wl='-Wl,'
6521 lt_prog_compiler_static='-static'
6522
6523 case $host_os in
6524 aix*)
6525 # All AIX code is PIC.
6526 if test "$host_cpu" = ia64; then
6527 # AIX 5 now supports IA64 processor
6528 lt_prog_compiler_static='-Bstatic'
6529 fi
6530 ;;
6531
6532 amigaos*)
6533 case $host_cpu in
6534 powerpc)
6535 # see comment about AmigaOS4 .so support
6536 lt_prog_compiler_pic='-fPIC'
6537 ;;
6538 m68k)
6539 # FIXME: we need at least 68020 code to build shared libraries, but
6540 # adding the `-m68020' flag to GCC prevents building anything better,
6541 # like `-m68040'.
6542 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6543 ;;
6544 esac
6545 ;;
6546
6547 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6548 # PIC is the default for these OSes.
6549 ;;
6550
6551 mingw* | cygwin* | pw32* | os2* | cegcc*)
6552 # This hack is so that the source file can tell whether it is being
6553 # built for inclusion in a dll (and should export symbols for example).
6554 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6555 # (--disable-auto-import) libraries
6556 lt_prog_compiler_pic='-DDLL_EXPORT'
6557 ;;
6558
6559 darwin* | rhapsody*)
6560 # PIC is the default on this platform
6561 # Common symbols not allowed in MH_DYLIB files
6562 lt_prog_compiler_pic='-fno-common'
6563 ;;
6564
6565 hpux*)
6566 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6567 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6568 # sets the default TLS model and affects inlining.
6569 case $host_cpu in
6570 hppa*64*)
6571 # +Z the default
6572 ;;
6573 *)
6574 lt_prog_compiler_pic='-fPIC'
6575 ;;
6576 esac
6577 ;;
6578
6579 interix[3-9]*)
6580 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6581 # Instead, we relocate shared libraries at runtime.
6582 ;;
6583
6584 msdosdjgpp*)
6585 # Just because we use GCC doesn't mean we suddenly get shared libraries
6586 # on systems that don't support them.
6587 lt_prog_compiler_can_build_shared=no
6588 enable_shared=no
6589 ;;
6590
6591 *nto* | *qnx*)
6592 # QNX uses GNU C++, but need to define -shared option too, otherwise
6593 # it will coredump.
6594 lt_prog_compiler_pic='-fPIC -shared'
6595 ;;
6596
6597 sysv4*MP*)
6598 if test -d /usr/nec; then
6599 lt_prog_compiler_pic=-Kconform_pic
6600 fi
6601 ;;
6602
6603 *)
6604 lt_prog_compiler_pic='-fPIC'
6605 ;;
6606 esac
6607 else
6608 # PORTME Check for flag to pass linker flags through the system compiler.
6609 case $host_os in
6610 aix*)
6611 lt_prog_compiler_wl='-Wl,'
6612 if test "$host_cpu" = ia64; then
6613 # AIX 5 now supports IA64 processor
6614 lt_prog_compiler_static='-Bstatic'
6615 else
6616 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6617 fi
6618 ;;
6619
6620 mingw* | cygwin* | pw32* | os2* | cegcc*)
6621 # This hack is so that the source file can tell whether it is being
6622 # built for inclusion in a dll (and should export symbols for example).
6623 lt_prog_compiler_pic='-DDLL_EXPORT'
6624 ;;
6625
6626 hpux9* | hpux10* | hpux11*)
6627 lt_prog_compiler_wl='-Wl,'
6628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6629 # not for PA HP-UX.
6630 case $host_cpu in
6631 hppa*64*|ia64*)
6632 # +Z the default
6633 ;;
6634 *)
6635 lt_prog_compiler_pic='+Z'
6636 ;;
6637 esac
6638 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6639 lt_prog_compiler_static='${wl}-a ${wl}archive'
6640 ;;
6641
6642 irix5* | irix6* | nonstopux*)
6643 lt_prog_compiler_wl='-Wl,'
6644 # PIC (with -KPIC) is the default.
6645 lt_prog_compiler_static='-non_shared'
6646 ;;
6647
6648 linux* | k*bsd*-gnu)
6649 case $cc_basename in
6650 # old Intel for x86_64 which still supported -KPIC.
6651 ecc*)
6652 lt_prog_compiler_wl='-Wl,'
6653 lt_prog_compiler_pic='-KPIC'
6654 lt_prog_compiler_static='-static'
6655 ;;
6656 # icc used to be incompatible with GCC.
6657 # ICC 10 doesn't accept -KPIC any more.
6658 icc* | ifort*)
6659 lt_prog_compiler_wl='-Wl,'
6660 lt_prog_compiler_pic='-fPIC'
6661 lt_prog_compiler_static='-static'
6662 ;;
6663 # Lahey Fortran 8.1.
6664 lf95*)
6665 lt_prog_compiler_wl='-Wl,'
6666 lt_prog_compiler_pic='--shared'
6667 lt_prog_compiler_static='--static'
6668 ;;
6669 pgcc* | pgf77* | pgf90* | pgf95*)
6670 # Portland Group compilers (*not* the Pentium gcc compiler,
6671 # which looks to be a dead project)
6672 lt_prog_compiler_wl='-Wl,'
6673 lt_prog_compiler_pic='-fpic'
6674 lt_prog_compiler_static='-Bstatic'
6675 ;;
6676 ccc*)
6677 lt_prog_compiler_wl='-Wl,'
6678 # All Alpha code is PIC.
6679 lt_prog_compiler_static='-non_shared'
6680 ;;
6681 xl*)
6682 # IBM XL C 8.0/Fortran 10.1 on PPC
6683 lt_prog_compiler_wl='-Wl,'
6684 lt_prog_compiler_pic='-qpic'
6685 lt_prog_compiler_static='-qstaticlink'
6686 ;;
6687 *)
6688 case `$CC -V 2>&1 | sed 5q` in
6689 *Sun\ C*)
6690 # Sun C 5.9
6691 lt_prog_compiler_pic='-KPIC'
6692 lt_prog_compiler_static='-Bstatic'
6693 lt_prog_compiler_wl='-Wl,'
6694 ;;
6695 *Sun\ F*)
6696 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6697 lt_prog_compiler_pic='-KPIC'
6698 lt_prog_compiler_static='-Bstatic'
6699 lt_prog_compiler_wl=''
6700 ;;
6701 esac
6702 ;;
6703 esac
6704 ;;
6705
6706 newsos6)
6707 lt_prog_compiler_pic='-KPIC'
6708 lt_prog_compiler_static='-Bstatic'
6709 ;;
6710
6711 *nto* | *qnx*)
6712 # QNX uses GNU C++, but need to define -shared option too, otherwise
6713 # it will coredump.
6714 lt_prog_compiler_pic='-fPIC -shared'
6715 ;;
6716
6717 osf3* | osf4* | osf5*)
6718 lt_prog_compiler_wl='-Wl,'
6719 # All OSF/1 code is PIC.
6720 lt_prog_compiler_static='-non_shared'
6721 ;;
6722
6723 rdos*)
6724 lt_prog_compiler_static='-non_shared'
6725 ;;
6726
6727 solaris*)
6728 lt_prog_compiler_pic='-KPIC'
6729 lt_prog_compiler_static='-Bstatic'
6730 case $cc_basename in
6731 f77* | f90* | f95*)
6732 lt_prog_compiler_wl='-Qoption ld ';;
6733 *)
6734 lt_prog_compiler_wl='-Wl,';;
6735 esac
6736 ;;
6737
6738 sunos4*)
6739 lt_prog_compiler_wl='-Qoption ld '
6740 lt_prog_compiler_pic='-PIC'
6741 lt_prog_compiler_static='-Bstatic'
6742 ;;
6743
6744 sysv4 | sysv4.2uw2* | sysv4.3*)
6745 lt_prog_compiler_wl='-Wl,'
6746 lt_prog_compiler_pic='-KPIC'
6747 lt_prog_compiler_static='-Bstatic'
6748 ;;
6749
6750 sysv4*MP*)
6751 if test -d /usr/nec ;then
6752 lt_prog_compiler_pic='-Kconform_pic'
6753 lt_prog_compiler_static='-Bstatic'
6754 fi
6755 ;;
6756
6757 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6758 lt_prog_compiler_wl='-Wl,'
6759 lt_prog_compiler_pic='-KPIC'
6760 lt_prog_compiler_static='-Bstatic'
6761 ;;
6762
6763 unicos*)
6764 lt_prog_compiler_wl='-Wl,'
6765 lt_prog_compiler_can_build_shared=no
6766 ;;
6767
6768 uts4*)
6769 lt_prog_compiler_pic='-pic'
6770 lt_prog_compiler_static='-Bstatic'
6771 ;;
6772
6773 *)
6774 lt_prog_compiler_can_build_shared=no
6775 ;;
6776 esac
6777 fi
6778
6779 case $host_os in
6780 # For platforms which do not support PIC, -DPIC is meaningless:
6781 *djgpp*)
6782 lt_prog_compiler_pic=
6783 ;;
6784 *)
6785 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6786 ;;
6787 esac
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6789 $as_echo "$lt_prog_compiler_pic" >&6; }
6790
6791
6792
6793
6794
6795
6796 #
6797 # Check to make sure the PIC flag actually works.
6798 #
6799 if test -n "$lt_prog_compiler_pic"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6801 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6802 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 lt_cv_prog_compiler_pic_works=no
6806 ac_outfile=conftest.$ac_objext
6807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6808 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6809 # Insert the option either (1) after the last *FLAGS variable, or
6810 # (2) before a word containing "conftest.", or (3) at the end.
6811 # Note that $ac_compile itself does not contain backslashes and begins
6812 # with a dollar sign (not a hyphen), so the echo should work correctly.
6813 # The option is referenced via a variable to avoid confusing sed.
6814 lt_compile=`echo "$ac_compile" | $SED \
6815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6817 -e 's:$: $lt_compiler_flag:'`
6818 (eval echo "\"\$as_me:6818: $lt_compile\"" >&5)
6819 (eval "$lt_compile" 2>conftest.err)
6820 ac_status=$?
6821 cat conftest.err >&5
6822 echo "$as_me:6822: \$? = $ac_status" >&5
6823 if (exit $ac_status) && test -s "$ac_outfile"; then
6824 # The compiler can only warn and ignore the option if not recognized
6825 # So say no if there are warnings other than the usual output.
6826 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6829 lt_cv_prog_compiler_pic_works=yes
6830 fi
6831 fi
6832 $RM conftest*
6833
6834 fi
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
6836 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
6837
6838 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6839 case $lt_prog_compiler_pic in
6840 "" | " "*) ;;
6841 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6842 esac
6843 else
6844 lt_prog_compiler_pic=
6845 lt_prog_compiler_can_build_shared=no
6846 fi
6847
6848 fi
6849
6850
6851
6852
6853
6854
6855 #
6856 # Check to make sure the static flag actually works.
6857 #
6858 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6860 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
6861 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 lt_cv_prog_compiler_static_works=no
6865 save_LDFLAGS="$LDFLAGS"
6866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6867 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6869 # The linker can only warn and ignore the option if not recognized
6870 # So say no if there are warnings
6871 if test -s conftest.err; then
6872 # Append any errors to the config.log.
6873 cat conftest.err 1>&5
6874 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6876 if diff conftest.exp conftest.er2 >/dev/null; then
6877 lt_cv_prog_compiler_static_works=yes
6878 fi
6879 else
6880 lt_cv_prog_compiler_static_works=yes
6881 fi
6882 fi
6883 $RM -r conftest*
6884 LDFLAGS="$save_LDFLAGS"
6885
6886 fi
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
6888 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
6889
6890 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
6891 :
6892 else
6893 lt_prog_compiler_static=
6894 fi
6895
6896
6897
6898
6899
6900
6901
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6903 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6904 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 lt_cv_prog_compiler_c_o=no
6908 $RM -r conftest 2>/dev/null
6909 mkdir conftest
6910 cd conftest
6911 mkdir out
6912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6913
6914 lt_compiler_flag="-o out/conftest2.$ac_objext"
6915 # Insert the option either (1) after the last *FLAGS variable, or
6916 # (2) before a word containing "conftest.", or (3) at the end.
6917 # Note that $ac_compile itself does not contain backslashes and begins
6918 # with a dollar sign (not a hyphen), so the echo should work correctly.
6919 lt_compile=`echo "$ac_compile" | $SED \
6920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6922 -e 's:$: $lt_compiler_flag:'`
6923 (eval echo "\"\$as_me:6923: $lt_compile\"" >&5)
6924 (eval "$lt_compile" 2>out/conftest.err)
6925 ac_status=$?
6926 cat out/conftest.err >&5
6927 echo "$as_me:6927: \$? = $ac_status" >&5
6928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6929 then
6930 # The compiler can only warn and ignore the option if not recognized
6931 # So say no if there are warnings
6932 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6935 lt_cv_prog_compiler_c_o=yes
6936 fi
6937 fi
6938 chmod u+w . 2>&5
6939 $RM conftest*
6940 # SGI C++ compiler will create directory out/ii_files/ for
6941 # template instantiation
6942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6943 $RM out/* && rmdir out
6944 cd ..
6945 $RM -r conftest
6946 $RM conftest*
6947
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
6950 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6951
6952
6953
6954
6955
6956
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6958 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6959 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 lt_cv_prog_compiler_c_o=no
6963 $RM -r conftest 2>/dev/null
6964 mkdir conftest
6965 cd conftest
6966 mkdir out
6967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6968
6969 lt_compiler_flag="-o out/conftest2.$ac_objext"
6970 # Insert the option either (1) after the last *FLAGS variable, or
6971 # (2) before a word containing "conftest.", or (3) at the end.
6972 # Note that $ac_compile itself does not contain backslashes and begins
6973 # with a dollar sign (not a hyphen), so the echo should work correctly.
6974 lt_compile=`echo "$ac_compile" | $SED \
6975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6977 -e 's:$: $lt_compiler_flag:'`
6978 (eval echo "\"\$as_me:6978: $lt_compile\"" >&5)
6979 (eval "$lt_compile" 2>out/conftest.err)
6980 ac_status=$?
6981 cat out/conftest.err >&5
6982 echo "$as_me:6982: \$? = $ac_status" >&5
6983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6984 then
6985 # The compiler can only warn and ignore the option if not recognized
6986 # So say no if there are warnings
6987 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6990 lt_cv_prog_compiler_c_o=yes
6991 fi
6992 fi
6993 chmod u+w . 2>&5
6994 $RM conftest*
6995 # SGI C++ compiler will create directory out/ii_files/ for
6996 # template instantiation
6997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6998 $RM out/* && rmdir out
6999 cd ..
7000 $RM -r conftest
7001 $RM conftest*
7002
7003 fi
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7005 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7006
7007
7008
7009
7010 hard_links="nottested"
7011 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7012 # do not overwrite the value of need_locks provided by the user
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7014 $as_echo_n "checking if we can lock with hard links... " >&6; }
7015 hard_links=yes
7016 $RM conftest*
7017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7018 touch conftest.a
7019 ln conftest.a conftest.b 2>&5 || hard_links=no
7020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7022 $as_echo "$hard_links" >&6; }
7023 if test "$hard_links" = no; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7025 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7026 need_locks=warn
7027 fi
7028 else
7029 need_locks=no
7030 fi
7031
7032
7033
7034
7035
7036
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7038 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7039
7040 runpath_var=
7041 allow_undefined_flag=
7042 always_export_symbols=no
7043 archive_cmds=
7044 archive_expsym_cmds=
7045 compiler_needs_object=no
7046 enable_shared_with_static_runtimes=no
7047 export_dynamic_flag_spec=
7048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7049 hardcode_automatic=no
7050 hardcode_direct=no
7051 hardcode_direct_absolute=no
7052 hardcode_libdir_flag_spec=
7053 hardcode_libdir_flag_spec_ld=
7054 hardcode_libdir_separator=
7055 hardcode_minus_L=no
7056 hardcode_shlibpath_var=unsupported
7057 inherit_rpath=no
7058 link_all_deplibs=unknown
7059 module_cmds=
7060 module_expsym_cmds=
7061 old_archive_from_new_cmds=
7062 old_archive_from_expsyms_cmds=
7063 thread_safe_flag_spec=
7064 whole_archive_flag_spec=
7065 # include_expsyms should be a list of space-separated symbols to be *always*
7066 # included in the symbol list
7067 include_expsyms=
7068 # exclude_expsyms can be an extended regexp of symbols to exclude
7069 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7071 # as well as any symbol that contains `d'.
7072 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7074 # platforms (ab)use it in PIC code, but their linkers get confused if
7075 # the symbol is explicitly referenced. Since portable code cannot
7076 # rely on this symbol name, it's probably fine to never include it in
7077 # preloaded symbol tables.
7078 # Exclude shared library initialization/finalization symbols.
7079 extract_expsyms_cmds=
7080
7081 case $host_os in
7082 cygwin* | mingw* | pw32* | cegcc*)
7083 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7084 # When not using gcc, we currently assume that we are using
7085 # Microsoft Visual C++.
7086 if test "$GCC" != yes; then
7087 with_gnu_ld=no
7088 fi
7089 ;;
7090 interix*)
7091 # we just hope/assume this is gcc and not c89 (= MSVC++)
7092 with_gnu_ld=yes
7093 ;;
7094 openbsd*)
7095 with_gnu_ld=no
7096 ;;
7097 esac
7098
7099 ld_shlibs=yes
7100 if test "$with_gnu_ld" = yes; then
7101 # If archive_cmds runs LD, not CC, wlarc should be empty
7102 wlarc='${wl}'
7103
7104 # Set some defaults for GNU ld with shared library support. These
7105 # are reset later if shared libraries are not supported. Putting them
7106 # here allows them to be overridden if necessary.
7107 runpath_var=LD_RUN_PATH
7108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7109 export_dynamic_flag_spec='${wl}--export-dynamic'
7110 # ancient GNU ld didn't support --whole-archive et. al.
7111 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7112 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7113 else
7114 whole_archive_flag_spec=
7115 fi
7116 supports_anon_versioning=no
7117 case `$LD -v 2>&1` in
7118 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7119 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7120 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7121 *\ 2.11.*) ;; # other 2.11 versions
7122 *) supports_anon_versioning=yes ;;
7123 esac
7124
7125 # See if GNU ld supports shared libraries.
7126 case $host_os in
7127 aix[3-9]*)
7128 # On AIX/PPC, the GNU linker is very broken
7129 if test "$host_cpu" != ia64; then
7130 ld_shlibs=no
7131 cat <<_LT_EOF 1>&2
7132
7133 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7134 *** to be unable to reliably create shared libraries on AIX.
7135 *** Therefore, libtool is disabling shared libraries support. If you
7136 *** really care for shared libraries, you may want to modify your PATH
7137 *** so that a non-GNU linker is found, and then restart.
7138
7139 _LT_EOF
7140 fi
7141 ;;
7142
7143 amigaos*)
7144 case $host_cpu in
7145 powerpc)
7146 # see comment about AmigaOS4 .so support
7147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7148 archive_expsym_cmds=''
7149 ;;
7150 m68k)
7151 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)'
7152 hardcode_libdir_flag_spec='-L$libdir'
7153 hardcode_minus_L=yes
7154 ;;
7155 esac
7156 ;;
7157
7158 beos*)
7159 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7160 allow_undefined_flag=unsupported
7161 # Joseph Beckenbach <[email protected]> says some releases of gcc
7162 # support --undefined. This deserves some investigation. FIXME
7163 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7164 else
7165 ld_shlibs=no
7166 fi
7167 ;;
7168
7169 cygwin* | mingw* | pw32* | cegcc*)
7170 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7171 # as there is no search path for DLLs.
7172 hardcode_libdir_flag_spec='-L$libdir'
7173 allow_undefined_flag=unsupported
7174 always_export_symbols=no
7175 enable_shared_with_static_runtimes=yes
7176 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7177
7178 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7180 # If the export-symbols file already is a .def file (1st line
7181 # is EXPORTS), use it as is; otherwise, prepend...
7182 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7183 cp $export_symbols $output_objdir/$soname.def;
7184 else
7185 echo EXPORTS > $output_objdir/$soname.def;
7186 cat $export_symbols >> $output_objdir/$soname.def;
7187 fi~
7188 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7189 else
7190 ld_shlibs=no
7191 fi
7192 ;;
7193
7194 interix[3-9]*)
7195 hardcode_direct=no
7196 hardcode_shlibpath_var=no
7197 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7198 export_dynamic_flag_spec='${wl}-E'
7199 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7200 # Instead, shared libraries are loaded at an image base (0x10000000 by
7201 # default) and relocated if they conflict, which is a slow very memory
7202 # consuming and fragmenting process. To avoid this, we pick a random,
7203 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7204 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7205 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7206 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'
7207 ;;
7208
7209 gnu* | linux* | tpf* | k*bsd*-gnu)
7210 tmp_diet=no
7211 if test "$host_os" = linux-dietlibc; then
7212 case $cc_basename in
7213 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7214 esac
7215 fi
7216 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7217 && test "$tmp_diet" = no
7218 then
7219 tmp_addflag=
7220 tmp_sharedflag='-shared'
7221 case $cc_basename,$host_cpu in
7222 pgcc*) # Portland Group C compiler
7223 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'
7224 tmp_addflag=' $pic_flag'
7225 ;;
7226 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7227 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'
7228 tmp_addflag=' $pic_flag -Mnomain' ;;
7229 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7230 tmp_addflag=' -i_dynamic' ;;
7231 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7232 tmp_addflag=' -i_dynamic -nofor_main' ;;
7233 ifc* | ifort*) # Intel Fortran compiler
7234 tmp_addflag=' -nofor_main' ;;
7235 lf95*) # Lahey Fortran 8.1
7236 whole_archive_flag_spec=
7237 tmp_sharedflag='--shared' ;;
7238 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7239 tmp_sharedflag='-qmkshrobj'
7240 tmp_addflag= ;;
7241 esac
7242 case `$CC -V 2>&1 | sed 5q` in
7243 *Sun\ C*) # Sun C 5.9
7244 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'
7245 compiler_needs_object=yes
7246 tmp_sharedflag='-G' ;;
7247 *Sun\ F*) # Sun Fortran 8.3
7248 tmp_sharedflag='-G' ;;
7249 esac
7250 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7251
7252 if test "x$supports_anon_versioning" = xyes; then
7253 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7254 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7255 echo "local: *; };" >> $output_objdir/$libname.ver~
7256 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7257 fi
7258
7259 case $cc_basename in
7260 xlf*)
7261 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7262 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7263 hardcode_libdir_flag_spec=
7264 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7265 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7266 if test "x$supports_anon_versioning" = xyes; then
7267 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7269 echo "local: *; };" >> $output_objdir/$libname.ver~
7270 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7271 fi
7272 ;;
7273 esac
7274 else
7275 ld_shlibs=no
7276 fi
7277 ;;
7278
7279 netbsd*)
7280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7281 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7282 wlarc=
7283 else
7284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7286 fi
7287 ;;
7288
7289 solaris*)
7290 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7291 ld_shlibs=no
7292 cat <<_LT_EOF 1>&2
7293
7294 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7295 *** create shared libraries on Solaris systems. Therefore, libtool
7296 *** is disabling shared libraries support. We urge you to upgrade GNU
7297 *** binutils to release 2.9.1 or newer. Another option is to modify
7298 *** your PATH or compiler configuration so that the native linker is
7299 *** used, and then restart.
7300
7301 _LT_EOF
7302 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7305 else
7306 ld_shlibs=no
7307 fi
7308 ;;
7309
7310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7311 case `$LD -v 2>&1` in
7312 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7313 ld_shlibs=no
7314 cat <<_LT_EOF 1>&2
7315
7316 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7317 *** reliably create shared libraries on SCO systems. Therefore, libtool
7318 *** is disabling shared libraries support. We urge you to upgrade GNU
7319 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7320 *** your PATH or compiler configuration so that the native linker is
7321 *** used, and then restart.
7322
7323 _LT_EOF
7324 ;;
7325 *)
7326 # For security reasons, it is highly recommended that you always
7327 # use absolute paths for naming shared libraries, and exclude the
7328 # DT_RUNPATH tag from executables and libraries. But doing so
7329 # requires that you compile everything twice, which is a pain.
7330 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7334 else
7335 ld_shlibs=no
7336 fi
7337 ;;
7338 esac
7339 ;;
7340
7341 sunos4*)
7342 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7343 wlarc=
7344 hardcode_direct=yes
7345 hardcode_shlibpath_var=no
7346 ;;
7347
7348 *)
7349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7352 else
7353 ld_shlibs=no
7354 fi
7355 ;;
7356 esac
7357
7358 if test "$ld_shlibs" = no; then
7359 runpath_var=
7360 hardcode_libdir_flag_spec=
7361 export_dynamic_flag_spec=
7362 whole_archive_flag_spec=
7363 fi
7364 else
7365 # PORTME fill in a description of your system's linker (not GNU ld)
7366 case $host_os in
7367 aix3*)
7368 allow_undefined_flag=unsupported
7369 always_export_symbols=yes
7370 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'
7371 # Note: this linker hardcodes the directories in LIBPATH if there
7372 # are no directories specified by -L.
7373 hardcode_minus_L=yes
7374 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7375 # Neither direct hardcoding nor static linking is supported with a
7376 # broken collect2.
7377 hardcode_direct=unsupported
7378 fi
7379 ;;
7380
7381 aix[4-9]*)
7382 if test "$host_cpu" = ia64; then
7383 # On IA64, the linker does run time linking by default, so we don't
7384 # have to do anything special.
7385 aix_use_runtimelinking=no
7386 exp_sym_flag='-Bexport'
7387 no_entry_flag=""
7388 else
7389 # If we're using GNU nm, then we don't want the "-C" option.
7390 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7391 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7392 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'
7393 else
7394 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'
7395 fi
7396 aix_use_runtimelinking=no
7397
7398 # Test if we are trying to use run time linking or normal
7399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7400 # need to do runtime linking.
7401 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7402 for ld_flag in $LDFLAGS; do
7403 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7404 aix_use_runtimelinking=yes
7405 break
7406 fi
7407 done
7408 ;;
7409 esac
7410
7411 exp_sym_flag='-bexport'
7412 no_entry_flag='-bnoentry'
7413 fi
7414
7415 # When large executables or shared objects are built, AIX ld can
7416 # have problems creating the table of contents. If linking a library
7417 # or program results in "error TOC overflow" add -mminimal-toc to
7418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7420
7421 archive_cmds=''
7422 hardcode_direct=yes
7423 hardcode_direct_absolute=yes
7424 hardcode_libdir_separator=':'
7425 link_all_deplibs=yes
7426 file_list_spec='${wl}-f,'
7427
7428 if test "$GCC" = yes; then
7429 case $host_os in aix4.[012]|aix4.[012].*)
7430 # We only want to do this on AIX 4.2 and lower, the check
7431 # below for broken collect2 doesn't work under 4.3+
7432 collect2name=`${CC} -print-prog-name=collect2`
7433 if test -f "$collect2name" &&
7434 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7435 then
7436 # We have reworked collect2
7437 :
7438 else
7439 # We have old collect2
7440 hardcode_direct=unsupported
7441 # It fails to find uninstalled libraries when the uninstalled
7442 # path is not listed in the libpath. Setting hardcode_minus_L
7443 # to unsupported forces relinking
7444 hardcode_minus_L=yes
7445 hardcode_libdir_flag_spec='-L$libdir'
7446 hardcode_libdir_separator=
7447 fi
7448 ;;
7449 esac
7450 shared_flag='-shared'
7451 if test "$aix_use_runtimelinking" = yes; then
7452 shared_flag="$shared_flag "'${wl}-G'
7453 fi
7454 else
7455 # not using gcc
7456 if test "$host_cpu" = ia64; then
7457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7458 # chokes on -Wl,-G. The following line is correct:
7459 shared_flag='-G'
7460 else
7461 if test "$aix_use_runtimelinking" = yes; then
7462 shared_flag='${wl}-G'
7463 else
7464 shared_flag='${wl}-bM:SRE'
7465 fi
7466 fi
7467 fi
7468
7469 export_dynamic_flag_spec='${wl}-bexpall'
7470 # It seems that -bexpall does not export symbols beginning with
7471 # underscore (_), so it is better to generate a list of symbols to export.
7472 always_export_symbols=yes
7473 if test "$aix_use_runtimelinking" = yes; then
7474 # Warning - without using the other runtime loading flags (-brtl),
7475 # -berok will link without error, but may produce a broken library.
7476 allow_undefined_flag='-berok'
7477 # Determine the default libpath from the value encoded in an
7478 # empty executable.
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481
7482 int
7483 main ()
7484 {
7485
7486 ;
7487 return 0;
7488 }
7489 _ACEOF
7490 if ac_fn_c_try_link "$LINENO"; then :
7491
7492 lt_aix_libpath_sed='
7493 /Import File Strings/,/^$/ {
7494 /^0/ {
7495 s/^0 *\(.*\)$/\1/
7496 p
7497 }
7498 }'
7499 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7500 # Check for a 64-bit object if we didn't find anything.
7501 if test -z "$aix_libpath"; then
7502 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7503 fi
7504 fi
7505 rm -f core conftest.err conftest.$ac_objext \
7506 conftest$ac_exeext conftest.$ac_ext
7507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7508
7509 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7510 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"
7511 else
7512 if test "$host_cpu" = ia64; then
7513 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7514 allow_undefined_flag="-z nodefs"
7515 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"
7516 else
7517 # Determine the default libpath from the value encoded in an
7518 # empty executable.
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521
7522 int
7523 main ()
7524 {
7525
7526 ;
7527 return 0;
7528 }
7529 _ACEOF
7530 if ac_fn_c_try_link "$LINENO"; then :
7531
7532 lt_aix_libpath_sed='
7533 /Import File Strings/,/^$/ {
7534 /^0/ {
7535 s/^0 *\(.*\)$/\1/
7536 p
7537 }
7538 }'
7539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7540 # Check for a 64-bit object if we didn't find anything.
7541 if test -z "$aix_libpath"; then
7542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7543 fi
7544 fi
7545 rm -f core conftest.err conftest.$ac_objext \
7546 conftest$ac_exeext conftest.$ac_ext
7547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7548
7549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7550 # Warning - without using the other run time loading flags,
7551 # -berok will link without error, but may produce a broken library.
7552 no_undefined_flag=' ${wl}-bernotok'
7553 allow_undefined_flag=' ${wl}-berok'
7554 # Exported symbols can be pulled into shared objects from archives
7555 whole_archive_flag_spec='$convenience'
7556 archive_cmds_need_lc=yes
7557 # This is similar to how AIX traditionally builds its shared libraries.
7558 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'
7559 fi
7560 fi
7561 ;;
7562
7563 amigaos*)
7564 case $host_cpu in
7565 powerpc)
7566 # see comment about AmigaOS4 .so support
7567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7568 archive_expsym_cmds=''
7569 ;;
7570 m68k)
7571 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)'
7572 hardcode_libdir_flag_spec='-L$libdir'
7573 hardcode_minus_L=yes
7574 ;;
7575 esac
7576 ;;
7577
7578 bsdi[45]*)
7579 export_dynamic_flag_spec=-rdynamic
7580 ;;
7581
7582 cygwin* | mingw* | pw32* | cegcc*)
7583 # When not using gcc, we currently assume that we are using
7584 # Microsoft Visual C++.
7585 # hardcode_libdir_flag_spec is actually meaningless, as there is
7586 # no search path for DLLs.
7587 hardcode_libdir_flag_spec=' '
7588 allow_undefined_flag=unsupported
7589 # Tell ltmain to make .lib files, not .a files.
7590 libext=lib
7591 # Tell ltmain to make .dll files, not .so files.
7592 shrext_cmds=".dll"
7593 # FIXME: Setting linknames here is a bad hack.
7594 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7595 # The linker will automatically build a .lib file if we build a DLL.
7596 old_archive_from_new_cmds='true'
7597 # FIXME: Should let the user specify the lib program.
7598 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7599 fix_srcfile_path='`cygpath -w "$srcfile"`'
7600 enable_shared_with_static_runtimes=yes
7601 ;;
7602
7603 darwin* | rhapsody*)
7604
7605
7606 archive_cmds_need_lc=no
7607 hardcode_direct=no
7608 hardcode_automatic=yes
7609 hardcode_shlibpath_var=unsupported
7610 whole_archive_flag_spec=''
7611 link_all_deplibs=yes
7612 allow_undefined_flag="$_lt_dar_allow_undefined"
7613 case $cc_basename in
7614 ifort*) _lt_dar_can_shared=yes ;;
7615 *) _lt_dar_can_shared=$GCC ;;
7616 esac
7617 if test "$_lt_dar_can_shared" = "yes"; then
7618 output_verbose_link_cmd=echo
7619 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7620 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7621 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}"
7622 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}"
7623
7624 else
7625 ld_shlibs=no
7626 fi
7627
7628 ;;
7629
7630 dgux*)
7631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7632 hardcode_libdir_flag_spec='-L$libdir'
7633 hardcode_shlibpath_var=no
7634 ;;
7635
7636 freebsd1*)
7637 ld_shlibs=no
7638 ;;
7639
7640 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7641 # support. Future versions do this automatically, but an explicit c++rt0.o
7642 # does not break anything, and helps significantly (at the cost of a little
7643 # extra space).
7644 freebsd2.2*)
7645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7646 hardcode_libdir_flag_spec='-R$libdir'
7647 hardcode_direct=yes
7648 hardcode_shlibpath_var=no
7649 ;;
7650
7651 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7652 freebsd2*)
7653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7654 hardcode_direct=yes
7655 hardcode_minus_L=yes
7656 hardcode_shlibpath_var=no
7657 ;;
7658
7659 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7660 freebsd* | dragonfly*)
7661 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7662 hardcode_libdir_flag_spec='-R$libdir'
7663 hardcode_direct=yes
7664 hardcode_shlibpath_var=no
7665 ;;
7666
7667 hpux9*)
7668 if test "$GCC" = yes; then
7669 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'
7670 else
7671 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'
7672 fi
7673 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7674 hardcode_libdir_separator=:
7675 hardcode_direct=yes
7676
7677 # hardcode_minus_L: Not really in the search PATH,
7678 # but as the default location of the library.
7679 hardcode_minus_L=yes
7680 export_dynamic_flag_spec='${wl}-E'
7681 ;;
7682
7683 hpux10*)
7684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7685 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7686 else
7687 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7688 fi
7689 if test "$with_gnu_ld" = no; then
7690 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7691 hardcode_libdir_flag_spec_ld='+b $libdir'
7692 hardcode_libdir_separator=:
7693 hardcode_direct=yes
7694 hardcode_direct_absolute=yes
7695 export_dynamic_flag_spec='${wl}-E'
7696 # hardcode_minus_L: Not really in the search PATH,
7697 # but as the default location of the library.
7698 hardcode_minus_L=yes
7699 fi
7700 ;;
7701
7702 hpux11*)
7703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7704 case $host_cpu in
7705 hppa*64*)
7706 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7707 ;;
7708 ia64*)
7709 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7710 ;;
7711 *)
7712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7713 ;;
7714 esac
7715 else
7716 case $host_cpu in
7717 hppa*64*)
7718 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7719 ;;
7720 ia64*)
7721 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7722 ;;
7723 *)
7724 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7725 ;;
7726 esac
7727 fi
7728 if test "$with_gnu_ld" = no; then
7729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7730 hardcode_libdir_separator=:
7731
7732 case $host_cpu in
7733 hppa*64*|ia64*)
7734 hardcode_direct=no
7735 hardcode_shlibpath_var=no
7736 ;;
7737 *)
7738 hardcode_direct=yes
7739 hardcode_direct_absolute=yes
7740 export_dynamic_flag_spec='${wl}-E'
7741
7742 # hardcode_minus_L: Not really in the search PATH,
7743 # but as the default location of the library.
7744 hardcode_minus_L=yes
7745 ;;
7746 esac
7747 fi
7748 ;;
7749
7750 irix5* | irix6* | nonstopux*)
7751 if test "$GCC" = yes; then
7752 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'
7753 # Try to use the -exported_symbol ld option, if it does not
7754 # work, assume that -exports_file does not work either and
7755 # implicitly export all symbols.
7756 save_LDFLAGS="$LDFLAGS"
7757 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7760 int foo(void) {}
7761 _ACEOF
7762 if ac_fn_c_try_link "$LINENO"; then :
7763 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'
7764
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext \
7767 conftest$ac_exeext conftest.$ac_ext
7768 LDFLAGS="$save_LDFLAGS"
7769 else
7770 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'
7771 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'
7772 fi
7773 archive_cmds_need_lc='no'
7774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7775 hardcode_libdir_separator=:
7776 inherit_rpath=yes
7777 link_all_deplibs=yes
7778 ;;
7779
7780 netbsd*)
7781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7783 else
7784 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7785 fi
7786 hardcode_libdir_flag_spec='-R$libdir'
7787 hardcode_direct=yes
7788 hardcode_shlibpath_var=no
7789 ;;
7790
7791 newsos6)
7792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7793 hardcode_direct=yes
7794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7795 hardcode_libdir_separator=:
7796 hardcode_shlibpath_var=no
7797 ;;
7798
7799 *nto* | *qnx*)
7800 ;;
7801
7802 openbsd*)
7803 if test -f /usr/libexec/ld.so; then
7804 hardcode_direct=yes
7805 hardcode_shlibpath_var=no
7806 hardcode_direct_absolute=yes
7807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7809 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7811 export_dynamic_flag_spec='${wl}-E'
7812 else
7813 case $host_os in
7814 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7816 hardcode_libdir_flag_spec='-R$libdir'
7817 ;;
7818 *)
7819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7821 ;;
7822 esac
7823 fi
7824 else
7825 ld_shlibs=no
7826 fi
7827 ;;
7828
7829 os2*)
7830 hardcode_libdir_flag_spec='-L$libdir'
7831 hardcode_minus_L=yes
7832 allow_undefined_flag=unsupported
7833 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'
7834 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7835 ;;
7836
7837 osf3*)
7838 if test "$GCC" = yes; then
7839 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7840 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'
7841 else
7842 allow_undefined_flag=' -expect_unresolved \*'
7843 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'
7844 fi
7845 archive_cmds_need_lc='no'
7846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7847 hardcode_libdir_separator=:
7848 ;;
7849
7850 osf4* | osf5*) # as osf3* with the addition of -msym flag
7851 if test "$GCC" = yes; then
7852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7853 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'
7854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7855 else
7856 allow_undefined_flag=' -expect_unresolved \*'
7857 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'
7858 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~
7859 $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'
7860
7861 # Both c and cxx compiler support -rpath directly
7862 hardcode_libdir_flag_spec='-rpath $libdir'
7863 fi
7864 archive_cmds_need_lc='no'
7865 hardcode_libdir_separator=:
7866 ;;
7867
7868 solaris*)
7869 no_undefined_flag=' -z defs'
7870 if test "$GCC" = yes; then
7871 wlarc='${wl}'
7872 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7874 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7875 else
7876 case `$CC -V 2>&1` in
7877 *"Compilers 5.0"*)
7878 wlarc=''
7879 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7881 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7882 ;;
7883 *)
7884 wlarc='${wl}'
7885 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7887 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7888 ;;
7889 esac
7890 fi
7891 hardcode_libdir_flag_spec='-R$libdir'
7892 hardcode_shlibpath_var=no
7893 case $host_os in
7894 solaris2.[0-5] | solaris2.[0-5].*) ;;
7895 *)
7896 # The compiler driver will combine and reorder linker options,
7897 # but understands `-z linker_flag'. GCC discards it without `$wl',
7898 # but is careful enough not to reorder.
7899 # Supported since Solaris 2.6 (maybe 2.5.1?)
7900 if test "$GCC" = yes; then
7901 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7902 else
7903 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7904 fi
7905 ;;
7906 esac
7907 link_all_deplibs=yes
7908 ;;
7909
7910 sunos4*)
7911 if test "x$host_vendor" = xsequent; then
7912 # Use $CC to link under sequent, because it throws in some extra .o
7913 # files that make .init and .fini sections work.
7914 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7915 else
7916 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7917 fi
7918 hardcode_libdir_flag_spec='-L$libdir'
7919 hardcode_direct=yes
7920 hardcode_minus_L=yes
7921 hardcode_shlibpath_var=no
7922 ;;
7923
7924 sysv4)
7925 case $host_vendor in
7926 sni)
7927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7928 hardcode_direct=yes # is this really true???
7929 ;;
7930 siemens)
7931 ## LD is ld it makes a PLAMLIB
7932 ## CC just makes a GrossModule.
7933 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7934 reload_cmds='$CC -r -o $output$reload_objs'
7935 hardcode_direct=no
7936 ;;
7937 motorola)
7938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7939 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7940 ;;
7941 esac
7942 runpath_var='LD_RUN_PATH'
7943 hardcode_shlibpath_var=no
7944 ;;
7945
7946 sysv4.3*)
7947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948 hardcode_shlibpath_var=no
7949 export_dynamic_flag_spec='-Bexport'
7950 ;;
7951
7952 sysv4*MP*)
7953 if test -d /usr/nec; then
7954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7955 hardcode_shlibpath_var=no
7956 runpath_var=LD_RUN_PATH
7957 hardcode_runpath_var=yes
7958 ld_shlibs=yes
7959 fi
7960 ;;
7961
7962 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7963 no_undefined_flag='${wl}-z,text'
7964 archive_cmds_need_lc=no
7965 hardcode_shlibpath_var=no
7966 runpath_var='LD_RUN_PATH'
7967
7968 if test "$GCC" = yes; then
7969 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7970 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7971 else
7972 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7973 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7974 fi
7975 ;;
7976
7977 sysv5* | sco3.2v5* | sco5v6*)
7978 # Note: We can NOT use -z defs as we might desire, because we do not
7979 # link with -lc, and that would cause any symbols used from libc to
7980 # always be unresolved, which means just about no library would
7981 # ever link correctly. If we're not using GNU ld we use -z text
7982 # though, which does catch some bad symbols but isn't as heavy-handed
7983 # as -z defs.
7984 no_undefined_flag='${wl}-z,text'
7985 allow_undefined_flag='${wl}-z,nodefs'
7986 archive_cmds_need_lc=no
7987 hardcode_shlibpath_var=no
7988 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7989 hardcode_libdir_separator=':'
7990 link_all_deplibs=yes
7991 export_dynamic_flag_spec='${wl}-Bexport'
7992 runpath_var='LD_RUN_PATH'
7993
7994 if test "$GCC" = yes; then
7995 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7996 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7997 else
7998 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7999 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8000 fi
8001 ;;
8002
8003 uts4*)
8004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8005 hardcode_libdir_flag_spec='-L$libdir'
8006 hardcode_shlibpath_var=no
8007 ;;
8008
8009 *)
8010 ld_shlibs=no
8011 ;;
8012 esac
8013
8014 if test x$host_vendor = xsni; then
8015 case $host in
8016 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8017 export_dynamic_flag_spec='${wl}-Blargedynsym'
8018 ;;
8019 esac
8020 fi
8021 fi
8022
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8024 $as_echo "$ld_shlibs" >&6; }
8025 test "$ld_shlibs" = no && can_build_shared=no
8026
8027 with_gnu_ld=$with_gnu_ld
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043 #
8044 # Do we need to explicitly link libc?
8045 #
8046 case "x$archive_cmds_need_lc" in
8047 x|xyes)
8048 # Assume -lc should be added
8049 archive_cmds_need_lc=yes
8050
8051 if test "$enable_shared" = yes && test "$GCC" = yes; then
8052 case $archive_cmds in
8053 *'~'*)
8054 # FIXME: we may have to deal with multi-command sequences.
8055 ;;
8056 '$CC '*)
8057 # Test whether the compiler implicitly links with -lc since on some
8058 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8059 # to ld, don't add -lc before -lgcc.
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8061 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8062 $RM conftest*
8063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8064
8065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8066 (eval $ac_compile) 2>&5
8067 ac_status=$?
8068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8069 test $ac_status = 0; } 2>conftest.err; then
8070 soname=conftest
8071 lib=conftest
8072 libobjs=conftest.$ac_objext
8073 deplibs=
8074 wl=$lt_prog_compiler_wl
8075 pic_flag=$lt_prog_compiler_pic
8076 compiler_flags=-v
8077 linker_flags=-v
8078 verstring=
8079 output_objdir=.
8080 libname=conftest
8081 lt_save_allow_undefined_flag=$allow_undefined_flag
8082 allow_undefined_flag=
8083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8084 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8085 ac_status=$?
8086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8087 test $ac_status = 0; }
8088 then
8089 archive_cmds_need_lc=no
8090 else
8091 archive_cmds_need_lc=yes
8092 fi
8093 allow_undefined_flag=$lt_save_allow_undefined_flag
8094 else
8095 cat conftest.err 1>&5
8096 fi
8097 $RM conftest*
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8099 $as_echo "$archive_cmds_need_lc" >&6; }
8100 ;;
8101 esac
8102 fi
8103 ;;
8104 esac
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8263 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8264
8265 if test "$GCC" = yes; then
8266 case $host_os in
8267 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8268 *) lt_awk_arg="/^libraries:/" ;;
8269 esac
8270 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8271 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8272 # if the path contains ";" then we assume it to be the separator
8273 # otherwise default to the standard path separator (i.e. ":") - it is
8274 # assumed that no part of a normal pathname contains ";" but that should
8275 # okay in the real world where ";" in dirpaths is itself problematic.
8276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8277 else
8278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8279 fi
8280 # Ok, now we have the path, separated by spaces, we can step through it
8281 # and add multilib dir if necessary.
8282 lt_tmp_lt_search_path_spec=
8283 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8284 for lt_sys_path in $lt_search_path_spec; do
8285 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8286 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8287 else
8288 test -d "$lt_sys_path" && \
8289 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8290 fi
8291 done
8292 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8293 BEGIN {RS=" "; FS="/|\n";} {
8294 lt_foo="";
8295 lt_count=0;
8296 for (lt_i = NF; lt_i > 0; lt_i--) {
8297 if ($lt_i != "" && $lt_i != ".") {
8298 if ($lt_i == "..") {
8299 lt_count++;
8300 } else {
8301 if (lt_count == 0) {
8302 lt_foo="/" $lt_i lt_foo;
8303 } else {
8304 lt_count--;
8305 }
8306 }
8307 }
8308 }
8309 if (lt_foo != "") { lt_freq[lt_foo]++; }
8310 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8311 }'`
8312 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8313 else
8314 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8315 fi
8316 library_names_spec=
8317 libname_spec='lib$name'
8318 soname_spec=
8319 shrext_cmds=".so"
8320 postinstall_cmds=
8321 postuninstall_cmds=
8322 finish_cmds=
8323 finish_eval=
8324 shlibpath_var=
8325 shlibpath_overrides_runpath=unknown
8326 version_type=none
8327 dynamic_linker="$host_os ld.so"
8328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8329 need_lib_prefix=unknown
8330 hardcode_into_libs=no
8331
8332 # when you set need_version to no, make sure it does not cause -set_version
8333 # flags to be left without arguments
8334 need_version=unknown
8335
8336 case $host_os in
8337 aix3*)
8338 version_type=linux
8339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8340 shlibpath_var=LIBPATH
8341
8342 # AIX 3 has no versioning support, so we append a major version to the name.
8343 soname_spec='${libname}${release}${shared_ext}$major'
8344 ;;
8345
8346 aix[4-9]*)
8347 version_type=linux
8348 need_lib_prefix=no
8349 need_version=no
8350 hardcode_into_libs=yes
8351 if test "$host_cpu" = ia64; then
8352 # AIX 5 supports IA64
8353 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8354 shlibpath_var=LD_LIBRARY_PATH
8355 else
8356 # With GCC up to 2.95.x, collect2 would create an import file
8357 # for dependence libraries. The import file would start with
8358 # the line `#! .'. This would cause the generated library to
8359 # depend on `.', always an invalid library. This was fixed in
8360 # development snapshots of GCC prior to 3.0.
8361 case $host_os in
8362 aix4 | aix4.[01] | aix4.[01].*)
8363 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8364 echo ' yes '
8365 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8366 :
8367 else
8368 can_build_shared=no
8369 fi
8370 ;;
8371 esac
8372 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8373 # soname into executable. Probably we can add versioning support to
8374 # collect2, so additional links can be useful in future.
8375 if test "$aix_use_runtimelinking" = yes; then
8376 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8377 # instead of lib<name>.a to let people know that these are not
8378 # typical AIX shared libraries.
8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8380 else
8381 # We preserve .a as extension for shared libraries through AIX4.2
8382 # and later when we are not doing run time linking.
8383 library_names_spec='${libname}${release}.a $libname.a'
8384 soname_spec='${libname}${release}${shared_ext}$major'
8385 fi
8386 shlibpath_var=LIBPATH
8387 fi
8388 ;;
8389
8390 amigaos*)
8391 case $host_cpu in
8392 powerpc)
8393 # Since July 2007 AmigaOS4 officially supports .so libraries.
8394 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8396 ;;
8397 m68k)
8398 library_names_spec='$libname.ixlibrary $libname.a'
8399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8400 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'
8401 ;;
8402 esac
8403 ;;
8404
8405 beos*)
8406 library_names_spec='${libname}${shared_ext}'
8407 dynamic_linker="$host_os ld.so"
8408 shlibpath_var=LIBRARY_PATH
8409 ;;
8410
8411 bsdi[45]*)
8412 version_type=linux
8413 need_version=no
8414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8415 soname_spec='${libname}${release}${shared_ext}$major'
8416 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8417 shlibpath_var=LD_LIBRARY_PATH
8418 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8419 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8420 # the default ld.so.conf also contains /usr/contrib/lib and
8421 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8422 # libtool to hard-code these into programs
8423 ;;
8424
8425 cygwin* | mingw* | pw32* | cegcc*)
8426 version_type=windows
8427 shrext_cmds=".dll"
8428 need_version=no
8429 need_lib_prefix=no
8430
8431 case $GCC,$host_os in
8432 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8433 library_names_spec='$libname.dll.a'
8434 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8435 postinstall_cmds='base_file=`basename \${file}`~
8436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8437 dldir=$destdir/`dirname \$dlpath`~
8438 test -d \$dldir || mkdir -p \$dldir~
8439 $install_prog $dir/$dlname \$dldir/$dlname~
8440 chmod a+x \$dldir/$dlname~
8441 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8442 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8443 fi'
8444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8445 dlpath=$dir/\$dldll~
8446 $RM \$dlpath'
8447 shlibpath_overrides_runpath=yes
8448
8449 case $host_os in
8450 cygwin*)
8451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8453 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8454 ;;
8455 mingw* | cegcc*)
8456 # MinGW DLLs use traditional 'lib' prefix
8457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8458 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8459 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8460 # It is most probably a Windows format PATH printed by
8461 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8462 # path with ; separators, and with drive letters. We can handle the
8463 # drive letters (cygwin fileutils understands them), so leave them,
8464 # especially as we might pass files found there to a mingw objdump,
8465 # which wouldn't understand a cygwinified path. Ahh.
8466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8467 else
8468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8469 fi
8470 ;;
8471 pw32*)
8472 # pw32 DLLs use 'pw' prefix rather than 'lib'
8473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8474 ;;
8475 esac
8476 ;;
8477
8478 *)
8479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8480 ;;
8481 esac
8482 dynamic_linker='Win32 ld.exe'
8483 # FIXME: first we should search . and the directory the executable is in
8484 shlibpath_var=PATH
8485 ;;
8486
8487 darwin* | rhapsody*)
8488 dynamic_linker="$host_os dyld"
8489 version_type=darwin
8490 need_lib_prefix=no
8491 need_version=no
8492 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8493 soname_spec='${libname}${release}${major}$shared_ext'
8494 shlibpath_overrides_runpath=yes
8495 shlibpath_var=DYLD_LIBRARY_PATH
8496 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8497
8498 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8499 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8500 ;;
8501
8502 dgux*)
8503 version_type=linux
8504 need_lib_prefix=no
8505 need_version=no
8506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8507 soname_spec='${libname}${release}${shared_ext}$major'
8508 shlibpath_var=LD_LIBRARY_PATH
8509 ;;
8510
8511 freebsd1*)
8512 dynamic_linker=no
8513 ;;
8514
8515 freebsd* | dragonfly*)
8516 # DragonFly does not have aout. When/if they implement a new
8517 # versioning mechanism, adjust this.
8518 if test -x /usr/bin/objformat; then
8519 objformat=`/usr/bin/objformat`
8520 else
8521 case $host_os in
8522 freebsd[123]*) objformat=aout ;;
8523 *) objformat=elf ;;
8524 esac
8525 fi
8526 version_type=freebsd-$objformat
8527 case $version_type in
8528 freebsd-elf*)
8529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8530 need_version=no
8531 need_lib_prefix=no
8532 ;;
8533 freebsd-*)
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8535 need_version=yes
8536 ;;
8537 esac
8538 shlibpath_var=LD_LIBRARY_PATH
8539 case $host_os in
8540 freebsd2*)
8541 shlibpath_overrides_runpath=yes
8542 ;;
8543 freebsd3.[01]* | freebsdelf3.[01]*)
8544 shlibpath_overrides_runpath=yes
8545 hardcode_into_libs=yes
8546 ;;
8547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8549 shlibpath_overrides_runpath=no
8550 hardcode_into_libs=yes
8551 ;;
8552 *) # from 4.6 on, and DragonFly
8553 shlibpath_overrides_runpath=yes
8554 hardcode_into_libs=yes
8555 ;;
8556 esac
8557 ;;
8558
8559 gnu*)
8560 version_type=linux
8561 need_lib_prefix=no
8562 need_version=no
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8564 soname_spec='${libname}${release}${shared_ext}$major'
8565 shlibpath_var=LD_LIBRARY_PATH
8566 hardcode_into_libs=yes
8567 ;;
8568
8569 hpux9* | hpux10* | hpux11*)
8570 # Give a soname corresponding to the major version so that dld.sl refuses to
8571 # link against other versions.
8572 version_type=sunos
8573 need_lib_prefix=no
8574 need_version=no
8575 case $host_cpu in
8576 ia64*)
8577 shrext_cmds='.so'
8578 hardcode_into_libs=yes
8579 dynamic_linker="$host_os dld.so"
8580 shlibpath_var=LD_LIBRARY_PATH
8581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8583 soname_spec='${libname}${release}${shared_ext}$major'
8584 if test "X$HPUX_IA64_MODE" = X32; then
8585 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8586 else
8587 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8588 fi
8589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8590 ;;
8591 hppa*64*)
8592 shrext_cmds='.sl'
8593 hardcode_into_libs=yes
8594 dynamic_linker="$host_os dld.sl"
8595 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8598 soname_spec='${libname}${release}${shared_ext}$major'
8599 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8601 ;;
8602 *)
8603 shrext_cmds='.sl'
8604 dynamic_linker="$host_os dld.sl"
8605 shlibpath_var=SHLIB_PATH
8606 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 soname_spec='${libname}${release}${shared_ext}$major'
8609 ;;
8610 esac
8611 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8612 postinstall_cmds='chmod 555 $lib'
8613 ;;
8614
8615 interix[3-9]*)
8616 version_type=linux
8617 need_lib_prefix=no
8618 need_version=no
8619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8620 soname_spec='${libname}${release}${shared_ext}$major'
8621 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8622 shlibpath_var=LD_LIBRARY_PATH
8623 shlibpath_overrides_runpath=no
8624 hardcode_into_libs=yes
8625 ;;
8626
8627 irix5* | irix6* | nonstopux*)
8628 case $host_os in
8629 nonstopux*) version_type=nonstopux ;;
8630 *)
8631 if test "$lt_cv_prog_gnu_ld" = yes; then
8632 version_type=linux
8633 else
8634 version_type=irix
8635 fi ;;
8636 esac
8637 need_lib_prefix=no
8638 need_version=no
8639 soname_spec='${libname}${release}${shared_ext}$major'
8640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8641 case $host_os in
8642 irix5* | nonstopux*)
8643 libsuff= shlibsuff=
8644 ;;
8645 *)
8646 case $LD in # libtool.m4 will add one of these switches to LD
8647 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8648 libsuff= shlibsuff= libmagic=32-bit;;
8649 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8650 libsuff=32 shlibsuff=N32 libmagic=N32;;
8651 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8652 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8653 *) libsuff= shlibsuff= libmagic=never-match;;
8654 esac
8655 ;;
8656 esac
8657 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8658 shlibpath_overrides_runpath=no
8659 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8660 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8661 hardcode_into_libs=yes
8662 ;;
8663
8664 # No shared lib support for Linux oldld, aout, or coff.
8665 linux*oldld* | linux*aout* | linux*coff*)
8666 dynamic_linker=no
8667 ;;
8668
8669 # This must be Linux ELF.
8670 linux* | k*bsd*-gnu)
8671 version_type=linux
8672 need_lib_prefix=no
8673 need_version=no
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8675 soname_spec='${libname}${release}${shared_ext}$major'
8676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8677 shlibpath_var=LD_LIBRARY_PATH
8678 shlibpath_overrides_runpath=no
8679 # Some binutils ld are patched to set DT_RUNPATH
8680 save_LDFLAGS=$LDFLAGS
8681 save_libdir=$libdir
8682 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8683 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8686
8687 int
8688 main ()
8689 {
8690
8691 ;
8692 return 0;
8693 }
8694 _ACEOF
8695 if ac_fn_c_try_link "$LINENO"; then :
8696 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8697 shlibpath_overrides_runpath=yes
8698 fi
8699 fi
8700 rm -f core conftest.err conftest.$ac_objext \
8701 conftest$ac_exeext conftest.$ac_ext
8702 LDFLAGS=$save_LDFLAGS
8703 libdir=$save_libdir
8704
8705 # This implies no fast_install, which is unacceptable.
8706 # Some rework will be needed to allow for fast_install
8707 # before this can be enabled.
8708 hardcode_into_libs=yes
8709
8710 # Add ABI-specific directories to the system library path.
8711 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
8712
8713 # Append ld.so.conf contents to the search path
8714 if test -f /etc/ld.so.conf; then
8715 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' ' '`
8716 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
8717 fi
8718
8719 # We used to test for /lib/ld.so.1 and disable shared libraries on
8720 # powerpc, because MkLinux only supported shared libraries with the
8721 # GNU dynamic linker. Since this was broken with cross compilers,
8722 # most powerpc-linux boxes support dynamic linking these days and
8723 # people can always --disable-shared, the test was removed, and we
8724 # assume the GNU/Linux dynamic linker is in use.
8725 dynamic_linker='GNU/Linux ld.so'
8726 ;;
8727
8728 netbsd*)
8729 version_type=sunos
8730 need_lib_prefix=no
8731 need_version=no
8732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8735 dynamic_linker='NetBSD (a.out) ld.so'
8736 else
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8738 soname_spec='${libname}${release}${shared_ext}$major'
8739 dynamic_linker='NetBSD ld.elf_so'
8740 fi
8741 shlibpath_var=LD_LIBRARY_PATH
8742 shlibpath_overrides_runpath=yes
8743 hardcode_into_libs=yes
8744 ;;
8745
8746 newsos6)
8747 version_type=linux
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8749 shlibpath_var=LD_LIBRARY_PATH
8750 shlibpath_overrides_runpath=yes
8751 ;;
8752
8753 *nto* | *qnx*)
8754 version_type=qnx
8755 need_lib_prefix=no
8756 need_version=no
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 soname_spec='${libname}${release}${shared_ext}$major'
8759 shlibpath_var=LD_LIBRARY_PATH
8760 shlibpath_overrides_runpath=no
8761 hardcode_into_libs=yes
8762 dynamic_linker='ldqnx.so'
8763 ;;
8764
8765 openbsd*)
8766 version_type=sunos
8767 sys_lib_dlsearch_path_spec="/usr/lib"
8768 need_lib_prefix=no
8769 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8770 case $host_os in
8771 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8772 *) need_version=no ;;
8773 esac
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8776 shlibpath_var=LD_LIBRARY_PATH
8777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8778 case $host_os in
8779 openbsd2.[89] | openbsd2.[89].*)
8780 shlibpath_overrides_runpath=no
8781 ;;
8782 *)
8783 shlibpath_overrides_runpath=yes
8784 ;;
8785 esac
8786 else
8787 shlibpath_overrides_runpath=yes
8788 fi
8789 ;;
8790
8791 os2*)
8792 libname_spec='$name'
8793 shrext_cmds=".dll"
8794 need_lib_prefix=no
8795 library_names_spec='$libname${shared_ext} $libname.a'
8796 dynamic_linker='OS/2 ld.exe'
8797 shlibpath_var=LIBPATH
8798 ;;
8799
8800 osf3* | osf4* | osf5*)
8801 version_type=osf
8802 need_lib_prefix=no
8803 need_version=no
8804 soname_spec='${libname}${release}${shared_ext}$major'
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8806 shlibpath_var=LD_LIBRARY_PATH
8807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8808 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8809 ;;
8810
8811 rdos*)
8812 dynamic_linker=no
8813 ;;
8814
8815 solaris*)
8816 version_type=linux
8817 need_lib_prefix=no
8818 need_version=no
8819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820 soname_spec='${libname}${release}${shared_ext}$major'
8821 shlibpath_var=LD_LIBRARY_PATH
8822 shlibpath_overrides_runpath=yes
8823 hardcode_into_libs=yes
8824 # ldd complains unless libraries are executable
8825 postinstall_cmds='chmod +x $lib'
8826 ;;
8827
8828 sunos4*)
8829 version_type=sunos
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8832 shlibpath_var=LD_LIBRARY_PATH
8833 shlibpath_overrides_runpath=yes
8834 if test "$with_gnu_ld" = yes; then
8835 need_lib_prefix=no
8836 fi
8837 need_version=yes
8838 ;;
8839
8840 sysv4 | sysv4.3*)
8841 version_type=linux
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843 soname_spec='${libname}${release}${shared_ext}$major'
8844 shlibpath_var=LD_LIBRARY_PATH
8845 case $host_vendor in
8846 sni)
8847 shlibpath_overrides_runpath=no
8848 need_lib_prefix=no
8849 runpath_var=LD_RUN_PATH
8850 ;;
8851 siemens)
8852 need_lib_prefix=no
8853 ;;
8854 motorola)
8855 need_lib_prefix=no
8856 need_version=no
8857 shlibpath_overrides_runpath=no
8858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8859 ;;
8860 esac
8861 ;;
8862
8863 sysv4*MP*)
8864 if test -d /usr/nec ;then
8865 version_type=linux
8866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8867 soname_spec='$libname${shared_ext}.$major'
8868 shlibpath_var=LD_LIBRARY_PATH
8869 fi
8870 ;;
8871
8872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8873 version_type=freebsd-elf
8874 need_lib_prefix=no
8875 need_version=no
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 shlibpath_var=LD_LIBRARY_PATH
8879 shlibpath_overrides_runpath=yes
8880 hardcode_into_libs=yes
8881 if test "$with_gnu_ld" = yes; then
8882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8883 else
8884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8885 case $host_os in
8886 sco3.2v5*)
8887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8888 ;;
8889 esac
8890 fi
8891 sys_lib_dlsearch_path_spec='/usr/lib'
8892 ;;
8893
8894 tpf*)
8895 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8896 version_type=linux
8897 need_lib_prefix=no
8898 need_version=no
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 shlibpath_var=LD_LIBRARY_PATH
8901 shlibpath_overrides_runpath=no
8902 hardcode_into_libs=yes
8903 ;;
8904
8905 uts4*)
8906 version_type=linux
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 ;;
8911
8912 *)
8913 dynamic_linker=no
8914 ;;
8915 esac
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8917 $as_echo "$dynamic_linker" >&6; }
8918 test "$dynamic_linker" = no && can_build_shared=no
8919
8920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8921 if test "$GCC" = yes; then
8922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8923 fi
8924
8925 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8926 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8927 fi
8928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
8929 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8930 fi
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9019 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9020 hardcode_action=
9021 if test -n "$hardcode_libdir_flag_spec" ||
9022 test -n "$runpath_var" ||
9023 test "X$hardcode_automatic" = "Xyes" ; then
9024
9025 # We can hardcode non-existent directories.
9026 if test "$hardcode_direct" != no &&
9027 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9028 # have to relink, otherwise we might link with an installed library
9029 # when we should be linking with a yet-to-be-installed one
9030 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9031 test "$hardcode_minus_L" != no; then
9032 # Linking always hardcodes the temporary library directory.
9033 hardcode_action=relink
9034 else
9035 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9036 hardcode_action=immediate
9037 fi
9038 else
9039 # We cannot hardcode anything, or else we can only hardcode existing
9040 # directories.
9041 hardcode_action=unsupported
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9044 $as_echo "$hardcode_action" >&6; }
9045
9046 if test "$hardcode_action" = relink ||
9047 test "$inherit_rpath" = yes; then
9048 # Fast installation is not supported
9049 enable_fast_install=no
9050 elif test "$shlibpath_overrides_runpath" = yes ||
9051 test "$enable_shared" = no; then
9052 # Fast installation is not necessary
9053 enable_fast_install=needless
9054 fi
9055
9056
9057
9058
9059
9060
9061 if test "x$enable_dlopen" != xyes; then
9062 enable_dlopen=unknown
9063 enable_dlopen_self=unknown
9064 enable_dlopen_self_static=unknown
9065 else
9066 lt_cv_dlopen=no
9067 lt_cv_dlopen_libs=
9068
9069 case $host_os in
9070 beos*)
9071 lt_cv_dlopen="load_add_on"
9072 lt_cv_dlopen_libs=
9073 lt_cv_dlopen_self=yes
9074 ;;
9075
9076 mingw* | pw32* | cegcc*)
9077 lt_cv_dlopen="LoadLibrary"
9078 lt_cv_dlopen_libs=
9079 ;;
9080
9081 cygwin*)
9082 lt_cv_dlopen="dlopen"
9083 lt_cv_dlopen_libs=
9084 ;;
9085
9086 darwin*)
9087 # if libdl is installed we need to link against it
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9089 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9090 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 ac_check_lib_save_LIBS=$LIBS
9094 LIBS="-ldl $LIBS"
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097
9098 /* Override any GCC internal prototype to avoid an error.
9099 Use char because int might match the return type of a GCC
9100 builtin and then its argument prototype would still apply. */
9101 #ifdef __cplusplus
9102 extern "C"
9103 #endif
9104 char dlopen ();
9105 int
9106 main ()
9107 {
9108 return dlopen ();
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_link "$LINENO"; then :
9114 ac_cv_lib_dl_dlopen=yes
9115 else
9116 ac_cv_lib_dl_dlopen=no
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 LIBS=$ac_check_lib_save_LIBS
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9123 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9124 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9126 else
9127
9128 lt_cv_dlopen="dyld"
9129 lt_cv_dlopen_libs=
9130 lt_cv_dlopen_self=yes
9131
9132 fi
9133
9134 ;;
9135
9136 *)
9137 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9138 if test "x$ac_cv_func_shl_load" = x""yes; then :
9139 lt_cv_dlopen="shl_load"
9140 else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9142 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9143 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 ac_check_lib_save_LIBS=$LIBS
9147 LIBS="-ldld $LIBS"
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150
9151 /* Override any GCC internal prototype to avoid an error.
9152 Use char because int might match the return type of a GCC
9153 builtin and then its argument prototype would still apply. */
9154 #ifdef __cplusplus
9155 extern "C"
9156 #endif
9157 char shl_load ();
9158 int
9159 main ()
9160 {
9161 return shl_load ();
9162 ;
9163 return 0;
9164 }
9165 _ACEOF
9166 if ac_fn_c_try_link "$LINENO"; then :
9167 ac_cv_lib_dld_shl_load=yes
9168 else
9169 ac_cv_lib_dld_shl_load=no
9170 fi
9171 rm -f core conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
9173 LIBS=$ac_check_lib_save_LIBS
9174 fi
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9176 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9177 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9178 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9179 else
9180 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9181 if test "x$ac_cv_func_dlopen" = x""yes; then :
9182 lt_cv_dlopen="dlopen"
9183 else
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9185 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9186 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 ac_check_lib_save_LIBS=$LIBS
9190 LIBS="-ldl $LIBS"
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193
9194 /* Override any GCC internal prototype to avoid an error.
9195 Use char because int might match the return type of a GCC
9196 builtin and then its argument prototype would still apply. */
9197 #ifdef __cplusplus
9198 extern "C"
9199 #endif
9200 char dlopen ();
9201 int
9202 main ()
9203 {
9204 return dlopen ();
9205 ;
9206 return 0;
9207 }
9208 _ACEOF
9209 if ac_fn_c_try_link "$LINENO"; then :
9210 ac_cv_lib_dl_dlopen=yes
9211 else
9212 ac_cv_lib_dl_dlopen=no
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9216 LIBS=$ac_check_lib_save_LIBS
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9219 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9220 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9221 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9222 else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9224 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9225 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 ac_check_lib_save_LIBS=$LIBS
9229 LIBS="-lsvld $LIBS"
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232
9233 /* Override any GCC internal prototype to avoid an error.
9234 Use char because int might match the return type of a GCC
9235 builtin and then its argument prototype would still apply. */
9236 #ifdef __cplusplus
9237 extern "C"
9238 #endif
9239 char dlopen ();
9240 int
9241 main ()
9242 {
9243 return dlopen ();
9244 ;
9245 return 0;
9246 }
9247 _ACEOF
9248 if ac_fn_c_try_link "$LINENO"; then :
9249 ac_cv_lib_svld_dlopen=yes
9250 else
9251 ac_cv_lib_svld_dlopen=no
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
9255 LIBS=$ac_check_lib_save_LIBS
9256 fi
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9258 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9259 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9261 else
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9263 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9264 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 ac_check_lib_save_LIBS=$LIBS
9268 LIBS="-ldld $LIBS"
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271
9272 /* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 char dld_link ();
9279 int
9280 main ()
9281 {
9282 return dld_link ();
9283 ;
9284 return 0;
9285 }
9286 _ACEOF
9287 if ac_fn_c_try_link "$LINENO"; then :
9288 ac_cv_lib_dld_dld_link=yes
9289 else
9290 ac_cv_lib_dld_dld_link=no
9291 fi
9292 rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294 LIBS=$ac_check_lib_save_LIBS
9295 fi
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9297 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9298 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9299 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9300 fi
9301
9302
9303 fi
9304
9305
9306 fi
9307
9308
9309 fi
9310
9311
9312 fi
9313
9314
9315 fi
9316
9317 ;;
9318 esac
9319
9320 if test "x$lt_cv_dlopen" != xno; then
9321 enable_dlopen=yes
9322 else
9323 enable_dlopen=no
9324 fi
9325
9326 case $lt_cv_dlopen in
9327 dlopen)
9328 save_CPPFLAGS="$CPPFLAGS"
9329 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9330
9331 save_LDFLAGS="$LDFLAGS"
9332 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9333
9334 save_LIBS="$LIBS"
9335 LIBS="$lt_cv_dlopen_libs $LIBS"
9336
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9338 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9339 if test "${lt_cv_dlopen_self+set}" = set; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 if test "$cross_compiling" = yes; then :
9343 lt_cv_dlopen_self=cross
9344 else
9345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9346 lt_status=$lt_dlunknown
9347 cat > conftest.$ac_ext <<_LT_EOF
9348 #line 9348 "configure"
9349 #include "confdefs.h"
9350
9351 #if HAVE_DLFCN_H
9352 #include <dlfcn.h>
9353 #endif
9354
9355 #include <stdio.h>
9356
9357 #ifdef RTLD_GLOBAL
9358 # define LT_DLGLOBAL RTLD_GLOBAL
9359 #else
9360 # ifdef DL_GLOBAL
9361 # define LT_DLGLOBAL DL_GLOBAL
9362 # else
9363 # define LT_DLGLOBAL 0
9364 # endif
9365 #endif
9366
9367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9368 find out it does not work in some platform. */
9369 #ifndef LT_DLLAZY_OR_NOW
9370 # ifdef RTLD_LAZY
9371 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9372 # else
9373 # ifdef DL_LAZY
9374 # define LT_DLLAZY_OR_NOW DL_LAZY
9375 # else
9376 # ifdef RTLD_NOW
9377 # define LT_DLLAZY_OR_NOW RTLD_NOW
9378 # else
9379 # ifdef DL_NOW
9380 # define LT_DLLAZY_OR_NOW DL_NOW
9381 # else
9382 # define LT_DLLAZY_OR_NOW 0
9383 # endif
9384 # endif
9385 # endif
9386 # endif
9387 #endif
9388
9389 void fnord() { int i=42;}
9390 int main ()
9391 {
9392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9393 int status = $lt_dlunknown;
9394
9395 if (self)
9396 {
9397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9398 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9399 /* dlclose (self); */
9400 }
9401 else
9402 puts (dlerror ());
9403
9404 return status;
9405 }
9406 _LT_EOF
9407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9408 (eval $ac_link) 2>&5
9409 ac_status=$?
9410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9411 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9412 (./conftest; exit; ) >&5 2>/dev/null
9413 lt_status=$?
9414 case x$lt_status in
9415 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9416 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9417 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9418 esac
9419 else :
9420 # compilation failed
9421 lt_cv_dlopen_self=no
9422 fi
9423 fi
9424 rm -fr conftest*
9425
9426
9427 fi
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9429 $as_echo "$lt_cv_dlopen_self" >&6; }
9430
9431 if test "x$lt_cv_dlopen_self" = xyes; then
9432 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9434 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9435 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 if test "$cross_compiling" = yes; then :
9439 lt_cv_dlopen_self_static=cross
9440 else
9441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9442 lt_status=$lt_dlunknown
9443 cat > conftest.$ac_ext <<_LT_EOF
9444 #line 9444 "configure"
9445 #include "confdefs.h"
9446
9447 #if HAVE_DLFCN_H
9448 #include <dlfcn.h>
9449 #endif
9450
9451 #include <stdio.h>
9452
9453 #ifdef RTLD_GLOBAL
9454 # define LT_DLGLOBAL RTLD_GLOBAL
9455 #else
9456 # ifdef DL_GLOBAL
9457 # define LT_DLGLOBAL DL_GLOBAL
9458 # else
9459 # define LT_DLGLOBAL 0
9460 # endif
9461 #endif
9462
9463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9464 find out it does not work in some platform. */
9465 #ifndef LT_DLLAZY_OR_NOW
9466 # ifdef RTLD_LAZY
9467 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9468 # else
9469 # ifdef DL_LAZY
9470 # define LT_DLLAZY_OR_NOW DL_LAZY
9471 # else
9472 # ifdef RTLD_NOW
9473 # define LT_DLLAZY_OR_NOW RTLD_NOW
9474 # else
9475 # ifdef DL_NOW
9476 # define LT_DLLAZY_OR_NOW DL_NOW
9477 # else
9478 # define LT_DLLAZY_OR_NOW 0
9479 # endif
9480 # endif
9481 # endif
9482 # endif
9483 #endif
9484
9485 void fnord() { int i=42;}
9486 int main ()
9487 {
9488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9489 int status = $lt_dlunknown;
9490
9491 if (self)
9492 {
9493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9494 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9495 /* dlclose (self); */
9496 }
9497 else
9498 puts (dlerror ());
9499
9500 return status;
9501 }
9502 _LT_EOF
9503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9504 (eval $ac_link) 2>&5
9505 ac_status=$?
9506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9507 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9508 (./conftest; exit; ) >&5 2>/dev/null
9509 lt_status=$?
9510 case x$lt_status in
9511 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9512 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9513 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9514 esac
9515 else :
9516 # compilation failed
9517 lt_cv_dlopen_self_static=no
9518 fi
9519 fi
9520 rm -fr conftest*
9521
9522
9523 fi
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9525 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9526 fi
9527
9528 CPPFLAGS="$save_CPPFLAGS"
9529 LDFLAGS="$save_LDFLAGS"
9530 LIBS="$save_LIBS"
9531 ;;
9532 esac
9533
9534 case $lt_cv_dlopen_self in
9535 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9536 *) enable_dlopen_self=unknown ;;
9537 esac
9538
9539 case $lt_cv_dlopen_self_static in
9540 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9541 *) enable_dlopen_self_static=unknown ;;
9542 esac
9543 fi
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561 striplib=
9562 old_striplib=
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9564 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9565 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9566 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9567 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9569 $as_echo "yes" >&6; }
9570 else
9571 # FIXME - insert some real tests, host_os isn't really good enough
9572 case $host_os in
9573 darwin*)
9574 if test -n "$STRIP" ; then
9575 striplib="$STRIP -x"
9576 old_striplib="$STRIP -S"
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9578 $as_echo "yes" >&6; }
9579 else
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9582 fi
9583 ;;
9584 *)
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9587 ;;
9588 esac
9589 fi
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602 # Report which library types will actually be built
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9604 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9606 $as_echo "$can_build_shared" >&6; }
9607
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9609 $as_echo_n "checking whether to build shared libraries... " >&6; }
9610 test "$can_build_shared" = "no" && enable_shared=no
9611
9612 # On AIX, shared libraries and static libraries use the same namespace, and
9613 # are all built from PIC.
9614 case $host_os in
9615 aix3*)
9616 test "$enable_shared" = yes && enable_static=no
9617 if test -n "$RANLIB"; then
9618 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9619 postinstall_cmds='$RANLIB $lib'
9620 fi
9621 ;;
9622
9623 aix[4-9]*)
9624 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9625 test "$enable_shared" = yes && enable_static=no
9626 fi
9627 ;;
9628 esac
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9630 $as_echo "$enable_shared" >&6; }
9631
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9633 $as_echo_n "checking whether to build static libraries... " >&6; }
9634 # Make sure either enable_shared or enable_static is yes.
9635 test "$enable_shared" = yes || enable_static=yes
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9637 $as_echo "$enable_static" >&6; }
9638
9639
9640
9641
9642 fi
9643 ac_ext=c
9644 ac_cpp='$CPP $CPPFLAGS'
9645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9648
9649 CC="$lt_save_CC"
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663 ac_config_commands="$ac_config_commands libtool"
9664
9665
9666
9667
9668 # Only expand once:
9669
9670
9671 # Find a good install program. We prefer a C program (faster),
9672 # so one script is as good as another. But avoid the broken or
9673 # incompatible versions:
9674 # SysV /etc/install, /usr/sbin/install
9675 # SunOS /usr/etc/install
9676 # IRIX /sbin/install
9677 # AIX /bin/install
9678 # AmigaOS /C/install, which installs bootblocks on floppy discs
9679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9682 # OS/2's system install, which has a completely different semantic
9683 # ./install, which can be erroneously created by make from ./install.sh.
9684 # Reject install programs that cannot install multiple files.
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9686 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9687 if test -z "$INSTALL"; then
9688 if test "${ac_cv_path_install+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 for as_dir in $PATH
9693 do
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 # Account for people who put trailing slashes in PATH elements.
9697 case $as_dir/ in #((
9698 ./ | .// | /[cC]/* | \
9699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9700 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9701 /usr/ucb/* ) ;;
9702 *)
9703 # OSF1 and SCO ODT 3.0 have their own names for install.
9704 # Don't use installbsd from OSF since it installs stuff as root
9705 # by default.
9706 for ac_prog in ginstall scoinst install; do
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9709 if test $ac_prog = install &&
9710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9711 # AIX install. It has an incompatible calling convention.
9712 :
9713 elif test $ac_prog = install &&
9714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9715 # program-specific install script used by HP pwplus--don't use.
9716 :
9717 else
9718 rm -rf conftest.one conftest.two conftest.dir
9719 echo one > conftest.one
9720 echo two > conftest.two
9721 mkdir conftest.dir
9722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9723 test -s conftest.one && test -s conftest.two &&
9724 test -s conftest.dir/conftest.one &&
9725 test -s conftest.dir/conftest.two
9726 then
9727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9728 break 3
9729 fi
9730 fi
9731 fi
9732 done
9733 done
9734 ;;
9735 esac
9736
9737 done
9738 IFS=$as_save_IFS
9739
9740 rm -rf conftest.one conftest.two conftest.dir
9741
9742 fi
9743 if test "${ac_cv_path_install+set}" = set; then
9744 INSTALL=$ac_cv_path_install
9745 else
9746 # As a last resort, use the slow shell script. Don't cache a
9747 # value for INSTALL within a source directory, because that will
9748 # break other packages using the cache if that directory is
9749 # removed, or if the value is a relative name.
9750 INSTALL=$ac_install_sh
9751 fi
9752 fi
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9754 $as_echo "$INSTALL" >&6; }
9755
9756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9757 # It thinks the first close brace ends the variable substitution.
9758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9759
9760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9761
9762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9763
9764 CC=${CC:-cc}
9765
9766 HOSTCC=${HOSTCC:-cc}
9767
9768
9769
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
9771 $as_echo_n "checking target system type... " >&6; }
9772 if test "${ac_cv_target+set}" = set; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 if test "x$target_alias" = x; then
9776 ac_cv_target=$ac_cv_host
9777 else
9778 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
9779 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
9780 fi
9781
9782 fi
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
9784 $as_echo "$ac_cv_target" >&6; }
9785 case $ac_cv_target in
9786 *-*-*) ;;
9787 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
9788 esac
9789 target=$ac_cv_target
9790 ac_save_IFS=$IFS; IFS='-'
9791 set x $ac_cv_target
9792 shift
9793 target_cpu=$1
9794 target_vendor=$2
9795 shift; shift
9796 # Remember, the first character of IFS is used to create $*,
9797 # except with old shells:
9798 target_os=$*
9799 IFS=$ac_save_IFS
9800 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
9801
9802
9803 # The aliases save the names the user supplied, while $host etc.
9804 # will get canonicalized.
9805 test -n "$target_alias" &&
9806 test "$program_prefix$program_suffix$program_transform_name" = \
9807 NONENONEs,x,x, &&
9808 program_prefix=${target_alias}-
9809
9810 ##########
9811 # Handle the --prefix option
9812 #
9813 if test "${prefix}" = "NONE" ; then
9814 prefix=/usr/local
9815 fi
9816 if test "${exec_prefix}" = "NONE" ; then
9817 exec_prefix=$prefix
9818 fi
9819 eval libdir="$libdir"
9820
9821 ##########
9822 # Where to place the .jar file(s)
9823 #
9824
9825 # Check whether --with-jardir was given.
9826 if test "${with_jardir+set}" = set; then :
9827 withval=$with_jardir; JAR_DIR=$withval
9828 fi
9829
9830 if test "x$JAR_DIR" = "x" ; then
9831 JAR_DIR_UNSPEC=yes
9832 JAR_DIR=$prefix/share/java
9833 fi
9834
9835 ##########
9836 # Find SQLite header file and library
9837 #
9838
9839 # Check whether --with-sqlite was given.
9840 if test "${with_sqlite+set}" = set; then :
9841 withval=$with_sqlite; SQLITE_DIR=$withval
9842 fi
9843
9844 if test ! -n "$SQLITE_DIR" -a -d "$SQLITE_DIR" ; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite2 directory $SQLITE_DIR does not exist" >&5
9846 $as_echo "$as_me: WARNING: SQLite2 directory $SQLITE_DIR does not exist" >&2;}
9847 fi
9848
9849 SQLITE_INC=""
9850 SQLITE_LIB=""
9851 HAVE_SQLITE2=0
9852
9853 if test "$with_sqlite" != "no" ; then
9854 if test -z "$SQLITE_DIR" ; then
9855 SQLITE_DIR="../sqlite /usr /usr/local /opt"
9856 fi
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite header and library" >&5
9858 $as_echo_n "checking for SQLite header and library... " >&6; }
9859 SQLITE_INC=UNKNOWN
9860 SQLITE_LIB=UNKNOWN
9861 for i in $SQLITE_DIR ; do
9862 if test -r $i/sqlite.h ; then
9863 if test -r $i/libsqlite.la ; then
9864 SQLITE_INC="-I$i"
9865 SQLITE_LIB="$i/libsqlite.la"
9866 SQLITE_LIBDIR="-L$i"
9867 break
9868 elif test -r $i/libsqlite.a ; then
9869 SQLITE_INC="-I$i"
9870 SQLITE_LIB="$i/libsqlite.a"
9871 SQLITE_LIBDIR="-L$i"
9872 break
9873 fi
9874 elif test -r $i/include/sqlite.h ; then
9875 for lib in lib64 lib ; do
9876 if test -r $i/$lib/libsqlite.la ; then
9877 SQLITE_INC="-I$i/include"
9878 SQLITE_LIB="$i/$lib/libsqlite.la"
9879 SQLITE_LIBDIR="-L$i/$lib"
9880 break
9881 elif test -r $i/$lib/libsqlite.a ; then
9882 SQLITE_INC="-I$i/include"
9883 SQLITE_LIB="$i/$lib/libsqlite.a"
9884 SQLITE_LIBDIR="-L$i/$lib"
9885 break
9886 elif test -r $i/$lib/libsqlite.so ; then
9887 SQLITE_INC="-I$i/include"
9888 SQLITE_LIB="-lsqlite"
9889 SQLITE_LIBDIR="-L$i/$lib"
9890 break
9891 fi
9892 done
9893 if test "$SQLITE_LIB" != "UNKNOWN" ; then
9894 break
9895 fi
9896 fi
9897 done
9898 if test "$SQLITE_LIB" = "UNKNOWN" ; then
9899 lib=`pkg-config sqlite --libs 2>/dev/null`
9900 if test -n "$lib" ; then
9901 SQLITE_INC=`pkg-config sqlite --cflags-only-I`
9902 SQLITE_LIB="$lib"
9903 SQLITE_LIBDIR=`pkg-config sqlite --libs-only-L`
9904 fi
9905 fi
9906 if test "$SQLITE_INC" = "UNKNOWN" -o "$SQLITE_LIB" = "UNKNOWN" ; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite2 header files and/or library not found" >&5
9910 $as_echo "$as_me: WARNING: SQLite2 header files and/or library not found" >&2;}
9911 SQLITE_INC=""
9912 SQLITE_LIB=""
9913 HAVE_SQLITE2=0
9914 else
9915 HAVE_SQLITE2=1
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9917 $as_echo "yes" >&6; }
9918 fi
9919 fi
9920
9921
9922
9923
9924 ##########
9925 # Check SQLite features
9926 #
9927 HAVE_SQLITE_FUNCTION_TYPE=0
9928 HAVE_SQLITE_OPEN_AUX_FILE=0
9929 HAVE_SQLITE_SET_AUTHORIZER=0
9930 HAVE_SQLITE_TRACE=0
9931 HAVE_SQLITE_COMPILE=0
9932 HAVE_SQLITE_PROGRESS_HANDLER=0
9933 if test "$HAVE_SQLITE2" = 1 ; then
9934 saved_CFLAGS=$CFLAGS
9935 CFLAGS="$CFLAGS $SQLITE_INC"
9936 saved_LIBS=$LIBS
9937 LIBS="$LIBS $SQLITE_LIBDIR"
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_function_type in -lsqlite" >&5
9939 $as_echo_n "checking for sqlite_function_type in -lsqlite... " >&6; }
9940 if test "${ac_cv_lib_sqlite_sqlite_function_type+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 ac_check_lib_save_LIBS=$LIBS
9944 LIBS="-lsqlite $LIBS"
9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946 /* end confdefs.h. */
9947
9948 /* Override any GCC internal prototype to avoid an error.
9949 Use char because int might match the return type of a GCC
9950 builtin and then its argument prototype would still apply. */
9951 #ifdef __cplusplus
9952 extern "C"
9953 #endif
9954 char sqlite_function_type ();
9955 int
9956 main ()
9957 {
9958 return sqlite_function_type ();
9959 ;
9960 return 0;
9961 }
9962 _ACEOF
9963 if ac_fn_c_try_link "$LINENO"; then :
9964 ac_cv_lib_sqlite_sqlite_function_type=yes
9965 else
9966 ac_cv_lib_sqlite_sqlite_function_type=no
9967 fi
9968 rm -f core conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970 LIBS=$ac_check_lib_save_LIBS
9971 fi
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_function_type" >&5
9973 $as_echo "$ac_cv_lib_sqlite_sqlite_function_type" >&6; }
9974 if test "x$ac_cv_lib_sqlite_sqlite_function_type" = x""yes; then :
9975 HAVE_SQLITE_FUNCTION_TYPE=1
9976 else
9977 HAVE_SQLITE_FUNCTION_TYPE=0
9978 fi
9979
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open_aux_file in -lsqlite" >&5
9981 $as_echo_n "checking for sqlite_open_aux_file in -lsqlite... " >&6; }
9982 if test "${ac_cv_lib_sqlite_sqlite_open_aux_file+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 ac_check_lib_save_LIBS=$LIBS
9986 LIBS="-lsqlite $LIBS"
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989
9990 /* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9993 #ifdef __cplusplus
9994 extern "C"
9995 #endif
9996 char sqlite_open_aux_file ();
9997 int
9998 main ()
9999 {
10000 return sqlite_open_aux_file ();
10001 ;
10002 return 0;
10003 }
10004 _ACEOF
10005 if ac_fn_c_try_link "$LINENO"; then :
10006 ac_cv_lib_sqlite_sqlite_open_aux_file=yes
10007 else
10008 ac_cv_lib_sqlite_sqlite_open_aux_file=no
10009 fi
10010 rm -f core conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
10012 LIBS=$ac_check_lib_save_LIBS
10013 fi
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open_aux_file" >&5
10015 $as_echo "$ac_cv_lib_sqlite_sqlite_open_aux_file" >&6; }
10016 if test "x$ac_cv_lib_sqlite_sqlite_open_aux_file" = x""yes; then :
10017 HAVE_SQLITE_OPEN_AUX_FILE=1
10018 else
10019 HAVE_SQLITE_OPEN_AUX_FILE=0
10020 fi
10021
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_set_authorizer in -lsqlite" >&5
10023 $as_echo_n "checking for sqlite_set_authorizer in -lsqlite... " >&6; }
10024 if test "${ac_cv_lib_sqlite_sqlite_set_authorizer+set}" = set; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 ac_check_lib_save_LIBS=$LIBS
10028 LIBS="-lsqlite $LIBS"
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10031
10032 /* Override any GCC internal prototype to avoid an error.
10033 Use char because int might match the return type of a GCC
10034 builtin and then its argument prototype would still apply. */
10035 #ifdef __cplusplus
10036 extern "C"
10037 #endif
10038 char sqlite_set_authorizer ();
10039 int
10040 main ()
10041 {
10042 return sqlite_set_authorizer ();
10043 ;
10044 return 0;
10045 }
10046 _ACEOF
10047 if ac_fn_c_try_link "$LINENO"; then :
10048 ac_cv_lib_sqlite_sqlite_set_authorizer=yes
10049 else
10050 ac_cv_lib_sqlite_sqlite_set_authorizer=no
10051 fi
10052 rm -f core conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10055 fi
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_set_authorizer" >&5
10057 $as_echo "$ac_cv_lib_sqlite_sqlite_set_authorizer" >&6; }
10058 if test "x$ac_cv_lib_sqlite_sqlite_set_authorizer" = x""yes; then :
10059 HAVE_SQLITE_SET_AUTHORIZER=1
10060 else
10061 HAVE_SQLITE_SET_AUTHORIZER=0
10062 fi
10063
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_trace in -lsqlite" >&5
10065 $as_echo_n "checking for sqlite_trace in -lsqlite... " >&6; }
10066 if test "${ac_cv_lib_sqlite_sqlite_trace+set}" = set; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 ac_check_lib_save_LIBS=$LIBS
10070 LIBS="-lsqlite $LIBS"
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10073
10074 /* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
10077 #ifdef __cplusplus
10078 extern "C"
10079 #endif
10080 char sqlite_trace ();
10081 int
10082 main ()
10083 {
10084 return sqlite_trace ();
10085 ;
10086 return 0;
10087 }
10088 _ACEOF
10089 if ac_fn_c_try_link "$LINENO"; then :
10090 ac_cv_lib_sqlite_sqlite_trace=yes
10091 else
10092 ac_cv_lib_sqlite_sqlite_trace=no
10093 fi
10094 rm -f core conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10097 fi
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_trace" >&5
10099 $as_echo "$ac_cv_lib_sqlite_sqlite_trace" >&6; }
10100 if test "x$ac_cv_lib_sqlite_sqlite_trace" = x""yes; then :
10101 HAVE_SQLITE_TRACE=1
10102 else
10103 HAVE_SQLITE_TRACE=0
10104 fi
10105
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_compile in -lsqlite" >&5
10107 $as_echo_n "checking for sqlite_compile in -lsqlite... " >&6; }
10108 if test "${ac_cv_lib_sqlite_sqlite_compile+set}" = set; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10111 ac_check_lib_save_LIBS=$LIBS
10112 LIBS="-lsqlite $LIBS"
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10115
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10119 #ifdef __cplusplus
10120 extern "C"
10121 #endif
10122 char sqlite_compile ();
10123 int
10124 main ()
10125 {
10126 return sqlite_compile ();
10127 ;
10128 return 0;
10129 }
10130 _ACEOF
10131 if ac_fn_c_try_link "$LINENO"; then :
10132 ac_cv_lib_sqlite_sqlite_compile=yes
10133 else
10134 ac_cv_lib_sqlite_sqlite_compile=no
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_compile" >&5
10141 $as_echo "$ac_cv_lib_sqlite_sqlite_compile" >&6; }
10142 if test "x$ac_cv_lib_sqlite_sqlite_compile" = x""yes; then :
10143 HAVE_SQLITE_COMPILE=1
10144 else
10145 HAVE_SQLITE_COMPILE=0
10146 fi
10147
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_progress_handler in -lsqlite" >&5
10149 $as_echo_n "checking for sqlite_progress_handler in -lsqlite... " >&6; }
10150 if test "${ac_cv_lib_sqlite_sqlite_progress_handler+set}" = set; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 ac_check_lib_save_LIBS=$LIBS
10154 LIBS="-lsqlite $LIBS"
10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h. */
10157
10158 /* Override any GCC internal prototype to avoid an error.
10159 Use char because int might match the return type of a GCC
10160 builtin and then its argument prototype would still apply. */
10161 #ifdef __cplusplus
10162 extern "C"
10163 #endif
10164 char sqlite_progress_handler ();
10165 int
10166 main ()
10167 {
10168 return sqlite_progress_handler ();
10169 ;
10170 return 0;
10171 }
10172 _ACEOF
10173 if ac_fn_c_try_link "$LINENO"; then :
10174 ac_cv_lib_sqlite_sqlite_progress_handler=yes
10175 else
10176 ac_cv_lib_sqlite_sqlite_progress_handler=no
10177 fi
10178 rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10180 LIBS=$ac_check_lib_save_LIBS
10181 fi
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_progress_handler" >&5
10183 $as_echo "$ac_cv_lib_sqlite_sqlite_progress_handler" >&6; }
10184 if test "x$ac_cv_lib_sqlite_sqlite_progress_handler" = x""yes; then :
10185 HAVE_SQLITE_PROGRESS_HANDLER=1
10186 else
10187 HAVE_SQLITE_PROGRESS_HANDLER=0
10188 fi
10189
10190 LIBS=$saved_LIBS
10191 CFLAGS=$saved_CFLAGS
10192 fi
10193
10194
10195
10196
10197
10198
10199
10200 ##########
10201 # Find SQLite3 header file and library
10202 #
10203
10204 # Check whether --with-sqlite3 was given.
10205 if test "${with_sqlite3+set}" = set; then :
10206 withval=$with_sqlite3; SQLITE3_DIR=$withval
10207 fi
10208
10209 if test ! -n "$SQLITE3_DIR" -a -d "$SQLITE3_DIR" ; then
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite3 directory $SQLITE3_DIR does not exist" >&5
10211 $as_echo "$as_me: WARNING: SQLite3 directory $SQLITE3_DIR does not exist" >&2;}
10212 fi
10213
10214 if test -z "$SQLITE3_DIR" ; then
10215 SQLITE3_DIR="../sqlite /usr /usr/local /opt"
10216 fi
10217
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 header and library" >&5
10219 $as_echo_n "checking for SQLite3 header and library... " >&6; }
10220 SQLITE3_INC=UNKNOWN
10221 SQLITE3_LIB=UNKNOWN
10222 for i in $SQLITE3_DIR ; do
10223 if test -r $i/sqlite3.h ; then
10224 if test -r $i/sqlite3.c ; then
10225 SQLITE3_INC="-I$i"
10226 SQLITE3_LIB="unknown"
10227 SQLITE3_LIBDIR=""
10228 SQLITE3_A10N_C="$i/sqlite3.c"
10229 SQLITE3_A10N_O="sqlite3.lo"
10230 break
10231 elif test -r $i/libsqlite3.la ; then
10232 SQLITE3_INC="-I$i"
10233 SQLITE3_LIB="$i/libsqlite3.la"
10234 SQLITE3_LIBDIR="-L$i"
10235 break
10236 elif test -r $i/libsqlite3.a ; then
10237 SQLITE3_INC="-I$i"
10238 SQLITE3_LIB="$i/libsqlite3.a"
10239 SQLITE3_LIBDIR="-L$i"
10240 break
10241 elif test -r $i/see-sqlite3.c ; then
10242 SQLITE3_INC="-I$i"
10243 SQLITE3_LIB="unknown"
10244 SQLITE3_LIBDIR=""
10245 SQLITE3_A10N_C="$i/see-sqlite3.c"
10246 SQLITE3_A10N_O="see-sqlite3.lo"
10247 SQLITE3_IS_BUILD_WITH_SEE="yes"
10248 HAVE_SQLITE3_KEY=1
10249 break
10250 fi
10251 elif test -r $i/include/sqlite3.h ; then
10252 for lib in lib64 lib ; do
10253 if test -r $i/$lib/libsqlite3.la ; then
10254 SQLITE3_INC="-I$i/include"
10255 SQLITE3_LIB="$i/$lib/libsqlite3.la"
10256 SQLITE3_LIBDIR="-L$i/$lib"
10257 break
10258 elif test -r $i/$lib/libsqlite3.a ; then
10259 SQLITE3_INC="-I$i/include"
10260 SQLITE3_LIB="$i/$lib/libsqlite3.a"
10261 SQLITE3_LIBDIR="-L$i/$lib"
10262 break
10263 elif test -r $i/$lib/libsqlite3.so ; then
10264 SQLITE3_INC="-I$i/include"
10265 SQLITE3_LIB="-lsqlite3"
10266 SQLITE3_LIBDIR="-L$i/$lib"
10267 break
10268 fi
10269 done
10270 if test "$SQLITE3_LIB" != "UNKNOWN" ; then
10271 break
10272 fi
10273 fi
10274 done
10275 if test "$SQLITE3_LIB" = "UNKNOWN" ; then
10276 lib=`pkg-config sqlite3 --libs 2>/dev/null`
10277 if test -n "$lib" ; then
10278 SQLITE3_INC=`pkg-config sqlite3 --cflags-only-I`
10279 SQLITE3_LIB="$lib"
10280 SQLITE3_LIBDIR=`pkg-config sqlite3 --libs-only-L`
10281 fi
10282 fi
10283 if test "$SQLITE3_INC" = "UNKNOWN" -o "$SQLITE3_LIB" = "UNKNOWN" ; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285 $as_echo "no" >&6; }
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite3 header files and/or library not found" >&5
10287 $as_echo "$as_me: WARNING: SQLite3 header files and/or library not found" >&2;}
10288 SQLITE3_INC=""
10289 SQLITE3_LIB=""
10290 HAVE_SQLITE3=0
10291 elif test -n "$SQLITE3_A10N_C" ; then
10292 SQLITE3_LIB=""
10293 SQLITE3_A10N_FLAGS="$SQLITE3_A10N_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1"
10294 SQLITE3_A10N_FLAGS="$SQLITE3_A10N_FLAGS -DSQLITE_DLL=1"
10295 HAVE_SQLITE3=1
10296 if test "$SQLITE3_IS_BUILT_WITH_SEE" = "yes" ; then
10297 SQLITE3_A10N_FLAGS="$SQLITE3_A10N_FLAGS -DSQLITE_HAS_CODEC=1"
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using SEE" >&5
10299 $as_echo "yes, using SEE" >&6; }
10300 else
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10302 $as_echo "yes" >&6; }
10303 fi
10304 else
10305 HAVE_SQLITE3=1
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10307 $as_echo "yes" >&6; }
10308 fi
10309
10310
10311
10312
10313 ##########
10314 # Check SQLite3 features
10315 #
10316 # Check whether --enable-load-extension was given.
10317 if test "${enable_load_extension+set}" = set; then :
10318 enableval=$enable_load_extension;
10319 fi
10320
10321 test "x$enable_load_extension" = "xyes" || enable_load_extension=no
10322 HAVE_SQLITE3_MALLOC=0
10323 HAVE_SQLITE3_PREPARE_V2=0
10324 HAVE_SQLITE3_PREPARE16_V2=0
10325 HAVE_SQLITE3_BIND_ZEROBLOB=0
10326 HAVE_SQLITE3_CLEAR_BINDINGS=0
10327 HAVE_SQLITE3_COLUMN_TABLE_NAME16=0
10328 HAVE_SQLITE3_COLUMN_DATABASE_NAME16=0
10329 HAVE_SQLITE3_COLUMN_ORIGIN_NAME16=0
10330 HAVE_SQLITE3_BIND_PARAMETER_COUNT=0
10331 HAVE_SQLITE3_BIND_PARAMETER_NAME=0
10332 HAVE_SQLITE3_BIND_PARAMETER_INDEX=0
10333 HAVE_SQLITE3_RESULT_ZEROBLOB=0
10334 HAVE_SQLITE3_INCRBLOBIO=0
10335 HAVE_SQLITE3_KEY=0
10336 HAVE_SQLITE3_SHARED_CACHE=0
10337 HAVE_SQLITE3_OPEN_V2=0
10338 HAVE_SQLITE3_LOAD_EXTENSION=0
10339 HAVE_SQLITE3_BACKUPAPI=0
10340 HAVE_SQLITE3_PROFILE=0
10341 HAVE_SQLITE3_STATUS=0
10342 HAVE_SQLITE3_DB_STATUS=0
10343 HAVE_SQLITE3_STMT_STATUS=0
10344 if test "$HAVE_SQLITE3" = 1 -a -n "$SQLITE3_A10N_C" ; then
10345 HAVE_SQLITE3_MALLOC=1
10346 HAVE_SQLITE3_PREPARE_V2=1
10347 HAVE_SQLITE3_PREPARE16_V2=1
10348 HAVE_SQLITE3_BIND_ZEROBLOB=1
10349 HAVE_SQLITE3_CLEAR_BINDINGS=1
10350 HAVE_SQLITE3_COLUMN_TABLE_NAME16=1
10351 HAVE_SQLITE3_COLUMN_DATABASE_NAME16=1
10352 HAVE_SQLITE3_COLUMN_ORIGIN_NAME16=1
10353 HAVE_SQLITE3_BIND_PARAMETER_COUNT=1
10354 HAVE_SQLITE3_BIND_PARAMETER_NAME=1
10355 HAVE_SQLITE3_BIND_PARAMETER_INDEX=1
10356 HAVE_SQLITE3_RESULT_ZEROBLOB=1
10357 HAVE_SQLITE3_INCRBLOBIO=1
10358 HAVE_SQLITE3_SHARED_CACHE=1
10359 HAVE_SQLITE3_OPEN_V2=1
10360 if test "$enable_load_extension" = "yes" ; then
10361 HAVE_SQLITE3_LOAD_EXTENSION=1
10362 fi
10363 HAVE_SQLITE3_BACKUPAPI=1
10364 HAVE_SQLITE3_PROFILE=1
10365 HAVE_SQLITE3_STATUS=1
10366 HAVE_SQLITE3_DB_STATUS=1
10367 HAVE_SQLITE3_STMT_STATUS=1
10368 fi
10369 if test "$HAVE_SQLITE3" = 1 -a -z "$SQLITE3_A10N_C" ; then
10370 saved_CFLAGS=$CFLAGS
10371 CFLAGS="$CFLAGS $SQLITE3_INC"
10372 saved_LIBS=$LIBS
10373 LIBS="$LIBS $SQLITE3_LIBDIR"
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_malloc in -lsqlite3" >&5
10375 $as_echo_n "checking for sqlite3_malloc in -lsqlite3... " >&6; }
10376 if test "${ac_cv_lib_sqlite3_sqlite3_malloc+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 ac_check_lib_save_LIBS=$LIBS
10380 LIBS="-lsqlite3 $LIBS"
10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10383
10384 /* Override any GCC internal prototype to avoid an error.
10385 Use char because int might match the return type of a GCC
10386 builtin and then its argument prototype would still apply. */
10387 #ifdef __cplusplus
10388 extern "C"
10389 #endif
10390 char sqlite3_malloc ();
10391 int
10392 main ()
10393 {
10394 return sqlite3_malloc ();
10395 ;
10396 return 0;
10397 }
10398 _ACEOF
10399 if ac_fn_c_try_link "$LINENO"; then :
10400 ac_cv_lib_sqlite3_sqlite3_malloc=yes
10401 else
10402 ac_cv_lib_sqlite3_sqlite3_malloc=no
10403 fi
10404 rm -f core conftest.err conftest.$ac_objext \
10405 conftest$ac_exeext conftest.$ac_ext
10406 LIBS=$ac_check_lib_save_LIBS
10407 fi
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_malloc" >&5
10409 $as_echo "$ac_cv_lib_sqlite3_sqlite3_malloc" >&6; }
10410 if test "x$ac_cv_lib_sqlite3_sqlite3_malloc" = x""yes; then :
10411 HAVE_SQLITE3_MALLOC=1
10412 else
10413 HAVE_SQLITE3_MALLOC=0
10414 fi
10415
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5
10417 $as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; }
10418 if test "${ac_cv_lib_sqlite3_sqlite3_prepare_v2+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 ac_check_lib_save_LIBS=$LIBS
10422 LIBS="-lsqlite3 $LIBS"
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425
10426 /* Override any GCC internal prototype to avoid an error.
10427 Use char because int might match the return type of a GCC
10428 builtin and then its argument prototype would still apply. */
10429 #ifdef __cplusplus
10430 extern "C"
10431 #endif
10432 char sqlite3_prepare_v2 ();
10433 int
10434 main ()
10435 {
10436 return sqlite3_prepare_v2 ();
10437 ;
10438 return 0;
10439 }
10440 _ACEOF
10441 if ac_fn_c_try_link "$LINENO"; then :
10442 ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes
10443 else
10444 ac_cv_lib_sqlite3_sqlite3_prepare_v2=no
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10449 fi
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5
10451 $as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; }
10452 if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = x""yes; then :
10453 HAVE_SQLITE3_PREPARE_V2=1
10454 else
10455 HAVE_SQLITE3_PREPARE_V2=0
10456 fi
10457
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare16_v2 in -lsqlite3" >&5
10459 $as_echo_n "checking for sqlite3_prepare16_v2 in -lsqlite3... " >&6; }
10460 if test "${ac_cv_lib_sqlite3_sqlite3_prepare16_v2+set}" = set; then :
10461 $as_echo_n "(cached) " >&6
10462 else
10463 ac_check_lib_save_LIBS=$LIBS
10464 LIBS="-lsqlite3 $LIBS"
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10467
10468 /* Override any GCC internal prototype to avoid an error.
10469 Use char because int might match the return type of a GCC
10470 builtin and then its argument prototype would still apply. */
10471 #ifdef __cplusplus
10472 extern "C"
10473 #endif
10474 char sqlite3_prepare16_v2 ();
10475 int
10476 main ()
10477 {
10478 return sqlite3_prepare16_v2 ();
10479 ;
10480 return 0;
10481 }
10482 _ACEOF
10483 if ac_fn_c_try_link "$LINENO"; then :
10484 ac_cv_lib_sqlite3_sqlite3_prepare16_v2=yes
10485 else
10486 ac_cv_lib_sqlite3_sqlite3_prepare16_v2=no
10487 fi
10488 rm -f core conftest.err conftest.$ac_objext \
10489 conftest$ac_exeext conftest.$ac_ext
10490 LIBS=$ac_check_lib_save_LIBS
10491 fi
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare16_v2" >&5
10493 $as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare16_v2" >&6; }
10494 if test "x$ac_cv_lib_sqlite3_sqlite3_prepare16_v2" = x""yes; then :
10495 HAVE_SQLITE3_PREPARE16_V2=1
10496 else
10497 HAVE_SQLITE3_PREPARE16_V2=0
10498 fi
10499
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_zeroblob in -lsqlite3" >&5
10501 $as_echo_n "checking for sqlite3_bind_zeroblob in -lsqlite3... " >&6; }
10502 if test "${ac_cv_lib_sqlite3_sqlite3_bind_zeroblob+set}" = set; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 ac_check_lib_save_LIBS=$LIBS
10506 LIBS="-lsqlite3 $LIBS"
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509
10510 /* Override any GCC internal prototype to avoid an error.
10511 Use char because int might match the return type of a GCC
10512 builtin and then its argument prototype would still apply. */
10513 #ifdef __cplusplus
10514 extern "C"
10515 #endif
10516 char sqlite3_bind_zeroblob ();
10517 int
10518 main ()
10519 {
10520 return sqlite3_bind_zeroblob ();
10521 ;
10522 return 0;
10523 }
10524 _ACEOF
10525 if ac_fn_c_try_link "$LINENO"; then :
10526 ac_cv_lib_sqlite3_sqlite3_bind_zeroblob=yes
10527 else
10528 ac_cv_lib_sqlite3_sqlite3_bind_zeroblob=no
10529 fi
10530 rm -f core conftest.err conftest.$ac_objext \
10531 conftest$ac_exeext conftest.$ac_ext
10532 LIBS=$ac_check_lib_save_LIBS
10533 fi
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_zeroblob" >&5
10535 $as_echo "$ac_cv_lib_sqlite3_sqlite3_bind_zeroblob" >&6; }
10536 if test "x$ac_cv_lib_sqlite3_sqlite3_bind_zeroblob" = x""yes; then :
10537 HAVE_SQLITE3_BIND_ZEROBLOB=1
10538 else
10539 HAVE_SQLITE3_BIND_ZEROBLOB=0
10540 fi
10541
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_clear_bindings in -lsqlite3" >&5
10543 $as_echo_n "checking for sqlite3_clear_bindings in -lsqlite3... " >&6; }
10544 if test "${ac_cv_lib_sqlite3_sqlite3_clear_bindings+set}" = set; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 ac_check_lib_save_LIBS=$LIBS
10548 LIBS="-lsqlite3 $LIBS"
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10551
10552 /* Override any GCC internal prototype to avoid an error.
10553 Use char because int might match the return type of a GCC
10554 builtin and then its argument prototype would still apply. */
10555 #ifdef __cplusplus
10556 extern "C"
10557 #endif
10558 char sqlite3_clear_bindings ();
10559 int
10560 main ()
10561 {
10562 return sqlite3_clear_bindings ();
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"; then :
10568 ac_cv_lib_sqlite3_sqlite3_clear_bindings=yes
10569 else
10570 ac_cv_lib_sqlite3_sqlite3_clear_bindings=no
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 LIBS=$ac_check_lib_save_LIBS
10575 fi
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_clear_bindings" >&5
10577 $as_echo "$ac_cv_lib_sqlite3_sqlite3_clear_bindings" >&6; }
10578 if test "x$ac_cv_lib_sqlite3_sqlite3_clear_bindings" = x""yes; then :
10579 HAVE_SQLITE3_CLEAR_BINDINGS=1
10580 else
10581 HAVE_SQLITE3_CLEAR_BINDINGS=0
10582 fi
10583
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_table_name16 in -lsqlite3" >&5
10585 $as_echo_n "checking for sqlite3_column_table_name16 in -lsqlite3... " >&6; }
10586 if test "${ac_cv_lib_sqlite3_sqlite3_column_table_name16+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 ac_check_lib_save_LIBS=$LIBS
10590 LIBS="-lsqlite3 $LIBS"
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593
10594 /* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10597 #ifdef __cplusplus
10598 extern "C"
10599 #endif
10600 char sqlite3_column_table_name16 ();
10601 int
10602 main ()
10603 {
10604 return sqlite3_column_table_name16 ();
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 if ac_fn_c_try_link "$LINENO"; then :
10610 ac_cv_lib_sqlite3_sqlite3_column_table_name16=yes
10611 else
10612 ac_cv_lib_sqlite3_sqlite3_column_table_name16=no
10613 fi
10614 rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
10616 LIBS=$ac_check_lib_save_LIBS
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name16" >&5
10619 $as_echo "$ac_cv_lib_sqlite3_sqlite3_column_table_name16" >&6; }
10620 if test "x$ac_cv_lib_sqlite3_sqlite3_column_table_name16" = x""yes; then :
10621 HAVE_SQLITE3_COLUMN_TABLE_NAME16=1
10622 else
10623 HAVE_SQLITE3_COLUMN_TABLE_NAME16=0
10624 fi
10625
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_database_name16 in -lsqlite3" >&5
10627 $as_echo_n "checking for sqlite3_column_database_name16 in -lsqlite3... " >&6; }
10628 if test "${ac_cv_lib_sqlite3_sqlite3_column_database_name16+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 ac_check_lib_save_LIBS=$LIBS
10632 LIBS="-lsqlite3 $LIBS"
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635
10636 /* Override any GCC internal prototype to avoid an error.
10637 Use char because int might match the return type of a GCC
10638 builtin and then its argument prototype would still apply. */
10639 #ifdef __cplusplus
10640 extern "C"
10641 #endif
10642 char sqlite3_column_database_name16 ();
10643 int
10644 main ()
10645 {
10646 return sqlite3_column_database_name16 ();
10647 ;
10648 return 0;
10649 }
10650 _ACEOF
10651 if ac_fn_c_try_link "$LINENO"; then :
10652 ac_cv_lib_sqlite3_sqlite3_column_database_name16=yes
10653 else
10654 ac_cv_lib_sqlite3_sqlite3_column_database_name16=no
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10658 LIBS=$ac_check_lib_save_LIBS
10659 fi
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_database_name16" >&5
10661 $as_echo "$ac_cv_lib_sqlite3_sqlite3_column_database_name16" >&6; }
10662 if test "x$ac_cv_lib_sqlite3_sqlite3_column_database_name16" = x""yes; then :
10663 HAVE_SQLITE3_COLUMN_DATABASE_NAME16=1
10664 else
10665 HAVE_SQLITE3_COLUMN_DATABASE_NAME16=0
10666 fi
10667
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_origin_name16 in -lsqlite3" >&5
10669 $as_echo_n "checking for sqlite3_column_origin_name16 in -lsqlite3... " >&6; }
10670 if test "${ac_cv_lib_sqlite3_sqlite3_column_origin_name16+set}" = set; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673 ac_check_lib_save_LIBS=$LIBS
10674 LIBS="-lsqlite3 $LIBS"
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677
10678 /* Override any GCC internal prototype to avoid an error.
10679 Use char because int might match the return type of a GCC
10680 builtin and then its argument prototype would still apply. */
10681 #ifdef __cplusplus
10682 extern "C"
10683 #endif
10684 char sqlite3_column_origin_name16 ();
10685 int
10686 main ()
10687 {
10688 return sqlite3_column_origin_name16 ();
10689 ;
10690 return 0;
10691 }
10692 _ACEOF
10693 if ac_fn_c_try_link "$LINENO"; then :
10694 ac_cv_lib_sqlite3_sqlite3_column_origin_name16=yes
10695 else
10696 ac_cv_lib_sqlite3_sqlite3_column_origin_name16=no
10697 fi
10698 rm -f core conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10700 LIBS=$ac_check_lib_save_LIBS
10701 fi
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_origin_name16" >&5
10703 $as_echo "$ac_cv_lib_sqlite3_sqlite3_column_origin_name16" >&6; }
10704 if test "x$ac_cv_lib_sqlite3_sqlite3_column_origin_name16" = x""yes; then :
10705 HAVE_SQLITE3_COLUMN_ORIGIN_NAME16=1
10706 else
10707 HAVE_SQLITE3_COLUMN_ORIGIN_NAME16=0
10708 fi
10709
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_parameter_count in -lsqlite3" >&5
10711 $as_echo_n "checking for sqlite3_bind_parameter_count in -lsqlite3... " >&6; }
10712 if test "${ac_cv_lib_sqlite3_sqlite3_bind_parameter_count+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 ac_check_lib_save_LIBS=$LIBS
10716 LIBS="-lsqlite3 $LIBS"
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10719
10720 /* Override any GCC internal prototype to avoid an error.
10721 Use char because int might match the return type of a GCC
10722 builtin and then its argument prototype would still apply. */
10723 #ifdef __cplusplus
10724 extern "C"
10725 #endif
10726 char sqlite3_bind_parameter_count ();
10727 int
10728 main ()
10729 {
10730 return sqlite3_bind_parameter_count ();
10731 ;
10732 return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10736 ac_cv_lib_sqlite3_sqlite3_bind_parameter_count=yes
10737 else
10738 ac_cv_lib_sqlite3_sqlite3_bind_parameter_count=no
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10743 fi
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_parameter_count" >&5
10745 $as_echo "$ac_cv_lib_sqlite3_sqlite3_bind_parameter_count" >&6; }
10746 if test "x$ac_cv_lib_sqlite3_sqlite3_bind_parameter_count" = x""yes; then :
10747 HAVE_SQLITE3_BIND_PARAMETER_COUNT=1
10748 else
10749 HAVE_SQLITE3_BIND_PARAMETER_COUNT=0
10750 fi
10751
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_parameter_name in -lsqlite3" >&5
10753 $as_echo_n "checking for sqlite3_bind_parameter_name in -lsqlite3... " >&6; }
10754 if test "${ac_cv_lib_sqlite3_sqlite3_bind_parameter_name+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
10756 else
10757 ac_check_lib_save_LIBS=$LIBS
10758 LIBS="-lsqlite3 $LIBS"
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10761
10762 /* Override any GCC internal prototype to avoid an error.
10763 Use char because int might match the return type of a GCC
10764 builtin and then its argument prototype would still apply. */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 char sqlite3_bind_parameter_name ();
10769 int
10770 main ()
10771 {
10772 return sqlite3_bind_parameter_name ();
10773 ;
10774 return 0;
10775 }
10776 _ACEOF
10777 if ac_fn_c_try_link "$LINENO"; then :
10778 ac_cv_lib_sqlite3_sqlite3_bind_parameter_name=yes
10779 else
10780 ac_cv_lib_sqlite3_sqlite3_bind_parameter_name=no
10781 fi
10782 rm -f core conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10784 LIBS=$ac_check_lib_save_LIBS
10785 fi
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_parameter_name" >&5
10787 $as_echo "$ac_cv_lib_sqlite3_sqlite3_bind_parameter_name" >&6; }
10788 if test "x$ac_cv_lib_sqlite3_sqlite3_bind_parameter_name" = x""yes; then :
10789 HAVE_SQLITE3_BIND_PARAMETER_NAME=1
10790 else
10791 HAVE_SQLITE3_BIND_PARAMETER_NAME=0
10792 fi
10793
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_parameter_index in -lsqlite3" >&5
10795 $as_echo_n "checking for sqlite3_bind_parameter_index in -lsqlite3... " >&6; }
10796 if test "${ac_cv_lib_sqlite3_sqlite3_bind_parameter_index+set}" = set; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 ac_check_lib_save_LIBS=$LIBS
10800 LIBS="-lsqlite3 $LIBS"
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10803
10804 /* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10807 #ifdef __cplusplus
10808 extern "C"
10809 #endif
10810 char sqlite3_bind_parameter_index ();
10811 int
10812 main ()
10813 {
10814 return sqlite3_bind_parameter_index ();
10815 ;
10816 return 0;
10817 }
10818 _ACEOF
10819 if ac_fn_c_try_link "$LINENO"; then :
10820 ac_cv_lib_sqlite3_sqlite3_bind_parameter_index=yes
10821 else
10822 ac_cv_lib_sqlite3_sqlite3_bind_parameter_index=no
10823 fi
10824 rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10826 LIBS=$ac_check_lib_save_LIBS
10827 fi
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_parameter_index" >&5
10829 $as_echo "$ac_cv_lib_sqlite3_sqlite3_bind_parameter_index" >&6; }
10830 if test "x$ac_cv_lib_sqlite3_sqlite3_bind_parameter_index" = x""yes; then :
10831 HAVE_SQLITE3_BIND_PARAMETER_INDEX=1
10832 else
10833 HAVE_SQLITE3_BIND_PARAMETER_INDEX=0
10834 fi
10835
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_result_zeroblob in -lsqlite3" >&5
10837 $as_echo_n "checking for sqlite3_result_zeroblob in -lsqlite3... " >&6; }
10838 if test "${ac_cv_lib_sqlite3_sqlite3_result_zeroblob+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-lsqlite3 $LIBS"
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10845
10846 /* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 char sqlite3_result_zeroblob ();
10853 int
10854 main ()
10855 {
10856 return sqlite3_result_zeroblob ();
10857 ;
10858 return 0;
10859 }
10860 _ACEOF
10861 if ac_fn_c_try_link "$LINENO"; then :
10862 ac_cv_lib_sqlite3_sqlite3_result_zeroblob=yes
10863 else
10864 ac_cv_lib_sqlite3_sqlite3_result_zeroblob=no
10865 fi
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_lib_save_LIBS
10869 fi
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_result_zeroblob" >&5
10871 $as_echo "$ac_cv_lib_sqlite3_sqlite3_result_zeroblob" >&6; }
10872 if test "x$ac_cv_lib_sqlite3_sqlite3_result_zeroblob" = x""yes; then :
10873 HAVE_SQLITE3_RESULT_ZEROBLOB=1
10874 else
10875 HAVE_SQLITE3_RESULT_ZEROBLOB=0
10876 fi
10877
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_blob_open in -lsqlite3" >&5
10879 $as_echo_n "checking for sqlite3_blob_open in -lsqlite3... " >&6; }
10880 if test "${ac_cv_lib_sqlite3_sqlite3_blob_open+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-lsqlite3 $LIBS"
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char sqlite3_blob_open ();
10895 int
10896 main ()
10897 {
10898 return sqlite3_blob_open ();
10899 ;
10900 return 0;
10901 }
10902 _ACEOF
10903 if ac_fn_c_try_link "$LINENO"; then :
10904 ac_cv_lib_sqlite3_sqlite3_blob_open=yes
10905 else
10906 ac_cv_lib_sqlite3_sqlite3_blob_open=no
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10911 fi
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_blob_open" >&5
10913 $as_echo "$ac_cv_lib_sqlite3_sqlite3_blob_open" >&6; }
10914 if test "x$ac_cv_lib_sqlite3_sqlite3_blob_open" = x""yes; then :
10915 HAVE_SQLITE3_INCRBLOBIO=1
10916 else
10917 HAVE_SQLITE3_INCRBLOBIO=0
10918 fi
10919
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5
10921 $as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; }
10922 if test "${ac_cv_lib_sqlite3_sqlite3_key+set}" = set; then :
10923 $as_echo_n "(cached) " >&6
10924 else
10925 ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-lsqlite3 $LIBS"
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10929
10930 /* Override any GCC internal prototype to avoid an error.
10931 Use char because int might match the return type of a GCC
10932 builtin and then its argument prototype would still apply. */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 char sqlite3_key ();
10937 int
10938 main ()
10939 {
10940 return sqlite3_key ();
10941 ;
10942 return 0;
10943 }
10944 _ACEOF
10945 if ac_fn_c_try_link "$LINENO"; then :
10946 ac_cv_lib_sqlite3_sqlite3_key=yes
10947 else
10948 ac_cv_lib_sqlite3_sqlite3_key=no
10949 fi
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10953 fi
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
10955 $as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
10956 if test "x$ac_cv_lib_sqlite3_sqlite3_key" = x""yes; then :
10957 HAVE_SQLITE3_KEY=1
10958 else
10959 HAVE_SQLITE3_KEY=0
10960 fi
10961
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_rekey in -lsqlite3" >&5
10963 $as_echo_n "checking for sqlite3_rekey in -lsqlite3... " >&6; }
10964 if test "${ac_cv_lib_sqlite3_sqlite3_rekey+set}" = set; then :
10965 $as_echo_n "(cached) " >&6
10966 else
10967 ac_check_lib_save_LIBS=$LIBS
10968 LIBS="-lsqlite3 $LIBS"
10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970 /* end confdefs.h. */
10971
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 char sqlite3_rekey ();
10979 int
10980 main ()
10981 {
10982 return sqlite3_rekey ();
10983 ;
10984 return 0;
10985 }
10986 _ACEOF
10987 if ac_fn_c_try_link "$LINENO"; then :
10988 ac_cv_lib_sqlite3_sqlite3_rekey=yes
10989 else
10990 ac_cv_lib_sqlite3_sqlite3_rekey=no
10991 fi
10992 rm -f core conftest.err conftest.$ac_objext \
10993 conftest$ac_exeext conftest.$ac_ext
10994 LIBS=$ac_check_lib_save_LIBS
10995 fi
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_rekey" >&5
10997 $as_echo "$ac_cv_lib_sqlite3_sqlite3_rekey" >&6; }
10998 if test "x$ac_cv_lib_sqlite3_sqlite3_rekey" = x""yes; then :
10999 cat >>confdefs.h <<_ACEOF
11000 #define HAVE_LIBSQLITE3 1
11001 _ACEOF
11002
11003 LIBS="-lsqlite3 $LIBS"
11004
11005 else
11006 HAVE_SQLITE3_KEY=0
11007 fi
11008
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_enable_shared_cache in -lsqlite3" >&5
11010 $as_echo_n "checking for sqlite3_enable_shared_cache in -lsqlite3... " >&6; }
11011 if test "${ac_cv_lib_sqlite3_sqlite3_enable_shared_cache+set}" = set; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 ac_check_lib_save_LIBS=$LIBS
11015 LIBS="-lsqlite3 $LIBS"
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11018
11019 /* Override any GCC internal prototype to avoid an error.
11020 Use char because int might match the return type of a GCC
11021 builtin and then its argument prototype would still apply. */
11022 #ifdef __cplusplus
11023 extern "C"
11024 #endif
11025 char sqlite3_enable_shared_cache ();
11026 int
11027 main ()
11028 {
11029 return sqlite3_enable_shared_cache ();
11030 ;
11031 return 0;
11032 }
11033 _ACEOF
11034 if ac_fn_c_try_link "$LINENO"; then :
11035 ac_cv_lib_sqlite3_sqlite3_enable_shared_cache=yes
11036 else
11037 ac_cv_lib_sqlite3_sqlite3_enable_shared_cache=no
11038 fi
11039 rm -f core conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11041 LIBS=$ac_check_lib_save_LIBS
11042 fi
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" >&5
11044 $as_echo "$ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" >&6; }
11045 if test "x$ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" = x""yes; then :
11046 HAVE_SQLITE3_SHARED_CACHE=1
11047 else
11048 HAVE_SQLITE3_SHARED_CACHE=0
11049 fi
11050
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open_v2 in -lsqlite3" >&5
11052 $as_echo_n "checking for sqlite3_open_v2 in -lsqlite3... " >&6; }
11053 if test "${ac_cv_lib_sqlite3_sqlite3_open_v2+set}" = set; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 ac_check_lib_save_LIBS=$LIBS
11057 LIBS="-lsqlite3 $LIBS"
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11060
11061 /* Override any GCC internal prototype to avoid an error.
11062 Use char because int might match the return type of a GCC
11063 builtin and then its argument prototype would still apply. */
11064 #ifdef __cplusplus
11065 extern "C"
11066 #endif
11067 char sqlite3_open_v2 ();
11068 int
11069 main ()
11070 {
11071 return sqlite3_open_v2 ();
11072 ;
11073 return 0;
11074 }
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"; then :
11077 ac_cv_lib_sqlite3_sqlite3_open_v2=yes
11078 else
11079 ac_cv_lib_sqlite3_sqlite3_open_v2=no
11080 fi
11081 rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11084 fi
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open_v2" >&5
11086 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open_v2" >&6; }
11087 if test "x$ac_cv_lib_sqlite3_sqlite3_open_v2" = x""yes; then :
11088 HAVE_SQLITE3_OPEN_V2=1
11089 else
11090 HAVE_SQLITE3_OPEN_V2=0
11091 fi
11092
11093 if test "$enable_load_extension" = "yes" ; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5
11095 $as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; }
11096 if test "${ac_cv_lib_sqlite3_sqlite3_load_extension+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-lsqlite3 $LIBS"
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11103
11104 /* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11107 #ifdef __cplusplus
11108 extern "C"
11109 #endif
11110 char sqlite3_load_extension ();
11111 int
11112 main ()
11113 {
11114 return sqlite3_load_extension ();
11115 ;
11116 return 0;
11117 }
11118 _ACEOF
11119 if ac_fn_c_try_link "$LINENO"; then :
11120 ac_cv_lib_sqlite3_sqlite3_load_extension=yes
11121 else
11122 ac_cv_lib_sqlite3_sqlite3_load_extension=no
11123 fi
11124 rm -f core conftest.err conftest.$ac_objext \
11125 conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_lib_save_LIBS
11127 fi
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
11129 $as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
11130 if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = x""yes; then :
11131 HAVE_SQLITE3_LOAD_EXTENSION=1
11132 else
11133 HAVE_SQLITE3_LOAD_EXTENSION=0
11134 fi
11135
11136 fi
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_backup_init in -lsqlite3" >&5
11138 $as_echo_n "checking for sqlite3_backup_init in -lsqlite3... " >&6; }
11139 if test "${ac_cv_lib_sqlite3_sqlite3_backup_init+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 ac_check_lib_save_LIBS=$LIBS
11143 LIBS="-lsqlite3 $LIBS"
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11150 #ifdef __cplusplus
11151 extern "C"
11152 #endif
11153 char sqlite3_backup_init ();
11154 int
11155 main ()
11156 {
11157 return sqlite3_backup_init ();
11158 ;
11159 return 0;
11160 }
11161 _ACEOF
11162 if ac_fn_c_try_link "$LINENO"; then :
11163 ac_cv_lib_sqlite3_sqlite3_backup_init=yes
11164 else
11165 ac_cv_lib_sqlite3_sqlite3_backup_init=no
11166 fi
11167 rm -f core conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext conftest.$ac_ext
11169 LIBS=$ac_check_lib_save_LIBS
11170 fi
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_backup_init" >&5
11172 $as_echo "$ac_cv_lib_sqlite3_sqlite3_backup_init" >&6; }
11173 if test "x$ac_cv_lib_sqlite3_sqlite3_backup_init" = x""yes; then :
11174 HAVE_SQLITE3_BACKUPAPI=1
11175 else
11176 HAVE_SQLITE3_BACKUPAPI=0
11177 fi
11178
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_profile in -lsqlite3" >&5
11180 $as_echo_n "checking for sqlite3_profile in -lsqlite3... " >&6; }
11181 if test "${ac_cv_lib_sqlite3_sqlite3_profile+set}" = set; then :
11182 $as_echo_n "(cached) " >&6
11183 else
11184 ac_check_lib_save_LIBS=$LIBS
11185 LIBS="-lsqlite3 $LIBS"
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188
11189 /* Override any GCC internal prototype to avoid an error.
11190 Use char because int might match the return type of a GCC
11191 builtin and then its argument prototype would still apply. */
11192 #ifdef __cplusplus
11193 extern "C"
11194 #endif
11195 char sqlite3_profile ();
11196 int
11197 main ()
11198 {
11199 return sqlite3_profile ();
11200 ;
11201 return 0;
11202 }
11203 _ACEOF
11204 if ac_fn_c_try_link "$LINENO"; then :
11205 ac_cv_lib_sqlite3_sqlite3_profile=yes
11206 else
11207 ac_cv_lib_sqlite3_sqlite3_profile=no
11208 fi
11209 rm -f core conftest.err conftest.$ac_objext \
11210 conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_lib_save_LIBS
11212 fi
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_profile" >&5
11214 $as_echo "$ac_cv_lib_sqlite3_sqlite3_profile" >&6; }
11215 if test "x$ac_cv_lib_sqlite3_sqlite3_profile" = x""yes; then :
11216 HAVE_SQLITE3_PROFILE=1
11217 else
11218 HAVE_SQLITE3_PROFILE=0
11219 fi
11220
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_status in -lsqlite3" >&5
11222 $as_echo_n "checking for sqlite3_status in -lsqlite3... " >&6; }
11223 if test "${ac_cv_lib_sqlite3_sqlite3_status+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 ac_check_lib_save_LIBS=$LIBS
11227 LIBS="-lsqlite3 $LIBS"
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11230
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 char sqlite3_status ();
11238 int
11239 main ()
11240 {
11241 return sqlite3_status ();
11242 ;
11243 return 0;
11244 }
11245 _ACEOF
11246 if ac_fn_c_try_link "$LINENO"; then :
11247 ac_cv_lib_sqlite3_sqlite3_status=yes
11248 else
11249 ac_cv_lib_sqlite3_sqlite3_status=no
11250 fi
11251 rm -f core conftest.err conftest.$ac_objext \
11252 conftest$ac_exeext conftest.$ac_ext
11253 LIBS=$ac_check_lib_save_LIBS
11254 fi
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_status" >&5
11256 $as_echo "$ac_cv_lib_sqlite3_sqlite3_status" >&6; }
11257 if test "x$ac_cv_lib_sqlite3_sqlite3_status" = x""yes; then :
11258 HAVE_SQLITE3_STATUS=1
11259 else
11260 HAVE_SQLITE3_STATUS=0
11261 fi
11262
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_db_status in -lsqlite3" >&5
11264 $as_echo_n "checking for sqlite3_db_status in -lsqlite3... " >&6; }
11265 if test "${ac_cv_lib_sqlite3_sqlite3_db_status+set}" = set; then :
11266 $as_echo_n "(cached) " >&6
11267 else
11268 ac_check_lib_save_LIBS=$LIBS
11269 LIBS="-lsqlite3 $LIBS"
11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11272
11273 /* Override any GCC internal prototype to avoid an error.
11274 Use char because int might match the return type of a GCC
11275 builtin and then its argument prototype would still apply. */
11276 #ifdef __cplusplus
11277 extern "C"
11278 #endif
11279 char sqlite3_db_status ();
11280 int
11281 main ()
11282 {
11283 return sqlite3_db_status ();
11284 ;
11285 return 0;
11286 }
11287 _ACEOF
11288 if ac_fn_c_try_link "$LINENO"; then :
11289 ac_cv_lib_sqlite3_sqlite3_db_status=yes
11290 else
11291 ac_cv_lib_sqlite3_sqlite3_db_status=no
11292 fi
11293 rm -f core conftest.err conftest.$ac_objext \
11294 conftest$ac_exeext conftest.$ac_ext
11295 LIBS=$ac_check_lib_save_LIBS
11296 fi
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_db_status" >&5
11298 $as_echo "$ac_cv_lib_sqlite3_sqlite3_db_status" >&6; }
11299 if test "x$ac_cv_lib_sqlite3_sqlite3_db_status" = x""yes; then :
11300 HAVE_SQLITE3_DB_STATUS=1
11301 else
11302 HAVE_SQLITE3_DB_STATUS=0
11303 fi
11304
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_stmt_status in -lsqlite3" >&5
11306 $as_echo_n "checking for sqlite3_stmt_status in -lsqlite3... " >&6; }
11307 if test "${ac_cv_lib_sqlite3_sqlite3_stmt_status+set}" = set; then :
11308 $as_echo_n "(cached) " >&6
11309 else
11310 ac_check_lib_save_LIBS=$LIBS
11311 LIBS="-lsqlite3 $LIBS"
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11314
11315 /* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
11318 #ifdef __cplusplus
11319 extern "C"
11320 #endif
11321 char sqlite3_stmt_status ();
11322 int
11323 main ()
11324 {
11325 return sqlite3_stmt_status ();
11326 ;
11327 return 0;
11328 }
11329 _ACEOF
11330 if ac_fn_c_try_link "$LINENO"; then :
11331 ac_cv_lib_sqlite3_sqlite3_stmt_status=yes
11332 else
11333 ac_cv_lib_sqlite3_sqlite3_stmt_status=no
11334 fi
11335 rm -f core conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337 LIBS=$ac_check_lib_save_LIBS
11338 fi
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_stmt_status" >&5
11340 $as_echo "$ac_cv_lib_sqlite3_sqlite3_stmt_status" >&6; }
11341 if test "x$ac_cv_lib_sqlite3_sqlite3_stmt_status" = x""yes; then :
11342 HAVE_SQLITE3_STMT_STATUS=1
11343 else
11344 HAVE_SQLITE3_STMT_STATUS=0
11345 fi
11346
11347 LIBS=$saved_LIBS
11348 CFLAGS=$saved_CFLAGS
11349 fi
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373 if test -z "$SQLITE3_A10N_C" ; then
11374 SQLITE3_A10N_C="native/dummy.c"
11375 SQLITE3_A10N_O="dummy.lo"
11376 fi
11377
11378
11379
11380
11381 ##########
11382 # Any usable SQLite found ?
11383 #
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SQLite" >&5
11385 $as_echo_n "checking for usable SQLite... " >&6; }
11386 if test "$HAVE_SQLITE2" != "1" -a "$HAVE_SQLITE3" != "1" ; then
11387 as_fn_error $? "No SQLite found, please try --with-sqlite/--with-sqlite3" "$LINENO" 5
11388 fi
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11390 $as_echo "yes" >&6; }
11391
11392 ##########
11393 # Find out if char ptr array can be passed in place of
11394 # a va_list (needed for sqlite_exec_vprintf() and
11395 # sqlite_vmprintf())
11396 #
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking va_list usage" >&5
11398 $as_echo_n "checking va_list usage... " >&6; }
11399 if test "$cross_compiling" = yes; then :
11400 USE_VFUNCS=0
11401 else
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11404
11405 #include <stdarg.h>
11406 #include <stdio.h>
11407
11408 static int
11409 vatest(char **x, ...)
11410 {
11411 va_list ap;
11412 char *y;
11413 int ret;
11414
11415 va_start(ap, x);
11416 y = va_arg(ap, char *);
11417 x = (char **) &x + 1;
11418 ret = (y != *x);
11419 va_end(ap);
11420 return ret;
11421 }
11422
11423 int
11424 main(int argc, char **argv)
11425 {
11426 exit(vatest(NULL, vatest, 0.0, 0, NULL));
11427 }
11428
11429 _ACEOF
11430 if ac_fn_c_try_run "$LINENO"; then :
11431 USE_VFUNCS=1
11432 else
11433 USE_VFUNCS=0
11434 fi
11435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11436 conftest.$ac_objext conftest.beam conftest.$ac_ext
11437 fi
11438
11439
11440 if test "$USE_VFUNCS" = "1" ; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using sqlite_exec_vprintf/sqlite_vmprintf" >&5
11442 $as_echo "using sqlite_exec_vprintf/sqlite_vmprintf" >&6; }
11443 VALIST_FLAGS=""
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NOT using sqlite_exec_vprintf/sqlite_vmprintf" >&5
11446 $as_echo "NOT using sqlite_exec_vprintf/sqlite_vmprintf" >&6; }
11447 VALIST_FLAGS="-DCANT_PASS_VALIST_AS_CHARPTR=1"
11448 fi
11449
11450
11451 ##########
11452 # Find JRE/JDK things
11453 #
11454 # Extract the first word of "readlink", so it can be a program name with args.
11455 set dummy readlink; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if test "${ac_cv_prog_READLINK+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 if test -n "$READLINK"; then
11462 ac_cv_prog_READLINK="$READLINK" # Let the user override the test.
11463 else
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11466 do
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11471 ac_cv_prog_READLINK="readlink"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11474 fi
11475 done
11476 done
11477 IFS=$as_save_IFS
11478
11479 fi
11480 fi
11481 READLINK=$ac_cv_prog_READLINK
11482 if test -n "$READLINK"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
11484 $as_echo "$READLINK" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488 fi
11489
11490
11491
11492 # Check whether --with-jdk was given.
11493 if test "${with_jdk+set}" = set; then :
11494 withval=$with_jdk; JAVA_HOME=$withval
11495 fi
11496
11497 if test -z "$JAVA_HOME" ; then
11498 JAVA_HOME=`which javac`
11499 if test -z "$JAVA_HOME" ; then
11500 as_fn_error $? "JAVA_HOME directory not found, please use --with-jdk=DIR" "$LINENO" 5
11501 fi
11502 if test -n "$READLINK" ; then
11503 while test -L $JAVA_HOME ; do
11504 JAVA_HOME=`$READLINK $JAVA_HOME`
11505 done
11506 fi
11507 JAVA_HOME=`dirname $JAVA_HOME`
11508 JAVA_HOME=`dirname $JAVA_HOME`
11509 if test "x$JAR_DIR_UNSPEC" = "xyes" ; then
11510 JAR_DIR=$JAVA_HOME/jre/lib/ext
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will install sqlite.jar into $JAR_DIR" >&5
11512 $as_echo "will install sqlite.jar into $JAR_DIR" >&6; }
11513 fi
11514 if test "x$NATIVE_LIB_DIR" = "x" ; then
11515 if test "$prefix" = "/usr/local" ; then
11516 case "$target_cpu" in
11517 i[3-6]86*)
11518 NATIVE_LIB_DIR=$JAVA_HOME/jre/lib/i386
11519 ;;
11520 x86_64)
11521 if test -d $JAVA_HOME/jre/lib/amd64 ; then
11522 NATIVE_LIB_DIR=$JAVA_HOME/jre/lib/amd64
11523 else
11524 NATIVE_LIB_DIR=$JAVA_HOME/jre/lib/$target_cpu
11525 fi
11526 ;;
11527 *)
11528 NATIVE_LIB_DIR=$JAVA_HOME/jre/lib/$target_cpu
11529 ;;
11530 esac
11531 fi
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will install libsqlite_jni into $NATIVE_LIB_DIR" >&5
11533 $as_echo "will install libsqlite_jni into $NATIVE_LIB_DIR" >&6; }
11534 fi
11535 fi
11536 if test ! -d "$JAVA_HOME" ; then
11537 as_fn_error $? "JAVA_HOME directory not found, please use --with-jdk=DIR" "$LINENO" 5
11538 fi
11539
11540 if test -n "$JAVA_HOME" ; then
11541 if test "x$JAVA_RUN" = "x"; then
11542 JAVA_RUN=$JAVA_HOME/bin/java
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding JAVA command with: $JAVA_RUN" >&5
11545 $as_echo "$as_me: WARNING: Overriding JAVA command with: $JAVA_RUN" >&2;}
11546 fi
11547 JAVAC=$JAVA_HOME/bin/javac
11548 JAVAH="$JAVA_HOME/bin/javah -jni"
11549 JAR=$JAVA_HOME/bin/jar
11550 JAVADOC=$JAVA_HOME/bin/javadoc
11551 else
11552 if test "x$JAVA_RUN" = "x"; then
11553 JAVA_RUN=`which java`
11554 else
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Overriding JAVA command with: $JAVA_RUN" >&5
11556 $as_echo "$as_me: WARNING: Overriding JAVA command with: $JAVA_RUN" >&2;}
11557 fi
11558 JAVAC=`which javac`
11559 JAVAH="`which javah` -jni"
11560 JAR=`which jar`
11561 JAVADOC=`which javadoc`
11562 JAVA_HOME=`dirname $JAVAC`
11563 JAVA_HOME=`dirname $JAVA_HOME`
11564 fi
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574 # Set up the JNI include directory specification
11575 case $build_os in
11576 solaris*)
11577 JNIINCLUDE="-I$JAVA_HOME/include -I$JAVA_HOME/include/solaris"
11578 ;;
11579 linux*)
11580 JNIINCLUDE="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
11581 ;;
11582 freebsd*)
11583 JNIINCLUDE="-I$JAVA_HOME/include -I$JAVA_HOME/include/freebsd"
11584 ;;
11585 *)
11586 JNIINCLUDE="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/${build_os}"
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: setting generic JNI include file directives!" >&5
11588 $as_echo "$as_me: WARNING: setting generic JNI include file directives!" >&2;}
11589 ;;
11590 esac
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting JNI include file directives: $JNIINCLUDE" >&5
11592 $as_echo "setting JNI include file directives: $JNIINCLUDE" >&6; }
11593
11594 # Figure out JDK version
11595 if test "x$JDBCVER" = "x" ; then
11596 JDBCVER=JDBC2
11597 $JAVA_RUN -version 2>&1 | grep 'version "1.1' >/dev/null && JDBCVER=JDBC1
11598 $JAVA_RUN -version 2>&1 | grep 'version "1.4' >/dev/null && JDBCVER=JDBC2x
11599 $JAVA_RUN -version 2>&1 | grep 'version "1.5' >/dev/null && JDBCVER=JDBC2y
11600 $JAVA_RUN -version 2>&1 | grep 'version "1.6' >/dev/null && JDBCVER=JDBC2z
11601 $JAVA_RUN -version 2>&1 | grep 'version "1.7' >/dev/null && JDBCVER=JDBC2z1
11602 $JAVA_RUN -version 2>&1 | grep 'JSR169' >/dev/null && JDBCVER=JDBC0
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: overriding JDBC driver: $JDBCVER" >&5
11605 $as_echo "$as_me: WARNING: overriding JDBC driver: $JDBCVER" >&2;}
11606 fi
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JDBC driver from $JDBCVER directory" >&5
11608 $as_echo "using JDBC driver from $JDBCVER directory" >&6; }
11609
11610 # default to pre 1.7 source
11611 cp SQLite/JDBCDriver.java16 SQLite/JDBCDriver.java
11612 cp SQLite/JDBCDataSource.javajsr169 SQLite/JDBCDataSource.java
11613
11614 if test "$JDBCVER" = "JDBC2y" ; then
11615 # 1.5 gives one unchecked warning on SQLite/TableResult.java
11616 JAVAC="$JAVAC -nowarn"
11617 fi
11618 if test "$JDBCVER" = "JDBC2z" ; then
11619 # 1.6 gives some unchecked warnings, e.g. on SQLite/TableResult.java
11620 JAVAC="$JAVAC -nowarn"
11621 fi
11622 if test "$JDBCVER" = "JDBC2z1" ; then
11623 # 1.7 gives some unchecked warnings, e.g. on SQLite/TableResult.java
11624 JAVAC="$JAVAC -nowarn"
11625 cp SQLite/JDBCDriver.java17 SQLite/JDBCDriver.java
11626 cp SQLite/JDBCDataSource.java17 SQLite/JDBCDataSource.java
11627 fi
11628
11629 if test "x$NATIVE_LIB_DIR" = "x" ; then
11630 NATIVE_LIB_DIR=$libdir
11631 fi
11632
11633
11634
11635
11636
11637
11638 ac_config_files="$ac_config_files Makefile"
11639
11640 cat >confcache <<\_ACEOF
11641 # This file is a shell script that caches the results of configure
11642 # tests run on this system so they can be shared between configure
11643 # scripts and configure runs, see configure's option --config-cache.
11644 # It is not useful on other systems. If it contains results you don't
11645 # want to keep, you may remove or edit it.
11646 #
11647 # config.status only pays attention to the cache file if you give it
11648 # the --recheck option to rerun configure.
11649 #
11650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11652 # following values.
11653
11654 _ACEOF
11655
11656 # The following way of writing the cache mishandles newlines in values,
11657 # but we know of no workaround that is simple, portable, and efficient.
11658 # So, we kill variables containing newlines.
11659 # Ultrix sh set writes to stderr and can't be redirected directly,
11660 # and sets the high bit in the cache file unless we assign to the vars.
11661 (
11662 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11663 eval ac_val=\$$ac_var
11664 case $ac_val in #(
11665 *${as_nl}*)
11666 case $ac_var in #(
11667 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11668 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11669 esac
11670 case $ac_var in #(
11671 _ | IFS | as_nl) ;; #(
11672 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11673 *) { eval $ac_var=; unset $ac_var;} ;;
11674 esac ;;
11675 esac
11676 done
11677
11678 (set) 2>&1 |
11679 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11680 *${as_nl}ac_space=\ *)
11681 # `set' does not quote correctly, so add quotes: double-quote
11682 # substitution turns \\\\ into \\, and sed turns \\ into \.
11683 sed -n \
11684 "s/'/'\\\\''/g;
11685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11686 ;; #(
11687 *)
11688 # `set' quotes correctly as required by POSIX, so do not add quotes.
11689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11690 ;;
11691 esac |
11692 sort
11693 ) |
11694 sed '
11695 /^ac_cv_env_/b end
11696 t clear
11697 :clear
11698 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11699 t end
11700 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11701 :end' >>confcache
11702 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11703 if test -w "$cache_file"; then
11704 test "x$cache_file" != "x/dev/null" &&
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11706 $as_echo "$as_me: updating cache $cache_file" >&6;}
11707 cat confcache >$cache_file
11708 else
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11710 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11711 fi
11712 fi
11713 rm -f confcache
11714
11715 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11716 # Let make expand exec_prefix.
11717 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11718
11719 # Transform confdefs.h into DEFS.
11720 # Protect against shell expansion while executing Makefile rules.
11721 # Protect against Makefile macro expansion.
11722 #
11723 # If the first sed substitution is executed (which looks for macros that
11724 # take arguments), then branch to the quote section. Otherwise,
11725 # look for a macro that doesn't take arguments.
11726 ac_script='
11727 :mline
11728 /\\$/{
11729 N
11730 s,\\\n,,
11731 b mline
11732 }
11733 t clear
11734 :clear
11735 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11736 t quote
11737 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11738 t quote
11739 b any
11740 :quote
11741 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11742 s/\[/\\&/g
11743 s/\]/\\&/g
11744 s/\$/$$/g
11745 H
11746 :any
11747 ${
11748 g
11749 s/^\n//
11750 s/\n/ /g
11751 p
11752 }
11753 '
11754 DEFS=`sed -n "$ac_script" confdefs.h`
11755
11756
11757 ac_libobjs=
11758 ac_ltlibobjs=
11759 U=
11760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11761 # 1. Remove the extension, and $U if already installed.
11762 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11763 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11764 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11765 # will be set to the directory where LIBOBJS objects are built.
11766 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11767 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11768 done
11769 LIBOBJS=$ac_libobjs
11770
11771 LTLIBOBJS=$ac_ltlibobjs
11772
11773
11774
11775 : ${CONFIG_STATUS=./config.status}
11776 ac_write_fail=0
11777 ac_clean_files_save=$ac_clean_files
11778 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11780 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11781 as_write_fail=0
11782 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11783 #! $SHELL
11784 # Generated by $as_me.
11785 # Run this file to recreate the current configuration.
11786 # Compiler output produced by configure, useful for debugging
11787 # configure, is in config.log if it exists.
11788
11789 debug=false
11790 ac_cs_recheck=false
11791 ac_cs_silent=false
11792
11793 SHELL=\${CONFIG_SHELL-$SHELL}
11794 export SHELL
11795 _ASEOF
11796 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11797 ## -------------------- ##
11798 ## M4sh Initialization. ##
11799 ## -------------------- ##
11800
11801 # Be more Bourne compatible
11802 DUALCASE=1; export DUALCASE # for MKS sh
11803 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11804 emulate sh
11805 NULLCMD=:
11806 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11807 # is contrary to our usage. Disable this feature.
11808 alias -g '${1+"$@"}'='"$@"'
11809 setopt NO_GLOB_SUBST
11810 else
11811 case `(set -o) 2>/dev/null` in #(
11812 *posix*) :
11813 set -o posix ;; #(
11814 *) :
11815 ;;
11816 esac
11817 fi
11818
11819
11820 as_nl='
11821 '
11822 export as_nl
11823 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11824 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11825 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11826 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11827 # Prefer a ksh shell builtin over an external printf program on Solaris,
11828 # but without wasting forks for bash or zsh.
11829 if test -z "$BASH_VERSION$ZSH_VERSION" \
11830 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11831 as_echo='print -r --'
11832 as_echo_n='print -rn --'
11833 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11834 as_echo='printf %s\n'
11835 as_echo_n='printf %s'
11836 else
11837 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11838 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11839 as_echo_n='/usr/ucb/echo -n'
11840 else
11841 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11842 as_echo_n_body='eval
11843 arg=$1;
11844 case $arg in #(
11845 *"$as_nl"*)
11846 expr "X$arg" : "X\\(.*\\)$as_nl";
11847 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11848 esac;
11849 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11850 '
11851 export as_echo_n_body
11852 as_echo_n='sh -c $as_echo_n_body as_echo'
11853 fi
11854 export as_echo_body
11855 as_echo='sh -c $as_echo_body as_echo'
11856 fi
11857
11858 # The user is always right.
11859 if test "${PATH_SEPARATOR+set}" != set; then
11860 PATH_SEPARATOR=:
11861 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11862 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11863 PATH_SEPARATOR=';'
11864 }
11865 fi
11866
11867
11868 # IFS
11869 # We need space, tab and new line, in precisely that order. Quoting is
11870 # there to prevent editors from complaining about space-tab.
11871 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11872 # splitting by setting IFS to empty value.)
11873 IFS=" "" $as_nl"
11874
11875 # Find who we are. Look in the path if we contain no directory separator.
11876 case $0 in #((
11877 *[\\/]* ) as_myself=$0 ;;
11878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879 for as_dir in $PATH
11880 do
11881 IFS=$as_save_IFS
11882 test -z "$as_dir" && as_dir=.
11883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11884 done
11885 IFS=$as_save_IFS
11886
11887 ;;
11888 esac
11889 # We did not find ourselves, most probably we were run as `sh COMMAND'
11890 # in which case we are not to be found in the path.
11891 if test "x$as_myself" = x; then
11892 as_myself=$0
11893 fi
11894 if test ! -f "$as_myself"; then
11895 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11896 exit 1
11897 fi
11898
11899 # Unset variables that we do not need and which cause bugs (e.g. in
11900 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11901 # suppresses any "Segmentation fault" message there. '((' could
11902 # trigger a bug in pdksh 5.2.14.
11903 for as_var in BASH_ENV ENV MAIL MAILPATH
11904 do eval test x\${$as_var+set} = xset \
11905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11906 done
11907 PS1='$ '
11908 PS2='> '
11909 PS4='+ '
11910
11911 # NLS nuisances.
11912 LC_ALL=C
11913 export LC_ALL
11914 LANGUAGE=C
11915 export LANGUAGE
11916
11917 # CDPATH.
11918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11919
11920
11921 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11922 # ----------------------------------------
11923 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11924 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11925 # script with STATUS, using 1 if that was 0.
11926 as_fn_error ()
11927 {
11928 as_status=$1; test $as_status -eq 0 && as_status=1
11929 if test "$4"; then
11930 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11931 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11932 fi
11933 $as_echo "$as_me: error: $2" >&2
11934 as_fn_exit $as_status
11935 } # as_fn_error
11936
11937
11938 # as_fn_set_status STATUS
11939 # -----------------------
11940 # Set $? to STATUS, without forking.
11941 as_fn_set_status ()
11942 {
11943 return $1
11944 } # as_fn_set_status
11945
11946 # as_fn_exit STATUS
11947 # -----------------
11948 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11949 as_fn_exit ()
11950 {
11951 set +e
11952 as_fn_set_status $1
11953 exit $1
11954 } # as_fn_exit
11955
11956 # as_fn_unset VAR
11957 # ---------------
11958 # Portably unset VAR.
11959 as_fn_unset ()
11960 {
11961 { eval $1=; unset $1;}
11962 }
11963 as_unset=as_fn_unset
11964 # as_fn_append VAR VALUE
11965 # ----------------------
11966 # Append the text in VALUE to the end of the definition contained in VAR. Take
11967 # advantage of any shell optimizations that allow amortized linear growth over
11968 # repeated appends, instead of the typical quadratic growth present in naive
11969 # implementations.
11970 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11971 eval 'as_fn_append ()
11972 {
11973 eval $1+=\$2
11974 }'
11975 else
11976 as_fn_append ()
11977 {
11978 eval $1=\$$1\$2
11979 }
11980 fi # as_fn_append
11981
11982 # as_fn_arith ARG...
11983 # ------------------
11984 # Perform arithmetic evaluation on the ARGs, and store the result in the
11985 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11986 # must be portable across $(()) and expr.
11987 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11988 eval 'as_fn_arith ()
11989 {
11990 as_val=$(( $* ))
11991 }'
11992 else
11993 as_fn_arith ()
11994 {
11995 as_val=`expr "$@" || test $? -eq 1`
11996 }
11997 fi # as_fn_arith
11998
11999
12000 if expr a : '\(a\)' >/dev/null 2>&1 &&
12001 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12002 as_expr=expr
12003 else
12004 as_expr=false
12005 fi
12006
12007 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12008 as_basename=basename
12009 else
12010 as_basename=false
12011 fi
12012
12013 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12014 as_dirname=dirname
12015 else
12016 as_dirname=false
12017 fi
12018
12019 as_me=`$as_basename -- "$0" ||
12020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12021 X"$0" : 'X\(//\)$' \| \
12022 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12023 $as_echo X/"$0" |
12024 sed '/^.*\/\([^/][^/]*\)\/*$/{
12025 s//\1/
12026 q
12027 }
12028 /^X\/\(\/\/\)$/{
12029 s//\1/
12030 q
12031 }
12032 /^X\/\(\/\).*/{
12033 s//\1/
12034 q
12035 }
12036 s/.*/./; q'`
12037
12038 # Avoid depending upon Character Ranges.
12039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12042 as_cr_digits='0123456789'
12043 as_cr_alnum=$as_cr_Letters$as_cr_digits
12044
12045 ECHO_C= ECHO_N= ECHO_T=
12046 case `echo -n x` in #(((((
12047 -n*)
12048 case `echo 'xy\c'` in
12049 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12050 xy) ECHO_C='\c';;
12051 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12052 ECHO_T=' ';;
12053 esac;;
12054 *)
12055 ECHO_N='-n';;
12056 esac
12057
12058 rm -f conf$$ conf$$.exe conf$$.file
12059 if test -d conf$$.dir; then
12060 rm -f conf$$.dir/conf$$.file
12061 else
12062 rm -f conf$$.dir
12063 mkdir conf$$.dir 2>/dev/null
12064 fi
12065 if (echo >conf$$.file) 2>/dev/null; then
12066 if ln -s conf$$.file conf$$ 2>/dev/null; then
12067 as_ln_s='ln -s'
12068 # ... but there are two gotchas:
12069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12071 # In both cases, we have to default to `cp -p'.
12072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12073 as_ln_s='cp -p'
12074 elif ln conf$$.file conf$$ 2>/dev/null; then
12075 as_ln_s=ln
12076 else
12077 as_ln_s='cp -p'
12078 fi
12079 else
12080 as_ln_s='cp -p'
12081 fi
12082 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12083 rmdir conf$$.dir 2>/dev/null
12084
12085
12086 # as_fn_mkdir_p
12087 # -------------
12088 # Create "$as_dir" as a directory, including parents if necessary.
12089 as_fn_mkdir_p ()
12090 {
12091
12092 case $as_dir in #(
12093 -*) as_dir=./$as_dir;;
12094 esac
12095 test -d "$as_dir" || eval $as_mkdir_p || {
12096 as_dirs=
12097 while :; do
12098 case $as_dir in #(
12099 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12100 *) as_qdir=$as_dir;;
12101 esac
12102 as_dirs="'$as_qdir' $as_dirs"
12103 as_dir=`$as_dirname -- "$as_dir" ||
12104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12105 X"$as_dir" : 'X\(//\)[^/]' \| \
12106 X"$as_dir" : 'X\(//\)$' \| \
12107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12108 $as_echo X"$as_dir" |
12109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12110 s//\1/
12111 q
12112 }
12113 /^X\(\/\/\)[^/].*/{
12114 s//\1/
12115 q
12116 }
12117 /^X\(\/\/\)$/{
12118 s//\1/
12119 q
12120 }
12121 /^X\(\/\).*/{
12122 s//\1/
12123 q
12124 }
12125 s/.*/./; q'`
12126 test -d "$as_dir" && break
12127 done
12128 test -z "$as_dirs" || eval "mkdir $as_dirs"
12129 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12130
12131
12132 } # as_fn_mkdir_p
12133 if mkdir -p . 2>/dev/null; then
12134 as_mkdir_p='mkdir -p "$as_dir"'
12135 else
12136 test -d ./-p && rmdir ./-p
12137 as_mkdir_p=false
12138 fi
12139
12140 if test -x / >/dev/null 2>&1; then
12141 as_test_x='test -x'
12142 else
12143 if ls -dL / >/dev/null 2>&1; then
12144 as_ls_L_option=L
12145 else
12146 as_ls_L_option=
12147 fi
12148 as_test_x='
12149 eval sh -c '\''
12150 if test -d "$1"; then
12151 test -d "$1/.";
12152 else
12153 case $1 in #(
12154 -*)set "./$1";;
12155 esac;
12156 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12157 ???[sx]*):;;*)false;;esac;fi
12158 '\'' sh
12159 '
12160 fi
12161 as_executable_p=$as_test_x
12162
12163 # Sed expression to map a string onto a valid CPP name.
12164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12165
12166 # Sed expression to map a string onto a valid variable name.
12167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12168
12169
12170 exec 6>&1
12171 ## ----------------------------------- ##
12172 ## Main body of $CONFIG_STATUS script. ##
12173 ## ----------------------------------- ##
12174 _ASEOF
12175 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12176
12177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12178 # Save the log message, to keep $0 and so on meaningful, and to
12179 # report actual input values of CONFIG_FILES etc. instead of their
12180 # values after options handling.
12181 ac_log="
12182 This file was extended by $as_me, which was
12183 generated by GNU Autoconf 2.67. Invocation command line was
12184
12185 CONFIG_FILES = $CONFIG_FILES
12186 CONFIG_HEADERS = $CONFIG_HEADERS
12187 CONFIG_LINKS = $CONFIG_LINKS
12188 CONFIG_COMMANDS = $CONFIG_COMMANDS
12189 $ $0 $@
12190
12191 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12192 "
12193
12194 _ACEOF
12195
12196 case $ac_config_files in *"
12197 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12198 esac
12199
12200
12201
12202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12203 # Files that config.status was made for.
12204 config_files="$ac_config_files"
12205 config_commands="$ac_config_commands"
12206
12207 _ACEOF
12208
12209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12210 ac_cs_usage="\
12211 \`$as_me' instantiates files and other configuration actions
12212 from templates according to the current configuration. Unless the files
12213 and actions are specified as TAGs, all are instantiated by default.
12214
12215 Usage: $0 [OPTION]... [TAG]...
12216
12217 -h, --help print this help, then exit
12218 -V, --version print version number and configuration settings, then exit
12219 --config print configuration, then exit
12220 -q, --quiet, --silent
12221 do not print progress messages
12222 -d, --debug don't remove temporary files
12223 --recheck update $as_me by reconfiguring in the same conditions
12224 --file=FILE[:TEMPLATE]
12225 instantiate the configuration file FILE
12226
12227 Configuration files:
12228 $config_files
12229
12230 Configuration commands:
12231 $config_commands
12232
12233 Report bugs to the package provider."
12234
12235 _ACEOF
12236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12237 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12238 ac_cs_version="\\
12239 config.status
12240 configured by $0, generated by GNU Autoconf 2.67,
12241 with options \\"\$ac_cs_config\\"
12242
12243 Copyright (C) 2010 Free Software Foundation, Inc.
12244 This config.status script is free software; the Free Software Foundation
12245 gives unlimited permission to copy, distribute and modify it."
12246
12247 ac_pwd='$ac_pwd'
12248 srcdir='$srcdir'
12249 INSTALL='$INSTALL'
12250 test -n "\$AWK" || AWK=awk
12251 _ACEOF
12252
12253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12254 # The default lists apply if the user does not specify any file.
12255 ac_need_defaults=:
12256 while test $# != 0
12257 do
12258 case $1 in
12259 --*=?*)
12260 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12261 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12262 ac_shift=:
12263 ;;
12264 --*=)
12265 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12266 ac_optarg=
12267 ac_shift=:
12268 ;;
12269 *)
12270 ac_option=$1
12271 ac_optarg=$2
12272 ac_shift=shift
12273 ;;
12274 esac
12275
12276 case $ac_option in
12277 # Handling of the options.
12278 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12279 ac_cs_recheck=: ;;
12280 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12281 $as_echo "$ac_cs_version"; exit ;;
12282 --config | --confi | --conf | --con | --co | --c )
12283 $as_echo "$ac_cs_config"; exit ;;
12284 --debug | --debu | --deb | --de | --d | -d )
12285 debug=: ;;
12286 --file | --fil | --fi | --f )
12287 $ac_shift
12288 case $ac_optarg in
12289 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12290 '') as_fn_error $? "missing file argument" ;;
12291 esac
12292 as_fn_append CONFIG_FILES " '$ac_optarg'"
12293 ac_need_defaults=false;;
12294 --he | --h | --help | --hel | -h )
12295 $as_echo "$ac_cs_usage"; exit ;;
12296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12297 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12298 ac_cs_silent=: ;;
12299
12300 # This is an error.
12301 -*) as_fn_error $? "unrecognized option: \`$1'
12302 Try \`$0 --help' for more information." ;;
12303
12304 *) as_fn_append ac_config_targets " $1"
12305 ac_need_defaults=false ;;
12306
12307 esac
12308 shift
12309 done
12310
12311 ac_configure_extra_args=
12312
12313 if $ac_cs_silent; then
12314 exec 6>/dev/null
12315 ac_configure_extra_args="$ac_configure_extra_args --silent"
12316 fi
12317
12318 _ACEOF
12319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12320 if \$ac_cs_recheck; then
12321 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12322 shift
12323 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12324 CONFIG_SHELL='$SHELL'
12325 export CONFIG_SHELL
12326 exec "\$@"
12327 fi
12328
12329 _ACEOF
12330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12331 exec 5>>config.log
12332 {
12333 echo
12334 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12335 ## Running $as_me. ##
12336 _ASBOX
12337 $as_echo "$ac_log"
12338 } >&5
12339
12340 _ACEOF
12341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12342 #
12343 # INIT-COMMANDS
12344 #
12345
12346
12347 # The HP-UX ksh and POSIX shell print the target directory to stdout
12348 # if CDPATH is set.
12349 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12350
12351 sed_quote_subst='$sed_quote_subst'
12352 double_quote_subst='$double_quote_subst'
12353 delay_variable_subst='$delay_variable_subst'
12354 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12355 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12356 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12357 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12358 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12359 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12360 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12361 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12362 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12363 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12364 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12365 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12366 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12367 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12368 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12369 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12370 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12371 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12372 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12373 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12374 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12375 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12376 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12377 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12378 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12379 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12380 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12381 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12382 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12383 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12384 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12385 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12386 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12387 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12388 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12389 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12390 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12391 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12392 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12393 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12394 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12395 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12396 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12397 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12398 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"`'
12399 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"`'
12400 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12401 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12402 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12403 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12404 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12405 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12406 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12407 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12408 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12409 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12410 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12411 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12412 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12413 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12414 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12415 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12416 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12417 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12418 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12419 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12420 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12421 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12422 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12423 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12424 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12425 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12426 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12427 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12428 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12429 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12430 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12431 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12432 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12433 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12434 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12435 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12436 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12437 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12438 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12439 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12440 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12441 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12442 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12443 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12444 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12445 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12446 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12447 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12448 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12449 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12450 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12451 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12452 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12453 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12454 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12455 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12456 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12457 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12458 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12459 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12460 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12461 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12462 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12463 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12464 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12465 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12466 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12467 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12468 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12469 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12470 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12471 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12472
12473 LTCC='$LTCC'
12474 LTCFLAGS='$LTCFLAGS'
12475 compiler='$compiler_DEFAULT'
12476
12477 # Quote evaled strings.
12478 for var in SED \
12479 GREP \
12480 EGREP \
12481 FGREP \
12482 LD \
12483 NM \
12484 LN_S \
12485 lt_SP2NL \
12486 lt_NL2SP \
12487 reload_flag \
12488 OBJDUMP \
12489 deplibs_check_method \
12490 file_magic_cmd \
12491 AR \
12492 AR_FLAGS \
12493 STRIP \
12494 RANLIB \
12495 CC \
12496 CFLAGS \
12497 compiler \
12498 lt_cv_sys_global_symbol_pipe \
12499 lt_cv_sys_global_symbol_to_cdecl \
12500 lt_cv_sys_global_symbol_to_c_name_address \
12501 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12502 SHELL \
12503 ECHO \
12504 lt_prog_compiler_no_builtin_flag \
12505 lt_prog_compiler_wl \
12506 lt_prog_compiler_pic \
12507 lt_prog_compiler_static \
12508 lt_cv_prog_compiler_c_o \
12509 need_locks \
12510 DSYMUTIL \
12511 NMEDIT \
12512 LIPO \
12513 OTOOL \
12514 OTOOL64 \
12515 shrext_cmds \
12516 export_dynamic_flag_spec \
12517 whole_archive_flag_spec \
12518 compiler_needs_object \
12519 with_gnu_ld \
12520 allow_undefined_flag \
12521 no_undefined_flag \
12522 hardcode_libdir_flag_spec \
12523 hardcode_libdir_flag_spec_ld \
12524 hardcode_libdir_separator \
12525 fix_srcfile_path \
12526 exclude_expsyms \
12527 include_expsyms \
12528 file_list_spec \
12529 variables_saved_for_relink \
12530 libname_spec \
12531 library_names_spec \
12532 soname_spec \
12533 finish_eval \
12534 old_striplib \
12535 striplib; do
12536 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12537 *[\\\\\\\`\\"\\\$]*)
12538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12539 ;;
12540 *)
12541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12542 ;;
12543 esac
12544 done
12545
12546 # Double-quote double-evaled strings.
12547 for var in reload_cmds \
12548 old_postinstall_cmds \
12549 old_postuninstall_cmds \
12550 old_archive_cmds \
12551 extract_expsyms_cmds \
12552 old_archive_from_new_cmds \
12553 old_archive_from_expsyms_cmds \
12554 archive_cmds \
12555 archive_expsym_cmds \
12556 module_cmds \
12557 module_expsym_cmds \
12558 export_symbols_cmds \
12559 prelink_cmds \
12560 postinstall_cmds \
12561 postuninstall_cmds \
12562 finish_cmds \
12563 sys_lib_search_path_spec \
12564 sys_lib_dlsearch_path_spec; do
12565 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12566 *[\\\\\\\`\\"\\\$]*)
12567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12568 ;;
12569 *)
12570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12571 ;;
12572 esac
12573 done
12574
12575 # Fix-up fallback echo if it was mangled by the above quoting rules.
12576 case \$lt_ECHO in
12577 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12578 ;;
12579 esac
12580
12581 ac_aux_dir='$ac_aux_dir'
12582 xsi_shell='$xsi_shell'
12583 lt_shell_append='$lt_shell_append'
12584
12585 # See if we are running on zsh, and set the options which allow our
12586 # commands through without removal of \ escapes INIT.
12587 if test -n "\${ZSH_VERSION+set}" ; then
12588 setopt NO_GLOB_SUBST
12589 fi
12590
12591
12592 PACKAGE='$PACKAGE'
12593 VERSION='$VERSION'
12594 TIMESTAMP='$TIMESTAMP'
12595 RM='$RM'
12596 ofile='$ofile'
12597
12598
12599
12600
12601 _ACEOF
12602
12603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12604
12605 # Handling of arguments.
12606 for ac_config_target in $ac_config_targets
12607 do
12608 case $ac_config_target in
12609 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12611
12612 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12613 esac
12614 done
12615
12616
12617 # If the user did not use the arguments to specify the items to instantiate,
12618 # then the envvar interface is used. Set only those that are not.
12619 # We use the long form for the default assignment because of an extremely
12620 # bizarre bug on SunOS 4.1.3.
12621 if $ac_need_defaults; then
12622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12623 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12624 fi
12625
12626 # Have a temporary directory for convenience. Make it in the build tree
12627 # simply because there is no reason against having it here, and in addition,
12628 # creating and moving files from /tmp can sometimes cause problems.
12629 # Hook for its removal unless debugging.
12630 # Note that there is a small window in which the directory will not be cleaned:
12631 # after its creation but before its name has been assigned to `$tmp'.
12632 $debug ||
12633 {
12634 tmp=
12635 trap 'exit_status=$?
12636 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12637 ' 0
12638 trap 'as_fn_exit 1' 1 2 13 15
12639 }
12640 # Create a (secure) tmp directory for tmp files.
12641
12642 {
12643 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12644 test -n "$tmp" && test -d "$tmp"
12645 } ||
12646 {
12647 tmp=./conf$$-$RANDOM
12648 (umask 077 && mkdir "$tmp")
12649 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12650
12651 # Set up the scripts for CONFIG_FILES section.
12652 # No need to generate them if there are no CONFIG_FILES.
12653 # This happens for instance with `./config.status config.h'.
12654 if test -n "$CONFIG_FILES"; then
12655
12656
12657 ac_cr=`echo X | tr X '\015'`
12658 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12659 # But we know of no other shell where ac_cr would be empty at this
12660 # point, so we can use a bashism as a fallback.
12661 if test "x$ac_cr" = x; then
12662 eval ac_cr=\$\'\\r\'
12663 fi
12664 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12665 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12666 ac_cs_awk_cr='\\r'
12667 else
12668 ac_cs_awk_cr=$ac_cr
12669 fi
12670
12671 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12672 _ACEOF
12673
12674
12675 {
12676 echo "cat >conf$$subs.awk <<_ACEOF" &&
12677 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12678 echo "_ACEOF"
12679 } >conf$$subs.sh ||
12680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12681 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12682 ac_delim='%!_!# '
12683 for ac_last_try in false false false false false :; do
12684 . ./conf$$subs.sh ||
12685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12686
12687 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12688 if test $ac_delim_n = $ac_delim_num; then
12689 break
12690 elif $ac_last_try; then
12691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12692 else
12693 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12694 fi
12695 done
12696 rm -f conf$$subs.sh
12697
12698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12699 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12700 _ACEOF
12701 sed -n '
12702 h
12703 s/^/S["/; s/!.*/"]=/
12704 p
12705 g
12706 s/^[^!]*!//
12707 :repl
12708 t repl
12709 s/'"$ac_delim"'$//
12710 t delim
12711 :nl
12712 h
12713 s/\(.\{148\}\)..*/\1/
12714 t more1
12715 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12716 p
12717 n
12718 b repl
12719 :more1
12720 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12721 p
12722 g
12723 s/.\{148\}//
12724 t nl
12725 :delim
12726 h
12727 s/\(.\{148\}\)..*/\1/
12728 t more2
12729 s/["\\]/\\&/g; s/^/"/; s/$/"/
12730 p
12731 b
12732 :more2
12733 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12734 p
12735 g
12736 s/.\{148\}//
12737 t delim
12738 ' <conf$$subs.awk | sed '
12739 /^[^""]/{
12740 N
12741 s/\n//
12742 }
12743 ' >>$CONFIG_STATUS || ac_write_fail=1
12744 rm -f conf$$subs.awk
12745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12746 _ACAWK
12747 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12748 for (key in S) S_is_set[key] = 1
12749 FS = ""
12750
12751 }
12752 {
12753 line = $ 0
12754 nfields = split(line, field, "@")
12755 substed = 0
12756 len = length(field[1])
12757 for (i = 2; i < nfields; i++) {
12758 key = field[i]
12759 keylen = length(key)
12760 if (S_is_set[key]) {
12761 value = S[key]
12762 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12763 len += length(value) + length(field[++i])
12764 substed = 1
12765 } else
12766 len += 1 + keylen
12767 }
12768
12769 print line
12770 }
12771
12772 _ACAWK
12773 _ACEOF
12774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12775 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12776 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12777 else
12778 cat
12779 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12780 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12781 _ACEOF
12782
12783 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12784 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12785 # trailing colons and then remove the whole line if VPATH becomes empty
12786 # (actually we leave an empty line to preserve line numbers).
12787 if test "x$srcdir" = x.; then
12788 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12789 h
12790 s///
12791 s/^/:/
12792 s/[ ]*$/:/
12793 s/:\$(srcdir):/:/g
12794 s/:\${srcdir}:/:/g
12795 s/:@srcdir@:/:/g
12796 s/^:*//
12797 s/:*$//
12798 x
12799 s/\(=[ ]*\).*/\1/
12800 G
12801 s/\n//
12802 s/^[^=]*=[ ]*$//
12803 }'
12804 fi
12805
12806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12807 fi # test -n "$CONFIG_FILES"
12808
12809
12810 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12811 shift
12812 for ac_tag
12813 do
12814 case $ac_tag in
12815 :[FHLC]) ac_mode=$ac_tag; continue;;
12816 esac
12817 case $ac_mode$ac_tag in
12818 :[FHL]*:*);;
12819 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12820 :[FH]-) ac_tag=-:-;;
12821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12822 esac
12823 ac_save_IFS=$IFS
12824 IFS=:
12825 set x $ac_tag
12826 IFS=$ac_save_IFS
12827 shift
12828 ac_file=$1
12829 shift
12830
12831 case $ac_mode in
12832 :L) ac_source=$1;;
12833 :[FH])
12834 ac_file_inputs=
12835 for ac_f
12836 do
12837 case $ac_f in
12838 -) ac_f="$tmp/stdin";;
12839 *) # Look for the file first in the build tree, then in the source tree
12840 # (if the path is not absolute). The absolute path cannot be DOS-style,
12841 # because $ac_f cannot contain `:'.
12842 test -f "$ac_f" ||
12843 case $ac_f in
12844 [\\/$]*) false;;
12845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12846 esac ||
12847 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12848 esac
12849 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12850 as_fn_append ac_file_inputs " '$ac_f'"
12851 done
12852
12853 # Let's still pretend it is `configure' which instantiates (i.e., don't
12854 # use $as_me), people would be surprised to read:
12855 # /* config.h. Generated by config.status. */
12856 configure_input='Generated from '`
12857 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12858 `' by configure.'
12859 if test x"$ac_file" != x-; then
12860 configure_input="$ac_file. $configure_input"
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12862 $as_echo "$as_me: creating $ac_file" >&6;}
12863 fi
12864 # Neutralize special characters interpreted by sed in replacement strings.
12865 case $configure_input in #(
12866 *\&* | *\|* | *\\* )
12867 ac_sed_conf_input=`$as_echo "$configure_input" |
12868 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12869 *) ac_sed_conf_input=$configure_input;;
12870 esac
12871
12872 case $ac_tag in
12873 *:-:* | *:-) cat >"$tmp/stdin" \
12874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12875 esac
12876 ;;
12877 esac
12878
12879 ac_dir=`$as_dirname -- "$ac_file" ||
12880 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12881 X"$ac_file" : 'X\(//\)[^/]' \| \
12882 X"$ac_file" : 'X\(//\)$' \| \
12883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12884 $as_echo X"$ac_file" |
12885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12886 s//\1/
12887 q
12888 }
12889 /^X\(\/\/\)[^/].*/{
12890 s//\1/
12891 q
12892 }
12893 /^X\(\/\/\)$/{
12894 s//\1/
12895 q
12896 }
12897 /^X\(\/\).*/{
12898 s//\1/
12899 q
12900 }
12901 s/.*/./; q'`
12902 as_dir="$ac_dir"; as_fn_mkdir_p
12903 ac_builddir=.
12904
12905 case "$ac_dir" in
12906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12907 *)
12908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12909 # A ".." for each directory in $ac_dir_suffix.
12910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12911 case $ac_top_builddir_sub in
12912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12914 esac ;;
12915 esac
12916 ac_abs_top_builddir=$ac_pwd
12917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12918 # for backward compatibility:
12919 ac_top_builddir=$ac_top_build_prefix
12920
12921 case $srcdir in
12922 .) # We are building in place.
12923 ac_srcdir=.
12924 ac_top_srcdir=$ac_top_builddir_sub
12925 ac_abs_top_srcdir=$ac_pwd ;;
12926 [\\/]* | ?:[\\/]* ) # Absolute name.
12927 ac_srcdir=$srcdir$ac_dir_suffix;
12928 ac_top_srcdir=$srcdir
12929 ac_abs_top_srcdir=$srcdir ;;
12930 *) # Relative name.
12931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12932 ac_top_srcdir=$ac_top_build_prefix$srcdir
12933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12934 esac
12935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12936
12937
12938 case $ac_mode in
12939 :F)
12940 #
12941 # CONFIG_FILE
12942 #
12943
12944 case $INSTALL in
12945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12946 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12947 esac
12948 _ACEOF
12949
12950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12951 # If the template does not know about datarootdir, expand it.
12952 # FIXME: This hack should be removed a few years after 2.60.
12953 ac_datarootdir_hack=; ac_datarootdir_seen=
12954 ac_sed_dataroot='
12955 /datarootdir/ {
12956 p
12957 q
12958 }
12959 /@datadir@/p
12960 /@docdir@/p
12961 /@infodir@/p
12962 /@localedir@/p
12963 /@mandir@/p'
12964 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12965 *datarootdir*) ac_datarootdir_seen=yes;;
12966 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12968 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12969 _ACEOF
12970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12971 ac_datarootdir_hack='
12972 s&@datadir@&$datadir&g
12973 s&@docdir@&$docdir&g
12974 s&@infodir@&$infodir&g
12975 s&@localedir@&$localedir&g
12976 s&@mandir@&$mandir&g
12977 s&\\\${datarootdir}&$datarootdir&g' ;;
12978 esac
12979 _ACEOF
12980
12981 # Neutralize VPATH when `$srcdir' = `.'.
12982 # Shell code in configure.ac might set extrasub.
12983 # FIXME: do we really want to maintain this feature?
12984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12985 ac_sed_extra="$ac_vpsub
12986 $extrasub
12987 _ACEOF
12988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12989 :t
12990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12991 s|@configure_input@|$ac_sed_conf_input|;t t
12992 s&@top_builddir@&$ac_top_builddir_sub&;t t
12993 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12994 s&@srcdir@&$ac_srcdir&;t t
12995 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12996 s&@top_srcdir@&$ac_top_srcdir&;t t
12997 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12998 s&@builddir@&$ac_builddir&;t t
12999 s&@abs_builddir@&$ac_abs_builddir&;t t
13000 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13001 s&@INSTALL@&$ac_INSTALL&;t t
13002 $ac_datarootdir_hack
13003 "
13004 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13006
13007 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13008 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13009 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13011 which seems to be undefined. Please make sure it is defined" >&5
13012 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13013 which seems to be undefined. Please make sure it is defined" >&2;}
13014
13015 rm -f "$tmp/stdin"
13016 case $ac_file in
13017 -) cat "$tmp/out" && rm -f "$tmp/out";;
13018 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13019 esac \
13020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13021 ;;
13022
13023
13024 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13025 $as_echo "$as_me: executing $ac_file commands" >&6;}
13026 ;;
13027 esac
13028
13029
13030 case $ac_file$ac_mode in
13031 "libtool":C)
13032
13033 # See if we are running on zsh, and set the options which allow our
13034 # commands through without removal of \ escapes.
13035 if test -n "${ZSH_VERSION+set}" ; then
13036 setopt NO_GLOB_SUBST
13037 fi
13038
13039 cfgfile="${ofile}T"
13040 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13041 $RM "$cfgfile"
13042
13043 cat <<_LT_EOF >> "$cfgfile"
13044 #! $SHELL
13045
13046 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13047 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13049 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13050 #
13051 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13052 # 2006, 2007, 2008 Free Software Foundation, Inc.
13053 # Written by Gordon Matzigkeit, 1996
13054 #
13055 # This file is part of GNU Libtool.
13056 #
13057 # GNU Libtool is free software; you can redistribute it and/or
13058 # modify it under the terms of the GNU General Public License as
13059 # published by the Free Software Foundation; either version 2 of
13060 # the License, or (at your option) any later version.
13061 #
13062 # As a special exception to the GNU General Public License,
13063 # if you distribute this file as part of a program or library that
13064 # is built using GNU Libtool, you may include this file under the
13065 # same distribution terms that you use for the rest of that program.
13066 #
13067 # GNU Libtool is distributed in the hope that it will be useful,
13068 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13069 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13070 # GNU General Public License for more details.
13071 #
13072 # You should have received a copy of the GNU General Public License
13073 # along with GNU Libtool; see the file COPYING. If not, a copy
13074 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13075 # obtained by writing to the Free Software Foundation, Inc.,
13076 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13077
13078
13079 # The names of the tagged configurations supported by this script.
13080 available_tags=""
13081
13082 # ### BEGIN LIBTOOL CONFIG
13083
13084 # Whether or not to build static libraries.
13085 build_old_libs=$enable_static
13086
13087 # Which release of libtool.m4 was used?
13088 macro_version=$macro_version
13089 macro_revision=$macro_revision
13090
13091 # Whether or not to build shared libraries.
13092 build_libtool_libs=$enable_shared
13093
13094 # What type of objects to build.
13095 pic_mode=$pic_mode
13096
13097 # Whether or not to optimize for fast installation.
13098 fast_install=$enable_fast_install
13099
13100 # The host system.
13101 host_alias=$host_alias
13102 host=$host
13103 host_os=$host_os
13104
13105 # The build system.
13106 build_alias=$build_alias
13107 build=$build
13108 build_os=$build_os
13109
13110 # A sed program that does not truncate output.
13111 SED=$lt_SED
13112
13113 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13114 Xsed="\$SED -e 1s/^X//"
13115
13116 # A grep program that handles long lines.
13117 GREP=$lt_GREP
13118
13119 # An ERE matcher.
13120 EGREP=$lt_EGREP
13121
13122 # A literal string matcher.
13123 FGREP=$lt_FGREP
13124
13125 # A BSD- or MS-compatible name lister.
13126 NM=$lt_NM
13127
13128 # Whether we need soft or hard links.
13129 LN_S=$lt_LN_S
13130
13131 # What is the maximum length of a command?
13132 max_cmd_len=$max_cmd_len
13133
13134 # Object file suffix (normally "o").
13135 objext=$ac_objext
13136
13137 # Executable file suffix (normally "").
13138 exeext=$exeext
13139
13140 # whether the shell understands "unset".
13141 lt_unset=$lt_unset
13142
13143 # turn spaces into newlines.
13144 SP2NL=$lt_lt_SP2NL
13145
13146 # turn newlines into spaces.
13147 NL2SP=$lt_lt_NL2SP
13148
13149 # How to create reloadable object files.
13150 reload_flag=$lt_reload_flag
13151 reload_cmds=$lt_reload_cmds
13152
13153 # An object symbol dumper.
13154 OBJDUMP=$lt_OBJDUMP
13155
13156 # Method to check whether dependent libraries are shared objects.
13157 deplibs_check_method=$lt_deplibs_check_method
13158
13159 # Command to use when deplibs_check_method == "file_magic".
13160 file_magic_cmd=$lt_file_magic_cmd
13161
13162 # The archiver.
13163 AR=$lt_AR
13164 AR_FLAGS=$lt_AR_FLAGS
13165
13166 # A symbol stripping program.
13167 STRIP=$lt_STRIP
13168
13169 # Commands used to install an old-style archive.
13170 RANLIB=$lt_RANLIB
13171 old_postinstall_cmds=$lt_old_postinstall_cmds
13172 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13173
13174 # A C compiler.
13175 LTCC=$lt_CC
13176
13177 # LTCC compiler flags.
13178 LTCFLAGS=$lt_CFLAGS
13179
13180 # Take the output of nm and produce a listing of raw symbols and C names.
13181 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13182
13183 # Transform the output of nm in a proper C declaration.
13184 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13185
13186 # Transform the output of nm in a C name address pair.
13187 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13188
13189 # Transform the output of nm in a C name address pair when lib prefix is needed.
13190 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13191
13192 # The name of the directory that contains temporary libtool files.
13193 objdir=$objdir
13194
13195 # Shell to use when invoking shell scripts.
13196 SHELL=$lt_SHELL
13197
13198 # An echo program that does not interpret backslashes.
13199 ECHO=$lt_ECHO
13200
13201 # Used to examine libraries when file_magic_cmd begins with "file".
13202 MAGIC_CMD=$MAGIC_CMD
13203
13204 # Must we lock files when doing compilation?
13205 need_locks=$lt_need_locks
13206
13207 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13208 DSYMUTIL=$lt_DSYMUTIL
13209
13210 # Tool to change global to local symbols on Mac OS X.
13211 NMEDIT=$lt_NMEDIT
13212
13213 # Tool to manipulate fat objects and archives on Mac OS X.
13214 LIPO=$lt_LIPO
13215
13216 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13217 OTOOL=$lt_OTOOL
13218
13219 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13220 OTOOL64=$lt_OTOOL64
13221
13222 # Old archive suffix (normally "a").
13223 libext=$libext
13224
13225 # Shared library suffix (normally ".so").
13226 shrext_cmds=$lt_shrext_cmds
13227
13228 # The commands to extract the exported symbol list from a shared archive.
13229 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13230
13231 # Variables whose values should be saved in libtool wrapper scripts and
13232 # restored at link time.
13233 variables_saved_for_relink=$lt_variables_saved_for_relink
13234
13235 # Do we need the "lib" prefix for modules?
13236 need_lib_prefix=$need_lib_prefix
13237
13238 # Do we need a version for libraries?
13239 need_version=$need_version
13240
13241 # Library versioning type.
13242 version_type=$version_type
13243
13244 # Shared library runtime path variable.
13245 runpath_var=$runpath_var
13246
13247 # Shared library path variable.
13248 shlibpath_var=$shlibpath_var
13249
13250 # Is shlibpath searched before the hard-coded library search path?
13251 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13252
13253 # Format of library name prefix.
13254 libname_spec=$lt_libname_spec
13255
13256 # List of archive names. First name is the real one, the rest are links.
13257 # The last name is the one that the linker finds with -lNAME
13258 library_names_spec=$lt_library_names_spec
13259
13260 # The coded name of the library, if different from the real name.
13261 soname_spec=$lt_soname_spec
13262
13263 # Command to use after installation of a shared archive.
13264 postinstall_cmds=$lt_postinstall_cmds
13265
13266 # Command to use after uninstallation of a shared archive.
13267 postuninstall_cmds=$lt_postuninstall_cmds
13268
13269 # Commands used to finish a libtool library installation in a directory.
13270 finish_cmds=$lt_finish_cmds
13271
13272 # As "finish_cmds", except a single script fragment to be evaled but
13273 # not shown.
13274 finish_eval=$lt_finish_eval
13275
13276 # Whether we should hardcode library paths into libraries.
13277 hardcode_into_libs=$hardcode_into_libs
13278
13279 # Compile-time system search path for libraries.
13280 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13281
13282 # Run-time system search path for libraries.
13283 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13284
13285 # Whether dlopen is supported.
13286 dlopen_support=$enable_dlopen
13287
13288 # Whether dlopen of programs is supported.
13289 dlopen_self=$enable_dlopen_self
13290
13291 # Whether dlopen of statically linked programs is supported.
13292 dlopen_self_static=$enable_dlopen_self_static
13293
13294 # Commands to strip libraries.
13295 old_striplib=$lt_old_striplib
13296 striplib=$lt_striplib
13297
13298
13299 # The linker used to build libraries.
13300 LD=$lt_LD
13301
13302 # Commands used to build an old-style archive.
13303 old_archive_cmds=$lt_old_archive_cmds
13304
13305 # A language specific compiler.
13306 CC=$lt_compiler
13307
13308 # Is the compiler the GNU compiler?
13309 with_gcc=$GCC
13310
13311 # Compiler flag to turn off builtin functions.
13312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13313
13314 # How to pass a linker flag through the compiler.
13315 wl=$lt_lt_prog_compiler_wl
13316
13317 # Additional compiler flags for building library objects.
13318 pic_flag=$lt_lt_prog_compiler_pic
13319
13320 # Compiler flag to prevent dynamic linking.
13321 link_static_flag=$lt_lt_prog_compiler_static
13322
13323 # Does compiler simultaneously support -c and -o options?
13324 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13325
13326 # Whether or not to add -lc for building shared libraries.
13327 build_libtool_need_lc=$archive_cmds_need_lc
13328
13329 # Whether or not to disallow shared libs when runtime libs are static.
13330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13331
13332 # Compiler flag to allow reflexive dlopens.
13333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13334
13335 # Compiler flag to generate shared objects directly from archives.
13336 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13337
13338 # Whether the compiler copes with passing no objects directly.
13339 compiler_needs_object=$lt_compiler_needs_object
13340
13341 # Create an old-style archive from a shared archive.
13342 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13343
13344 # Create a temporary old-style archive to link instead of a shared archive.
13345 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13346
13347 # Commands used to build a shared archive.
13348 archive_cmds=$lt_archive_cmds
13349 archive_expsym_cmds=$lt_archive_expsym_cmds
13350
13351 # Commands used to build a loadable module if different from building
13352 # a shared archive.
13353 module_cmds=$lt_module_cmds
13354 module_expsym_cmds=$lt_module_expsym_cmds
13355
13356 # Whether we are building with GNU ld or not.
13357 with_gnu_ld=$lt_with_gnu_ld
13358
13359 # Flag that allows shared libraries with undefined symbols to be built.
13360 allow_undefined_flag=$lt_allow_undefined_flag
13361
13362 # Flag that enforces no undefined symbols.
13363 no_undefined_flag=$lt_no_undefined_flag
13364
13365 # Flag to hardcode \$libdir into a binary during linking.
13366 # This must work even if \$libdir does not exist
13367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13368
13369 # If ld is used when linking, flag to hardcode \$libdir into a binary
13370 # during linking. This must work even if \$libdir does not exist.
13371 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13372
13373 # Whether we need a single "-rpath" flag with a separated argument.
13374 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13375
13376 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13377 # DIR into the resulting binary.
13378 hardcode_direct=$hardcode_direct
13379
13380 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13381 # DIR into the resulting binary and the resulting library dependency is
13382 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13383 # library is relocated.
13384 hardcode_direct_absolute=$hardcode_direct_absolute
13385
13386 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13387 # into the resulting binary.
13388 hardcode_minus_L=$hardcode_minus_L
13389
13390 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13391 # into the resulting binary.
13392 hardcode_shlibpath_var=$hardcode_shlibpath_var
13393
13394 # Set to "yes" if building a shared library automatically hardcodes DIR
13395 # into the library and all subsequent libraries and executables linked
13396 # against it.
13397 hardcode_automatic=$hardcode_automatic
13398
13399 # Set to yes if linker adds runtime paths of dependent libraries
13400 # to runtime path list.
13401 inherit_rpath=$inherit_rpath
13402
13403 # Whether libtool must link a program against all its dependency libraries.
13404 link_all_deplibs=$link_all_deplibs
13405
13406 # Fix the shell variable \$srcfile for the compiler.
13407 fix_srcfile_path=$lt_fix_srcfile_path
13408
13409 # Set to "yes" if exported symbols are required.
13410 always_export_symbols=$always_export_symbols
13411
13412 # The commands to list exported symbols.
13413 export_symbols_cmds=$lt_export_symbols_cmds
13414
13415 # Symbols that should not be listed in the preloaded symbols.
13416 exclude_expsyms=$lt_exclude_expsyms
13417
13418 # Symbols that must always be exported.
13419 include_expsyms=$lt_include_expsyms
13420
13421 # Commands necessary for linking programs (against libraries) with templates.
13422 prelink_cmds=$lt_prelink_cmds
13423
13424 # Specify filename containing input files.
13425 file_list_spec=$lt_file_list_spec
13426
13427 # How to hardcode a shared library path into an executable.
13428 hardcode_action=$hardcode_action
13429
13430 # ### END LIBTOOL CONFIG
13431
13432 _LT_EOF
13433
13434 case $host_os in
13435 aix3*)
13436 cat <<\_LT_EOF >> "$cfgfile"
13437 # AIX sometimes has problems with the GCC collect2 program. For some
13438 # reason, if we set the COLLECT_NAMES environment variable, the problems
13439 # vanish in a puff of smoke.
13440 if test "X${COLLECT_NAMES+set}" != Xset; then
13441 COLLECT_NAMES=
13442 export COLLECT_NAMES
13443 fi
13444 _LT_EOF
13445 ;;
13446 esac
13447
13448
13449 ltmain="$ac_aux_dir/ltmain.sh"
13450
13451
13452 # We use sed instead of cat because bash on DJGPP gets confused if
13453 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13454 # text mode, it properly converts lines to CR/LF. This bash problem
13455 # is reportedly fixed, but why not run on old versions too?
13456 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13457 || (rm -f "$cfgfile"; exit 1)
13458
13459 case $xsi_shell in
13460 yes)
13461 cat << \_LT_EOF >> "$cfgfile"
13462
13463 # func_dirname file append nondir_replacement
13464 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13465 # otherwise set result to NONDIR_REPLACEMENT.
13466 func_dirname ()
13467 {
13468 case ${1} in
13469 */*) func_dirname_result="${1%/*}${2}" ;;
13470 * ) func_dirname_result="${3}" ;;
13471 esac
13472 }
13473
13474 # func_basename file
13475 func_basename ()
13476 {
13477 func_basename_result="${1##*/}"
13478 }
13479
13480 # func_dirname_and_basename file append nondir_replacement
13481 # perform func_basename and func_dirname in a single function
13482 # call:
13483 # dirname: Compute the dirname of FILE. If nonempty,
13484 # add APPEND to the result, otherwise set result
13485 # to NONDIR_REPLACEMENT.
13486 # value returned in "$func_dirname_result"
13487 # basename: Compute filename of FILE.
13488 # value retuned in "$func_basename_result"
13489 # Implementation must be kept synchronized with func_dirname
13490 # and func_basename. For efficiency, we do not delegate to
13491 # those functions but instead duplicate the functionality here.
13492 func_dirname_and_basename ()
13493 {
13494 case ${1} in
13495 */*) func_dirname_result="${1%/*}${2}" ;;
13496 * ) func_dirname_result="${3}" ;;
13497 esac
13498 func_basename_result="${1##*/}"
13499 }
13500
13501 # func_stripname prefix suffix name
13502 # strip PREFIX and SUFFIX off of NAME.
13503 # PREFIX and SUFFIX must not contain globbing or regex special
13504 # characters, hashes, percent signs, but SUFFIX may contain a leading
13505 # dot (in which case that matches only a dot).
13506 func_stripname ()
13507 {
13508 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13509 # positional parameters, so assign one to ordinary parameter first.
13510 func_stripname_result=${3}
13511 func_stripname_result=${func_stripname_result#"${1}"}
13512 func_stripname_result=${func_stripname_result%"${2}"}
13513 }
13514
13515 # func_opt_split
13516 func_opt_split ()
13517 {
13518 func_opt_split_opt=${1%%=*}
13519 func_opt_split_arg=${1#*=}
13520 }
13521
13522 # func_lo2o object
13523 func_lo2o ()
13524 {
13525 case ${1} in
13526 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13527 *) func_lo2o_result=${1} ;;
13528 esac
13529 }
13530
13531 # func_xform libobj-or-source
13532 func_xform ()
13533 {
13534 func_xform_result=${1%.*}.lo
13535 }
13536
13537 # func_arith arithmetic-term...
13538 func_arith ()
13539 {
13540 func_arith_result=$(( $* ))
13541 }
13542
13543 # func_len string
13544 # STRING may not start with a hyphen.
13545 func_len ()
13546 {
13547 func_len_result=${#1}
13548 }
13549
13550 _LT_EOF
13551 ;;
13552 *) # Bourne compatible functions.
13553 cat << \_LT_EOF >> "$cfgfile"
13554
13555 # func_dirname file append nondir_replacement
13556 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13557 # otherwise set result to NONDIR_REPLACEMENT.
13558 func_dirname ()
13559 {
13560 # Extract subdirectory from the argument.
13561 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13562 if test "X$func_dirname_result" = "X${1}"; then
13563 func_dirname_result="${3}"
13564 else
13565 func_dirname_result="$func_dirname_result${2}"
13566 fi
13567 }
13568
13569 # func_basename file
13570 func_basename ()
13571 {
13572 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13573 }
13574
13575
13576 # func_stripname prefix suffix name
13577 # strip PREFIX and SUFFIX off of NAME.
13578 # PREFIX and SUFFIX must not contain globbing or regex special
13579 # characters, hashes, percent signs, but SUFFIX may contain a leading
13580 # dot (in which case that matches only a dot).
13581 # func_strip_suffix prefix name
13582 func_stripname ()
13583 {
13584 case ${2} in
13585 .*) func_stripname_result=`$ECHO "X${3}" \
13586 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13587 *) func_stripname_result=`$ECHO "X${3}" \
13588 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13589 esac
13590 }
13591
13592 # sed scripts:
13593 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13594 my_sed_long_arg='1s/^-[^=]*=//'
13595
13596 # func_opt_split
13597 func_opt_split ()
13598 {
13599 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13600 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13601 }
13602
13603 # func_lo2o object
13604 func_lo2o ()
13605 {
13606 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13607 }
13608
13609 # func_xform libobj-or-source
13610 func_xform ()
13611 {
13612 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13613 }
13614
13615 # func_arith arithmetic-term...
13616 func_arith ()
13617 {
13618 func_arith_result=`expr "$@"`
13619 }
13620
13621 # func_len string
13622 # STRING may not start with a hyphen.
13623 func_len ()
13624 {
13625 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13626 }
13627
13628 _LT_EOF
13629 esac
13630
13631 case $lt_shell_append in
13632 yes)
13633 cat << \_LT_EOF >> "$cfgfile"
13634
13635 # func_append var value
13636 # Append VALUE to the end of shell variable VAR.
13637 func_append ()
13638 {
13639 eval "$1+=\$2"
13640 }
13641 _LT_EOF
13642 ;;
13643 *)
13644 cat << \_LT_EOF >> "$cfgfile"
13645
13646 # func_append var value
13647 # Append VALUE to the end of shell variable VAR.
13648 func_append ()
13649 {
13650 eval "$1=\$$1\$2"
13651 }
13652
13653 _LT_EOF
13654 ;;
13655 esac
13656
13657
13658 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13659 || (rm -f "$cfgfile"; exit 1)
13660
13661 mv -f "$cfgfile" "$ofile" ||
13662 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13663 chmod +x "$ofile"
13664
13665 ;;
13666
13667 esac
13668 done # for ac_tag
13669
13670
13671 as_fn_exit 0
13672 _ACEOF
13673 ac_clean_files=$ac_clean_files_save
13674
13675 test $ac_write_fail = 0 ||
13676 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13677
13678
13679 # configure is writing to config.log, and then calls config.status.
13680 # config.status does its own redirection, appending to config.log.
13681 # Unfortunately, on DOS this fails, as config.log is still kept open
13682 # by configure, so config.status won't be able to write to it; its
13683 # output is simply discarded. So we exec the FD to /dev/null,
13684 # effectively closing config.log, so it can be properly (re)opened and
13685 # appended to by config.status. When coming back to configure, we
13686 # need to make the FD available again.
13687 if test "$no_create" != yes; then
13688 ac_cs_success=:
13689 ac_config_status_args=
13690 test "$silent" = yes &&
13691 ac_config_status_args="$ac_config_status_args --quiet"
13692 exec 5>/dev/null
13693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13694 exec 5>>config.log
13695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13696 # would make configure fail if this is the last instruction.
13697 $ac_cs_success || as_fn_exit 1
13698 fi
13699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13702 fi
13703
13704