Rev Author Line No. Line
3297 kaklik 1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.64.
4 @%:@
5 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 @%:@ Foundation, Inc.
8 @%:@
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14  
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in @%:@(
26 *posix*) :
27 set -o posix ;; @%:@(
28 *) :
29 ;;
30 esac
31 fi
32  
33  
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in @%:@(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71  
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80  
81  
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88  
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in @%:@((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100  
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112  
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124  
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130  
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133  
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in @%:@(
144 *posix*) :
145 set -o posix ;; @%:@(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156  
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163  
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179  
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in @%:@(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209  
210  
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221  
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243  
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 @%:@ as_fn_unset VAR
248 @%:@ ---------------
249 @%:@ Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255  
256 @%:@ as_fn_set_status STATUS
257 @%:@ -----------------------
258 @%:@ Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } @%:@ as_fn_set_status
263  
264 @%:@ as_fn_exit STATUS
265 @%:@ -----------------
266 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } @%:@ as_fn_exit
273  
274 @%:@ as_fn_mkdir_p
275 @%:@ -------------
276 @%:@ Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279  
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318  
319  
320 } @%:@ as_fn_mkdir_p
321 @%:@ as_fn_append VAR VALUE
322 @%:@ ----------------------
323 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
324 @%:@ advantage of any shell optimizations that allow amortized linear growth over
325 @%:@ repeated appends, instead of the typical quadratic growth present in naive
326 @%:@ implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338  
339 @%:@ as_fn_arith ARG...
340 @%:@ ------------------
341 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
342 @%:@ global $as_val. Take advantage of shells that can avoid forks. The arguments
343 @%:@ must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355  
356  
357 @%:@ as_fn_error ERROR [LINENO LOG_FD]
358 @%:@ ---------------------------------
359 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 @%:@ script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } @%:@ as_fn_error
372  
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379  
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385  
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391  
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410  
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417  
418  
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441  
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449  
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in @%:@(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462  
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489  
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496  
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in @%:@(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519  
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522  
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525  
526  
527  
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530  
531 case X$lt_ECHO in
532 X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536 esac
537  
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552  
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557 $*
558 _LT_EOF
559 exit 0
560 fi
561  
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565  
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
578  
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
589  
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
602  
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
643  
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
651  
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664 fi
665  
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672  
673  
674  
675  
676 exec 7<&0 </dev/null 6>&1
677  
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682  
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIB@&t@OBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694  
695 # Identity of this package.
696 PACKAGE_NAME=
697 PACKAGE_TARNAME=
698 PACKAGE_VERSION=
699 PACKAGE_STRING=
700 PACKAGE_BUGREPORT=
701 PACKAGE_URL=
702  
703 ac_unique_file="configure.in"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 # include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 # include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
739  
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIB@&t@OBJS
744 CPP
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 lt_ECHO
751 RANLIB
752 AR
753 OBJDUMP
754 LN_S
755 NM
756 ac_ct_DUMPBIN
757 DUMPBIN
758 LD
759 FGREP
760 EGREP
761 GREP
762 SED
763 host_os
764 host_vendor
765 host_cpu
766 host
767 build_os
768 build_vendor
769 build_cpu
770 build
771 LIBTOOL
772 am__fastdepCC_FALSE
773 am__fastdepCC_TRUE
774 CCDEPMODE
775 AMDEPBACKSLASH
776 AMDEP_FALSE
777 AMDEP_TRUE
778 am__quote
779 am__include
780 DEPDIR
781 OBJEXT
782 EXEEXT
783 ac_ct_CC
784 CPPFLAGS
785 LDFLAGS
786 CFLAGS
787 CC
788 am__untar
789 am__tar
790 AMTAR
791 am__leading_dot
792 SET_MAKE
793 AWK
794 mkdir_p
795 MKDIR_P
796 INSTALL_STRIP_PROGRAM
797 STRIP
798 install_sh
799 MAKEINFO
800 AUTOHEADER
801 AUTOMAKE
802 AUTOCONF
803 ACLOCAL
804 VERSION
805 PACKAGE
806 CYGPATH_W
807 am__isrc
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 target_alias
812 host_alias
813 build_alias
814 LIBS
815 ECHO_T
816 ECHO_N
817 ECHO_C
818 DEFS
819 mandir
820 localedir
821 libdir
822 psdir
823 pdfdir
824 dvidir
825 htmldir
826 infodir
827 docdir
828 oldincludedir
829 includedir
830 localstatedir
831 sharedstatedir
832 sysconfdir
833 datadir
834 datarootdir
835 libexecdir
836 sbindir
837 bindir
838 program_transform_name
839 prefix
840 exec_prefix
841 PACKAGE_URL
842 PACKAGE_BUGREPORT
843 PACKAGE_STRING
844 PACKAGE_VERSION
845 PACKAGE_TARNAME
846 PACKAGE_NAME
847 PATH_SEPARATOR
848 SHELL'
849 ac_subst_files=''
850 ac_user_opts='
851 enable_option_checking
852 enable_dependency_tracking
853 enable_shared
854 enable_static
855 with_pic
856 enable_fast_install
857 with_gnu_ld
858 enable_libtool_lock
859 '
860 ac_precious_vars='build_alias
861 host_alias
862 target_alias
863 CC
864 CFLAGS
865 LDFLAGS
866 LIBS
867 CPPFLAGS
868 CPP'
869  
870  
871 # Initialize some variables set by options.
872 ac_init_help=
873 ac_init_version=false
874 ac_unrecognized_opts=
875 ac_unrecognized_sep=
876 # The variables have the same names as the options, with
877 # dashes changed to underlines.
878 cache_file=/dev/null
879 exec_prefix=NONE
880 no_create=
881 no_recursion=
882 prefix=NONE
883 program_prefix=NONE
884 program_suffix=NONE
885 program_transform_name=s,x,x,
886 silent=
887 site=
888 srcdir=
889 verbose=
890 x_includes=NONE
891 x_libraries=NONE
892  
893 # Installation directory options.
894 # These are left unexpanded so users can "make install exec_prefix=/foo"
895 # and all the variables that are supposed to be based on exec_prefix
896 # by default will actually change.
897 # Use braces instead of parens because sh, perl, etc. also accept them.
898 # (The list follows the same order as the GNU Coding Standards.)
899 bindir='${exec_prefix}/bin'
900 sbindir='${exec_prefix}/sbin'
901 libexecdir='${exec_prefix}/libexec'
902 datarootdir='${prefix}/share'
903 datadir='${datarootdir}'
904 sysconfdir='${prefix}/etc'
905 sharedstatedir='${prefix}/com'
906 localstatedir='${prefix}/var'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
918  
919 ac_prev=
920 ac_dashdash=
921 for ac_option
922 do
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
926 ac_prev=
927 continue
928 fi
929  
930 case $ac_option in
931 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *) ac_optarg=yes ;;
933 esac
934  
935 # Accept the important Cygnus configure options, so we can diagnose typos.
936  
937 case $ac_dashdash$ac_option in
938 --)
939 ac_dashdash=yes ;;
940  
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 ac_prev=bindir ;;
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 bindir=$ac_optarg ;;
945  
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
950  
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
957  
958 --config-cache | -C)
959 cache_file=config.cache ;;
960  
961 -datadir | --datadir | --datadi | --datad)
962 ac_prev=datadir ;;
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
965  
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
972  
973 -disable-* | --disable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=no ;;
988  
989 -docdir | --docdir | --docdi | --doc | --do)
990 ac_prev=docdir ;;
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 docdir=$ac_optarg ;;
993  
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 ac_prev=dvidir ;;
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 dvidir=$ac_optarg ;;
998  
999 -enable-* | --enable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1014  
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1023  
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1027  
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1034  
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1039  
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 ac_prev=htmldir ;;
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 | --ht=*)
1044 htmldir=$ac_optarg ;;
1045  
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1052  
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1057  
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1062  
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1069  
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1074  
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1081  
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1086  
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1089 with_fp=no ;;
1090  
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1093 no_create=yes ;;
1094  
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 no_recursion=yes ;;
1098  
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1107  
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1112  
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1119  
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1126  
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1143  
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 ac_prev=pdfdir ;;
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1148  
1149 -psdir | --psdir | --psdi | --psd | --ps)
1150 ac_prev=psdir ;;
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 psdir=$ac_optarg ;;
1153  
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1156 silent=yes ;;
1157  
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
1162 sbindir=$ac_optarg ;;
1163  
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
1173 sharedstatedir=$ac_optarg ;;
1174  
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
1178 site=$ac_optarg ;;
1179  
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1184  
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1191  
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1196  
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1199  
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1202  
1203 -with-* | --with-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=\$ac_optarg ;;
1218  
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=no ;;
1234  
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238  
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1245  
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1252  
1253 -*) as_fn_error "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information."
1255 ;;
1256  
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1263 esac
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1266  
1267 *)
1268 # FIXME: should be removed in autoconf 3.0.
1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 ;;
1274  
1275 esac
1276 done
1277  
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error "missing argument to $ac_option"
1281 fi
1282  
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1285 no) ;;
1286 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 esac
1289 fi
1290  
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1296 do
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1299 case $ac_val in
1300 */ )
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1303 esac
1304 # Be sure to have absolute directory names.
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1310 done
1311  
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318  
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328 fi
1329  
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332  
1333 test "$silent" = yes && exec 6>/dev/null
1334  
1335  
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error "working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error "pwd does not report name of working directory"
1342  
1343  
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\).*/{
1367 s//\1/
1368 q
1369 }
1370 s/.*/./; q'`
1371 srcdir=$ac_confdir
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 srcdir=..
1374 fi
1375 else
1376 ac_srcdir_defaulted=no
1377 fi
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1385 pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402  
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1409 cat <<_ACEOF
1410 \`configure' configures this package to adapt to many kinds of systems.
1411  
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413  
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1416  
1417 Defaults for the options are specified in brackets.
1418  
1419 Configuration:
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429  
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 [PREFIX]
1435  
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440  
1441 For better control, use the options below.
1442  
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1463 _ACEOF
1464  
1465 cat <<\_ACEOF
1466  
1467 Program names:
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471  
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477  
1478 if test -n "$ac_init_help"; then
1479  
1480 cat <<\_ACEOF
1481  
1482 Optional Features:
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --disable-dependency-tracking speeds up one-time build
1487 --enable-dependency-tracking do not reject slow dependency extractors
1488 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1489 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1490 --enable-fast-install@<:@=PKGS@:>@
1491 optimize for fast installation @<:@default=yes@:>@
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493  
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1498 both@:>@
1499 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1500  
1501 Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
1509 CPP C preprocessor
1510  
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513  
1514 Report bugs to the package provider.
1515 _ACEOF
1516 ac_status=$?
1517 fi
1518  
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1526  
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542  
1543 case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558  
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1567 else
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1571 done
1572 fi
1573  
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576 cat <<\_ACEOF
1577 configure
1578 generated by GNU Autoconf 2.64
1579  
1580 Copyright (C) 2009 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584 exit
1585 fi
1586  
1587 ## ------------------------ ##
1588 ## Autoconf initialization. ##
1589 ## ------------------------ ##
1590  
1591 @%:@ ac_fn_c_try_compile LINENO
1592 @%:@ --------------------------
1593 @%:@ Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_compile ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621  
1622 ac_retval=1
1623 fi
1624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625 return $ac_retval
1626  
1627 } @%:@ ac_fn_c_try_compile
1628  
1629 @%:@ ac_fn_c_try_link LINENO
1630 @%:@ -----------------------
1631 @%:@ Try to link conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_link ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext conftest$ac_exeext
1636 if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest$ac_exeext && {
1655 test "$cross_compiling" = yes ||
1656 $as_test_x conftest$ac_exeext
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662  
1663 ac_retval=1
1664 fi
1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1667 # interfere with the next link command; also delete a directory that is
1668 # left behind by Apple's compiler. We do this before executing the actions.
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 return $ac_retval
1672  
1673 } @%:@ ac_fn_c_try_link
1674  
1675 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676 @%:@ -------------------------------------------------------
1677 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1678 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1679 ac_fn_c_check_header_compile ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685 $as_echo_n "(cached) " >&6
1686 else
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1689 $4
1690 @%:@include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_compile "$LINENO"; then :
1693 eval "$3=yes"
1694 else
1695 eval "$3=no"
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 fi
1699 eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703  
1704 } @%:@ ac_fn_c_check_header_compile
1705  
1706 @%:@ ac_fn_c_try_cpp LINENO
1707 @%:@ ----------------------
1708 @%:@ Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_cpp ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } >/dev/null && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735  
1736 ac_retval=1
1737 fi
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 return $ac_retval
1740  
1741 } @%:@ ac_fn_c_try_cpp
1742  
1743 @%:@ ac_fn_c_try_run LINENO
1744 @%:@ ----------------------
1745 @%:@ Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 @%:@ that executables *can* be run.
1747 ac_fn_c_try_run ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776  
1777 ac_retval=$ac_status
1778 fi
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 return $ac_retval
1782  
1783 } @%:@ ac_fn_c_try_run
1784  
1785 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1786 @%:@ ----------------------------------
1787 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1788 ac_fn_c_check_func ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1800 #define $2 innocuous_$2
1801  
1802 /* System header to define __stub macros and hopefully few prototypes,
1803 which can conflict with char $2 (); below.
1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1805 <limits.h> exists even on freestanding compilers. */
1806  
1807 #ifdef __STDC__
1808 # include <limits.h>
1809 #else
1810 # include <assert.h>
1811 #endif
1812  
1813 #undef $2
1814  
1815 /* Override any GCC internal prototype to avoid an error.
1816 Use char because int might match the return type of a GCC
1817 builtin and then its argument prototype would still apply. */
1818 #ifdef __cplusplus
1819 extern "C"
1820 #endif
1821 char $2 ();
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined __stub_$2 || defined __stub___$2
1826 choke me
1827 #endif
1828  
1829 int
1830 main ()
1831 {
1832 return $2 ();
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_link "$LINENO"; then :
1838 eval "$3=yes"
1839 else
1840 eval "$3=no"
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext \
1843 conftest$ac_exeext conftest.$ac_ext
1844 fi
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849  
1850 } @%:@ ac_fn_c_check_func
1851 cat >config.log <<_ACEOF
1852 This file contains any messages produced by compilers while
1853 running configure, to aid debugging if configure makes a mistake.
1854  
1855 It was created by $as_me, which was
1856 generated by GNU Autoconf 2.64. Invocation command line was
1857  
1858 $ $0 $@
1859  
1860 _ACEOF
1861 exec 5>>config.log
1862 {
1863 cat <<_ASUNAME
1864 ## --------- ##
1865 ## Platform. ##
1866 ## --------- ##
1867  
1868 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1869 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1870 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1871 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1872 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1873  
1874 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1875 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1876  
1877 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1878 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1879 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1880 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1881 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1882 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1883 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1884  
1885 _ASUNAME
1886  
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890 IFS=$as_save_IFS
1891 test -z "$as_dir" && as_dir=.
1892 $as_echo "PATH: $as_dir"
1893 done
1894 IFS=$as_save_IFS
1895  
1896 } >&5
1897  
1898 cat >&5 <<_ACEOF
1899  
1900  
1901 ## ----------- ##
1902 ## Core tests. ##
1903 ## ----------- ##
1904  
1905 _ACEOF
1906  
1907  
1908 # Keep a trace of the command line.
1909 # Strip out --no-create and --no-recursion so they do not pile up.
1910 # Strip out --silent because we don't want to record it for future runs.
1911 # Also quote any args containing shell meta-characters.
1912 # Make two passes to allow for proper duplicate-argument suppression.
1913 ac_configure_args=
1914 ac_configure_args0=
1915 ac_configure_args1=
1916 ac_must_keep_next=false
1917 for ac_pass in 1 2
1918 do
1919 for ac_arg
1920 do
1921 case $ac_arg in
1922 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1924 | -silent | --silent | --silen | --sile | --sil)
1925 continue ;;
1926 *\'*)
1927 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928 esac
1929 case $ac_pass in
1930 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931 2)
1932 as_fn_append ac_configure_args1 " '$ac_arg'"
1933 if test $ac_must_keep_next = true; then
1934 ac_must_keep_next=false # Got value, back to normal.
1935 else
1936 case $ac_arg in
1937 *=* | --config-cache | -C | -disable-* | --disable-* \
1938 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1939 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1940 | -with-* | --with-* | -without-* | --without-* | --x)
1941 case "$ac_configure_args0 " in
1942 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943 esac
1944 ;;
1945 -* ) ac_must_keep_next=true ;;
1946 esac
1947 fi
1948 as_fn_append ac_configure_args " '$ac_arg'"
1949 ;;
1950 esac
1951 done
1952 done
1953 { ac_configure_args0=; unset ac_configure_args0;}
1954 { ac_configure_args1=; unset ac_configure_args1;}
1955  
1956 # When interrupted or exit'd, cleanup temporary files, and complete
1957 # config.log. We remove comments because anyway the quotes in there
1958 # would cause problems or look ugly.
1959 # WARNING: Use '\'' to represent an apostrophe within the trap.
1960 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1961 trap 'exit_status=$?
1962 # Save into config.log some information that might help in debugging.
1963 {
1964 echo
1965  
1966 cat <<\_ASBOX
1967 ## ---------------- ##
1968 ## Cache variables. ##
1969 ## ---------------- ##
1970 _ASBOX
1971 echo
1972 # The following way of writing the cache mishandles newlines in values,
1973 (
1974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975 eval ac_val=\$$ac_var
1976 case $ac_val in #(
1977 *${as_nl}*)
1978 case $ac_var in #(
1979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1981 esac
1982 case $ac_var in #(
1983 _ | IFS | as_nl) ;; #(
1984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1985 *) { eval $ac_var=; unset $ac_var;} ;;
1986 esac ;;
1987 esac
1988 done
1989 (set) 2>&1 |
1990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1991 *${as_nl}ac_space=\ *)
1992 sed -n \
1993 "s/'\''/'\''\\\\'\'''\''/g;
1994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1995 ;; #(
1996 *)
1997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1998 ;;
1999 esac |
2000 sort
2001 )
2002 echo
2003  
2004 cat <<\_ASBOX
2005 ## ----------------- ##
2006 ## Output variables. ##
2007 ## ----------------- ##
2008 _ASBOX
2009 echo
2010 for ac_var in $ac_subst_vars
2011 do
2012 eval ac_val=\$$ac_var
2013 case $ac_val in
2014 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 esac
2016 $as_echo "$ac_var='\''$ac_val'\''"
2017 done | sort
2018 echo
2019  
2020 if test -n "$ac_subst_files"; then
2021 cat <<\_ASBOX
2022 ## ------------------- ##
2023 ## File substitutions. ##
2024 ## ------------------- ##
2025 _ASBOX
2026 echo
2027 for ac_var in $ac_subst_files
2028 do
2029 eval ac_val=\$$ac_var
2030 case $ac_val in
2031 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2032 esac
2033 $as_echo "$ac_var='\''$ac_val'\''"
2034 done | sort
2035 echo
2036 fi
2037  
2038 if test -s confdefs.h; then
2039 cat <<\_ASBOX
2040 ## ----------- ##
2041 ## confdefs.h. ##
2042 ## ----------- ##
2043 _ASBOX
2044 echo
2045 cat confdefs.h
2046 echo
2047 fi
2048 test "$ac_signal" != 0 &&
2049 $as_echo "$as_me: caught signal $ac_signal"
2050 $as_echo "$as_me: exit $exit_status"
2051 } >&5
2052 rm -f core *.core core.conftest.* &&
2053 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2054 exit $exit_status
2055 ' 0
2056 for ac_signal in 1 2 13 15; do
2057 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2058 done
2059 ac_signal=0
2060  
2061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2062 rm -f -r conftest* confdefs.h
2063  
2064 $as_echo "/* confdefs.h */" > confdefs.h
2065  
2066 # Predefined preprocessor variables.
2067  
2068 cat >>confdefs.h <<_ACEOF
2069 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2070 _ACEOF
2071  
2072 cat >>confdefs.h <<_ACEOF
2073 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2074 _ACEOF
2075  
2076 cat >>confdefs.h <<_ACEOF
2077 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2078 _ACEOF
2079  
2080 cat >>confdefs.h <<_ACEOF
2081 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2082 _ACEOF
2083  
2084 cat >>confdefs.h <<_ACEOF
2085 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2086 _ACEOF
2087  
2088 cat >>confdefs.h <<_ACEOF
2089 @%:@define PACKAGE_URL "$PACKAGE_URL"
2090 _ACEOF
2091  
2092  
2093 # Let the site file select an alternate cache file if it wants to.
2094 # Prefer an explicitly selected file to automatically selected ones.
2095 ac_site_file1=NONE
2096 ac_site_file2=NONE
2097 if test -n "$CONFIG_SITE"; then
2098 ac_site_file1=$CONFIG_SITE
2099 elif test "x$prefix" != xNONE; then
2100 ac_site_file1=$prefix/share/config.site
2101 ac_site_file2=$prefix/etc/config.site
2102 else
2103 ac_site_file1=$ac_default_prefix/share/config.site
2104 ac_site_file2=$ac_default_prefix/etc/config.site
2105 fi
2106 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2107 do
2108 test "x$ac_site_file" = xNONE && continue
2109 if test -r "$ac_site_file"; then
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2111 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2112 sed 's/^/| /' "$ac_site_file" >&5
2113 . "$ac_site_file"
2114 fi
2115 done
2116  
2117 if test -r "$cache_file"; then
2118 # Some versions of bash will fail to source /dev/null (special
2119 # files actually), so we avoid doing that.
2120 if test -f "$cache_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 $as_echo "$as_me: loading cache $cache_file" >&6;}
2123 case $cache_file in
2124 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125 *) . "./$cache_file";;
2126 esac
2127 fi
2128 else
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 $as_echo "$as_me: creating cache $cache_file" >&6;}
2131 >$cache_file
2132 fi
2133  
2134 # Check that the precious variables saved in the cache have kept the same
2135 # value.
2136 ac_cache_corrupted=false
2137 for ac_var in $ac_precious_vars; do
2138 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2139 eval ac_new_set=\$ac_env_${ac_var}_set
2140 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2141 eval ac_new_val=\$ac_env_${ac_var}_value
2142 case $ac_old_set,$ac_new_set in
2143 set,)
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2147 ,set)
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2149 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2150 ac_cache_corrupted=: ;;
2151 ,);;
2152 *)
2153 if test "x$ac_old_val" != "x$ac_new_val"; then
2154 # differences in whitespace do not lead to failure.
2155 ac_old_val_w=`echo x $ac_old_val`
2156 ac_new_val_w=`echo x $ac_new_val`
2157 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2159 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2160 ac_cache_corrupted=:
2161 else
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2163 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2164 eval $ac_var=\$ac_old_val
2165 fi
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2167 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2169 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2170 fi;;
2171 esac
2172 # Pass precious variables to config.status.
2173 if test "$ac_new_set" = set; then
2174 case $ac_new_val in
2175 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 *) ac_arg=$ac_var=$ac_new_val ;;
2177 esac
2178 case " $ac_configure_args " in
2179 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2180 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2181 esac
2182 fi
2183 done
2184 if $ac_cache_corrupted; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2188 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2189 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2190 fi
2191 ## -------------------- ##
2192 ## Main body of script. ##
2193 ## -------------------- ##
2194  
2195 ac_ext=c
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200  
2201  
2202  
2203 ac_config_headers="$ac_config_headers config.h"
2204  
2205 am__api_version='1.11'
2206  
2207 ac_aux_dir=
2208 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2209 for ac_t in install-sh install.sh shtool; do
2210 if test -f "$ac_dir/$ac_t"; then
2211 ac_aux_dir=$ac_dir
2212 ac_install_sh="$ac_aux_dir/$ac_t -c"
2213 break 2
2214 fi
2215 done
2216 done
2217 if test -z "$ac_aux_dir"; then
2218 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2219 fi
2220  
2221 # These three variables are undocumented and unsupported,
2222 # and are intended to be withdrawn in a future Autoconf release.
2223 # They can cause serious problems if a builder's source tree is in a directory
2224 # whose full name contains unusual characters.
2225 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2226 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2227 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2228  
2229  
2230 # Find a good install program. We prefer a C program (faster),
2231 # so one script is as good as another. But avoid the broken or
2232 # incompatible versions:
2233 # SysV /etc/install, /usr/sbin/install
2234 # SunOS /usr/etc/install
2235 # IRIX /sbin/install
2236 # AIX /bin/install
2237 # AmigaOS /C/install, which installs bootblocks on floppy discs
2238 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2241 # OS/2's system install, which has a completely different semantic
2242 # ./install, which can be erroneously created by make from ./install.sh.
2243 # Reject install programs that cannot install multiple files.
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2245 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2246 if test -z "$INSTALL"; then
2247 if test "${ac_cv_path_install+set}" = set; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 # Account for people who put trailing slashes in PATH elements.
2256 case $as_dir/ in @%:@((
2257 ./ | .// | /[cC]/* | \
2258 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2259 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2260 /usr/ucb/* ) ;;
2261 *)
2262 # OSF1 and SCO ODT 3.0 have their own names for install.
2263 # Don't use installbsd from OSF since it installs stuff as root
2264 # by default.
2265 for ac_prog in ginstall scoinst install; do
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2268 if test $ac_prog = install &&
2269 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2270 # AIX install. It has an incompatible calling convention.
2271 :
2272 elif test $ac_prog = install &&
2273 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274 # program-specific install script used by HP pwplus--don't use.
2275 :
2276 else
2277 rm -rf conftest.one conftest.two conftest.dir
2278 echo one > conftest.one
2279 echo two > conftest.two
2280 mkdir conftest.dir
2281 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2282 test -s conftest.one && test -s conftest.two &&
2283 test -s conftest.dir/conftest.one &&
2284 test -s conftest.dir/conftest.two
2285 then
2286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2287 break 3
2288 fi
2289 fi
2290 fi
2291 done
2292 done
2293 ;;
2294 esac
2295  
2296 done
2297 IFS=$as_save_IFS
2298  
2299 rm -rf conftest.one conftest.two conftest.dir
2300  
2301 fi
2302 if test "${ac_cv_path_install+set}" = set; then
2303 INSTALL=$ac_cv_path_install
2304 else
2305 # As a last resort, use the slow shell script. Don't cache a
2306 # value for INSTALL within a source directory, because that will
2307 # break other packages using the cache if that directory is
2308 # removed, or if the value is a relative name.
2309 INSTALL=$ac_install_sh
2310 fi
2311 fi
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2313 $as_echo "$INSTALL" >&6; }
2314  
2315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2316 # It thinks the first close brace ends the variable substitution.
2317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2318  
2319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2320  
2321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2322  
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2324 $as_echo_n "checking whether build environment is sane... " >&6; }
2325 # Just in case
2326 sleep 1
2327 echo timestamp > conftest.file
2328 # Reject unsafe characters in $srcdir or the absolute working directory
2329 # name. Accept space and tab only in the latter.
2330 am_lf='
2331 '
2332 case `pwd` in
2333 *[\\\"\#\$\&\'\`$am_lf]*)
2334 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2335 esac
2336 case $srcdir in
2337 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2338 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2339 esac
2340  
2341 # Do `set' in a subshell so we don't clobber the current shell's
2342 # arguments. Must try -L first in case configure is actually a
2343 # symlink; some systems play weird games with the mod time of symlinks
2344 # (eg FreeBSD returns the mod time of the symlink's containing
2345 # directory).
2346 if (
2347 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2348 if test "$*" = "X"; then
2349 # -L didn't work.
2350 set X `ls -t "$srcdir/configure" conftest.file`
2351 fi
2352 rm -f conftest.file
2353 if test "$*" != "X $srcdir/configure conftest.file" \
2354 && test "$*" != "X conftest.file $srcdir/configure"; then
2355  
2356 # If neither matched, then we have a broken ls. This can happen
2357 # if, for instance, CONFIG_SHELL is bash and it inherits a
2358 # broken ls alias from the environment. This has actually
2359 # happened. Such a system could not be considered "sane".
2360 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2361 alias in your environment" "$LINENO" 5
2362 fi
2363  
2364 test "$2" = conftest.file
2365 )
2366 then
2367 # Ok.
2368 :
2369 else
2370 as_fn_error "newly created file is older than distributed files!
2371 Check your system clock" "$LINENO" 5
2372 fi
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2374 $as_echo "yes" >&6; }
2375 test "$program_prefix" != NONE &&
2376 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2377 # Use a double $ so make ignores it.
2378 test "$program_suffix" != NONE &&
2379 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2380 # Double any \ or $.
2381 # By default was `s,x,x', remove it if useless.
2382 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2383 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2384  
2385 # expand $ac_aux_dir to an absolute path
2386 am_aux_dir=`cd $ac_aux_dir && pwd`
2387  
2388 if test x"${MISSING+set}" != xset; then
2389 case $am_aux_dir in
2390 *\ * | *\ *)
2391 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2392 *)
2393 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2394 esac
2395 fi
2396 # Use eval to expand $SHELL
2397 if eval "$MISSING --run true"; then
2398 am_missing_run="$MISSING --run "
2399 else
2400 am_missing_run=
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2402 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2403 fi
2404  
2405 if test x"${install_sh}" != xset; then
2406 case $am_aux_dir in
2407 *\ * | *\ *)
2408 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2409 *)
2410 install_sh="\${SHELL} $am_aux_dir/install-sh"
2411 esac
2412 fi
2413  
2414 # Installed binaries are usually stripped using `strip' when the user
2415 # run `make install-strip'. However `strip' might not be the right
2416 # tool to use in cross-compilation environments, therefore Automake
2417 # will honor the `STRIP' environment variable to overrule this program.
2418 if test "$cross_compiling" != no; then
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}strip; ac_word=$2
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if test "${ac_cv_prog_STRIP+set}" = set; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 if test -n "$STRIP"; then
2428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2440 fi
2441 done
2442 done
2443 IFS=$as_save_IFS
2444  
2445 fi
2446 fi
2447 STRIP=$ac_cv_prog_STRIP
2448 if test -n "$STRIP"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2450 $as_echo "$STRIP" >&6; }
2451 else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2454 fi
2455  
2456  
2457 fi
2458 if test -z "$ac_cv_prog_STRIP"; then
2459 ac_ct_STRIP=$STRIP
2460 # Extract the first word of "strip", so it can be a program name with args.
2461 set dummy strip; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test -n "$ac_ct_STRIP"; then
2468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_ac_ct_STRIP="strip"
2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483 IFS=$as_save_IFS
2484  
2485 fi
2486 fi
2487 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2488 if test -n "$ac_ct_STRIP"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2490 $as_echo "$ac_ct_STRIP" >&6; }
2491 else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495  
2496 if test "x$ac_ct_STRIP" = x; then
2497 STRIP=":"
2498 else
2499 case $cross_compiling:$ac_tool_warned in
2500 yes:)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505 STRIP=$ac_ct_STRIP
2506 fi
2507 else
2508 STRIP="$ac_cv_prog_STRIP"
2509 fi
2510  
2511 fi
2512 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2513  
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2515 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2516 if test -z "$MKDIR_P"; then
2517 if test "${ac_cv_path_mkdir+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2522 do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_prog in mkdir gmkdir; do
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2528 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2529 'mkdir (GNU coreutils) '* | \
2530 'mkdir (coreutils) '* | \
2531 'mkdir (fileutils) '4.1*)
2532 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2533 break 3;;
2534 esac
2535 done
2536 done
2537 done
2538 IFS=$as_save_IFS
2539  
2540 fi
2541  
2542 if test "${ac_cv_path_mkdir+set}" = set; then
2543 MKDIR_P="$ac_cv_path_mkdir -p"
2544 else
2545 # As a last resort, use the slow shell script. Don't cache a
2546 # value for MKDIR_P within a source directory, because that will
2547 # break other packages using the cache if that directory is
2548 # removed, or if the value is a relative name.
2549 test -d ./--version && rmdir ./--version
2550 MKDIR_P="$ac_install_sh -d"
2551 fi
2552 fi
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2554 $as_echo "$MKDIR_P" >&6; }
2555  
2556 mkdir_p="$MKDIR_P"
2557 case $mkdir_p in
2558 [\\/$]* | ?:[\\/]*) ;;
2559 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2560 esac
2561  
2562 for ac_prog in gawk mawk nawk awk
2563 do
2564 # Extract the first word of "$ac_prog", so it can be a program name with args.
2565 set dummy $ac_prog; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if test "${ac_cv_prog_AWK+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if test -n "$AWK"; then
2572 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_AWK="$ac_prog"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588  
2589 fi
2590 fi
2591 AWK=$ac_cv_prog_AWK
2592 if test -n "$AWK"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2594 $as_echo "$AWK" >&6; }
2595 else
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599  
2600  
2601 test -n "$AWK" && break
2602 done
2603  
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2605 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2606 set x ${MAKE-make}
2607 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2608 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 cat >conftest.make <<\_ACEOF
2612 SHELL = /bin/sh
2613 all:
2614 @echo '@@@%%%=$(MAKE)=@@@%%%'
2615 _ACEOF
2616 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2617 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2618 *@@@%%%=?*=@@@%%%*)
2619 eval ac_cv_prog_make_${ac_make}_set=yes;;
2620 *)
2621 eval ac_cv_prog_make_${ac_make}_set=no;;
2622 esac
2623 rm -f conftest.make
2624 fi
2625 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2628 SET_MAKE=
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2632 SET_MAKE="MAKE=${MAKE-make}"
2633 fi
2634  
2635 rm -rf .tst 2>/dev/null
2636 mkdir .tst 2>/dev/null
2637 if test -d .tst; then
2638 am__leading_dot=.
2639 else
2640 am__leading_dot=_
2641 fi
2642 rmdir .tst 2>/dev/null
2643  
2644 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2645 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2646 # is not polluted with repeated "-I."
2647 am__isrc=' -I$(srcdir)'
2648 # test to see if srcdir already configured
2649 if test -f $srcdir/config.status; then
2650 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2651 fi
2652 fi
2653  
2654 # test whether we have cygpath
2655 if test -z "$CYGPATH_W"; then
2656 if (cygpath --version) >/dev/null 2>/dev/null; then
2657 CYGPATH_W='cygpath -w'
2658 else
2659 CYGPATH_W=echo
2660 fi
2661 fi
2662  
2663  
2664 # Define the identity of the package.
2665 PACKAGE=sonar
2666 VERSION=0.1
2667  
2668  
2669 cat >>confdefs.h <<_ACEOF
2670 @%:@define PACKAGE "$PACKAGE"
2671 _ACEOF
2672  
2673  
2674 cat >>confdefs.h <<_ACEOF
2675 @%:@define VERSION "$VERSION"
2676 _ACEOF
2677  
2678 # Some tools Automake needs.
2679  
2680 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2681  
2682  
2683 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2684  
2685  
2686 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2687  
2688  
2689 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2690  
2691  
2692 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2693  
2694 # We need awk for the "check" target. The system "awk" is bad on
2695 # some platforms.
2696 # Always define AMTAR for backward compatibility.
2697  
2698 AMTAR=${AMTAR-"${am_missing_run}tar"}
2699  
2700 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2701  
2702  
2703  
2704  
2705  
2706  
2707 ac_ext=c
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712  
2713 ac_ext=c
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 if test -n "$ac_tool_prefix"; then
2719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if test "${ac_cv_prog_CC+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2743  
2744 fi
2745 fi
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2749 $as_echo "$CC" >&6; }
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754  
2755  
2756 fi
2757 if test -z "$ac_cv_prog_CC"; then
2758 ac_ct_CC=$CC
2759 # Extract the first word of "gcc", so it can be a program name with args.
2760 set dummy gcc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$ac_ct_CC"; then
2767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_ac_ct_CC="gcc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2783  
2784 fi
2785 fi
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2789 $as_echo "$ac_ct_CC" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2793 fi
2794  
2795 if test "x$ac_ct_CC" = x; then
2796 CC=""
2797 else
2798 case $cross_compiling:$ac_tool_warned in
2799 yes:)
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2802 ac_tool_warned=yes ;;
2803 esac
2804 CC=$ac_ct_CC
2805 fi
2806 else
2807 CC="$ac_cv_prog_CC"
2808 fi
2809  
2810 if test -z "$CC"; then
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}cc; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if test "${ac_cv_prog_CC+set}" = set; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_CC="${ac_tool_prefix}cc"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835 IFS=$as_save_IFS
2836  
2837 fi
2838 fi
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2842 $as_echo "$CC" >&6; }
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 fi
2847  
2848  
2849 fi
2850 fi
2851 if test -z "$CC"; then
2852 # Extract the first word of "cc", so it can be a program name with args.
2853 set dummy cc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 ac_prog_rejected=no
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2871 ac_prog_rejected=yes
2872 continue
2873 fi
2874 ac_cv_prog_CC="cc"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2877 fi
2878 done
2879 done
2880 IFS=$as_save_IFS
2881  
2882 if test $ac_prog_rejected = yes; then
2883 # We found a bogon in the path, so make sure we never use it.
2884 set dummy $ac_cv_prog_CC
2885 shift
2886 if test $@%:@ != 0; then
2887 # We chose a different compiler from the bogus one.
2888 # However, it has the same basename, so the bogon will be chosen
2889 # first if we set CC to just the basename; use the full file name.
2890 shift
2891 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2892 fi
2893 fi
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904  
2905  
2906 fi
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 for ac_prog in cl.exe
2910 do
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if test "${ac_cv_prog_CC+set}" = set; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935  
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2942 else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946  
2947  
2948 test -n "$CC" && break
2949 done
2950 fi
2951 if test -z "$CC"; then
2952 ac_ct_CC=$CC
2953 for ac_prog in cl.exe
2954 do
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$ac_ct_CC"; then
2963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_ac_ct_CC="$ac_prog"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979  
2980 fi
2981 fi
2982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2983 if test -n "$ac_ct_CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2985 $as_echo "$ac_ct_CC" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990  
2991  
2992 test -n "$ac_ct_CC" && break
2993 done
2994  
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004 CC=$ac_ct_CC
3005 fi
3006 fi
3007  
3008 fi
3009  
3010  
3011 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013 as_fn_error "no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." "$LINENO" 5; }
3015  
3016 # Provide some information about the compiler.
3017 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3018 set X $ac_compile
3019 ac_compiler=$2
3020 for ac_option in --version -v -V -qversion; do
3021 { { ac_try="$ac_compiler $ac_option >&5"
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3029 ac_status=$?
3030 if test -s conftest.err; then
3031 sed '10a\
3032 ... rest of stderr output deleted ...
3033 10q' conftest.err >conftest.er1
3034 cat conftest.er1 >&5
3035 rm -f conftest.er1 conftest.err
3036 fi
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }
3039 done
3040  
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3043 @%:@include <stdio.h>
3044 int
3045 main ()
3046 {
3047 FILE *f = fopen ("conftest.out", "w");
3048 return ferror (f) || fclose (f) != 0;
3049  
3050 ;
3051 return 0;
3052 }
3053 _ACEOF
3054 ac_clean_files_save=$ac_clean_files
3055 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3056 # Try to create an executable without -o first, disregard a.out.
3057 # It will help us diagnose broken compilers, and finding out an intuition
3058 # of exeext.
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3060 $as_echo_n "checking for C compiler default output file name... " >&6; }
3061 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3062  
3063 # The possible output files:
3064 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3065  
3066 ac_rmfiles=
3067 for ac_file in $ac_files
3068 do
3069 case $ac_file in
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3071 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3072 esac
3073 done
3074 rm -f $ac_rmfiles
3075  
3076 if { { ac_try="$ac_link_default"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_link_default") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3088 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3089 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3090 # so that the user can short-circuit this test for compilers unknown to
3091 # Autoconf.
3092 for ac_file in $ac_files ''
3093 do
3094 test -f "$ac_file" || continue
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3097 ;;
3098 [ab].out )
3099 # We found the default executable, but exeext='' is most
3100 # certainly right.
3101 break;;
3102 *.* )
3103 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3104 then :; else
3105 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106 fi
3107 # We set ac_cv_exeext here because the later test for it is not
3108 # safe: cross compilers may not add the suffix if given an `-o'
3109 # argument, so we may need to know it at that point already.
3110 # Even if this section looks crufty: it has the advantage of
3111 # actually working.
3112 break;;
3113 * )
3114 break;;
3115 esac
3116 done
3117 test "$ac_cv_exeext" = no && ac_cv_exeext=
3118  
3119 else
3120 ac_file=''
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3123 $as_echo "$ac_file" >&6; }
3124 if test -z "$ac_file"; then :
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127  
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 { as_fn_set_status 77
3131 as_fn_error "C compiler cannot create executables
3132 See \`config.log' for more details." "$LINENO" 5; }; }
3133 fi
3134 ac_exeext=$ac_cv_exeext
3135  
3136 # Check that the compiler produces executables we can run. If not, either
3137 # the compiler is broken, or we cross compile.
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3139 $as_echo_n "checking whether the C compiler works... " >&6; }
3140 # If not cross compiling, check that we can run a simple program.
3141 if test "$cross_compiling" != yes; then
3142 if { ac_try='./$ac_file'
3143 { { case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; }; then
3153 cross_compiling=no
3154 else
3155 if test "$cross_compiling" = maybe; then
3156 cross_compiling=yes
3157 else
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error "cannot run C compiled programs.
3161 If you meant to cross compile, use \`--host'.
3162 See \`config.log' for more details." "$LINENO" 5; }
3163 fi
3164 fi
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3168  
3169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3170 ac_clean_files=$ac_clean_files_save
3171 # Check that the compiler produces executables we can run. If not, either
3172 # the compiler is broken, or we cross compile.
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3174 $as_echo_n "checking whether we are cross compiling... " >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3176 $as_echo "$cross_compiling" >&6; }
3177  
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3179 $as_echo_n "checking for suffix of executables... " >&6; }
3180 if { { ac_try="$ac_link"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186 $as_echo "$ac_try_echo"; } >&5
3187 (eval "$ac_link") 2>&5
3188 ac_status=$?
3189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190 test $ac_status = 0; }; then :
3191 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3192 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3193 # work properly (i.e., refer to `conftest.exe'), while it won't with
3194 # `rm'.
3195 for ac_file in conftest.exe conftest conftest.*; do
3196 test -f "$ac_file" || continue
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 break;;
3201 * ) break;;
3202 esac
3203 done
3204 else
3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207 as_fn_error "cannot compute suffix of executables: cannot compile and link
3208 See \`config.log' for more details." "$LINENO" 5; }
3209 fi
3210 rm -f conftest$ac_cv_exeext
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3212 $as_echo "$ac_cv_exeext" >&6; }
3213  
3214 rm -f conftest.$ac_ext
3215 EXEEXT=$ac_cv_exeext
3216 ac_exeext=$EXEEXT
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3218 $as_echo_n "checking for suffix of object files... " >&6; }
3219 if test "${ac_cv_objext+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3224  
3225 int
3226 main ()
3227 {
3228  
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.o conftest.obj
3234 if { { ac_try="$ac_compile"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_compile") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; then :
3245 for ac_file in conftest.o conftest.obj conftest.*; do
3246 test -f "$ac_file" || continue;
3247 case $ac_file in
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3250 break;;
3251 esac
3252 done
3253 else
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256  
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error "cannot compute suffix of object files: cannot compile
3260 See \`config.log' for more details." "$LINENO" 5; }
3261 fi
3262 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3265 $as_echo "$ac_cv_objext" >&6; }
3266 OBJEXT=$ac_cv_objext
3267 ac_objext=$OBJEXT
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3269 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3270 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275  
3276 int
3277 main ()
3278 {
3279 #ifndef __GNUC__
3280 choke me
3281 #endif
3282  
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 if ac_fn_c_try_compile "$LINENO"; then :
3288 ac_compiler_gnu=yes
3289 else
3290 ac_compiler_gnu=no
3291 fi
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3294  
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3297 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3298 if test $ac_compiler_gnu = yes; then
3299 GCC=yes
3300 else
3301 GCC=
3302 fi
3303 ac_test_CFLAGS=${CFLAGS+set}
3304 ac_save_CFLAGS=$CFLAGS
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3306 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3307 if test "${ac_cv_prog_cc_g+set}" = set; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 ac_save_c_werror_flag=$ac_c_werror_flag
3311 ac_c_werror_flag=yes
3312 ac_cv_prog_cc_g=no
3313 CFLAGS="-g"
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3316  
3317 int
3318 main ()
3319 {
3320  
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 if ac_fn_c_try_compile "$LINENO"; then :
3326 ac_cv_prog_cc_g=yes
3327 else
3328 CFLAGS=""
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331  
3332 int
3333 main ()
3334 {
3335  
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 if ac_fn_c_try_compile "$LINENO"; then :
3341  
3342 else
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3344 CFLAGS="-g"
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347  
3348 int
3349 main ()
3350 {
3351  
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357 ac_cv_prog_cc_g=yes
3358 fi
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 fi
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 fi
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_c_werror_flag=$ac_save_c_werror_flag
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3367 $as_echo "$ac_cv_prog_cc_g" >&6; }
3368 if test "$ac_test_CFLAGS" = set; then
3369 CFLAGS=$ac_save_CFLAGS
3370 elif test $ac_cv_prog_cc_g = yes; then
3371 if test "$GCC" = yes; then
3372 CFLAGS="-g -O2"
3373 else
3374 CFLAGS="-g"
3375 fi
3376 else
3377 if test "$GCC" = yes; then
3378 CFLAGS="-O2"
3379 else
3380 CFLAGS=
3381 fi
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3384 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3385 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 ac_cv_prog_cc_c89=no
3389 ac_save_CC=$CC
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3392 #include <stdarg.h>
3393 #include <stdio.h>
3394 #include <sys/types.h>
3395 #include <sys/stat.h>
3396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3397 struct buf { int x; };
3398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3399 static char *e (p, i)
3400 char **p;
3401 int i;
3402 {
3403 return p[i];
3404 }
3405 static char *f (char * (*g) (char **, int), char **p, ...)
3406 {
3407 char *s;
3408 va_list v;
3409 va_start (v,p);
3410 s = g (p, va_arg (v,int));
3411 va_end (v);
3412 return s;
3413 }
3414  
3415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3416 function prototypes and stuff, but not '\xHH' hex character constants.
3417 These don't provoke an error unfortunately, instead are silently treated
3418 as 'x'. The following induces an error, until -std is added to get
3419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3420 array size at least. It's necessary to write '\x00'==0 to get something
3421 that's true only with -std. */
3422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423  
3424 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3425 inside strings and character constants. */
3426 #define FOO(x) 'x'
3427 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3428  
3429 int test (int i, double x);
3430 struct s1 {int (*f) (int a);};
3431 struct s2 {int (*f) (double a);};
3432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 int argc;
3434 char **argv;
3435 int
3436 main ()
3437 {
3438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3439 ;
3440 return 0;
3441 }
3442 _ACEOF
3443 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3444 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3445 do
3446 CC="$ac_save_CC $ac_arg"
3447 if ac_fn_c_try_compile "$LINENO"; then :
3448 ac_cv_prog_cc_c89=$ac_arg
3449 fi
3450 rm -f core conftest.err conftest.$ac_objext
3451 test "x$ac_cv_prog_cc_c89" != "xno" && break
3452 done
3453 rm -f conftest.$ac_ext
3454 CC=$ac_save_CC
3455  
3456 fi
3457 # AC_CACHE_VAL
3458 case "x$ac_cv_prog_cc_c89" in
3459 x)
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3461 $as_echo "none needed" >&6; } ;;
3462 xno)
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3464 $as_echo "unsupported" >&6; } ;;
3465 *)
3466 CC="$CC $ac_cv_prog_cc_c89"
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3469 esac
3470 if test "x$ac_cv_prog_cc_c89" != xno; then :
3471  
3472 fi
3473  
3474 ac_ext=c
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479 DEPDIR="${am__leading_dot}deps"
3480  
3481 ac_config_commands="$ac_config_commands depfiles"
3482  
3483  
3484 am_make=${MAKE-make}
3485 cat > confinc << 'END'
3486 am__doit:
3487 @echo this is the am__doit target
3488 .PHONY: am__doit
3489 END
3490 # If we don't find an include directive, just comment out the code.
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3492 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3493 am__include="#"
3494 am__quote=
3495 _am_result=none
3496 # First try GNU make style include.
3497 echo "include confinc" > confmf
3498 # Ignore all kinds of additional output from `make'.
3499 case `$am_make -s -f confmf 2> /dev/null` in #(
3500 *the\ am__doit\ target*)
3501 am__include=include
3502 am__quote=
3503 _am_result=GNU
3504 ;;
3505 esac
3506 # Now try BSD make style include.
3507 if test "$am__include" = "#"; then
3508 echo '.include "confinc"' > confmf
3509 case `$am_make -s -f confmf 2> /dev/null` in #(
3510 *the\ am__doit\ target*)
3511 am__include=.include
3512 am__quote="\""
3513 _am_result=BSD
3514 ;;
3515 esac
3516 fi
3517  
3518  
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3520 $as_echo "$_am_result" >&6; }
3521 rm -f confinc confmf
3522  
3523 @%:@ Check whether --enable-dependency-tracking was given.
3524 if test "${enable_dependency_tracking+set}" = set; then :
3525 enableval=$enable_dependency_tracking;
3526 fi
3527  
3528 if test "x$enable_dependency_tracking" != xno; then
3529 am_depcomp="$ac_aux_dir/depcomp"
3530 AMDEPBACKSLASH='\'
3531 fi
3532 if test "x$enable_dependency_tracking" != xno; then
3533 AMDEP_TRUE=
3534 AMDEP_FALSE='#'
3535 else
3536 AMDEP_TRUE='#'
3537 AMDEP_FALSE=
3538 fi
3539  
3540  
3541  
3542 depcc="$CC" am_compiler_list=
3543  
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3545 $as_echo_n "checking dependency style of $depcc... " >&6; }
3546 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3550 # We make a subdir and do the tests there. Otherwise we can end up
3551 # making bogus files that we don't know about and never remove. For
3552 # instance it was reported that on HP-UX the gcc test will end up
3553 # making a dummy file named `D' -- because `-MD' means `put the output
3554 # in D'.
3555 mkdir conftest.dir
3556 # Copy depcomp to subdir because otherwise we won't find it if we're
3557 # using a relative directory.
3558 cp "$am_depcomp" conftest.dir
3559 cd conftest.dir
3560 # We will build objects and dependencies in a subdirectory because
3561 # it helps to detect inapplicable dependency modes. For instance
3562 # both Tru64's cc and ICC support -MD to output dependencies as a
3563 # side effect of compilation, but ICC will put the dependencies in
3564 # the current directory while Tru64 will put them in the object
3565 # directory.
3566 mkdir sub
3567  
3568 am_cv_CC_dependencies_compiler_type=none
3569 if test "$am_compiler_list" = ""; then
3570 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3571 fi
3572 am__universal=false
3573 case " $depcc " in #(
3574 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3575 esac
3576  
3577 for depmode in $am_compiler_list; do
3578 # Setup a source with many dependencies, because some compilers
3579 # like to wrap large dependency lists on column 80 (with \), and
3580 # we should not choose a depcomp mode which is confused by this.
3581 #
3582 # We need to recreate these files for each test, as the compiler may
3583 # overwrite some of them when testing with obscure command lines.
3584 # This happens at least with the AIX C compiler.
3585 : > sub/conftest.c
3586 for i in 1 2 3 4 5 6; do
3587 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3588 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3589 # Solaris 8's {/usr,}/bin/sh.
3590 touch sub/conftst$i.h
3591 done
3592 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3593  
3594 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3595 # mode. It turns out that the SunPro C++ compiler does not properly
3596 # handle `-M -o', and we need to detect this. Also, some Intel
3597 # versions had trouble with output in subdirs
3598 am__obj=sub/conftest.${OBJEXT-o}
3599 am__minus_obj="-o $am__obj"
3600 case $depmode in
3601 gcc)
3602 # This depmode causes a compiler race in universal mode.
3603 test "$am__universal" = false || continue
3604 ;;
3605 nosideeffect)
3606 # after this tag, mechanisms are not by side-effect, so they'll
3607 # only be used when explicitly requested
3608 if test "x$enable_dependency_tracking" = xyes; then
3609 continue
3610 else
3611 break
3612 fi
3613 ;;
3614 msvisualcpp | msvcmsys)
3615 # This compiler won't grok `-c -o', but also, the minuso test has
3616 # not run yet. These depmodes are late enough in the game, and
3617 # so weak that their functioning should not be impacted.
3618 am__obj=conftest.${OBJEXT-o}
3619 am__minus_obj=
3620 ;;
3621 none) break ;;
3622 esac
3623 if depmode=$depmode \
3624 source=sub/conftest.c object=$am__obj \
3625 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3626 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3627 >/dev/null 2>conftest.err &&
3628 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3629 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3630 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3631 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3632 # icc doesn't choke on unknown options, it will just issue warnings
3633 # or remarks (even with -Werror). So we grep stderr for any message
3634 # that says an option was ignored or not supported.
3635 # When given -MP, icc 7.0 and 7.1 complain thusly:
3636 # icc: Command line warning: ignoring option '-M'; no argument required
3637 # The diagnosis changed in icc 8.0:
3638 # icc: Command line remark: option '-MP' not supported
3639 if (grep 'ignoring option' conftest.err ||
3640 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3641 am_cv_CC_dependencies_compiler_type=$depmode
3642 break
3643 fi
3644 fi
3645 done
3646  
3647 cd ..
3648 rm -rf conftest.dir
3649 else
3650 am_cv_CC_dependencies_compiler_type=none
3651 fi
3652  
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3655 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3656 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3657  
3658 if
3659 test "x$enable_dependency_tracking" != xno \
3660 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3661 am__fastdepCC_TRUE=
3662 am__fastdepCC_FALSE='#'
3663 else
3664 am__fastdepCC_TRUE='#'
3665 am__fastdepCC_FALSE=
3666 fi
3667  
3668  
3669 case `pwd` in
3670 *\ * | *\ *)
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3672 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3673 esac
3674  
3675  
3676  
3677 macro_version='2.2.6'
3678 macro_revision='1.3012'
3679  
3680  
3681  
3682  
3683  
3684  
3685  
3686  
3687  
3688  
3689  
3690  
3691  
3692 ltmain="$ac_aux_dir/ltmain.sh"
3693  
3694 # Make sure we can run config.sub.
3695 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3696 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3697  
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3699 $as_echo_n "checking build system type... " >&6; }
3700 if test "${ac_cv_build+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 ac_build_alias=$build_alias
3704 test "x$ac_build_alias" = x &&
3705 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3706 test "x$ac_build_alias" = x &&
3707 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3708 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3709 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3710  
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3713 $as_echo "$ac_cv_build" >&6; }
3714 case $ac_cv_build in
3715 *-*-*) ;;
3716 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3717 esac
3718 build=$ac_cv_build
3719 ac_save_IFS=$IFS; IFS='-'
3720 set x $ac_cv_build
3721 shift
3722 build_cpu=$1
3723 build_vendor=$2
3724 shift; shift
3725 # Remember, the first character of IFS is used to create $*,
3726 # except with old shells:
3727 build_os=$*
3728 IFS=$ac_save_IFS
3729 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3730  
3731  
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3733 $as_echo_n "checking host system type... " >&6; }
3734 if test "${ac_cv_host+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test "x$host_alias" = x; then
3738 ac_cv_host=$ac_cv_build
3739 else
3740 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3741 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3742 fi
3743  
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3746 $as_echo "$ac_cv_host" >&6; }
3747 case $ac_cv_host in
3748 *-*-*) ;;
3749 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3750 esac
3751 host=$ac_cv_host
3752 ac_save_IFS=$IFS; IFS='-'
3753 set x $ac_cv_host
3754 shift
3755 host_cpu=$1
3756 host_vendor=$2
3757 shift; shift
3758 # Remember, the first character of IFS is used to create $*,
3759 # except with old shells:
3760 host_os=$*
3761 IFS=$ac_save_IFS
3762 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3763  
3764  
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3766 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3767 if test "${ac_cv_path_SED+set}" = set; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3771 for ac_i in 1 2 3 4 5 6 7; do
3772 ac_script="$ac_script$as_nl$ac_script"
3773 done
3774 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3775 { ac_script=; unset ac_script;}
3776 if test -z "$SED"; then
3777 ac_path_SED_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_prog in sed gsed; do
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3787 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3788 # Check for GNU ac_path_SED and select it if it is found.
3789 # Check for GNU $ac_path_SED
3790 case `"$ac_path_SED" --version 2>&1` in
3791 *GNU*)
3792 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3793 *)
3794 ac_count=0
3795 $as_echo_n 0123456789 >"conftest.in"
3796 while :
3797 do
3798 cat "conftest.in" "conftest.in" >"conftest.tmp"
3799 mv "conftest.tmp" "conftest.in"
3800 cp "conftest.in" "conftest.nl"
3801 $as_echo '' >> "conftest.nl"
3802 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804 as_fn_arith $ac_count + 1 && ac_count=$as_val
3805 if test $ac_count -gt ${ac_path_SED_max-0}; then
3806 # Best one so far, save it but keep looking for a better one
3807 ac_cv_path_SED="$ac_path_SED"
3808 ac_path_SED_max=$ac_count
3809 fi
3810 # 10*(2^10) chars as input seems more than enough
3811 test $ac_count -gt 10 && break
3812 done
3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3814 esac
3815  
3816 $ac_path_SED_found && break 3
3817 done
3818 done
3819 done
3820 IFS=$as_save_IFS
3821 if test -z "$ac_cv_path_SED"; then
3822 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3823 fi
3824 else
3825 ac_cv_path_SED=$SED
3826 fi
3827  
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3830 $as_echo "$ac_cv_path_SED" >&6; }
3831 SED="$ac_cv_path_SED"
3832 rm -f conftest.sed
3833  
3834 test -z "$SED" && SED=sed
3835 Xsed="$SED -e 1s/^X//"
3836  
3837  
3838  
3839  
3840  
3841  
3842  
3843  
3844  
3845  
3846  
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3848 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3849 if test "${ac_cv_path_GREP+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 if test -z "$GREP"; then
3853 ac_path_GREP_found=false
3854 # Loop through the user's path and test for each of PROGNAME-LIST
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3857 do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in grep ggrep; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3863 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3864 # Check for GNU ac_path_GREP and select it if it is found.
3865 # Check for GNU $ac_path_GREP
3866 case `"$ac_path_GREP" --version 2>&1` in
3867 *GNU*)
3868 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3869 *)
3870 ac_count=0
3871 $as_echo_n 0123456789 >"conftest.in"
3872 while :
3873 do
3874 cat "conftest.in" "conftest.in" >"conftest.tmp"
3875 mv "conftest.tmp" "conftest.in"
3876 cp "conftest.in" "conftest.nl"
3877 $as_echo 'GREP' >> "conftest.nl"
3878 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880 as_fn_arith $ac_count + 1 && ac_count=$as_val
3881 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_GREP="$ac_path_GREP"
3884 ac_path_GREP_max=$ac_count
3885 fi
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3888 done
3889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3890 esac
3891  
3892 $ac_path_GREP_found && break 3
3893 done
3894 done
3895 done
3896 IFS=$as_save_IFS
3897 if test -z "$ac_cv_path_GREP"; then
3898 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3899 fi
3900 else
3901 ac_cv_path_GREP=$GREP
3902 fi
3903  
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3906 $as_echo "$ac_cv_path_GREP" >&6; }
3907 GREP="$ac_cv_path_GREP"
3908  
3909  
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3911 $as_echo_n "checking for egrep... " >&6; }
3912 if test "${ac_cv_path_EGREP+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3916 then ac_cv_path_EGREP="$GREP -E"
3917 else
3918 if test -z "$EGREP"; then
3919 ac_path_EGREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3923 do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_prog in egrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3930 # Check for GNU ac_path_EGREP and select it if it is found.
3931 # Check for GNU $ac_path_EGREP
3932 case `"$ac_path_EGREP" --version 2>&1` in
3933 *GNU*)
3934 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3935 *)
3936 ac_count=0
3937 $as_echo_n 0123456789 >"conftest.in"
3938 while :
3939 do
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
3943 $as_echo 'EGREP' >> "conftest.nl"
3944 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946 as_fn_arith $ac_count + 1 && ac_count=$as_val
3947 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_EGREP="$ac_path_EGREP"
3950 ac_path_EGREP_max=$ac_count
3951 fi
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3954 done
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956 esac
3957  
3958 $ac_path_EGREP_found && break 3
3959 done
3960 done
3961 done
3962 IFS=$as_save_IFS
3963 if test -z "$ac_cv_path_EGREP"; then
3964 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3965 fi
3966 else
3967 ac_cv_path_EGREP=$EGREP
3968 fi
3969  
3970 fi
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3973 $as_echo "$ac_cv_path_EGREP" >&6; }
3974 EGREP="$ac_cv_path_EGREP"
3975  
3976  
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3978 $as_echo_n "checking for fgrep... " >&6; }
3979 if test "${ac_cv_path_FGREP+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3983 then ac_cv_path_FGREP="$GREP -F"
3984 else
3985 if test -z "$FGREP"; then
3986 ac_path_FGREP_found=false
3987 # Loop through the user's path and test for each of PROGNAME-LIST
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_prog in fgrep; do
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3996 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3997 # Check for GNU ac_path_FGREP and select it if it is found.
3998 # Check for GNU $ac_path_FGREP
3999 case `"$ac_path_FGREP" --version 2>&1` in
4000 *GNU*)
4001 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4002 *)
4003 ac_count=0
4004 $as_echo_n 0123456789 >"conftest.in"
4005 while :
4006 do
4007 cat "conftest.in" "conftest.in" >"conftest.tmp"
4008 mv "conftest.tmp" "conftest.in"
4009 cp "conftest.in" "conftest.nl"
4010 $as_echo 'FGREP' >> "conftest.nl"
4011 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4013 as_fn_arith $ac_count + 1 && ac_count=$as_val
4014 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4015 # Best one so far, save it but keep looking for a better one
4016 ac_cv_path_FGREP="$ac_path_FGREP"
4017 ac_path_FGREP_max=$ac_count
4018 fi
4019 # 10*(2^10) chars as input seems more than enough
4020 test $ac_count -gt 10 && break
4021 done
4022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023 esac
4024  
4025 $ac_path_FGREP_found && break 3
4026 done
4027 done
4028 done
4029 IFS=$as_save_IFS
4030 if test -z "$ac_cv_path_FGREP"; then
4031 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4032 fi
4033 else
4034 ac_cv_path_FGREP=$FGREP
4035 fi
4036  
4037 fi
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4040 $as_echo "$ac_cv_path_FGREP" >&6; }
4041 FGREP="$ac_cv_path_FGREP"
4042  
4043  
4044 test -z "$GREP" && GREP=grep
4045  
4046  
4047  
4048  
4049  
4050  
4051  
4052  
4053  
4054  
4055  
4056  
4057  
4058  
4059  
4060  
4061  
4062  
4063  
4064 @%:@ Check whether --with-gnu-ld was given.
4065 if test "${with_gnu_ld+set}" = set; then :
4066 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4067 else
4068 with_gnu_ld=no
4069 fi
4070  
4071 ac_prog=ld
4072 if test "$GCC" = yes; then
4073 # Check if gcc -print-prog-name=ld gives a path.
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4075 $as_echo_n "checking for ld used by $CC... " >&6; }
4076 case $host in
4077 *-*-mingw*)
4078 # gcc leaves a trailing carriage return which upsets mingw
4079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4080 *)
4081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4082 esac
4083 case $ac_prog in
4084 # Accept absolute paths.
4085 [\\/]* | ?:[\\/]*)
4086 re_direlt='/[^/][^/]*/\.\./'
4087 # Canonicalize the pathname of ld
4088 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4089 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4090 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4091 done
4092 test -z "$LD" && LD="$ac_prog"
4093 ;;
4094 "")
4095 # If it fails, then pretend we aren't using GCC.
4096 ac_prog=ld
4097 ;;
4098 *)
4099 # If it is relative, then search for the first ld in PATH.
4100 with_gnu_ld=unknown
4101 ;;
4102 esac
4103 elif test "$with_gnu_ld" = yes; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4105 $as_echo_n "checking for GNU ld... " >&6; }
4106 else
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4108 $as_echo_n "checking for non-GNU ld... " >&6; }
4109 fi
4110 if test "${lt_cv_path_LD+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -z "$LD"; then
4114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4115 for ac_dir in $PATH; do
4116 IFS="$lt_save_ifs"
4117 test -z "$ac_dir" && ac_dir=.
4118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4119 lt_cv_path_LD="$ac_dir/$ac_prog"
4120 # Check to see if the program is GNU ld. I'd rather use --version,
4121 # but apparently some variants of GNU ld only accept -v.
4122 # Break only if it was the GNU/non-GNU ld that we prefer.
4123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4124 *GNU* | *'with BFD'*)
4125 test "$with_gnu_ld" != no && break
4126 ;;
4127 *)
4128 test "$with_gnu_ld" != yes && break
4129 ;;
4130 esac
4131 fi
4132 done
4133 IFS="$lt_save_ifs"
4134 else
4135 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4136 fi
4137 fi
4138  
4139 LD="$lt_cv_path_LD"
4140 if test -n "$LD"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4142 $as_echo "$LD" >&6; }
4143 else
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4146 fi
4147 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4149 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4150 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4154 case `$LD -v 2>&1 </dev/null` in
4155 *GNU* | *'with BFD'*)
4156 lt_cv_prog_gnu_ld=yes
4157 ;;
4158 *)
4159 lt_cv_prog_gnu_ld=no
4160 ;;
4161 esac
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4164 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4165 with_gnu_ld=$lt_cv_prog_gnu_ld
4166  
4167  
4168  
4169  
4170  
4171  
4172  
4173  
4174  
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4176 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4177 if test "${lt_cv_path_NM+set}" = set; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 if test -n "$NM"; then
4181 # Let the user override the test.
4182 lt_cv_path_NM="$NM"
4183 else
4184 lt_nm_to_check="${ac_tool_prefix}nm"
4185 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4186 lt_nm_to_check="$lt_nm_to_check nm"
4187 fi
4188 for lt_tmp_nm in $lt_nm_to_check; do
4189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4190 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4191 IFS="$lt_save_ifs"
4192 test -z "$ac_dir" && ac_dir=.
4193 tmp_nm="$ac_dir/$lt_tmp_nm"
4194 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4195 # Check to see if the nm accepts a BSD-compat flag.
4196 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4197 # nm: unknown option "B" ignored
4198 # Tru64's nm complains that /dev/null is an invalid object file
4199 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4200 */dev/null* | *'Invalid file or object type'*)
4201 lt_cv_path_NM="$tmp_nm -B"
4202 break
4203 ;;
4204 *)
4205 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4206 */dev/null*)
4207 lt_cv_path_NM="$tmp_nm -p"
4208 break
4209 ;;
4210 *)
4211 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4212 continue # so that we can try to find one that supports BSD flags
4213 ;;
4214 esac
4215 ;;
4216 esac
4217 fi
4218 done
4219 IFS="$lt_save_ifs"
4220 done
4221 : ${lt_cv_path_NM=no}
4222 fi
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4225 $as_echo "$lt_cv_path_NM" >&6; }
4226 if test "$lt_cv_path_NM" != "no"; then
4227 NM="$lt_cv_path_NM"
4228 else
4229 # Didn't find any BSD compatible name lister, look for dumpbin.
4230 if test -n "$ac_tool_prefix"; then
4231 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4232 do
4233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -n "$DUMPBIN"; then
4241 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254 done
4255 done
4256 IFS=$as_save_IFS
4257  
4258 fi
4259 fi
4260 DUMPBIN=$ac_cv_prog_DUMPBIN
4261 if test -n "$DUMPBIN"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4263 $as_echo "$DUMPBIN" >&6; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 fi
4268  
4269  
4270 test -n "$DUMPBIN" && break
4271 done
4272 fi
4273 if test -z "$DUMPBIN"; then
4274 ac_ct_DUMPBIN=$DUMPBIN
4275 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4276 do
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 if test -n "$ac_ct_DUMPBIN"; then
4285 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298 done
4299 done
4300 IFS=$as_save_IFS
4301  
4302 fi
4303 fi
4304 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4305 if test -n "$ac_ct_DUMPBIN"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4307 $as_echo "$ac_ct_DUMPBIN" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312  
4313  
4314 test -n "$ac_ct_DUMPBIN" && break
4315 done
4316  
4317 if test "x$ac_ct_DUMPBIN" = x; then
4318 DUMPBIN=":"
4319 else
4320 case $cross_compiling:$ac_tool_warned in
4321 yes:)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4325 esac
4326 DUMPBIN=$ac_ct_DUMPBIN
4327 fi
4328 fi
4329  
4330  
4331 if test "$DUMPBIN" != ":"; then
4332 NM="$DUMPBIN"
4333 fi
4334 fi
4335 test -z "$NM" && NM=nm
4336  
4337  
4338  
4339  
4340  
4341  
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4343 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4344 if test "${lt_cv_nm_interface+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 lt_cv_nm_interface="BSD nm"
4348 echo "int some_variable = 0;" > conftest.$ac_ext
4349 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
4350 (eval "$ac_compile" 2>conftest.err)
4351 cat conftest.err >&5
4352 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4353 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4354 cat conftest.err >&5
4355 (eval echo "\"\$as_me:__oline__: output\"" >&5)
4356 cat conftest.out >&5
4357 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4358 lt_cv_nm_interface="MS dumpbin"
4359 fi
4360 rm -f conftest*
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4363 $as_echo "$lt_cv_nm_interface" >&6; }
4364  
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4366 $as_echo_n "checking whether ln -s works... " >&6; }
4367 LN_S=$as_ln_s
4368 if test "$LN_S" = "ln -s"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4370 $as_echo "yes" >&6; }
4371 else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4373 $as_echo "no, using $LN_S" >&6; }
4374 fi
4375  
4376 # find the maximum length of command line arguments
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4378 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 i=0
4383 teststring="ABCD"
4384  
4385 case $build_os in
4386 msdosdjgpp*)
4387 # On DJGPP, this test can blow up pretty badly due to problems in libc
4388 # (any single argument exceeding 2000 bytes causes a buffer overrun
4389 # during glob expansion). Even if it were fixed, the result of this
4390 # check would be larger than it should be.
4391 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4392 ;;
4393  
4394 gnu*)
4395 # Under GNU Hurd, this test is not required because there is
4396 # no limit to the length of command line arguments.
4397 # Libtool will interpret -1 as no limit whatsoever
4398 lt_cv_sys_max_cmd_len=-1;
4399 ;;
4400  
4401 cygwin* | mingw* | cegcc*)
4402 # On Win9x/ME, this test blows up -- it succeeds, but takes
4403 # about 5 minutes as the teststring grows exponentially.
4404 # Worse, since 9x/ME are not pre-emptively multitasking,
4405 # you end up with a "frozen" computer, even though with patience
4406 # the test eventually succeeds (with a max line length of 256k).
4407 # Instead, let's just punt: use the minimum linelength reported by
4408 # all of the supported platforms: 8192 (on NT/2K/XP).
4409 lt_cv_sys_max_cmd_len=8192;
4410 ;;
4411  
4412 amigaos*)
4413 # On AmigaOS with pdksh, this test takes hours, literally.
4414 # So we just punt and use a minimum line length of 8192.
4415 lt_cv_sys_max_cmd_len=8192;
4416 ;;
4417  
4418 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4419 # This has been around since 386BSD, at least. Likely further.
4420 if test -x /sbin/sysctl; then
4421 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4422 elif test -x /usr/sbin/sysctl; then
4423 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4424 else
4425 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4426 fi
4427 # And add a safety zone
4428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4430 ;;
4431  
4432 interix*)
4433 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4434 lt_cv_sys_max_cmd_len=196608
4435 ;;
4436  
4437 osf*)
4438 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4439 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4440 # nice to cause kernel panics so lets avoid the loop below.
4441 # First set a reasonable default.
4442 lt_cv_sys_max_cmd_len=16384
4443 #
4444 if test -x /sbin/sysconfig; then
4445 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4446 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4447 esac
4448 fi
4449 ;;
4450 sco3.2v5*)
4451 lt_cv_sys_max_cmd_len=102400
4452 ;;
4453 sysv5* | sco5v6* | sysv4.2uw2*)
4454 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4455 if test -n "$kargmax"; then
4456 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4457 else
4458 lt_cv_sys_max_cmd_len=32768
4459 fi
4460 ;;
4461 *)
4462 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4463 if test -n "$lt_cv_sys_max_cmd_len"; then
4464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4466 else
4467 # Make teststring a little bigger before we do anything with it.
4468 # a 1K string should be a reasonable start.
4469 for i in 1 2 3 4 5 6 7 8 ; do
4470 teststring=$teststring$teststring
4471 done
4472 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4473 # If test is not a shell built-in, we'll probably end up computing a
4474 # maximum length that is only half of the actual maximum length, but
4475 # we can't tell.
4476 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4477 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4478 test $i != 17 # 1/2 MB should be enough
4479 do
4480 i=`expr $i + 1`
4481 teststring=$teststring$teststring
4482 done
4483 # Only check the string length outside the loop.
4484 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4485 teststring=
4486 # Add a significant safety factor because C++ compilers can tack on
4487 # massive amounts of additional arguments before passing them to the
4488 # linker. It appears as though 1/2 is a usable value.
4489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4490 fi
4491 ;;
4492 esac
4493  
4494 fi
4495  
4496 if test -n $lt_cv_sys_max_cmd_len ; then
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4498 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4499 else
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4501 $as_echo "none" >&6; }
4502 fi
4503 max_cmd_len=$lt_cv_sys_max_cmd_len
4504  
4505  
4506  
4507  
4508  
4509  
4510 : ${CP="cp -f"}
4511 : ${MV="mv -f"}
4512 : ${RM="rm -f"}
4513  
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4515 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4516 # Try some XSI features
4517 xsi_shell=no
4518 ( _lt_dummy="a/b/c"
4519 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4520 = c,a/b,, \
4521 && eval 'test $(( 1 + 1 )) -eq 2 \
4522 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4523 && xsi_shell=yes
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4525 $as_echo "$xsi_shell" >&6; }
4526  
4527  
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4529 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4530 lt_shell_append=no
4531 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4532 >/dev/null 2>&1 \
4533 && lt_shell_append=yes
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4535 $as_echo "$lt_shell_append" >&6; }
4536  
4537  
4538 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4539 lt_unset=unset
4540 else
4541 lt_unset=false
4542 fi
4543  
4544  
4545  
4546  
4547  
4548 # test EBCDIC or ASCII
4549 case `echo X|tr X '\101'` in
4550 A) # ASCII based system
4551 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4552 lt_SP2NL='tr \040 \012'
4553 lt_NL2SP='tr \015\012 \040\040'
4554 ;;
4555 *) # EBCDIC based system
4556 lt_SP2NL='tr \100 \n'
4557 lt_NL2SP='tr \r\n \100\100'
4558 ;;
4559 esac
4560  
4561  
4562  
4563  
4564  
4565  
4566  
4567  
4568  
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4570 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4571 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 lt_cv_ld_reload_flag='-r'
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4577 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4578 reload_flag=$lt_cv_ld_reload_flag
4579 case $reload_flag in
4580 "" | " "*) ;;
4581 *) reload_flag=" $reload_flag" ;;
4582 esac
4583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4584 case $host_os in
4585 darwin*)
4586 if test "$GCC" = yes; then
4587 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4588 else
4589 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4590 fi
4591 ;;
4592 esac
4593  
4594  
4595  
4596  
4597  
4598  
4599  
4600  
4601  
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$OBJDUMP"; then
4611 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624 done
4625 done
4626 IFS=$as_save_IFS
4627  
4628 fi
4629 fi
4630 OBJDUMP=$ac_cv_prog_OBJDUMP
4631 if test -n "$OBJDUMP"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4633 $as_echo "$OBJDUMP" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638  
4639  
4640 fi
4641 if test -z "$ac_cv_prog_OBJDUMP"; then
4642 ac_ct_OBJDUMP=$OBJDUMP
4643 # Extract the first word of "objdump", so it can be a program name with args.
4644 set dummy objdump; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$ac_ct_OBJDUMP"; then
4651 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667  
4668 fi
4669 fi
4670 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4671 if test -n "$ac_ct_OBJDUMP"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4673 $as_echo "$ac_ct_OBJDUMP" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678  
4679 if test "x$ac_ct_OBJDUMP" = x; then
4680 OBJDUMP="false"
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688 OBJDUMP=$ac_ct_OBJDUMP
4689 fi
4690 else
4691 OBJDUMP="$ac_cv_prog_OBJDUMP"
4692 fi
4693  
4694 test -z "$OBJDUMP" && OBJDUMP=objdump
4695  
4696  
4697  
4698  
4699  
4700  
4701  
4702  
4703  
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4705 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4706 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 lt_cv_file_magic_cmd='$MAGIC_CMD'
4710 lt_cv_file_magic_test_file=
4711 lt_cv_deplibs_check_method='unknown'
4712 # Need to set the preceding variable on all platforms that support
4713 # interlibrary dependencies.
4714 # 'none' -- dependencies not supported.
4715 # `unknown' -- same as none, but documents that we really don't know.
4716 # 'pass_all' -- all dependencies passed with no checks.
4717 # 'test_compile' -- check by making test program.
4718 # 'file_magic [[regex]]' -- check by looking for files in library path
4719 # which responds to the $file_magic_cmd with a given extended regex.
4720 # If you have `file' or equivalent on your system and you're not sure
4721 # whether `pass_all' will *always* work, you probably want this one.
4722  
4723 case $host_os in
4724 aix[4-9]*)
4725 lt_cv_deplibs_check_method=pass_all
4726 ;;
4727  
4728 beos*)
4729 lt_cv_deplibs_check_method=pass_all
4730 ;;
4731  
4732 bsdi[45]*)
4733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4734 lt_cv_file_magic_cmd='/usr/bin/file -L'
4735 lt_cv_file_magic_test_file=/shlib/libc.so
4736 ;;
4737  
4738 cygwin*)
4739 # func_win32_libid is a shell function defined in ltmain.sh
4740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4741 lt_cv_file_magic_cmd='func_win32_libid'
4742 ;;
4743  
4744 mingw* | pw32*)
4745 # Base MSYS/MinGW do not provide the 'file' command needed by
4746 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4747 # unless we find 'file', for example because we are cross-compiling.
4748 if ( file / ) >/dev/null 2>&1; then
4749 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4750 lt_cv_file_magic_cmd='func_win32_libid'
4751 else
4752 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4753 lt_cv_file_magic_cmd='$OBJDUMP -f'
4754 fi
4755 ;;
4756  
4757 cegcc)
4758 # use the weaker test based on 'objdump'. See mingw*.
4759 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4760 lt_cv_file_magic_cmd='$OBJDUMP -f'
4761 ;;
4762  
4763 darwin* | rhapsody*)
4764 lt_cv_deplibs_check_method=pass_all
4765 ;;
4766  
4767 freebsd* | dragonfly*)
4768 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4769 case $host_cpu in
4770 i*86 )
4771 # Not sure whether the presence of OpenBSD here was a mistake.
4772 # Let's accept both of them until this is cleared up.
4773 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4774 lt_cv_file_magic_cmd=/usr/bin/file
4775 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4776 ;;
4777 esac
4778 else
4779 lt_cv_deplibs_check_method=pass_all
4780 fi
4781 ;;
4782  
4783 gnu*)
4784 lt_cv_deplibs_check_method=pass_all
4785 ;;
4786  
4787 hpux10.20* | hpux11*)
4788 lt_cv_file_magic_cmd=/usr/bin/file
4789 case $host_cpu in
4790 ia64*)
4791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4792 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4793 ;;
4794 hppa*64*)
4795 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]'
4796 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4797 ;;
4798 *)
4799 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4800 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4801 ;;
4802 esac
4803 ;;
4804  
4805 interix[3-9]*)
4806 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4808 ;;
4809  
4810 irix5* | irix6* | nonstopux*)
4811 case $LD in
4812 *-32|*"-32 ") libmagic=32-bit;;
4813 *-n32|*"-n32 ") libmagic=N32;;
4814 *-64|*"-64 ") libmagic=64-bit;;
4815 *) libmagic=never-match;;
4816 esac
4817 lt_cv_deplibs_check_method=pass_all
4818 ;;
4819  
4820 # This must be Linux ELF.
4821 linux* | k*bsd*-gnu)
4822 lt_cv_deplibs_check_method=pass_all
4823 ;;
4824  
4825 netbsd* | netbsdelf*-gnu)
4826 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4828 else
4829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4830 fi
4831 ;;
4832  
4833 newos6*)
4834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4835 lt_cv_file_magic_cmd=/usr/bin/file
4836 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4837 ;;
4838  
4839 *nto* | *qnx*)
4840 lt_cv_deplibs_check_method=pass_all
4841 ;;
4842  
4843 openbsd*)
4844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4846 else
4847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4848 fi
4849 ;;
4850  
4851 osf3* | osf4* | osf5*)
4852 lt_cv_deplibs_check_method=pass_all
4853 ;;
4854  
4855 rdos*)
4856 lt_cv_deplibs_check_method=pass_all
4857 ;;
4858  
4859 solaris*)
4860 lt_cv_deplibs_check_method=pass_all
4861 ;;
4862  
4863 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4864 lt_cv_deplibs_check_method=pass_all
4865 ;;
4866  
4867 sysv4 | sysv4.3*)
4868 case $host_vendor in
4869 motorola)
4870 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]'
4871 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4872 ;;
4873 ncr)
4874 lt_cv_deplibs_check_method=pass_all
4875 ;;
4876 sequent)
4877 lt_cv_file_magic_cmd='/bin/file'
4878 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4879 ;;
4880 sni)
4881 lt_cv_file_magic_cmd='/bin/file'
4882 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4883 lt_cv_file_magic_test_file=/lib/libc.so
4884 ;;
4885 siemens)
4886 lt_cv_deplibs_check_method=pass_all
4887 ;;
4888 pc)
4889 lt_cv_deplibs_check_method=pass_all
4890 ;;
4891 esac
4892 ;;
4893  
4894 tpf*)
4895 lt_cv_deplibs_check_method=pass_all
4896 ;;
4897 esac
4898  
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4901 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4902 file_magic_cmd=$lt_cv_file_magic_cmd
4903 deplibs_check_method=$lt_cv_deplibs_check_method
4904 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4905  
4906  
4907  
4908  
4909  
4910  
4911  
4912  
4913  
4914  
4915  
4916  
4917 if test -n "$ac_tool_prefix"; then
4918 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4919 set dummy ${ac_tool_prefix}ar; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_AR+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$AR"; then
4926 ac_cv_prog_AR="$AR" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_AR="${ac_tool_prefix}ar"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942  
4943 fi
4944 fi
4945 AR=$ac_cv_prog_AR
4946 if test -n "$AR"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4948 $as_echo "$AR" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953  
4954  
4955 fi
4956 if test -z "$ac_cv_prog_AR"; then
4957 ac_ct_AR=$AR
4958 # Extract the first word of "ar", so it can be a program name with args.
4959 set dummy ar; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -n "$ac_ct_AR"; then
4966 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4970 do
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_ac_ct_AR="ar"
4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4978 fi
4979 done
4980 done
4981 IFS=$as_save_IFS
4982  
4983 fi
4984 fi
4985 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4986 if test -n "$ac_ct_AR"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4988 $as_echo "$ac_ct_AR" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993  
4994 if test "x$ac_ct_AR" = x; then
4995 AR="false"
4996 else
4997 case $cross_compiling:$ac_tool_warned in
4998 yes:)
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned=yes ;;
5002 esac
5003 AR=$ac_ct_AR
5004 fi
5005 else
5006 AR="$ac_cv_prog_AR"
5007 fi
5008  
5009 test -z "$AR" && AR=ar
5010 test -z "$AR_FLAGS" && AR_FLAGS=cru
5011  
5012  
5013  
5014  
5015  
5016  
5017  
5018  
5019  
5020  
5021  
5022 if test -n "$ac_tool_prefix"; then
5023 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5024 set dummy ${ac_tool_prefix}strip; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if test "${ac_cv_prog_STRIP+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -n "$STRIP"; then
5031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044 done
5045 done
5046 IFS=$as_save_IFS
5047  
5048 fi
5049 fi
5050 STRIP=$ac_cv_prog_STRIP
5051 if test -n "$STRIP"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5053 $as_echo "$STRIP" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5057 fi
5058  
5059  
5060 fi
5061 if test -z "$ac_cv_prog_STRIP"; then
5062 ac_ct_STRIP=$STRIP
5063 # Extract the first word of "strip", so it can be a program name with args.
5064 set dummy strip; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if test -n "$ac_ct_STRIP"; then
5071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080 ac_cv_prog_ac_ct_STRIP="strip"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5083 fi
5084 done
5085 done
5086 IFS=$as_save_IFS
5087  
5088 fi
5089 fi
5090 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5091 if test -n "$ac_ct_STRIP"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5093 $as_echo "$ac_ct_STRIP" >&6; }
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098  
5099 if test "x$ac_ct_STRIP" = x; then
5100 STRIP=":"
5101 else
5102 case $cross_compiling:$ac_tool_warned in
5103 yes:)
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106 ac_tool_warned=yes ;;
5107 esac
5108 STRIP=$ac_ct_STRIP
5109 fi
5110 else
5111 STRIP="$ac_cv_prog_STRIP"
5112 fi
5113  
5114 test -z "$STRIP" && STRIP=:
5115  
5116  
5117  
5118  
5119  
5120  
5121 if test -n "$ac_tool_prefix"; then
5122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -n "$RANLIB"; then
5130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5134 do
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5142 fi
5143 done
5144 done
5145 IFS=$as_save_IFS
5146  
5147 fi
5148 fi
5149 RANLIB=$ac_cv_prog_RANLIB
5150 if test -n "$RANLIB"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5152 $as_echo "$RANLIB" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156 fi
5157  
5158  
5159 fi
5160 if test -z "$ac_cv_prog_RANLIB"; then
5161 ac_ct_RANLIB=$RANLIB
5162 # Extract the first word of "ranlib", so it can be a program name with args.
5163 set dummy ranlib; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if test -n "$ac_ct_RANLIB"; then
5170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_ac_ct_RANLIB="ranlib"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183 done
5184 done
5185 IFS=$as_save_IFS
5186  
5187 fi
5188 fi
5189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5192 $as_echo "$ac_ct_RANLIB" >&6; }
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196 fi
5197  
5198 if test "x$ac_ct_RANLIB" = x; then
5199 RANLIB=":"
5200 else
5201 case $cross_compiling:$ac_tool_warned in
5202 yes:)
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5205 ac_tool_warned=yes ;;
5206 esac
5207 RANLIB=$ac_ct_RANLIB
5208 fi
5209 else
5210 RANLIB="$ac_cv_prog_RANLIB"
5211 fi
5212  
5213 test -z "$RANLIB" && RANLIB=:
5214  
5215  
5216  
5217  
5218  
5219  
5220 # Determine commands to create old-style static archives.
5221 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5222 old_postinstall_cmds='chmod 644 $oldlib'
5223 old_postuninstall_cmds=
5224  
5225 if test -n "$RANLIB"; then
5226 case $host_os in
5227 openbsd*)
5228 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5229 ;;
5230 *)
5231 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5232 ;;
5233 esac
5234 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5235 fi
5236  
5237  
5238  
5239  
5240  
5241  
5242  
5243  
5244  
5245  
5246  
5247  
5248  
5249  
5250  
5251  
5252  
5253  
5254  
5255  
5256  
5257  
5258  
5259  
5260  
5261  
5262  
5263  
5264  
5265  
5266  
5267  
5268  
5269  
5270 # If no C compiler was specified, use CC.
5271 LTCC=${LTCC-"$CC"}
5272  
5273 # If no C compiler flags were specified, use CFLAGS.
5274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5275  
5276 # Allow CC to be a program name with arguments.
5277 compiler=$CC
5278  
5279  
5280 # Check for command to grab the raw symbol name followed by C symbol from nm.
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5282 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5283 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286  
5287 # These are sane defaults that work on at least a few old systems.
5288 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5289  
5290 # Character class describing NM global symbol codes.
5291 symcode='[BCDEGRST]'
5292  
5293 # Regexp to match symbols that can be accessed directly from C.
5294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5295  
5296 # Define system-specific variables.
5297 case $host_os in
5298 aix*)
5299 symcode='[BCDT]'
5300 ;;
5301 cygwin* | mingw* | pw32* | cegcc*)
5302 symcode='[ABCDGISTW]'
5303 ;;
5304 hpux*)
5305 if test "$host_cpu" = ia64; then
5306 symcode='[ABCDEGRST]'
5307 fi
5308 ;;
5309 irix* | nonstopux*)
5310 symcode='[BCDEGRST]'
5311 ;;
5312 osf*)
5313 symcode='[BCDEGQRST]'
5314 ;;
5315 solaris*)
5316 symcode='[BDRT]'
5317 ;;
5318 sco3.2v5*)
5319 symcode='[DT]'
5320 ;;
5321 sysv4.2uw2*)
5322 symcode='[DT]'
5323 ;;
5324 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5325 symcode='[ABDT]'
5326 ;;
5327 sysv4)
5328 symcode='[DFNSTU]'
5329 ;;
5330 esac
5331  
5332 # If we're using GNU nm, then use its standard symbol codes.
5333 case `$NM -V 2>&1` in
5334 *GNU* | *'with BFD'*)
5335 symcode='[ABCDGIRSTW]' ;;
5336 esac
5337  
5338 # Transform an extracted symbol line into a proper C declaration.
5339 # Some systems (esp. on ia64) link data and code symbols differently,
5340 # so use this general approach.
5341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5342  
5343 # Transform an extracted symbol line into symbol name and symbol address
5344 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5345 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'"
5346  
5347 # Handle CRLF in mingw tool chain
5348 opt_cr=
5349 case $build_os in
5350 mingw*)
5351 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5352 ;;
5353 esac
5354  
5355 # Try without a prefix underscore, then with it.
5356 for ac_symprfx in "" "_"; do
5357  
5358 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5359 symxfrm="\\1 $ac_symprfx\\2 \\2"
5360  
5361 # Write the raw and C identifiers.
5362 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5363 # Fake it for dumpbin and say T for any non-static function
5364 # and D for any global variable.
5365 # Also find C++ and __fastcall symbols from MSVC++,
5366 # which start with @ or ?.
5367 lt_cv_sys_global_symbol_pipe="$AWK '"\
5368 " {last_section=section; section=\$ 3};"\
5369 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5370 " \$ 0!~/External *\|/{next};"\
5371 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5372 " {if(hide[section]) next};"\
5373 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5374 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5375 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5376 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5377 " ' prfx=^$ac_symprfx"
5378 else
5379 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5380 fi
5381  
5382 # Check to see that the pipe works correctly.
5383 pipe_works=no
5384  
5385 rm -f conftest*
5386 cat > conftest.$ac_ext <<_LT_EOF
5387 #ifdef __cplusplus
5388 extern "C" {
5389 #endif
5390 char nm_test_var;
5391 void nm_test_func(void);
5392 void nm_test_func(void){}
5393 #ifdef __cplusplus
5394 }
5395 #endif
5396 int main(){nm_test_var='a';nm_test_func();return(0);}
5397 _LT_EOF
5398  
5399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5400 (eval $ac_compile) 2>&5
5401 ac_status=$?
5402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5403 test $ac_status = 0; }; then
5404 # Now try to grab the symbols.
5405 nlist=conftest.nm
5406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5407 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5408 ac_status=$?
5409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5410 test $ac_status = 0; } && test -s "$nlist"; then
5411 # Try sorting and uniquifying the output.
5412 if sort "$nlist" | uniq > "$nlist"T; then
5413 mv -f "$nlist"T "$nlist"
5414 else
5415 rm -f "$nlist"T
5416 fi
5417  
5418 # Make sure that we snagged all the symbols we need.
5419 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5420 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5421 cat <<_LT_EOF > conftest.$ac_ext
5422 #ifdef __cplusplus
5423 extern "C" {
5424 #endif
5425  
5426 _LT_EOF
5427 # Now generate the symbol file.
5428 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5429  
5430 cat <<_LT_EOF >> conftest.$ac_ext
5431  
5432 /* The mapping between symbol names and symbols. */
5433 const struct {
5434 const char *name;
5435 void *address;
5436 }
5437 lt__PROGRAM__LTX_preloaded_symbols[] =
5438 {
5439 { "@PROGRAM@", (void *) 0 },
5440 _LT_EOF
5441 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5442 cat <<\_LT_EOF >> conftest.$ac_ext
5443 {0, (void *) 0}
5444 };
5445  
5446 /* This works around a problem in FreeBSD linker */
5447 #ifdef FREEBSD_WORKAROUND
5448 static const void *lt_preloaded_setup() {
5449 return lt__PROGRAM__LTX_preloaded_symbols;
5450 }
5451 #endif
5452  
5453 #ifdef __cplusplus
5454 }
5455 #endif
5456 _LT_EOF
5457 # Now try linking the two files.
5458 mv conftest.$ac_objext conftstm.$ac_objext
5459 lt_save_LIBS="$LIBS"
5460 lt_save_CFLAGS="$CFLAGS"
5461 LIBS="conftstm.$ac_objext"
5462 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5464 (eval $ac_link) 2>&5
5465 ac_status=$?
5466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5467 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5468 pipe_works=yes
5469 fi
5470 LIBS="$lt_save_LIBS"
5471 CFLAGS="$lt_save_CFLAGS"
5472 else
5473 echo "cannot find nm_test_func in $nlist" >&5
5474 fi
5475 else
5476 echo "cannot find nm_test_var in $nlist" >&5
5477 fi
5478 else
5479 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5480 fi
5481 else
5482 echo "$progname: failed program was:" >&5
5483 cat conftest.$ac_ext >&5
5484 fi
5485 rm -rf conftest* conftst*
5486  
5487 # Do not use the global_symbol_pipe unless it works.
5488 if test "$pipe_works" = yes; then
5489 break
5490 else
5491 lt_cv_sys_global_symbol_pipe=
5492 fi
5493 done
5494  
5495 fi
5496  
5497 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5498 lt_cv_sys_global_symbol_to_cdecl=
5499 fi
5500 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5502 $as_echo "failed" >&6; }
5503 else
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5505 $as_echo "ok" >&6; }
5506 fi
5507  
5508  
5509  
5510  
5511  
5512  
5513  
5514  
5515  
5516  
5517  
5518  
5519  
5520  
5521  
5522  
5523  
5524  
5525  
5526  
5527  
5528  
5529  
5530 @%:@ Check whether --enable-libtool-lock was given.
5531 if test "${enable_libtool_lock+set}" = set; then :
5532 enableval=$enable_libtool_lock;
5533 fi
5534  
5535 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5536  
5537 # Some flags need to be propagated to the compiler or linker for good
5538 # libtool support.
5539 case $host in
5540 ia64-*-hpux*)
5541 # Find out which ABI we are using.
5542 echo 'int i;' > conftest.$ac_ext
5543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5544 (eval $ac_compile) 2>&5
5545 ac_status=$?
5546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5547 test $ac_status = 0; }; then
5548 case `/usr/bin/file conftest.$ac_objext` in
5549 *ELF-32*)
5550 HPUX_IA64_MODE="32"
5551 ;;
5552 *ELF-64*)
5553 HPUX_IA64_MODE="64"
5554 ;;
5555 esac
5556 fi
5557 rm -rf conftest*
5558 ;;
5559 *-*-irix6*)
5560 # Find out which ABI we are using.
5561 echo '#line __oline__ "configure"' > conftest.$ac_ext
5562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5563 (eval $ac_compile) 2>&5
5564 ac_status=$?
5565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5566 test $ac_status = 0; }; then
5567 if test "$lt_cv_prog_gnu_ld" = yes; then
5568 case `/usr/bin/file conftest.$ac_objext` in
5569 *32-bit*)
5570 LD="${LD-ld} -melf32bsmip"
5571 ;;
5572 *N32*)
5573 LD="${LD-ld} -melf32bmipn32"
5574 ;;
5575 *64-bit*)
5576 LD="${LD-ld} -melf64bmip"
5577 ;;
5578 esac
5579 else
5580 case `/usr/bin/file conftest.$ac_objext` in
5581 *32-bit*)
5582 LD="${LD-ld} -32"
5583 ;;
5584 *N32*)
5585 LD="${LD-ld} -n32"
5586 ;;
5587 *64-bit*)
5588 LD="${LD-ld} -64"
5589 ;;
5590 esac
5591 fi
5592 fi
5593 rm -rf conftest*
5594 ;;
5595  
5596 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5597 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5598 # Find out which ABI we are using.
5599 echo 'int i;' > conftest.$ac_ext
5600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5601 (eval $ac_compile) 2>&5
5602 ac_status=$?
5603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5604 test $ac_status = 0; }; then
5605 case `/usr/bin/file conftest.o` in
5606 *32-bit*)
5607 case $host in
5608 x86_64-*kfreebsd*-gnu)
5609 LD="${LD-ld} -m elf_i386_fbsd"
5610 ;;
5611 x86_64-*linux*)
5612 LD="${LD-ld} -m elf_i386"
5613 ;;
5614 ppc64-*linux*|powerpc64-*linux*)
5615 LD="${LD-ld} -m elf32ppclinux"
5616 ;;
5617 s390x-*linux*)
5618 LD="${LD-ld} -m elf_s390"
5619 ;;
5620 sparc64-*linux*)
5621 LD="${LD-ld} -m elf32_sparc"
5622 ;;
5623 esac
5624 ;;
5625 *64-bit*)
5626 case $host in
5627 x86_64-*kfreebsd*-gnu)
5628 LD="${LD-ld} -m elf_x86_64_fbsd"
5629 ;;
5630 x86_64-*linux*)
5631 LD="${LD-ld} -m elf_x86_64"
5632 ;;
5633 ppc*-*linux*|powerpc*-*linux*)
5634 LD="${LD-ld} -m elf64ppc"
5635 ;;
5636 s390*-*linux*|s390*-*tpf*)
5637 LD="${LD-ld} -m elf64_s390"
5638 ;;
5639 sparc*-*linux*)
5640 LD="${LD-ld} -m elf64_sparc"
5641 ;;
5642 esac
5643 ;;
5644 esac
5645 fi
5646 rm -rf conftest*
5647 ;;
5648  
5649 *-*-sco3.2v5*)
5650 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5651 SAVE_CFLAGS="$CFLAGS"
5652 CFLAGS="$CFLAGS -belf"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5654 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5655 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 ac_ext=c
5659 ac_cpp='$CPP $CPPFLAGS'
5660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5663  
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666  
5667 int
5668 main ()
5669 {
5670  
5671 ;
5672 return 0;
5673 }
5674 _ACEOF
5675 if ac_fn_c_try_link "$LINENO"; then :
5676 lt_cv_cc_needs_belf=yes
5677 else
5678 lt_cv_cc_needs_belf=no
5679 fi
5680 rm -f core conftest.err conftest.$ac_objext \
5681 conftest$ac_exeext conftest.$ac_ext
5682 ac_ext=c
5683 ac_cpp='$CPP $CPPFLAGS'
5684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687  
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5690 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5691 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5692 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5693 CFLAGS="$SAVE_CFLAGS"
5694 fi
5695 ;;
5696 sparc*-*solaris*)
5697 # Find out which ABI we are using.
5698 echo 'int i;' > conftest.$ac_ext
5699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5700 (eval $ac_compile) 2>&5
5701 ac_status=$?
5702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5703 test $ac_status = 0; }; then
5704 case `/usr/bin/file conftest.o` in
5705 *64-bit*)
5706 case $lt_cv_prog_gnu_ld in
5707 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5708 *)
5709 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5710 LD="${LD-ld} -64"
5711 fi
5712 ;;
5713 esac
5714 ;;
5715 esac
5716 fi
5717 rm -rf conftest*
5718 ;;
5719 esac
5720  
5721 need_locks="$enable_libtool_lock"
5722  
5723  
5724 case $host_os in
5725 rhapsody* | darwin*)
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 if test -n "$DSYMUTIL"; then
5735 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748 done
5749 done
5750 IFS=$as_save_IFS
5751  
5752 fi
5753 fi
5754 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5755 if test -n "$DSYMUTIL"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5757 $as_echo "$DSYMUTIL" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762  
5763  
5764 fi
5765 if test -z "$ac_cv_prog_DSYMUTIL"; then
5766 ac_ct_DSYMUTIL=$DSYMUTIL
5767 # Extract the first word of "dsymutil", so it can be a program name with args.
5768 set dummy dsymutil; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if test -n "$ac_ct_DSYMUTIL"; then
5775 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788 done
5789 done
5790 IFS=$as_save_IFS
5791  
5792 fi
5793 fi
5794 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5795 if test -n "$ac_ct_DSYMUTIL"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5797 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802  
5803 if test "x$ac_ct_DSYMUTIL" = x; then
5804 DSYMUTIL=":"
5805 else
5806 case $cross_compiling:$ac_tool_warned in
5807 yes:)
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5811 esac
5812 DSYMUTIL=$ac_ct_DSYMUTIL
5813 fi
5814 else
5815 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5816 fi
5817  
5818 if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 if test -n "$NMEDIT"; then
5827 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840 done
5841 done
5842 IFS=$as_save_IFS
5843  
5844 fi
5845 fi
5846 NMEDIT=$ac_cv_prog_NMEDIT
5847 if test -n "$NMEDIT"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5849 $as_echo "$NMEDIT" >&6; }
5850 else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 fi
5854  
5855  
5856 fi
5857 if test -z "$ac_cv_prog_NMEDIT"; then
5858 ac_ct_NMEDIT=$NMEDIT
5859 # Extract the first word of "nmedit", so it can be a program name with args.
5860 set dummy nmedit; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test -n "$ac_ct_NMEDIT"; then
5867 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883  
5884 fi
5885 fi
5886 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5887 if test -n "$ac_ct_NMEDIT"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5889 $as_echo "$ac_ct_NMEDIT" >&6; }
5890 else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894  
5895 if test "x$ac_ct_NMEDIT" = x; then
5896 NMEDIT=":"
5897 else
5898 case $cross_compiling:$ac_tool_warned in
5899 yes:)
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902 ac_tool_warned=yes ;;
5903 esac
5904 NMEDIT=$ac_ct_NMEDIT
5905 fi
5906 else
5907 NMEDIT="$ac_cv_prog_NMEDIT"
5908 fi
5909  
5910 if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_prog_LIPO+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if test -n "$LIPO"; then
5919 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932 done
5933 done
5934 IFS=$as_save_IFS
5935  
5936 fi
5937 fi
5938 LIPO=$ac_cv_prog_LIPO
5939 if test -n "$LIPO"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5941 $as_echo "$LIPO" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5945 fi
5946  
5947  
5948 fi
5949 if test -z "$ac_cv_prog_LIPO"; then
5950 ac_ct_LIPO=$LIPO
5951 # Extract the first word of "lipo", so it can be a program name with args.
5952 set dummy lipo; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if test -n "$ac_ct_LIPO"; then
5959 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5968 ac_cv_prog_ac_ct_LIPO="lipo"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972 done
5973 done
5974 IFS=$as_save_IFS
5975  
5976 fi
5977 fi
5978 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5979 if test -n "$ac_ct_LIPO"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5981 $as_echo "$ac_ct_LIPO" >&6; }
5982 else
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 fi
5986  
5987 if test "x$ac_ct_LIPO" = x; then
5988 LIPO=":"
5989 else
5990 case $cross_compiling:$ac_tool_warned in
5991 yes:)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5995 esac
5996 LIPO=$ac_ct_LIPO
5997 fi
5998 else
5999 LIPO="$ac_cv_prog_LIPO"
6000 fi
6001  
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}otool; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test -n "$OTOOL"; then
6011 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027  
6028 fi
6029 fi
6030 OTOOL=$ac_cv_prog_OTOOL
6031 if test -n "$OTOOL"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6033 $as_echo "$OTOOL" >&6; }
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038  
6039  
6040 fi
6041 if test -z "$ac_cv_prog_OTOOL"; then
6042 ac_ct_OTOOL=$OTOOL
6043 # Extract the first word of "otool", so it can be a program name with args.
6044 set dummy otool; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 if test -n "$ac_ct_OTOOL"; then
6051 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_ac_ct_OTOOL="otool"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6063 fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067  
6068 fi
6069 fi
6070 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6071 if test -n "$ac_ct_OTOOL"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6073 $as_echo "$ac_ct_OTOOL" >&6; }
6074 else
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078  
6079 if test "x$ac_ct_OTOOL" = x; then
6080 OTOOL=":"
6081 else
6082 case $cross_compiling:$ac_tool_warned in
6083 yes:)
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086 ac_tool_warned=yes ;;
6087 esac
6088 OTOOL=$ac_ct_OTOOL
6089 fi
6090 else
6091 OTOOL="$ac_cv_prog_OTOOL"
6092 fi
6093  
6094 if test -n "$ac_tool_prefix"; then
6095 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6096 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if test -n "$OTOOL64"; then
6103 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6107 do
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 break 2
6115 fi
6116 done
6117 done
6118 IFS=$as_save_IFS
6119  
6120 fi
6121 fi
6122 OTOOL64=$ac_cv_prog_OTOOL64
6123 if test -n "$OTOOL64"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6125 $as_echo "$OTOOL64" >&6; }
6126 else
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6129 fi
6130  
6131  
6132 fi
6133 if test -z "$ac_cv_prog_OTOOL64"; then
6134 ac_ct_OTOOL64=$OTOOL64
6135 # Extract the first word of "otool64", so it can be a program name with args.
6136 set dummy otool64; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 if test -n "$ac_ct_OTOOL64"; then
6143 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_ac_ct_OTOOL64="otool64"
6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159  
6160 fi
6161 fi
6162 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6163 if test -n "$ac_ct_OTOOL64"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6165 $as_echo "$ac_ct_OTOOL64" >&6; }
6166 else
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6169 fi
6170  
6171 if test "x$ac_ct_OTOOL64" = x; then
6172 OTOOL64=":"
6173 else
6174 case $cross_compiling:$ac_tool_warned in
6175 yes:)
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6178 ac_tool_warned=yes ;;
6179 esac
6180 OTOOL64=$ac_ct_OTOOL64
6181 fi
6182 else
6183 OTOOL64="$ac_cv_prog_OTOOL64"
6184 fi
6185  
6186  
6187  
6188  
6189  
6190  
6191  
6192  
6193  
6194  
6195  
6196  
6197  
6198  
6199  
6200  
6201  
6202  
6203  
6204  
6205  
6206  
6207  
6208  
6209  
6210  
6211  
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6213 $as_echo_n "checking for -single_module linker flag... " >&6; }
6214 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 lt_cv_apple_cc_single_mod=no
6218 if test -z "${LT_MULTI_MODULE}"; then
6219 # By default we will add the -single_module flag. You can override
6220 # by either setting the environment variable LT_MULTI_MODULE
6221 # non-empty at configure time, or by adding -multi_module to the
6222 # link flags.
6223 rm -rf libconftest.dylib*
6224 echo "int foo(void){return 1;}" > conftest.c
6225 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6226 -dynamiclib -Wl,-single_module conftest.c" >&5
6227 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6228 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6229 _lt_result=$?
6230 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6231 lt_cv_apple_cc_single_mod=yes
6232 else
6233 cat conftest.err >&5
6234 fi
6235 rm -rf libconftest.dylib*
6236 rm -f conftest.*
6237 fi
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6240 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6242 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6243 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 lt_cv_ld_exported_symbols_list=no
6247 save_LDFLAGS=$LDFLAGS
6248 echo "_main" > conftest.sym
6249 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252  
6253 int
6254 main ()
6255 {
6256  
6257 ;
6258 return 0;
6259 }
6260 _ACEOF
6261 if ac_fn_c_try_link "$LINENO"; then :
6262 lt_cv_ld_exported_symbols_list=yes
6263 else
6264 lt_cv_ld_exported_symbols_list=no
6265 fi
6266 rm -f core conftest.err conftest.$ac_objext \
6267 conftest$ac_exeext conftest.$ac_ext
6268 LDFLAGS="$save_LDFLAGS"
6269  
6270 fi
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6272 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6273 case $host_os in
6274 rhapsody* | darwin1.[012])
6275 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6276 darwin1.*)
6277 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6278 darwin*) # darwin 5.x on
6279 # if running on 10.5 or later, the deployment target defaults
6280 # to the OS version, if on x86, and 10.4, the deployment
6281 # target defaults to 10.4. Don't you love it?
6282 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6283 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6284 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6285 10.[012]*)
6286 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6287 10.*)
6288 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6289 esac
6290 ;;
6291 esac
6292 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6293 _lt_dar_single_mod='$single_module'
6294 fi
6295 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6296 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6297 else
6298 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6299 fi
6300 if test "$DSYMUTIL" != ":"; then
6301 _lt_dsymutil='~$DSYMUTIL $lib || :'
6302 else
6303 _lt_dsymutil=
6304 fi
6305 ;;
6306 esac
6307  
6308 ac_ext=c
6309 ac_cpp='$CPP $CPPFLAGS'
6310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6314 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6315 # On Suns, sometimes $CPP names a directory.
6316 if test -n "$CPP" && test -d "$CPP"; then
6317 CPP=
6318 fi
6319 if test -z "$CPP"; then
6320 if test "${ac_cv_prog_CPP+set}" = set; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 # Double quotes because CPP needs to be expanded
6324 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6325 do
6326 ac_preproc_ok=false
6327 for ac_c_preproc_warn_flag in '' yes
6328 do
6329 # Use a header file that comes with gcc, so configuring glibc
6330 # with a fresh cross-compiler works.
6331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6332 # <limits.h> exists even on freestanding compilers.
6333 # On the NeXT, cc -E runs the code through the compiler's parser,
6334 # not just through cpp. "Syntax error" is here to catch this case.
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 @%:@ifdef __STDC__
6338 @%:@ include <limits.h>
6339 @%:@else
6340 @%:@ include <assert.h>
6341 @%:@endif
6342 Syntax error
6343 _ACEOF
6344 if ac_fn_c_try_cpp "$LINENO"; then :
6345  
6346 else
6347 # Broken: fails on valid input.
6348 continue
6349 fi
6350 rm -f conftest.err conftest.$ac_ext
6351  
6352 # OK, works on sane cases. Now check whether nonexistent headers
6353 # can be detected and how.
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 @%:@include <ac_nonexistent.h>
6357 _ACEOF
6358 if ac_fn_c_try_cpp "$LINENO"; then :
6359 # Broken: success on invalid input.
6360 continue
6361 else
6362 # Passes both tests.
6363 ac_preproc_ok=:
6364 break
6365 fi
6366 rm -f conftest.err conftest.$ac_ext
6367  
6368 done
6369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6370 rm -f conftest.err conftest.$ac_ext
6371 if $ac_preproc_ok; then :
6372 break
6373 fi
6374  
6375 done
6376 ac_cv_prog_CPP=$CPP
6377  
6378 fi
6379 CPP=$ac_cv_prog_CPP
6380 else
6381 ac_cv_prog_CPP=$CPP
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6384 $as_echo "$CPP" >&6; }
6385 ac_preproc_ok=false
6386 for ac_c_preproc_warn_flag in '' yes
6387 do
6388 # Use a header file that comes with gcc, so configuring glibc
6389 # with a fresh cross-compiler works.
6390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6391 # <limits.h> exists even on freestanding compilers.
6392 # On the NeXT, cc -E runs the code through the compiler's parser,
6393 # not just through cpp. "Syntax error" is here to catch this case.
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396 @%:@ifdef __STDC__
6397 @%:@ include <limits.h>
6398 @%:@else
6399 @%:@ include <assert.h>
6400 @%:@endif
6401 Syntax error
6402 _ACEOF
6403 if ac_fn_c_try_cpp "$LINENO"; then :
6404  
6405 else
6406 # Broken: fails on valid input.
6407 continue
6408 fi
6409 rm -f conftest.err conftest.$ac_ext
6410  
6411 # OK, works on sane cases. Now check whether nonexistent headers
6412 # can be detected and how.
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 @%:@include <ac_nonexistent.h>
6416 _ACEOF
6417 if ac_fn_c_try_cpp "$LINENO"; then :
6418 # Broken: success on invalid input.
6419 continue
6420 else
6421 # Passes both tests.
6422 ac_preproc_ok=:
6423 break
6424 fi
6425 rm -f conftest.err conftest.$ac_ext
6426  
6427 done
6428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6429 rm -f conftest.err conftest.$ac_ext
6430 if $ac_preproc_ok; then :
6431  
6432 else
6433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6435 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6436 See \`config.log' for more details." "$LINENO" 5; }
6437 fi
6438  
6439 ac_ext=c
6440 ac_cpp='$CPP $CPPFLAGS'
6441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6444  
6445  
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6447 $as_echo_n "checking for ANSI C header files... " >&6; }
6448 if test "${ac_cv_header_stdc+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453 #include <stdlib.h>
6454 #include <stdarg.h>
6455 #include <string.h>
6456 #include <float.h>
6457  
6458 int
6459 main ()
6460 {
6461  
6462 ;
6463 return 0;
6464 }
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467 ac_cv_header_stdc=yes
6468 else
6469 ac_cv_header_stdc=no
6470 fi
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472  
6473 if test $ac_cv_header_stdc = yes; then
6474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 #include <string.h>
6478  
6479 _ACEOF
6480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6481 $EGREP "memchr" >/dev/null 2>&1; then :
6482  
6483 else
6484 ac_cv_header_stdc=no
6485 fi
6486 rm -f conftest*
6487  
6488 fi
6489  
6490 if test $ac_cv_header_stdc = yes; then
6491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6494 #include <stdlib.h>
6495  
6496 _ACEOF
6497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6498 $EGREP "free" >/dev/null 2>&1; then :
6499  
6500 else
6501 ac_cv_header_stdc=no
6502 fi
6503 rm -f conftest*
6504  
6505 fi
6506  
6507 if test $ac_cv_header_stdc = yes; then
6508 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6509 if test "$cross_compiling" = yes; then :
6510 :
6511 else
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 #include <ctype.h>
6515 #include <stdlib.h>
6516 #if ((' ' & 0x0FF) == 0x020)
6517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6519 #else
6520 # define ISLOWER(c) \
6521 (('a' <= (c) && (c) <= 'i') \
6522 || ('j' <= (c) && (c) <= 'r') \
6523 || ('s' <= (c) && (c) <= 'z'))
6524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6525 #endif
6526  
6527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6528 int
6529 main ()
6530 {
6531 int i;
6532 for (i = 0; i < 256; i++)
6533 if (XOR (islower (i), ISLOWER (i))
6534 || toupper (i) != TOUPPER (i))
6535 return 2;
6536 return 0;
6537 }
6538 _ACEOF
6539 if ac_fn_c_try_run "$LINENO"; then :
6540  
6541 else
6542 ac_cv_header_stdc=no
6543 fi
6544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6545 conftest.$ac_objext conftest.beam conftest.$ac_ext
6546 fi
6547  
6548 fi
6549 fi
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6551 $as_echo "$ac_cv_header_stdc" >&6; }
6552 if test $ac_cv_header_stdc = yes; then
6553  
6554 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
6555  
6556 fi
6557  
6558 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6559 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6560 inttypes.h stdint.h unistd.h
6561 do :
6562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6564 "
6565 eval as_val=\$$as_ac_Header
6566 if test "x$as_val" = x""yes; then :
6567 cat >>confdefs.h <<_ACEOF
6568 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6569 _ACEOF
6570  
6571 fi
6572  
6573 done
6574  
6575  
6576 for ac_header in dlfcn.h
6577 do :
6578 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6579 "
6580 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6581 cat >>confdefs.h <<_ACEOF
6582 @%:@define HAVE_DLFCN_H 1
6583 _ACEOF
6584  
6585 fi
6586  
6587 done
6588  
6589  
6590  
6591 # Set options
6592  
6593  
6594  
6595 enable_dlopen=no
6596  
6597  
6598 enable_win32_dll=no
6599  
6600  
6601 @%:@ Check whether --enable-shared was given.
6602 if test "${enable_shared+set}" = set; then :
6603 enableval=$enable_shared; p=${PACKAGE-default}
6604 case $enableval in
6605 yes) enable_shared=yes ;;
6606 no) enable_shared=no ;;
6607 *)
6608 enable_shared=no
6609 # Look at the argument we got. We use all the common list separators.
6610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6611 for pkg in $enableval; do
6612 IFS="$lt_save_ifs"
6613 if test "X$pkg" = "X$p"; then
6614 enable_shared=yes
6615 fi
6616 done
6617 IFS="$lt_save_ifs"
6618 ;;
6619 esac
6620 else
6621 enable_shared=yes
6622 fi
6623  
6624  
6625  
6626  
6627  
6628  
6629  
6630  
6631  
6632 @%:@ Check whether --enable-static was given.
6633 if test "${enable_static+set}" = set; then :
6634 enableval=$enable_static; p=${PACKAGE-default}
6635 case $enableval in
6636 yes) enable_static=yes ;;
6637 no) enable_static=no ;;
6638 *)
6639 enable_static=no
6640 # Look at the argument we got. We use all the common list separators.
6641 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6642 for pkg in $enableval; do
6643 IFS="$lt_save_ifs"
6644 if test "X$pkg" = "X$p"; then
6645 enable_static=yes
6646 fi
6647 done
6648 IFS="$lt_save_ifs"
6649 ;;
6650 esac
6651 else
6652 enable_static=yes
6653 fi
6654  
6655  
6656  
6657  
6658  
6659  
6660  
6661  
6662  
6663  
6664 @%:@ Check whether --with-pic was given.
6665 if test "${with_pic+set}" = set; then :
6666 withval=$with_pic; pic_mode="$withval"
6667 else
6668 pic_mode=default
6669 fi
6670  
6671  
6672 test -z "$pic_mode" && pic_mode=default
6673  
6674  
6675  
6676  
6677  
6678  
6679  
6680 @%:@ Check whether --enable-fast-install was given.
6681 if test "${enable_fast_install+set}" = set; then :
6682 enableval=$enable_fast_install; p=${PACKAGE-default}
6683 case $enableval in
6684 yes) enable_fast_install=yes ;;
6685 no) enable_fast_install=no ;;
6686 *)
6687 enable_fast_install=no
6688 # Look at the argument we got. We use all the common list separators.
6689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6690 for pkg in $enableval; do
6691 IFS="$lt_save_ifs"
6692 if test "X$pkg" = "X$p"; then
6693 enable_fast_install=yes
6694 fi
6695 done
6696 IFS="$lt_save_ifs"
6697 ;;
6698 esac
6699 else
6700 enable_fast_install=yes
6701 fi
6702  
6703  
6704  
6705  
6706  
6707  
6708  
6709  
6710  
6711  
6712  
6713 # This can be used to rebuild libtool when needed
6714 LIBTOOL_DEPS="$ltmain"
6715  
6716 # Always use our own libtool.
6717 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6718  
6719  
6720  
6721  
6722  
6723  
6724  
6725  
6726  
6727  
6728  
6729  
6730  
6731  
6732  
6733  
6734  
6735  
6736  
6737  
6738  
6739  
6740  
6741  
6742  
6743 test -z "$LN_S" && LN_S="ln -s"
6744  
6745  
6746  
6747  
6748  
6749  
6750  
6751  
6752  
6753  
6754  
6755  
6756  
6757  
6758 if test -n "${ZSH_VERSION+set}" ; then
6759 setopt NO_GLOB_SUBST
6760 fi
6761  
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6763 $as_echo_n "checking for objdir... " >&6; }
6764 if test "${lt_cv_objdir+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 rm -f .libs 2>/dev/null
6768 mkdir .libs 2>/dev/null
6769 if test -d .libs; then
6770 lt_cv_objdir=.libs
6771 else
6772 # MS-DOS does not allow filenames that begin with a dot.
6773 lt_cv_objdir=_libs
6774 fi
6775 rmdir .libs 2>/dev/null
6776 fi
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6778 $as_echo "$lt_cv_objdir" >&6; }
6779 objdir=$lt_cv_objdir
6780  
6781  
6782  
6783  
6784  
6785 cat >>confdefs.h <<_ACEOF
6786 @%:@define LT_OBJDIR "$lt_cv_objdir/"
6787 _ACEOF
6788  
6789  
6790  
6791  
6792  
6793  
6794  
6795  
6796  
6797  
6798  
6799  
6800  
6801  
6802  
6803  
6804  
6805 case $host_os in
6806 aix3*)
6807 # AIX sometimes has problems with the GCC collect2 program. For some
6808 # reason, if we set the COLLECT_NAMES environment variable, the problems
6809 # vanish in a puff of smoke.
6810 if test "X${COLLECT_NAMES+set}" != Xset; then
6811 COLLECT_NAMES=
6812 export COLLECT_NAMES
6813 fi
6814 ;;
6815 esac
6816  
6817 # Sed substitution that helps us do robust quoting. It backslashifies
6818 # metacharacters that are still active within double-quoted strings.
6819 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6820  
6821 # Same as above, but do not quote variable references.
6822 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6823  
6824 # Sed substitution to delay expansion of an escaped shell variable in a
6825 # double_quote_subst'ed string.
6826 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6827  
6828 # Sed substitution to delay expansion of an escaped single quote.
6829 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6830  
6831 # Sed substitution to avoid accidental globbing in evaled expressions
6832 no_glob_subst='s/\*/\\\*/g'
6833  
6834 # Global variables:
6835 ofile=libtool
6836 can_build_shared=yes
6837  
6838 # All known linkers require a `.a' archive for static linking (except MSVC,
6839 # which needs '.lib').
6840 libext=a
6841  
6842 with_gnu_ld="$lt_cv_prog_gnu_ld"
6843  
6844 old_CC="$CC"
6845 old_CFLAGS="$CFLAGS"
6846  
6847 # Set sane defaults for various variables
6848 test -z "$CC" && CC=cc
6849 test -z "$LTCC" && LTCC=$CC
6850 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6851 test -z "$LD" && LD=ld
6852 test -z "$ac_objext" && ac_objext=o
6853  
6854 for cc_temp in $compiler""; do
6855 case $cc_temp in
6856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6858 \-*) ;;
6859 *) break;;
6860 esac
6861 done
6862 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6863  
6864  
6865 # Only perform the check for file, if the check method requires it
6866 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6867 case $deplibs_check_method in
6868 file_magic*)
6869 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6871 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6872 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 case $MAGIC_CMD in
6876 [\\/*] | ?:[\\/]*)
6877 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6878 ;;
6879 *)
6880 lt_save_MAGIC_CMD="$MAGIC_CMD"
6881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6882 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6883 for ac_dir in $ac_dummy; do
6884 IFS="$lt_save_ifs"
6885 test -z "$ac_dir" && ac_dir=.
6886 if test -f $ac_dir/${ac_tool_prefix}file; then
6887 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6888 if test -n "$file_magic_test_file"; then
6889 case $deplibs_check_method in
6890 "file_magic "*)
6891 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6893 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6894 $EGREP "$file_magic_regex" > /dev/null; then
6895 :
6896 else
6897 cat <<_LT_EOF 1>&2
6898  
6899 *** Warning: the command libtool uses to detect shared libraries,
6900 *** $file_magic_cmd, produces output that libtool cannot recognize.
6901 *** The result is that libtool may fail to recognize shared libraries
6902 *** as such. This will affect the creation of libtool libraries that
6903 *** depend on shared libraries, but programs linked with such libtool
6904 *** libraries will work regardless of this problem. Nevertheless, you
6905 *** may want to report the problem to your system manager and/or to
6906 *** bug-libtool@gnu.org
6907  
6908 _LT_EOF
6909 fi ;;
6910 esac
6911 fi
6912 break
6913 fi
6914 done
6915 IFS="$lt_save_ifs"
6916 MAGIC_CMD="$lt_save_MAGIC_CMD"
6917 ;;
6918 esac
6919 fi
6920  
6921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6922 if test -n "$MAGIC_CMD"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6924 $as_echo "$MAGIC_CMD" >&6; }
6925 else
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6928 fi
6929  
6930  
6931  
6932  
6933  
6934 if test -z "$lt_cv_path_MAGIC_CMD"; then
6935 if test -n "$ac_tool_prefix"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6937 $as_echo_n "checking for file... " >&6; }
6938 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 case $MAGIC_CMD in
6942 [\\/*] | ?:[\\/]*)
6943 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6944 ;;
6945 *)
6946 lt_save_MAGIC_CMD="$MAGIC_CMD"
6947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6948 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6949 for ac_dir in $ac_dummy; do
6950 IFS="$lt_save_ifs"
6951 test -z "$ac_dir" && ac_dir=.
6952 if test -f $ac_dir/file; then
6953 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6954 if test -n "$file_magic_test_file"; then
6955 case $deplibs_check_method in
6956 "file_magic "*)
6957 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6960 $EGREP "$file_magic_regex" > /dev/null; then
6961 :
6962 else
6963 cat <<_LT_EOF 1>&2
6964  
6965 *** Warning: the command libtool uses to detect shared libraries,
6966 *** $file_magic_cmd, produces output that libtool cannot recognize.
6967 *** The result is that libtool may fail to recognize shared libraries
6968 *** as such. This will affect the creation of libtool libraries that
6969 *** depend on shared libraries, but programs linked with such libtool
6970 *** libraries will work regardless of this problem. Nevertheless, you
6971 *** may want to report the problem to your system manager and/or to
6972 *** bug-libtool@gnu.org
6973  
6974 _LT_EOF
6975 fi ;;
6976 esac
6977 fi
6978 break
6979 fi
6980 done
6981 IFS="$lt_save_ifs"
6982 MAGIC_CMD="$lt_save_MAGIC_CMD"
6983 ;;
6984 esac
6985 fi
6986  
6987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6988 if test -n "$MAGIC_CMD"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6990 $as_echo "$MAGIC_CMD" >&6; }
6991 else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6994 fi
6995  
6996  
6997 else
6998 MAGIC_CMD=:
6999 fi
7000 fi
7001  
7002 fi
7003 ;;
7004 esac
7005  
7006 # Use C for the default configuration in the libtool script
7007  
7008 lt_save_CC="$CC"
7009 ac_ext=c
7010 ac_cpp='$CPP $CPPFLAGS'
7011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014  
7015  
7016 # Source file extension for C test sources.
7017 ac_ext=c
7018  
7019 # Object file extension for compiled C test sources.
7020 objext=o
7021 objext=$objext
7022  
7023 # Code to be used in simple compile tests
7024 lt_simple_compile_test_code="int some_variable = 0;"
7025  
7026 # Code to be used in simple link tests
7027 lt_simple_link_test_code='int main(){return(0);}'
7028  
7029  
7030  
7031  
7032  
7033  
7034  
7035 # If no C compiler was specified, use CC.
7036 LTCC=${LTCC-"$CC"}
7037  
7038 # If no C compiler flags were specified, use CFLAGS.
7039 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7040  
7041 # Allow CC to be a program name with arguments.
7042 compiler=$CC
7043  
7044 # Save the default compiler, since it gets overwritten when the other
7045 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7046 compiler_DEFAULT=$CC
7047  
7048 # save warnings/boilerplate of simple test code
7049 ac_outfile=conftest.$ac_objext
7050 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7051 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7052 _lt_compiler_boilerplate=`cat conftest.err`
7053 $RM conftest*
7054  
7055 ac_outfile=conftest.$ac_objext
7056 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7057 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7058 _lt_linker_boilerplate=`cat conftest.err`
7059 $RM -r conftest*
7060  
7061  
7062 ## CAVEAT EMPTOR:
7063 ## There is no encapsulation within the following macros, do not change
7064 ## the running order or otherwise move them around unless you know exactly
7065 ## what you are doing...
7066 if test -n "$compiler"; then
7067  
7068 lt_prog_compiler_no_builtin_flag=
7069  
7070 if test "$GCC" = yes; then
7071 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7072  
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7074 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7075 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 lt_cv_prog_compiler_rtti_exceptions=no
7079 ac_outfile=conftest.$ac_objext
7080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7081 lt_compiler_flag="-fno-rtti -fno-exceptions"
7082 # Insert the option either (1) after the last *FLAGS variable, or
7083 # (2) before a word containing "conftest.", or (3) at the end.
7084 # Note that $ac_compile itself does not contain backslashes and begins
7085 # with a dollar sign (not a hyphen), so the echo should work correctly.
7086 # The option is referenced via a variable to avoid confusing sed.
7087 lt_compile=`echo "$ac_compile" | $SED \
7088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7090 -e 's:$: $lt_compiler_flag:'`
7091 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7092 (eval "$lt_compile" 2>conftest.err)
7093 ac_status=$?
7094 cat conftest.err >&5
7095 echo "$as_me:__oline__: \$? = $ac_status" >&5
7096 if (exit $ac_status) && test -s "$ac_outfile"; then
7097 # The compiler can only warn and ignore the option if not recognized
7098 # So say no if there are warnings other than the usual output.
7099 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7101 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7102 lt_cv_prog_compiler_rtti_exceptions=yes
7103 fi
7104 fi
7105 $RM conftest*
7106  
7107 fi
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7109 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7110  
7111 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7112 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7113 else
7114 :
7115 fi
7116  
7117 fi
7118  
7119  
7120  
7121  
7122  
7123  
7124 lt_prog_compiler_wl=
7125 lt_prog_compiler_pic=
7126 lt_prog_compiler_static=
7127  
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7129 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7130  
7131 if test "$GCC" = yes; then
7132 lt_prog_compiler_wl='-Wl,'
7133 lt_prog_compiler_static='-static'
7134  
7135 case $host_os in
7136 aix*)
7137 # All AIX code is PIC.
7138 if test "$host_cpu" = ia64; then
7139 # AIX 5 now supports IA64 processor
7140 lt_prog_compiler_static='-Bstatic'
7141 fi
7142 ;;
7143  
7144 amigaos*)
7145 case $host_cpu in
7146 powerpc)
7147 # see comment about AmigaOS4 .so support
7148 lt_prog_compiler_pic='-fPIC'
7149 ;;
7150 m68k)
7151 # FIXME: we need at least 68020 code to build shared libraries, but
7152 # adding the `-m68020' flag to GCC prevents building anything better,
7153 # like `-m68040'.
7154 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7155 ;;
7156 esac
7157 ;;
7158  
7159 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7160 # PIC is the default for these OSes.
7161 ;;
7162  
7163 mingw* | cygwin* | pw32* | os2* | cegcc*)
7164 # This hack is so that the source file can tell whether it is being
7165 # built for inclusion in a dll (and should export symbols for example).
7166 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7167 # (--disable-auto-import) libraries
7168 lt_prog_compiler_pic='-DDLL_EXPORT'
7169 ;;
7170  
7171 darwin* | rhapsody*)
7172 # PIC is the default on this platform
7173 # Common symbols not allowed in MH_DYLIB files
7174 lt_prog_compiler_pic='-fno-common'
7175 ;;
7176  
7177 hpux*)
7178 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7179 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7180 # sets the default TLS model and affects inlining.
7181 case $host_cpu in
7182 hppa*64*)
7183 # +Z the default
7184 ;;
7185 *)
7186 lt_prog_compiler_pic='-fPIC'
7187 ;;
7188 esac
7189 ;;
7190  
7191 interix[3-9]*)
7192 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7193 # Instead, we relocate shared libraries at runtime.
7194 ;;
7195  
7196 msdosdjgpp*)
7197 # Just because we use GCC doesn't mean we suddenly get shared libraries
7198 # on systems that don't support them.
7199 lt_prog_compiler_can_build_shared=no
7200 enable_shared=no
7201 ;;
7202  
7203 *nto* | *qnx*)
7204 # QNX uses GNU C++, but need to define -shared option too, otherwise
7205 # it will coredump.
7206 lt_prog_compiler_pic='-fPIC -shared'
7207 ;;
7208  
7209 sysv4*MP*)
7210 if test -d /usr/nec; then
7211 lt_prog_compiler_pic=-Kconform_pic
7212 fi
7213 ;;
7214  
7215 *)
7216 lt_prog_compiler_pic='-fPIC'
7217 ;;
7218 esac
7219 else
7220 # PORTME Check for flag to pass linker flags through the system compiler.
7221 case $host_os in
7222 aix*)
7223 lt_prog_compiler_wl='-Wl,'
7224 if test "$host_cpu" = ia64; then
7225 # AIX 5 now supports IA64 processor
7226 lt_prog_compiler_static='-Bstatic'
7227 else
7228 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7229 fi
7230 ;;
7231  
7232 mingw* | cygwin* | pw32* | os2* | cegcc*)
7233 # This hack is so that the source file can tell whether it is being
7234 # built for inclusion in a dll (and should export symbols for example).
7235 lt_prog_compiler_pic='-DDLL_EXPORT'
7236 ;;
7237  
7238 hpux9* | hpux10* | hpux11*)
7239 lt_prog_compiler_wl='-Wl,'
7240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7241 # not for PA HP-UX.
7242 case $host_cpu in
7243 hppa*64*|ia64*)
7244 # +Z the default
7245 ;;
7246 *)
7247 lt_prog_compiler_pic='+Z'
7248 ;;
7249 esac
7250 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7251 lt_prog_compiler_static='${wl}-a ${wl}archive'
7252 ;;
7253  
7254 irix5* | irix6* | nonstopux*)
7255 lt_prog_compiler_wl='-Wl,'
7256 # PIC (with -KPIC) is the default.
7257 lt_prog_compiler_static='-non_shared'
7258 ;;
7259  
7260 linux* | k*bsd*-gnu)
7261 case $cc_basename in
7262 # old Intel for x86_64 which still supported -KPIC.
7263 ecc*)
7264 lt_prog_compiler_wl='-Wl,'
7265 lt_prog_compiler_pic='-KPIC'
7266 lt_prog_compiler_static='-static'
7267 ;;
7268 # icc used to be incompatible with GCC.
7269 # ICC 10 doesn't accept -KPIC any more.
7270 icc* | ifort*)
7271 lt_prog_compiler_wl='-Wl,'
7272 lt_prog_compiler_pic='-fPIC'
7273 lt_prog_compiler_static='-static'
7274 ;;
7275 # Lahey Fortran 8.1.
7276 lf95*)
7277 lt_prog_compiler_wl='-Wl,'
7278 lt_prog_compiler_pic='--shared'
7279 lt_prog_compiler_static='--static'
7280 ;;
7281 pgcc* | pgf77* | pgf90* | pgf95*)
7282 # Portland Group compilers (*not* the Pentium gcc compiler,
7283 # which looks to be a dead project)
7284 lt_prog_compiler_wl='-Wl,'
7285 lt_prog_compiler_pic='-fpic'
7286 lt_prog_compiler_static='-Bstatic'
7287 ;;
7288 ccc*)
7289 lt_prog_compiler_wl='-Wl,'
7290 # All Alpha code is PIC.
7291 lt_prog_compiler_static='-non_shared'
7292 ;;
7293 xl*)
7294 # IBM XL C 8.0/Fortran 10.1 on PPC
7295 lt_prog_compiler_wl='-Wl,'
7296 lt_prog_compiler_pic='-qpic'
7297 lt_prog_compiler_static='-qstaticlink'
7298 ;;
7299 *)
7300 case `$CC -V 2>&1 | sed 5q` in
7301 *Sun\ C*)
7302 # Sun C 5.9
7303 lt_prog_compiler_pic='-KPIC'
7304 lt_prog_compiler_static='-Bstatic'
7305 lt_prog_compiler_wl='-Wl,'
7306 ;;
7307 *Sun\ F*)
7308 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7309 lt_prog_compiler_pic='-KPIC'
7310 lt_prog_compiler_static='-Bstatic'
7311 lt_prog_compiler_wl=''
7312 ;;
7313 esac
7314 ;;
7315 esac
7316 ;;
7317  
7318 newsos6)
7319 lt_prog_compiler_pic='-KPIC'
7320 lt_prog_compiler_static='-Bstatic'
7321 ;;
7322  
7323 *nto* | *qnx*)
7324 # QNX uses GNU C++, but need to define -shared option too, otherwise
7325 # it will coredump.
7326 lt_prog_compiler_pic='-fPIC -shared'
7327 ;;
7328  
7329 osf3* | osf4* | osf5*)
7330 lt_prog_compiler_wl='-Wl,'
7331 # All OSF/1 code is PIC.
7332 lt_prog_compiler_static='-non_shared'
7333 ;;
7334  
7335 rdos*)
7336 lt_prog_compiler_static='-non_shared'
7337 ;;
7338  
7339 solaris*)
7340 lt_prog_compiler_pic='-KPIC'
7341 lt_prog_compiler_static='-Bstatic'
7342 case $cc_basename in
7343 f77* | f90* | f95*)
7344 lt_prog_compiler_wl='-Qoption ld ';;
7345 *)
7346 lt_prog_compiler_wl='-Wl,';;
7347 esac
7348 ;;
7349  
7350 sunos4*)
7351 lt_prog_compiler_wl='-Qoption ld '
7352 lt_prog_compiler_pic='-PIC'
7353 lt_prog_compiler_static='-Bstatic'
7354 ;;
7355  
7356 sysv4 | sysv4.2uw2* | sysv4.3*)
7357 lt_prog_compiler_wl='-Wl,'
7358 lt_prog_compiler_pic='-KPIC'
7359 lt_prog_compiler_static='-Bstatic'
7360 ;;
7361  
7362 sysv4*MP*)
7363 if test -d /usr/nec ;then
7364 lt_prog_compiler_pic='-Kconform_pic'
7365 lt_prog_compiler_static='-Bstatic'
7366 fi
7367 ;;
7368  
7369 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7370 lt_prog_compiler_wl='-Wl,'
7371 lt_prog_compiler_pic='-KPIC'
7372 lt_prog_compiler_static='-Bstatic'
7373 ;;
7374  
7375 unicos*)
7376 lt_prog_compiler_wl='-Wl,'
7377 lt_prog_compiler_can_build_shared=no
7378 ;;
7379  
7380 uts4*)
7381 lt_prog_compiler_pic='-pic'
7382 lt_prog_compiler_static='-Bstatic'
7383 ;;
7384  
7385 *)
7386 lt_prog_compiler_can_build_shared=no
7387 ;;
7388 esac
7389 fi
7390  
7391 case $host_os in
7392 # For platforms which do not support PIC, -DPIC is meaningless:
7393 *djgpp*)
7394 lt_prog_compiler_pic=
7395 ;;
7396 *)
7397 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
7398 ;;
7399 esac
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7401 $as_echo "$lt_prog_compiler_pic" >&6; }
7402  
7403  
7404  
7405  
7406  
7407  
7408 #
7409 # Check to make sure the PIC flag actually works.
7410 #
7411 if test -n "$lt_prog_compiler_pic"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7413 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7414 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 lt_cv_prog_compiler_pic_works=no
7418 ac_outfile=conftest.$ac_objext
7419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7420 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
7421 # Insert the option either (1) after the last *FLAGS variable, or
7422 # (2) before a word containing "conftest.", or (3) at the end.
7423 # Note that $ac_compile itself does not contain backslashes and begins
7424 # with a dollar sign (not a hyphen), so the echo should work correctly.
7425 # The option is referenced via a variable to avoid confusing sed.
7426 lt_compile=`echo "$ac_compile" | $SED \
7427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7429 -e 's:$: $lt_compiler_flag:'`
7430 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7431 (eval "$lt_compile" 2>conftest.err)
7432 ac_status=$?
7433 cat conftest.err >&5
7434 echo "$as_me:__oline__: \$? = $ac_status" >&5
7435 if (exit $ac_status) && test -s "$ac_outfile"; then
7436 # The compiler can only warn and ignore the option if not recognized
7437 # So say no if there are warnings other than the usual output.
7438 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7441 lt_cv_prog_compiler_pic_works=yes
7442 fi
7443 fi
7444 $RM conftest*
7445  
7446 fi
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7448 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7449  
7450 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7451 case $lt_prog_compiler_pic in
7452 "" | " "*) ;;
7453 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7454 esac
7455 else
7456 lt_prog_compiler_pic=
7457 lt_prog_compiler_can_build_shared=no
7458 fi
7459  
7460 fi
7461  
7462  
7463  
7464  
7465  
7466  
7467 #
7468 # Check to make sure the static flag actually works.
7469 #
7470 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7472 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7473 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 lt_cv_prog_compiler_static_works=no
7477 save_LDFLAGS="$LDFLAGS"
7478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7479 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7481 # The linker can only warn and ignore the option if not recognized
7482 # So say no if there are warnings
7483 if test -s conftest.err; then
7484 # Append any errors to the config.log.
7485 cat conftest.err 1>&5
7486 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7488 if diff conftest.exp conftest.er2 >/dev/null; then
7489 lt_cv_prog_compiler_static_works=yes
7490 fi
7491 else
7492 lt_cv_prog_compiler_static_works=yes
7493 fi
7494 fi
7495 $RM -r conftest*
7496 LDFLAGS="$save_LDFLAGS"
7497  
7498 fi
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7500 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7501  
7502 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7503 :
7504 else
7505 lt_prog_compiler_static=
7506 fi
7507  
7508  
7509  
7510  
7511  
7512  
7513  
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7515 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 lt_cv_prog_compiler_c_o=no
7520 $RM -r conftest 2>/dev/null
7521 mkdir conftest
7522 cd conftest
7523 mkdir out
7524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7525  
7526 lt_compiler_flag="-o out/conftest2.$ac_objext"
7527 # Insert the option either (1) after the last *FLAGS variable, or
7528 # (2) before a word containing "conftest.", or (3) at the end.
7529 # Note that $ac_compile itself does not contain backslashes and begins
7530 # with a dollar sign (not a hyphen), so the echo should work correctly.
7531 lt_compile=`echo "$ac_compile" | $SED \
7532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7534 -e 's:$: $lt_compiler_flag:'`
7535 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7536 (eval "$lt_compile" 2>out/conftest.err)
7537 ac_status=$?
7538 cat out/conftest.err >&5
7539 echo "$as_me:__oline__: \$? = $ac_status" >&5
7540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7541 then
7542 # The compiler can only warn and ignore the option if not recognized
7543 # So say no if there are warnings
7544 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7547 lt_cv_prog_compiler_c_o=yes
7548 fi
7549 fi
7550 chmod u+w . 2>&5
7551 $RM conftest*
7552 # SGI C++ compiler will create directory out/ii_files/ for
7553 # template instantiation
7554 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7555 $RM out/* && rmdir out
7556 cd ..
7557 $RM -r conftest
7558 $RM conftest*
7559  
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7562 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7563  
7564  
7565  
7566  
7567  
7568  
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7570 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7571 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 lt_cv_prog_compiler_c_o=no
7575 $RM -r conftest 2>/dev/null
7576 mkdir conftest
7577 cd conftest
7578 mkdir out
7579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7580  
7581 lt_compiler_flag="-o out/conftest2.$ac_objext"
7582 # Insert the option either (1) after the last *FLAGS variable, or
7583 # (2) before a word containing "conftest.", or (3) at the end.
7584 # Note that $ac_compile itself does not contain backslashes and begins
7585 # with a dollar sign (not a hyphen), so the echo should work correctly.
7586 lt_compile=`echo "$ac_compile" | $SED \
7587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7589 -e 's:$: $lt_compiler_flag:'`
7590 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7591 (eval "$lt_compile" 2>out/conftest.err)
7592 ac_status=$?
7593 cat out/conftest.err >&5
7594 echo "$as_me:__oline__: \$? = $ac_status" >&5
7595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7596 then
7597 # The compiler can only warn and ignore the option if not recognized
7598 # So say no if there are warnings
7599 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7602 lt_cv_prog_compiler_c_o=yes
7603 fi
7604 fi
7605 chmod u+w . 2>&5
7606 $RM conftest*
7607 # SGI C++ compiler will create directory out/ii_files/ for
7608 # template instantiation
7609 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7610 $RM out/* && rmdir out
7611 cd ..
7612 $RM -r conftest
7613 $RM conftest*
7614  
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7617 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7618  
7619  
7620  
7621  
7622 hard_links="nottested"
7623 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7624 # do not overwrite the value of need_locks provided by the user
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7626 $as_echo_n "checking if we can lock with hard links... " >&6; }
7627 hard_links=yes
7628 $RM conftest*
7629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7630 touch conftest.a
7631 ln conftest.a conftest.b 2>&5 || hard_links=no
7632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7634 $as_echo "$hard_links" >&6; }
7635 if test "$hard_links" = no; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7637 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7638 need_locks=warn
7639 fi
7640 else
7641 need_locks=no
7642 fi
7643  
7644  
7645  
7646  
7647  
7648  
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7650 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7651  
7652 runpath_var=
7653 allow_undefined_flag=
7654 always_export_symbols=no
7655 archive_cmds=
7656 archive_expsym_cmds=
7657 compiler_needs_object=no
7658 enable_shared_with_static_runtimes=no
7659 export_dynamic_flag_spec=
7660 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7661 hardcode_automatic=no
7662 hardcode_direct=no
7663 hardcode_direct_absolute=no
7664 hardcode_libdir_flag_spec=
7665 hardcode_libdir_flag_spec_ld=
7666 hardcode_libdir_separator=
7667 hardcode_minus_L=no
7668 hardcode_shlibpath_var=unsupported
7669 inherit_rpath=no
7670 link_all_deplibs=unknown
7671 module_cmds=
7672 module_expsym_cmds=
7673 old_archive_from_new_cmds=
7674 old_archive_from_expsyms_cmds=
7675 thread_safe_flag_spec=
7676 whole_archive_flag_spec=
7677 # include_expsyms should be a list of space-separated symbols to be *always*
7678 # included in the symbol list
7679 include_expsyms=
7680 # exclude_expsyms can be an extended regexp of symbols to exclude
7681 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7682 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7683 # as well as any symbol that contains `d'.
7684 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7685 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7686 # platforms (ab)use it in PIC code, but their linkers get confused if
7687 # the symbol is explicitly referenced. Since portable code cannot
7688 # rely on this symbol name, it's probably fine to never include it in
7689 # preloaded symbol tables.
7690 # Exclude shared library initialization/finalization symbols.
7691 extract_expsyms_cmds=
7692  
7693 case $host_os in
7694 cygwin* | mingw* | pw32* | cegcc*)
7695 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7696 # When not using gcc, we currently assume that we are using
7697 # Microsoft Visual C++.
7698 if test "$GCC" != yes; then
7699 with_gnu_ld=no
7700 fi
7701 ;;
7702 interix*)
7703 # we just hope/assume this is gcc and not c89 (= MSVC++)
7704 with_gnu_ld=yes
7705 ;;
7706 openbsd*)
7707 with_gnu_ld=no
7708 ;;
7709 linux* | k*bsd*-gnu)
7710 link_all_deplibs=no
7711 ;;
7712 esac
7713  
7714 ld_shlibs=yes
7715 if test "$with_gnu_ld" = yes; then
7716 # If archive_cmds runs LD, not CC, wlarc should be empty
7717 wlarc='${wl}'
7718  
7719 # Set some defaults for GNU ld with shared library support. These
7720 # are reset later if shared libraries are not supported. Putting them
7721 # here allows them to be overridden if necessary.
7722 runpath_var=LD_RUN_PATH
7723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7724 export_dynamic_flag_spec='${wl}--export-dynamic'
7725 # ancient GNU ld didn't support --whole-archive et. al.
7726 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7727 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7728 else
7729 whole_archive_flag_spec=
7730 fi
7731 supports_anon_versioning=no
7732 case `$LD -v 2>&1` in
7733 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7734 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7735 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7736 *\ 2.11.*) ;; # other 2.11 versions
7737 *) supports_anon_versioning=yes ;;
7738 esac
7739  
7740 # See if GNU ld supports shared libraries.
7741 case $host_os in
7742 aix[3-9]*)
7743 # On AIX/PPC, the GNU linker is very broken
7744 if test "$host_cpu" != ia64; then
7745 ld_shlibs=no
7746 cat <<_LT_EOF 1>&2
7747  
7748 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7749 *** to be unable to reliably create shared libraries on AIX.
7750 *** Therefore, libtool is disabling shared libraries support. If you
7751 *** really care for shared libraries, you may want to modify your PATH
7752 *** so that a non-GNU linker is found, and then restart.
7753  
7754 _LT_EOF
7755 fi
7756 ;;
7757  
7758 amigaos*)
7759 case $host_cpu in
7760 powerpc)
7761 # see comment about AmigaOS4 .so support
7762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7763 archive_expsym_cmds=''
7764 ;;
7765 m68k)
7766 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)'
7767 hardcode_libdir_flag_spec='-L$libdir'
7768 hardcode_minus_L=yes
7769 ;;
7770 esac
7771 ;;
7772  
7773 beos*)
7774 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7775 allow_undefined_flag=unsupported
7776 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7777 # support --undefined. This deserves some investigation. FIXME
7778 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7779 else
7780 ld_shlibs=no
7781 fi
7782 ;;
7783  
7784 cygwin* | mingw* | pw32* | cegcc*)
7785 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7786 # as there is no search path for DLLs.
7787 hardcode_libdir_flag_spec='-L$libdir'
7788 allow_undefined_flag=unsupported
7789 always_export_symbols=no
7790 enable_shared_with_static_runtimes=yes
7791 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7792  
7793 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7795 # If the export-symbols file already is a .def file (1st line
7796 # is EXPORTS), use it as is; otherwise, prepend...
7797 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7798 cp $export_symbols $output_objdir/$soname.def;
7799 else
7800 echo EXPORTS > $output_objdir/$soname.def;
7801 cat $export_symbols >> $output_objdir/$soname.def;
7802 fi~
7803 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7804 else
7805 ld_shlibs=no
7806 fi
7807 ;;
7808  
7809 interix[3-9]*)
7810 hardcode_direct=no
7811 hardcode_shlibpath_var=no
7812 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7813 export_dynamic_flag_spec='${wl}-E'
7814 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7815 # Instead, shared libraries are loaded at an image base (0x10000000 by
7816 # default) and relocated if they conflict, which is a slow very memory
7817 # consuming and fragmenting process. To avoid this, we pick a random,
7818 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7819 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7820 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7821 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'
7822 ;;
7823  
7824 gnu* | linux* | tpf* | k*bsd*-gnu)
7825 tmp_diet=no
7826 if test "$host_os" = linux-dietlibc; then
7827 case $cc_basename in
7828 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7829 esac
7830 fi
7831 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7832 && test "$tmp_diet" = no
7833 then
7834 tmp_addflag=
7835 tmp_sharedflag='-shared'
7836 case $cc_basename,$host_cpu in
7837 pgcc*) # Portland Group C compiler
7838 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'
7839 tmp_addflag=' $pic_flag'
7840 ;;
7841 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7842 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'
7843 tmp_addflag=' $pic_flag -Mnomain' ;;
7844 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7845 tmp_addflag=' -i_dynamic' ;;
7846 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7847 tmp_addflag=' -i_dynamic -nofor_main' ;;
7848 ifc* | ifort*) # Intel Fortran compiler
7849 tmp_addflag=' -nofor_main' ;;
7850 lf95*) # Lahey Fortran 8.1
7851 whole_archive_flag_spec=
7852 tmp_sharedflag='--shared' ;;
7853 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7854 tmp_sharedflag='-qmkshrobj'
7855 tmp_addflag= ;;
7856 esac
7857 case `$CC -V 2>&1 | sed 5q` in
7858 *Sun\ C*) # Sun C 5.9
7859 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'
7860 compiler_needs_object=yes
7861 tmp_sharedflag='-G' ;;
7862 *Sun\ F*) # Sun Fortran 8.3
7863 tmp_sharedflag='-G' ;;
7864 esac
7865 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7866  
7867 if test "x$supports_anon_versioning" = xyes; then
7868 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7870 echo "local: *; };" >> $output_objdir/$libname.ver~
7871 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7872 fi
7873  
7874 case $cc_basename in
7875 xlf*)
7876 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7877 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7878 hardcode_libdir_flag_spec=
7879 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7880 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7881 if test "x$supports_anon_versioning" = xyes; then
7882 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7883 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7884 echo "local: *; };" >> $output_objdir/$libname.ver~
7885 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7886 fi
7887 ;;
7888 esac
7889 else
7890 ld_shlibs=no
7891 fi
7892 ;;
7893  
7894 netbsd* | netbsdelf*-gnu)
7895 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7896 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7897 wlarc=
7898 else
7899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7901 fi
7902 ;;
7903  
7904 solaris*)
7905 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7906 ld_shlibs=no
7907 cat <<_LT_EOF 1>&2
7908  
7909 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7910 *** create shared libraries on Solaris systems. Therefore, libtool
7911 *** is disabling shared libraries support. We urge you to upgrade GNU
7912 *** binutils to release 2.9.1 or newer. Another option is to modify
7913 *** your PATH or compiler configuration so that the native linker is
7914 *** used, and then restart.
7915  
7916 _LT_EOF
7917 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7919 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7920 else
7921 ld_shlibs=no
7922 fi
7923 ;;
7924  
7925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7926 case `$LD -v 2>&1` in
7927 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7928 ld_shlibs=no
7929 cat <<_LT_EOF 1>&2
7930  
7931 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7932 *** reliably create shared libraries on SCO systems. Therefore, libtool
7933 *** is disabling shared libraries support. We urge you to upgrade GNU
7934 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7935 *** your PATH or compiler configuration so that the native linker is
7936 *** used, and then restart.
7937  
7938 _LT_EOF
7939 ;;
7940 *)
7941 # For security reasons, it is highly recommended that you always
7942 # use absolute paths for naming shared libraries, and exclude the
7943 # DT_RUNPATH tag from executables and libraries. But doing so
7944 # requires that you compile everything twice, which is a pain.
7945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7948 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7949 else
7950 ld_shlibs=no
7951 fi
7952 ;;
7953 esac
7954 ;;
7955  
7956 sunos4*)
7957 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7958 wlarc=
7959 hardcode_direct=yes
7960 hardcode_shlibpath_var=no
7961 ;;
7962  
7963 *)
7964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7967 else
7968 ld_shlibs=no
7969 fi
7970 ;;
7971 esac
7972  
7973 if test "$ld_shlibs" = no; then
7974 runpath_var=
7975 hardcode_libdir_flag_spec=
7976 export_dynamic_flag_spec=
7977 whole_archive_flag_spec=
7978 fi
7979 else
7980 # PORTME fill in a description of your system's linker (not GNU ld)
7981 case $host_os in
7982 aix3*)
7983 allow_undefined_flag=unsupported
7984 always_export_symbols=yes
7985 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'
7986 # Note: this linker hardcodes the directories in LIBPATH if there
7987 # are no directories specified by -L.
7988 hardcode_minus_L=yes
7989 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7990 # Neither direct hardcoding nor static linking is supported with a
7991 # broken collect2.
7992 hardcode_direct=unsupported
7993 fi
7994 ;;
7995  
7996 aix[4-9]*)
7997 if test "$host_cpu" = ia64; then
7998 # On IA64, the linker does run time linking by default, so we don't
7999 # have to do anything special.
8000 aix_use_runtimelinking=no
8001 exp_sym_flag='-Bexport'
8002 no_entry_flag=""
8003 else
8004 # If we're using GNU nm, then we don't want the "-C" option.
8005 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8006 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8007 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'
8008 else
8009 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'
8010 fi
8011 aix_use_runtimelinking=no
8012  
8013 # Test if we are trying to use run time linking or normal
8014 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8015 # need to do runtime linking.
8016 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8017 for ld_flag in $LDFLAGS; do
8018 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8019 aix_use_runtimelinking=yes
8020 break
8021 fi
8022 done
8023 ;;
8024 esac
8025  
8026 exp_sym_flag='-bexport'
8027 no_entry_flag='-bnoentry'
8028 fi
8029  
8030 # When large executables or shared objects are built, AIX ld can
8031 # have problems creating the table of contents. If linking a library
8032 # or program results in "error TOC overflow" add -mminimal-toc to
8033 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8034 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8035  
8036 archive_cmds=''
8037 hardcode_direct=yes
8038 hardcode_direct_absolute=yes
8039 hardcode_libdir_separator=':'
8040 link_all_deplibs=yes
8041 file_list_spec='${wl}-f,'
8042  
8043 if test "$GCC" = yes; then
8044 case $host_os in aix4.[012]|aix4.[012].*)
8045 # We only want to do this on AIX 4.2 and lower, the check
8046 # below for broken collect2 doesn't work under 4.3+
8047 collect2name=`${CC} -print-prog-name=collect2`
8048 if test -f "$collect2name" &&
8049 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8050 then
8051 # We have reworked collect2
8052 :
8053 else
8054 # We have old collect2
8055 hardcode_direct=unsupported
8056 # It fails to find uninstalled libraries when the uninstalled
8057 # path is not listed in the libpath. Setting hardcode_minus_L
8058 # to unsupported forces relinking
8059 hardcode_minus_L=yes
8060 hardcode_libdir_flag_spec='-L$libdir'
8061 hardcode_libdir_separator=
8062 fi
8063 ;;
8064 esac
8065 shared_flag='-shared'
8066 if test "$aix_use_runtimelinking" = yes; then
8067 shared_flag="$shared_flag "'${wl}-G'
8068 fi
8069 link_all_deplibs=no
8070 else
8071 # not using gcc
8072 if test "$host_cpu" = ia64; then
8073 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8074 # chokes on -Wl,-G. The following line is correct:
8075 shared_flag='-G'
8076 else
8077 if test "$aix_use_runtimelinking" = yes; then
8078 shared_flag='${wl}-G'
8079 else
8080 shared_flag='${wl}-bM:SRE'
8081 fi
8082 fi
8083 fi
8084  
8085 export_dynamic_flag_spec='${wl}-bexpall'
8086 # It seems that -bexpall does not export symbols beginning with
8087 # underscore (_), so it is better to generate a list of symbols to export.
8088 always_export_symbols=yes
8089 if test "$aix_use_runtimelinking" = yes; then
8090 # Warning - without using the other runtime loading flags (-brtl),
8091 # -berok will link without error, but may produce a broken library.
8092 allow_undefined_flag='-berok'
8093 # Determine the default libpath from the value encoded in an
8094 # empty executable.
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8097  
8098 int
8099 main ()
8100 {
8101  
8102 ;
8103 return 0;
8104 }
8105 _ACEOF
8106 if ac_fn_c_try_link "$LINENO"; then :
8107  
8108 lt_aix_libpath_sed='
8109 /Import File Strings/,/^$/ {
8110 /^0/ {
8111 s/^0 *\(.*\)$/\1/
8112 p
8113 }
8114 }'
8115 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8116 # Check for a 64-bit object if we didn't find anything.
8117 if test -z "$aix_libpath"; then
8118 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8119 fi
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext \
8122 conftest$ac_exeext conftest.$ac_ext
8123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8124  
8125 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8126 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"
8127 else
8128 if test "$host_cpu" = ia64; then
8129 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8130 allow_undefined_flag="-z nodefs"
8131 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"
8132 else
8133 # Determine the default libpath from the value encoded in an
8134 # empty executable.
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137  
8138 int
8139 main ()
8140 {
8141  
8142 ;
8143 return 0;
8144 }
8145 _ACEOF
8146 if ac_fn_c_try_link "$LINENO"; then :
8147  
8148 lt_aix_libpath_sed='
8149 /Import File Strings/,/^$/ {
8150 /^0/ {
8151 s/^0 *\(.*\)$/\1/
8152 p
8153 }
8154 }'
8155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8156 # Check for a 64-bit object if we didn't find anything.
8157 if test -z "$aix_libpath"; then
8158 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8159 fi
8160 fi
8161 rm -f core conftest.err conftest.$ac_objext \
8162 conftest$ac_exeext conftest.$ac_ext
8163 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8164  
8165 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8166 # Warning - without using the other run time loading flags,
8167 # -berok will link without error, but may produce a broken library.
8168 no_undefined_flag=' ${wl}-bernotok'
8169 allow_undefined_flag=' ${wl}-berok'
8170 # Exported symbols can be pulled into shared objects from archives
8171 whole_archive_flag_spec='$convenience'
8172 archive_cmds_need_lc=yes
8173 # This is similar to how AIX traditionally builds its shared libraries.
8174 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'
8175 fi
8176 fi
8177 ;;
8178  
8179 amigaos*)
8180 case $host_cpu in
8181 powerpc)
8182 # see comment about AmigaOS4 .so support
8183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8184 archive_expsym_cmds=''
8185 ;;
8186 m68k)
8187 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)'
8188 hardcode_libdir_flag_spec='-L$libdir'
8189 hardcode_minus_L=yes
8190 ;;
8191 esac
8192 ;;
8193  
8194 bsdi[45]*)
8195 export_dynamic_flag_spec=-rdynamic
8196 ;;
8197  
8198 cygwin* | mingw* | pw32* | cegcc*)
8199 # When not using gcc, we currently assume that we are using
8200 # Microsoft Visual C++.
8201 # hardcode_libdir_flag_spec is actually meaningless, as there is
8202 # no search path for DLLs.
8203 hardcode_libdir_flag_spec=' '
8204 allow_undefined_flag=unsupported
8205 # Tell ltmain to make .lib files, not .a files.
8206 libext=lib
8207 # Tell ltmain to make .dll files, not .so files.
8208 shrext_cmds=".dll"
8209 # FIXME: Setting linknames here is a bad hack.
8210 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8211 # The linker will automatically build a .lib file if we build a DLL.
8212 old_archive_from_new_cmds='true'
8213 # FIXME: Should let the user specify the lib program.
8214 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8215 fix_srcfile_path='`cygpath -w "$srcfile"`'
8216 enable_shared_with_static_runtimes=yes
8217 ;;
8218  
8219 darwin* | rhapsody*)
8220  
8221  
8222 archive_cmds_need_lc=no
8223 hardcode_direct=no
8224 hardcode_automatic=yes
8225 hardcode_shlibpath_var=unsupported
8226 whole_archive_flag_spec=''
8227 link_all_deplibs=yes
8228 allow_undefined_flag="$_lt_dar_allow_undefined"
8229 case $cc_basename in
8230 ifort*) _lt_dar_can_shared=yes ;;
8231 *) _lt_dar_can_shared=$GCC ;;
8232 esac
8233 if test "$_lt_dar_can_shared" = "yes"; then
8234 output_verbose_link_cmd=echo
8235 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8236 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8237 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}"
8238 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}"
8239  
8240 else
8241 ld_shlibs=no
8242 fi
8243  
8244 ;;
8245  
8246 dgux*)
8247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8248 hardcode_libdir_flag_spec='-L$libdir'
8249 hardcode_shlibpath_var=no
8250 ;;
8251  
8252 freebsd1*)
8253 ld_shlibs=no
8254 ;;
8255  
8256 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8257 # support. Future versions do this automatically, but an explicit c++rt0.o
8258 # does not break anything, and helps significantly (at the cost of a little
8259 # extra space).
8260 freebsd2.2*)
8261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8262 hardcode_libdir_flag_spec='-R$libdir'
8263 hardcode_direct=yes
8264 hardcode_shlibpath_var=no
8265 ;;
8266  
8267 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8268 freebsd2*)
8269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8270 hardcode_direct=yes
8271 hardcode_minus_L=yes
8272 hardcode_shlibpath_var=no
8273 ;;
8274  
8275 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8276 freebsd* | dragonfly*)
8277 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8278 hardcode_libdir_flag_spec='-R$libdir'
8279 hardcode_direct=yes
8280 hardcode_shlibpath_var=no
8281 ;;
8282  
8283 hpux9*)
8284 if test "$GCC" = yes; then
8285 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'
8286 else
8287 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'
8288 fi
8289 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8290 hardcode_libdir_separator=:
8291 hardcode_direct=yes
8292  
8293 # hardcode_minus_L: Not really in the search PATH,
8294 # but as the default location of the library.
8295 hardcode_minus_L=yes
8296 export_dynamic_flag_spec='${wl}-E'
8297 ;;
8298  
8299 hpux10*)
8300 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8301 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8302 else
8303 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8304 fi
8305 if test "$with_gnu_ld" = no; then
8306 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8307 hardcode_libdir_flag_spec_ld='+b $libdir'
8308 hardcode_libdir_separator=:
8309 hardcode_direct=yes
8310 hardcode_direct_absolute=yes
8311 export_dynamic_flag_spec='${wl}-E'
8312 # hardcode_minus_L: Not really in the search PATH,
8313 # but as the default location of the library.
8314 hardcode_minus_L=yes
8315 fi
8316 ;;
8317  
8318 hpux11*)
8319 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8320 case $host_cpu in
8321 hppa*64*)
8322 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8323 ;;
8324 ia64*)
8325 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8326 ;;
8327 *)
8328 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8329 ;;
8330 esac
8331 else
8332 case $host_cpu in
8333 hppa*64*)
8334 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8335 ;;
8336 ia64*)
8337 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8338 ;;
8339 *)
8340 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8341 ;;
8342 esac
8343 fi
8344 if test "$with_gnu_ld" = no; then
8345 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8346 hardcode_libdir_separator=:
8347  
8348 case $host_cpu in
8349 hppa*64*|ia64*)
8350 hardcode_direct=no
8351 hardcode_shlibpath_var=no
8352 ;;
8353 *)
8354 hardcode_direct=yes
8355 hardcode_direct_absolute=yes
8356 export_dynamic_flag_spec='${wl}-E'
8357  
8358 # hardcode_minus_L: Not really in the search PATH,
8359 # but as the default location of the library.
8360 hardcode_minus_L=yes
8361 ;;
8362 esac
8363 fi
8364 ;;
8365  
8366 irix5* | irix6* | nonstopux*)
8367 if test "$GCC" = yes; then
8368 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'
8369 # Try to use the -exported_symbol ld option, if it does not
8370 # work, assume that -exports_file does not work either and
8371 # implicitly export all symbols.
8372 save_LDFLAGS="$LDFLAGS"
8373 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376 int foo(void) {}
8377 _ACEOF
8378 if ac_fn_c_try_link "$LINENO"; then :
8379 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'
8380  
8381 fi
8382 rm -f core conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8384 LDFLAGS="$save_LDFLAGS"
8385 else
8386 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'
8387 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'
8388 fi
8389 archive_cmds_need_lc='no'
8390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8391 hardcode_libdir_separator=:
8392 inherit_rpath=yes
8393 link_all_deplibs=yes
8394 ;;
8395  
8396 netbsd* | netbsdelf*-gnu)
8397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8399 else
8400 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8401 fi
8402 hardcode_libdir_flag_spec='-R$libdir'
8403 hardcode_direct=yes
8404 hardcode_shlibpath_var=no
8405 ;;
8406  
8407 newsos6)
8408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8409 hardcode_direct=yes
8410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8411 hardcode_libdir_separator=:
8412 hardcode_shlibpath_var=no
8413 ;;
8414  
8415 *nto* | *qnx*)
8416 ;;
8417  
8418 openbsd*)
8419 if test -f /usr/libexec/ld.so; then
8420 hardcode_direct=yes
8421 hardcode_shlibpath_var=no
8422 hardcode_direct_absolute=yes
8423 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8425 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8427 export_dynamic_flag_spec='${wl}-E'
8428 else
8429 case $host_os in
8430 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8432 hardcode_libdir_flag_spec='-R$libdir'
8433 ;;
8434 *)
8435 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8436 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8437 ;;
8438 esac
8439 fi
8440 else
8441 ld_shlibs=no
8442 fi
8443 ;;
8444  
8445 os2*)
8446 hardcode_libdir_flag_spec='-L$libdir'
8447 hardcode_minus_L=yes
8448 allow_undefined_flag=unsupported
8449 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'
8450 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8451 ;;
8452  
8453 osf3*)
8454 if test "$GCC" = yes; then
8455 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8456 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'
8457 else
8458 allow_undefined_flag=' -expect_unresolved \*'
8459 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'
8460 fi
8461 archive_cmds_need_lc='no'
8462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8463 hardcode_libdir_separator=:
8464 ;;
8465  
8466 osf4* | osf5*) # as osf3* with the addition of -msym flag
8467 if test "$GCC" = yes; then
8468 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8469 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'
8470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8471 else
8472 allow_undefined_flag=' -expect_unresolved \*'
8473 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'
8474 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~
8475 $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'
8476  
8477 # Both c and cxx compiler support -rpath directly
8478 hardcode_libdir_flag_spec='-rpath $libdir'
8479 fi
8480 archive_cmds_need_lc='no'
8481 hardcode_libdir_separator=:
8482 ;;
8483  
8484 solaris*)
8485 no_undefined_flag=' -z defs'
8486 if test "$GCC" = yes; then
8487 wlarc='${wl}'
8488 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8489 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8490 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8491 else
8492 case `$CC -V 2>&1` in
8493 *"Compilers 5.0"*)
8494 wlarc=''
8495 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8496 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8497 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8498 ;;
8499 *)
8500 wlarc='${wl}'
8501 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8502 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8503 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8504 ;;
8505 esac
8506 fi
8507 hardcode_libdir_flag_spec='-R$libdir'
8508 hardcode_shlibpath_var=no
8509 case $host_os in
8510 solaris2.[0-5] | solaris2.[0-5].*) ;;
8511 *)
8512 # The compiler driver will combine and reorder linker options,
8513 # but understands `-z linker_flag'. GCC discards it without `$wl',
8514 # but is careful enough not to reorder.
8515 # Supported since Solaris 2.6 (maybe 2.5.1?)
8516 if test "$GCC" = yes; then
8517 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8518 else
8519 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8520 fi
8521 ;;
8522 esac
8523 link_all_deplibs=yes
8524 ;;
8525  
8526 sunos4*)
8527 if test "x$host_vendor" = xsequent; then
8528 # Use $CC to link under sequent, because it throws in some extra .o
8529 # files that make .init and .fini sections work.
8530 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8531 else
8532 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8533 fi
8534 hardcode_libdir_flag_spec='-L$libdir'
8535 hardcode_direct=yes
8536 hardcode_minus_L=yes
8537 hardcode_shlibpath_var=no
8538 ;;
8539  
8540 sysv4)
8541 case $host_vendor in
8542 sni)
8543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8544 hardcode_direct=yes # is this really true???
8545 ;;
8546 siemens)
8547 ## LD is ld it makes a PLAMLIB
8548 ## CC just makes a GrossModule.
8549 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8550 reload_cmds='$CC -r -o $output$reload_objs'
8551 hardcode_direct=no
8552 ;;
8553 motorola)
8554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8555 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8556 ;;
8557 esac
8558 runpath_var='LD_RUN_PATH'
8559 hardcode_shlibpath_var=no
8560 ;;
8561  
8562 sysv4.3*)
8563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8564 hardcode_shlibpath_var=no
8565 export_dynamic_flag_spec='-Bexport'
8566 ;;
8567  
8568 sysv4*MP*)
8569 if test -d /usr/nec; then
8570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8571 hardcode_shlibpath_var=no
8572 runpath_var=LD_RUN_PATH
8573 hardcode_runpath_var=yes
8574 ld_shlibs=yes
8575 fi
8576 ;;
8577  
8578 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8579 no_undefined_flag='${wl}-z,text'
8580 archive_cmds_need_lc=no
8581 hardcode_shlibpath_var=no
8582 runpath_var='LD_RUN_PATH'
8583  
8584 if test "$GCC" = yes; then
8585 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8586 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8587 else
8588 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8589 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8590 fi
8591 ;;
8592  
8593 sysv5* | sco3.2v5* | sco5v6*)
8594 # Note: We can NOT use -z defs as we might desire, because we do not
8595 # link with -lc, and that would cause any symbols used from libc to
8596 # always be unresolved, which means just about no library would
8597 # ever link correctly. If we're not using GNU ld we use -z text
8598 # though, which does catch some bad symbols but isn't as heavy-handed
8599 # as -z defs.
8600 no_undefined_flag='${wl}-z,text'
8601 allow_undefined_flag='${wl}-z,nodefs'
8602 archive_cmds_need_lc=no
8603 hardcode_shlibpath_var=no
8604 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8605 hardcode_libdir_separator=':'
8606 link_all_deplibs=yes
8607 export_dynamic_flag_spec='${wl}-Bexport'
8608 runpath_var='LD_RUN_PATH'
8609  
8610 if test "$GCC" = yes; then
8611 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8612 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8613 else
8614 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8615 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8616 fi
8617 ;;
8618  
8619 uts4*)
8620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8621 hardcode_libdir_flag_spec='-L$libdir'
8622 hardcode_shlibpath_var=no
8623 ;;
8624  
8625 *)
8626 ld_shlibs=no
8627 ;;
8628 esac
8629  
8630 if test x$host_vendor = xsni; then
8631 case $host in
8632 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8633 export_dynamic_flag_spec='${wl}-Blargedynsym'
8634 ;;
8635 esac
8636 fi
8637 fi
8638  
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8640 $as_echo "$ld_shlibs" >&6; }
8641 test "$ld_shlibs" = no && can_build_shared=no
8642  
8643 with_gnu_ld=$with_gnu_ld
8644  
8645  
8646  
8647  
8648  
8649  
8650  
8651  
8652  
8653  
8654  
8655  
8656  
8657  
8658  
8659 #
8660 # Do we need to explicitly link libc?
8661 #
8662 case "x$archive_cmds_need_lc" in
8663 x|xyes)
8664 # Assume -lc should be added
8665 archive_cmds_need_lc=yes
8666  
8667 if test "$enable_shared" = yes && test "$GCC" = yes; then
8668 case $archive_cmds in
8669 *'~'*)
8670 # FIXME: we may have to deal with multi-command sequences.
8671 ;;
8672 '$CC '*)
8673 # Test whether the compiler implicitly links with -lc since on some
8674 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8675 # to ld, don't add -lc before -lgcc.
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8677 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8678 $RM conftest*
8679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8680  
8681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8682 (eval $ac_compile) 2>&5
8683 ac_status=$?
8684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8685 test $ac_status = 0; } 2>conftest.err; then
8686 soname=conftest
8687 lib=conftest
8688 libobjs=conftest.$ac_objext
8689 deplibs=
8690 wl=$lt_prog_compiler_wl
8691 pic_flag=$lt_prog_compiler_pic
8692 compiler_flags=-v
8693 linker_flags=-v
8694 verstring=
8695 output_objdir=.
8696 libname=conftest
8697 lt_save_allow_undefined_flag=$allow_undefined_flag
8698 allow_undefined_flag=
8699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8700 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8701 ac_status=$?
8702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8703 test $ac_status = 0; }
8704 then
8705 archive_cmds_need_lc=no
8706 else
8707 archive_cmds_need_lc=yes
8708 fi
8709 allow_undefined_flag=$lt_save_allow_undefined_flag
8710 else
8711 cat conftest.err 1>&5
8712 fi
8713 $RM conftest*
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8715 $as_echo "$archive_cmds_need_lc" >&6; }
8716 ;;
8717 esac
8718 fi
8719 ;;
8720 esac
8721  
8722  
8723  
8724  
8725  
8726  
8727  
8728  
8729  
8730  
8731  
8732  
8733  
8734  
8735  
8736  
8737  
8738  
8739  
8740  
8741  
8742  
8743  
8744  
8745  
8746  
8747  
8748  
8749  
8750  
8751  
8752  
8753  
8754  
8755  
8756  
8757  
8758  
8759  
8760  
8761  
8762  
8763  
8764  
8765  
8766  
8767  
8768  
8769  
8770  
8771  
8772  
8773  
8774  
8775  
8776  
8777  
8778  
8779  
8780  
8781  
8782  
8783  
8784  
8785  
8786  
8787  
8788  
8789  
8790  
8791  
8792  
8793  
8794  
8795  
8796  
8797  
8798  
8799  
8800  
8801  
8802  
8803  
8804  
8805  
8806  
8807  
8808  
8809  
8810  
8811  
8812  
8813  
8814  
8815  
8816  
8817  
8818  
8819  
8820  
8821  
8822  
8823  
8824  
8825  
8826  
8827  
8828  
8829  
8830  
8831  
8832  
8833  
8834  
8835  
8836  
8837  
8838  
8839  
8840  
8841  
8842  
8843  
8844  
8845  
8846  
8847  
8848  
8849  
8850  
8851  
8852  
8853  
8854  
8855  
8856  
8857  
8858  
8859  
8860  
8861  
8862  
8863  
8864  
8865  
8866  
8867  
8868  
8869  
8870  
8871  
8872  
8873  
8874  
8875  
8876  
8877  
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8879 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8880  
8881 if test "$GCC" = yes; then
8882 case $host_os in
8883 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8884 *) lt_awk_arg="/^libraries:/" ;;
8885 esac
8886 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8887 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8888 # if the path contains ";" then we assume it to be the separator
8889 # otherwise default to the standard path separator (i.e. ":") - it is
8890 # assumed that no part of a normal pathname contains ";" but that should
8891 # okay in the real world where ";" in dirpaths is itself problematic.
8892 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8893 else
8894 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8895 fi
8896 # Ok, now we have the path, separated by spaces, we can step through it
8897 # and add multilib dir if necessary.
8898 lt_tmp_lt_search_path_spec=
8899 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8900 for lt_sys_path in $lt_search_path_spec; do
8901 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8903 else
8904 test -d "$lt_sys_path" && \
8905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8906 fi
8907 done
8908 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8909 BEGIN {RS=" "; FS="/|\n";} {
8910 lt_foo="";
8911 lt_count=0;
8912 for (lt_i = NF; lt_i > 0; lt_i--) {
8913 if ($lt_i != "" && $lt_i != ".") {
8914 if ($lt_i == "..") {
8915 lt_count++;
8916 } else {
8917 if (lt_count == 0) {
8918 lt_foo="/" $lt_i lt_foo;
8919 } else {
8920 lt_count--;
8921 }
8922 }
8923 }
8924 }
8925 if (lt_foo != "") { lt_freq[lt_foo]++; }
8926 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8927 }'`
8928 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8929 else
8930 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8931 fi
8932 library_names_spec=
8933 libname_spec='lib$name'
8934 soname_spec=
8935 shrext_cmds=".so"
8936 postinstall_cmds=
8937 postuninstall_cmds=
8938 finish_cmds=
8939 finish_eval=
8940 shlibpath_var=
8941 shlibpath_overrides_runpath=unknown
8942 version_type=none
8943 dynamic_linker="$host_os ld.so"
8944 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8945 need_lib_prefix=unknown
8946 hardcode_into_libs=no
8947  
8948 # when you set need_version to no, make sure it does not cause -set_version
8949 # flags to be left without arguments
8950 need_version=unknown
8951  
8952 case $host_os in
8953 aix3*)
8954 version_type=linux
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8956 shlibpath_var=LIBPATH
8957  
8958 # AIX 3 has no versioning support, so we append a major version to the name.
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 ;;
8961  
8962 aix[4-9]*)
8963 version_type=linux
8964 need_lib_prefix=no
8965 need_version=no
8966 hardcode_into_libs=yes
8967 if test "$host_cpu" = ia64; then
8968 # AIX 5 supports IA64
8969 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 else
8972 # With GCC up to 2.95.x, collect2 would create an import file
8973 # for dependence libraries. The import file would start with
8974 # the line `#! .'. This would cause the generated library to
8975 # depend on `.', always an invalid library. This was fixed in
8976 # development snapshots of GCC prior to 3.0.
8977 case $host_os in
8978 aix4 | aix4.[01] | aix4.[01].*)
8979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8980 echo ' yes '
8981 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8982 :
8983 else
8984 can_build_shared=no
8985 fi
8986 ;;
8987 esac
8988 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8989 # soname into executable. Probably we can add versioning support to
8990 # collect2, so additional links can be useful in future.
8991 if test "$aix_use_runtimelinking" = yes; then
8992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8993 # instead of lib<name>.a to let people know that these are not
8994 # typical AIX shared libraries.
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 else
8997 # We preserve .a as extension for shared libraries through AIX4.2
8998 # and later when we are not doing run time linking.
8999 library_names_spec='${libname}${release}.a $libname.a'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 fi
9002 shlibpath_var=LIBPATH
9003 fi
9004 ;;
9005  
9006 amigaos*)
9007 case $host_cpu in
9008 powerpc)
9009 # Since July 2007 AmigaOS4 officially supports .so libraries.
9010 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012 ;;
9013 m68k)
9014 library_names_spec='$libname.ixlibrary $libname.a'
9015 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9016 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'
9017 ;;
9018 esac
9019 ;;
9020  
9021 beos*)
9022 library_names_spec='${libname}${shared_ext}'
9023 dynamic_linker="$host_os ld.so"
9024 shlibpath_var=LIBRARY_PATH
9025 ;;
9026  
9027 bsdi[45]*)
9028 version_type=linux
9029 need_version=no
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031 soname_spec='${libname}${release}${shared_ext}$major'
9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9035 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9036 # the default ld.so.conf also contains /usr/contrib/lib and
9037 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9038 # libtool to hard-code these into programs
9039 ;;
9040  
9041 cygwin* | mingw* | pw32* | cegcc*)
9042 version_type=windows
9043 shrext_cmds=".dll"
9044 need_version=no
9045 need_lib_prefix=no
9046  
9047 case $GCC,$host_os in
9048 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9049 library_names_spec='$libname.dll.a'
9050 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9051 postinstall_cmds='base_file=`basename \${file}`~
9052 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9053 dldir=$destdir/`dirname \$dlpath`~
9054 test -d \$dldir || mkdir -p \$dldir~
9055 $install_prog $dir/$dlname \$dldir/$dlname~
9056 chmod a+x \$dldir/$dlname~
9057 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9058 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9059 fi'
9060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9061 dlpath=$dir/\$dldll~
9062 $RM \$dlpath'
9063 shlibpath_overrides_runpath=yes
9064  
9065 case $host_os in
9066 cygwin*)
9067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9068 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9069 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9070 ;;
9071 mingw* | cegcc*)
9072 # MinGW DLLs use traditional 'lib' prefix
9073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9074 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9075 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9076 # It is most probably a Windows format PATH printed by
9077 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9078 # path with ; separators, and with drive letters. We can handle the
9079 # drive letters (cygwin fileutils understands them), so leave them,
9080 # especially as we might pass files found there to a mingw objdump,
9081 # which wouldn't understand a cygwinified path. Ahh.
9082 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9083 else
9084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9085 fi
9086 ;;
9087 pw32*)
9088 # pw32 DLLs use 'pw' prefix rather than 'lib'
9089 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9090 ;;
9091 esac
9092 ;;
9093  
9094 *)
9095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9096 ;;
9097 esac
9098 dynamic_linker='Win32 ld.exe'
9099 # FIXME: first we should search . and the directory the executable is in
9100 shlibpath_var=PATH
9101 ;;
9102  
9103 darwin* | rhapsody*)
9104 dynamic_linker="$host_os dyld"
9105 version_type=darwin
9106 need_lib_prefix=no
9107 need_version=no
9108 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9109 soname_spec='${libname}${release}${major}$shared_ext'
9110 shlibpath_overrides_runpath=yes
9111 shlibpath_var=DYLD_LIBRARY_PATH
9112 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9113  
9114 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9115 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9116 ;;
9117  
9118 dgux*)
9119 version_type=linux
9120 need_lib_prefix=no
9121 need_version=no
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 ;;
9126  
9127 freebsd1*)
9128 dynamic_linker=no
9129 ;;
9130  
9131 freebsd* | dragonfly*)
9132 # DragonFly does not have aout. When/if they implement a new
9133 # versioning mechanism, adjust this.
9134 if test -x /usr/bin/objformat; then
9135 objformat=`/usr/bin/objformat`
9136 else
9137 case $host_os in
9138 freebsd[123]*) objformat=aout ;;
9139 *) objformat=elf ;;
9140 esac
9141 fi
9142 version_type=freebsd-$objformat
9143 case $version_type in
9144 freebsd-elf*)
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9146 need_version=no
9147 need_lib_prefix=no
9148 ;;
9149 freebsd-*)
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9151 need_version=yes
9152 ;;
9153 esac
9154 shlibpath_var=LD_LIBRARY_PATH
9155 case $host_os in
9156 freebsd2*)
9157 shlibpath_overrides_runpath=yes
9158 ;;
9159 freebsd3.[01]* | freebsdelf3.[01]*)
9160 shlibpath_overrides_runpath=yes
9161 hardcode_into_libs=yes
9162 ;;
9163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9165 shlibpath_overrides_runpath=no
9166 hardcode_into_libs=yes
9167 ;;
9168 *) # from 4.6 on, and DragonFly
9169 shlibpath_overrides_runpath=yes
9170 hardcode_into_libs=yes
9171 ;;
9172 esac
9173 ;;
9174  
9175 gnu*)
9176 version_type=linux
9177 need_lib_prefix=no
9178 need_version=no
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9180 soname_spec='${libname}${release}${shared_ext}$major'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 hardcode_into_libs=yes
9183 ;;
9184  
9185 hpux9* | hpux10* | hpux11*)
9186 # Give a soname corresponding to the major version so that dld.sl refuses to
9187 # link against other versions.
9188 version_type=sunos
9189 need_lib_prefix=no
9190 need_version=no
9191 case $host_cpu in
9192 ia64*)
9193 shrext_cmds='.so'
9194 hardcode_into_libs=yes
9195 dynamic_linker="$host_os dld.so"
9196 shlibpath_var=LD_LIBRARY_PATH
9197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 if test "X$HPUX_IA64_MODE" = X32; then
9201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9202 else
9203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9204 fi
9205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9206 ;;
9207 hppa*64*)
9208 shrext_cmds='.sl'
9209 hardcode_into_libs=yes
9210 dynamic_linker="$host_os dld.sl"
9211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9217 ;;
9218 *)
9219 shrext_cmds='.sl'
9220 dynamic_linker="$host_os dld.sl"
9221 shlibpath_var=SHLIB_PATH
9222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 ;;
9226 esac
9227 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9228 postinstall_cmds='chmod 555 $lib'
9229 ;;
9230  
9231 interix[3-9]*)
9232 version_type=linux
9233 need_lib_prefix=no
9234 need_version=no
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=no
9240 hardcode_into_libs=yes
9241 ;;
9242  
9243 irix5* | irix6* | nonstopux*)
9244 case $host_os in
9245 nonstopux*) version_type=nonstopux ;;
9246 *)
9247 if test "$lt_cv_prog_gnu_ld" = yes; then
9248 version_type=linux
9249 else
9250 version_type=irix
9251 fi ;;
9252 esac
9253 need_lib_prefix=no
9254 need_version=no
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9257 case $host_os in
9258 irix5* | nonstopux*)
9259 libsuff= shlibsuff=
9260 ;;
9261 *)
9262 case $LD in # libtool.m4 will add one of these switches to LD
9263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9264 libsuff= shlibsuff= libmagic=32-bit;;
9265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9266 libsuff=32 shlibsuff=N32 libmagic=N32;;
9267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9269 *) libsuff= shlibsuff= libmagic=never-match;;
9270 esac
9271 ;;
9272 esac
9273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9274 shlibpath_overrides_runpath=no
9275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9277 hardcode_into_libs=yes
9278 ;;
9279  
9280 # No shared lib support for Linux oldld, aout, or coff.
9281 linux*oldld* | linux*aout* | linux*coff*)
9282 dynamic_linker=no
9283 ;;
9284  
9285 # This must be Linux ELF.
9286 linux* | k*bsd*-gnu)
9287 version_type=linux
9288 need_lib_prefix=no
9289 need_version=no
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 shlibpath_overrides_runpath=no
9295 # Some binutils ld are patched to set DT_RUNPATH
9296 save_LDFLAGS=$LDFLAGS
9297 save_libdir=$libdir
9298 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9299 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302  
9303 int
9304 main ()
9305 {
9306  
9307 ;
9308 return 0;
9309 }
9310 _ACEOF
9311 if ac_fn_c_try_link "$LINENO"; then :
9312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9313 shlibpath_overrides_runpath=yes
9314 fi
9315 fi
9316 rm -f core conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext conftest.$ac_ext
9318 LDFLAGS=$save_LDFLAGS
9319 libdir=$save_libdir
9320  
9321 # This implies no fast_install, which is unacceptable.
9322 # Some rework will be needed to allow for fast_install
9323 # before this can be enabled.
9324 hardcode_into_libs=yes
9325  
9326 # Append ld.so.conf contents to the search path
9327 if test -f /etc/ld.so.conf; then
9328 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' ' '`
9329 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9330 fi
9331  
9332 # We used to test for /lib/ld.so.1 and disable shared libraries on
9333 # powerpc, because MkLinux only supported shared libraries with the
9334 # GNU dynamic linker. Since this was broken with cross compilers,
9335 # most powerpc-linux boxes support dynamic linking these days and
9336 # people can always --disable-shared, the test was removed, and we
9337 # assume the GNU/Linux dynamic linker is in use.
9338 dynamic_linker='GNU/Linux ld.so'
9339 ;;
9340  
9341 netbsdelf*-gnu)
9342 version_type=linux
9343 need_lib_prefix=no
9344 need_version=no
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 shlibpath_overrides_runpath=no
9349 hardcode_into_libs=yes
9350 dynamic_linker='NetBSD ld.elf_so'
9351 ;;
9352  
9353 netbsd*)
9354 version_type=sunos
9355 need_lib_prefix=no
9356 need_version=no
9357 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9360 dynamic_linker='NetBSD (a.out) ld.so'
9361 else
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 dynamic_linker='NetBSD ld.elf_so'
9365 fi
9366 shlibpath_var=LD_LIBRARY_PATH
9367 shlibpath_overrides_runpath=yes
9368 hardcode_into_libs=yes
9369 ;;
9370  
9371 newsos6)
9372 version_type=linux
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 shlibpath_overrides_runpath=yes
9376 ;;
9377  
9378 *nto* | *qnx*)
9379 version_type=qnx
9380 need_lib_prefix=no
9381 need_version=no
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 shlibpath_overrides_runpath=no
9386 hardcode_into_libs=yes
9387 dynamic_linker='ldqnx.so'
9388 ;;
9389  
9390 openbsd*)
9391 version_type=sunos
9392 sys_lib_dlsearch_path_spec="/usr/lib"
9393 need_lib_prefix=no
9394 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9395 case $host_os in
9396 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9397 *) need_version=no ;;
9398 esac
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9403 case $host_os in
9404 openbsd2.[89] | openbsd2.[89].*)
9405 shlibpath_overrides_runpath=no
9406 ;;
9407 *)
9408 shlibpath_overrides_runpath=yes
9409 ;;
9410 esac
9411 else
9412 shlibpath_overrides_runpath=yes
9413 fi
9414 ;;
9415  
9416 os2*)
9417 libname_spec='$name'
9418 shrext_cmds=".dll"
9419 need_lib_prefix=no
9420 library_names_spec='$libname${shared_ext} $libname.a'
9421 dynamic_linker='OS/2 ld.exe'
9422 shlibpath_var=LIBPATH
9423 ;;
9424  
9425 osf3* | osf4* | osf5*)
9426 version_type=osf
9427 need_lib_prefix=no
9428 need_version=no
9429 soname_spec='${libname}${release}${shared_ext}$major'
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9433 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9434 ;;
9435  
9436 rdos*)
9437 dynamic_linker=no
9438 ;;
9439  
9440 solaris*)
9441 version_type=linux
9442 need_lib_prefix=no
9443 need_version=no
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 shlibpath_overrides_runpath=yes
9448 hardcode_into_libs=yes
9449 # ldd complains unless libraries are executable
9450 postinstall_cmds='chmod +x $lib'
9451 ;;
9452  
9453 sunos4*)
9454 version_type=sunos
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9456 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 shlibpath_overrides_runpath=yes
9459 if test "$with_gnu_ld" = yes; then
9460 need_lib_prefix=no
9461 fi
9462 need_version=yes
9463 ;;
9464  
9465 sysv4 | sysv4.3*)
9466 version_type=linux
9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468 soname_spec='${libname}${release}${shared_ext}$major'
9469 shlibpath_var=LD_LIBRARY_PATH
9470 case $host_vendor in
9471 sni)
9472 shlibpath_overrides_runpath=no
9473 need_lib_prefix=no
9474 runpath_var=LD_RUN_PATH
9475 ;;
9476 siemens)
9477 need_lib_prefix=no
9478 ;;
9479 motorola)
9480 need_lib_prefix=no
9481 need_version=no
9482 shlibpath_overrides_runpath=no
9483 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9484 ;;
9485 esac
9486 ;;
9487  
9488 sysv4*MP*)
9489 if test -d /usr/nec ;then
9490 version_type=linux
9491 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9492 soname_spec='$libname${shared_ext}.$major'
9493 shlibpath_var=LD_LIBRARY_PATH
9494 fi
9495 ;;
9496  
9497 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9498 version_type=freebsd-elf
9499 need_lib_prefix=no
9500 need_version=no
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 shlibpath_var=LD_LIBRARY_PATH
9504 shlibpath_overrides_runpath=yes
9505 hardcode_into_libs=yes
9506 if test "$with_gnu_ld" = yes; then
9507 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9508 else
9509 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9510 case $host_os in
9511 sco3.2v5*)
9512 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9513 ;;
9514 esac
9515 fi
9516 sys_lib_dlsearch_path_spec='/usr/lib'
9517 ;;
9518  
9519 tpf*)
9520 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9521 version_type=linux
9522 need_lib_prefix=no
9523 need_version=no
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 shlibpath_var=LD_LIBRARY_PATH
9526 shlibpath_overrides_runpath=no
9527 hardcode_into_libs=yes
9528 ;;
9529  
9530 uts4*)
9531 version_type=linux
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533 soname_spec='${libname}${release}${shared_ext}$major'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 ;;
9536  
9537 *)
9538 dynamic_linker=no
9539 ;;
9540 esac
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9542 $as_echo "$dynamic_linker" >&6; }
9543 test "$dynamic_linker" = no && can_build_shared=no
9544  
9545 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9546 if test "$GCC" = yes; then
9547 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9548 fi
9549  
9550 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9551 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9552 fi
9553 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9554 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9555 fi
9556  
9557  
9558  
9559  
9560  
9561  
9562  
9563  
9564  
9565  
9566  
9567  
9568  
9569  
9570  
9571  
9572  
9573  
9574  
9575  
9576  
9577  
9578  
9579  
9580  
9581  
9582  
9583  
9584  
9585  
9586  
9587  
9588  
9589  
9590  
9591  
9592  
9593  
9594  
9595  
9596  
9597  
9598  
9599  
9600  
9601  
9602  
9603  
9604  
9605  
9606  
9607  
9608  
9609  
9610  
9611  
9612  
9613  
9614  
9615  
9616  
9617  
9618  
9619  
9620  
9621  
9622  
9623  
9624  
9625  
9626  
9627  
9628  
9629  
9630  
9631  
9632  
9633  
9634  
9635  
9636  
9637  
9638  
9639  
9640  
9641  
9642  
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9644 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9645 hardcode_action=
9646 if test -n "$hardcode_libdir_flag_spec" ||
9647 test -n "$runpath_var" ||
9648 test "X$hardcode_automatic" = "Xyes" ; then
9649  
9650 # We can hardcode non-existent directories.
9651 if test "$hardcode_direct" != no &&
9652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9653 # have to relink, otherwise we might link with an installed library
9654 # when we should be linking with a yet-to-be-installed one
9655 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9656 test "$hardcode_minus_L" != no; then
9657 # Linking always hardcodes the temporary library directory.
9658 hardcode_action=relink
9659 else
9660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9661 hardcode_action=immediate
9662 fi
9663 else
9664 # We cannot hardcode anything, or else we can only hardcode existing
9665 # directories.
9666 hardcode_action=unsupported
9667 fi
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9669 $as_echo "$hardcode_action" >&6; }
9670  
9671 if test "$hardcode_action" = relink ||
9672 test "$inherit_rpath" = yes; then
9673 # Fast installation is not supported
9674 enable_fast_install=no
9675 elif test "$shlibpath_overrides_runpath" = yes ||
9676 test "$enable_shared" = no; then
9677 # Fast installation is not necessary
9678 enable_fast_install=needless
9679 fi
9680  
9681  
9682  
9683  
9684  
9685  
9686 if test "x$enable_dlopen" != xyes; then
9687 enable_dlopen=unknown
9688 enable_dlopen_self=unknown
9689 enable_dlopen_self_static=unknown
9690 else
9691 lt_cv_dlopen=no
9692 lt_cv_dlopen_libs=
9693  
9694 case $host_os in
9695 beos*)
9696 lt_cv_dlopen="load_add_on"
9697 lt_cv_dlopen_libs=
9698 lt_cv_dlopen_self=yes
9699 ;;
9700  
9701 mingw* | pw32* | cegcc*)
9702 lt_cv_dlopen="LoadLibrary"
9703 lt_cv_dlopen_libs=
9704 ;;
9705  
9706 cygwin*)
9707 lt_cv_dlopen="dlopen"
9708 lt_cv_dlopen_libs=
9709 ;;
9710  
9711 darwin*)
9712 # if libdl is installed we need to link against it
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9714 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 ac_check_lib_save_LIBS=$LIBS
9719 LIBS="-ldl $LIBS"
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9722  
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 char dlopen ();
9730 int
9731 main ()
9732 {
9733 return dlopen ();
9734 ;
9735 return 0;
9736 }
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9739 ac_cv_lib_dl_dlopen=yes
9740 else
9741 ac_cv_lib_dl_dlopen=no
9742 fi
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9746 fi
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9748 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9749 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9751 else
9752  
9753 lt_cv_dlopen="dyld"
9754 lt_cv_dlopen_libs=
9755 lt_cv_dlopen_self=yes
9756  
9757 fi
9758  
9759 ;;
9760  
9761 *)
9762 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9763 if test "x$ac_cv_func_shl_load" = x""yes; then :
9764 lt_cv_dlopen="shl_load"
9765 else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9767 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9768 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9769 $as_echo_n "(cached) " >&6
9770 else
9771 ac_check_lib_save_LIBS=$LIBS
9772 LIBS="-ldld $LIBS"
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775  
9776 /* Override any GCC internal prototype to avoid an error.
9777 Use char because int might match the return type of a GCC
9778 builtin and then its argument prototype would still apply. */
9779 #ifdef __cplusplus
9780 extern "C"
9781 #endif
9782 char shl_load ();
9783 int
9784 main ()
9785 {
9786 return shl_load ();
9787 ;
9788 return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"; then :
9792 ac_cv_lib_dld_shl_load=yes
9793 else
9794 ac_cv_lib_dld_shl_load=no
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798 LIBS=$ac_check_lib_save_LIBS
9799 fi
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9801 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9802 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9803 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9804 else
9805 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9806 if test "x$ac_cv_func_dlopen" = x""yes; then :
9807 lt_cv_dlopen="dlopen"
9808 else
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9810 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 ac_check_lib_save_LIBS=$LIBS
9815 LIBS="-ldl $LIBS"
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818  
9819 /* Override any GCC internal prototype to avoid an error.
9820 Use char because int might match the return type of a GCC
9821 builtin and then its argument prototype would still apply. */
9822 #ifdef __cplusplus
9823 extern "C"
9824 #endif
9825 char dlopen ();
9826 int
9827 main ()
9828 {
9829 return dlopen ();
9830 ;
9831 return 0;
9832 }
9833 _ACEOF
9834 if ac_fn_c_try_link "$LINENO"; then :
9835 ac_cv_lib_dl_dlopen=yes
9836 else
9837 ac_cv_lib_dl_dlopen=no
9838 fi
9839 rm -f core conftest.err conftest.$ac_objext \
9840 conftest$ac_exeext conftest.$ac_ext
9841 LIBS=$ac_check_lib_save_LIBS
9842 fi
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9844 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9845 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9847 else
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9849 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9850 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9851 $as_echo_n "(cached) " >&6
9852 else
9853 ac_check_lib_save_LIBS=$LIBS
9854 LIBS="-lsvld $LIBS"
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9857  
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9861 #ifdef __cplusplus
9862 extern "C"
9863 #endif
9864 char dlopen ();
9865 int
9866 main ()
9867 {
9868 return dlopen ();
9869 ;
9870 return 0;
9871 }
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9874 ac_cv_lib_svld_dlopen=yes
9875 else
9876 ac_cv_lib_svld_dlopen=no
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9881 fi
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9883 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9884 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9886 else
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9888 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9889 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 ac_check_lib_save_LIBS=$LIBS
9893 LIBS="-ldld $LIBS"
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896  
9897 /* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
9900 #ifdef __cplusplus
9901 extern "C"
9902 #endif
9903 char dld_link ();
9904 int
9905 main ()
9906 {
9907 return dld_link ();
9908 ;
9909 return 0;
9910 }
9911 _ACEOF
9912 if ac_fn_c_try_link "$LINENO"; then :
9913 ac_cv_lib_dld_dld_link=yes
9914 else
9915 ac_cv_lib_dld_dld_link=no
9916 fi
9917 rm -f core conftest.err conftest.$ac_objext \
9918 conftest$ac_exeext conftest.$ac_ext
9919 LIBS=$ac_check_lib_save_LIBS
9920 fi
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9922 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9923 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9924 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9925 fi
9926  
9927  
9928 fi
9929  
9930  
9931 fi
9932  
9933  
9934 fi
9935  
9936  
9937 fi
9938  
9939  
9940 fi
9941  
9942 ;;
9943 esac
9944  
9945 if test "x$lt_cv_dlopen" != xno; then
9946 enable_dlopen=yes
9947 else
9948 enable_dlopen=no
9949 fi
9950  
9951 case $lt_cv_dlopen in
9952 dlopen)
9953 save_CPPFLAGS="$CPPFLAGS"
9954 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9955  
9956 save_LDFLAGS="$LDFLAGS"
9957 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9958  
9959 save_LIBS="$LIBS"
9960 LIBS="$lt_cv_dlopen_libs $LIBS"
9961  
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9963 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9964 if test "${lt_cv_dlopen_self+set}" = set; then :
9965 $as_echo_n "(cached) " >&6
9966 else
9967 if test "$cross_compiling" = yes; then :
9968 lt_cv_dlopen_self=cross
9969 else
9970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9971 lt_status=$lt_dlunknown
9972 cat > conftest.$ac_ext <<_LT_EOF
9973 #line __oline__ "configure"
9974 #include "confdefs.h"
9975  
9976 #if HAVE_DLFCN_H
9977 #include <dlfcn.h>
9978 #endif
9979  
9980 #include <stdio.h>
9981  
9982 #ifdef RTLD_GLOBAL
9983 # define LT_DLGLOBAL RTLD_GLOBAL
9984 #else
9985 # ifdef DL_GLOBAL
9986 # define LT_DLGLOBAL DL_GLOBAL
9987 # else
9988 # define LT_DLGLOBAL 0
9989 # endif
9990 #endif
9991  
9992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9993 find out it does not work in some platform. */
9994 #ifndef LT_DLLAZY_OR_NOW
9995 # ifdef RTLD_LAZY
9996 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9997 # else
9998 # ifdef DL_LAZY
9999 # define LT_DLLAZY_OR_NOW DL_LAZY
10000 # else
10001 # ifdef RTLD_NOW
10002 # define LT_DLLAZY_OR_NOW RTLD_NOW
10003 # else
10004 # ifdef DL_NOW
10005 # define LT_DLLAZY_OR_NOW DL_NOW
10006 # else
10007 # define LT_DLLAZY_OR_NOW 0
10008 # endif
10009 # endif
10010 # endif
10011 # endif
10012 #endif
10013  
10014 void fnord() { int i=42;}
10015 int main ()
10016 {
10017 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10018 int status = $lt_dlunknown;
10019  
10020 if (self)
10021 {
10022 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10023 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10024 /* dlclose (self); */
10025 }
10026 else
10027 puts (dlerror ());
10028  
10029 return status;
10030 }
10031 _LT_EOF
10032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10033 (eval $ac_link) 2>&5
10034 ac_status=$?
10035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10036 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10037 (./conftest; exit; ) >&5 2>/dev/null
10038 lt_status=$?
10039 case x$lt_status in
10040 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10041 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10042 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10043 esac
10044 else :
10045 # compilation failed
10046 lt_cv_dlopen_self=no
10047 fi
10048 fi
10049 rm -fr conftest*
10050  
10051  
10052 fi
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10054 $as_echo "$lt_cv_dlopen_self" >&6; }
10055  
10056 if test "x$lt_cv_dlopen_self" = xyes; then
10057 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10059 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10060 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 if test "$cross_compiling" = yes; then :
10064 lt_cv_dlopen_self_static=cross
10065 else
10066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10067 lt_status=$lt_dlunknown
10068 cat > conftest.$ac_ext <<_LT_EOF
10069 #line __oline__ "configure"
10070 #include "confdefs.h"
10071  
10072 #if HAVE_DLFCN_H
10073 #include <dlfcn.h>
10074 #endif
10075  
10076 #include <stdio.h>
10077  
10078 #ifdef RTLD_GLOBAL
10079 # define LT_DLGLOBAL RTLD_GLOBAL
10080 #else
10081 # ifdef DL_GLOBAL
10082 # define LT_DLGLOBAL DL_GLOBAL
10083 # else
10084 # define LT_DLGLOBAL 0
10085 # endif
10086 #endif
10087  
10088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10089 find out it does not work in some platform. */
10090 #ifndef LT_DLLAZY_OR_NOW
10091 # ifdef RTLD_LAZY
10092 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10093 # else
10094 # ifdef DL_LAZY
10095 # define LT_DLLAZY_OR_NOW DL_LAZY
10096 # else
10097 # ifdef RTLD_NOW
10098 # define LT_DLLAZY_OR_NOW RTLD_NOW
10099 # else
10100 # ifdef DL_NOW
10101 # define LT_DLLAZY_OR_NOW DL_NOW
10102 # else
10103 # define LT_DLLAZY_OR_NOW 0
10104 # endif
10105 # endif
10106 # endif
10107 # endif
10108 #endif
10109  
10110 void fnord() { int i=42;}
10111 int main ()
10112 {
10113 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10114 int status = $lt_dlunknown;
10115  
10116 if (self)
10117 {
10118 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10119 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10120 /* dlclose (self); */
10121 }
10122 else
10123 puts (dlerror ());
10124  
10125 return status;
10126 }
10127 _LT_EOF
10128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10129 (eval $ac_link) 2>&5
10130 ac_status=$?
10131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10132 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10133 (./conftest; exit; ) >&5 2>/dev/null
10134 lt_status=$?
10135 case x$lt_status in
10136 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10137 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10138 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10139 esac
10140 else :
10141 # compilation failed
10142 lt_cv_dlopen_self_static=no
10143 fi
10144 fi
10145 rm -fr conftest*
10146  
10147  
10148 fi
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10150 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10151 fi
10152  
10153 CPPFLAGS="$save_CPPFLAGS"
10154 LDFLAGS="$save_LDFLAGS"
10155 LIBS="$save_LIBS"
10156 ;;
10157 esac
10158  
10159 case $lt_cv_dlopen_self in
10160 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10161 *) enable_dlopen_self=unknown ;;
10162 esac
10163  
10164 case $lt_cv_dlopen_self_static in
10165 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10166 *) enable_dlopen_self_static=unknown ;;
10167 esac
10168 fi
10169  
10170  
10171  
10172  
10173  
10174  
10175  
10176  
10177  
10178  
10179  
10180  
10181  
10182  
10183  
10184  
10185  
10186 striplib=
10187 old_striplib=
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10189 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10190 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10191 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10192 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10194 $as_echo "yes" >&6; }
10195 else
10196 # FIXME - insert some real tests, host_os isn't really good enough
10197 case $host_os in
10198 darwin*)
10199 if test -n "$STRIP" ; then
10200 striplib="$STRIP -x"
10201 old_striplib="$STRIP -S"
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10203 $as_echo "yes" >&6; }
10204 else
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10207 fi
10208 ;;
10209 *)
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10212 ;;
10213 esac
10214 fi
10215  
10216  
10217  
10218  
10219  
10220  
10221  
10222  
10223  
10224  
10225  
10226  
10227 # Report which library types will actually be built
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10229 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10231 $as_echo "$can_build_shared" >&6; }
10232  
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10234 $as_echo_n "checking whether to build shared libraries... " >&6; }
10235 test "$can_build_shared" = "no" && enable_shared=no
10236  
10237 # On AIX, shared libraries and static libraries use the same namespace, and
10238 # are all built from PIC.
10239 case $host_os in
10240 aix3*)
10241 test "$enable_shared" = yes && enable_static=no
10242 if test -n "$RANLIB"; then
10243 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10244 postinstall_cmds='$RANLIB $lib'
10245 fi
10246 ;;
10247  
10248 aix[4-9]*)
10249 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10250 test "$enable_shared" = yes && enable_static=no
10251 fi
10252 ;;
10253 esac
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10255 $as_echo "$enable_shared" >&6; }
10256  
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10258 $as_echo_n "checking whether to build static libraries... " >&6; }
10259 # Make sure either enable_shared or enable_static is yes.
10260 test "$enable_shared" = yes || enable_static=yes
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10262 $as_echo "$enable_static" >&6; }
10263  
10264  
10265  
10266  
10267 fi
10268 ac_ext=c
10269 ac_cpp='$CPP $CPPFLAGS'
10270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10273  
10274 CC="$lt_save_CC"
10275  
10276  
10277  
10278  
10279  
10280  
10281  
10282  
10283  
10284  
10285  
10286  
10287  
10288 ac_config_commands="$ac_config_commands libtool"
10289  
10290  
10291  
10292  
10293 # Only expand once:
10294  
10295  
10296  
10297 ac_config_files="$ac_config_files Makefile src/Makefile"
10298  
10299 cat >confcache <<\_ACEOF
10300 # This file is a shell script that caches the results of configure
10301 # tests run on this system so they can be shared between configure
10302 # scripts and configure runs, see configure's option --config-cache.
10303 # It is not useful on other systems. If it contains results you don't
10304 # want to keep, you may remove or edit it.
10305 #
10306 # config.status only pays attention to the cache file if you give it
10307 # the --recheck option to rerun configure.
10308 #
10309 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10310 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10311 # following values.
10312  
10313 _ACEOF
10314  
10315 # The following way of writing the cache mishandles newlines in values,
10316 # but we know of no workaround that is simple, portable, and efficient.
10317 # So, we kill variables containing newlines.
10318 # Ultrix sh set writes to stderr and can't be redirected directly,
10319 # and sets the high bit in the cache file unless we assign to the vars.
10320 (
10321 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10322 eval ac_val=\$$ac_var
10323 case $ac_val in #(
10324 *${as_nl}*)
10325 case $ac_var in #(
10326 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10327 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10328 esac
10329 case $ac_var in #(
10330 _ | IFS | as_nl) ;; #(
10331 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10332 *) { eval $ac_var=; unset $ac_var;} ;;
10333 esac ;;
10334 esac
10335 done
10336  
10337 (set) 2>&1 |
10338 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10339 *${as_nl}ac_space=\ *)
10340 # `set' does not quote correctly, so add quotes: double-quote
10341 # substitution turns \\\\ into \\, and sed turns \\ into \.
10342 sed -n \
10343 "s/'/'\\\\''/g;
10344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10345 ;; #(
10346 *)
10347 # `set' quotes correctly as required by POSIX, so do not add quotes.
10348 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10349 ;;
10350 esac |
10351 sort
10352 ) |
10353 sed '
10354 /^ac_cv_env_/b end
10355 t clear
10356 :clear
10357 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10358 t end
10359 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10360 :end' >>confcache
10361 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10362 if test -w "$cache_file"; then
10363 test "x$cache_file" != "x/dev/null" &&
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10365 $as_echo "$as_me: updating cache $cache_file" >&6;}
10366 cat confcache >$cache_file
10367 else
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10369 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10370 fi
10371 fi
10372 rm -f confcache
10373  
10374 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10375 # Let make expand exec_prefix.
10376 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10377  
10378 DEFS=-DHAVE_CONFIG_H
10379  
10380 ac_libobjs=
10381 ac_ltlibobjs=
10382 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
10383 # 1. Remove the extension, and $U if already installed.
10384 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10385 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10386 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10387 # will be set to the directory where LIBOBJS objects are built.
10388 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10389 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10390 done
10391 LIB@&t@OBJS=$ac_libobjs
10392  
10393 LTLIBOBJS=$ac_ltlibobjs
10394  
10395  
10396 if test -n "$EXEEXT"; then
10397 am__EXEEXT_TRUE=
10398 am__EXEEXT_FALSE='#'
10399 else
10400 am__EXEEXT_TRUE='#'
10401 am__EXEEXT_FALSE=
10402 fi
10403  
10404 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10405 as_fn_error "conditional \"AMDEP\" was never defined.
10406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10407 fi
10408 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10409 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10411 fi
10412  
10413 : ${CONFIG_STATUS=./config.status}
10414 ac_write_fail=0
10415 ac_clean_files_save=$ac_clean_files
10416 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10418 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10419 as_write_fail=0
10420 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10421 #! $SHELL
10422 # Generated by $as_me.
10423 # Run this file to recreate the current configuration.
10424 # Compiler output produced by configure, useful for debugging
10425 # configure, is in config.log if it exists.
10426  
10427 debug=false
10428 ac_cs_recheck=false
10429 ac_cs_silent=false
10430  
10431 SHELL=\${CONFIG_SHELL-$SHELL}
10432 export SHELL
10433 _ASEOF
10434 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10435 ## -------------------- ##
10436 ## M4sh Initialization. ##
10437 ## -------------------- ##
10438  
10439 # Be more Bourne compatible
10440 DUALCASE=1; export DUALCASE # for MKS sh
10441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10442 emulate sh
10443 NULLCMD=:
10444 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10445 # is contrary to our usage. Disable this feature.
10446 alias -g '${1+"$@"}'='"$@"'
10447 setopt NO_GLOB_SUBST
10448 else
10449 case `(set -o) 2>/dev/null` in @%:@(
10450 *posix*) :
10451 set -o posix ;; @%:@(
10452 *) :
10453 ;;
10454 esac
10455 fi
10456  
10457  
10458 as_nl='
10459 '
10460 export as_nl
10461 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10462 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10464 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10465 # Prefer a ksh shell builtin over an external printf program on Solaris,
10466 # but without wasting forks for bash or zsh.
10467 if test -z "$BASH_VERSION$ZSH_VERSION" \
10468 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10469 as_echo='print -r --'
10470 as_echo_n='print -rn --'
10471 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10472 as_echo='printf %s\n'
10473 as_echo_n='printf %s'
10474 else
10475 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10476 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10477 as_echo_n='/usr/ucb/echo -n'
10478 else
10479 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10480 as_echo_n_body='eval
10481 arg=$1;
10482 case $arg in @%:@(
10483 *"$as_nl"*)
10484 expr "X$arg" : "X\\(.*\\)$as_nl";
10485 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10486 esac;
10487 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10488 '
10489 export as_echo_n_body
10490 as_echo_n='sh -c $as_echo_n_body as_echo'
10491 fi
10492 export as_echo_body
10493 as_echo='sh -c $as_echo_body as_echo'
10494 fi
10495  
10496 # The user is always right.
10497 if test "${PATH_SEPARATOR+set}" != set; then
10498 PATH_SEPARATOR=:
10499 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10500 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10501 PATH_SEPARATOR=';'
10502 }
10503 fi
10504  
10505  
10506 # IFS
10507 # We need space, tab and new line, in precisely that order. Quoting is
10508 # there to prevent editors from complaining about space-tab.
10509 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10510 # splitting by setting IFS to empty value.)
10511 IFS=" "" $as_nl"
10512  
10513 # Find who we are. Look in the path if we contain no directory separator.
10514 case $0 in @%:@((
10515 *[\\/]* ) as_myself=$0 ;;
10516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517 for as_dir in $PATH
10518 do
10519 IFS=$as_save_IFS
10520 test -z "$as_dir" && as_dir=.
10521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10522 done
10523 IFS=$as_save_IFS
10524  
10525 ;;
10526 esac
10527 # We did not find ourselves, most probably we were run as `sh COMMAND'
10528 # in which case we are not to be found in the path.
10529 if test "x$as_myself" = x; then
10530 as_myself=$0
10531 fi
10532 if test ! -f "$as_myself"; then
10533 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10534 exit 1
10535 fi
10536  
10537 # Unset variables that we do not need and which cause bugs (e.g. in
10538 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10539 # suppresses any "Segmentation fault" message there. '((' could
10540 # trigger a bug in pdksh 5.2.14.
10541 for as_var in BASH_ENV ENV MAIL MAILPATH
10542 do eval test x\${$as_var+set} = xset \
10543 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10544 done
10545 PS1='$ '
10546 PS2='> '
10547 PS4='+ '
10548  
10549 # NLS nuisances.
10550 LC_ALL=C
10551 export LC_ALL
10552 LANGUAGE=C
10553 export LANGUAGE
10554  
10555 # CDPATH.
10556 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10557  
10558  
10559 @%:@ as_fn_error ERROR [LINENO LOG_FD]
10560 @%:@ ---------------------------------
10561 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10562 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10563 @%:@ script with status $?, using 1 if that was 0.
10564 as_fn_error ()
10565 {
10566 as_status=$?; test $as_status -eq 0 && as_status=1
10567 if test "$3"; then
10568 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10569 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10570 fi
10571 $as_echo "$as_me: error: $1" >&2
10572 as_fn_exit $as_status
10573 } @%:@ as_fn_error
10574  
10575  
10576 @%:@ as_fn_set_status STATUS
10577 @%:@ -----------------------
10578 @%:@ Set $? to STATUS, without forking.
10579 as_fn_set_status ()
10580 {
10581 return $1
10582 } @%:@ as_fn_set_status
10583  
10584 @%:@ as_fn_exit STATUS
10585 @%:@ -----------------
10586 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10587 as_fn_exit ()
10588 {
10589 set +e
10590 as_fn_set_status $1
10591 exit $1
10592 } @%:@ as_fn_exit
10593  
10594 @%:@ as_fn_unset VAR
10595 @%:@ ---------------
10596 @%:@ Portably unset VAR.
10597 as_fn_unset ()
10598 {
10599 { eval $1=; unset $1;}
10600 }
10601 as_unset=as_fn_unset
10602 @%:@ as_fn_append VAR VALUE
10603 @%:@ ----------------------
10604 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
10605 @%:@ advantage of any shell optimizations that allow amortized linear growth over
10606 @%:@ repeated appends, instead of the typical quadratic growth present in naive
10607 @%:@ implementations.
10608 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10609 eval 'as_fn_append ()
10610 {
10611 eval $1+=\$2
10612 }'
10613 else
10614 as_fn_append ()
10615 {
10616 eval $1=\$$1\$2
10617 }
10618 fi # as_fn_append
10619  
10620 @%:@ as_fn_arith ARG...
10621 @%:@ ------------------
10622 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
10623 @%:@ global $as_val. Take advantage of shells that can avoid forks. The arguments
10624 @%:@ must be portable across $(()) and expr.
10625 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10626 eval 'as_fn_arith ()
10627 {
10628 as_val=$(( $* ))
10629 }'
10630 else
10631 as_fn_arith ()
10632 {
10633 as_val=`expr "$@" || test $? -eq 1`
10634 }
10635 fi # as_fn_arith
10636  
10637  
10638 if expr a : '\(a\)' >/dev/null 2>&1 &&
10639 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10640 as_expr=expr
10641 else
10642 as_expr=false
10643 fi
10644  
10645 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10646 as_basename=basename
10647 else
10648 as_basename=false
10649 fi
10650  
10651 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10652 as_dirname=dirname
10653 else
10654 as_dirname=false
10655 fi
10656  
10657 as_me=`$as_basename -- "$0" ||
10658 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10659 X"$0" : 'X\(//\)$' \| \
10660 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10661 $as_echo X/"$0" |
10662 sed '/^.*\/\([^/][^/]*\)\/*$/{
10663 s//\1/
10664 q
10665 }
10666 /^X\/\(\/\/\)$/{
10667 s//\1/
10668 q
10669 }
10670 /^X\/\(\/\).*/{
10671 s//\1/
10672 q
10673 }
10674 s/.*/./; q'`
10675  
10676 # Avoid depending upon Character Ranges.
10677 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10678 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10679 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10680 as_cr_digits='0123456789'
10681 as_cr_alnum=$as_cr_Letters$as_cr_digits
10682  
10683 ECHO_C= ECHO_N= ECHO_T=
10684 case `echo -n x` in @%:@(((((
10685 -n*)
10686 case `echo 'xy\c'` in
10687 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10688 xy) ECHO_C='\c';;
10689 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10690 ECHO_T=' ';;
10691 esac;;
10692 *)
10693 ECHO_N='-n';;
10694 esac
10695  
10696 rm -f conf$$ conf$$.exe conf$$.file
10697 if test -d conf$$.dir; then
10698 rm -f conf$$.dir/conf$$.file
10699 else
10700 rm -f conf$$.dir
10701 mkdir conf$$.dir 2>/dev/null
10702 fi
10703 if (echo >conf$$.file) 2>/dev/null; then
10704 if ln -s conf$$.file conf$$ 2>/dev/null; then
10705 as_ln_s='ln -s'
10706 # ... but there are two gotchas:
10707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10709 # In both cases, we have to default to `cp -p'.
10710 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10711 as_ln_s='cp -p'
10712 elif ln conf$$.file conf$$ 2>/dev/null; then
10713 as_ln_s=ln
10714 else
10715 as_ln_s='cp -p'
10716 fi
10717 else
10718 as_ln_s='cp -p'
10719 fi
10720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10721 rmdir conf$$.dir 2>/dev/null
10722  
10723  
10724 @%:@ as_fn_mkdir_p
10725 @%:@ -------------
10726 @%:@ Create "$as_dir" as a directory, including parents if necessary.
10727 as_fn_mkdir_p ()
10728 {
10729  
10730 case $as_dir in #(
10731 -*) as_dir=./$as_dir;;
10732 esac
10733 test -d "$as_dir" || eval $as_mkdir_p || {
10734 as_dirs=
10735 while :; do
10736 case $as_dir in #(
10737 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10738 *) as_qdir=$as_dir;;
10739 esac
10740 as_dirs="'$as_qdir' $as_dirs"
10741 as_dir=`$as_dirname -- "$as_dir" ||
10742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10743 X"$as_dir" : 'X\(//\)[^/]' \| \
10744 X"$as_dir" : 'X\(//\)$' \| \
10745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10746 $as_echo X"$as_dir" |
10747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10748 s//\1/
10749 q
10750 }
10751 /^X\(\/\/\)[^/].*/{
10752 s//\1/
10753 q
10754 }
10755 /^X\(\/\/\)$/{
10756 s//\1/
10757 q
10758 }
10759 /^X\(\/\).*/{
10760 s//\1/
10761 q
10762 }
10763 s/.*/./; q'`
10764 test -d "$as_dir" && break
10765 done
10766 test -z "$as_dirs" || eval "mkdir $as_dirs"
10767 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10768  
10769  
10770 } @%:@ as_fn_mkdir_p
10771 if mkdir -p . 2>/dev/null; then
10772 as_mkdir_p='mkdir -p "$as_dir"'
10773 else
10774 test -d ./-p && rmdir ./-p
10775 as_mkdir_p=false
10776 fi
10777  
10778 if test -x / >/dev/null 2>&1; then
10779 as_test_x='test -x'
10780 else
10781 if ls -dL / >/dev/null 2>&1; then
10782 as_ls_L_option=L
10783 else
10784 as_ls_L_option=
10785 fi
10786 as_test_x='
10787 eval sh -c '\''
10788 if test -d "$1"; then
10789 test -d "$1/.";
10790 else
10791 case $1 in @%:@(
10792 -*)set "./$1";;
10793 esac;
10794 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
10795 ???[sx]*):;;*)false;;esac;fi
10796 '\'' sh
10797 '
10798 fi
10799 as_executable_p=$as_test_x
10800  
10801 # Sed expression to map a string onto a valid CPP name.
10802 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10803  
10804 # Sed expression to map a string onto a valid variable name.
10805 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10806  
10807  
10808 exec 6>&1
10809 ## ----------------------------------- ##
10810 ## Main body of $CONFIG_STATUS script. ##
10811 ## ----------------------------------- ##
10812 _ASEOF
10813 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10814  
10815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10816 # Save the log message, to keep $0 and so on meaningful, and to
10817 # report actual input values of CONFIG_FILES etc. instead of their
10818 # values after options handling.
10819 ac_log="
10820 This file was extended by $as_me, which was
10821 generated by GNU Autoconf 2.64. Invocation command line was
10822  
10823 CONFIG_FILES = $CONFIG_FILES
10824 CONFIG_HEADERS = $CONFIG_HEADERS
10825 CONFIG_LINKS = $CONFIG_LINKS
10826 CONFIG_COMMANDS = $CONFIG_COMMANDS
10827 $ $0 $@
10828  
10829 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10830 "
10831  
10832 _ACEOF
10833  
10834 case $ac_config_files in *"
10835 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10836 esac
10837  
10838 case $ac_config_headers in *"
10839 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10840 esac
10841  
10842  
10843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10844 # Files that config.status was made for.
10845 config_files="$ac_config_files"
10846 config_headers="$ac_config_headers"
10847 config_commands="$ac_config_commands"
10848  
10849 _ACEOF
10850  
10851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10852 ac_cs_usage="\
10853 \`$as_me' instantiates files and other configuration actions
10854 from templates according to the current configuration. Unless the files
10855 and actions are specified as TAGs, all are instantiated by default.
10856  
10857 Usage: $0 [OPTION]... [TAG]...
10858  
10859 -h, --help print this help, then exit
10860 -V, --version print version number and configuration settings, then exit
10861 -q, --quiet, --silent
10862 do not print progress messages
10863 -d, --debug don't remove temporary files
10864 --recheck update $as_me by reconfiguring in the same conditions
10865 --file=FILE[:TEMPLATE]
10866 instantiate the configuration file FILE
10867 --header=FILE[:TEMPLATE]
10868 instantiate the configuration header FILE
10869  
10870 Configuration files:
10871 $config_files
10872  
10873 Configuration headers:
10874 $config_headers
10875  
10876 Configuration commands:
10877 $config_commands
10878  
10879 Report bugs to the package provider."
10880  
10881 _ACEOF
10882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10883 ac_cs_version="\\
10884 config.status
10885 configured by $0, generated by GNU Autoconf 2.64,
10886 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10887  
10888 Copyright (C) 2009 Free Software Foundation, Inc.
10889 This config.status script is free software; the Free Software Foundation
10890 gives unlimited permission to copy, distribute and modify it."
10891  
10892 ac_pwd='$ac_pwd'
10893 srcdir='$srcdir'
10894 INSTALL='$INSTALL'
10895 MKDIR_P='$MKDIR_P'
10896 AWK='$AWK'
10897 test -n "\$AWK" || AWK=awk
10898 _ACEOF
10899  
10900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10901 # The default lists apply if the user does not specify any file.
10902 ac_need_defaults=:
10903 while test $# != 0
10904 do
10905 case $1 in
10906 --*=*)
10907 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10908 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10909 ac_shift=:
10910 ;;
10911 *)
10912 ac_option=$1
10913 ac_optarg=$2
10914 ac_shift=shift
10915 ;;
10916 esac
10917  
10918 case $ac_option in
10919 # Handling of the options.
10920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10921 ac_cs_recheck=: ;;
10922 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10923 $as_echo "$ac_cs_version"; exit ;;
10924 --debug | --debu | --deb | --de | --d | -d )
10925 debug=: ;;
10926 --file | --fil | --fi | --f )
10927 $ac_shift
10928 case $ac_optarg in
10929 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10930 esac
10931 as_fn_append CONFIG_FILES " '$ac_optarg'"
10932 ac_need_defaults=false;;
10933 --header | --heade | --head | --hea )
10934 $ac_shift
10935 case $ac_optarg in
10936 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10937 esac
10938 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10939 ac_need_defaults=false;;
10940 --he | --h)
10941 # Conflict between --help and --header
10942 as_fn_error "ambiguous option: \`$1'
10943 Try \`$0 --help' for more information.";;
10944 --help | --hel | -h )
10945 $as_echo "$ac_cs_usage"; exit ;;
10946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10947 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10948 ac_cs_silent=: ;;
10949  
10950 # This is an error.
10951 -*) as_fn_error "unrecognized option: \`$1'
10952 Try \`$0 --help' for more information." ;;
10953  
10954 *) as_fn_append ac_config_targets " $1"
10955 ac_need_defaults=false ;;
10956  
10957 esac
10958 shift
10959 done
10960  
10961 ac_configure_extra_args=
10962  
10963 if $ac_cs_silent; then
10964 exec 6>/dev/null
10965 ac_configure_extra_args="$ac_configure_extra_args --silent"
10966 fi
10967  
10968 _ACEOF
10969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10970 if \$ac_cs_recheck; then
10971 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10972 shift
10973 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10974 CONFIG_SHELL='$SHELL'
10975 export CONFIG_SHELL
10976 exec "\$@"
10977 fi
10978  
10979 _ACEOF
10980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10981 exec 5>>config.log
10982 {
10983 echo
10984 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
10985 @%:@@%:@ Running $as_me. @%:@@%:@
10986 _ASBOX
10987 $as_echo "$ac_log"
10988 } >&5
10989  
10990 _ACEOF
10991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10992 #
10993 # INIT-COMMANDS
10994 #
10995 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10996  
10997  
10998 # The HP-UX ksh and POSIX shell print the target directory to stdout
10999 # if CDPATH is set.
11000 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11001  
11002 sed_quote_subst='$sed_quote_subst'
11003 double_quote_subst='$double_quote_subst'
11004 delay_variable_subst='$delay_variable_subst'
11005 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11006 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11007 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11008 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11009 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11010 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11011 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11012 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11013 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11014 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11015 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11016 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11017 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11018 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11019 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11020 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11021 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11022 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11023 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11024 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11025 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11026 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11027 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11028 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11029 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11030 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11031 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11032 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11033 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11034 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11035 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11036 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11037 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11038 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11039 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11040 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11041 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11042 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11043 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11044 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11045 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11046 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11047 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11048 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11049 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"`'
11050 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"`'
11051 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11052 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11053 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11054 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11055 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11056 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11057 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11058 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11059 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11060 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11061 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11062 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11063 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11064 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11065 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11066 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11067 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11068 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11069 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11070 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11071 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11072 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11073 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11074 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11075 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11076 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11077 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11078 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11079 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11080 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11081 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11082 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11083 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11084 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11085 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11086 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11087 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11088 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11089 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11090 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11091 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11092 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11093 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11094 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11095 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11096 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11097 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11098 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11099 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11100 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11101 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11102 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11103 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11104 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11105 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11106 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11107 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11108 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11109 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11110 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11111 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11112 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11113 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11114 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11115 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11116 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11117 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11118 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11119 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11120 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11121 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11122 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11123  
11124 LTCC='$LTCC'
11125 LTCFLAGS='$LTCFLAGS'
11126 compiler='$compiler_DEFAULT'
11127  
11128 # Quote evaled strings.
11129 for var in SED \
11130 GREP \
11131 EGREP \
11132 FGREP \
11133 LD \
11134 NM \
11135 LN_S \
11136 lt_SP2NL \
11137 lt_NL2SP \
11138 reload_flag \
11139 OBJDUMP \
11140 deplibs_check_method \
11141 file_magic_cmd \
11142 AR \
11143 AR_FLAGS \
11144 STRIP \
11145 RANLIB \
11146 CC \
11147 CFLAGS \
11148 compiler \
11149 lt_cv_sys_global_symbol_pipe \
11150 lt_cv_sys_global_symbol_to_cdecl \
11151 lt_cv_sys_global_symbol_to_c_name_address \
11152 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11153 SHELL \
11154 ECHO \
11155 lt_prog_compiler_no_builtin_flag \
11156 lt_prog_compiler_wl \
11157 lt_prog_compiler_pic \
11158 lt_prog_compiler_static \
11159 lt_cv_prog_compiler_c_o \
11160 need_locks \
11161 DSYMUTIL \
11162 NMEDIT \
11163 LIPO \
11164 OTOOL \
11165 OTOOL64 \
11166 shrext_cmds \
11167 export_dynamic_flag_spec \
11168 whole_archive_flag_spec \
11169 compiler_needs_object \
11170 with_gnu_ld \
11171 allow_undefined_flag \
11172 no_undefined_flag \
11173 hardcode_libdir_flag_spec \
11174 hardcode_libdir_flag_spec_ld \
11175 hardcode_libdir_separator \
11176 fix_srcfile_path \
11177 exclude_expsyms \
11178 include_expsyms \
11179 file_list_spec \
11180 variables_saved_for_relink \
11181 libname_spec \
11182 library_names_spec \
11183 soname_spec \
11184 finish_eval \
11185 old_striplib \
11186 striplib; do
11187 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11188 *[\\\\\\\`\\"\\\$]*)
11189 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11190 ;;
11191 *)
11192 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11193 ;;
11194 esac
11195 done
11196  
11197 # Double-quote double-evaled strings.
11198 for var in reload_cmds \
11199 old_postinstall_cmds \
11200 old_postuninstall_cmds \
11201 old_archive_cmds \
11202 extract_expsyms_cmds \
11203 old_archive_from_new_cmds \
11204 old_archive_from_expsyms_cmds \
11205 archive_cmds \
11206 archive_expsym_cmds \
11207 module_cmds \
11208 module_expsym_cmds \
11209 export_symbols_cmds \
11210 prelink_cmds \
11211 postinstall_cmds \
11212 postuninstall_cmds \
11213 finish_cmds \
11214 sys_lib_search_path_spec \
11215 sys_lib_dlsearch_path_spec; do
11216 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11217 *[\\\\\\\`\\"\\\$]*)
11218 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11219 ;;
11220 *)
11221 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11222 ;;
11223 esac
11224 done
11225  
11226 # Fix-up fallback echo if it was mangled by the above quoting rules.
11227 case \$lt_ECHO in
11228 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11229 ;;
11230 esac
11231  
11232 ac_aux_dir='$ac_aux_dir'
11233 xsi_shell='$xsi_shell'
11234 lt_shell_append='$lt_shell_append'
11235  
11236 # See if we are running on zsh, and set the options which allow our
11237 # commands through without removal of \ escapes INIT.
11238 if test -n "\${ZSH_VERSION+set}" ; then
11239 setopt NO_GLOB_SUBST
11240 fi
11241  
11242  
11243 PACKAGE='$PACKAGE'
11244 VERSION='$VERSION'
11245 TIMESTAMP='$TIMESTAMP'
11246 RM='$RM'
11247 ofile='$ofile'
11248  
11249  
11250  
11251  
11252 _ACEOF
11253  
11254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11255  
11256 # Handling of arguments.
11257 for ac_config_target in $ac_config_targets
11258 do
11259 case $ac_config_target in
11260 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11261 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11262 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11263 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11264 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11265  
11266 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11267 esac
11268 done
11269  
11270  
11271 # If the user did not use the arguments to specify the items to instantiate,
11272 # then the envvar interface is used. Set only those that are not.
11273 # We use the long form for the default assignment because of an extremely
11274 # bizarre bug on SunOS 4.1.3.
11275 if $ac_need_defaults; then
11276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11279 fi
11280  
11281 # Have a temporary directory for convenience. Make it in the build tree
11282 # simply because there is no reason against having it here, and in addition,
11283 # creating and moving files from /tmp can sometimes cause problems.
11284 # Hook for its removal unless debugging.
11285 # Note that there is a small window in which the directory will not be cleaned:
11286 # after its creation but before its name has been assigned to `$tmp'.
11287 $debug ||
11288 {
11289 tmp=
11290 trap 'exit_status=$?
11291 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11292 ' 0
11293 trap 'as_fn_exit 1' 1 2 13 15
11294 }
11295 # Create a (secure) tmp directory for tmp files.
11296  
11297 {
11298 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11299 test -n "$tmp" && test -d "$tmp"
11300 } ||
11301 {
11302 tmp=./conf$$-$RANDOM
11303 (umask 077 && mkdir "$tmp")
11304 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11305  
11306 # Set up the scripts for CONFIG_FILES section.
11307 # No need to generate them if there are no CONFIG_FILES.
11308 # This happens for instance with `./config.status config.h'.
11309 if test -n "$CONFIG_FILES"; then
11310  
11311  
11312 ac_cr=`echo X | tr X '\015'`
11313 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11314 # But we know of no other shell where ac_cr would be empty at this
11315 # point, so we can use a bashism as a fallback.
11316 if test "x$ac_cr" = x; then
11317 eval ac_cr=\$\'\\r\'
11318 fi
11319 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11320 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11321 ac_cs_awk_cr='\r'
11322 else
11323 ac_cs_awk_cr=$ac_cr
11324 fi
11325  
11326 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11327 _ACEOF
11328  
11329  
11330 {
11331 echo "cat >conf$$subs.awk <<_ACEOF" &&
11332 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11333 echo "_ACEOF"
11334 } >conf$$subs.sh ||
11335 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11336 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11337 ac_delim='%!_!# '
11338 for ac_last_try in false false false false false :; do
11339 . ./conf$$subs.sh ||
11340 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11341  
11342 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11343 if test $ac_delim_n = $ac_delim_num; then
11344 break
11345 elif $ac_last_try; then
11346 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11347 else
11348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11349 fi
11350 done
11351 rm -f conf$$subs.sh
11352  
11353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11354 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11355 _ACEOF
11356 sed -n '
11357 h
11358 s/^/S["/; s/!.*/"]=/
11359 p
11360 g
11361 s/^[^!]*!//
11362 :repl
11363 t repl
11364 s/'"$ac_delim"'$//
11365 t delim
11366 :nl
11367 h
11368 s/\(.\{148\}\).*/\1/
11369 t more1
11370 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11371 p
11372 n
11373 b repl
11374 :more1
11375 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11376 p
11377 g
11378 s/.\{148\}//
11379 t nl
11380 :delim
11381 h
11382 s/\(.\{148\}\).*/\1/
11383 t more2
11384 s/["\\]/\\&/g; s/^/"/; s/$/"/
11385 p
11386 b
11387 :more2
11388 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11389 p
11390 g
11391 s/.\{148\}//
11392 t delim
11393 ' <conf$$subs.awk | sed '
11394 /^[^""]/{
11395 N
11396 s/\n//
11397 }
11398 ' >>$CONFIG_STATUS || ac_write_fail=1
11399 rm -f conf$$subs.awk
11400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11401 _ACAWK
11402 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11403 for (key in S) S_is_set[key] = 1
11404 FS = ""
11405  
11406 }
11407 {
11408 line = $ 0
11409 nfields = split(line, field, "@")
11410 substed = 0
11411 len = length(field[1])
11412 for (i = 2; i < nfields; i++) {
11413 key = field[i]
11414 keylen = length(key)
11415 if (S_is_set[key]) {
11416 value = S[key]
11417 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11418 len += length(value) + length(field[++i])
11419 substed = 1
11420 } else
11421 len += 1 + keylen
11422 }
11423  
11424 print line
11425 }
11426  
11427 _ACAWK
11428 _ACEOF
11429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11430 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11431 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11432 else
11433 cat
11434 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11435 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11436 _ACEOF
11437  
11438 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11439 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11440 # trailing colons and then remove the whole line if VPATH becomes empty
11441 # (actually we leave an empty line to preserve line numbers).
11442 if test "x$srcdir" = x.; then
11443 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11444 s/:*\$(srcdir):*/:/
11445 s/:*\${srcdir}:*/:/
11446 s/:*@srcdir@:*/:/
11447 s/^\([^=]*=[ ]*\):*/\1/
11448 s/:*$//
11449 s/^[^=]*=[ ]*$//
11450 }'
11451 fi
11452  
11453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11454 fi # test -n "$CONFIG_FILES"
11455  
11456 # Set up the scripts for CONFIG_HEADERS section.
11457 # No need to generate them if there are no CONFIG_HEADERS.
11458 # This happens for instance with `./config.status Makefile'.
11459 if test -n "$CONFIG_HEADERS"; then
11460 cat >"$tmp/defines.awk" <<\_ACAWK ||
11461 BEGIN {
11462 _ACEOF
11463  
11464 # Transform confdefs.h into an awk script `defines.awk', embedded as
11465 # here-document in config.status, that substitutes the proper values into
11466 # config.h.in to produce config.h.
11467  
11468 # Create a delimiter string that does not exist in confdefs.h, to ease
11469 # handling of long lines.
11470 ac_delim='%!_!# '
11471 for ac_last_try in false false :; do
11472 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11473 if test -z "$ac_t"; then
11474 break
11475 elif $ac_last_try; then
11476 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11477 else
11478 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11479 fi
11480 done
11481  
11482 # For the awk script, D is an array of macro values keyed by name,
11483 # likewise P contains macro parameters if any. Preserve backslash
11484 # newline sequences.
11485  
11486 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11487 sed -n '
11488 s/.\{148\}/&'"$ac_delim"'/g
11489 t rset
11490 :rset
11491 s/^[ ]*#[ ]*define[ ][ ]*/ /
11492 t def
11493 d
11494 :def
11495 s/\\$//
11496 t bsnl
11497 s/["\\]/\\&/g
11498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11499 D["\1"]=" \3"/p
11500 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11501 d
11502 :bsnl
11503 s/["\\]/\\&/g
11504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11505 D["\1"]=" \3\\\\\\n"\\/p
11506 t cont
11507 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11508 t cont
11509 d
11510 :cont
11511 n
11512 s/.\{148\}/&'"$ac_delim"'/g
11513 t clear
11514 :clear
11515 s/\\$//
11516 t bsnlc
11517 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11518 d
11519 :bsnlc
11520 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11521 b cont
11522 ' <confdefs.h | sed '
11523 s/'"$ac_delim"'/"\\\
11524 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11525  
11526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11527 for (key in D) D_is_set[key] = 1
11528 FS = ""
11529 }
11530 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11531 line = \$ 0
11532 split(line, arg, " ")
11533 if (arg[1] == "#") {
11534 defundef = arg[2]
11535 mac1 = arg[3]
11536 } else {
11537 defundef = substr(arg[1], 2)
11538 mac1 = arg[2]
11539 }
11540 split(mac1, mac2, "(") #)
11541 macro = mac2[1]
11542 prefix = substr(line, 1, index(line, defundef) - 1)
11543 if (D_is_set[macro]) {
11544 # Preserve the white space surrounding the "#".
11545 print prefix "define", macro P[macro] D[macro]
11546 next
11547 } else {
11548 # Replace #undef with comments. This is necessary, for example,
11549 # in the case of _POSIX_SOURCE, which is predefined and required
11550 # on some systems where configure will not decide to define it.
11551 if (defundef == "undef") {
11552 print "/*", prefix defundef, macro, "*/"
11553 next
11554 }
11555 }
11556 }
11557 { print }
11558 _ACAWK
11559 _ACEOF
11560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11561 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11562 fi # test -n "$CONFIG_HEADERS"
11563  
11564  
11565 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11566 shift
11567 for ac_tag
11568 do
11569 case $ac_tag in
11570 :[FHLC]) ac_mode=$ac_tag; continue;;
11571 esac
11572 case $ac_mode$ac_tag in
11573 :[FHL]*:*);;
11574 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11575 :[FH]-) ac_tag=-:-;;
11576 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11577 esac
11578 ac_save_IFS=$IFS
11579 IFS=:
11580 set x $ac_tag
11581 IFS=$ac_save_IFS
11582 shift
11583 ac_file=$1
11584 shift
11585  
11586 case $ac_mode in
11587 :L) ac_source=$1;;
11588 :[FH])
11589 ac_file_inputs=
11590 for ac_f
11591 do
11592 case $ac_f in
11593 -) ac_f="$tmp/stdin";;
11594 *) # Look for the file first in the build tree, then in the source tree
11595 # (if the path is not absolute). The absolute path cannot be DOS-style,
11596 # because $ac_f cannot contain `:'.
11597 test -f "$ac_f" ||
11598 case $ac_f in
11599 [\\/$]*) false;;
11600 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11601 esac ||
11602 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11603 esac
11604 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11605 as_fn_append ac_file_inputs " '$ac_f'"
11606 done
11607  
11608 # Let's still pretend it is `configure' which instantiates (i.e., don't
11609 # use $as_me), people would be surprised to read:
11610 # /* config.h. Generated by config.status. */
11611 configure_input='Generated from '`
11612 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11613 `' by configure.'
11614 if test x"$ac_file" != x-; then
11615 configure_input="$ac_file. $configure_input"
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11617 $as_echo "$as_me: creating $ac_file" >&6;}
11618 fi
11619 # Neutralize special characters interpreted by sed in replacement strings.
11620 case $configure_input in #(
11621 *\&* | *\|* | *\\* )
11622 ac_sed_conf_input=`$as_echo "$configure_input" |
11623 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11624 *) ac_sed_conf_input=$configure_input;;
11625 esac
11626  
11627 case $ac_tag in
11628 *:-:* | *:-) cat >"$tmp/stdin" \
11629 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
11630 esac
11631 ;;
11632 esac
11633  
11634 ac_dir=`$as_dirname -- "$ac_file" ||
11635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11636 X"$ac_file" : 'X\(//\)[^/]' \| \
11637 X"$ac_file" : 'X\(//\)$' \| \
11638 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11639 $as_echo X"$ac_file" |
11640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11641 s//\1/
11642 q
11643 }
11644 /^X\(\/\/\)[^/].*/{
11645 s//\1/
11646 q
11647 }
11648 /^X\(\/\/\)$/{
11649 s//\1/
11650 q
11651 }
11652 /^X\(\/\).*/{
11653 s//\1/
11654 q
11655 }
11656 s/.*/./; q'`
11657 as_dir="$ac_dir"; as_fn_mkdir_p
11658 ac_builddir=.
11659  
11660 case "$ac_dir" in
11661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11662 *)
11663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11664 # A ".." for each directory in $ac_dir_suffix.
11665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11666 case $ac_top_builddir_sub in
11667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11669 esac ;;
11670 esac
11671 ac_abs_top_builddir=$ac_pwd
11672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11673 # for backward compatibility:
11674 ac_top_builddir=$ac_top_build_prefix
11675  
11676 case $srcdir in
11677 .) # We are building in place.
11678 ac_srcdir=.
11679 ac_top_srcdir=$ac_top_builddir_sub
11680 ac_abs_top_srcdir=$ac_pwd ;;
11681 [\\/]* | ?:[\\/]* ) # Absolute name.
11682 ac_srcdir=$srcdir$ac_dir_suffix;
11683 ac_top_srcdir=$srcdir
11684 ac_abs_top_srcdir=$srcdir ;;
11685 *) # Relative name.
11686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11687 ac_top_srcdir=$ac_top_build_prefix$srcdir
11688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11689 esac
11690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11691  
11692  
11693 case $ac_mode in
11694 :F)
11695 #
11696 # CONFIG_FILE
11697 #
11698  
11699 case $INSTALL in
11700 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11701 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11702 esac
11703 ac_MKDIR_P=$MKDIR_P
11704 case $MKDIR_P in
11705 [\\/$]* | ?:[\\/]* ) ;;
11706 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11707 esac
11708 _ACEOF
11709  
11710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11711 # If the template does not know about datarootdir, expand it.
11712 # FIXME: This hack should be removed a few years after 2.60.
11713 ac_datarootdir_hack=; ac_datarootdir_seen=
11714 ac_sed_dataroot='
11715 /datarootdir/ {
11716 p
11717 q
11718 }
11719 /@datadir@/p
11720 /@docdir@/p
11721 /@infodir@/p
11722 /@localedir@/p
11723 /@mandir@/p'
11724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11725 *datarootdir*) ac_datarootdir_seen=yes;;
11726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11729 _ACEOF
11730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11731 ac_datarootdir_hack='
11732 s&@datadir@&$datadir&g
11733 s&@docdir@&$docdir&g
11734 s&@infodir@&$infodir&g
11735 s&@localedir@&$localedir&g
11736 s&@mandir@&$mandir&g
11737 s&\\\${datarootdir}&$datarootdir&g' ;;
11738 esac
11739 _ACEOF
11740  
11741 # Neutralize VPATH when `$srcdir' = `.'.
11742 # Shell code in configure.ac might set extrasub.
11743 # FIXME: do we really want to maintain this feature?
11744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11745 ac_sed_extra="$ac_vpsub
11746 $extrasub
11747 _ACEOF
11748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11749 :t
11750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11751 s|@configure_input@|$ac_sed_conf_input|;t t
11752 s&@top_builddir@&$ac_top_builddir_sub&;t t
11753 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11754 s&@srcdir@&$ac_srcdir&;t t
11755 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11756 s&@top_srcdir@&$ac_top_srcdir&;t t
11757 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11758 s&@builddir@&$ac_builddir&;t t
11759 s&@abs_builddir@&$ac_abs_builddir&;t t
11760 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11761 s&@INSTALL@&$ac_INSTALL&;t t
11762 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11763 $ac_datarootdir_hack
11764 "
11765 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11766 || as_fn_error "could not create $ac_file" "$LINENO" 5
11767  
11768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11769 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11772 which seems to be undefined. Please make sure it is defined." >&5
11773 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11774 which seems to be undefined. Please make sure it is defined." >&2;}
11775  
11776 rm -f "$tmp/stdin"
11777 case $ac_file in
11778 -) cat "$tmp/out" && rm -f "$tmp/out";;
11779 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11780 esac \
11781 || as_fn_error "could not create $ac_file" "$LINENO" 5
11782 ;;
11783 :H)
11784 #
11785 # CONFIG_HEADER
11786 #
11787 if test x"$ac_file" != x-; then
11788 {
11789 $as_echo "/* $configure_input */" \
11790 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11791 } >"$tmp/config.h" \
11792 || as_fn_error "could not create $ac_file" "$LINENO" 5
11793 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11795 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11796 else
11797 rm -f "$ac_file"
11798 mv "$tmp/config.h" "$ac_file" \
11799 || as_fn_error "could not create $ac_file" "$LINENO" 5
11800 fi
11801 else
11802 $as_echo "/* $configure_input */" \
11803 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11804 || as_fn_error "could not create -" "$LINENO" 5
11805 fi
11806 # Compute "$ac_file"'s index in $config_headers.
11807 _am_arg="$ac_file"
11808 _am_stamp_count=1
11809 for _am_header in $config_headers :; do
11810 case $_am_header in
11811 $_am_arg | $_am_arg:* )
11812 break ;;
11813 * )
11814 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11815 esac
11816 done
11817 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11818 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11819 X"$_am_arg" : 'X\(//\)[^/]' \| \
11820 X"$_am_arg" : 'X\(//\)$' \| \
11821 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11822 $as_echo X"$_am_arg" |
11823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11824 s//\1/
11825 q
11826 }
11827 /^X\(\/\/\)[^/].*/{
11828 s//\1/
11829 q
11830 }
11831 /^X\(\/\/\)$/{
11832 s//\1/
11833 q
11834 }
11835 /^X\(\/\).*/{
11836 s//\1/
11837 q
11838 }
11839 s/.*/./; q'`/stamp-h$_am_stamp_count
11840 ;;
11841  
11842 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11843 $as_echo "$as_me: executing $ac_file commands" >&6;}
11844 ;;
11845 esac
11846  
11847  
11848 case $ac_file$ac_mode in
11849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11850 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11851 # are listed without --file. Let's play safe and only enable the eval
11852 # if we detect the quoting.
11853 case $CONFIG_FILES in
11854 *\'*) eval set x "$CONFIG_FILES" ;;
11855 *) set x $CONFIG_FILES ;;
11856 esac
11857 shift
11858 for mf
11859 do
11860 # Strip MF so we end up with the name of the file.
11861 mf=`echo "$mf" | sed -e 's/:.*$//'`
11862 # Check whether this is an Automake generated Makefile or not.
11863 # We used to match only the files named `Makefile.in', but
11864 # some people rename them; so instead we look at the file content.
11865 # Grep'ing the first line is not enough: some people post-process
11866 # each Makefile.in and add a new line on top of each file to say so.
11867 # Grep'ing the whole file is not good either: AIX grep has a line
11868 # limit of 2048, but all sed's we know have understand at least 4000.
11869 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11870 dirpart=`$as_dirname -- "$mf" ||
11871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11872 X"$mf" : 'X\(//\)[^/]' \| \
11873 X"$mf" : 'X\(//\)$' \| \
11874 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11875 $as_echo X"$mf" |
11876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11877 s//\1/
11878 q
11879 }
11880 /^X\(\/\/\)[^/].*/{
11881 s//\1/
11882 q
11883 }
11884 /^X\(\/\/\)$/{
11885 s//\1/
11886 q
11887 }
11888 /^X\(\/\).*/{
11889 s//\1/
11890 q
11891 }
11892 s/.*/./; q'`
11893 else
11894 continue
11895 fi
11896 # Extract the definition of DEPDIR, am__include, and am__quote
11897 # from the Makefile without running `make'.
11898 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11899 test -z "$DEPDIR" && continue
11900 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11901 test -z "am__include" && continue
11902 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11903 # When using ansi2knr, U may be empty or an underscore; expand it
11904 U=`sed -n 's/^U = //p' < "$mf"`
11905 # Find all dependency output files, they are included files with
11906 # $(DEPDIR) in their names. We invoke sed twice because it is the
11907 # simplest approach to changing $(DEPDIR) to its actual value in the
11908 # expansion.
11909 for file in `sed -n "
11910 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11911 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11912 # Make sure the directory exists.
11913 test -f "$dirpart/$file" && continue
11914 fdir=`$as_dirname -- "$file" ||
11915 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11916 X"$file" : 'X\(//\)[^/]' \| \
11917 X"$file" : 'X\(//\)$' \| \
11918 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11919 $as_echo X"$file" |
11920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11921 s//\1/
11922 q
11923 }
11924 /^X\(\/\/\)[^/].*/{
11925 s//\1/
11926 q
11927 }
11928 /^X\(\/\/\)$/{
11929 s//\1/
11930 q
11931 }
11932 /^X\(\/\).*/{
11933 s//\1/
11934 q
11935 }
11936 s/.*/./; q'`
11937 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11938 # echo "creating $dirpart/$file"
11939 echo '# dummy' > "$dirpart/$file"
11940 done
11941 done
11942 }
11943 ;;
11944 "libtool":C)
11945  
11946 # See if we are running on zsh, and set the options which allow our
11947 # commands through without removal of \ escapes.
11948 if test -n "${ZSH_VERSION+set}" ; then
11949 setopt NO_GLOB_SUBST
11950 fi
11951  
11952 cfgfile="${ofile}T"
11953 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
11954 $RM "$cfgfile"
11955  
11956 cat <<_LT_EOF >> "$cfgfile"
11957 #! $SHELL
11958  
11959 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11960 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
11961 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11962 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11963 #
11964 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
11965 # 2006, 2007, 2008 Free Software Foundation, Inc.
11966 # Written by Gordon Matzigkeit, 1996
11967 #
11968 # This file is part of GNU Libtool.
11969 #
11970 # GNU Libtool is free software; you can redistribute it and/or
11971 # modify it under the terms of the GNU General Public License as
11972 # published by the Free Software Foundation; either version 2 of
11973 # the License, or (at your option) any later version.
11974 #
11975 # As a special exception to the GNU General Public License,
11976 # if you distribute this file as part of a program or library that
11977 # is built using GNU Libtool, you may include this file under the
11978 # same distribution terms that you use for the rest of that program.
11979 #
11980 # GNU Libtool is distributed in the hope that it will be useful,
11981 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11982 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11983 # GNU General Public License for more details.
11984 #
11985 # You should have received a copy of the GNU General Public License
11986 # along with GNU Libtool; see the file COPYING. If not, a copy
11987 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
11988 # obtained by writing to the Free Software Foundation, Inc.,
11989 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11990  
11991  
11992 # The names of the tagged configurations supported by this script.
11993 available_tags=""
11994  
11995 # ### BEGIN LIBTOOL CONFIG
11996  
11997 # Which release of libtool.m4 was used?
11998 macro_version=$macro_version
11999 macro_revision=$macro_revision
12000  
12001 # Whether or not to build shared libraries.
12002 build_libtool_libs=$enable_shared
12003  
12004 # Whether or not to build static libraries.
12005 build_old_libs=$enable_static
12006  
12007 # What type of objects to build.
12008 pic_mode=$pic_mode
12009  
12010 # Whether or not to optimize for fast installation.
12011 fast_install=$enable_fast_install
12012  
12013 # The host system.
12014 host_alias=$host_alias
12015 host=$host
12016 host_os=$host_os
12017  
12018 # The build system.
12019 build_alias=$build_alias
12020 build=$build
12021 build_os=$build_os
12022  
12023 # A sed program that does not truncate output.
12024 SED=$lt_SED
12025  
12026 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12027 Xsed="\$SED -e 1s/^X//"
12028  
12029 # A grep program that handles long lines.
12030 GREP=$lt_GREP
12031  
12032 # An ERE matcher.
12033 EGREP=$lt_EGREP
12034  
12035 # A literal string matcher.
12036 FGREP=$lt_FGREP
12037  
12038 # A BSD- or MS-compatible name lister.
12039 NM=$lt_NM
12040  
12041 # Whether we need soft or hard links.
12042 LN_S=$lt_LN_S
12043  
12044 # What is the maximum length of a command?
12045 max_cmd_len=$max_cmd_len
12046  
12047 # Object file suffix (normally "o").
12048 objext=$ac_objext
12049  
12050 # Executable file suffix (normally "").
12051 exeext=$exeext
12052  
12053 # whether the shell understands "unset".
12054 lt_unset=$lt_unset
12055  
12056 # turn spaces into newlines.
12057 SP2NL=$lt_lt_SP2NL
12058  
12059 # turn newlines into spaces.
12060 NL2SP=$lt_lt_NL2SP
12061  
12062 # How to create reloadable object files.
12063 reload_flag=$lt_reload_flag
12064 reload_cmds=$lt_reload_cmds
12065  
12066 # An object symbol dumper.
12067 OBJDUMP=$lt_OBJDUMP
12068  
12069 # Method to check whether dependent libraries are shared objects.
12070 deplibs_check_method=$lt_deplibs_check_method
12071  
12072 # Command to use when deplibs_check_method == "file_magic".
12073 file_magic_cmd=$lt_file_magic_cmd
12074  
12075 # The archiver.
12076 AR=$lt_AR
12077 AR_FLAGS=$lt_AR_FLAGS
12078  
12079 # A symbol stripping program.
12080 STRIP=$lt_STRIP
12081  
12082 # Commands used to install an old-style archive.
12083 RANLIB=$lt_RANLIB
12084 old_postinstall_cmds=$lt_old_postinstall_cmds
12085 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12086  
12087 # A C compiler.
12088 LTCC=$lt_CC
12089  
12090 # LTCC compiler flags.
12091 LTCFLAGS=$lt_CFLAGS
12092  
12093 # Take the output of nm and produce a listing of raw symbols and C names.
12094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12095  
12096 # Transform the output of nm in a proper C declaration.
12097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12098  
12099 # Transform the output of nm in a C name address pair.
12100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12101  
12102 # Transform the output of nm in a C name address pair when lib prefix is needed.
12103 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12104  
12105 # The name of the directory that contains temporary libtool files.
12106 objdir=$objdir
12107  
12108 # Shell to use when invoking shell scripts.
12109 SHELL=$lt_SHELL
12110  
12111 # An echo program that does not interpret backslashes.
12112 ECHO=$lt_ECHO
12113  
12114 # Used to examine libraries when file_magic_cmd begins with "file".
12115 MAGIC_CMD=$MAGIC_CMD
12116  
12117 # Must we lock files when doing compilation?
12118 need_locks=$lt_need_locks
12119  
12120 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12121 DSYMUTIL=$lt_DSYMUTIL
12122  
12123 # Tool to change global to local symbols on Mac OS X.
12124 NMEDIT=$lt_NMEDIT
12125  
12126 # Tool to manipulate fat objects and archives on Mac OS X.
12127 LIPO=$lt_LIPO
12128  
12129 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12130 OTOOL=$lt_OTOOL
12131  
12132 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12133 OTOOL64=$lt_OTOOL64
12134  
12135 # Old archive suffix (normally "a").
12136 libext=$libext
12137  
12138 # Shared library suffix (normally ".so").
12139 shrext_cmds=$lt_shrext_cmds
12140  
12141 # The commands to extract the exported symbol list from a shared archive.
12142 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12143  
12144 # Variables whose values should be saved in libtool wrapper scripts and
12145 # restored at link time.
12146 variables_saved_for_relink=$lt_variables_saved_for_relink
12147  
12148 # Do we need the "lib" prefix for modules?
12149 need_lib_prefix=$need_lib_prefix
12150  
12151 # Do we need a version for libraries?
12152 need_version=$need_version
12153  
12154 # Library versioning type.
12155 version_type=$version_type
12156  
12157 # Shared library runtime path variable.
12158 runpath_var=$runpath_var
12159  
12160 # Shared library path variable.
12161 shlibpath_var=$shlibpath_var
12162  
12163 # Is shlibpath searched before the hard-coded library search path?
12164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12165  
12166 # Format of library name prefix.
12167 libname_spec=$lt_libname_spec
12168  
12169 # List of archive names. First name is the real one, the rest are links.
12170 # The last name is the one that the linker finds with -lNAME
12171 library_names_spec=$lt_library_names_spec
12172  
12173 # The coded name of the library, if different from the real name.
12174 soname_spec=$lt_soname_spec
12175  
12176 # Command to use after installation of a shared archive.
12177 postinstall_cmds=$lt_postinstall_cmds
12178  
12179 # Command to use after uninstallation of a shared archive.
12180 postuninstall_cmds=$lt_postuninstall_cmds
12181  
12182 # Commands used to finish a libtool library installation in a directory.
12183 finish_cmds=$lt_finish_cmds
12184  
12185 # As "finish_cmds", except a single script fragment to be evaled but
12186 # not shown.
12187 finish_eval=$lt_finish_eval
12188  
12189 # Whether we should hardcode library paths into libraries.
12190 hardcode_into_libs=$hardcode_into_libs
12191  
12192 # Compile-time system search path for libraries.
12193 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12194  
12195 # Run-time system search path for libraries.
12196 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12197  
12198 # Whether dlopen is supported.
12199 dlopen_support=$enable_dlopen
12200  
12201 # Whether dlopen of programs is supported.
12202 dlopen_self=$enable_dlopen_self
12203  
12204 # Whether dlopen of statically linked programs is supported.
12205 dlopen_self_static=$enable_dlopen_self_static
12206  
12207 # Commands to strip libraries.
12208 old_striplib=$lt_old_striplib
12209 striplib=$lt_striplib
12210  
12211  
12212 # The linker used to build libraries.
12213 LD=$lt_LD
12214  
12215 # Commands used to build an old-style archive.
12216 old_archive_cmds=$lt_old_archive_cmds
12217  
12218 # A language specific compiler.
12219 CC=$lt_compiler
12220  
12221 # Is the compiler the GNU compiler?
12222 with_gcc=$GCC
12223  
12224 # Compiler flag to turn off builtin functions.
12225 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12226  
12227 # How to pass a linker flag through the compiler.
12228 wl=$lt_lt_prog_compiler_wl
12229  
12230 # Additional compiler flags for building library objects.
12231 pic_flag=$lt_lt_prog_compiler_pic
12232  
12233 # Compiler flag to prevent dynamic linking.
12234 link_static_flag=$lt_lt_prog_compiler_static
12235  
12236 # Does compiler simultaneously support -c and -o options?
12237 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12238  
12239 # Whether or not to add -lc for building shared libraries.
12240 build_libtool_need_lc=$archive_cmds_need_lc
12241  
12242 # Whether or not to disallow shared libs when runtime libs are static.
12243 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12244  
12245 # Compiler flag to allow reflexive dlopens.
12246 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12247  
12248 # Compiler flag to generate shared objects directly from archives.
12249 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12250  
12251 # Whether the compiler copes with passing no objects directly.
12252 compiler_needs_object=$lt_compiler_needs_object
12253  
12254 # Create an old-style archive from a shared archive.
12255 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12256  
12257 # Create a temporary old-style archive to link instead of a shared archive.
12258 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12259  
12260 # Commands used to build a shared archive.
12261 archive_cmds=$lt_archive_cmds
12262 archive_expsym_cmds=$lt_archive_expsym_cmds
12263  
12264 # Commands used to build a loadable module if different from building
12265 # a shared archive.
12266 module_cmds=$lt_module_cmds
12267 module_expsym_cmds=$lt_module_expsym_cmds
12268  
12269 # Whether we are building with GNU ld or not.
12270 with_gnu_ld=$lt_with_gnu_ld
12271  
12272 # Flag that allows shared libraries with undefined symbols to be built.
12273 allow_undefined_flag=$lt_allow_undefined_flag
12274  
12275 # Flag that enforces no undefined symbols.
12276 no_undefined_flag=$lt_no_undefined_flag
12277  
12278 # Flag to hardcode \$libdir into a binary during linking.
12279 # This must work even if \$libdir does not exist
12280 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12281  
12282 # If ld is used when linking, flag to hardcode \$libdir into a binary
12283 # during linking. This must work even if \$libdir does not exist.
12284 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12285  
12286 # Whether we need a single "-rpath" flag with a separated argument.
12287 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12288  
12289 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12290 # DIR into the resulting binary.
12291 hardcode_direct=$hardcode_direct
12292  
12293 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12294 # DIR into the resulting binary and the resulting library dependency is
12295 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12296 # library is relocated.
12297 hardcode_direct_absolute=$hardcode_direct_absolute
12298  
12299 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12300 # into the resulting binary.
12301 hardcode_minus_L=$hardcode_minus_L
12302  
12303 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12304 # into the resulting binary.
12305 hardcode_shlibpath_var=$hardcode_shlibpath_var
12306  
12307 # Set to "yes" if building a shared library automatically hardcodes DIR
12308 # into the library and all subsequent libraries and executables linked
12309 # against it.
12310 hardcode_automatic=$hardcode_automatic
12311  
12312 # Set to yes if linker adds runtime paths of dependent libraries
12313 # to runtime path list.
12314 inherit_rpath=$inherit_rpath
12315  
12316 # Whether libtool must link a program against all its dependency libraries.
12317 link_all_deplibs=$link_all_deplibs
12318  
12319 # Fix the shell variable \$srcfile for the compiler.
12320 fix_srcfile_path=$lt_fix_srcfile_path
12321  
12322 # Set to "yes" if exported symbols are required.
12323 always_export_symbols=$always_export_symbols
12324  
12325 # The commands to list exported symbols.
12326 export_symbols_cmds=$lt_export_symbols_cmds
12327  
12328 # Symbols that should not be listed in the preloaded symbols.
12329 exclude_expsyms=$lt_exclude_expsyms
12330  
12331 # Symbols that must always be exported.
12332 include_expsyms=$lt_include_expsyms
12333  
12334 # Commands necessary for linking programs (against libraries) with templates.
12335 prelink_cmds=$lt_prelink_cmds
12336  
12337 # Specify filename containing input files.
12338 file_list_spec=$lt_file_list_spec
12339  
12340 # How to hardcode a shared library path into an executable.
12341 hardcode_action=$hardcode_action
12342  
12343 # ### END LIBTOOL CONFIG
12344  
12345 _LT_EOF
12346  
12347 case $host_os in
12348 aix3*)
12349 cat <<\_LT_EOF >> "$cfgfile"
12350 # AIX sometimes has problems with the GCC collect2 program. For some
12351 # reason, if we set the COLLECT_NAMES environment variable, the problems
12352 # vanish in a puff of smoke.
12353 if test "X${COLLECT_NAMES+set}" != Xset; then
12354 COLLECT_NAMES=
12355 export COLLECT_NAMES
12356 fi
12357 _LT_EOF
12358 ;;
12359 esac
12360  
12361  
12362 ltmain="$ac_aux_dir/ltmain.sh"
12363  
12364  
12365 # We use sed instead of cat because bash on DJGPP gets confused if
12366 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12367 # text mode, it properly converts lines to CR/LF. This bash problem
12368 # is reportedly fixed, but why not run on old versions too?
12369 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12370 || (rm -f "$cfgfile"; exit 1)
12371  
12372 case $xsi_shell in
12373 yes)
12374 cat << \_LT_EOF >> "$cfgfile"
12375  
12376 # func_dirname file append nondir_replacement
12377 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12378 # otherwise set result to NONDIR_REPLACEMENT.
12379 func_dirname ()
12380 {
12381 case ${1} in
12382 */*) func_dirname_result="${1%/*}${2}" ;;
12383 * ) func_dirname_result="${3}" ;;
12384 esac
12385 }
12386  
12387 # func_basename file
12388 func_basename ()
12389 {
12390 func_basename_result="${1##*/}"
12391 }
12392  
12393 # func_dirname_and_basename file append nondir_replacement
12394 # perform func_basename and func_dirname in a single function
12395 # call:
12396 # dirname: Compute the dirname of FILE. If nonempty,
12397 # add APPEND to the result, otherwise set result
12398 # to NONDIR_REPLACEMENT.
12399 # value returned in "$func_dirname_result"
12400 # basename: Compute filename of FILE.
12401 # value retuned in "$func_basename_result"
12402 # Implementation must be kept synchronized with func_dirname
12403 # and func_basename. For efficiency, we do not delegate to
12404 # those functions but instead duplicate the functionality here.
12405 func_dirname_and_basename ()
12406 {
12407 case ${1} in
12408 */*) func_dirname_result="${1%/*}${2}" ;;
12409 * ) func_dirname_result="${3}" ;;
12410 esac
12411 func_basename_result="${1##*/}"
12412 }
12413  
12414 # func_stripname prefix suffix name
12415 # strip PREFIX and SUFFIX off of NAME.
12416 # PREFIX and SUFFIX must not contain globbing or regex special
12417 # characters, hashes, percent signs, but SUFFIX may contain a leading
12418 # dot (in which case that matches only a dot).
12419 func_stripname ()
12420 {
12421 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12422 # positional parameters, so assign one to ordinary parameter first.
12423 func_stripname_result=${3}
12424 func_stripname_result=${func_stripname_result#"${1}"}
12425 func_stripname_result=${func_stripname_result%"${2}"}
12426 }
12427  
12428 # func_opt_split
12429 func_opt_split ()
12430 {
12431 func_opt_split_opt=${1%%=*}
12432 func_opt_split_arg=${1#*=}
12433 }
12434  
12435 # func_lo2o object
12436 func_lo2o ()
12437 {
12438 case ${1} in
12439 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12440 *) func_lo2o_result=${1} ;;
12441 esac
12442 }
12443  
12444 # func_xform libobj-or-source
12445 func_xform ()
12446 {
12447 func_xform_result=${1%.*}.lo
12448 }
12449  
12450 # func_arith arithmetic-term...
12451 func_arith ()
12452 {
12453 func_arith_result=$(( $* ))
12454 }
12455  
12456 # func_len string
12457 # STRING may not start with a hyphen.
12458 func_len ()
12459 {
12460 func_len_result=${#1}
12461 }
12462  
12463 _LT_EOF
12464 ;;
12465 *) # Bourne compatible functions.
12466 cat << \_LT_EOF >> "$cfgfile"
12467  
12468 # func_dirname file append nondir_replacement
12469 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12470 # otherwise set result to NONDIR_REPLACEMENT.
12471 func_dirname ()
12472 {
12473 # Extract subdirectory from the argument.
12474 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12475 if test "X$func_dirname_result" = "X${1}"; then
12476 func_dirname_result="${3}"
12477 else
12478 func_dirname_result="$func_dirname_result${2}"
12479 fi
12480 }
12481  
12482 # func_basename file
12483 func_basename ()
12484 {
12485 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12486 }
12487  
12488  
12489 # func_stripname prefix suffix name
12490 # strip PREFIX and SUFFIX off of NAME.
12491 # PREFIX and SUFFIX must not contain globbing or regex special
12492 # characters, hashes, percent signs, but SUFFIX may contain a leading
12493 # dot (in which case that matches only a dot).
12494 # func_strip_suffix prefix name
12495 func_stripname ()
12496 {
12497 case ${2} in
12498 .*) func_stripname_result=`$ECHO "X${3}" \
12499 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12500 *) func_stripname_result=`$ECHO "X${3}" \
12501 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12502 esac
12503 }
12504  
12505 # sed scripts:
12506 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12507 my_sed_long_arg='1s/^-[^=]*=//'
12508  
12509 # func_opt_split
12510 func_opt_split ()
12511 {
12512 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12513 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12514 }
12515  
12516 # func_lo2o object
12517 func_lo2o ()
12518 {
12519 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12520 }
12521  
12522 # func_xform libobj-or-source
12523 func_xform ()
12524 {
12525 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
12526 }
12527  
12528 # func_arith arithmetic-term...
12529 func_arith ()
12530 {
12531 func_arith_result=`expr "$@"`
12532 }
12533  
12534 # func_len string
12535 # STRING may not start with a hyphen.
12536 func_len ()
12537 {
12538 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12539 }
12540  
12541 _LT_EOF
12542 esac
12543  
12544 case $lt_shell_append in
12545 yes)
12546 cat << \_LT_EOF >> "$cfgfile"
12547  
12548 # func_append var value
12549 # Append VALUE to the end of shell variable VAR.
12550 func_append ()
12551 {
12552 eval "$1+=\$2"
12553 }
12554 _LT_EOF
12555 ;;
12556 *)
12557 cat << \_LT_EOF >> "$cfgfile"
12558  
12559 # func_append var value
12560 # Append VALUE to the end of shell variable VAR.
12561 func_append ()
12562 {
12563 eval "$1=\$$1\$2"
12564 }
12565  
12566 _LT_EOF
12567 ;;
12568 esac
12569  
12570  
12571 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12572 || (rm -f "$cfgfile"; exit 1)
12573  
12574 mv -f "$cfgfile" "$ofile" ||
12575 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12576 chmod +x "$ofile"
12577  
12578 ;;
12579  
12580 esac
12581 done # for ac_tag
12582  
12583  
12584 as_fn_exit 0
12585 _ACEOF
12586 ac_clean_files=$ac_clean_files_save
12587  
12588 test $ac_write_fail = 0 ||
12589 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12590  
12591  
12592 # configure is writing to config.log, and then calls config.status.
12593 # config.status does its own redirection, appending to config.log.
12594 # Unfortunately, on DOS this fails, as config.log is still kept open
12595 # by configure, so config.status won't be able to write to it; its
12596 # output is simply discarded. So we exec the FD to /dev/null,
12597 # effectively closing config.log, so it can be properly (re)opened and
12598 # appended to by config.status. When coming back to configure, we
12599 # need to make the FD available again.
12600 if test "$no_create" != yes; then
12601 ac_cs_success=:
12602 ac_config_status_args=
12603 test "$silent" = yes &&
12604 ac_config_status_args="$ac_config_status_args --quiet"
12605 exec 5>/dev/null
12606 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12607 exec 5>>config.log
12608 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12609 # would make configure fail if this is the last instruction.
12610 $ac_cs_success || as_fn_exit $?
12611 fi
12612 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12614 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12615 fi
12616