Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / sha1 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libsha1 1.21.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
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*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='libsha1'
747 PACKAGE_TARNAME='libsha1'
748 PACKAGE_VERSION='1.21'
749 PACKAGE_STRING='libsha1 1.21'
750 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752 ac_unique_file="hmac.c"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LIBOBJS
793 CPP
794 OTOOL64
795 OTOOL
796 LIPO
797 NMEDIT
798 DSYMUTIL
799 lt_ECHO
800 RANLIB
801 AR
802 OBJDUMP
803 NM
804 ac_ct_DUMPBIN
805 DUMPBIN
806 LD
807 FGREP
808 EGREP
809 GREP
810 SED
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 LIBTOOL
820 LN_S
821 am__fastdepCC_FALSE
822 am__fastdepCC_TRUE
823 CCDEPMODE
824 AMDEPBACKSLASH
825 AMDEP_FALSE
826 AMDEP_TRUE
827 am__quote
828 am__include
829 DEPDIR
830 OBJEXT
831 EXEEXT
832 ac_ct_CC
833 CPPFLAGS
834 LDFLAGS
835 CFLAGS
836 CC
837 HMACC_FALSE
838 HMACC_TRUE
839 am__untar
840 am__tar
841 AMTAR
842 am__leading_dot
843 SET_MAKE
844 AWK
845 mkdir_p
846 MKDIR_P
847 INSTALL_STRIP_PROGRAM
848 STRIP
849 install_sh
850 MAKEINFO
851 AUTOHEADER
852 AUTOMAKE
853 AUTOCONF
854 ACLOCAL
855 VERSION
856 PACKAGE
857 CYGPATH_W
858 am__isrc
859 INSTALL_DATA
860 INSTALL_SCRIPT
861 INSTALL_PROGRAM
862 target_alias
863 host_alias
864 build_alias
865 LIBS
866 ECHO_T
867 ECHO_N
868 ECHO_C
869 DEFS
870 mandir
871 localedir
872 libdir
873 psdir
874 pdfdir
875 dvidir
876 htmldir
877 infodir
878 docdir
879 oldincludedir
880 includedir
881 localstatedir
882 sharedstatedir
883 sysconfdir
884 datadir
885 datarootdir
886 libexecdir
887 sbindir
888 bindir
889 program_transform_name
890 prefix
891 exec_prefix
892 PACKAGE_BUGREPORT
893 PACKAGE_STRING
894 PACKAGE_VERSION
895 PACKAGE_TARNAME
896 PACKAGE_NAME
897 PATH_SEPARATOR
898 SHELL'
899 ac_subst_files=''
900 ac_user_opts='
901 enable_option_checking
902 enable_dependency_tracking
903 enable_shared
904 enable_static
905 with_pic
906 enable_fast_install
907 with_gnu_ld
908 enable_libtool_lock
909 with_int32
910 with_int64
911 '
912 ac_precious_vars='build_alias
913 host_alias
914 target_alias
915 CC
916 CFLAGS
917 LDFLAGS
918 LIBS
919 CPPFLAGS
920 CPP'
921
922
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 ac_unrecognized_opts=
927 ac_unrecognized_sep=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
930 cache_file=/dev/null
931 exec_prefix=NONE
932 no_create=
933 no_recursion=
934 prefix=NONE
935 program_prefix=NONE
936 program_suffix=NONE
937 program_transform_name=s,x,x,
938 silent=
939 site=
940 srcdir=
941 verbose=
942 x_includes=NONE
943 x_libraries=NONE
944
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962 infodir='${datarootdir}/info'
963 htmldir='${docdir}'
964 dvidir='${docdir}'
965 pdfdir='${docdir}'
966 psdir='${docdir}'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
970
971 ac_prev=
972 ac_dashdash=
973 for ac_option
974 do
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
977 eval $ac_prev=\$ac_option
978 ac_prev=
979 continue
980 fi
981
982 case $ac_option in
983 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 *) ac_optarg=yes ;;
985 esac
986
987 # Accept the important Cygnus configure options, so we can diagnose typos.
988
989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
992
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 bindir=$ac_optarg ;;
997
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1002
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1009
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1012
1013 -datadir | --datadir | --datadi | --datad)
1014 ac_prev=datadir ;;
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1017
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1024
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=no ;;
1041
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1046
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1051
1052 -enable-* | --enable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1061 *"
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=\$ac_optarg ;;
1068
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1077
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1080 with_gas=yes ;;
1081
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1088
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1093
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 ac_prev=htmldir ;;
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 | --ht=*)
1098 htmldir=$ac_optarg ;;
1099
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1106
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 ac_prev=infodir ;;
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1111
1112 -libdir | --libdir | --libdi | --libd)
1113 ac_prev=libdir ;;
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1116
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1123
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1128
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1135
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 ac_prev=mandir ;;
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1140
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1143 with_fp=no ;;
1144
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1147 no_create=yes ;;
1148
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 no_recursion=yes ;;
1152
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1161
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 ac_prev=prefix ;;
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1166
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1173
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1180
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1197
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 ac_prev=pdfdir ;;
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1202
1203 -psdir | --psdir | --psdi | --psd | --ps)
1204 ac_prev=psdir ;;
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 psdir=$ac_optarg ;;
1207
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 silent=yes ;;
1211
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213 ac_prev=sbindir ;;
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215 | --sbi=* | --sb=*)
1216 sbindir=$ac_optarg ;;
1217
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1221 | --sha | --sh)
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226 | --sha=* | --sh=*)
1227 sharedstatedir=$ac_optarg ;;
1228
1229 -site | --site | --sit)
1230 ac_prev=site ;;
1231 -site=* | --site=* | --sit=*)
1232 site=$ac_optarg ;;
1233
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235 ac_prev=srcdir ;;
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1238
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1245
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1250
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 verbose=yes ;;
1253
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1256
1257 -with-* | --with-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1262 { (exit 1); exit 1; }; }
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267 "with_$ac_useropt"
1268 "*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=\$ac_optarg ;;
1273
1274 -without-* | --without-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1279 { (exit 1); exit 1; }; }
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=no ;;
1290
1291 --x)
1292 # Obsolete; use --with-x.
1293 with_x=yes ;;
1294
1295 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296 | --x-incl | --x-inc | --x-in | --x-i)
1297 ac_prev=x_includes ;;
1298 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300 x_includes=$ac_optarg ;;
1301
1302 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304 ac_prev=x_libraries ;;
1305 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307 x_libraries=$ac_optarg ;;
1308
1309 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1310 Try \`$0 --help' for more information." >&2
1311 { (exit 1); exit 1; }; }
1312 ;;
1313
1314 *=*)
1315 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1318 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1319 { (exit 1); exit 1; }; }
1320 eval $ac_envvar=\$ac_optarg
1321 export $ac_envvar ;;
1322
1323 *)
1324 # FIXME: should be removed in autoconf 3.0.
1325 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329 ;;
1330
1331 esac
1332 done
1333
1334 if test -n "$ac_prev"; then
1335 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1337 { (exit 1); exit 1; }; }
1338 fi
1339
1340 if test -n "$ac_unrecognized_opts"; then
1341 case $enable_option_checking in
1342 no) ;;
1343 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1344 { (exit 1); exit 1; }; } ;;
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 esac
1347 fi
1348
1349 # Check all directory arguments for consistency.
1350 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
1354 do
1355 eval ac_val=\$$ac_var
1356 # Remove trailing slashes.
1357 case $ac_val in
1358 */ )
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1361 esac
1362 # Be sure to have absolute directory names.
1363 case $ac_val in
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 esac
1367 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
1369 done
1370
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1377
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387 fi
1388
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392 test "$silent" = yes && exec 6>/dev/null
1393
1394
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1403
1404
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$as_myself" ||
1410 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$as_myself" : 'X\(//\)[^/]' \| \
1412 X"$as_myself" : 'X\(//\)$' \| \
1413 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1414 $as_echo X"$as_myself" |
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)[^/].*/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\).*/{
1428 s//\1/
1429 q
1430 }
1431 s/.*/./; q'`
1432 srcdir=$ac_confdir
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434 srcdir=..
1435 fi
1436 else
1437 ac_srcdir_defaulted=no
1438 fi
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442 { (exit 1); exit 1; }; }
1443 fi
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 ac_abs_confdir=`(
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1447 { (exit 1); exit 1; }; }
1448 pwd)`
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451 srcdir=.
1452 fi
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1456 case $srcdir in
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 esac
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 done
1465
1466 #
1467 # Report the --help message.
1468 #
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1472 cat <<_ACEOF
1473 \`configure' configures libsha1 1.21 to adapt to many kinds of systems.
1474
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1479
1480 Defaults for the options are specified in brackets.
1481
1482 Configuration:
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1497 [PREFIX]
1498
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1503
1504 For better control, use the options below.
1505
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/libsha1]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1526 _ACEOF
1527
1528 cat <<\_ACEOF
1529
1530 Program names:
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1534
1535 System types:
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543 short | recursive ) echo "Configuration of libsha1 1.21:";;
1544 esac
1545 cat <<\_ACEOF
1546
1547 Optional Features:
1548 --disable-option-checking ignore unrecognized --enable/--with options
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --disable-dependency-tracking speeds up one-time build
1552 --enable-dependency-tracking do not reject slow dependency extractors
1553 --enable-shared[=PKGS] build shared libraries [default=yes]
1554 --enable-static[=PKGS] build static libraries [default=yes]
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation [default=yes]
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1558
1559 Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-pic try to use only PIC/non-PIC objects [default=use
1563 both]
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 --with-int32='type' use 'type' for an unsigned 32 bit integer type
1566 ( default is 'unsigned')
1567 --with-int64='type' use 'type' for an unsigned 64 bit integer type
1568 ( default is 'unsigned')
1569
1570 Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1578 CPP C preprocessor
1579
1580 Use these variables to override the choices made by `configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1582
1583 Report bugs to <courier-users@lists.sourceforge.net>.
1584 _ACEOF
1585 ac_status=$?
1586 fi
1587
1588 if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593 continue
1594 ac_builddir=.
1595
1596 case "$ac_dir" in
1597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *)
1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600 # A ".." for each directory in $ac_dir_suffix.
1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605 esac ;;
1606 esac
1607 ac_abs_top_builddir=$ac_pwd
1608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609 # for backward compatibility:
1610 ac_top_builddir=$ac_top_build_prefix
1611
1612 case $srcdir in
1613 .) # We are building in place.
1614 ac_srcdir=.
1615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
1618 ac_srcdir=$srcdir$ac_dir_suffix;
1619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1621 *) # Relative name.
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625 esac
1626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for guested configure.
1630 if test -f "$ac_srcdir/configure.gnu"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633 elif test -f "$ac_srcdir/configure"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure" --help=recursive
1636 else
1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638 fi || ac_status=$?
1639 cd "$ac_pwd" || { ac_status=$?; break; }
1640 done
1641 fi
1642
1643 test -n "$ac_init_help" && exit $ac_status
1644 if $ac_init_version; then
1645 cat <<\_ACEOF
1646 libsha1 configure 1.21
1647 generated by GNU Autoconf 2.63
1648
1649 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1650 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1651 This configure script is free software; the Free Software Foundation
1652 gives unlimited permission to copy, distribute and modify it.
1653 _ACEOF
1654 exit
1655 fi
1656 cat >config.log <<_ACEOF
1657 This file contains any messages produced by compilers while
1658 running configure, to aid debugging if configure makes a mistake.
1659
1660 It was created by libsha1 $as_me 1.21, which was
1661 generated by GNU Autoconf 2.63. Invocation command line was
1662
1663 $ $0 $@
1664
1665 _ACEOF
1666 exec 5>>config.log
1667 {
1668 cat <<_ASUNAME
1669 ## --------- ##
1670 ## Platform. ##
1671 ## --------- ##
1672
1673 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1674 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1675 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1676 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1677 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1678
1679 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1680 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1681
1682 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1683 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1684 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1685 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1686 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1687 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1688 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1689
1690 _ASUNAME
1691
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 for as_dir in $PATH
1694 do
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 $as_echo "PATH: $as_dir"
1698 done
1699 IFS=$as_save_IFS
1700
1701 } >&5
1702
1703 cat >&5 <<_ACEOF
1704
1705
1706 ## ----------- ##
1707 ## Core tests. ##
1708 ## ----------- ##
1709
1710 _ACEOF
1711
1712
1713 # Keep a trace of the command line.
1714 # Strip out --no-create and --no-recursion so they do not pile up.
1715 # Strip out --silent because we don't want to record it for future runs.
1716 # Also quote any args containing shell meta-characters.
1717 # Make two passes to allow for proper duplicate-argument suppression.
1718 ac_configure_args=
1719 ac_configure_args0=
1720 ac_configure_args1=
1721 ac_must_keep_next=false
1722 for ac_pass in 1 2
1723 do
1724 for ac_arg
1725 do
1726 case $ac_arg in
1727 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1729 | -silent | --silent | --silen | --sile | --sil)
1730 continue ;;
1731 *\'*)
1732 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1733 esac
1734 case $ac_pass in
1735 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1736 2)
1737 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1738 if test $ac_must_keep_next = true; then
1739 ac_must_keep_next=false # Got value, back to normal.
1740 else
1741 case $ac_arg in
1742 *=* | --config-cache | -C | -disable-* | --disable-* \
1743 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1744 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1745 | -with-* | --with-* | -without-* | --without-* | --x)
1746 case "$ac_configure_args0 " in
1747 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1748 esac
1749 ;;
1750 -* ) ac_must_keep_next=true ;;
1751 esac
1752 fi
1753 ac_configure_args="$ac_configure_args '$ac_arg'"
1754 ;;
1755 esac
1756 done
1757 done
1758 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1759 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1760
1761 # When interrupted or exit'd, cleanup temporary files, and complete
1762 # config.log. We remove comments because anyway the quotes in there
1763 # would cause problems or look ugly.
1764 # WARNING: Use '\'' to represent an apostrophe within the trap.
1765 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1766 trap 'exit_status=$?
1767 # Save into config.log some information that might help in debugging.
1768 {
1769 echo
1770
1771 cat <<\_ASBOX
1772 ## ---------------- ##
1773 ## Cache variables. ##
1774 ## ---------------- ##
1775 _ASBOX
1776 echo
1777 # The following way of writing the cache mishandles newlines in values,
1778 (
1779 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1780 eval ac_val=\$$ac_var
1781 case $ac_val in #(
1782 *${as_nl}*)
1783 case $ac_var in #(
1784 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1786 esac
1787 case $ac_var in #(
1788 _ | IFS | as_nl) ;; #(
1789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1790 *) $as_unset $ac_var ;;
1791 esac ;;
1792 esac
1793 done
1794 (set) 2>&1 |
1795 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1796 *${as_nl}ac_space=\ *)
1797 sed -n \
1798 "s/'\''/'\''\\\\'\'''\''/g;
1799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1800 ;; #(
1801 *)
1802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1803 ;;
1804 esac |
1805 sort
1806 )
1807 echo
1808
1809 cat <<\_ASBOX
1810 ## ----------------- ##
1811 ## Output variables. ##
1812 ## ----------------- ##
1813 _ASBOX
1814 echo
1815 for ac_var in $ac_subst_vars
1816 do
1817 eval ac_val=\$$ac_var
1818 case $ac_val in
1819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820 esac
1821 $as_echo "$ac_var='\''$ac_val'\''"
1822 done | sort
1823 echo
1824
1825 if test -n "$ac_subst_files"; then
1826 cat <<\_ASBOX
1827 ## ------------------- ##
1828 ## File substitutions. ##
1829 ## ------------------- ##
1830 _ASBOX
1831 echo
1832 for ac_var in $ac_subst_files
1833 do
1834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 $as_echo "$ac_var='\''$ac_val'\''"
1839 done | sort
1840 echo
1841 fi
1842
1843 if test -s confdefs.h; then
1844 cat <<\_ASBOX
1845 ## ----------- ##
1846 ## confdefs.h. ##
1847 ## ----------- ##
1848 _ASBOX
1849 echo
1850 cat confdefs.h
1851 echo
1852 fi
1853 test "$ac_signal" != 0 &&
1854 $as_echo "$as_me: caught signal $ac_signal"
1855 $as_echo "$as_me: exit $exit_status"
1856 } >&5
1857 rm -f core *.core core.conftest.* &&
1858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1859 exit $exit_status
1860 ' 0
1861 for ac_signal in 1 2 13 15; do
1862 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1863 done
1864 ac_signal=0
1865
1866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1867 rm -f -r conftest* confdefs.h
1868
1869 # Predefined preprocessor variables.
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_NAME "$PACKAGE_NAME"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_STRING "$PACKAGE_STRING"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1893 _ACEOF
1894
1895
1896 # Let the site file select an alternate cache file if it wants to.
1897 # Prefer an explicitly selected file to automatically selected ones.
1898 ac_site_file1=NONE
1899 ac_site_file2=NONE
1900 if test -n "$CONFIG_SITE"; then
1901 ac_site_file1=$CONFIG_SITE
1902 elif test "x$prefix" != xNONE; then
1903 ac_site_file1=$prefix/share/config.site
1904 ac_site_file2=$prefix/etc/config.site
1905 else
1906 ac_site_file1=$ac_default_prefix/share/config.site
1907 ac_site_file2=$ac_default_prefix/etc/config.site
1908 fi
1909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1910 do
1911 test "x$ac_site_file" = xNONE && continue
1912 if test -r "$ac_site_file"; then
1913 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1915 sed 's/^/| /' "$ac_site_file" >&5
1916 . "$ac_site_file"
1917 fi
1918 done
1919
1920 if test -r "$cache_file"; then
1921 # Some versions of bash will fail to source /dev/null (special
1922 # files actually), so we avoid doing that.
1923 if test -f "$cache_file"; then
1924 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1925 $as_echo "$as_me: loading cache $cache_file" >&6;}
1926 case $cache_file in
1927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1928 *) . "./$cache_file";;
1929 esac
1930 fi
1931 else
1932 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1933 $as_echo "$as_me: creating cache $cache_file" >&6;}
1934 >$cache_file
1935 fi
1936
1937 # Check that the precious variables saved in the cache have kept the same
1938 # value.
1939 ac_cache_corrupted=false
1940 for ac_var in $ac_precious_vars; do
1941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1942 eval ac_new_set=\$ac_env_${ac_var}_set
1943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1944 eval ac_new_val=\$ac_env_${ac_var}_value
1945 case $ac_old_set,$ac_new_set in
1946 set,)
1947 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1949 ac_cache_corrupted=: ;;
1950 ,set)
1951 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1953 ac_cache_corrupted=: ;;
1954 ,);;
1955 *)
1956 if test "x$ac_old_val" != "x$ac_new_val"; then
1957 # differences in whitespace do not lead to failure.
1958 ac_old_val_w=`echo x $ac_old_val`
1959 ac_new_val_w=`echo x $ac_new_val`
1960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1963 ac_cache_corrupted=:
1964 else
1965 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1967 eval $ac_var=\$ac_old_val
1968 fi
1969 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1970 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1971 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1973 fi;;
1974 esac
1975 # Pass precious variables to config.status.
1976 if test "$ac_new_set" = set; then
1977 case $ac_new_val in
1978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1979 *) ac_arg=$ac_var=$ac_new_val ;;
1980 esac
1981 case " $ac_configure_args " in
1982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1983 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1984 esac
1985 fi
1986 done
1987 if $ac_cache_corrupted; then
1988 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1990 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1993 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1994 { (exit 1); exit 1; }; }
1995 fi
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021 ac_ext=c
2022 ac_cpp='$CPP $CPPFLAGS'
2023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026
2027
2028
2029 >confdefs.h # Kill PACKAGE_ macros
2030
2031
2032 ac_config_headers="$ac_config_headers config.h"
2033
2034 am__api_version='1.11'
2035
2036 ac_aux_dir=
2037 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2038 if test -f "$ac_dir/install-sh"; then
2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install-sh -c"
2041 break
2042 elif test -f "$ac_dir/install.sh"; then
2043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install.sh -c"
2045 break
2046 elif test -f "$ac_dir/shtool"; then
2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/shtool install -c"
2049 break
2050 fi
2051 done
2052 if test -z "$ac_aux_dir"; then
2053 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2054 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2055 { (exit 1); exit 1; }; }
2056 fi
2057
2058 # These three variables are undocumented and unsupported,
2059 # and are intended to be withdrawn in a future Autoconf release.
2060 # They can cause serious problems if a builder's source tree is in a directory
2061 # whose full name contains unusual characters.
2062 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2063 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2064 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2065
2066
2067 # Find a good install program. We prefer a C program (faster),
2068 # so one script is as good as another. But avoid the broken or
2069 # incompatible versions:
2070 # SysV /etc/install, /usr/sbin/install
2071 # SunOS /usr/etc/install
2072 # IRIX /sbin/install
2073 # AIX /bin/install
2074 # AmigaOS /C/install, which installs bootblocks on floppy discs
2075 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2076 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2077 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2078 # OS/2's system install, which has a completely different semantic
2079 # ./install, which can be erroneously created by make from ./install.sh.
2080 # Reject install programs that cannot install multiple files.
2081 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2082 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2083 if test -z "$INSTALL"; then
2084 if test "${ac_cv_path_install+set}" = set; then
2085 $as_echo_n "(cached) " >&6
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2089 do
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 # Account for people who put trailing slashes in PATH elements.
2093 case $as_dir/ in
2094 ./ | .// | /cC/* | \
2095 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2096 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2097 /usr/ucb/* ) ;;
2098 *)
2099 # OSF1 and SCO ODT 3.0 have their own names for install.
2100 # Don't use installbsd from OSF since it installs stuff as root
2101 # by default.
2102 for ac_prog in ginstall scoinst install; do
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2105 if test $ac_prog = install &&
2106 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2107 # AIX install. It has an incompatible calling convention.
2108 :
2109 elif test $ac_prog = install &&
2110 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2111 # program-specific install script used by HP pwplus--don't use.
2112 :
2113 else
2114 rm -rf conftest.one conftest.two conftest.dir
2115 echo one > conftest.one
2116 echo two > conftest.two
2117 mkdir conftest.dir
2118 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2119 test -s conftest.one && test -s conftest.two &&
2120 test -s conftest.dir/conftest.one &&
2121 test -s conftest.dir/conftest.two
2122 then
2123 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2124 break 3
2125 fi
2126 fi
2127 fi
2128 done
2129 done
2130 ;;
2131 esac
2132
2133 done
2134 IFS=$as_save_IFS
2135
2136 rm -rf conftest.one conftest.two conftest.dir
2137
2138 fi
2139 if test "${ac_cv_path_install+set}" = set; then
2140 INSTALL=$ac_cv_path_install
2141 else
2142 # As a last resort, use the slow shell script. Don't cache a
2143 # value for INSTALL within a source directory, because that will
2144 # break other packages using the cache if that directory is
2145 # removed, or if the value is a relative name.
2146 INSTALL=$ac_install_sh
2147 fi
2148 fi
2149 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2150 $as_echo "$INSTALL" >&6; }
2151
2152 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2153 # It thinks the first close brace ends the variable substitution.
2154 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2155
2156 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2157
2158 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2159
2160 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2161 $as_echo_n "checking whether build environment is sane... " >&6; }
2162 # Just in case
2163 sleep 1
2164 echo timestamp > conftest.file
2165 # Reject unsafe characters in $srcdir or the absolute working directory
2166 # name. Accept space and tab only in the latter.
2167 am_lf='
2168 '
2169 case `pwd` in
2170 *[\\\"\#\$\&\'\`$am_lf]*)
2171 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2172 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2173 { (exit 1); exit 1; }; };;
2174 esac
2175 case $srcdir in
2176 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2177 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2178 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2179 { (exit 1); exit 1; }; };;
2180 esac
2181
2182 # Do `set' in a subshell so we don't clobber the current shell's
2183 # arguments. Must try -L first in case configure is actually a
2184 # symlink; some systems play weird games with the mod time of symlinks
2185 # (eg FreeBSD returns the mod time of the symlink's containing
2186 # directory).
2187 if (
2188 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2189 if test "$*" = "X"; then
2190 # -L didn't work.
2191 set X `ls -t "$srcdir/configure" conftest.file`
2192 fi
2193 rm -f conftest.file
2194 if test "$*" != "X $srcdir/configure conftest.file" \
2195 && test "$*" != "X conftest.file $srcdir/configure"; then
2196
2197 # If neither matched, then we have a broken ls. This can happen
2198 # if, for instance, CONFIG_SHELL is bash and it inherits a
2199 # broken ls alias from the environment. This has actually
2200 # happened. Such a system could not be considered "sane".
2201 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2202 alias in your environment" >&5
2203 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2204 alias in your environment" >&2;}
2205 { (exit 1); exit 1; }; }
2206 fi
2207
2208 test "$2" = conftest.file
2209 )
2210 then
2211 # Ok.
2212 :
2213 else
2214 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2215 Check your system clock" >&5
2216 $as_echo "$as_me: error: newly created file is older than distributed files!
2217 Check your system clock" >&2;}
2218 { (exit 1); exit 1; }; }
2219 fi
2220 { $as_echo "$as_me:$LINENO: result: yes" >&5
2221 $as_echo "yes" >&6; }
2222 test "$program_prefix" != NONE &&
2223 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2224 # Use a double $ so make ignores it.
2225 test "$program_suffix" != NONE &&
2226 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2227 # Double any \ or $.
2228 # By default was `s,x,x', remove it if useless.
2229 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2230 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2231
2232 # expand $ac_aux_dir to an absolute path
2233 am_aux_dir=`cd $ac_aux_dir && pwd`
2234
2235 if test x"${MISSING+set}" != xset; then
2236 case $am_aux_dir in
2237 *\ * | *\ *)
2238 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2239 *)
2240 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2241 esac
2242 fi
2243 # Use eval to expand $SHELL
2244 if eval "$MISSING --run true"; then
2245 am_missing_run="$MISSING --run "
2246 else
2247 am_missing_run=
2248 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2249 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2250 fi
2251
2252 if test x"${install_sh}" != xset; then
2253 case $am_aux_dir in
2254 *\ * | *\ *)
2255 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2256 *)
2257 install_sh="\${SHELL} $am_aux_dir/install-sh"
2258 esac
2259 fi
2260
2261 # Installed binaries are usually stripped using `strip' when the user
2262 # run `make install-strip'. However `strip' might not be the right
2263 # tool to use in cross-compilation environments, therefore Automake
2264 # will honor the `STRIP' environment variable to overrule this program.
2265 if test "$cross_compiling" != no; then
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}strip; ac_word=$2
2269 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 $as_echo_n "checking for $ac_word... " >&6; }
2271 if test "${ac_cv_prog_STRIP+set}" = set; then
2272 $as_echo_n "(cached) " >&6
2273 else
2274 if test -n "$STRIP"; then
2275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2287 fi
2288 done
2289 done
2290 IFS=$as_save_IFS
2291
2292 fi
2293 fi
2294 STRIP=$ac_cv_prog_STRIP
2295 if test -n "$STRIP"; then
2296 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2297 $as_echo "$STRIP" >&6; }
2298 else
2299 { $as_echo "$as_me:$LINENO: result: no" >&5
2300 $as_echo "no" >&6; }
2301 fi
2302
2303
2304 fi
2305 if test -z "$ac_cv_prog_STRIP"; then
2306 ac_ct_STRIP=$STRIP
2307 # Extract the first word of "strip", so it can be a program name with args.
2308 set dummy strip; ac_word=$2
2309 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 $as_echo_n "checking for $ac_word... " >&6; }
2311 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2312 $as_echo_n "(cached) " >&6
2313 else
2314 if test -n "$ac_ct_STRIP"; then
2315 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_ac_ct_STRIP="strip"
2325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2335 if test -n "$ac_ct_STRIP"; then
2336 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2337 $as_echo "$ac_ct_STRIP" >&6; }
2338 else
2339 { $as_echo "$as_me:$LINENO: result: no" >&5
2340 $as_echo "no" >&6; }
2341 fi
2342
2343 if test "x$ac_ct_STRIP" = x; then
2344 STRIP=":"
2345 else
2346 case $cross_compiling:$ac_tool_warned in
2347 yes:)
2348 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2350 ac_tool_warned=yes ;;
2351 esac
2352 STRIP=$ac_ct_STRIP
2353 fi
2354 else
2355 STRIP="$ac_cv_prog_STRIP"
2356 fi
2357
2358 fi
2359 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2360
2361 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2362 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2363 if test -z "$MKDIR_P"; then
2364 if test "${ac_cv_path_mkdir+set}" = set; then
2365 $as_echo_n "(cached) " >&6
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2369 do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_prog in mkdir gmkdir; do
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2375 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2376 'mkdir (GNU coreutils) '* | \
2377 'mkdir (coreutils) '* | \
2378 'mkdir (fileutils) '4.1*)
2379 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2380 break 3;;
2381 esac
2382 done
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388
2389 if test "${ac_cv_path_mkdir+set}" = set; then
2390 MKDIR_P="$ac_cv_path_mkdir -p"
2391 else
2392 # As a last resort, use the slow shell script. Don't cache a
2393 # value for MKDIR_P within a source directory, because that will
2394 # break other packages using the cache if that directory is
2395 # removed, or if the value is a relative name.
2396 test -d ./--version && rmdir ./--version
2397 MKDIR_P="$ac_install_sh -d"
2398 fi
2399 fi
2400 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2401 $as_echo "$MKDIR_P" >&6; }
2402
2403 mkdir_p="$MKDIR_P"
2404 case $mkdir_p in
2405 [\\/$]* | ?:[\\/]*) ;;
2406 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2407 esac
2408
2409 for ac_prog in gawk mawk nawk awk
2410 do
2411 # Extract the first word of "$ac_prog", so it can be a program name with args.
2412 set dummy $ac_prog; ac_word=$2
2413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if test "${ac_cv_prog_AWK+set}" = set; then
2416 $as_echo_n "(cached) " >&6
2417 else
2418 if test -n "$AWK"; then
2419 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_AWK="$ac_prog"
2429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 break 2
2431 fi
2432 done
2433 done
2434 IFS=$as_save_IFS
2435
2436 fi
2437 fi
2438 AWK=$ac_cv_prog_AWK
2439 if test -n "$AWK"; then
2440 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2441 $as_echo "$AWK" >&6; }
2442 else
2443 { $as_echo "$as_me:$LINENO: result: no" >&5
2444 $as_echo "no" >&6; }
2445 fi
2446
2447
2448 test -n "$AWK" && break
2449 done
2450
2451 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2452 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2453 set x ${MAKE-make}
2454 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2455 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2456 $as_echo_n "(cached) " >&6
2457 else
2458 cat >conftest.make <<\_ACEOF
2459 SHELL = /bin/sh
2460 all:
2461 @echo '@@@%%%=$(MAKE)=@@@%%%'
2462 _ACEOF
2463 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2464 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2465 *@@@%%%=?*=@@@%%%*)
2466 eval ac_cv_prog_make_${ac_make}_set=yes;;
2467 *)
2468 eval ac_cv_prog_make_${ac_make}_set=no;;
2469 esac
2470 rm -f conftest.make
2471 fi
2472 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2473 { $as_echo "$as_me:$LINENO: result: yes" >&5
2474 $as_echo "yes" >&6; }
2475 SET_MAKE=
2476 else
2477 { $as_echo "$as_me:$LINENO: result: no" >&5
2478 $as_echo "no" >&6; }
2479 SET_MAKE="MAKE=${MAKE-make}"
2480 fi
2481
2482 rm -rf .tst 2>/dev/null
2483 mkdir .tst 2>/dev/null
2484 if test -d .tst; then
2485 am__leading_dot=.
2486 else
2487 am__leading_dot=_
2488 fi
2489 rmdir .tst 2>/dev/null
2490
2491 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2492 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2493 # is not polluted with repeated "-I."
2494 am__isrc=' -I$(srcdir)'
2495 # test to see if srcdir already configured
2496 if test -f $srcdir/config.status; then
2497 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2498 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2499 { (exit 1); exit 1; }; }
2500 fi
2501 fi
2502
2503 # test whether we have cygpath
2504 if test -z "$CYGPATH_W"; then
2505 if (cygpath --version) >/dev/null 2>/dev/null; then
2506 CYGPATH_W='cygpath -w'
2507 else
2508 CYGPATH_W=echo
2509 fi
2510 fi
2511
2512
2513 # Define the identity of the package.
2514 PACKAGE='libsha1'
2515 VERSION='1.21'
2516
2517
2518 # Some tools Automake needs.
2519
2520 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2521
2522
2523 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2524
2525
2526 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2527
2528
2529 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2530
2531
2532 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2533
2534 # We need awk for the "check" target. The system "awk" is bad on
2535 # some platforms.
2536 # Always define AMTAR for backward compatibility.
2537
2538 AMTAR=${AMTAR-"${am_missing_run}tar"}
2539
2540 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2541
2542
2543
2544
2545
2546
2547 if test -d ${srcdir}/../libhmac; then
2548 HMACC_TRUE=
2549 HMACC_FALSE='#'
2550 else
2551 HMACC_TRUE='#'
2552 HMACC_FALSE=
2553 fi
2554
2555
2556 ac_ext=c
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561 if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2563 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if test "${ac_cv_prog_CC+set}" = set; then
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 break 2
2582 fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 CC=$ac_cv_prog_CC
2590 if test -n "$CC"; then
2591 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2592 $as_echo "$CC" >&6; }
2593 else
2594 { $as_echo "$as_me:$LINENO: result: no" >&5
2595 $as_echo "no" >&6; }
2596 fi
2597
2598
2599 fi
2600 if test -z "$ac_cv_prog_CC"; then
2601 ac_ct_CC=$CC
2602 # Extract the first word of "gcc", so it can be a program name with args.
2603 set dummy gcc; ac_word=$2
2604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_ac_ct_CC="gcc"
2620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632 $as_echo "$ac_ct_CC" >&6; }
2633 else
2634 { $as_echo "$as_me:$LINENO: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638 if test "x$ac_ct_CC" = x; then
2639 CC=""
2640 else
2641 case $cross_compiling:$ac_tool_warned in
2642 yes:)
2643 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2645 ac_tool_warned=yes ;;
2646 esac
2647 CC=$ac_ct_CC
2648 fi
2649 else
2650 CC="$ac_cv_prog_CC"
2651 fi
2652
2653 if test -z "$CC"; then
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}cc; ac_word=$2
2657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if test "${ac_cv_prog_CC+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_CC="${ac_tool_prefix}cc"
2673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 CC=$ac_cv_prog_CC
2683 if test -n "$CC"; then
2684 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2685 $as_echo "$CC" >&6; }
2686 else
2687 { $as_echo "$as_me:$LINENO: result: no" >&5
2688 $as_echo "no" >&6; }
2689 fi
2690
2691
2692 fi
2693 fi
2694 if test -z "$CC"; then
2695 # Extract the first word of "cc", so it can be a program name with args.
2696 set dummy cc; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2704 else
2705 ac_prog_rejected=no
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2714 ac_prog_rejected=yes
2715 continue
2716 fi
2717 ac_cv_prog_CC="cc"
2718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 if test $ac_prog_rejected = yes; then
2726 # We found a bogon in the path, so make sure we never use it.
2727 set dummy $ac_cv_prog_CC
2728 shift
2729 if test $# != 0; then
2730 # We chose a different compiler from the bogus one.
2731 # However, it has the same basename, so the bogon will be chosen
2732 # first if we set CC to just the basename; use the full file name.
2733 shift
2734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2735 fi
2736 fi
2737 fi
2738 fi
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2743 else
2744 { $as_echo "$as_me:$LINENO: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749 fi
2750 if test -z "$CC"; then
2751 if test -n "$ac_tool_prefix"; then
2752 for ac_prog in cl.exe
2753 do
2754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2784 $as_echo "$CC" >&6; }
2785 else
2786 { $as_echo "$as_me:$LINENO: result: no" >&5
2787 $as_echo "no" >&6; }
2788 fi
2789
2790
2791 test -n "$CC" && break
2792 done
2793 fi
2794 if test -z "$CC"; then
2795 ac_ct_CC=$CC
2796 for ac_prog in cl.exe
2797 do
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy $ac_prog; ac_word=$2
2800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test -n "$ac_ct_CC"; then
2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_ac_ct_CC="$ac_prog"
2816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826 if test -n "$ac_ct_CC"; then
2827 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2828 $as_echo "$ac_ct_CC" >&6; }
2829 else
2830 { $as_echo "$as_me:$LINENO: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835 test -n "$ac_ct_CC" && break
2836 done
2837
2838 if test "x$ac_ct_CC" = x; then
2839 CC=""
2840 else
2841 case $cross_compiling:$ac_tool_warned in
2842 yes:)
2843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845 ac_tool_warned=yes ;;
2846 esac
2847 CC=$ac_ct_CC
2848 fi
2849 fi
2850
2851 fi
2852
2853
2854 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2856 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2857 See \`config.log' for more details." >&5
2858 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }; }
2861
2862 # Provide some information about the compiler.
2863 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2864 set X $ac_compile
2865 ac_compiler=$2
2866 { (ac_try="$ac_compiler --version >&5"
2867 case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870 esac
2871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872 $as_echo "$ac_try_echo") >&5
2873 (eval "$ac_compiler --version >&5") 2>&5
2874 ac_status=$?
2875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877 { (ac_try="$ac_compiler -v >&5"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883 $as_echo "$ac_try_echo") >&5
2884 (eval "$ac_compiler -v >&5") 2>&5
2885 ac_status=$?
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }
2888 { (ac_try="$ac_compiler -V >&5"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894 $as_echo "$ac_try_echo") >&5
2895 (eval "$ac_compiler -V >&5") 2>&5
2896 ac_status=$?
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899
2900 cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h. */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2906
2907 int
2908 main ()
2909 {
2910
2911 ;
2912 return 0;
2913 }
2914 _ACEOF
2915 ac_clean_files_save=$ac_clean_files
2916 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2917 # Try to create an executable without -o first, disregard a.out.
2918 # It will help us diagnose broken compilers, and finding out an intuition
2919 # of exeext.
2920 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2921 $as_echo_n "checking for C compiler default output file name... " >&6; }
2922 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2923
2924 # The possible output files:
2925 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2926
2927 ac_rmfiles=
2928 for ac_file in $ac_files
2929 do
2930 case $ac_file in
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2932 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2933 esac
2934 done
2935 rm -f $ac_rmfiles
2936
2937 if { (ac_try="$ac_link_default"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943 $as_echo "$ac_try_echo") >&5
2944 (eval "$ac_link_default") 2>&5
2945 ac_status=$?
2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; then
2948 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2949 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2950 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2951 # so that the user can short-circuit this test for compilers unknown to
2952 # Autoconf.
2953 for ac_file in $ac_files ''
2954 do
2955 test -f "$ac_file" || continue
2956 case $ac_file in
2957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2958 ;;
2959 [ab].out )
2960 # We found the default executable, but exeext='' is most
2961 # certainly right.
2962 break;;
2963 *.* )
2964 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2965 then :; else
2966 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967 fi
2968 # We set ac_cv_exeext here because the later test for it is not
2969 # safe: cross compilers may not add the suffix if given an `-o'
2970 # argument, so we may need to know it at that point already.
2971 # Even if this section looks crufty: it has the advantage of
2972 # actually working.
2973 break;;
2974 * )
2975 break;;
2976 esac
2977 done
2978 test "$ac_cv_exeext" = no && ac_cv_exeext=
2979
2980 else
2981 ac_file=''
2982 fi
2983
2984 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2985 $as_echo "$ac_file" >&6; }
2986 if test -z "$ac_file"; then
2987 $as_echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2993 See \`config.log' for more details." >&5
2994 $as_echo "$as_me: error: C compiler cannot create executables
2995 See \`config.log' for more details." >&2;}
2996 { (exit 77); exit 77; }; }; }
2997 fi
2998
2999 ac_exeext=$ac_cv_exeext
3000
3001 # Check that the compiler produces executables we can run. If not, either
3002 # the compiler is broken, or we cross compile.
3003 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3004 $as_echo_n "checking whether the C compiler works... " >&6; }
3005 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3006 # If not cross compiling, check that we can run a simple program.
3007 if test "$cross_compiling" != yes; then
3008 if { ac_try='./$ac_file'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3014 $as_echo "$ac_try_echo") >&5
3015 (eval "$ac_try") 2>&5
3016 ac_status=$?
3017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 cross_compiling=no
3020 else
3021 if test "$cross_compiling" = maybe; then
3022 cross_compiling=yes
3023 else
3024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3027 If you meant to cross compile, use \`--host'.
3028 See \`config.log' for more details." >&5
3029 $as_echo "$as_me: error: cannot run C compiled programs.
3030 If you meant to cross compile, use \`--host'.
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }; }
3033 fi
3034 fi
3035 fi
3036 { $as_echo "$as_me:$LINENO: result: yes" >&5
3037 $as_echo "yes" >&6; }
3038
3039 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3040 ac_clean_files=$ac_clean_files_save
3041 # Check that the compiler produces executables we can run. If not, either
3042 # the compiler is broken, or we cross compile.
3043 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3044 $as_echo_n "checking whether we are cross compiling... " >&6; }
3045 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3046 $as_echo "$cross_compiling" >&6; }
3047
3048 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3049 $as_echo_n "checking for suffix of executables... " >&6; }
3050 if { (ac_try="$ac_link"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3056 $as_echo "$ac_try_echo") >&5
3057 (eval "$ac_link") 2>&5
3058 ac_status=$?
3059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; then
3061 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3062 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3063 # work properly (i.e., refer to `conftest.exe'), while it won't with
3064 # `rm'.
3065 for ac_file in conftest.exe conftest conftest.*; do
3066 test -f "$ac_file" || continue
3067 case $ac_file in
3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070 break;;
3071 * ) break;;
3072 esac
3073 done
3074 else
3075 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details." >&5
3079 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3080 See \`config.log' for more details." >&2;}
3081 { (exit 1); exit 1; }; }; }
3082 fi
3083
3084 rm -f conftest$ac_cv_exeext
3085 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3086 $as_echo "$ac_cv_exeext" >&6; }
3087
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_exeext
3090 ac_exeext=$EXEEXT
3091 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3092 $as_echo_n "checking for suffix of object files... " >&6; }
3093 if test "${ac_cv_objext+set}" = set; then
3094 $as_echo_n "(cached) " >&6
3095 else
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102
3103 int
3104 main ()
3105 {
3106
3107 ;
3108 return 0;
3109 }
3110 _ACEOF
3111 rm -f conftest.o conftest.obj
3112 if { (ac_try="$ac_compile"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3118 $as_echo "$ac_try_echo") >&5
3119 (eval "$ac_compile") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; then
3123 for ac_file in conftest.o conftest.obj conftest.*; do
3124 test -f "$ac_file" || continue;
3125 case $ac_file in
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3128 break;;
3129 esac
3130 done
3131 else
3132 $as_echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3138 See \`config.log' for more details." >&5
3139 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3140 See \`config.log' for more details." >&2;}
3141 { (exit 1); exit 1; }; }; }
3142 fi
3143
3144 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3145 fi
3146 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3147 $as_echo "$ac_cv_objext" >&6; }
3148 OBJEXT=$ac_cv_objext
3149 ac_objext=$OBJEXT
3150 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3151 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3152 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3153 $as_echo_n "(cached) " >&6
3154 else
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h. */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3161
3162 int
3163 main ()
3164 {
3165 #ifndef __GNUC__
3166 choke me
3167 #endif
3168
3169 ;
3170 return 0;
3171 }
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3175 case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3180 $as_echo "$ac_try_echo") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3191 ac_compiler_gnu=yes
3192 else
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 ac_compiler_gnu=no
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3201
3202 fi
3203 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3205 if test $ac_compiler_gnu = yes; then
3206 GCC=yes
3207 else
3208 GCC=
3209 fi
3210 ac_test_CFLAGS=${CFLAGS+set}
3211 ac_save_CFLAGS=$CFLAGS
3212 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3214 if test "${ac_cv_prog_cc_g+set}" = set; then
3215 $as_echo_n "(cached) " >&6
3216 else
3217 ac_save_c_werror_flag=$ac_c_werror_flag
3218 ac_c_werror_flag=yes
3219 ac_cv_prog_cc_g=no
3220 CFLAGS="-g"
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227
3228 int
3229 main ()
3230 {
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3243 $as_echo "$ac_try_echo") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3254 ac_cv_prog_cc_g=yes
3255 else
3256 $as_echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 CFLAGS=""
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266
3267 int
3268 main ()
3269 {
3270
3271 ;
3272 return 0;
3273 }
3274 _ACEOF
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_compile") 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3293 :
3294 else
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3299 CFLAGS="-g"
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306
3307 int
3308 main ()
3309 {
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3322 $as_echo "$ac_try_echo") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } && {
3330 test -z "$ac_c_werror_flag" ||
3331 test ! -s conftest.err
3332 } && test -s conftest.$ac_objext; then
3333 ac_cv_prog_cc_g=yes
3334 else
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338
3339 fi
3340
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 fi
3343
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 fi
3346
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_c_werror_flag=$ac_save_c_werror_flag
3349 fi
3350 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3351 $as_echo "$ac_cv_prog_cc_g" >&6; }
3352 if test "$ac_test_CFLAGS" = set; then
3353 CFLAGS=$ac_save_CFLAGS
3354 elif test $ac_cv_prog_cc_g = yes; then
3355 if test "$GCC" = yes; then
3356 CFLAGS="-g -O2"
3357 else
3358 CFLAGS="-g"
3359 fi
3360 else
3361 if test "$GCC" = yes; then
3362 CFLAGS="-O2"
3363 else
3364 CFLAGS=
3365 fi
3366 fi
3367 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3368 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3369 if test "${ac_cv_prog_cc_c89+set}" = set; then
3370 $as_echo_n "(cached) " >&6
3371 else
3372 ac_cv_prog_cc_c89=no
3373 ac_save_CC=$CC
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 #include <stdarg.h>
3381 #include <stdio.h>
3382 #include <sys/types.h>
3383 #include <sys/stat.h>
3384 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3385 struct buf { int x; };
3386 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3387 static char *e (p, i)
3388 char **p;
3389 int i;
3390 {
3391 return p[i];
3392 }
3393 static char *f (char * (*g) (char **, int), char **p, ...)
3394 {
3395 char *s;
3396 va_list v;
3397 va_start (v,p);
3398 s = g (p, va_arg (v,int));
3399 va_end (v);
3400 return s;
3401 }
3402
3403 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3404 function prototypes and stuff, but not '\xHH' hex character constants.
3405 These don't provoke an error unfortunately, instead are silently treated
3406 as 'x'. The following induces an error, until -std is added to get
3407 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3408 array size at least. It's necessary to write '\x00'==0 to get something
3409 that's true only with -std. */
3410 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411
3412 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3413 inside strings and character constants. */
3414 #define FOO(x) 'x'
3415 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3416
3417 int test (int i, double x);
3418 struct s1 {int (*f) (int a);};
3419 struct s2 {int (*f) (double a);};
3420 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3421 int argc;
3422 char **argv;
3423 int
3424 main ()
3425 {
3426 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3432 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3433 do
3434 CC="$ac_save_CC $ac_arg"
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443 (eval "$ac_compile") 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } && {
3450 test -z "$ac_c_werror_flag" ||
3451 test ! -s conftest.err
3452 } && test -s conftest.$ac_objext; then
3453 ac_cv_prog_cc_c89=$ac_arg
3454 else
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458
3459 fi
3460
3461 rm -f core conftest.err conftest.$ac_objext
3462 test "x$ac_cv_prog_cc_c89" != "xno" && break
3463 done
3464 rm -f conftest.$ac_ext
3465 CC=$ac_save_CC
3466
3467 fi
3468 # AC_CACHE_VAL
3469 case "x$ac_cv_prog_cc_c89" in
3470 x)
3471 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3472 $as_echo "none needed" >&6; } ;;
3473 xno)
3474 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3475 $as_echo "unsupported" >&6; } ;;
3476 *)
3477 CC="$CC $ac_cv_prog_cc_c89"
3478 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3479 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3480 esac
3481
3482
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 DEPDIR="${am__leading_dot}deps"
3489
3490 ac_config_commands="$ac_config_commands depfiles"
3491
3492
3493 am_make=${MAKE-make}
3494 cat > confinc << 'END'
3495 am__doit:
3496 @echo this is the am__doit target
3497 .PHONY: am__doit
3498 END
3499 # If we don't find an include directive, just comment out the code.
3500 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3501 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3502 am__include="#"
3503 am__quote=
3504 _am_result=none
3505 # First try GNU make style include.
3506 echo "include confinc" > confmf
3507 # Ignore all kinds of additional output from `make'.
3508 case `$am_make -s -f confmf 2> /dev/null` in #(
3509 *the\ am__doit\ target*)
3510 am__include=include
3511 am__quote=
3512 _am_result=GNU
3513 ;;
3514 esac
3515 # Now try BSD make style include.
3516 if test "$am__include" = "#"; then
3517 echo '.include "confinc"' > confmf
3518 case `$am_make -s -f confmf 2> /dev/null` in #(
3519 *the\ am__doit\ target*)
3520 am__include=.include
3521 am__quote="\""
3522 _am_result=BSD
3523 ;;
3524 esac
3525 fi
3526
3527
3528 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3529 $as_echo "$_am_result" >&6; }
3530 rm -f confinc confmf
3531
3532 # Check whether --enable-dependency-tracking was given.
3533 if test "${enable_dependency_tracking+set}" = set; then
3534 enableval=$enable_dependency_tracking;
3535 fi
3536
3537 if test "x$enable_dependency_tracking" != xno; then
3538 am_depcomp="$ac_aux_dir/depcomp"
3539 AMDEPBACKSLASH='\'
3540 fi
3541 if test "x$enable_dependency_tracking" != xno; then
3542 AMDEP_TRUE=
3543 AMDEP_FALSE='#'
3544 else
3545 AMDEP_TRUE='#'
3546 AMDEP_FALSE=
3547 fi
3548
3549
3550
3551 depcc="$CC" am_compiler_list=
3552
3553 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3554 $as_echo_n "checking dependency style of $depcc... " >&6; }
3555 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3559 # We make a subdir and do the tests there. Otherwise we can end up
3560 # making bogus files that we don't know about and never remove. For
3561 # instance it was reported that on HP-UX the gcc test will end up
3562 # making a dummy file named `D' -- because `-MD' means `put the output
3563 # in D'.
3564 mkdir conftest.dir
3565 # Copy depcomp to subdir because otherwise we won't find it if we're
3566 # using a relative directory.
3567 cp "$am_depcomp" conftest.dir
3568 cd conftest.dir
3569 # We will build objects and dependencies in a subdirectory because
3570 # it helps to detect inapplicable dependency modes. For instance
3571 # both Tru64's cc and ICC support -MD to output dependencies as a
3572 # side effect of compilation, but ICC will put the dependencies in
3573 # the current directory while Tru64 will put them in the object
3574 # directory.
3575 mkdir sub
3576
3577 am_cv_CC_dependencies_compiler_type=none
3578 if test "$am_compiler_list" = ""; then
3579 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3580 fi
3581 am__universal=false
3582 case " $depcc " in #(
3583 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3584 esac
3585
3586 for depmode in $am_compiler_list; do
3587 # Setup a source with many dependencies, because some compilers
3588 # like to wrap large dependency lists on column 80 (with \), and
3589 # we should not choose a depcomp mode which is confused by this.
3590 #
3591 # We need to recreate these files for each test, as the compiler may
3592 # overwrite some of them when testing with obscure command lines.
3593 # This happens at least with the AIX C compiler.
3594 : > sub/conftest.c
3595 for i in 1 2 3 4 5 6; do
3596 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3597 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3598 # Solaris 8's {/usr,}/bin/sh.
3599 touch sub/conftst$i.h
3600 done
3601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3602
3603 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3604 # mode. It turns out that the SunPro C++ compiler does not properly
3605 # handle `-M -o', and we need to detect this. Also, some Intel
3606 # versions had trouble with output in subdirs
3607 am__obj=sub/conftest.${OBJEXT-o}
3608 am__minus_obj="-o $am__obj"
3609 case $depmode in
3610 gcc)
3611 # This depmode causes a compiler race in universal mode.
3612 test "$am__universal" = false || continue
3613 ;;
3614 nosideeffect)
3615 # after this tag, mechanisms are not by side-effect, so they'll
3616 # only be used when explicitly requested
3617 if test "x$enable_dependency_tracking" = xyes; then
3618 continue
3619 else
3620 break
3621 fi
3622 ;;
3623 msvisualcpp | msvcmsys)
3624 # This compiler won't grok `-c -o', but also, the minuso test has
3625 # not run yet. These depmodes are late enough in the game, and
3626 # so weak that their functioning should not be impacted.
3627 am__obj=conftest.${OBJEXT-o}
3628 am__minus_obj=
3629 ;;
3630 none) break ;;
3631 esac
3632 if depmode=$depmode \
3633 source=sub/conftest.c object=$am__obj \
3634 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3635 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3636 >/dev/null 2>conftest.err &&
3637 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3638 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3639 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3640 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3641 # icc doesn't choke on unknown options, it will just issue warnings
3642 # or remarks (even with -Werror). So we grep stderr for any message
3643 # that says an option was ignored or not supported.
3644 # When given -MP, icc 7.0 and 7.1 complain thusly:
3645 # icc: Command line warning: ignoring option '-M'; no argument required
3646 # The diagnosis changed in icc 8.0:
3647 # icc: Command line remark: option '-MP' not supported
3648 if (grep 'ignoring option' conftest.err ||
3649 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3650 am_cv_CC_dependencies_compiler_type=$depmode
3651 break
3652 fi
3653 fi
3654 done
3655
3656 cd ..
3657 rm -rf conftest.dir
3658 else
3659 am_cv_CC_dependencies_compiler_type=none
3660 fi
3661
3662 fi
3663 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3664 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3665 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3666
3667 if
3668 test "x$enable_dependency_tracking" != xno \
3669 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3670 am__fastdepCC_TRUE=
3671 am__fastdepCC_FALSE='#'
3672 else
3673 am__fastdepCC_TRUE='#'
3674 am__fastdepCC_FALSE=
3675 fi
3676
3677
3678 # Find a good install program. We prefer a C program (faster),
3679 # so one script is as good as another. But avoid the broken or
3680 # incompatible versions:
3681 # SysV /etc/install, /usr/sbin/install
3682 # SunOS /usr/etc/install
3683 # IRIX /sbin/install
3684 # AIX /bin/install
3685 # AmigaOS /C/install, which installs bootblocks on floppy discs
3686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3689 # OS/2's system install, which has a completely different semantic
3690 # ./install, which can be erroneously created by make from ./install.sh.
3691 # Reject install programs that cannot install multiple files.
3692 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3693 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3694 if test -z "$INSTALL"; then
3695 if test "${ac_cv_path_install+set}" = set; then
3696 $as_echo_n "(cached) " >&6
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 # Account for people who put trailing slashes in PATH elements.
3704 case $as_dir/ in
3705 ./ | .// | /cC/* | \
3706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3707 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3708 /usr/ucb/* ) ;;
3709 *)
3710 # OSF1 and SCO ODT 3.0 have their own names for install.
3711 # Don't use installbsd from OSF since it installs stuff as root
3712 # by default.
3713 for ac_prog in ginstall scoinst install; do
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3716 if test $ac_prog = install &&
3717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718 # AIX install. It has an incompatible calling convention.
3719 :
3720 elif test $ac_prog = install &&
3721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3722 # program-specific install script used by HP pwplus--don't use.
3723 :
3724 else
3725 rm -rf conftest.one conftest.two conftest.dir
3726 echo one > conftest.one
3727 echo two > conftest.two
3728 mkdir conftest.dir
3729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3730 test -s conftest.one && test -s conftest.two &&
3731 test -s conftest.dir/conftest.one &&
3732 test -s conftest.dir/conftest.two
3733 then
3734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3735 break 3
3736 fi
3737 fi
3738 fi
3739 done
3740 done
3741 ;;
3742 esac
3743
3744 done
3745 IFS=$as_save_IFS
3746
3747 rm -rf conftest.one conftest.two conftest.dir
3748
3749 fi
3750 if test "${ac_cv_path_install+set}" = set; then
3751 INSTALL=$ac_cv_path_install
3752 else
3753 # As a last resort, use the slow shell script. Don't cache a
3754 # value for INSTALL within a source directory, because that will
3755 # break other packages using the cache if that directory is
3756 # removed, or if the value is a relative name.
3757 INSTALL=$ac_install_sh
3758 fi
3759 fi
3760 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3761 $as_echo "$INSTALL" >&6; }
3762
3763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3764 # It thinks the first close brace ends the variable substitution.
3765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3766
3767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3768
3769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3770
3771 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3772 $as_echo_n "checking whether ln -s works... " >&6; }
3773 LN_S=$as_ln_s
3774 if test "$LN_S" = "ln -s"; then
3775 { $as_echo "$as_me:$LINENO: result: yes" >&5
3776 $as_echo "yes" >&6; }
3777 else
3778 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3779 $as_echo "no, using $LN_S" >&6; }
3780 fi
3781
3782 case `pwd` in
3783 *\ * | *\ *)
3784 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3785 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3786 esac
3787
3788
3789
3790 macro_version='2.2.6'
3791 macro_revision='1.3012'
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805 ltmain="$ac_aux_dir/ltmain.sh"
3806
3807 # Make sure we can run config.sub.
3808 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3809 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3810 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3811 { (exit 1); exit 1; }; }
3812
3813 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3814 $as_echo_n "checking build system type... " >&6; }
3815 if test "${ac_cv_build+set}" = set; then
3816 $as_echo_n "(cached) " >&6
3817 else
3818 ac_build_alias=$build_alias
3819 test "x$ac_build_alias" = x &&
3820 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3821 test "x$ac_build_alias" = x &&
3822 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3823 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3824 { (exit 1); exit 1; }; }
3825 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3826 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3827 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3828 { (exit 1); exit 1; }; }
3829
3830 fi
3831 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3832 $as_echo "$ac_cv_build" >&6; }
3833 case $ac_cv_build in
3834 *-*-*) ;;
3835 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3836 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3837 { (exit 1); exit 1; }; };;
3838 esac
3839 build=$ac_cv_build
3840 ac_save_IFS=$IFS; IFS='-'
3841 set x $ac_cv_build
3842 shift
3843 build_cpu=$1
3844 build_vendor=$2
3845 shift; shift
3846 # Remember, the first character of IFS is used to create $*,
3847 # except with old shells:
3848 build_os=$*
3849 IFS=$ac_save_IFS
3850 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3851
3852
3853 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3854 $as_echo_n "checking host system type... " >&6; }
3855 if test "${ac_cv_host+set}" = set; then
3856 $as_echo_n "(cached) " >&6
3857 else
3858 if test "x$host_alias" = x; then
3859 ac_cv_host=$ac_cv_build
3860 else
3861 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3862 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3863 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3864 { (exit 1); exit 1; }; }
3865 fi
3866
3867 fi
3868 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3869 $as_echo "$ac_cv_host" >&6; }
3870 case $ac_cv_host in
3871 *-*-*) ;;
3872 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3873 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3874 { (exit 1); exit 1; }; };;
3875 esac
3876 host=$ac_cv_host
3877 ac_save_IFS=$IFS; IFS='-'
3878 set x $ac_cv_host
3879 shift
3880 host_cpu=$1
3881 host_vendor=$2
3882 shift; shift
3883 # Remember, the first character of IFS is used to create $*,
3884 # except with old shells:
3885 host_os=$*
3886 IFS=$ac_save_IFS
3887 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3888
3889
3890 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3891 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3892 if test "${ac_cv_path_SED+set}" = set; then
3893 $as_echo_n "(cached) " >&6
3894 else
3895 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3896 for ac_i in 1 2 3 4 5 6 7; do
3897 ac_script="$ac_script$as_nl$ac_script"
3898 done
3899 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3900 $as_unset ac_script || ac_script=
3901 if test -z "$SED"; then
3902 ac_path_SED_found=false
3903 # Loop through the user's path and test for each of PROGNAME-LIST
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_prog in sed gsed; do
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3912 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3913 # Check for GNU ac_path_SED and select it if it is found.
3914 # Check for GNU $ac_path_SED
3915 case `"$ac_path_SED" --version 2>&1` in
3916 *GNU*)
3917 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3918 *)
3919 ac_count=0
3920 $as_echo_n 0123456789 >"conftest.in"
3921 while :
3922 do
3923 cat "conftest.in" "conftest.in" >"conftest.tmp"
3924 mv "conftest.tmp" "conftest.in"
3925 cp "conftest.in" "conftest.nl"
3926 $as_echo '' >> "conftest.nl"
3927 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929 ac_count=`expr $ac_count + 1`
3930 if test $ac_count -gt ${ac_path_SED_max-0}; then
3931 # Best one so far, save it but keep looking for a better one
3932 ac_cv_path_SED="$ac_path_SED"
3933 ac_path_SED_max=$ac_count
3934 fi
3935 # 10*(2^10) chars as input seems more than enough
3936 test $ac_count -gt 10 && break
3937 done
3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939 esac
3940
3941 $ac_path_SED_found && break 3
3942 done
3943 done
3944 done
3945 IFS=$as_save_IFS
3946 if test -z "$ac_cv_path_SED"; then
3947 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3948 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3949 { (exit 1); exit 1; }; }
3950 fi
3951 else
3952 ac_cv_path_SED=$SED
3953 fi
3954
3955 fi
3956 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3957 $as_echo "$ac_cv_path_SED" >&6; }
3958 SED="$ac_cv_path_SED"
3959 rm -f conftest.sed
3960
3961 test -z "$SED" && SED=sed
3962 Xsed="$SED -e 1s/^X//"
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3975 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3976 if test "${ac_cv_path_GREP+set}" = set; then
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if test -z "$GREP"; then
3980 ac_path_GREP_found=false
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984 do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in grep ggrep; do
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3990 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3991 # Check for GNU ac_path_GREP and select it if it is found.
3992 # Check for GNU $ac_path_GREP
3993 case `"$ac_path_GREP" --version 2>&1` in
3994 *GNU*)
3995 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3996 *)
3997 ac_count=0
3998 $as_echo_n 0123456789 >"conftest.in"
3999 while :
4000 do
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
4004 $as_echo 'GREP' >> "conftest.nl"
4005 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007 ac_count=`expr $ac_count + 1`
4008 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4009 # Best one so far, save it but keep looking for a better one
4010 ac_cv_path_GREP="$ac_path_GREP"
4011 ac_path_GREP_max=$ac_count
4012 fi
4013 # 10*(2^10) chars as input seems more than enough
4014 test $ac_count -gt 10 && break
4015 done
4016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4017 esac
4018
4019 $ac_path_GREP_found && break 3
4020 done
4021 done
4022 done
4023 IFS=$as_save_IFS
4024 if test -z "$ac_cv_path_GREP"; then
4025 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027 { (exit 1); exit 1; }; }
4028 fi
4029 else
4030 ac_cv_path_GREP=$GREP
4031 fi
4032
4033 fi
4034 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4035 $as_echo "$ac_cv_path_GREP" >&6; }
4036 GREP="$ac_cv_path_GREP"
4037
4038
4039 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4040 $as_echo_n "checking for egrep... " >&6; }
4041 if test "${ac_cv_path_EGREP+set}" = set; then
4042 $as_echo_n "(cached) " >&6
4043 else
4044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4045 then ac_cv_path_EGREP="$GREP -E"
4046 else
4047 if test -z "$EGREP"; then
4048 ac_path_EGREP_found=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_prog in egrep; do
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4058 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4059 # Check for GNU ac_path_EGREP and select it if it is found.
4060 # Check for GNU $ac_path_EGREP
4061 case `"$ac_path_EGREP" --version 2>&1` in
4062 *GNU*)
4063 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4064 *)
4065 ac_count=0
4066 $as_echo_n 0123456789 >"conftest.in"
4067 while :
4068 do
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo 'EGREP' >> "conftest.nl"
4073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075 ac_count=`expr $ac_count + 1`
4076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_EGREP="$ac_path_EGREP"
4079 ac_path_EGREP_max=$ac_count
4080 fi
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4083 done
4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 esac
4086
4087 $ac_path_EGREP_found && break 3
4088 done
4089 done
4090 done
4091 IFS=$as_save_IFS
4092 if test -z "$ac_cv_path_EGREP"; then
4093 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4094 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4095 { (exit 1); exit 1; }; }
4096 fi
4097 else
4098 ac_cv_path_EGREP=$EGREP
4099 fi
4100
4101 fi
4102 fi
4103 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4104 $as_echo "$ac_cv_path_EGREP" >&6; }
4105 EGREP="$ac_cv_path_EGREP"
4106
4107
4108 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4109 $as_echo_n "checking for fgrep... " >&6; }
4110 if test "${ac_cv_path_FGREP+set}" = set; then
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4114 then ac_cv_path_FGREP="$GREP -F"
4115 else
4116 if test -z "$FGREP"; then
4117 ac_path_FGREP_found=false
4118 # Loop through the user's path and test for each of PROGNAME-LIST
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4121 do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_prog in fgrep; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4127 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4128 # Check for GNU ac_path_FGREP and select it if it is found.
4129 # Check for GNU $ac_path_FGREP
4130 case `"$ac_path_FGREP" --version 2>&1` in
4131 *GNU*)
4132 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4133 *)
4134 ac_count=0
4135 $as_echo_n 0123456789 >"conftest.in"
4136 while :
4137 do
4138 cat "conftest.in" "conftest.in" >"conftest.tmp"
4139 mv "conftest.tmp" "conftest.in"
4140 cp "conftest.in" "conftest.nl"
4141 $as_echo 'FGREP' >> "conftest.nl"
4142 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4144 ac_count=`expr $ac_count + 1`
4145 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4146 # Best one so far, save it but keep looking for a better one
4147 ac_cv_path_FGREP="$ac_path_FGREP"
4148 ac_path_FGREP_max=$ac_count
4149 fi
4150 # 10*(2^10) chars as input seems more than enough
4151 test $ac_count -gt 10 && break
4152 done
4153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4154 esac
4155
4156 $ac_path_FGREP_found && break 3
4157 done
4158 done
4159 done
4160 IFS=$as_save_IFS
4161 if test -z "$ac_cv_path_FGREP"; then
4162 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4163 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4164 { (exit 1); exit 1; }; }
4165 fi
4166 else
4167 ac_cv_path_FGREP=$FGREP
4168 fi
4169
4170 fi
4171 fi
4172 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4173 $as_echo "$ac_cv_path_FGREP" >&6; }
4174 FGREP="$ac_cv_path_FGREP"
4175
4176
4177 test -z "$GREP" && GREP=grep
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197 # Check whether --with-gnu-ld was given.
4198 if test "${with_gnu_ld+set}" = set; then
4199 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4200 else
4201 with_gnu_ld=no
4202 fi
4203
4204 ac_prog=ld
4205 if test "$GCC" = yes; then
4206 # Check if gcc -print-prog-name=ld gives a path.
4207 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4208 $as_echo_n "checking for ld used by $CC... " >&6; }
4209 case $host in
4210 *-*-mingw*)
4211 # gcc leaves a trailing carriage return which upsets mingw
4212 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4213 *)
4214 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4215 esac
4216 case $ac_prog in
4217 # Accept absolute paths.
4218 [\\/]* | ?:[\\/]*)
4219 re_direlt='/[^/][^/]*/\.\./'
4220 # Canonicalize the pathname of ld
4221 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4222 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4223 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4224 done
4225 test -z "$LD" && LD="$ac_prog"
4226 ;;
4227 "")
4228 # If it fails, then pretend we aren't using GCC.
4229 ac_prog=ld
4230 ;;
4231 *)
4232 # If it is relative, then search for the first ld in PATH.
4233 with_gnu_ld=unknown
4234 ;;
4235 esac
4236 elif test "$with_gnu_ld" = yes; then
4237 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4238 $as_echo_n "checking for GNU ld... " >&6; }
4239 else
4240 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4241 $as_echo_n "checking for non-GNU ld... " >&6; }
4242 fi
4243 if test "${lt_cv_path_LD+set}" = set; then
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -z "$LD"; then
4247 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4248 for ac_dir in $PATH; do
4249 IFS="$lt_save_ifs"
4250 test -z "$ac_dir" && ac_dir=.
4251 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4252 lt_cv_path_LD="$ac_dir/$ac_prog"
4253 # Check to see if the program is GNU ld. I'd rather use --version,
4254 # but apparently some variants of GNU ld only accept -v.
4255 # Break only if it was the GNU/non-GNU ld that we prefer.
4256 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4257 *GNU* | *'with BFD'*)
4258 test "$with_gnu_ld" != no && break
4259 ;;
4260 *)
4261 test "$with_gnu_ld" != yes && break
4262 ;;
4263 esac
4264 fi
4265 done
4266 IFS="$lt_save_ifs"
4267 else
4268 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4269 fi
4270 fi
4271
4272 LD="$lt_cv_path_LD"
4273 if test -n "$LD"; then
4274 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4275 $as_echo "$LD" >&6; }
4276 else
4277 { $as_echo "$as_me:$LINENO: result: no" >&5
4278 $as_echo "no" >&6; }
4279 fi
4280 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4281 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4282 { (exit 1); exit 1; }; }
4283 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4284 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4285 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4286 $as_echo_n "(cached) " >&6
4287 else
4288 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4289 case `$LD -v 2>&1 </dev/null` in
4290 *GNU* | *'with BFD'*)
4291 lt_cv_prog_gnu_ld=yes
4292 ;;
4293 *)
4294 lt_cv_prog_gnu_ld=no
4295 ;;
4296 esac
4297 fi
4298 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4299 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4300 with_gnu_ld=$lt_cv_prog_gnu_ld
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4311 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4312 if test "${lt_cv_path_NM+set}" = set; then
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$NM"; then
4316 # Let the user override the test.
4317 lt_cv_path_NM="$NM"
4318 else
4319 lt_nm_to_check="${ac_tool_prefix}nm"
4320 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4321 lt_nm_to_check="$lt_nm_to_check nm"
4322 fi
4323 for lt_tmp_nm in $lt_nm_to_check; do
4324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4325 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4326 IFS="$lt_save_ifs"
4327 test -z "$ac_dir" && ac_dir=.
4328 tmp_nm="$ac_dir/$lt_tmp_nm"
4329 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4330 # Check to see if the nm accepts a BSD-compat flag.
4331 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4332 # nm: unknown option "B" ignored
4333 # Tru64's nm complains that /dev/null is an invalid object file
4334 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4335 */dev/null* | *'Invalid file or object type'*)
4336 lt_cv_path_NM="$tmp_nm -B"
4337 break
4338 ;;
4339 *)
4340 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4341 */dev/null*)
4342 lt_cv_path_NM="$tmp_nm -p"
4343 break
4344 ;;
4345 *)
4346 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4347 continue # so that we can try to find one that supports BSD flags
4348 ;;
4349 esac
4350 ;;
4351 esac
4352 fi
4353 done
4354 IFS="$lt_save_ifs"
4355 done
4356 : ${lt_cv_path_NM=no}
4357 fi
4358 fi
4359 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4360 $as_echo "$lt_cv_path_NM" >&6; }
4361 if test "$lt_cv_path_NM" != "no"; then
4362 NM="$lt_cv_path_NM"
4363 else
4364 # Didn't find any BSD compatible name lister, look for dumpbin.
4365 if test -n "$ac_tool_prefix"; then
4366 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4367 do
4368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4373 $as_echo_n "(cached) " >&6
4374 else
4375 if test -n "$DUMPBIN"; then
4376 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4388 fi
4389 done
4390 done
4391 IFS=$as_save_IFS
4392
4393 fi
4394 fi
4395 DUMPBIN=$ac_cv_prog_DUMPBIN
4396 if test -n "$DUMPBIN"; then
4397 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4398 $as_echo "$DUMPBIN" >&6; }
4399 else
4400 { $as_echo "$as_me:$LINENO: result: no" >&5
4401 $as_echo "no" >&6; }
4402 fi
4403
4404
4405 test -n "$DUMPBIN" && break
4406 done
4407 fi
4408 if test -z "$DUMPBIN"; then
4409 ac_ct_DUMPBIN=$DUMPBIN
4410 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4411 do
4412 # Extract the first word of "$ac_prog", so it can be a program name with args.
4413 set dummy $ac_prog; ac_word=$2
4414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4417 $as_echo_n "(cached) " >&6
4418 else
4419 if test -n "$ac_ct_DUMPBIN"; then
4420 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433 done
4434 done
4435 IFS=$as_save_IFS
4436
4437 fi
4438 fi
4439 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4440 if test -n "$ac_ct_DUMPBIN"; then
4441 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4442 $as_echo "$ac_ct_DUMPBIN" >&6; }
4443 else
4444 { $as_echo "$as_me:$LINENO: result: no" >&5
4445 $as_echo "no" >&6; }
4446 fi
4447
4448
4449 test -n "$ac_ct_DUMPBIN" && break
4450 done
4451
4452 if test "x$ac_ct_DUMPBIN" = x; then
4453 DUMPBIN=":"
4454 else
4455 case $cross_compiling:$ac_tool_warned in
4456 yes:)
4457 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4459 ac_tool_warned=yes ;;
4460 esac
4461 DUMPBIN=$ac_ct_DUMPBIN
4462 fi
4463 fi
4464
4465
4466 if test "$DUMPBIN" != ":"; then
4467 NM="$DUMPBIN"
4468 fi
4469 fi
4470 test -z "$NM" && NM=nm
4471
4472
4473
4474
4475
4476
4477 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4478 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4479 if test "${lt_cv_nm_interface+set}" = set; then
4480 $as_echo_n "(cached) " >&6
4481 else
4482 lt_cv_nm_interface="BSD nm"
4483 echo "int some_variable = 0;" > conftest.$ac_ext
4484 (eval echo "\"\$as_me:4484: $ac_compile\"" >&5)
4485 (eval "$ac_compile" 2>conftest.err)
4486 cat conftest.err >&5
4487 (eval echo "\"\$as_me:4487: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4488 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4489 cat conftest.err >&5
4490 (eval echo "\"\$as_me:4490: output\"" >&5)
4491 cat conftest.out >&5
4492 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4493 lt_cv_nm_interface="MS dumpbin"
4494 fi
4495 rm -f conftest*
4496 fi
4497 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4498 $as_echo "$lt_cv_nm_interface" >&6; }
4499
4500 # find the maximum length of command line arguments
4501 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4502 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4503 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4504 $as_echo_n "(cached) " >&6
4505 else
4506 i=0
4507 teststring="ABCD"
4508
4509 case $build_os in
4510 msdosdjgpp*)
4511 # On DJGPP, this test can blow up pretty badly due to problems in libc
4512 # (any single argument exceeding 2000 bytes causes a buffer overrun
4513 # during glob expansion). Even if it were fixed, the result of this
4514 # check would be larger than it should be.
4515 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4516 ;;
4517
4518 gnu*)
4519 # Under GNU Hurd, this test is not required because there is
4520 # no limit to the length of command line arguments.
4521 # Libtool will interpret -1 as no limit whatsoever
4522 lt_cv_sys_max_cmd_len=-1;
4523 ;;
4524
4525 cygwin* | mingw* | cegcc*)
4526 # On Win9x/ME, this test blows up -- it succeeds, but takes
4527 # about 5 minutes as the teststring grows exponentially.
4528 # Worse, since 9x/ME are not pre-emptively multitasking,
4529 # you end up with a "frozen" computer, even though with patience
4530 # the test eventually succeeds (with a max line length of 256k).
4531 # Instead, let's just punt: use the minimum linelength reported by
4532 # all of the supported platforms: 8192 (on NT/2K/XP).
4533 lt_cv_sys_max_cmd_len=8192;
4534 ;;
4535
4536 amigaos*)
4537 # On AmigaOS with pdksh, this test takes hours, literally.
4538 # So we just punt and use a minimum line length of 8192.
4539 lt_cv_sys_max_cmd_len=8192;
4540 ;;
4541
4542 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4543 # This has been around since 386BSD, at least. Likely further.
4544 if test -x /sbin/sysctl; then
4545 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4546 elif test -x /usr/sbin/sysctl; then
4547 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4548 else
4549 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4550 fi
4551 # And add a safety zone
4552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4554 ;;
4555
4556 interix*)
4557 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4558 lt_cv_sys_max_cmd_len=196608
4559 ;;
4560
4561 osf*)
4562 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4563 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4564 # nice to cause kernel panics so lets avoid the loop below.
4565 # First set a reasonable default.
4566 lt_cv_sys_max_cmd_len=16384
4567 #
4568 if test -x /sbin/sysconfig; then
4569 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4570 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4571 esac
4572 fi
4573 ;;
4574 sco3.2v5*)
4575 lt_cv_sys_max_cmd_len=102400
4576 ;;
4577 sysv5* | sco5v6* | sysv4.2uw2*)
4578 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4579 if test -n "$kargmax"; then
4580 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4581 else
4582 lt_cv_sys_max_cmd_len=32768
4583 fi
4584 ;;
4585 *)
4586 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4587 if test -n "$lt_cv_sys_max_cmd_len"; then
4588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4590 else
4591 # Make teststring a little bigger before we do anything with it.
4592 # a 1K string should be a reasonable start.
4593 for i in 1 2 3 4 5 6 7 8 ; do
4594 teststring=$teststring$teststring
4595 done
4596 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4597 # If test is not a shell built-in, we'll probably end up computing a
4598 # maximum length that is only half of the actual maximum length, but
4599 # we can't tell.
4600 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4601 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4602 test $i != 17 # 1/2 MB should be enough
4603 do
4604 i=`expr $i + 1`
4605 teststring=$teststring$teststring
4606 done
4607 # Only check the string length outside the loop.
4608 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4609 teststring=
4610 # Add a significant safety factor because C++ compilers can tack on
4611 # massive amounts of additional arguments before passing them to the
4612 # linker. It appears as though 1/2 is a usable value.
4613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4614 fi
4615 ;;
4616 esac
4617
4618 fi
4619
4620 if test -n $lt_cv_sys_max_cmd_len ; then
4621 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4622 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4623 else
4624 { $as_echo "$as_me:$LINENO: result: none" >&5
4625 $as_echo "none" >&6; }
4626 fi
4627 max_cmd_len=$lt_cv_sys_max_cmd_len
4628
4629
4630
4631
4632
4633
4634 : ${CP="cp -f"}
4635 : ${MV="mv -f"}
4636 : ${RM="rm -f"}
4637
4638 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4639 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4640 # Try some XSI features
4641 xsi_shell=no
4642 ( _lt_dummy="a/b/c"
4643 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4644 = c,a/b,, \
4645 && eval 'test $(( 1 + 1 )) -eq 2 \
4646 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4647 && xsi_shell=yes
4648 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4649 $as_echo "$xsi_shell" >&6; }
4650
4651
4652 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4653 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4654 lt_shell_append=no
4655 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4656 >/dev/null 2>&1 \
4657 && lt_shell_append=yes
4658 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4659 $as_echo "$lt_shell_append" >&6; }
4660
4661
4662 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4663 lt_unset=unset
4664 else
4665 lt_unset=false
4666 fi
4667
4668
4669
4670
4671
4672 # test EBCDIC or ASCII
4673 case `echo X|tr X '\101'` in
4674 A) # ASCII based system
4675 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4676 lt_SP2NL='tr \040 \012'
4677 lt_NL2SP='tr \015\012 \040\040'
4678 ;;
4679 *) # EBCDIC based system
4680 lt_SP2NL='tr \100 \n'
4681 lt_NL2SP='tr \r\n \100\100'
4682 ;;
4683 esac
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4694 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4695 if test "${lt_cv_ld_reload_flag+set}" = set; then
4696 $as_echo_n "(cached) " >&6
4697 else
4698 lt_cv_ld_reload_flag='-r'
4699 fi
4700 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4701 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4702 reload_flag=$lt_cv_ld_reload_flag
4703 case $reload_flag in
4704 "" | " "*) ;;
4705 *) reload_flag=" $reload_flag" ;;
4706 esac
4707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4708 case $host_os in
4709 darwin*)
4710 if test "$GCC" = yes; then
4711 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4712 else
4713 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4714 fi
4715 ;;
4716 esac
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726 if test -n "$ac_tool_prefix"; then
4727 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4728 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4732 $as_echo_n "(cached) " >&6
4733 else
4734 if test -n "$OBJDUMP"; then
4735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4736 else
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752 fi
4753 fi
4754 OBJDUMP=$ac_cv_prog_OBJDUMP
4755 if test -n "$OBJDUMP"; then
4756 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4757 $as_echo "$OBJDUMP" >&6; }
4758 else
4759 { $as_echo "$as_me:$LINENO: result: no" >&5
4760 $as_echo "no" >&6; }
4761 fi
4762
4763
4764 fi
4765 if test -z "$ac_cv_prog_OBJDUMP"; then
4766 ac_ct_OBJDUMP=$OBJDUMP
4767 # Extract the first word of "objdump", so it can be a program name with args.
4768 set dummy objdump; ac_word=$2
4769 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -n "$ac_ct_OBJDUMP"; then
4775 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4785 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788 done
4789 done
4790 IFS=$as_save_IFS
4791
4792 fi
4793 fi
4794 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4795 if test -n "$ac_ct_OBJDUMP"; then
4796 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4797 $as_echo "$ac_ct_OBJDUMP" >&6; }
4798 else
4799 { $as_echo "$as_me:$LINENO: result: no" >&5
4800 $as_echo "no" >&6; }
4801 fi
4802
4803 if test "x$ac_ct_OBJDUMP" = x; then
4804 OBJDUMP="false"
4805 else
4806 case $cross_compiling:$ac_tool_warned in
4807 yes:)
4808 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4810 ac_tool_warned=yes ;;
4811 esac
4812 OBJDUMP=$ac_ct_OBJDUMP
4813 fi
4814 else
4815 OBJDUMP="$ac_cv_prog_OBJDUMP"
4816 fi
4817
4818 test -z "$OBJDUMP" && OBJDUMP=objdump
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4829 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4830 if test "${lt_cv_deplibs_check_method+set}" = set; then
4831 $as_echo_n "(cached) " >&6
4832 else
4833 lt_cv_file_magic_cmd='$MAGIC_CMD'
4834 lt_cv_file_magic_test_file=
4835 lt_cv_deplibs_check_method='unknown'
4836 # Need to set the preceding variable on all platforms that support
4837 # interlibrary dependencies.
4838 # 'none' -- dependencies not supported.
4839 # `unknown' -- same as none, but documents that we really don't know.
4840 # 'pass_all' -- all dependencies passed with no checks.
4841 # 'test_compile' -- check by making test program.
4842 # 'file_magic [[regex]]' -- check by looking for files in library path
4843 # which responds to the $file_magic_cmd with a given extended regex.
4844 # If you have `file' or equivalent on your system and you're not sure
4845 # whether `pass_all' will *always* work, you probably want this one.
4846
4847 case $host_os in
4848 aix[4-9]*)
4849 lt_cv_deplibs_check_method=pass_all
4850 ;;
4851
4852 beos*)
4853 lt_cv_deplibs_check_method=pass_all
4854 ;;
4855
4856 bsdi[45]*)
4857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4858 lt_cv_file_magic_cmd='/usr/bin/file -L'
4859 lt_cv_file_magic_test_file=/shlib/libc.so
4860 ;;
4861
4862 cygwin*)
4863 # func_win32_libid is a shell function defined in ltmain.sh
4864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4865 lt_cv_file_magic_cmd='func_win32_libid'
4866 ;;
4867
4868 mingw* | pw32*)
4869 # Base MSYS/MinGW do not provide the 'file' command needed by
4870 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4871 # unless we find 'file', for example because we are cross-compiling.
4872 if ( file / ) >/dev/null 2>&1; then
4873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4874 lt_cv_file_magic_cmd='func_win32_libid'
4875 else
4876 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4877 lt_cv_file_magic_cmd='$OBJDUMP -f'
4878 fi
4879 ;;
4880
4881 cegcc)
4882 # use the weaker test based on 'objdump'. See mingw*.
4883 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4884 lt_cv_file_magic_cmd='$OBJDUMP -f'
4885 ;;
4886
4887 darwin* | rhapsody*)
4888 lt_cv_deplibs_check_method=pass_all
4889 ;;
4890
4891 freebsd* | dragonfly*)
4892 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4893 case $host_cpu in
4894 i*86 )
4895 # Not sure whether the presence of OpenBSD here was a mistake.
4896 # Let's accept both of them until this is cleared up.
4897 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4898 lt_cv_file_magic_cmd=/usr/bin/file
4899 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4900 ;;
4901 esac
4902 else
4903 lt_cv_deplibs_check_method=pass_all
4904 fi
4905 ;;
4906
4907 gnu*)
4908 lt_cv_deplibs_check_method=pass_all
4909 ;;
4910
4911 hpux10.20* | hpux11*)
4912 lt_cv_file_magic_cmd=/usr/bin/file
4913 case $host_cpu in
4914 ia64*)
4915 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4916 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4917 ;;
4918 hppa*64*)
4919 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]'
4920 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4921 ;;
4922 *)
4923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4924 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4925 ;;
4926 esac
4927 ;;
4928
4929 interix[3-9]*)
4930 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4932 ;;
4933
4934 irix5* | irix6* | nonstopux*)
4935 case $LD in
4936 *-32|*"-32 ") libmagic=32-bit;;
4937 *-n32|*"-n32 ") libmagic=N32;;
4938 *-64|*"-64 ") libmagic=64-bit;;
4939 *) libmagic=never-match;;
4940 esac
4941 lt_cv_deplibs_check_method=pass_all
4942 ;;
4943
4944 # This must be Linux ELF.
4945 linux* | k*bsd*-gnu)
4946 lt_cv_deplibs_check_method=pass_all
4947 ;;
4948
4949 netbsd*)
4950 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4952 else
4953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4954 fi
4955 ;;
4956
4957 newos6*)
4958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4959 lt_cv_file_magic_cmd=/usr/bin/file
4960 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4961 ;;
4962
4963 *nto* | *qnx*)
4964 lt_cv_deplibs_check_method=pass_all
4965 ;;
4966
4967 openbsd*)
4968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4970 else
4971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4972 fi
4973 ;;
4974
4975 osf3* | osf4* | osf5*)
4976 lt_cv_deplibs_check_method=pass_all
4977 ;;
4978
4979 rdos*)
4980 lt_cv_deplibs_check_method=pass_all
4981 ;;
4982
4983 solaris*)
4984 lt_cv_deplibs_check_method=pass_all
4985 ;;
4986
4987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4988 lt_cv_deplibs_check_method=pass_all
4989 ;;
4990
4991 sysv4 | sysv4.3*)
4992 case $host_vendor in
4993 motorola)
4994 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]'
4995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4996 ;;
4997 ncr)
4998 lt_cv_deplibs_check_method=pass_all
4999 ;;
5000 sequent)
5001 lt_cv_file_magic_cmd='/bin/file'
5002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5003 ;;
5004 sni)
5005 lt_cv_file_magic_cmd='/bin/file'
5006 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5007 lt_cv_file_magic_test_file=/lib/libc.so
5008 ;;
5009 siemens)
5010 lt_cv_deplibs_check_method=pass_all
5011 ;;
5012 pc)
5013 lt_cv_deplibs_check_method=pass_all
5014 ;;
5015 esac
5016 ;;
5017
5018 tpf*)
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
5021 esac
5022
5023 fi
5024 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5025 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5026 file_magic_cmd=$lt_cv_file_magic_cmd
5027 deplibs_check_method=$lt_cv_deplibs_check_method
5028 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041 if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5043 set dummy ${ac_tool_prefix}ar; ac_word=$2
5044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_AR+set}" = set; then
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$AR"; then
5050 ac_cv_prog_AR="$AR" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_AR="${ac_tool_prefix}ar"
5060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063 done
5064 done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 AR=$ac_cv_prog_AR
5070 if test -n "$AR"; then
5071 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5072 $as_echo "$AR" >&6; }
5073 else
5074 { $as_echo "$as_me:$LINENO: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078
5079 fi
5080 if test -z "$ac_cv_prog_AR"; then
5081 ac_ct_AR=$AR
5082 # Extract the first word of "ar", so it can be a program name with args.
5083 set dummy ar; ac_word=$2
5084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5087 $as_echo_n "(cached) " >&6
5088 else
5089 if test -n "$ac_ct_AR"; then
5090 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_ac_ct_AR="ar"
5100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5102 fi
5103 done
5104 done
5105 IFS=$as_save_IFS
5106
5107 fi
5108 fi
5109 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5110 if test -n "$ac_ct_AR"; then
5111 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5112 $as_echo "$ac_ct_AR" >&6; }
5113 else
5114 { $as_echo "$as_me:$LINENO: result: no" >&5
5115 $as_echo "no" >&6; }
5116 fi
5117
5118 if test "x$ac_ct_AR" = x; then
5119 AR="false"
5120 else
5121 case $cross_compiling:$ac_tool_warned in
5122 yes:)
5123 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5125 ac_tool_warned=yes ;;
5126 esac
5127 AR=$ac_ct_AR
5128 fi
5129 else
5130 AR="$ac_cv_prog_AR"
5131 fi
5132
5133 test -z "$AR" && AR=ar
5134 test -z "$AR_FLAGS" && AR_FLAGS=cru
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}strip; ac_word=$2
5149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if test "${ac_cv_prog_STRIP+set}" = set; then
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -n "$STRIP"; then
5155 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5167 fi
5168 done
5169 done
5170 IFS=$as_save_IFS
5171
5172 fi
5173 fi
5174 STRIP=$ac_cv_prog_STRIP
5175 if test -n "$STRIP"; then
5176 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5177 $as_echo "$STRIP" >&6; }
5178 else
5179 { $as_echo "$as_me:$LINENO: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182
5183
5184 fi
5185 if test -z "$ac_cv_prog_STRIP"; then
5186 ac_ct_STRIP=$STRIP
5187 # Extract the first word of "strip", so it can be a program name with args.
5188 set dummy strip; ac_word=$2
5189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5192 $as_echo_n "(cached) " >&6
5193 else
5194 if test -n "$ac_ct_STRIP"; then
5195 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_prog_ac_ct_STRIP="strip"
5205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208 done
5209 done
5210 IFS=$as_save_IFS
5211
5212 fi
5213 fi
5214 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5215 if test -n "$ac_ct_STRIP"; then
5216 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5217 $as_echo "$ac_ct_STRIP" >&6; }
5218 else
5219 { $as_echo "$as_me:$LINENO: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223 if test "x$ac_ct_STRIP" = x; then
5224 STRIP=":"
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227 yes:)
5228 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5231 esac
5232 STRIP=$ac_ct_STRIP
5233 fi
5234 else
5235 STRIP="$ac_cv_prog_STRIP"
5236 fi
5237
5238 test -z "$STRIP" && STRIP=:
5239
5240
5241
5242
5243
5244
5245 if test -n "$ac_tool_prefix"; then
5246 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5247 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_prog_RANLIB+set}" = set; then
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$RANLIB"; then
5254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267 done
5268 done
5269 IFS=$as_save_IFS
5270
5271 fi
5272 fi
5273 RANLIB=$ac_cv_prog_RANLIB
5274 if test -n "$RANLIB"; then
5275 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5276 $as_echo "$RANLIB" >&6; }
5277 else
5278 { $as_echo "$as_me:$LINENO: result: no" >&5
5279 $as_echo "no" >&6; }
5280 fi
5281
5282
5283 fi
5284 if test -z "$ac_cv_prog_RANLIB"; then
5285 ac_ct_RANLIB=$RANLIB
5286 # Extract the first word of "ranlib", so it can be a program name with args.
5287 set dummy ranlib; ac_word=$2
5288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5291 $as_echo_n "(cached) " >&6
5292 else
5293 if test -n "$ac_ct_RANLIB"; then
5294 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5298 do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_prog_ac_ct_RANLIB="ranlib"
5304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5306 fi
5307 done
5308 done
5309 IFS=$as_save_IFS
5310
5311 fi
5312 fi
5313 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5314 if test -n "$ac_ct_RANLIB"; then
5315 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5316 $as_echo "$ac_ct_RANLIB" >&6; }
5317 else
5318 { $as_echo "$as_me:$LINENO: result: no" >&5
5319 $as_echo "no" >&6; }
5320 fi
5321
5322 if test "x$ac_ct_RANLIB" = x; then
5323 RANLIB=":"
5324 else
5325 case $cross_compiling:$ac_tool_warned in
5326 yes:)
5327 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5329 ac_tool_warned=yes ;;
5330 esac
5331 RANLIB=$ac_ct_RANLIB
5332 fi
5333 else
5334 RANLIB="$ac_cv_prog_RANLIB"
5335 fi
5336
5337 test -z "$RANLIB" && RANLIB=:
5338
5339
5340
5341
5342
5343
5344 # Determine commands to create old-style static archives.
5345 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5346 old_postinstall_cmds='chmod 644 $oldlib'
5347 old_postuninstall_cmds=
5348
5349 if test -n "$RANLIB"; then
5350 case $host_os in
5351 openbsd*)
5352 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5353 ;;
5354 *)
5355 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5356 ;;
5357 esac
5358 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5359 fi
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394 # If no C compiler was specified, use CC.
5395 LTCC=${LTCC-"$CC"}
5396
5397 # If no C compiler flags were specified, use CFLAGS.
5398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5399
5400 # Allow CC to be a program name with arguments.
5401 compiler=$CC
5402
5403
5404 # Check for command to grab the raw symbol name followed by C symbol from nm.
5405 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5406 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5407 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5408 $as_echo_n "(cached) " >&6
5409 else
5410
5411 # These are sane defaults that work on at least a few old systems.
5412 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5413
5414 # Character class describing NM global symbol codes.
5415 symcode='[BCDEGRST]'
5416
5417 # Regexp to match symbols that can be accessed directly from C.
5418 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5419
5420 # Define system-specific variables.
5421 case $host_os in
5422 aix*)
5423 symcode='[BCDT]'
5424 ;;
5425 cygwin* | mingw* | pw32* | cegcc*)
5426 symcode='[ABCDGISTW]'
5427 ;;
5428 hpux*)
5429 if test "$host_cpu" = ia64; then
5430 symcode='[ABCDEGRST]'
5431 fi
5432 ;;
5433 irix* | nonstopux*)
5434 symcode='[BCDEGRST]'
5435 ;;
5436 osf*)
5437 symcode='[BCDEGQRST]'
5438 ;;
5439 solaris*)
5440 symcode='[BDRT]'
5441 ;;
5442 sco3.2v5*)
5443 symcode='[DT]'
5444 ;;
5445 sysv4.2uw2*)
5446 symcode='[DT]'
5447 ;;
5448 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5449 symcode='[ABDT]'
5450 ;;
5451 sysv4)
5452 symcode='[DFNSTU]'
5453 ;;
5454 esac
5455
5456 # If we're using GNU nm, then use its standard symbol codes.
5457 case `$NM -V 2>&1` in
5458 *GNU* | *'with BFD'*)
5459 symcode='[ABCDGIRSTW]' ;;
5460 esac
5461
5462 # Transform an extracted symbol line into a proper C declaration.
5463 # Some systems (esp. on ia64) link data and code symbols differently,
5464 # so use this general approach.
5465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5466
5467 # Transform an extracted symbol line into symbol name and symbol address
5468 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5469 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'"
5470
5471 # Handle CRLF in mingw tool chain
5472 opt_cr=
5473 case $build_os in
5474 mingw*)
5475 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5476 ;;
5477 esac
5478
5479 # Try without a prefix underscore, then with it.
5480 for ac_symprfx in "" "_"; do
5481
5482 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5483 symxfrm="\\1 $ac_symprfx\\2 \\2"
5484
5485 # Write the raw and C identifiers.
5486 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5487 # Fake it for dumpbin and say T for any non-static function
5488 # and D for any global variable.
5489 # Also find C++ and __fastcall symbols from MSVC++,
5490 # which start with @ or ?.
5491 lt_cv_sys_global_symbol_pipe="$AWK '"\
5492 " {last_section=section; section=\$ 3};"\
5493 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5494 " \$ 0!~/External *\|/{next};"\
5495 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5496 " {if(hide[section]) next};"\
5497 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5498 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5499 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5500 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5501 " ' prfx=^$ac_symprfx"
5502 else
5503 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5504 fi
5505
5506 # Check to see that the pipe works correctly.
5507 pipe_works=no
5508
5509 rm -f conftest*
5510 cat > conftest.$ac_ext <<_LT_EOF
5511 #ifdef __cplusplus
5512 extern "C" {
5513 #endif
5514 char nm_test_var;
5515 void nm_test_func(void);
5516 void nm_test_func(void){}
5517 #ifdef __cplusplus
5518 }
5519 #endif
5520 int main(){nm_test_var='a';nm_test_func();return(0);}
5521 _LT_EOF
5522
5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524 (eval $ac_compile) 2>&5
5525 ac_status=$?
5526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; then
5528 # Now try to grab the symbols.
5529 nlist=conftest.nm
5530 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5531 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5532 ac_status=$?
5533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && test -s "$nlist"; then
5535 # Try sorting and uniquifying the output.
5536 if sort "$nlist" | uniq > "$nlist"T; then
5537 mv -f "$nlist"T "$nlist"
5538 else
5539 rm -f "$nlist"T
5540 fi
5541
5542 # Make sure that we snagged all the symbols we need.
5543 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5544 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5545 cat <<_LT_EOF > conftest.$ac_ext
5546 #ifdef __cplusplus
5547 extern "C" {
5548 #endif
5549
5550 _LT_EOF
5551 # Now generate the symbol file.
5552 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5553
5554 cat <<_LT_EOF >> conftest.$ac_ext
5555
5556 /* The mapping between symbol names and symbols. */
5557 const struct {
5558 const char *name;
5559 void *address;
5560 }
5561 lt__PROGRAM__LTX_preloaded_symbols[] =
5562 {
5563 { "@PROGRAM@", (void *) 0 },
5564 _LT_EOF
5565 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5566 cat <<\_LT_EOF >> conftest.$ac_ext
5567 {0, (void *) 0}
5568 };
5569
5570 /* This works around a problem in FreeBSD linker */
5571 #ifdef FREEBSD_WORKAROUND
5572 static const void *lt_preloaded_setup() {
5573 return lt__PROGRAM__LTX_preloaded_symbols;
5574 }
5575 #endif
5576
5577 #ifdef __cplusplus
5578 }
5579 #endif
5580 _LT_EOF
5581 # Now try linking the two files.
5582 mv conftest.$ac_objext conftstm.$ac_objext
5583 lt_save_LIBS="$LIBS"
5584 lt_save_CFLAGS="$CFLAGS"
5585 LIBS="conftstm.$ac_objext"
5586 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>&5
5589 ac_status=$?
5590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5592 pipe_works=yes
5593 fi
5594 LIBS="$lt_save_LIBS"
5595 CFLAGS="$lt_save_CFLAGS"
5596 else
5597 echo "cannot find nm_test_func in $nlist" >&5
5598 fi
5599 else
5600 echo "cannot find nm_test_var in $nlist" >&5
5601 fi
5602 else
5603 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5604 fi
5605 else
5606 echo "$progname: failed program was:" >&5
5607 cat conftest.$ac_ext >&5
5608 fi
5609 rm -rf conftest* conftst*
5610
5611 # Do not use the global_symbol_pipe unless it works.
5612 if test "$pipe_works" = yes; then
5613 break
5614 else
5615 lt_cv_sys_global_symbol_pipe=
5616 fi
5617 done
5618
5619 fi
5620
5621 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5622 lt_cv_sys_global_symbol_to_cdecl=
5623 fi
5624 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5625 { $as_echo "$as_me:$LINENO: result: failed" >&5
5626 $as_echo "failed" >&6; }
5627 else
5628 { $as_echo "$as_me:$LINENO: result: ok" >&5
5629 $as_echo "ok" >&6; }
5630 fi
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654 # Check whether --enable-libtool-lock was given.
5655 if test "${enable_libtool_lock+set}" = set; then
5656 enableval=$enable_libtool_lock;
5657 fi
5658
5659 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5660
5661 # Some flags need to be propagated to the compiler or linker for good
5662 # libtool support.
5663 case $host in
5664 ia64-*-hpux*)
5665 # Find out which ABI we are using.
5666 echo 'int i;' > conftest.$ac_ext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5668 (eval $ac_compile) 2>&5
5669 ac_status=$?
5670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; then
5672 case `/usr/bin/file conftest.$ac_objext` in
5673 *ELF-32*)
5674 HPUX_IA64_MODE="32"
5675 ;;
5676 *ELF-64*)
5677 HPUX_IA64_MODE="64"
5678 ;;
5679 esac
5680 fi
5681 rm -rf conftest*
5682 ;;
5683 *-*-irix6*)
5684 # Find out which ABI we are using.
5685 echo '#line 5685 "configure"' > conftest.$ac_ext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>&5
5688 ac_status=$?
5689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; then
5691 if test "$lt_cv_prog_gnu_ld" = yes; then
5692 case `/usr/bin/file conftest.$ac_objext` in
5693 *32-bit*)
5694 LD="${LD-ld} -melf32bsmip"
5695 ;;
5696 *N32*)
5697 LD="${LD-ld} -melf32bmipn32"
5698 ;;
5699 *64-bit*)
5700 LD="${LD-ld} -melf64bmip"
5701 ;;
5702 esac
5703 else
5704 case `/usr/bin/file conftest.$ac_objext` in
5705 *32-bit*)
5706 LD="${LD-ld} -32"
5707 ;;
5708 *N32*)
5709 LD="${LD-ld} -n32"
5710 ;;
5711 *64-bit*)
5712 LD="${LD-ld} -64"
5713 ;;
5714 esac
5715 fi
5716 fi
5717 rm -rf conftest*
5718 ;;
5719
5720 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5721 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5722 # Find out which ABI we are using.
5723 echo 'int i;' > conftest.$ac_ext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725 (eval $ac_compile) 2>&5
5726 ac_status=$?
5727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; then
5729 case `/usr/bin/file conftest.o` in
5730 *32-bit*)
5731 case $host in
5732 x86_64-*kfreebsd*-gnu)
5733 LD="${LD-ld} -m elf_i386_fbsd"
5734 ;;
5735 x86_64-*linux*)
5736 LD="${LD-ld} -m elf_i386"
5737 ;;
5738 ppc64-*linux*|powerpc64-*linux*)
5739 LD="${LD-ld} -m elf32ppclinux"
5740 ;;
5741 s390x-*linux*)
5742 LD="${LD-ld} -m elf_s390"
5743 ;;
5744 sparc64-*linux*)
5745 LD="${LD-ld} -m elf32_sparc"
5746 ;;
5747 esac
5748 ;;
5749 *64-bit*)
5750 case $host in
5751 x86_64-*kfreebsd*-gnu)
5752 LD="${LD-ld} -m elf_x86_64_fbsd"
5753 ;;
5754 x86_64-*linux*)
5755 LD="${LD-ld} -m elf_x86_64"
5756 ;;
5757 ppc*-*linux*|powerpc*-*linux*)
5758 LD="${LD-ld} -m elf64ppc"
5759 ;;
5760 s390*-*linux*|s390*-*tpf*)
5761 LD="${LD-ld} -m elf64_s390"
5762 ;;
5763 sparc*-*linux*)
5764 LD="${LD-ld} -m elf64_sparc"
5765 ;;
5766 esac
5767 ;;
5768 esac
5769 fi
5770 rm -rf conftest*
5771 ;;
5772
5773 *-*-sco3.2v5*)
5774 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5775 SAVE_CFLAGS="$CFLAGS"
5776 CFLAGS="$CFLAGS -belf"
5777 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5778 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5779 if test "${lt_cv_cc_needs_belf+set}" = set; then
5780 $as_echo_n "(cached) " >&6
5781 else
5782 ac_ext=c
5783 ac_cpp='$CPP $CPPFLAGS'
5784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787
5788 cat >conftest.$ac_ext <<_ACEOF
5789 /* confdefs.h. */
5790 _ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5794
5795 int
5796 main ()
5797 {
5798
5799 ;
5800 return 0;
5801 }
5802 _ACEOF
5803 rm -f conftest.$ac_objext conftest$ac_exeext
5804 if { (ac_try="$ac_link"
5805 case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808 esac
5809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5810 $as_echo "$ac_try_echo") >&5
5811 (eval "$ac_link") 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } && {
5818 test -z "$ac_c_werror_flag" ||
5819 test ! -s conftest.err
5820 } && test -s conftest$ac_exeext && {
5821 test "$cross_compiling" = yes ||
5822 $as_test_x conftest$ac_exeext
5823 }; then
5824 lt_cv_cc_needs_belf=yes
5825 else
5826 $as_echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 lt_cv_cc_needs_belf=no
5830 fi
5831
5832 rm -rf conftest.dSYM
5833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5834 conftest$ac_exeext conftest.$ac_ext
5835 ac_ext=c
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840
5841 fi
5842 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5843 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5844 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5845 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5846 CFLAGS="$SAVE_CFLAGS"
5847 fi
5848 ;;
5849 sparc*-*solaris*)
5850 # Find out which ABI we are using.
5851 echo 'int i;' > conftest.$ac_ext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 2>&5
5854 ac_status=$?
5855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; then
5857 case `/usr/bin/file conftest.o` in
5858 *64-bit*)
5859 case $lt_cv_prog_gnu_ld in
5860 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5861 *)
5862 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5863 LD="${LD-ld} -64"
5864 fi
5865 ;;
5866 esac
5867 ;;
5868 esac
5869 fi
5870 rm -rf conftest*
5871 ;;
5872 esac
5873
5874 need_locks="$enable_libtool_lock"
5875
5876
5877 case $host_os in
5878 rhapsody* | darwin*)
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5881 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5882 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5885 $as_echo_n "(cached) " >&6
5886 else
5887 if test -n "$DSYMUTIL"; then
5888 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901 done
5902 done
5903 IFS=$as_save_IFS
5904
5905 fi
5906 fi
5907 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5908 if test -n "$DSYMUTIL"; then
5909 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5910 $as_echo "$DSYMUTIL" >&6; }
5911 else
5912 { $as_echo "$as_me:$LINENO: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915
5916
5917 fi
5918 if test -z "$ac_cv_prog_DSYMUTIL"; then
5919 ac_ct_DSYMUTIL=$DSYMUTIL
5920 # Extract the first word of "dsymutil", so it can be a program name with args.
5921 set dummy dsymutil; ac_word=$2
5922 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$ac_ct_DSYMUTIL"; then
5928 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5948 if test -n "$ac_ct_DSYMUTIL"; then
5949 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5950 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5951 else
5952 { $as_echo "$as_me:$LINENO: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956 if test "x$ac_ct_DSYMUTIL" = x; then
5957 DSYMUTIL=":"
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960 yes:)
5961 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned=yes ;;
5964 esac
5965 DSYMUTIL=$ac_ct_DSYMUTIL
5966 fi
5967 else
5968 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5969 fi
5970
5971 if test -n "$ac_tool_prefix"; then
5972 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5973 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5974 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5975 $as_echo_n "checking for $ac_word... " >&6; }
5976 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5977 $as_echo_n "(cached) " >&6
5978 else
5979 if test -n "$NMEDIT"; then
5980 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985 IFS=$as_save_IFS
5986 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5989 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 break 2
5992 fi
5993 done
5994 done
5995 IFS=$as_save_IFS
5996
5997 fi
5998 fi
5999 NMEDIT=$ac_cv_prog_NMEDIT
6000 if test -n "$NMEDIT"; then
6001 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6002 $as_echo "$NMEDIT" >&6; }
6003 else
6004 { $as_echo "$as_me:$LINENO: result: no" >&5
6005 $as_echo "no" >&6; }
6006 fi
6007
6008
6009 fi
6010 if test -z "$ac_cv_prog_NMEDIT"; then
6011 ac_ct_NMEDIT=$NMEDIT
6012 # Extract the first word of "nmedit", so it can be a program name with args.
6013 set dummy nmedit; ac_word=$2
6014 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6017 $as_echo_n "(cached) " >&6
6018 else
6019 if test -n "$ac_ct_NMEDIT"; then
6020 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6032 fi
6033 done
6034 done
6035 IFS=$as_save_IFS
6036
6037 fi
6038 fi
6039 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6040 if test -n "$ac_ct_NMEDIT"; then
6041 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6042 $as_echo "$ac_ct_NMEDIT" >&6; }
6043 else
6044 { $as_echo "$as_me:$LINENO: result: no" >&5
6045 $as_echo "no" >&6; }
6046 fi
6047
6048 if test "x$ac_ct_NMEDIT" = x; then
6049 NMEDIT=":"
6050 else
6051 case $cross_compiling:$ac_tool_warned in
6052 yes:)
6053 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6055 ac_tool_warned=yes ;;
6056 esac
6057 NMEDIT=$ac_ct_NMEDIT
6058 fi
6059 else
6060 NMEDIT="$ac_cv_prog_NMEDIT"
6061 fi
6062
6063 if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6065 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if test "${ac_cv_prog_LIPO+set}" = set; then
6069 $as_echo_n "(cached) " >&6
6070 else
6071 if test -n "$LIPO"; then
6072 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6084 fi
6085 done
6086 done
6087 IFS=$as_save_IFS
6088
6089 fi
6090 fi
6091 LIPO=$ac_cv_prog_LIPO
6092 if test -n "$LIPO"; then
6093 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6094 $as_echo "$LIPO" >&6; }
6095 else
6096 { $as_echo "$as_me:$LINENO: result: no" >&5
6097 $as_echo "no" >&6; }
6098 fi
6099
6100
6101 fi
6102 if test -z "$ac_cv_prog_LIPO"; then
6103 ac_ct_LIPO=$LIPO
6104 # Extract the first word of "lipo", so it can be a program name with args.
6105 set dummy lipo; ac_word=$2
6106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if test -n "$ac_ct_LIPO"; then
6112 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_prog_ac_ct_LIPO="lipo"
6122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6132 if test -n "$ac_ct_LIPO"; then
6133 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6134 $as_echo "$ac_ct_LIPO" >&6; }
6135 else
6136 { $as_echo "$as_me:$LINENO: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140 if test "x$ac_ct_LIPO" = x; then
6141 LIPO=":"
6142 else
6143 case $cross_compiling:$ac_tool_warned in
6144 yes:)
6145 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6147 ac_tool_warned=yes ;;
6148 esac
6149 LIPO=$ac_ct_LIPO
6150 fi
6151 else
6152 LIPO="$ac_cv_prog_LIPO"
6153 fi
6154
6155 if test -n "$ac_tool_prefix"; then
6156 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6157 set dummy ${ac_tool_prefix}otool; ac_word=$2
6158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if test "${ac_cv_prog_OTOOL+set}" = set; then
6161 $as_echo_n "(cached) " >&6
6162 else
6163 if test -n "$OTOOL"; then
6164 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6168 do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6176 fi
6177 done
6178 done
6179 IFS=$as_save_IFS
6180
6181 fi
6182 fi
6183 OTOOL=$ac_cv_prog_OTOOL
6184 if test -n "$OTOOL"; then
6185 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6186 $as_echo "$OTOOL" >&6; }
6187 else
6188 { $as_echo "$as_me:$LINENO: result: no" >&5
6189 $as_echo "no" >&6; }
6190 fi
6191
6192
6193 fi
6194 if test -z "$ac_cv_prog_OTOOL"; then
6195 ac_ct_OTOOL=$OTOOL
6196 # Extract the first word of "otool", so it can be a program name with args.
6197 set dummy otool; ac_word=$2
6198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6202 else
6203 if test -n "$ac_ct_OTOOL"; then
6204 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213 ac_cv_prog_ac_ct_OTOOL="otool"
6214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6216 fi
6217 done
6218 done
6219 IFS=$as_save_IFS
6220
6221 fi
6222 fi
6223 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6224 if test -n "$ac_ct_OTOOL"; then
6225 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6226 $as_echo "$ac_ct_OTOOL" >&6; }
6227 else
6228 { $as_echo "$as_me:$LINENO: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231
6232 if test "x$ac_ct_OTOOL" = x; then
6233 OTOOL=":"
6234 else
6235 case $cross_compiling:$ac_tool_warned in
6236 yes:)
6237 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239 ac_tool_warned=yes ;;
6240 esac
6241 OTOOL=$ac_ct_OTOOL
6242 fi
6243 else
6244 OTOOL="$ac_cv_prog_OTOOL"
6245 fi
6246
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6253 $as_echo_n "(cached) " >&6
6254 else
6255 if test -n "$OTOOL64"; then
6256 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269 done
6270 done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 OTOOL64=$ac_cv_prog_OTOOL64
6276 if test -n "$OTOOL64"; then
6277 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6278 $as_echo "$OTOOL64" >&6; }
6279 else
6280 { $as_echo "$as_me:$LINENO: result: no" >&5
6281 $as_echo "no" >&6; }
6282 fi
6283
6284
6285 fi
6286 if test -z "$ac_cv_prog_OTOOL64"; then
6287 ac_ct_OTOOL64=$OTOOL64
6288 # Extract the first word of "otool64", so it can be a program name with args.
6289 set dummy otool64; ac_word=$2
6290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6293 $as_echo_n "(cached) " >&6
6294 else
6295 if test -n "$ac_ct_OTOOL64"; then
6296 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_ac_ct_OTOOL64="otool64"
6306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6316 if test -n "$ac_ct_OTOOL64"; then
6317 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6318 $as_echo "$ac_ct_OTOOL64" >&6; }
6319 else
6320 { $as_echo "$as_me:$LINENO: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324 if test "x$ac_ct_OTOOL64" = x; then
6325 OTOOL64=":"
6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned=yes ;;
6332 esac
6333 OTOOL64=$ac_ct_OTOOL64
6334 fi
6335 else
6336 OTOOL64="$ac_cv_prog_OTOOL64"
6337 fi
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6366 $as_echo_n "checking for -single_module linker flag... " >&6; }
6367 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6368 $as_echo_n "(cached) " >&6
6369 else
6370 lt_cv_apple_cc_single_mod=no
6371 if test -z "${LT_MULTI_MODULE}"; then
6372 # By default we will add the -single_module flag. You can override
6373 # by either setting the environment variable LT_MULTI_MODULE
6374 # non-empty at configure time, or by adding -multi_module to the
6375 # link flags.
6376 rm -rf libconftest.dylib*
6377 echo "int foo(void){return 1;}" > conftest.c
6378 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6379 -dynamiclib -Wl,-single_module conftest.c" >&5
6380 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6381 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6382 _lt_result=$?
6383 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6384 lt_cv_apple_cc_single_mod=yes
6385 else
6386 cat conftest.err >&5
6387 fi
6388 rm -rf libconftest.dylib*
6389 rm -f conftest.*
6390 fi
6391 fi
6392 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6393 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6394 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6395 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6396 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6397 $as_echo_n "(cached) " >&6
6398 else
6399 lt_cv_ld_exported_symbols_list=no
6400 save_LDFLAGS=$LDFLAGS
6401 echo "_main" > conftest.sym
6402 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h. */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409
6410 int
6411 main ()
6412 {
6413
6414 ;
6415 return 0;
6416 }
6417 _ACEOF
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (ac_try="$ac_link"
6420 case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6425 $as_echo "$ac_try_echo") >&5
6426 (eval "$ac_link") 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext && {
6436 test "$cross_compiling" = yes ||
6437 $as_test_x conftest$ac_exeext
6438 }; then
6439 lt_cv_ld_exported_symbols_list=yes
6440 else
6441 $as_echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 lt_cv_ld_exported_symbols_list=no
6445 fi
6446
6447 rm -rf conftest.dSYM
6448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6449 conftest$ac_exeext conftest.$ac_ext
6450 LDFLAGS="$save_LDFLAGS"
6451
6452 fi
6453 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6454 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6455 case $host_os in
6456 rhapsody* | darwin1.[012])
6457 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6458 darwin1.*)
6459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6460 darwin*) # darwin 5.x on
6461 # if running on 10.5 or later, the deployment target defaults
6462 # to the OS version, if on x86, and 10.4, the deployment
6463 # target defaults to 10.4. Don't you love it?
6464 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6465 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6467 10.[012]*)
6468 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6469 10.*)
6470 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6471 esac
6472 ;;
6473 esac
6474 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6475 _lt_dar_single_mod='$single_module'
6476 fi
6477 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6478 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6479 else
6480 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6481 fi
6482 if test "$DSYMUTIL" != ":"; then
6483 _lt_dsymutil='~$DSYMUTIL $lib || :'
6484 else
6485 _lt_dsymutil=
6486 fi
6487 ;;
6488 esac
6489
6490 ac_ext=c
6491 ac_cpp='$CPP $CPPFLAGS'
6492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6495 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6496 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6497 # On Suns, sometimes $CPP names a directory.
6498 if test -n "$CPP" && test -d "$CPP"; then
6499 CPP=
6500 fi
6501 if test -z "$CPP"; then
6502 if test "${ac_cv_prog_CPP+set}" = set; then
6503 $as_echo_n "(cached) " >&6
6504 else
6505 # Double quotes because CPP needs to be expanded
6506 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6507 do
6508 ac_preproc_ok=false
6509 for ac_c_preproc_warn_flag in '' yes
6510 do
6511 # Use a header file that comes with gcc, so configuring glibc
6512 # with a fresh cross-compiler works.
6513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6514 # <limits.h> exists even on freestanding compilers.
6515 # On the NeXT, cc -E runs the code through the compiler's parser,
6516 # not just through cpp. "Syntax error" is here to catch this case.
6517 cat >conftest.$ac_ext <<_ACEOF
6518 /* confdefs.h. */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6523 #ifdef __STDC__
6524 # include <limits.h>
6525 #else
6526 # include <assert.h>
6527 #endif
6528 Syntax error
6529 _ACEOF
6530 if { (ac_try="$ac_cpp conftest.$ac_ext"
6531 case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534 esac
6535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6536 $as_echo "$ac_try_echo") >&5
6537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } >/dev/null && {
6544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 }; then
6547 :
6548 else
6549 $as_echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 # Broken: fails on valid input.
6553 continue
6554 fi
6555
6556 rm -f conftest.err conftest.$ac_ext
6557
6558 # OK, works on sane cases. Now check whether nonexistent headers
6559 # can be detected and how.
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 #include <ac_nonexistent.h>
6567 _ACEOF
6568 if { (ac_try="$ac_cpp conftest.$ac_ext"
6569 case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6572 esac
6573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6574 $as_echo "$ac_try_echo") >&5
6575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } >/dev/null && {
6582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6583 test ! -s conftest.err
6584 }; then
6585 # Broken: success on invalid input.
6586 continue
6587 else
6588 $as_echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 # Passes both tests.
6592 ac_preproc_ok=:
6593 break
6594 fi
6595
6596 rm -f conftest.err conftest.$ac_ext
6597
6598 done
6599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6600 rm -f conftest.err conftest.$ac_ext
6601 if $ac_preproc_ok; then
6602 break
6603 fi
6604
6605 done
6606 ac_cv_prog_CPP=$CPP
6607
6608 fi
6609 CPP=$ac_cv_prog_CPP
6610 else
6611 ac_cv_prog_CPP=$CPP
6612 fi
6613 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6614 $as_echo "$CPP" >&6; }
6615 ac_preproc_ok=false
6616 for ac_c_preproc_warn_flag in '' yes
6617 do
6618 # Use a header file that comes with gcc, so configuring glibc
6619 # with a fresh cross-compiler works.
6620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6621 # <limits.h> exists even on freestanding compilers.
6622 # On the NeXT, cc -E runs the code through the compiler's parser,
6623 # not just through cpp. "Syntax error" is here to catch this case.
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #ifdef __STDC__
6631 # include <limits.h>
6632 #else
6633 # include <assert.h>
6634 #endif
6635 Syntax error
6636 _ACEOF
6637 if { (ac_try="$ac_cpp conftest.$ac_ext"
6638 case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641 esac
6642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643 $as_echo "$ac_try_echo") >&5
6644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } >/dev/null && {
6651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6652 test ! -s conftest.err
6653 }; then
6654 :
6655 else
6656 $as_echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6658
6659 # Broken: fails on valid input.
6660 continue
6661 fi
6662
6663 rm -f conftest.err conftest.$ac_ext
6664
6665 # OK, works on sane cases. Now check whether nonexistent headers
6666 # can be detected and how.
6667 cat >conftest.$ac_ext <<_ACEOF
6668 /* confdefs.h. */
6669 _ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673 #include <ac_nonexistent.h>
6674 _ACEOF
6675 if { (ac_try="$ac_cpp conftest.$ac_ext"
6676 case "(($ac_try" in
6677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678 *) ac_try_echo=$ac_try;;
6679 esac
6680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6681 $as_echo "$ac_try_echo") >&5
6682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6683 ac_status=$?
6684 grep -v '^ *+' conftest.er1 >conftest.err
6685 rm -f conftest.er1
6686 cat conftest.err >&5
6687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } >/dev/null && {
6689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6690 test ! -s conftest.err
6691 }; then
6692 # Broken: success on invalid input.
6693 continue
6694 else
6695 $as_echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698 # Passes both tests.
6699 ac_preproc_ok=:
6700 break
6701 fi
6702
6703 rm -f conftest.err conftest.$ac_ext
6704
6705 done
6706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6707 rm -f conftest.err conftest.$ac_ext
6708 if $ac_preproc_ok; then
6709 :
6710 else
6711 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6713 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6714 See \`config.log' for more details." >&5
6715 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6716 See \`config.log' for more details." >&2;}
6717 { (exit 1); exit 1; }; }; }
6718 fi
6719
6720 ac_ext=c
6721 ac_cpp='$CPP $CPPFLAGS'
6722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6725
6726
6727 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6728 $as_echo_n "checking for ANSI C header files... " >&6; }
6729 if test "${ac_cv_header_stdc+set}" = set; then
6730 $as_echo_n "(cached) " >&6
6731 else
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <stdlib.h>
6739 #include <stdarg.h>
6740 #include <string.h>
6741 #include <float.h>
6742
6743 int
6744 main ()
6745 {
6746
6747 ;
6748 return 0;
6749 }
6750 _ACEOF
6751 rm -f conftest.$ac_objext
6752 if { (ac_try="$ac_compile"
6753 case "(($ac_try" in
6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755 *) ac_try_echo=$ac_try;;
6756 esac
6757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6758 $as_echo "$ac_try_echo") >&5
6759 (eval "$ac_compile") 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } && {
6766 test -z "$ac_c_werror_flag" ||
6767 test ! -s conftest.err
6768 } && test -s conftest.$ac_objext; then
6769 ac_cv_header_stdc=yes
6770 else
6771 $as_echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774 ac_cv_header_stdc=no
6775 fi
6776
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778
6779 if test $ac_cv_header_stdc = yes; then
6780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <string.h>
6788
6789 _ACEOF
6790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6791 $EGREP "memchr" >/dev/null 2>&1; then
6792 :
6793 else
6794 ac_cv_header_stdc=no
6795 fi
6796 rm -f conftest*
6797
6798 fi
6799
6800 if test $ac_cv_header_stdc = yes; then
6801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6802 cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h. */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 #include <stdlib.h>
6809
6810 _ACEOF
6811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6812 $EGREP "free" >/dev/null 2>&1; then
6813 :
6814 else
6815 ac_cv_header_stdc=no
6816 fi
6817 rm -f conftest*
6818
6819 fi
6820
6821 if test $ac_cv_header_stdc = yes; then
6822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6823 if test "$cross_compiling" = yes; then
6824 :
6825 else
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include <ctype.h>
6833 #include <stdlib.h>
6834 #if ((' ' & 0x0FF) == 0x020)
6835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6837 #else
6838 # define ISLOWER(c) \
6839 (('a' <= (c) && (c) <= 'i') \
6840 || ('j' <= (c) && (c) <= 'r') \
6841 || ('s' <= (c) && (c) <= 'z'))
6842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6843 #endif
6844
6845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6846 int
6847 main ()
6848 {
6849 int i;
6850 for (i = 0; i < 256; i++)
6851 if (XOR (islower (i), ISLOWER (i))
6852 || toupper (i) != TOUPPER (i))
6853 return 2;
6854 return 0;
6855 }
6856 _ACEOF
6857 rm -f conftest$ac_exeext
6858 if { (ac_try="$ac_link"
6859 case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6862 esac
6863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6864 $as_echo "$ac_try_echo") >&5
6865 (eval "$ac_link") 2>&5
6866 ac_status=$?
6867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6869 { (case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872 esac
6873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6874 $as_echo "$ac_try_echo") >&5
6875 (eval "$ac_try") 2>&5
6876 ac_status=$?
6877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 :
6880 else
6881 $as_echo "$as_me: program exited with status $ac_status" >&5
6882 $as_echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 ( exit $ac_status )
6886 ac_cv_header_stdc=no
6887 fi
6888 rm -rf conftest.dSYM
6889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6890 fi
6891
6892
6893 fi
6894 fi
6895 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6896 $as_echo "$ac_cv_header_stdc" >&6; }
6897 if test $ac_cv_header_stdc = yes; then
6898
6899 cat >>confdefs.h <<\_ACEOF
6900 #define STDC_HEADERS 1
6901 _ACEOF
6902
6903 fi
6904
6905 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6916 inttypes.h stdint.h unistd.h
6917 do
6918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6920 $as_echo_n "checking for $ac_header... " >&6; }
6921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6922 $as_echo_n "(cached) " >&6
6923 else
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6931
6932 #include <$ac_header>
6933 _ACEOF
6934 rm -f conftest.$ac_objext
6935 if { (ac_try="$ac_compile"
6936 case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939 esac
6940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6941 $as_echo "$ac_try_echo") >&5
6942 (eval "$ac_compile") 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } && {
6949 test -z "$ac_c_werror_flag" ||
6950 test ! -s conftest.err
6951 } && test -s conftest.$ac_objext; then
6952 eval "$as_ac_Header=yes"
6953 else
6954 $as_echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957 eval "$as_ac_Header=no"
6958 fi
6959
6960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 fi
6962 ac_res=`eval 'as_val=${'$as_ac_Header'}
6963 $as_echo "$as_val"'`
6964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6965 $as_echo "$ac_res" >&6; }
6966 as_val=`eval 'as_val=${'$as_ac_Header'}
6967 $as_echo "$as_val"'`
6968 if test "x$as_val" = x""yes; then
6969 cat >>confdefs.h <<_ACEOF
6970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6971 _ACEOF
6972
6973 fi
6974
6975 done
6976
6977
6978
6979 for ac_header in dlfcn.h
6980 do
6981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6982 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6983 $as_echo_n "checking for $ac_header... " >&6; }
6984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6985 $as_echo_n "(cached) " >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6994
6995 #include <$ac_header>
6996 _ACEOF
6997 rm -f conftest.$ac_objext
6998 if { (ac_try="$ac_compile"
6999 case "(($ac_try" in
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7002 esac
7003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7004 $as_echo "$ac_try_echo") >&5
7005 (eval "$ac_compile") 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && {
7012 test -z "$ac_c_werror_flag" ||
7013 test ! -s conftest.err
7014 } && test -s conftest.$ac_objext; then
7015 eval "$as_ac_Header=yes"
7016 else
7017 $as_echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020 eval "$as_ac_Header=no"
7021 fi
7022
7023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 fi
7025 ac_res=`eval 'as_val=${'$as_ac_Header'}
7026 $as_echo "$as_val"'`
7027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7028 $as_echo "$ac_res" >&6; }
7029 as_val=`eval 'as_val=${'$as_ac_Header'}
7030 $as_echo "$as_val"'`
7031 if test "x$as_val" = x""yes; then
7032 cat >>confdefs.h <<_ACEOF
7033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7034 _ACEOF
7035
7036 fi
7037
7038 done
7039
7040
7041
7042 # Set options
7043
7044
7045
7046 enable_dlopen=no
7047
7048
7049 enable_win32_dll=no
7050
7051
7052 # Check whether --enable-shared was given.
7053 if test "${enable_shared+set}" = set; then
7054 enableval=$enable_shared; p=${PACKAGE-default}
7055 case $enableval in
7056 yes) enable_shared=yes ;;
7057 no) enable_shared=no ;;
7058 *)
7059 enable_shared=no
7060 # Look at the argument we got. We use all the common list separators.
7061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7062 for pkg in $enableval; do
7063 IFS="$lt_save_ifs"
7064 if test "X$pkg" = "X$p"; then
7065 enable_shared=yes
7066 fi
7067 done
7068 IFS="$lt_save_ifs"
7069 ;;
7070 esac
7071 else
7072 enable_shared=yes
7073 fi
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 # Check whether --enable-static was given.
7084 if test "${enable_static+set}" = set; then
7085 enableval=$enable_static; p=${PACKAGE-default}
7086 case $enableval in
7087 yes) enable_static=yes ;;
7088 no) enable_static=no ;;
7089 *)
7090 enable_static=no
7091 # Look at the argument we got. We use all the common list separators.
7092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7093 for pkg in $enableval; do
7094 IFS="$lt_save_ifs"
7095 if test "X$pkg" = "X$p"; then
7096 enable_static=yes
7097 fi
7098 done
7099 IFS="$lt_save_ifs"
7100 ;;
7101 esac
7102 else
7103 enable_static=yes
7104 fi
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115 # Check whether --with-pic was given.
7116 if test "${with_pic+set}" = set; then
7117 withval=$with_pic; pic_mode="$withval"
7118 else
7119 pic_mode=default
7120 fi
7121
7122
7123 test -z "$pic_mode" && pic_mode=default
7124
7125
7126
7127
7128
7129
7130
7131 # Check whether --enable-fast-install was given.
7132 if test "${enable_fast_install+set}" = set; then
7133 enableval=$enable_fast_install; p=${PACKAGE-default}
7134 case $enableval in
7135 yes) enable_fast_install=yes ;;
7136 no) enable_fast_install=no ;;
7137 *)
7138 enable_fast_install=no
7139 # Look at the argument we got. We use all the common list separators.
7140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7141 for pkg in $enableval; do
7142 IFS="$lt_save_ifs"
7143 if test "X$pkg" = "X$p"; then
7144 enable_fast_install=yes
7145 fi
7146 done
7147 IFS="$lt_save_ifs"
7148 ;;
7149 esac
7150 else
7151 enable_fast_install=yes
7152 fi
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164 # This can be used to rebuild libtool when needed
7165 LIBTOOL_DEPS="$ltmain"
7166
7167 # Always use our own libtool.
7168 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194 test -z "$LN_S" && LN_S="ln -s"
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209 if test -n "${ZSH_VERSION+set}" ; then
7210 setopt NO_GLOB_SUBST
7211 fi
7212
7213 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7214 $as_echo_n "checking for objdir... " >&6; }
7215 if test "${lt_cv_objdir+set}" = set; then
7216 $as_echo_n "(cached) " >&6
7217 else
7218 rm -f .libs 2>/dev/null
7219 mkdir .libs 2>/dev/null
7220 if test -d .libs; then
7221 lt_cv_objdir=.libs
7222 else
7223 # MS-DOS does not allow filenames that begin with a dot.
7224 lt_cv_objdir=_libs
7225 fi
7226 rmdir .libs 2>/dev/null
7227 fi
7228 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7229 $as_echo "$lt_cv_objdir" >&6; }
7230 objdir=$lt_cv_objdir
7231
7232
7233
7234
7235
7236 cat >>confdefs.h <<_ACEOF
7237 #define LT_OBJDIR "$lt_cv_objdir/"
7238 _ACEOF
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256 case $host_os in
7257 aix3*)
7258 # AIX sometimes has problems with the GCC collect2 program. For some
7259 # reason, if we set the COLLECT_NAMES environment variable, the problems
7260 # vanish in a puff of smoke.
7261 if test "X${COLLECT_NAMES+set}" != Xset; then
7262 COLLECT_NAMES=
7263 export COLLECT_NAMES
7264 fi
7265 ;;
7266 esac
7267
7268 # Sed substitution that helps us do robust quoting. It backslashifies
7269 # metacharacters that are still active within double-quoted strings.
7270 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7271
7272 # Same as above, but do not quote variable references.
7273 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7274
7275 # Sed substitution to delay expansion of an escaped shell variable in a
7276 # double_quote_subst'ed string.
7277 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7278
7279 # Sed substitution to delay expansion of an escaped single quote.
7280 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7281
7282 # Sed substitution to avoid accidental globbing in evaled expressions
7283 no_glob_subst='s/\*/\\\*/g'
7284
7285 # Global variables:
7286 ofile=libtool
7287 can_build_shared=yes
7288
7289 # All known linkers require a `.a' archive for static linking (except MSVC,
7290 # which needs '.lib').
7291 libext=a
7292
7293 with_gnu_ld="$lt_cv_prog_gnu_ld"
7294
7295 old_CC="$CC"
7296 old_CFLAGS="$CFLAGS"
7297
7298 # Set sane defaults for various variables
7299 test -z "$CC" && CC=cc
7300 test -z "$LTCC" && LTCC=$CC
7301 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7302 test -z "$LD" && LD=ld
7303 test -z "$ac_objext" && ac_objext=o
7304
7305 for cc_temp in $compiler""; do
7306 case $cc_temp in
7307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7309 \-*) ;;
7310 *) break;;
7311 esac
7312 done
7313 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7314
7315
7316 # Only perform the check for file, if the check method requires it
7317 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7318 case $deplibs_check_method in
7319 file_magic*)
7320 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7321 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7322 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7323 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7324 $as_echo_n "(cached) " >&6
7325 else
7326 case $MAGIC_CMD in
7327 [\\/*] | ?:[\\/]*)
7328 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7329 ;;
7330 *)
7331 lt_save_MAGIC_CMD="$MAGIC_CMD"
7332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7333 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7334 for ac_dir in $ac_dummy; do
7335 IFS="$lt_save_ifs"
7336 test -z "$ac_dir" && ac_dir=.
7337 if test -f $ac_dir/${ac_tool_prefix}file; then
7338 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7339 if test -n "$file_magic_test_file"; then
7340 case $deplibs_check_method in
7341 "file_magic "*)
7342 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7344 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7345 $EGREP "$file_magic_regex" > /dev/null; then
7346 :
7347 else
7348 cat <<_LT_EOF 1>&2
7349
7350 *** Warning: the command libtool uses to detect shared libraries,
7351 *** $file_magic_cmd, produces output that libtool cannot recognize.
7352 *** The result is that libtool may fail to recognize shared libraries
7353 *** as such. This will affect the creation of libtool libraries that
7354 *** depend on shared libraries, but programs linked with such libtool
7355 *** libraries will work regardless of this problem. Nevertheless, you
7356 *** may want to report the problem to your system manager and/or to
7357 *** bug-libtool@gnu.org
7358
7359 _LT_EOF
7360 fi ;;
7361 esac
7362 fi
7363 break
7364 fi
7365 done
7366 IFS="$lt_save_ifs"
7367 MAGIC_CMD="$lt_save_MAGIC_CMD"
7368 ;;
7369 esac
7370 fi
7371
7372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7373 if test -n "$MAGIC_CMD"; then
7374 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7375 $as_echo "$MAGIC_CMD" >&6; }
7376 else
7377 { $as_echo "$as_me:$LINENO: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380
7381
7382
7383
7384
7385 if test -z "$lt_cv_path_MAGIC_CMD"; then
7386 if test -n "$ac_tool_prefix"; then
7387 { $as_echo "$as_me:$LINENO: checking for file" >&5
7388 $as_echo_n "checking for file... " >&6; }
7389 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7391 else
7392 case $MAGIC_CMD in
7393 [\\/*] | ?:[\\/]*)
7394 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7395 ;;
7396 *)
7397 lt_save_MAGIC_CMD="$MAGIC_CMD"
7398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7399 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7400 for ac_dir in $ac_dummy; do
7401 IFS="$lt_save_ifs"
7402 test -z "$ac_dir" && ac_dir=.
7403 if test -f $ac_dir/file; then
7404 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7405 if test -n "$file_magic_test_file"; then
7406 case $deplibs_check_method in
7407 "file_magic "*)
7408 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7410 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7411 $EGREP "$file_magic_regex" > /dev/null; then
7412 :
7413 else
7414 cat <<_LT_EOF 1>&2
7415
7416 *** Warning: the command libtool uses to detect shared libraries,
7417 *** $file_magic_cmd, produces output that libtool cannot recognize.
7418 *** The result is that libtool may fail to recognize shared libraries
7419 *** as such. This will affect the creation of libtool libraries that
7420 *** depend on shared libraries, but programs linked with such libtool
7421 *** libraries will work regardless of this problem. Nevertheless, you
7422 *** may want to report the problem to your system manager and/or to
7423 *** bug-libtool@gnu.org
7424
7425 _LT_EOF
7426 fi ;;
7427 esac
7428 fi
7429 break
7430 fi
7431 done
7432 IFS="$lt_save_ifs"
7433 MAGIC_CMD="$lt_save_MAGIC_CMD"
7434 ;;
7435 esac
7436 fi
7437
7438 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7439 if test -n "$MAGIC_CMD"; then
7440 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7441 $as_echo "$MAGIC_CMD" >&6; }
7442 else
7443 { $as_echo "$as_me:$LINENO: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446
7447
7448 else
7449 MAGIC_CMD=:
7450 fi
7451 fi
7452
7453 fi
7454 ;;
7455 esac
7456
7457 # Use C for the default configuration in the libtool script
7458
7459 lt_save_CC="$CC"
7460 ac_ext=c
7461 ac_cpp='$CPP $CPPFLAGS'
7462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7465
7466
7467 # Source file extension for C test sources.
7468 ac_ext=c
7469
7470 # Object file extension for compiled C test sources.
7471 objext=o
7472 objext=$objext
7473
7474 # Code to be used in simple compile tests
7475 lt_simple_compile_test_code="int some_variable = 0;"
7476
7477 # Code to be used in simple link tests
7478 lt_simple_link_test_code='int main(){return(0);}'
7479
7480
7481
7482
7483
7484
7485
7486 # If no C compiler was specified, use CC.
7487 LTCC=${LTCC-"$CC"}
7488
7489 # If no C compiler flags were specified, use CFLAGS.
7490 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7491
7492 # Allow CC to be a program name with arguments.
7493 compiler=$CC
7494
7495 # Save the default compiler, since it gets overwritten when the other
7496 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7497 compiler_DEFAULT=$CC
7498
7499 # save warnings/boilerplate of simple test code
7500 ac_outfile=conftest.$ac_objext
7501 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7502 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7503 _lt_compiler_boilerplate=`cat conftest.err`
7504 $RM conftest*
7505
7506 ac_outfile=conftest.$ac_objext
7507 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7508 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7509 _lt_linker_boilerplate=`cat conftest.err`
7510 $RM -r conftest*
7511
7512
7513 if test -n "$compiler"; then
7514
7515 lt_prog_compiler_no_builtin_flag=
7516
7517 if test "$GCC" = yes; then
7518 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7519
7520 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7521 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7522 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7523 $as_echo_n "(cached) " >&6
7524 else
7525 lt_cv_prog_compiler_rtti_exceptions=no
7526 ac_outfile=conftest.$ac_objext
7527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7528 lt_compiler_flag="-fno-rtti -fno-exceptions"
7529 # Insert the option either (1) after the last *FLAGS variable, or
7530 # (2) before a word containing "conftest.", or (3) at the end.
7531 # Note that $ac_compile itself does not contain backslashes and begins
7532 # with a dollar sign (not a hyphen), so the echo should work correctly.
7533 # The option is referenced via a variable to avoid confusing sed.
7534 lt_compile=`echo "$ac_compile" | $SED \
7535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7537 -e 's:$: $lt_compiler_flag:'`
7538 (eval echo "\"\$as_me:7538: $lt_compile\"" >&5)
7539 (eval "$lt_compile" 2>conftest.err)
7540 ac_status=$?
7541 cat conftest.err >&5
7542 echo "$as_me:7542: \$? = $ac_status" >&5
7543 if (exit $ac_status) && test -s "$ac_outfile"; then
7544 # The compiler can only warn and ignore the option if not recognized
7545 # So say no if there are warnings other than the usual output.
7546 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7548 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7549 lt_cv_prog_compiler_rtti_exceptions=yes
7550 fi
7551 fi
7552 $RM conftest*
7553
7554 fi
7555 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7556 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7557
7558 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7559 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7560 else
7561 :
7562 fi
7563
7564 fi
7565
7566
7567
7568
7569
7570
7571 lt_prog_compiler_wl=
7572 lt_prog_compiler_pic=
7573 lt_prog_compiler_static=
7574
7575 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7576 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7577
7578 if test "$GCC" = yes; then
7579 lt_prog_compiler_wl='-Wl,'
7580 lt_prog_compiler_static='-static'
7581
7582 case $host_os in
7583 aix*)
7584 # All AIX code is PIC.
7585 if test "$host_cpu" = ia64; then
7586 # AIX 5 now supports IA64 processor
7587 lt_prog_compiler_static='-Bstatic'
7588 fi
7589 ;;
7590
7591 amigaos*)
7592 case $host_cpu in
7593 powerpc)
7594 # see comment about AmigaOS4 .so support
7595 lt_prog_compiler_pic='-fPIC'
7596 ;;
7597 m68k)
7598 # FIXME: we need at least 68020 code to build shared libraries, but
7599 # adding the `-m68020' flag to GCC prevents building anything better,
7600 # like `-m68040'.
7601 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7602 ;;
7603 esac
7604 ;;
7605
7606 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7607 # PIC is the default for these OSes.
7608 ;;
7609
7610 mingw* | cygwin* | pw32* | os2* | cegcc*)
7611 # This hack is so that the source file can tell whether it is being
7612 # built for inclusion in a dll (and should export symbols for example).
7613 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7614 # (--disable-auto-import) libraries
7615 lt_prog_compiler_pic='-DDLL_EXPORT'
7616 ;;
7617
7618 darwin* | rhapsody*)
7619 # PIC is the default on this platform
7620 # Common symbols not allowed in MH_DYLIB files
7621 lt_prog_compiler_pic='-fno-common'
7622 ;;
7623
7624 hpux*)
7625 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7626 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7627 # sets the default TLS model and affects inlining.
7628 case $host_cpu in
7629 hppa*64*)
7630 # +Z the default
7631 ;;
7632 *)
7633 lt_prog_compiler_pic='-fPIC'
7634 ;;
7635 esac
7636 ;;
7637
7638 interix[3-9]*)
7639 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7640 # Instead, we relocate shared libraries at runtime.
7641 ;;
7642
7643 msdosdjgpp*)
7644 # Just because we use GCC doesn't mean we suddenly get shared libraries
7645 # on systems that don't support them.
7646 lt_prog_compiler_can_build_shared=no
7647 enable_shared=no
7648 ;;
7649
7650 *nto* | *qnx*)
7651 # QNX uses GNU C++, but need to define -shared option too, otherwise
7652 # it will coredump.
7653 lt_prog_compiler_pic='-fPIC -shared'
7654 ;;
7655
7656 sysv4*MP*)
7657 if test -d /usr/nec; then
7658 lt_prog_compiler_pic=-Kconform_pic
7659 fi
7660 ;;
7661
7662 *)
7663 lt_prog_compiler_pic='-fPIC'
7664 ;;
7665 esac
7666 else
7667 # PORTME Check for flag to pass linker flags through the system compiler.
7668 case $host_os in
7669 aix*)
7670 lt_prog_compiler_wl='-Wl,'
7671 if test "$host_cpu" = ia64; then
7672 # AIX 5 now supports IA64 processor
7673 lt_prog_compiler_static='-Bstatic'
7674 else
7675 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7676 fi
7677 ;;
7678
7679 mingw* | cygwin* | pw32* | os2* | cegcc*)
7680 # This hack is so that the source file can tell whether it is being
7681 # built for inclusion in a dll (and should export symbols for example).
7682 lt_prog_compiler_pic='-DDLL_EXPORT'
7683 ;;
7684
7685 hpux9* | hpux10* | hpux11*)
7686 lt_prog_compiler_wl='-Wl,'
7687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7688 # not for PA HP-UX.
7689 case $host_cpu in
7690 hppa*64*|ia64*)
7691 # +Z the default
7692 ;;
7693 *)
7694 lt_prog_compiler_pic='+Z'
7695 ;;
7696 esac
7697 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7698 lt_prog_compiler_static='${wl}-a ${wl}archive'
7699 ;;
7700
7701 irix5* | irix6* | nonstopux*)
7702 lt_prog_compiler_wl='-Wl,'
7703 # PIC (with -KPIC) is the default.
7704 lt_prog_compiler_static='-non_shared'
7705 ;;
7706
7707 linux* | k*bsd*-gnu)
7708 case $cc_basename in
7709 # old Intel for x86_64 which still supported -KPIC.
7710 ecc*)
7711 lt_prog_compiler_wl='-Wl,'
7712 lt_prog_compiler_pic='-KPIC'
7713 lt_prog_compiler_static='-static'
7714 ;;
7715 # icc used to be incompatible with GCC.
7716 # ICC 10 doesn't accept -KPIC any more.
7717 icc* | ifort*)
7718 lt_prog_compiler_wl='-Wl,'
7719 lt_prog_compiler_pic='-fPIC'
7720 lt_prog_compiler_static='-static'
7721 ;;
7722 # Lahey Fortran 8.1.
7723 lf95*)
7724 lt_prog_compiler_wl='-Wl,'
7725 lt_prog_compiler_pic='--shared'
7726 lt_prog_compiler_static='--static'
7727 ;;
7728 pgcc* | pgf77* | pgf90* | pgf95*)
7729 # Portland Group compilers (*not* the Pentium gcc compiler,
7730 # which looks to be a dead project)
7731 lt_prog_compiler_wl='-Wl,'
7732 lt_prog_compiler_pic='-fpic'
7733 lt_prog_compiler_static='-Bstatic'
7734 ;;
7735 ccc*)
7736 lt_prog_compiler_wl='-Wl,'
7737 # All Alpha code is PIC.
7738 lt_prog_compiler_static='-non_shared'
7739 ;;
7740 xl*)
7741 # IBM XL C 8.0/Fortran 10.1 on PPC
7742 lt_prog_compiler_wl='-Wl,'
7743 lt_prog_compiler_pic='-qpic'
7744 lt_prog_compiler_static='-qstaticlink'
7745 ;;
7746 *)
7747 case `$CC -V 2>&1 | sed 5q` in
7748 *Sun\ C*)
7749 # Sun C 5.9
7750 lt_prog_compiler_pic='-KPIC'
7751 lt_prog_compiler_static='-Bstatic'
7752 lt_prog_compiler_wl='-Wl,'
7753 ;;
7754 *Sun\ F*)
7755 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7756 lt_prog_compiler_pic='-KPIC'
7757 lt_prog_compiler_static='-Bstatic'
7758 lt_prog_compiler_wl=''
7759 ;;
7760 esac
7761 ;;
7762 esac
7763 ;;
7764
7765 newsos6)
7766 lt_prog_compiler_pic='-KPIC'
7767 lt_prog_compiler_static='-Bstatic'
7768 ;;
7769
7770 *nto* | *qnx*)
7771 # QNX uses GNU C++, but need to define -shared option too, otherwise
7772 # it will coredump.
7773 lt_prog_compiler_pic='-fPIC -shared'
7774 ;;
7775
7776 osf3* | osf4* | osf5*)
7777 lt_prog_compiler_wl='-Wl,'
7778 # All OSF/1 code is PIC.
7779 lt_prog_compiler_static='-non_shared'
7780 ;;
7781
7782 rdos*)
7783 lt_prog_compiler_static='-non_shared'
7784 ;;
7785
7786 solaris*)
7787 lt_prog_compiler_pic='-KPIC'
7788 lt_prog_compiler_static='-Bstatic'
7789 case $cc_basename in
7790 f77* | f90* | f95*)
7791 lt_prog_compiler_wl='-Qoption ld ';;
7792 *)
7793 lt_prog_compiler_wl='-Wl,';;
7794 esac
7795 ;;
7796
7797 sunos4*)
7798 lt_prog_compiler_wl='-Qoption ld '
7799 lt_prog_compiler_pic='-PIC'
7800 lt_prog_compiler_static='-Bstatic'
7801 ;;
7802
7803 sysv4 | sysv4.2uw2* | sysv4.3*)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_pic='-KPIC'
7806 lt_prog_compiler_static='-Bstatic'
7807 ;;
7808
7809 sysv4*MP*)
7810 if test -d /usr/nec ;then
7811 lt_prog_compiler_pic='-Kconform_pic'
7812 lt_prog_compiler_static='-Bstatic'
7813 fi
7814 ;;
7815
7816 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7817 lt_prog_compiler_wl='-Wl,'
7818 lt_prog_compiler_pic='-KPIC'
7819 lt_prog_compiler_static='-Bstatic'
7820 ;;
7821
7822 unicos*)
7823 lt_prog_compiler_wl='-Wl,'
7824 lt_prog_compiler_can_build_shared=no
7825 ;;
7826
7827 uts4*)
7828 lt_prog_compiler_pic='-pic'
7829 lt_prog_compiler_static='-Bstatic'
7830 ;;
7831
7832 *)
7833 lt_prog_compiler_can_build_shared=no
7834 ;;
7835 esac
7836 fi
7837
7838 case $host_os in
7839 # For platforms which do not support PIC, -DPIC is meaningless:
7840 *djgpp*)
7841 lt_prog_compiler_pic=
7842 ;;
7843 *)
7844 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7845 ;;
7846 esac
7847 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7848 $as_echo "$lt_prog_compiler_pic" >&6; }
7849
7850
7851
7852
7853
7854
7855 #
7856 # Check to make sure the PIC flag actually works.
7857 #
7858 if test -n "$lt_prog_compiler_pic"; then
7859 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7860 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7861 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7862 $as_echo_n "(cached) " >&6
7863 else
7864 lt_cv_prog_compiler_pic_works=no
7865 ac_outfile=conftest.$ac_objext
7866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7867 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7868 # Insert the option either (1) after the last *FLAGS variable, or
7869 # (2) before a word containing "conftest.", or (3) at the end.
7870 # Note that $ac_compile itself does not contain backslashes and begins
7871 # with a dollar sign (not a hyphen), so the echo should work correctly.
7872 # The option is referenced via a variable to avoid confusing sed.
7873 lt_compile=`echo "$ac_compile" | $SED \
7874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7876 -e 's:$: $lt_compiler_flag:'`
7877 (eval echo "\"\$as_me:7877: $lt_compile\"" >&5)
7878 (eval "$lt_compile" 2>conftest.err)
7879 ac_status=$?
7880 cat conftest.err >&5
7881 echo "$as_me:7881: \$? = $ac_status" >&5
7882 if (exit $ac_status) && test -s "$ac_outfile"; then
7883 # The compiler can only warn and ignore the option if not recognized
7884 # So say no if there are warnings other than the usual output.
7885 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7888 lt_cv_prog_compiler_pic_works=yes
7889 fi
7890 fi
7891 $RM conftest*
7892
7893 fi
7894 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7895 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7896
7897 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7898 case $lt_prog_compiler_pic in
7899 "" | " "*) ;;
7900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7901 esac
7902 else
7903 lt_prog_compiler_pic=
7904 lt_prog_compiler_can_build_shared=no
7905 fi
7906
7907 fi
7908
7909
7910
7911
7912
7913
7914 #
7915 # Check to make sure the static flag actually works.
7916 #
7917 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7918 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7919 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7920 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7921 $as_echo_n "(cached) " >&6
7922 else
7923 lt_cv_prog_compiler_static_works=no
7924 save_LDFLAGS="$LDFLAGS"
7925 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7926 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7928 # The linker can only warn and ignore the option if not recognized
7929 # So say no if there are warnings
7930 if test -s conftest.err; then
7931 # Append any errors to the config.log.
7932 cat conftest.err 1>&5
7933 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7935 if diff conftest.exp conftest.er2 >/dev/null; then
7936 lt_cv_prog_compiler_static_works=yes
7937 fi
7938 else
7939 lt_cv_prog_compiler_static_works=yes
7940 fi
7941 fi
7942 $RM -r conftest*
7943 LDFLAGS="$save_LDFLAGS"
7944
7945 fi
7946 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7947 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7948
7949 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7950 :
7951 else
7952 lt_prog_compiler_static=
7953 fi
7954
7955
7956
7957
7958
7959
7960
7961 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7962 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7963 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7964 $as_echo_n "(cached) " >&6
7965 else
7966 lt_cv_prog_compiler_c_o=no
7967 $RM -r conftest 2>/dev/null
7968 mkdir conftest
7969 cd conftest
7970 mkdir out
7971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7972
7973 lt_compiler_flag="-o out/conftest2.$ac_objext"
7974 # Insert the option either (1) after the last *FLAGS variable, or
7975 # (2) before a word containing "conftest.", or (3) at the end.
7976 # Note that $ac_compile itself does not contain backslashes and begins
7977 # with a dollar sign (not a hyphen), so the echo should work correctly.
7978 lt_compile=`echo "$ac_compile" | $SED \
7979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7981 -e 's:$: $lt_compiler_flag:'`
7982 (eval echo "\"\$as_me:7982: $lt_compile\"" >&5)
7983 (eval "$lt_compile" 2>out/conftest.err)
7984 ac_status=$?
7985 cat out/conftest.err >&5
7986 echo "$as_me:7986: \$? = $ac_status" >&5
7987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7988 then
7989 # The compiler can only warn and ignore the option if not recognized
7990 # So say no if there are warnings
7991 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7994 lt_cv_prog_compiler_c_o=yes
7995 fi
7996 fi
7997 chmod u+w . 2>&5
7998 $RM conftest*
7999 # SGI C++ compiler will create directory out/ii_files/ for
8000 # template instantiation
8001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8002 $RM out/* && rmdir out
8003 cd ..
8004 $RM -r conftest
8005 $RM conftest*
8006
8007 fi
8008 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8009 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8010
8011
8012
8013
8014
8015
8016 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8017 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8018 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8019 $as_echo_n "(cached) " >&6
8020 else
8021 lt_cv_prog_compiler_c_o=no
8022 $RM -r conftest 2>/dev/null
8023 mkdir conftest
8024 cd conftest
8025 mkdir out
8026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8027
8028 lt_compiler_flag="-o out/conftest2.$ac_objext"
8029 # Insert the option either (1) after the last *FLAGS variable, or
8030 # (2) before a word containing "conftest.", or (3) at the end.
8031 # Note that $ac_compile itself does not contain backslashes and begins
8032 # with a dollar sign (not a hyphen), so the echo should work correctly.
8033 lt_compile=`echo "$ac_compile" | $SED \
8034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8036 -e 's:$: $lt_compiler_flag:'`
8037 (eval echo "\"\$as_me:8037: $lt_compile\"" >&5)
8038 (eval "$lt_compile" 2>out/conftest.err)
8039 ac_status=$?
8040 cat out/conftest.err >&5
8041 echo "$as_me:8041: \$? = $ac_status" >&5
8042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8043 then
8044 # The compiler can only warn and ignore the option if not recognized
8045 # So say no if there are warnings
8046 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8049 lt_cv_prog_compiler_c_o=yes
8050 fi
8051 fi
8052 chmod u+w . 2>&5
8053 $RM conftest*
8054 # SGI C++ compiler will create directory out/ii_files/ for
8055 # template instantiation
8056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8057 $RM out/* && rmdir out
8058 cd ..
8059 $RM -r conftest
8060 $RM conftest*
8061
8062 fi
8063 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8064 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8065
8066
8067
8068
8069 hard_links="nottested"
8070 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8071 # do not overwrite the value of need_locks provided by the user
8072 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8073 $as_echo_n "checking if we can lock with hard links... " >&6; }
8074 hard_links=yes
8075 $RM conftest*
8076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8077 touch conftest.a
8078 ln conftest.a conftest.b 2>&5 || hard_links=no
8079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8080 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8081 $as_echo "$hard_links" >&6; }
8082 if test "$hard_links" = no; then
8083 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8084 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8085 need_locks=warn
8086 fi
8087 else
8088 need_locks=no
8089 fi
8090
8091
8092
8093
8094
8095
8096 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8097 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8098
8099 runpath_var=
8100 allow_undefined_flag=
8101 always_export_symbols=no
8102 archive_cmds=
8103 archive_expsym_cmds=
8104 compiler_needs_object=no
8105 enable_shared_with_static_runtimes=no
8106 export_dynamic_flag_spec=
8107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8108 hardcode_automatic=no
8109 hardcode_direct=no
8110 hardcode_direct_absolute=no
8111 hardcode_libdir_flag_spec=
8112 hardcode_libdir_flag_spec_ld=
8113 hardcode_libdir_separator=
8114 hardcode_minus_L=no
8115 hardcode_shlibpath_var=unsupported
8116 inherit_rpath=no
8117 link_all_deplibs=unknown
8118 module_cmds=
8119 module_expsym_cmds=
8120 old_archive_from_new_cmds=
8121 old_archive_from_expsyms_cmds=
8122 thread_safe_flag_spec=
8123 whole_archive_flag_spec=
8124 # include_expsyms should be a list of space-separated symbols to be *always*
8125 # included in the symbol list
8126 include_expsyms=
8127 # exclude_expsyms can be an extended regexp of symbols to exclude
8128 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8129 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8130 # as well as any symbol that contains `d'.
8131 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8133 # platforms (ab)use it in PIC code, but their linkers get confused if
8134 # the symbol is explicitly referenced. Since portable code cannot
8135 # rely on this symbol name, it's probably fine to never include it in
8136 # preloaded symbol tables.
8137 # Exclude shared library initialization/finalization symbols.
8138 extract_expsyms_cmds=
8139
8140 case $host_os in
8141 cygwin* | mingw* | pw32* | cegcc*)
8142 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8143 # When not using gcc, we currently assume that we are using
8144 # Microsoft Visual C++.
8145 if test "$GCC" != yes; then
8146 with_gnu_ld=no
8147 fi
8148 ;;
8149 interix*)
8150 # we just hope/assume this is gcc and not c89 (= MSVC++)
8151 with_gnu_ld=yes
8152 ;;
8153 openbsd*)
8154 with_gnu_ld=no
8155 ;;
8156 esac
8157
8158 ld_shlibs=yes
8159 if test "$with_gnu_ld" = yes; then
8160 # If archive_cmds runs LD, not CC, wlarc should be empty
8161 wlarc='${wl}'
8162
8163 # Set some defaults for GNU ld with shared library support. These
8164 # are reset later if shared libraries are not supported. Putting them
8165 # here allows them to be overridden if necessary.
8166 runpath_var=LD_RUN_PATH
8167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8168 export_dynamic_flag_spec='${wl}--export-dynamic'
8169 # ancient GNU ld didn't support --whole-archive et. al.
8170 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8171 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8172 else
8173 whole_archive_flag_spec=
8174 fi
8175 supports_anon_versioning=no
8176 case `$LD -v 2>&1` in
8177 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8178 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8179 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8180 *\ 2.11.*) ;; # other 2.11 versions
8181 *) supports_anon_versioning=yes ;;
8182 esac
8183
8184 # See if GNU ld supports shared libraries.
8185 case $host_os in
8186 aix[3-9]*)
8187 # On AIX/PPC, the GNU linker is very broken
8188 if test "$host_cpu" != ia64; then
8189 ld_shlibs=no
8190 cat <<_LT_EOF 1>&2
8191
8192 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8193 *** to be unable to reliably create shared libraries on AIX.
8194 *** Therefore, libtool is disabling shared libraries support. If you
8195 *** really care for shared libraries, you may want to modify your PATH
8196 *** so that a non-GNU linker is found, and then restart.
8197
8198 _LT_EOF
8199 fi
8200 ;;
8201
8202 amigaos*)
8203 case $host_cpu in
8204 powerpc)
8205 # see comment about AmigaOS4 .so support
8206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 archive_expsym_cmds=''
8208 ;;
8209 m68k)
8210 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)'
8211 hardcode_libdir_flag_spec='-L$libdir'
8212 hardcode_minus_L=yes
8213 ;;
8214 esac
8215 ;;
8216
8217 beos*)
8218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8219 allow_undefined_flag=unsupported
8220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8221 # support --undefined. This deserves some investigation. FIXME
8222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 else
8224 ld_shlibs=no
8225 fi
8226 ;;
8227
8228 cygwin* | mingw* | pw32* | cegcc*)
8229 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8230 # as there is no search path for DLLs.
8231 hardcode_libdir_flag_spec='-L$libdir'
8232 allow_undefined_flag=unsupported
8233 always_export_symbols=no
8234 enable_shared_with_static_runtimes=yes
8235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8236
8237 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8239 # If the export-symbols file already is a .def file (1st line
8240 # is EXPORTS), use it as is; otherwise, prepend...
8241 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8242 cp $export_symbols $output_objdir/$soname.def;
8243 else
8244 echo EXPORTS > $output_objdir/$soname.def;
8245 cat $export_symbols >> $output_objdir/$soname.def;
8246 fi~
8247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8248 else
8249 ld_shlibs=no
8250 fi
8251 ;;
8252
8253 interix[3-9]*)
8254 hardcode_direct=no
8255 hardcode_shlibpath_var=no
8256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8257 export_dynamic_flag_spec='${wl}-E'
8258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8259 # Instead, shared libraries are loaded at an image base (0x10000000 by
8260 # default) and relocated if they conflict, which is a slow very memory
8261 # consuming and fragmenting process. To avoid this, we pick a random,
8262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8265 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'
8266 ;;
8267
8268 gnu* | linux* | tpf* | k*bsd*-gnu)
8269 tmp_diet=no
8270 if test "$host_os" = linux-dietlibc; then
8271 case $cc_basename in
8272 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8273 esac
8274 fi
8275 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8276 && test "$tmp_diet" = no
8277 then
8278 tmp_addflag=
8279 tmp_sharedflag='-shared'
8280 case $cc_basename,$host_cpu in
8281 pgcc*) # Portland Group C compiler
8282 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'
8283 tmp_addflag=' $pic_flag'
8284 ;;
8285 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8286 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'
8287 tmp_addflag=' $pic_flag -Mnomain' ;;
8288 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8289 tmp_addflag=' -i_dynamic' ;;
8290 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8291 tmp_addflag=' -i_dynamic -nofor_main' ;;
8292 ifc* | ifort*) # Intel Fortran compiler
8293 tmp_addflag=' -nofor_main' ;;
8294 lf95*) # Lahey Fortran 8.1
8295 whole_archive_flag_spec=
8296 tmp_sharedflag='--shared' ;;
8297 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8298 tmp_sharedflag='-qmkshrobj'
8299 tmp_addflag= ;;
8300 esac
8301 case `$CC -V 2>&1 | sed 5q` in
8302 *Sun\ C*) # Sun C 5.9
8303 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'
8304 compiler_needs_object=yes
8305 tmp_sharedflag='-G' ;;
8306 *Sun\ F*) # Sun Fortran 8.3
8307 tmp_sharedflag='-G' ;;
8308 esac
8309 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310
8311 if test "x$supports_anon_versioning" = xyes; then
8312 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8314 echo "local: *; };" >> $output_objdir/$libname.ver~
8315 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8316 fi
8317
8318 case $cc_basename in
8319 xlf*)
8320 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8321 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8322 hardcode_libdir_flag_spec=
8323 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8324 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8325 if test "x$supports_anon_versioning" = xyes; then
8326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8328 echo "local: *; };" >> $output_objdir/$libname.ver~
8329 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8330 fi
8331 ;;
8332 esac
8333 else
8334 ld_shlibs=no
8335 fi
8336 ;;
8337
8338 netbsd*)
8339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8340 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8341 wlarc=
8342 else
8343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8345 fi
8346 ;;
8347
8348 solaris*)
8349 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8350 ld_shlibs=no
8351 cat <<_LT_EOF 1>&2
8352
8353 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8354 *** create shared libraries on Solaris systems. Therefore, libtool
8355 *** is disabling shared libraries support. We urge you to upgrade GNU
8356 *** binutils to release 2.9.1 or newer. Another option is to modify
8357 *** your PATH or compiler configuration so that the native linker is
8358 *** used, and then restart.
8359
8360 _LT_EOF
8361 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8364 else
8365 ld_shlibs=no
8366 fi
8367 ;;
8368
8369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8370 case `$LD -v 2>&1` in
8371 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8372 ld_shlibs=no
8373 cat <<_LT_EOF 1>&2
8374
8375 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8376 *** reliably create shared libraries on SCO systems. Therefore, libtool
8377 *** is disabling shared libraries support. We urge you to upgrade GNU
8378 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8379 *** your PATH or compiler configuration so that the native linker is
8380 *** used, and then restart.
8381
8382 _LT_EOF
8383 ;;
8384 *)
8385 # For security reasons, it is highly recommended that you always
8386 # use absolute paths for naming shared libraries, and exclude the
8387 # DT_RUNPATH tag from executables and libraries. But doing so
8388 # requires that you compile everything twice, which is a pain.
8389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8393 else
8394 ld_shlibs=no
8395 fi
8396 ;;
8397 esac
8398 ;;
8399
8400 sunos4*)
8401 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8402 wlarc=
8403 hardcode_direct=yes
8404 hardcode_shlibpath_var=no
8405 ;;
8406
8407 *)
8408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8411 else
8412 ld_shlibs=no
8413 fi
8414 ;;
8415 esac
8416
8417 if test "$ld_shlibs" = no; then
8418 runpath_var=
8419 hardcode_libdir_flag_spec=
8420 export_dynamic_flag_spec=
8421 whole_archive_flag_spec=
8422 fi
8423 else
8424 # PORTME fill in a description of your system's linker (not GNU ld)
8425 case $host_os in
8426 aix3*)
8427 allow_undefined_flag=unsupported
8428 always_export_symbols=yes
8429 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'
8430 # Note: this linker hardcodes the directories in LIBPATH if there
8431 # are no directories specified by -L.
8432 hardcode_minus_L=yes
8433 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8434 # Neither direct hardcoding nor static linking is supported with a
8435 # broken collect2.
8436 hardcode_direct=unsupported
8437 fi
8438 ;;
8439
8440 aix[4-9]*)
8441 if test "$host_cpu" = ia64; then
8442 # On IA64, the linker does run time linking by default, so we don't
8443 # have to do anything special.
8444 aix_use_runtimelinking=no
8445 exp_sym_flag='-Bexport'
8446 no_entry_flag=""
8447 else
8448 # If we're using GNU nm, then we don't want the "-C" option.
8449 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8450 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8451 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'
8452 else
8453 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'
8454 fi
8455 aix_use_runtimelinking=no
8456
8457 # Test if we are trying to use run time linking or normal
8458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8459 # need to do runtime linking.
8460 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8461 for ld_flag in $LDFLAGS; do
8462 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8463 aix_use_runtimelinking=yes
8464 break
8465 fi
8466 done
8467 ;;
8468 esac
8469
8470 exp_sym_flag='-bexport'
8471 no_entry_flag='-bnoentry'
8472 fi
8473
8474 # When large executables or shared objects are built, AIX ld can
8475 # have problems creating the table of contents. If linking a library
8476 # or program results in "error TOC overflow" add -mminimal-toc to
8477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8479
8480 archive_cmds=''
8481 hardcode_direct=yes
8482 hardcode_direct_absolute=yes
8483 hardcode_libdir_separator=':'
8484 link_all_deplibs=yes
8485 file_list_spec='${wl}-f,'
8486
8487 if test "$GCC" = yes; then
8488 case $host_os in aix4.[012]|aix4.[012].*)
8489 # We only want to do this on AIX 4.2 and lower, the check
8490 # below for broken collect2 doesn't work under 4.3+
8491 collect2name=`${CC} -print-prog-name=collect2`
8492 if test -f "$collect2name" &&
8493 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8494 then
8495 # We have reworked collect2
8496 :
8497 else
8498 # We have old collect2
8499 hardcode_direct=unsupported
8500 # It fails to find uninstalled libraries when the uninstalled
8501 # path is not listed in the libpath. Setting hardcode_minus_L
8502 # to unsupported forces relinking
8503 hardcode_minus_L=yes
8504 hardcode_libdir_flag_spec='-L$libdir'
8505 hardcode_libdir_separator=
8506 fi
8507 ;;
8508 esac
8509 shared_flag='-shared'
8510 if test "$aix_use_runtimelinking" = yes; then
8511 shared_flag="$shared_flag "'${wl}-G'
8512 fi
8513 else
8514 # not using gcc
8515 if test "$host_cpu" = ia64; then
8516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8517 # chokes on -Wl,-G. The following line is correct:
8518 shared_flag='-G'
8519 else
8520 if test "$aix_use_runtimelinking" = yes; then
8521 shared_flag='${wl}-G'
8522 else
8523 shared_flag='${wl}-bM:SRE'
8524 fi
8525 fi
8526 fi
8527
8528 export_dynamic_flag_spec='${wl}-bexpall'
8529 # It seems that -bexpall does not export symbols beginning with
8530 # underscore (_), so it is better to generate a list of symbols to export.
8531 always_export_symbols=yes
8532 if test "$aix_use_runtimelinking" = yes; then
8533 # Warning - without using the other runtime loading flags (-brtl),
8534 # -berok will link without error, but may produce a broken library.
8535 allow_undefined_flag='-berok'
8536 # Determine the default libpath from the value encoded in an
8537 # empty executable.
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h. */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544
8545 int
8546 main ()
8547 {
8548
8549 ;
8550 return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (ac_try="$ac_link"
8555 case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558 esac
8559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8560 $as_echo "$ac_try_echo") >&5
8561 (eval "$ac_link") 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest$ac_exeext && {
8571 test "$cross_compiling" = yes ||
8572 $as_test_x conftest$ac_exeext
8573 }; then
8574
8575 lt_aix_libpath_sed='
8576 /Import File Strings/,/^$/ {
8577 /^0/ {
8578 s/^0 *\(.*\)$/\1/
8579 p
8580 }
8581 }'
8582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8583 # Check for a 64-bit object if we didn't find anything.
8584 if test -z "$aix_libpath"; then
8585 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8586 fi
8587 else
8588 $as_echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8590
8591
8592 fi
8593
8594 rm -rf conftest.dSYM
8595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8596 conftest$ac_exeext conftest.$ac_ext
8597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8598
8599 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8600 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"
8601 else
8602 if test "$host_cpu" = ia64; then
8603 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8604 allow_undefined_flag="-z nodefs"
8605 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"
8606 else
8607 # Determine the default libpath from the value encoded in an
8608 # empty executable.
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h. */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615
8616 int
8617 main ()
8618 {
8619
8620 ;
8621 return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (ac_try="$ac_link"
8626 case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629 esac
8630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631 $as_echo "$ac_try_echo") >&5
8632 (eval "$ac_link") 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && {
8639 test -z "$ac_c_werror_flag" ||
8640 test ! -s conftest.err
8641 } && test -s conftest$ac_exeext && {
8642 test "$cross_compiling" = yes ||
8643 $as_test_x conftest$ac_exeext
8644 }; then
8645
8646 lt_aix_libpath_sed='
8647 /Import File Strings/,/^$/ {
8648 /^0/ {
8649 s/^0 *\(.*\)$/\1/
8650 p
8651 }
8652 }'
8653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8654 # Check for a 64-bit object if we didn't find anything.
8655 if test -z "$aix_libpath"; then
8656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8657 fi
8658 else
8659 $as_echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662
8663 fi
8664
8665 rm -rf conftest.dSYM
8666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8667 conftest$ac_exeext conftest.$ac_ext
8668 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8669
8670 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8671 # Warning - without using the other run time loading flags,
8672 # -berok will link without error, but may produce a broken library.
8673 no_undefined_flag=' ${wl}-bernotok'
8674 allow_undefined_flag=' ${wl}-berok'
8675 # Exported symbols can be pulled into shared objects from archives
8676 whole_archive_flag_spec='$convenience'
8677 archive_cmds_need_lc=yes
8678 # This is similar to how AIX traditionally builds its shared libraries.
8679 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'
8680 fi
8681 fi
8682 ;;
8683
8684 amigaos*)
8685 case $host_cpu in
8686 powerpc)
8687 # see comment about AmigaOS4 .so support
8688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8689 archive_expsym_cmds=''
8690 ;;
8691 m68k)
8692 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)'
8693 hardcode_libdir_flag_spec='-L$libdir'
8694 hardcode_minus_L=yes
8695 ;;
8696 esac
8697 ;;
8698
8699 bsdi[45]*)
8700 export_dynamic_flag_spec=-rdynamic
8701 ;;
8702
8703 cygwin* | mingw* | pw32* | cegcc*)
8704 # When not using gcc, we currently assume that we are using
8705 # Microsoft Visual C++.
8706 # hardcode_libdir_flag_spec is actually meaningless, as there is
8707 # no search path for DLLs.
8708 hardcode_libdir_flag_spec=' '
8709 allow_undefined_flag=unsupported
8710 # Tell ltmain to make .lib files, not .a files.
8711 libext=lib
8712 # Tell ltmain to make .dll files, not .so files.
8713 shrext_cmds=".dll"
8714 # FIXME: Setting linknames here is a bad hack.
8715 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8716 # The linker will automatically build a .lib file if we build a DLL.
8717 old_archive_from_new_cmds='true'
8718 # FIXME: Should let the user specify the lib program.
8719 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8720 fix_srcfile_path='`cygpath -w "$srcfile"`'
8721 enable_shared_with_static_runtimes=yes
8722 ;;
8723
8724 darwin* | rhapsody*)
8725
8726
8727 archive_cmds_need_lc=no
8728 hardcode_direct=no
8729 hardcode_automatic=yes
8730 hardcode_shlibpath_var=unsupported
8731 whole_archive_flag_spec=''
8732 link_all_deplibs=yes
8733 allow_undefined_flag="$_lt_dar_allow_undefined"
8734 case $cc_basename in
8735 ifort*) _lt_dar_can_shared=yes ;;
8736 *) _lt_dar_can_shared=$GCC ;;
8737 esac
8738 if test "$_lt_dar_can_shared" = "yes"; then
8739 output_verbose_link_cmd=echo
8740 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8741 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8742 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}"
8743 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}"
8744
8745 else
8746 ld_shlibs=no
8747 fi
8748
8749 ;;
8750
8751 dgux*)
8752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753 hardcode_libdir_flag_spec='-L$libdir'
8754 hardcode_shlibpath_var=no
8755 ;;
8756
8757 freebsd1*)
8758 ld_shlibs=no
8759 ;;
8760
8761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8762 # support. Future versions do this automatically, but an explicit c++rt0.o
8763 # does not break anything, and helps significantly (at the cost of a little
8764 # extra space).
8765 freebsd2.2*)
8766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8767 hardcode_libdir_flag_spec='-R$libdir'
8768 hardcode_direct=yes
8769 hardcode_shlibpath_var=no
8770 ;;
8771
8772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8773 freebsd2*)
8774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8775 hardcode_direct=yes
8776 hardcode_minus_L=yes
8777 hardcode_shlibpath_var=no
8778 ;;
8779
8780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8781 freebsd* | dragonfly*)
8782 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8783 hardcode_libdir_flag_spec='-R$libdir'
8784 hardcode_direct=yes
8785 hardcode_shlibpath_var=no
8786 ;;
8787
8788 hpux9*)
8789 if test "$GCC" = yes; then
8790 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'
8791 else
8792 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'
8793 fi
8794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8795 hardcode_libdir_separator=:
8796 hardcode_direct=yes
8797
8798 # hardcode_minus_L: Not really in the search PATH,
8799 # but as the default location of the library.
8800 hardcode_minus_L=yes
8801 export_dynamic_flag_spec='${wl}-E'
8802 ;;
8803
8804 hpux10*)
8805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8806 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8807 else
8808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8809 fi
8810 if test "$with_gnu_ld" = no; then
8811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8812 hardcode_libdir_flag_spec_ld='+b $libdir'
8813 hardcode_libdir_separator=:
8814 hardcode_direct=yes
8815 hardcode_direct_absolute=yes
8816 export_dynamic_flag_spec='${wl}-E'
8817 # hardcode_minus_L: Not really in the search PATH,
8818 # but as the default location of the library.
8819 hardcode_minus_L=yes
8820 fi
8821 ;;
8822
8823 hpux11*)
8824 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8825 case $host_cpu in
8826 hppa*64*)
8827 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 ;;
8829 ia64*)
8830 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8831 ;;
8832 *)
8833 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8834 ;;
8835 esac
8836 else
8837 case $host_cpu in
8838 hppa*64*)
8839 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 ;;
8841 ia64*)
8842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8843 ;;
8844 *)
8845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8846 ;;
8847 esac
8848 fi
8849 if test "$with_gnu_ld" = no; then
8850 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8851 hardcode_libdir_separator=:
8852
8853 case $host_cpu in
8854 hppa*64*|ia64*)
8855 hardcode_direct=no
8856 hardcode_shlibpath_var=no
8857 ;;
8858 *)
8859 hardcode_direct=yes
8860 hardcode_direct_absolute=yes
8861 export_dynamic_flag_spec='${wl}-E'
8862
8863 # hardcode_minus_L: Not really in the search PATH,
8864 # but as the default location of the library.
8865 hardcode_minus_L=yes
8866 ;;
8867 esac
8868 fi
8869 ;;
8870
8871 irix5* | irix6* | nonstopux*)
8872 if test "$GCC" = yes; then
8873 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'
8874 # Try to use the -exported_symbol ld option, if it does not
8875 # work, assume that -exports_file does not work either and
8876 # implicitly export all symbols.
8877 save_LDFLAGS="$LDFLAGS"
8878 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8879 cat >conftest.$ac_ext <<_ACEOF
8880 int foo(void) {}
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (ac_try="$ac_link"
8884 case "(($ac_try" in
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8887 esac
8888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8889 $as_echo "$ac_try_echo") >&5
8890 (eval "$ac_link") 2>conftest.er1
8891 ac_status=$?
8892 grep -v '^ *+' conftest.er1 >conftest.err
8893 rm -f conftest.er1
8894 cat conftest.err >&5
8895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } && {
8897 test -z "$ac_c_werror_flag" ||
8898 test ! -s conftest.err
8899 } && test -s conftest$ac_exeext && {
8900 test "$cross_compiling" = yes ||
8901 $as_test_x conftest$ac_exeext
8902 }; then
8903 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'
8904
8905 else
8906 $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909
8910 fi
8911
8912 rm -rf conftest.dSYM
8913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8914 conftest$ac_exeext conftest.$ac_ext
8915 LDFLAGS="$save_LDFLAGS"
8916 else
8917 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'
8918 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'
8919 fi
8920 archive_cmds_need_lc='no'
8921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8922 hardcode_libdir_separator=:
8923 inherit_rpath=yes
8924 link_all_deplibs=yes
8925 ;;
8926
8927 netbsd*)
8928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8929 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8930 else
8931 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8932 fi
8933 hardcode_libdir_flag_spec='-R$libdir'
8934 hardcode_direct=yes
8935 hardcode_shlibpath_var=no
8936 ;;
8937
8938 newsos6)
8939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_direct=yes
8941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8942 hardcode_libdir_separator=:
8943 hardcode_shlibpath_var=no
8944 ;;
8945
8946 *nto* | *qnx*)
8947 ;;
8948
8949 openbsd*)
8950 if test -f /usr/libexec/ld.so; then
8951 hardcode_direct=yes
8952 hardcode_shlibpath_var=no
8953 hardcode_direct_absolute=yes
8954 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8958 export_dynamic_flag_spec='${wl}-E'
8959 else
8960 case $host_os in
8961 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8963 hardcode_libdir_flag_spec='-R$libdir'
8964 ;;
8965 *)
8966 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8967 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8968 ;;
8969 esac
8970 fi
8971 else
8972 ld_shlibs=no
8973 fi
8974 ;;
8975
8976 os2*)
8977 hardcode_libdir_flag_spec='-L$libdir'
8978 hardcode_minus_L=yes
8979 allow_undefined_flag=unsupported
8980 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'
8981 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8982 ;;
8983
8984 osf3*)
8985 if test "$GCC" = yes; then
8986 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8987 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'
8988 else
8989 allow_undefined_flag=' -expect_unresolved \*'
8990 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'
8991 fi
8992 archive_cmds_need_lc='no'
8993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8994 hardcode_libdir_separator=:
8995 ;;
8996
8997 osf4* | osf5*) # as osf3* with the addition of -msym flag
8998 if test "$GCC" = yes; then
8999 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9000 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'
9001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9002 else
9003 allow_undefined_flag=' -expect_unresolved \*'
9004 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'
9005 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~
9006 $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'
9007
9008 # Both c and cxx compiler support -rpath directly
9009 hardcode_libdir_flag_spec='-rpath $libdir'
9010 fi
9011 archive_cmds_need_lc='no'
9012 hardcode_libdir_separator=:
9013 ;;
9014
9015 solaris*)
9016 no_undefined_flag=' -z defs'
9017 if test "$GCC" = yes; then
9018 wlarc='${wl}'
9019 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9020 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9021 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9022 else
9023 case `$CC -V 2>&1` in
9024 *"Compilers 5.0"*)
9025 wlarc=''
9026 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9028 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9029 ;;
9030 *)
9031 wlarc='${wl}'
9032 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9033 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9034 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9035 ;;
9036 esac
9037 fi
9038 hardcode_libdir_flag_spec='-R$libdir'
9039 hardcode_shlibpath_var=no
9040 case $host_os in
9041 solaris2.[0-5] | solaris2.[0-5].*) ;;
9042 *)
9043 # The compiler driver will combine and reorder linker options,
9044 # but understands `-z linker_flag'. GCC discards it without `$wl',
9045 # but is careful enough not to reorder.
9046 # Supported since Solaris 2.6 (maybe 2.5.1?)
9047 if test "$GCC" = yes; then
9048 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9049 else
9050 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9051 fi
9052 ;;
9053 esac
9054 link_all_deplibs=yes
9055 ;;
9056
9057 sunos4*)
9058 if test "x$host_vendor" = xsequent; then
9059 # Use $CC to link under sequent, because it throws in some extra .o
9060 # files that make .init and .fini sections work.
9061 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9062 else
9063 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9064 fi
9065 hardcode_libdir_flag_spec='-L$libdir'
9066 hardcode_direct=yes
9067 hardcode_minus_L=yes
9068 hardcode_shlibpath_var=no
9069 ;;
9070
9071 sysv4)
9072 case $host_vendor in
9073 sni)
9074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_direct=yes # is this really true???
9076 ;;
9077 siemens)
9078 ## LD is ld it makes a PLAMLIB
9079 ## CC just makes a GrossModule.
9080 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9081 reload_cmds='$CC -r -o $output$reload_objs'
9082 hardcode_direct=no
9083 ;;
9084 motorola)
9085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9086 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9087 ;;
9088 esac
9089 runpath_var='LD_RUN_PATH'
9090 hardcode_shlibpath_var=no
9091 ;;
9092
9093 sysv4.3*)
9094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095 hardcode_shlibpath_var=no
9096 export_dynamic_flag_spec='-Bexport'
9097 ;;
9098
9099 sysv4*MP*)
9100 if test -d /usr/nec; then
9101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102 hardcode_shlibpath_var=no
9103 runpath_var=LD_RUN_PATH
9104 hardcode_runpath_var=yes
9105 ld_shlibs=yes
9106 fi
9107 ;;
9108
9109 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9110 no_undefined_flag='${wl}-z,text'
9111 archive_cmds_need_lc=no
9112 hardcode_shlibpath_var=no
9113 runpath_var='LD_RUN_PATH'
9114
9115 if test "$GCC" = yes; then
9116 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 else
9119 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 fi
9122 ;;
9123
9124 sysv5* | sco3.2v5* | sco5v6*)
9125 # Note: We can NOT use -z defs as we might desire, because we do not
9126 # link with -lc, and that would cause any symbols used from libc to
9127 # always be unresolved, which means just about no library would
9128 # ever link correctly. If we're not using GNU ld we use -z text
9129 # though, which does catch some bad symbols but isn't as heavy-handed
9130 # as -z defs.
9131 no_undefined_flag='${wl}-z,text'
9132 allow_undefined_flag='${wl}-z,nodefs'
9133 archive_cmds_need_lc=no
9134 hardcode_shlibpath_var=no
9135 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9136 hardcode_libdir_separator=':'
9137 link_all_deplibs=yes
9138 export_dynamic_flag_spec='${wl}-Bexport'
9139 runpath_var='LD_RUN_PATH'
9140
9141 if test "$GCC" = yes; then
9142 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9143 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9144 else
9145 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9147 fi
9148 ;;
9149
9150 uts4*)
9151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_libdir_flag_spec='-L$libdir'
9153 hardcode_shlibpath_var=no
9154 ;;
9155
9156 *)
9157 ld_shlibs=no
9158 ;;
9159 esac
9160
9161 if test x$host_vendor = xsni; then
9162 case $host in
9163 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9164 export_dynamic_flag_spec='${wl}-Blargedynsym'
9165 ;;
9166 esac
9167 fi
9168 fi
9169
9170 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9171 $as_echo "$ld_shlibs" >&6; }
9172 test "$ld_shlibs" = no && can_build_shared=no
9173
9174 with_gnu_ld=$with_gnu_ld
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190 #
9191 # Do we need to explicitly link libc?
9192 #
9193 case "x$archive_cmds_need_lc" in
9194 x|xyes)
9195 # Assume -lc should be added
9196 archive_cmds_need_lc=yes
9197
9198 if test "$enable_shared" = yes && test "$GCC" = yes; then
9199 case $archive_cmds in
9200 *'~'*)
9201 # FIXME: we may have to deal with multi-command sequences.
9202 ;;
9203 '$CC '*)
9204 # Test whether the compiler implicitly links with -lc since on some
9205 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9206 # to ld, don't add -lc before -lgcc.
9207 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9208 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9209 $RM conftest*
9210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9211
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>&5
9214 ac_status=$?
9215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } 2>conftest.err; then
9217 soname=conftest
9218 lib=conftest
9219 libobjs=conftest.$ac_objext
9220 deplibs=
9221 wl=$lt_prog_compiler_wl
9222 pic_flag=$lt_prog_compiler_pic
9223 compiler_flags=-v
9224 linker_flags=-v
9225 verstring=
9226 output_objdir=.
9227 libname=conftest
9228 lt_save_allow_undefined_flag=$allow_undefined_flag
9229 allow_undefined_flag=
9230 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9231 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9232 ac_status=$?
9233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }
9235 then
9236 archive_cmds_need_lc=no
9237 else
9238 archive_cmds_need_lc=yes
9239 fi
9240 allow_undefined_flag=$lt_save_allow_undefined_flag
9241 else
9242 cat conftest.err 1>&5
9243 fi
9244 $RM conftest*
9245 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9246 $as_echo "$archive_cmds_need_lc" >&6; }
9247 ;;
9248 esac
9249 fi
9250 ;;
9251 esac
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9410 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9411
9412 if test "$GCC" = yes; then
9413 case $host_os in
9414 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9415 *) lt_awk_arg="/^libraries:/" ;;
9416 esac
9417 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9418 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9419 # if the path contains ";" then we assume it to be the separator
9420 # otherwise default to the standard path separator (i.e. ":") - it is
9421 # assumed that no part of a normal pathname contains ";" but that should
9422 # okay in the real world where ";" in dirpaths is itself problematic.
9423 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9424 else
9425 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9426 fi
9427 # Ok, now we have the path, separated by spaces, we can step through it
9428 # and add multilib dir if necessary.
9429 lt_tmp_lt_search_path_spec=
9430 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9431 for lt_sys_path in $lt_search_path_spec; do
9432 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9433 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9434 else
9435 test -d "$lt_sys_path" && \
9436 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9437 fi
9438 done
9439 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9440 BEGIN {RS=" "; FS="/|\n";} {
9441 lt_foo="";
9442 lt_count=0;
9443 for (lt_i = NF; lt_i > 0; lt_i--) {
9444 if ($lt_i != "" && $lt_i != ".") {
9445 if ($lt_i == "..") {
9446 lt_count++;
9447 } else {
9448 if (lt_count == 0) {
9449 lt_foo="/" $lt_i lt_foo;
9450 } else {
9451 lt_count--;
9452 }
9453 }
9454 }
9455 }
9456 if (lt_foo != "") { lt_freq[lt_foo]++; }
9457 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9458 }'`
9459 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9460 else
9461 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9462 fi
9463 library_names_spec=
9464 libname_spec='lib$name'
9465 soname_spec=
9466 shrext_cmds=".so"
9467 postinstall_cmds=
9468 postuninstall_cmds=
9469 finish_cmds=
9470 finish_eval=
9471 shlibpath_var=
9472 shlibpath_overrides_runpath=unknown
9473 version_type=none
9474 dynamic_linker="$host_os ld.so"
9475 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9476 need_lib_prefix=unknown
9477 hardcode_into_libs=no
9478
9479 # when you set need_version to no, make sure it does not cause -set_version
9480 # flags to be left without arguments
9481 need_version=unknown
9482
9483 case $host_os in
9484 aix3*)
9485 version_type=linux
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9487 shlibpath_var=LIBPATH
9488
9489 # AIX 3 has no versioning support, so we append a major version to the name.
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 ;;
9492
9493 aix[4-9]*)
9494 version_type=linux
9495 need_lib_prefix=no
9496 need_version=no
9497 hardcode_into_libs=yes
9498 if test "$host_cpu" = ia64; then
9499 # AIX 5 supports IA64
9500 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 else
9503 # With GCC up to 2.95.x, collect2 would create an import file
9504 # for dependence libraries. The import file would start with
9505 # the line `#! .'. This would cause the generated library to
9506 # depend on `.', always an invalid library. This was fixed in
9507 # development snapshots of GCC prior to 3.0.
9508 case $host_os in
9509 aix4 | aix4.[01] | aix4.[01].*)
9510 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9511 echo ' yes '
9512 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9513 :
9514 else
9515 can_build_shared=no
9516 fi
9517 ;;
9518 esac
9519 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9520 # soname into executable. Probably we can add versioning support to
9521 # collect2, so additional links can be useful in future.
9522 if test "$aix_use_runtimelinking" = yes; then
9523 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9524 # instead of lib<name>.a to let people know that these are not
9525 # typical AIX shared libraries.
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527 else
9528 # We preserve .a as extension for shared libraries through AIX4.2
9529 # and later when we are not doing run time linking.
9530 library_names_spec='${libname}${release}.a $libname.a'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 fi
9533 shlibpath_var=LIBPATH
9534 fi
9535 ;;
9536
9537 amigaos*)
9538 case $host_cpu in
9539 powerpc)
9540 # Since July 2007 AmigaOS4 officially supports .so libraries.
9541 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 ;;
9544 m68k)
9545 library_names_spec='$libname.ixlibrary $libname.a'
9546 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9547 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'
9548 ;;
9549 esac
9550 ;;
9551
9552 beos*)
9553 library_names_spec='${libname}${shared_ext}'
9554 dynamic_linker="$host_os ld.so"
9555 shlibpath_var=LIBRARY_PATH
9556 ;;
9557
9558 bsdi[45]*)
9559 version_type=linux
9560 need_version=no
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9564 shlibpath_var=LD_LIBRARY_PATH
9565 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9566 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9567 # the default ld.so.conf also contains /usr/contrib/lib and
9568 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9569 # libtool to hard-code these into programs
9570 ;;
9571
9572 cygwin* | mingw* | pw32* | cegcc*)
9573 version_type=windows
9574 shrext_cmds=".dll"
9575 need_version=no
9576 need_lib_prefix=no
9577
9578 case $GCC,$host_os in
9579 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9580 library_names_spec='$libname.dll.a'
9581 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9582 postinstall_cmds='base_file=`basename \${file}`~
9583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9584 dldir=$destdir/`dirname \$dlpath`~
9585 test -d \$dldir || mkdir -p \$dldir~
9586 $install_prog $dir/$dlname \$dldir/$dlname~
9587 chmod a+x \$dldir/$dlname~
9588 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9589 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9590 fi'
9591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9592 dlpath=$dir/\$dldll~
9593 $RM \$dlpath'
9594 shlibpath_overrides_runpath=yes
9595
9596 case $host_os in
9597 cygwin*)
9598 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9599 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9600 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9601 ;;
9602 mingw* | cegcc*)
9603 # MinGW DLLs use traditional 'lib' prefix
9604 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9605 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9606 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9607 # It is most probably a Windows format PATH printed by
9608 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9609 # path with ; separators, and with drive letters. We can handle the
9610 # drive letters (cygwin fileutils understands them), so leave them,
9611 # especially as we might pass files found there to a mingw objdump,
9612 # which wouldn't understand a cygwinified path. Ahh.
9613 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9614 else
9615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9616 fi
9617 ;;
9618 pw32*)
9619 # pw32 DLLs use 'pw' prefix rather than 'lib'
9620 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9621 ;;
9622 esac
9623 ;;
9624
9625 *)
9626 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9627 ;;
9628 esac
9629 dynamic_linker='Win32 ld.exe'
9630 # FIXME: first we should search . and the directory the executable is in
9631 shlibpath_var=PATH
9632 ;;
9633
9634 darwin* | rhapsody*)
9635 dynamic_linker="$host_os dyld"
9636 version_type=darwin
9637 need_lib_prefix=no
9638 need_version=no
9639 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9640 soname_spec='${libname}${release}${major}$shared_ext'
9641 shlibpath_overrides_runpath=yes
9642 shlibpath_var=DYLD_LIBRARY_PATH
9643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9644
9645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9647 ;;
9648
9649 dgux*)
9650 version_type=linux
9651 need_lib_prefix=no
9652 need_version=no
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 shlibpath_var=LD_LIBRARY_PATH
9656 ;;
9657
9658 freebsd1*)
9659 dynamic_linker=no
9660 ;;
9661
9662 freebsd* | dragonfly*)
9663 # DragonFly does not have aout. When/if they implement a new
9664 # versioning mechanism, adjust this.
9665 if test -x /usr/bin/objformat; then
9666 objformat=`/usr/bin/objformat`
9667 else
9668 case $host_os in
9669 freebsd[123]*) objformat=aout ;;
9670 *) objformat=elf ;;
9671 esac
9672 fi
9673 version_type=freebsd-$objformat
9674 case $version_type in
9675 freebsd-elf*)
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9677 need_version=no
9678 need_lib_prefix=no
9679 ;;
9680 freebsd-*)
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9682 need_version=yes
9683 ;;
9684 esac
9685 shlibpath_var=LD_LIBRARY_PATH
9686 case $host_os in
9687 freebsd2*)
9688 shlibpath_overrides_runpath=yes
9689 ;;
9690 freebsd3.[01]* | freebsdelf3.[01]*)
9691 shlibpath_overrides_runpath=yes
9692 hardcode_into_libs=yes
9693 ;;
9694 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9695 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9696 shlibpath_overrides_runpath=no
9697 hardcode_into_libs=yes
9698 ;;
9699 *) # from 4.6 on, and DragonFly
9700 shlibpath_overrides_runpath=yes
9701 hardcode_into_libs=yes
9702 ;;
9703 esac
9704 ;;
9705
9706 gnu*)
9707 version_type=linux
9708 need_lib_prefix=no
9709 need_version=no
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 shlibpath_var=LD_LIBRARY_PATH
9713 hardcode_into_libs=yes
9714 ;;
9715
9716 hpux9* | hpux10* | hpux11*)
9717 # Give a soname corresponding to the major version so that dld.sl refuses to
9718 # link against other versions.
9719 version_type=sunos
9720 need_lib_prefix=no
9721 need_version=no
9722 case $host_cpu in
9723 ia64*)
9724 shrext_cmds='.so'
9725 hardcode_into_libs=yes
9726 dynamic_linker="$host_os dld.so"
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 soname_spec='${libname}${release}${shared_ext}$major'
9731 if test "X$HPUX_IA64_MODE" = X32; then
9732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9733 else
9734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9735 fi
9736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9737 ;;
9738 hppa*64*)
9739 shrext_cmds='.sl'
9740 hardcode_into_libs=yes
9741 dynamic_linker="$host_os dld.sl"
9742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9748 ;;
9749 *)
9750 shrext_cmds='.sl'
9751 dynamic_linker="$host_os dld.sl"
9752 shlibpath_var=SHLIB_PATH
9753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9756 ;;
9757 esac
9758 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9759 postinstall_cmds='chmod 555 $lib'
9760 ;;
9761
9762 interix[3-9]*)
9763 version_type=linux
9764 need_lib_prefix=no
9765 need_version=no
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9767 soname_spec='${libname}${release}${shared_ext}$major'
9768 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9769 shlibpath_var=LD_LIBRARY_PATH
9770 shlibpath_overrides_runpath=no
9771 hardcode_into_libs=yes
9772 ;;
9773
9774 irix5* | irix6* | nonstopux*)
9775 case $host_os in
9776 nonstopux*) version_type=nonstopux ;;
9777 *)
9778 if test "$lt_cv_prog_gnu_ld" = yes; then
9779 version_type=linux
9780 else
9781 version_type=irix
9782 fi ;;
9783 esac
9784 need_lib_prefix=no
9785 need_version=no
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9788 case $host_os in
9789 irix5* | nonstopux*)
9790 libsuff= shlibsuff=
9791 ;;
9792 *)
9793 case $LD in # libtool.m4 will add one of these switches to LD
9794 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9795 libsuff= shlibsuff= libmagic=32-bit;;
9796 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9797 libsuff=32 shlibsuff=N32 libmagic=N32;;
9798 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9799 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9800 *) libsuff= shlibsuff= libmagic=never-match;;
9801 esac
9802 ;;
9803 esac
9804 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9805 shlibpath_overrides_runpath=no
9806 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9807 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9808 hardcode_into_libs=yes
9809 ;;
9810
9811 # No shared lib support for Linux oldld, aout, or coff.
9812 linux*oldld* | linux*aout* | linux*coff*)
9813 dynamic_linker=no
9814 ;;
9815
9816 # This must be Linux ELF.
9817 linux* | k*bsd*-gnu)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=no
9826 # Some binutils ld are patched to set DT_RUNPATH
9827 save_LDFLAGS=$LDFLAGS
9828 save_libdir=$libdir
9829 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9830 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h. */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9837
9838 int
9839 main ()
9840 {
9841
9842 ;
9843 return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9848 case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851 esac
9852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9853 $as_echo "$ac_try_echo") >&5
9854 (eval "$ac_link") 2>conftest.er1
9855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } && {
9861 test -z "$ac_c_werror_flag" ||
9862 test ! -s conftest.err
9863 } && test -s conftest$ac_exeext && {
9864 test "$cross_compiling" = yes ||
9865 $as_test_x conftest$ac_exeext
9866 }; then
9867 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9868 shlibpath_overrides_runpath=yes
9869 fi
9870
9871 else
9872 $as_echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875
9876 fi
9877
9878 rm -rf conftest.dSYM
9879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9880 conftest$ac_exeext conftest.$ac_ext
9881 LDFLAGS=$save_LDFLAGS
9882 libdir=$save_libdir
9883
9884 # This implies no fast_install, which is unacceptable.
9885 # Some rework will be needed to allow for fast_install
9886 # before this can be enabled.
9887 hardcode_into_libs=yes
9888
9889 # Add ABI-specific directories to the system library path.
9890 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9891
9892 # Append ld.so.conf contents to the search path
9893 if test -f /etc/ld.so.conf; then
9894 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' ' '`
9895 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9896 fi
9897
9898 # We used to test for /lib/ld.so.1 and disable shared libraries on
9899 # powerpc, because MkLinux only supported shared libraries with the
9900 # GNU dynamic linker. Since this was broken with cross compilers,
9901 # most powerpc-linux boxes support dynamic linking these days and
9902 # people can always --disable-shared, the test was removed, and we
9903 # assume the GNU/Linux dynamic linker is in use.
9904 dynamic_linker='GNU/Linux ld.so'
9905 ;;
9906
9907 netbsd*)
9908 version_type=sunos
9909 need_lib_prefix=no
9910 need_version=no
9911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9914 dynamic_linker='NetBSD (a.out) ld.so'
9915 else
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9917 soname_spec='${libname}${release}${shared_ext}$major'
9918 dynamic_linker='NetBSD ld.elf_so'
9919 fi
9920 shlibpath_var=LD_LIBRARY_PATH
9921 shlibpath_overrides_runpath=yes
9922 hardcode_into_libs=yes
9923 ;;
9924
9925 newsos6)
9926 version_type=linux
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=yes
9930 ;;
9931
9932 *nto* | *qnx*)
9933 version_type=qnx
9934 need_lib_prefix=no
9935 need_version=no
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=no
9940 hardcode_into_libs=yes
9941 dynamic_linker='ldqnx.so'
9942 ;;
9943
9944 openbsd*)
9945 version_type=sunos
9946 sys_lib_dlsearch_path_spec="/usr/lib"
9947 need_lib_prefix=no
9948 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9949 case $host_os in
9950 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9951 *) need_version=no ;;
9952 esac
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9957 case $host_os in
9958 openbsd2.[89] | openbsd2.[89].*)
9959 shlibpath_overrides_runpath=no
9960 ;;
9961 *)
9962 shlibpath_overrides_runpath=yes
9963 ;;
9964 esac
9965 else
9966 shlibpath_overrides_runpath=yes
9967 fi
9968 ;;
9969
9970 os2*)
9971 libname_spec='$name'
9972 shrext_cmds=".dll"
9973 need_lib_prefix=no
9974 library_names_spec='$libname${shared_ext} $libname.a'
9975 dynamic_linker='OS/2 ld.exe'
9976 shlibpath_var=LIBPATH
9977 ;;
9978
9979 osf3* | osf4* | osf5*)
9980 version_type=osf
9981 need_lib_prefix=no
9982 need_version=no
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9987 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9988 ;;
9989
9990 rdos*)
9991 dynamic_linker=no
9992 ;;
9993
9994 solaris*)
9995 version_type=linux
9996 need_lib_prefix=no
9997 need_version=no
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 shlibpath_var=LD_LIBRARY_PATH
10001 shlibpath_overrides_runpath=yes
10002 hardcode_into_libs=yes
10003 # ldd complains unless libraries are executable
10004 postinstall_cmds='chmod +x $lib'
10005 ;;
10006
10007 sunos4*)
10008 version_type=sunos
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10010 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 shlibpath_overrides_runpath=yes
10013 if test "$with_gnu_ld" = yes; then
10014 need_lib_prefix=no
10015 fi
10016 need_version=yes
10017 ;;
10018
10019 sysv4 | sysv4.3*)
10020 version_type=linux
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 shlibpath_var=LD_LIBRARY_PATH
10024 case $host_vendor in
10025 sni)
10026 shlibpath_overrides_runpath=no
10027 need_lib_prefix=no
10028 runpath_var=LD_RUN_PATH
10029 ;;
10030 siemens)
10031 need_lib_prefix=no
10032 ;;
10033 motorola)
10034 need_lib_prefix=no
10035 need_version=no
10036 shlibpath_overrides_runpath=no
10037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10038 ;;
10039 esac
10040 ;;
10041
10042 sysv4*MP*)
10043 if test -d /usr/nec ;then
10044 version_type=linux
10045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10046 soname_spec='$libname${shared_ext}.$major'
10047 shlibpath_var=LD_LIBRARY_PATH
10048 fi
10049 ;;
10050
10051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10052 version_type=freebsd-elf
10053 need_lib_prefix=no
10054 need_version=no
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 shlibpath_var=LD_LIBRARY_PATH
10058 shlibpath_overrides_runpath=yes
10059 hardcode_into_libs=yes
10060 if test "$with_gnu_ld" = yes; then
10061 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10062 else
10063 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10064 case $host_os in
10065 sco3.2v5*)
10066 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10067 ;;
10068 esac
10069 fi
10070 sys_lib_dlsearch_path_spec='/usr/lib'
10071 ;;
10072
10073 tpf*)
10074 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10075 version_type=linux
10076 need_lib_prefix=no
10077 need_version=no
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 shlibpath_overrides_runpath=no
10081 hardcode_into_libs=yes
10082 ;;
10083
10084 uts4*)
10085 version_type=linux
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 ;;
10090
10091 *)
10092 dynamic_linker=no
10093 ;;
10094 esac
10095 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10096 $as_echo "$dynamic_linker" >&6; }
10097 test "$dynamic_linker" = no && can_build_shared=no
10098
10099 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10100 if test "$GCC" = yes; then
10101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10102 fi
10103
10104 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10105 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10106 fi
10107 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10108 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10109 fi
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10198 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10199 hardcode_action=
10200 if test -n "$hardcode_libdir_flag_spec" ||
10201 test -n "$runpath_var" ||
10202 test "X$hardcode_automatic" = "Xyes" ; then
10203
10204 # We can hardcode non-existent directories.
10205 if test "$hardcode_direct" != no &&
10206 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10207 # have to relink, otherwise we might link with an installed library
10208 # when we should be linking with a yet-to-be-installed one
10209 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10210 test "$hardcode_minus_L" != no; then
10211 # Linking always hardcodes the temporary library directory.
10212 hardcode_action=relink
10213 else
10214 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10215 hardcode_action=immediate
10216 fi
10217 else
10218 # We cannot hardcode anything, or else we can only hardcode existing
10219 # directories.
10220 hardcode_action=unsupported
10221 fi
10222 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10223 $as_echo "$hardcode_action" >&6; }
10224
10225 if test "$hardcode_action" = relink ||
10226 test "$inherit_rpath" = yes; then
10227 # Fast installation is not supported
10228 enable_fast_install=no
10229 elif test "$shlibpath_overrides_runpath" = yes ||
10230 test "$enable_shared" = no; then
10231 # Fast installation is not necessary
10232 enable_fast_install=needless
10233 fi
10234
10235
10236
10237
10238
10239
10240 if test "x$enable_dlopen" != xyes; then
10241 enable_dlopen=unknown
10242 enable_dlopen_self=unknown
10243 enable_dlopen_self_static=unknown
10244 else
10245 lt_cv_dlopen=no
10246 lt_cv_dlopen_libs=
10247
10248 case $host_os in
10249 beos*)
10250 lt_cv_dlopen="load_add_on"
10251 lt_cv_dlopen_libs=
10252 lt_cv_dlopen_self=yes
10253 ;;
10254
10255 mingw* | pw32* | cegcc*)
10256 lt_cv_dlopen="LoadLibrary"
10257 lt_cv_dlopen_libs=
10258 ;;
10259
10260 cygwin*)
10261 lt_cv_dlopen="dlopen"
10262 lt_cv_dlopen_libs=
10263 ;;
10264
10265 darwin*)
10266 # if libdl is installed we need to link against it
10267 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10268 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10269 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10270 $as_echo_n "(cached) " >&6
10271 else
10272 ac_check_lib_save_LIBS=$LIBS
10273 LIBS="-ldl $LIBS"
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h. */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280
10281 /* Override any GCC internal prototype to avoid an error.
10282 Use char because int might match the return type of a GCC
10283 builtin and then its argument prototype would still apply. */
10284 #ifdef __cplusplus
10285 extern "C"
10286 #endif
10287 char dlopen ();
10288 int
10289 main ()
10290 {
10291 return dlopen ();
10292 ;
10293 return 0;
10294 }
10295 _ACEOF
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (ac_try="$ac_link"
10298 case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10301 esac
10302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303 $as_echo "$ac_try_echo") >&5
10304 (eval "$ac_link") 2>conftest.er1
10305 ac_status=$?
10306 grep -v '^ *+' conftest.er1 >conftest.err
10307 rm -f conftest.er1
10308 cat conftest.err >&5
10309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && {
10311 test -z "$ac_c_werror_flag" ||
10312 test ! -s conftest.err
10313 } && test -s conftest$ac_exeext && {
10314 test "$cross_compiling" = yes ||
10315 $as_test_x conftest$ac_exeext
10316 }; then
10317 ac_cv_lib_dl_dlopen=yes
10318 else
10319 $as_echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ac_cv_lib_dl_dlopen=no
10323 fi
10324
10325 rm -rf conftest.dSYM
10326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10327 conftest$ac_exeext conftest.$ac_ext
10328 LIBS=$ac_check_lib_save_LIBS
10329 fi
10330 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10331 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10332 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10334 else
10335
10336 lt_cv_dlopen="dyld"
10337 lt_cv_dlopen_libs=
10338 lt_cv_dlopen_self=yes
10339
10340 fi
10341
10342 ;;
10343
10344 *)
10345 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10346 $as_echo_n "checking for shl_load... " >&6; }
10347 if test "${ac_cv_func_shl_load+set}" = set; then
10348 $as_echo_n "(cached) " >&6
10349 else
10350 cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h. */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10356 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10358 #define shl_load innocuous_shl_load
10359
10360 /* System header to define __stub macros and hopefully few prototypes,
10361 which can conflict with char shl_load (); below.
10362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10363 <limits.h> exists even on freestanding compilers. */
10364
10365 #ifdef __STDC__
10366 # include <limits.h>
10367 #else
10368 # include <assert.h>
10369 #endif
10370
10371 #undef shl_load
10372
10373 /* Override any GCC internal prototype to avoid an error.
10374 Use char because int might match the return type of a GCC
10375 builtin and then its argument prototype would still apply. */
10376 #ifdef __cplusplus
10377 extern "C"
10378 #endif
10379 char shl_load ();
10380 /* The GNU C library defines this for functions which it implements
10381 to always fail with ENOSYS. Some functions are actually named
10382 something starting with __ and the normal name is an alias. */
10383 #if defined __stub_shl_load || defined __stub___shl_load
10384 choke me
10385 #endif
10386
10387 int
10388 main ()
10389 {
10390 return shl_load ();
10391 ;
10392 return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400 esac
10401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10402 $as_echo "$ac_try_echo") >&5
10403 (eval "$ac_link") 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest$ac_exeext && {
10413 test "$cross_compiling" = yes ||
10414 $as_test_x conftest$ac_exeext
10415 }; then
10416 ac_cv_func_shl_load=yes
10417 else
10418 $as_echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 ac_cv_func_shl_load=no
10422 fi
10423
10424 rm -rf conftest.dSYM
10425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10426 conftest$ac_exeext conftest.$ac_ext
10427 fi
10428 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10429 $as_echo "$ac_cv_func_shl_load" >&6; }
10430 if test "x$ac_cv_func_shl_load" = x""yes; then
10431 lt_cv_dlopen="shl_load"
10432 else
10433 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10434 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10435 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10436 $as_echo_n "(cached) " >&6
10437 else
10438 ac_check_lib_save_LIBS=$LIBS
10439 LIBS="-ldld $LIBS"
10440 cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h. */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10446
10447 /* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 char shl_load ();
10454 int
10455 main ()
10456 {
10457 return shl_load ();
10458 ;
10459 return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10467 esac
10468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10469 $as_echo "$ac_try_echo") >&5
10470 (eval "$ac_link") 2>conftest.er1
10471 ac_status=$?
10472 grep -v '^ *+' conftest.er1 >conftest.err
10473 rm -f conftest.er1
10474 cat conftest.err >&5
10475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest$ac_exeext && {
10480 test "$cross_compiling" = yes ||
10481 $as_test_x conftest$ac_exeext
10482 }; then
10483 ac_cv_lib_dld_shl_load=yes
10484 else
10485 $as_echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 ac_cv_lib_dld_shl_load=no
10489 fi
10490
10491 rm -rf conftest.dSYM
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493 conftest$ac_exeext conftest.$ac_ext
10494 LIBS=$ac_check_lib_save_LIBS
10495 fi
10496 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10497 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10498 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10499 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10500 else
10501 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10502 $as_echo_n "checking for dlopen... " >&6; }
10503 if test "${ac_cv_func_dlopen+set}" = set; then
10504 $as_echo_n "(cached) " >&6
10505 else
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h. */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10514 #define dlopen innocuous_dlopen
10515
10516 /* System header to define __stub macros and hopefully few prototypes,
10517 which can conflict with char dlopen (); below.
10518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10519 <limits.h> exists even on freestanding compilers. */
10520
10521 #ifdef __STDC__
10522 # include <limits.h>
10523 #else
10524 # include <assert.h>
10525 #endif
10526
10527 #undef dlopen
10528
10529 /* Override any GCC internal prototype to avoid an error.
10530 Use char because int might match the return type of a GCC
10531 builtin and then its argument prototype would still apply. */
10532 #ifdef __cplusplus
10533 extern "C"
10534 #endif
10535 char dlopen ();
10536 /* The GNU C library defines this for functions which it implements
10537 to always fail with ENOSYS. Some functions are actually named
10538 something starting with __ and the normal name is an alias. */
10539 #if defined __stub_dlopen || defined __stub___dlopen
10540 choke me
10541 #endif
10542
10543 int
10544 main ()
10545 {
10546 return dlopen ();
10547 ;
10548 return 0;
10549 }
10550 _ACEOF
10551 rm -f conftest.$ac_objext conftest$ac_exeext
10552 if { (ac_try="$ac_link"
10553 case "(($ac_try" in
10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555 *) ac_try_echo=$ac_try;;
10556 esac
10557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10558 $as_echo "$ac_try_echo") >&5
10559 (eval "$ac_link") 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } && {
10566 test -z "$ac_c_werror_flag" ||
10567 test ! -s conftest.err
10568 } && test -s conftest$ac_exeext && {
10569 test "$cross_compiling" = yes ||
10570 $as_test_x conftest$ac_exeext
10571 }; then
10572 ac_cv_func_dlopen=yes
10573 else
10574 $as_echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 ac_cv_func_dlopen=no
10578 fi
10579
10580 rm -rf conftest.dSYM
10581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582 conftest$ac_exeext conftest.$ac_ext
10583 fi
10584 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10585 $as_echo "$ac_cv_func_dlopen" >&6; }
10586 if test "x$ac_cv_func_dlopen" = x""yes; then
10587 lt_cv_dlopen="dlopen"
10588 else
10589 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10590 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10591 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10592 $as_echo_n "(cached) " >&6
10593 else
10594 ac_check_lib_save_LIBS=$LIBS
10595 LIBS="-ldl $LIBS"
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h. */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602
10603 /* Override any GCC internal prototype to avoid an error.
10604 Use char because int might match the return type of a GCC
10605 builtin and then its argument prototype would still apply. */
10606 #ifdef __cplusplus
10607 extern "C"
10608 #endif
10609 char dlopen ();
10610 int
10611 main ()
10612 {
10613 return dlopen ();
10614 ;
10615 return 0;
10616 }
10617 _ACEOF
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (ac_try="$ac_link"
10620 case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623 esac
10624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10625 $as_echo "$ac_try_echo") >&5
10626 (eval "$ac_link") 2>conftest.er1
10627 ac_status=$?
10628 grep -v '^ *+' conftest.er1 >conftest.err
10629 rm -f conftest.er1
10630 cat conftest.err >&5
10631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } && {
10633 test -z "$ac_c_werror_flag" ||
10634 test ! -s conftest.err
10635 } && test -s conftest$ac_exeext && {
10636 test "$cross_compiling" = yes ||
10637 $as_test_x conftest$ac_exeext
10638 }; then
10639 ac_cv_lib_dl_dlopen=yes
10640 else
10641 $as_echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10643
10644 ac_cv_lib_dl_dlopen=no
10645 fi
10646
10647 rm -rf conftest.dSYM
10648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LIBS=$ac_check_lib_save_LIBS
10651 fi
10652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10653 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10654 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10656 else
10657 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10658 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10659 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10660 $as_echo_n "(cached) " >&6
10661 else
10662 ac_check_lib_save_LIBS=$LIBS
10663 LIBS="-lsvld $LIBS"
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h. */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670
10671 /* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
10674 #ifdef __cplusplus
10675 extern "C"
10676 #endif
10677 char dlopen ();
10678 int
10679 main ()
10680 {
10681 return dlopen ();
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691 esac
10692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693 $as_echo "$ac_try_echo") >&5
10694 (eval "$ac_link") 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest$ac_exeext && {
10704 test "$cross_compiling" = yes ||
10705 $as_test_x conftest$ac_exeext
10706 }; then
10707 ac_cv_lib_svld_dlopen=yes
10708 else
10709 $as_echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10711
10712 ac_cv_lib_svld_dlopen=no
10713 fi
10714
10715 rm -rf conftest.dSYM
10716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10719 fi
10720 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10721 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10722 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10723 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10724 else
10725 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10726 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10727 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10728 $as_echo_n "(cached) " >&6
10729 else
10730 ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-ldld $LIBS"
10732 cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h. */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 char dld_link ();
10746 int
10747 main ()
10748 {
10749 return dld_link ();
10750 ;
10751 return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759 esac
10760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10761 $as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10774 }; then
10775 ac_cv_lib_dld_dld_link=yes
10776 else
10777 $as_echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 ac_cv_lib_dld_dld_link=no
10781 fi
10782
10783 rm -rf conftest.dSYM
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_lib_save_LIBS
10787 fi
10788 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10789 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10790 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10791 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10792 fi
10793
10794
10795 fi
10796
10797
10798 fi
10799
10800
10801 fi
10802
10803
10804 fi
10805
10806
10807 fi
10808
10809 ;;
10810 esac
10811
10812 if test "x$lt_cv_dlopen" != xno; then
10813 enable_dlopen=yes
10814 else
10815 enable_dlopen=no
10816 fi
10817
10818 case $lt_cv_dlopen in
10819 dlopen)
10820 save_CPPFLAGS="$CPPFLAGS"
10821 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10822
10823 save_LDFLAGS="$LDFLAGS"
10824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10825
10826 save_LIBS="$LIBS"
10827 LIBS="$lt_cv_dlopen_libs $LIBS"
10828
10829 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10830 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10831 if test "${lt_cv_dlopen_self+set}" = set; then
10832 $as_echo_n "(cached) " >&6
10833 else
10834 if test "$cross_compiling" = yes; then :
10835 lt_cv_dlopen_self=cross
10836 else
10837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10838 lt_status=$lt_dlunknown
10839 cat > conftest.$ac_ext <<_LT_EOF
10840 #line 10840 "configure"
10841 #include "confdefs.h"
10842
10843 #if HAVE_DLFCN_H
10844 #include <dlfcn.h>
10845 #endif
10846
10847 #include <stdio.h>
10848
10849 #ifdef RTLD_GLOBAL
10850 # define LT_DLGLOBAL RTLD_GLOBAL
10851 #else
10852 # ifdef DL_GLOBAL
10853 # define LT_DLGLOBAL DL_GLOBAL
10854 # else
10855 # define LT_DLGLOBAL 0
10856 # endif
10857 #endif
10858
10859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10860 find out it does not work in some platform. */
10861 #ifndef LT_DLLAZY_OR_NOW
10862 # ifdef RTLD_LAZY
10863 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10864 # else
10865 # ifdef DL_LAZY
10866 # define LT_DLLAZY_OR_NOW DL_LAZY
10867 # else
10868 # ifdef RTLD_NOW
10869 # define LT_DLLAZY_OR_NOW RTLD_NOW
10870 # else
10871 # ifdef DL_NOW
10872 # define LT_DLLAZY_OR_NOW DL_NOW
10873 # else
10874 # define LT_DLLAZY_OR_NOW 0
10875 # endif
10876 # endif
10877 # endif
10878 # endif
10879 #endif
10880
10881 void fnord() { int i=42;}
10882 int main ()
10883 {
10884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10885 int status = $lt_dlunknown;
10886
10887 if (self)
10888 {
10889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10890 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10891 /* dlclose (self); */
10892 }
10893 else
10894 puts (dlerror ());
10895
10896 return status;
10897 }
10898 _LT_EOF
10899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10900 (eval $ac_link) 2>&5
10901 ac_status=$?
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10904 (./conftest; exit; ) >&5 2>/dev/null
10905 lt_status=$?
10906 case x$lt_status in
10907 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10908 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10909 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10910 esac
10911 else :
10912 # compilation failed
10913 lt_cv_dlopen_self=no
10914 fi
10915 fi
10916 rm -fr conftest*
10917
10918
10919 fi
10920 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10921 $as_echo "$lt_cv_dlopen_self" >&6; }
10922
10923 if test "x$lt_cv_dlopen_self" = xyes; then
10924 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10925 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10926 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10927 if test "${lt_cv_dlopen_self_static+set}" = set; then
10928 $as_echo_n "(cached) " >&6
10929 else
10930 if test "$cross_compiling" = yes; then :
10931 lt_cv_dlopen_self_static=cross
10932 else
10933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10934 lt_status=$lt_dlunknown
10935 cat > conftest.$ac_ext <<_LT_EOF
10936 #line 10936 "configure"
10937 #include "confdefs.h"
10938
10939 #if HAVE_DLFCN_H
10940 #include <dlfcn.h>
10941 #endif
10942
10943 #include <stdio.h>
10944
10945 #ifdef RTLD_GLOBAL
10946 # define LT_DLGLOBAL RTLD_GLOBAL
10947 #else
10948 # ifdef DL_GLOBAL
10949 # define LT_DLGLOBAL DL_GLOBAL
10950 # else
10951 # define LT_DLGLOBAL 0
10952 # endif
10953 #endif
10954
10955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10956 find out it does not work in some platform. */
10957 #ifndef LT_DLLAZY_OR_NOW
10958 # ifdef RTLD_LAZY
10959 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10960 # else
10961 # ifdef DL_LAZY
10962 # define LT_DLLAZY_OR_NOW DL_LAZY
10963 # else
10964 # ifdef RTLD_NOW
10965 # define LT_DLLAZY_OR_NOW RTLD_NOW
10966 # else
10967 # ifdef DL_NOW
10968 # define LT_DLLAZY_OR_NOW DL_NOW
10969 # else
10970 # define LT_DLLAZY_OR_NOW 0
10971 # endif
10972 # endif
10973 # endif
10974 # endif
10975 #endif
10976
10977 void fnord() { int i=42;}
10978 int main ()
10979 {
10980 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10981 int status = $lt_dlunknown;
10982
10983 if (self)
10984 {
10985 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10986 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10987 /* dlclose (self); */
10988 }
10989 else
10990 puts (dlerror ());
10991
10992 return status;
10993 }
10994 _LT_EOF
10995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996 (eval $ac_link) 2>&5
10997 ac_status=$?
10998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11000 (./conftest; exit; ) >&5 2>/dev/null
11001 lt_status=$?
11002 case x$lt_status in
11003 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11004 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11005 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11006 esac
11007 else :
11008 # compilation failed
11009 lt_cv_dlopen_self_static=no
11010 fi
11011 fi
11012 rm -fr conftest*
11013
11014
11015 fi
11016 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11017 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11018 fi
11019
11020 CPPFLAGS="$save_CPPFLAGS"
11021 LDFLAGS="$save_LDFLAGS"
11022 LIBS="$save_LIBS"
11023 ;;
11024 esac
11025
11026 case $lt_cv_dlopen_self in
11027 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11028 *) enable_dlopen_self=unknown ;;
11029 esac
11030
11031 case $lt_cv_dlopen_self_static in
11032 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11033 *) enable_dlopen_self_static=unknown ;;
11034 esac
11035 fi
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053 striplib=
11054 old_striplib=
11055 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11056 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11057 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11058 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11059 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11060 { $as_echo "$as_me:$LINENO: result: yes" >&5
11061 $as_echo "yes" >&6; }
11062 else
11063 # FIXME - insert some real tests, host_os isn't really good enough
11064 case $host_os in
11065 darwin*)
11066 if test -n "$STRIP" ; then
11067 striplib="$STRIP -x"
11068 old_striplib="$STRIP -S"
11069 { $as_echo "$as_me:$LINENO: result: yes" >&5
11070 $as_echo "yes" >&6; }
11071 else
11072 { $as_echo "$as_me:$LINENO: result: no" >&5
11073 $as_echo "no" >&6; }
11074 fi
11075 ;;
11076 *)
11077 { $as_echo "$as_me:$LINENO: result: no" >&5
11078 $as_echo "no" >&6; }
11079 ;;
11080 esac
11081 fi
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094 # Report which library types will actually be built
11095 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11096 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11097 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11098 $as_echo "$can_build_shared" >&6; }
11099
11100 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11101 $as_echo_n "checking whether to build shared libraries... " >&6; }
11102 test "$can_build_shared" = "no" && enable_shared=no
11103
11104 # On AIX, shared libraries and static libraries use the same namespace, and
11105 # are all built from PIC.
11106 case $host_os in
11107 aix3*)
11108 test "$enable_shared" = yes && enable_static=no
11109 if test -n "$RANLIB"; then
11110 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11111 postinstall_cmds='$RANLIB $lib'
11112 fi
11113 ;;
11114
11115 aix[4-9]*)
11116 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11117 test "$enable_shared" = yes && enable_static=no
11118 fi
11119 ;;
11120 esac
11121 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11122 $as_echo "$enable_shared" >&6; }
11123
11124 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11125 $as_echo_n "checking whether to build static libraries... " >&6; }
11126 # Make sure either enable_shared or enable_static is yes.
11127 test "$enable_shared" = yes || enable_static=yes
11128 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11129 $as_echo "$enable_static" >&6; }
11130
11131
11132
11133
11134 fi
11135 ac_ext=c
11136 ac_cpp='$CPP $CPPFLAGS'
11137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11140
11141 CC="$lt_save_CC"
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155 ac_config_commands="$ac_config_commands libtool"
11156
11157
11158
11159
11160 # Only expand once:
11161
11162
11163
11164 if test "$GCC" = yes
11165 then
11166 CFLAGS="-Wall $CFLAGS"
11167 fi
11168 CFLAGS="$CFLAGS -I$srcdir/.. -I.."
11169
11170
11171
11172
11173 for ac_header in sys/types.h
11174 do
11175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11178 $as_echo_n "checking for $ac_header... " >&6; }
11179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11180 $as_echo_n "(cached) " >&6
11181 fi
11182 ac_res=`eval 'as_val=${'$as_ac_Header'}
11183 $as_echo "$as_val"'`
11184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11185 $as_echo "$ac_res" >&6; }
11186 else
11187 # Is the header compilable?
11188 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11189 $as_echo_n "checking $ac_header usability... " >&6; }
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 $ac_includes_default
11197 #include <$ac_header>
11198 _ACEOF
11199 rm -f conftest.$ac_objext
11200 if { (ac_try="$ac_compile"
11201 case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204 esac
11205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11206 $as_echo "$ac_try_echo") >&5
11207 (eval "$ac_compile") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest.$ac_objext; then
11217 ac_header_compiler=yes
11218 else
11219 $as_echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11221
11222 ac_header_compiler=no
11223 fi
11224
11225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11227 $as_echo "$ac_header_compiler" >&6; }
11228
11229 # Is the header present?
11230 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11231 $as_echo_n "checking $ac_header presence... " >&6; }
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h. */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 #include <$ac_header>
11239 _ACEOF
11240 if { (ac_try="$ac_cpp conftest.$ac_ext"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244 esac
11245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11246 $as_echo "$ac_try_echo") >&5
11247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } >/dev/null && {
11254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11255 test ! -s conftest.err
11256 }; then
11257 ac_header_preproc=yes
11258 else
11259 $as_echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11261
11262 ac_header_preproc=no
11263 fi
11264
11265 rm -f conftest.err conftest.$ac_ext
11266 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11267 $as_echo "$ac_header_preproc" >&6; }
11268
11269 # So? What about this header?
11270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11271 yes:no: )
11272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11273 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11275 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11276 ac_header_preproc=yes
11277 ;;
11278 no:yes:* )
11279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11280 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11282 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11288 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11290 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11291 ( cat <<\_ASBOX
11292 ## -------------------------------------------------- ##
11293 ## Report this to courier-users@lists.sourceforge.net ##
11294 ## -------------------------------------------------- ##
11295 _ASBOX
11296 ) | sed "s/^/$as_me: WARNING: /" >&2
11297 ;;
11298 esac
11299 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11300 $as_echo_n "checking for $ac_header... " >&6; }
11301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302 $as_echo_n "(cached) " >&6
11303 else
11304 eval "$as_ac_Header=\$ac_header_preproc"
11305 fi
11306 ac_res=`eval 'as_val=${'$as_ac_Header'}
11307 $as_echo "$as_val"'`
11308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11309 $as_echo "$ac_res" >&6; }
11310
11311 fi
11312 as_val=`eval 'as_val=${'$as_ac_Header'}
11313 $as_echo "$as_val"'`
11314 if test "x$as_val" = x""yes; then
11315 cat >>confdefs.h <<_ACEOF
11316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11317 _ACEOF
11318
11319 fi
11320
11321 done
11322
11323
11324
11325 # Check whether --with-int32 was given.
11326 if test "${with_int32+set}" = set; then
11327 withval=$with_int32; int32="$withval"
11328 else
11329
11330
11331 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11332 $as_echo_n "checking for uint32_t... " >&6; }
11333
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h. */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340
11341 #if HAVE_SYS_TYPES_H
11342 #include <sys/types.h>
11343 #endif
11344
11345 int
11346 main ()
11347 {
11348
11349 uint32_t i=0;
11350
11351 ;
11352 return 0;
11353 }
11354 _ACEOF
11355 rm -f conftest.$ac_objext
11356 if { (ac_try="$ac_compile"
11357 case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360 esac
11361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11362 $as_echo "$ac_try_echo") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest.$ac_objext; then
11373 { $as_echo "$as_me:$LINENO: result: yes" >&5
11374 $as_echo "yes" >&6; } ; int32="uint32_t"
11375 else
11376 $as_echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379
11380
11381 { $as_echo "$as_me:$LINENO: result: no" >&5
11382 $as_echo "no" >&6; }
11383 { $as_echo "$as_me:$LINENO: checking for u_int_32_t" >&5
11384 $as_echo_n "checking for u_int_32_t... " >&6; }
11385
11386 cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h. */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392
11393 #if HAVE_SYS_TYPES_H
11394 #include <sys/types.h>
11395 #endif
11396
11397 int
11398 main ()
11399 {
11400
11401 u_int32_t i=0;
11402
11403 ;
11404 return 0;
11405 }
11406 _ACEOF
11407 rm -f conftest.$ac_objext
11408 if { (ac_try="$ac_compile"
11409 case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11412 esac
11413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11414 $as_echo "$ac_try_echo") >&5
11415 (eval "$ac_compile") 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && {
11422 test -z "$ac_c_werror_flag" ||
11423 test ! -s conftest.err
11424 } && test -s conftest.$ac_objext; then
11425 { $as_echo "$as_me:$LINENO: result: yes" >&5
11426 $as_echo "yes" >&6; }; int32="u_int32_t"
11427 else
11428 $as_echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11430
11431
11432
11433 { $as_echo "$as_me:$LINENO: result: no" >&5
11434 $as_echo "no" >&6; }
11435
11436 # The cast to long int works around a bug in the HP C Compiler
11437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11439 # This bug is HP SR number 8606223364.
11440 { $as_echo "$as_me:$LINENO: checking size of unsigned" >&5
11441 $as_echo_n "checking size of unsigned... " >&6; }
11442 if test "${ac_cv_sizeof_unsigned+set}" = set; then
11443 $as_echo_n "(cached) " >&6
11444 else
11445 if test "$cross_compiling" = yes; then
11446 # Depending upon the size, compute the lo and hi bounds.
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h. */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 $ac_includes_default
11454 int
11455 main ()
11456 {
11457 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= 0)];
11458 test_array [0] = 0
11459
11460 ;
11461 return 0;
11462 }
11463 _ACEOF
11464 rm -f conftest.$ac_objext
11465 if { (ac_try="$ac_compile"
11466 case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469 esac
11470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11471 $as_echo "$ac_try_echo") >&5
11472 (eval "$ac_compile") 2>conftest.er1
11473 ac_status=$?
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
11477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } && {
11479 test -z "$ac_c_werror_flag" ||
11480 test ! -s conftest.err
11481 } && test -s conftest.$ac_objext; then
11482 ac_lo=0 ac_mid=0
11483 while :; do
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h. */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 $ac_includes_default
11491 int
11492 main ()
11493 {
11494 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)];
11495 test_array [0] = 0
11496
11497 ;
11498 return 0;
11499 }
11500 _ACEOF
11501 rm -f conftest.$ac_objext
11502 if { (ac_try="$ac_compile"
11503 case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11506 esac
11507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11508 $as_echo "$ac_try_echo") >&5
11509 (eval "$ac_compile") 2>conftest.er1
11510 ac_status=$?
11511 grep -v '^ *+' conftest.er1 >conftest.err
11512 rm -f conftest.er1
11513 cat conftest.err >&5
11514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } && {
11516 test -z "$ac_c_werror_flag" ||
11517 test ! -s conftest.err
11518 } && test -s conftest.$ac_objext; then
11519 ac_hi=$ac_mid; break
11520 else
11521 $as_echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.$ac_ext >&5
11523
11524 ac_lo=`expr $ac_mid + 1`
11525 if test $ac_lo -le $ac_mid; then
11526 ac_lo= ac_hi=
11527 break
11528 fi
11529 ac_mid=`expr 2 '*' $ac_mid + 1`
11530 fi
11531
11532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11533 done
11534 else
11535 $as_echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h. */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 $ac_includes_default
11545 int
11546 main ()
11547 {
11548 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) < 0)];
11549 test_array [0] = 0
11550
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (ac_try="$ac_compile"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560 esac
11561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11562 $as_echo "$ac_try_echo") >&5
11563 (eval "$ac_compile") 2>conftest.er1
11564 ac_status=$?
11565 grep -v '^ *+' conftest.er1 >conftest.err
11566 rm -f conftest.er1
11567 cat conftest.err >&5
11568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } && {
11570 test -z "$ac_c_werror_flag" ||
11571 test ! -s conftest.err
11572 } && test -s conftest.$ac_objext; then
11573 ac_hi=-1 ac_mid=-1
11574 while :; do
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h. */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581 $ac_includes_default
11582 int
11583 main ()
11584 {
11585 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= $ac_mid)];
11586 test_array [0] = 0
11587
11588 ;
11589 return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext
11593 if { (ac_try="$ac_compile"
11594 case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597 esac
11598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11599 $as_echo "$ac_try_echo") >&5
11600 (eval "$ac_compile") 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } && {
11607 test -z "$ac_c_werror_flag" ||
11608 test ! -s conftest.err
11609 } && test -s conftest.$ac_objext; then
11610 ac_lo=$ac_mid; break
11611 else
11612 $as_echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615 ac_hi=`expr '(' $ac_mid ')' - 1`
11616 if test $ac_mid -le $ac_hi; then
11617 ac_lo= ac_hi=
11618 break
11619 fi
11620 ac_mid=`expr 2 '*' $ac_mid`
11621 fi
11622
11623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 done
11625 else
11626 $as_echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11628
11629 ac_lo= ac_hi=
11630 fi
11631
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 fi
11634
11635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636 # Binary search between lo and hi bounds.
11637 while test "x$ac_lo" != "x$ac_hi"; do
11638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 $ac_includes_default
11646 int
11647 main ()
11648 {
11649 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)];
11650 test_array [0] = 0
11651
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 rm -f conftest.$ac_objext
11657 if { (ac_try="$ac_compile"
11658 case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11661 esac
11662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11663 $as_echo "$ac_try_echo") >&5
11664 (eval "$ac_compile") 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest.$ac_objext; then
11674 ac_hi=$ac_mid
11675 else
11676 $as_echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11678
11679 ac_lo=`expr '(' $ac_mid ')' + 1`
11680 fi
11681
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 done
11684 case $ac_lo in
11685 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
11686 '') if test "$ac_cv_type_unsigned" = yes; then
11687 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11689 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
11690 See \`config.log' for more details." >&5
11691 $as_echo "$as_me: error: cannot compute sizeof (unsigned)
11692 See \`config.log' for more details." >&2;}
11693 { (exit 77); exit 77; }; }; }
11694 else
11695 ac_cv_sizeof_unsigned=0
11696 fi ;;
11697 esac
11698 else
11699 cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h. */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705 $ac_includes_default
11706 static long int longval () { return (long int) (sizeof (unsigned)); }
11707 static unsigned long int ulongval () { return (long int) (sizeof (unsigned)); }
11708 #include <stdio.h>
11709 #include <stdlib.h>
11710 int
11711 main ()
11712 {
11713
11714 FILE *f = fopen ("conftest.val", "w");
11715 if (! f)
11716 return 1;
11717 if (((long int) (sizeof (unsigned))) < 0)
11718 {
11719 long int i = longval ();
11720 if (i != ((long int) (sizeof (unsigned))))
11721 return 1;
11722 fprintf (f, "%ld", i);
11723 }
11724 else
11725 {
11726 unsigned long int i = ulongval ();
11727 if (i != ((long int) (sizeof (unsigned))))
11728 return 1;
11729 fprintf (f, "%lu", i);
11730 }
11731 /* Do not output a trailing newline, as this causes \r\n confusion
11732 on some platforms. */
11733 return ferror (f) || fclose (f) != 0;
11734
11735 ;
11736 return 0;
11737 }
11738 _ACEOF
11739 rm -f conftest$ac_exeext
11740 if { (ac_try="$ac_link"
11741 case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11744 esac
11745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11746 $as_echo "$ac_try_echo") >&5
11747 (eval "$ac_link") 2>&5
11748 ac_status=$?
11749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11751 { (case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11754 esac
11755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11756 $as_echo "$ac_try_echo") >&5
11757 (eval "$ac_try") 2>&5
11758 ac_status=$?
11759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 ac_cv_sizeof_unsigned=`cat conftest.val`
11762 else
11763 $as_echo "$as_me: program exited with status $ac_status" >&5
11764 $as_echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11766
11767 ( exit $ac_status )
11768 if test "$ac_cv_type_unsigned" = yes; then
11769 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11771 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
11772 See \`config.log' for more details." >&5
11773 $as_echo "$as_me: error: cannot compute sizeof (unsigned)
11774 See \`config.log' for more details." >&2;}
11775 { (exit 77); exit 77; }; }; }
11776 else
11777 ac_cv_sizeof_unsigned=0
11778 fi
11779 fi
11780 rm -rf conftest.dSYM
11781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11782 fi
11783 rm -f conftest.val
11784 fi
11785 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
11786 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
11787
11788
11789
11790 cat >>confdefs.h <<_ACEOF
11791 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
11792 _ACEOF
11793
11794
11795 if test "$ac_cv_sizeof_unsigned" != 4
11796 then
11797 # The cast to long int works around a bug in the HP C Compiler
11798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11800 # This bug is HP SR number 8606223364.
11801 { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
11802 $as_echo_n "checking size of unsigned long... " >&6; }
11803 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
11804 $as_echo_n "(cached) " >&6
11805 else
11806 if test "$cross_compiling" = yes; then
11807 # Depending upon the size, compute the lo and hi bounds.
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 $ac_includes_default
11815 int
11816 main ()
11817 {
11818 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
11819 test_array [0] = 0
11820
11821 ;
11822 return 0;
11823 }
11824 _ACEOF
11825 rm -f conftest.$ac_objext
11826 if { (ac_try="$ac_compile"
11827 case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830 esac
11831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11832 $as_echo "$ac_try_echo") >&5
11833 (eval "$ac_compile") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest.$ac_objext; then
11843 ac_lo=0 ac_mid=0
11844 while :; do
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h. */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 $ac_includes_default
11852 int
11853 main ()
11854 {
11855 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
11856 test_array [0] = 0
11857
11858 ;
11859 return 0;
11860 }
11861 _ACEOF
11862 rm -f conftest.$ac_objext
11863 if { (ac_try="$ac_compile"
11864 case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11867 esac
11868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11869 $as_echo "$ac_try_echo") >&5
11870 (eval "$ac_compile") 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } && {
11877 test -z "$ac_c_werror_flag" ||
11878 test ! -s conftest.err
11879 } && test -s conftest.$ac_objext; then
11880 ac_hi=$ac_mid; break
11881 else
11882 $as_echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 ac_lo=`expr $ac_mid + 1`
11886 if test $ac_lo -le $ac_mid; then
11887 ac_lo= ac_hi=
11888 break
11889 fi
11890 ac_mid=`expr 2 '*' $ac_mid + 1`
11891 fi
11892
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 done
11895 else
11896 $as_echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11898
11899 cat >conftest.$ac_ext <<_ACEOF
11900 /* confdefs.h. */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 $ac_includes_default
11906 int
11907 main ()
11908 {
11909 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
11910 test_array [0] = 0
11911
11912 ;
11913 return 0;
11914 }
11915 _ACEOF
11916 rm -f conftest.$ac_objext
11917 if { (ac_try="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_hi=-1 ac_mid=-1
11935 while :; do
11936 cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h. */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11942 $ac_includes_default
11943 int
11944 main ()
11945 {
11946 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
11947 test_array [0] = 0
11948
11949 ;
11950 return 0;
11951 }
11952 _ACEOF
11953 rm -f conftest.$ac_objext
11954 if { (ac_try="$ac_compile"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958 esac
11959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11960 $as_echo "$ac_try_echo") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest.$ac_objext; then
11971 ac_lo=$ac_mid; break
11972 else
11973 $as_echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976 ac_hi=`expr '(' $ac_mid ')' - 1`
11977 if test $ac_mid -le $ac_hi; then
11978 ac_lo= ac_hi=
11979 break
11980 fi
11981 ac_mid=`expr 2 '*' $ac_mid`
11982 fi
11983
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985 done
11986 else
11987 $as_echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 ac_lo= ac_hi=
11991 fi
11992
11993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11994 fi
11995
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 # Binary search between lo and hi bounds.
11998 while test "x$ac_lo" != "x$ac_hi"; do
11999 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12000 cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h. */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 $ac_includes_default
12007 int
12008 main ()
12009 {
12010 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
12011 test_array [0] = 0
12012
12013 ;
12014 return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext
12018 if { (ac_try="$ac_compile"
12019 case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12022 esac
12023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12024 $as_echo "$ac_try_echo") >&5
12025 (eval "$ac_compile") 2>conftest.er1
12026 ac_status=$?
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
12030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } && {
12032 test -z "$ac_c_werror_flag" ||
12033 test ! -s conftest.err
12034 } && test -s conftest.$ac_objext; then
12035 ac_hi=$ac_mid
12036 else
12037 $as_echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 ac_lo=`expr '(' $ac_mid ')' + 1`
12041 fi
12042
12043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 done
12045 case $ac_lo in
12046 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12047 '') if test "$ac_cv_type_unsigned_long" = yes; then
12048 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12050 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
12051 See \`config.log' for more details." >&5
12052 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
12053 See \`config.log' for more details." >&2;}
12054 { (exit 77); exit 77; }; }; }
12055 else
12056 ac_cv_sizeof_unsigned_long=0
12057 fi ;;
12058 esac
12059 else
12060 cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h. */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 $ac_includes_default
12067 static long int longval () { return (long int) (sizeof (unsigned long)); }
12068 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
12069 #include <stdio.h>
12070 #include <stdlib.h>
12071 int
12072 main ()
12073 {
12074
12075 FILE *f = fopen ("conftest.val", "w");
12076 if (! f)
12077 return 1;
12078 if (((long int) (sizeof (unsigned long))) < 0)
12079 {
12080 long int i = longval ();
12081 if (i != ((long int) (sizeof (unsigned long))))
12082 return 1;
12083 fprintf (f, "%ld", i);
12084 }
12085 else
12086 {
12087 unsigned long int i = ulongval ();
12088 if (i != ((long int) (sizeof (unsigned long))))
12089 return 1;
12090 fprintf (f, "%lu", i);
12091 }
12092 /* Do not output a trailing newline, as this causes \r\n confusion
12093 on some platforms. */
12094 return ferror (f) || fclose (f) != 0;
12095
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 rm -f conftest$ac_exeext
12101 if { (ac_try="$ac_link"
12102 case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12105 esac
12106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12107 $as_echo "$ac_try_echo") >&5
12108 (eval "$ac_link") 2>&5
12109 ac_status=$?
12110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12112 { (case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115 esac
12116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12117 $as_echo "$ac_try_echo") >&5
12118 (eval "$ac_try") 2>&5
12119 ac_status=$?
12120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_cv_sizeof_unsigned_long=`cat conftest.val`
12123 else
12124 $as_echo "$as_me: program exited with status $ac_status" >&5
12125 $as_echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128 ( exit $ac_status )
12129 if test "$ac_cv_type_unsigned_long" = yes; then
12130 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12132 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
12133 See \`config.log' for more details." >&5
12134 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
12135 See \`config.log' for more details." >&2;}
12136 { (exit 77); exit 77; }; }; }
12137 else
12138 ac_cv_sizeof_unsigned_long=0
12139 fi
12140 fi
12141 rm -rf conftest.dSYM
12142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12143 fi
12144 rm -f conftest.val
12145 fi
12146 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12147 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
12148
12149
12150
12151 cat >>confdefs.h <<_ACEOF
12152 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12153 _ACEOF
12154
12155
12156 if test "$ac_cv_sizeof_unsigned_long" != 4
12157 then
12158 # The cast to long int works around a bug in the HP C Compiler
12159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12161 # This bug is HP SR number 8606223364.
12162 { $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
12163 $as_echo_n "checking size of unsigned short... " >&6; }
12164 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
12165 $as_echo_n "(cached) " >&6
12166 else
12167 if test "$cross_compiling" = yes; then
12168 # Depending upon the size, compute the lo and hi bounds.
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 $ac_includes_default
12176 int
12177 main ()
12178 {
12179 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
12180 test_array [0] = 0
12181
12182 ;
12183 return 0;
12184 }
12185 _ACEOF
12186 rm -f conftest.$ac_objext
12187 if { (ac_try="$ac_compile"
12188 case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191 esac
12192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12193 $as_echo "$ac_try_echo") >&5
12194 (eval "$ac_compile") 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } && {
12201 test -z "$ac_c_werror_flag" ||
12202 test ! -s conftest.err
12203 } && test -s conftest.$ac_objext; then
12204 ac_lo=0 ac_mid=0
12205 while :; do
12206 cat >conftest.$ac_ext <<_ACEOF
12207 /* confdefs.h. */
12208 _ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12212 $ac_includes_default
12213 int
12214 main ()
12215 {
12216 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
12217 test_array [0] = 0
12218
12219 ;
12220 return 0;
12221 }
12222 _ACEOF
12223 rm -f conftest.$ac_objext
12224 if { (ac_try="$ac_compile"
12225 case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12228 esac
12229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12230 $as_echo "$ac_try_echo") >&5
12231 (eval "$ac_compile") 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest.$ac_objext; then
12241 ac_hi=$ac_mid; break
12242 else
12243 $as_echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12245
12246 ac_lo=`expr $ac_mid + 1`
12247 if test $ac_lo -le $ac_mid; then
12248 ac_lo= ac_hi=
12249 break
12250 fi
12251 ac_mid=`expr 2 '*' $ac_mid + 1`
12252 fi
12253
12254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 done
12256 else
12257 $as_echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12259
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h. */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266 $ac_includes_default
12267 int
12268 main ()
12269 {
12270 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
12271 test_array [0] = 0
12272
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext
12278 if { (ac_try="$ac_compile"
12279 case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12282 esac
12283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12284 $as_echo "$ac_try_echo") >&5
12285 (eval "$ac_compile") 2>conftest.er1
12286 ac_status=$?
12287 grep -v '^ *+' conftest.er1 >conftest.err
12288 rm -f conftest.er1
12289 cat conftest.err >&5
12290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && {
12292 test -z "$ac_c_werror_flag" ||
12293 test ! -s conftest.err
12294 } && test -s conftest.$ac_objext; then
12295 ac_hi=-1 ac_mid=-1
12296 while :; do
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h. */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 $ac_includes_default
12304 int
12305 main ()
12306 {
12307 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
12308 test_array [0] = 0
12309
12310 ;
12311 return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (ac_try="$ac_compile"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319 esac
12320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12321 $as_echo "$ac_try_echo") >&5
12322 (eval "$ac_compile") 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && {
12329 test -z "$ac_c_werror_flag" ||
12330 test ! -s conftest.err
12331 } && test -s conftest.$ac_objext; then
12332 ac_lo=$ac_mid; break
12333 else
12334 $as_echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 ac_hi=`expr '(' $ac_mid ')' - 1`
12338 if test $ac_mid -le $ac_hi; then
12339 ac_lo= ac_hi=
12340 break
12341 fi
12342 ac_mid=`expr 2 '*' $ac_mid`
12343 fi
12344
12345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346 done
12347 else
12348 $as_echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12350
12351 ac_lo= ac_hi=
12352 fi
12353
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12355 fi
12356
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 # Binary search between lo and hi bounds.
12359 while test "x$ac_lo" != "x$ac_hi"; do
12360 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12361 cat >conftest.$ac_ext <<_ACEOF
12362 /* confdefs.h. */
12363 _ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h. */
12367 $ac_includes_default
12368 int
12369 main ()
12370 {
12371 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
12372 test_array [0] = 0
12373
12374 ;
12375 return 0;
12376 }
12377 _ACEOF
12378 rm -f conftest.$ac_objext
12379 if { (ac_try="$ac_compile"
12380 case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383 esac
12384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12385 $as_echo "$ac_try_echo") >&5
12386 (eval "$ac_compile") 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } && {
12393 test -z "$ac_c_werror_flag" ||
12394 test ! -s conftest.err
12395 } && test -s conftest.$ac_objext; then
12396 ac_hi=$ac_mid
12397 else
12398 $as_echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12400
12401 ac_lo=`expr '(' $ac_mid ')' + 1`
12402 fi
12403
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 done
12406 case $ac_lo in
12407 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
12408 '') if test "$ac_cv_type_unsigned_short" = yes; then
12409 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12411 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
12412 See \`config.log' for more details." >&5
12413 $as_echo "$as_me: error: cannot compute sizeof (unsigned short)
12414 See \`config.log' for more details." >&2;}
12415 { (exit 77); exit 77; }; }; }
12416 else
12417 ac_cv_sizeof_unsigned_short=0
12418 fi ;;
12419 esac
12420 else
12421 cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h. */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12427 $ac_includes_default
12428 static long int longval () { return (long int) (sizeof (unsigned short)); }
12429 static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
12430 #include <stdio.h>
12431 #include <stdlib.h>
12432 int
12433 main ()
12434 {
12435
12436 FILE *f = fopen ("conftest.val", "w");
12437 if (! f)
12438 return 1;
12439 if (((long int) (sizeof (unsigned short))) < 0)
12440 {
12441 long int i = longval ();
12442 if (i != ((long int) (sizeof (unsigned short))))
12443 return 1;
12444 fprintf (f, "%ld", i);
12445 }
12446 else
12447 {
12448 unsigned long int i = ulongval ();
12449 if (i != ((long int) (sizeof (unsigned short))))
12450 return 1;
12451 fprintf (f, "%lu", i);
12452 }
12453 /* Do not output a trailing newline, as this causes \r\n confusion
12454 on some platforms. */
12455 return ferror (f) || fclose (f) != 0;
12456
12457 ;
12458 return 0;
12459 }
12460 _ACEOF
12461 rm -f conftest$ac_exeext
12462 if { (ac_try="$ac_link"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466 esac
12467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12468 $as_echo "$ac_try_echo") >&5
12469 (eval "$ac_link") 2>&5
12470 ac_status=$?
12471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12476 esac
12477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12478 $as_echo "$ac_try_echo") >&5
12479 (eval "$ac_try") 2>&5
12480 ac_status=$?
12481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_cv_sizeof_unsigned_short=`cat conftest.val`
12484 else
12485 $as_echo "$as_me: program exited with status $ac_status" >&5
12486 $as_echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489 ( exit $ac_status )
12490 if test "$ac_cv_type_unsigned_short" = yes; then
12491 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12493 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
12494 See \`config.log' for more details." >&5
12495 $as_echo "$as_me: error: cannot compute sizeof (unsigned short)
12496 See \`config.log' for more details." >&2;}
12497 { (exit 77); exit 77; }; }; }
12498 else
12499 ac_cv_sizeof_unsigned_short=0
12500 fi
12501 fi
12502 rm -rf conftest.dSYM
12503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12504 fi
12505 rm -f conftest.val
12506 fi
12507 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
12508 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
12509
12510
12511
12512 cat >>confdefs.h <<_ACEOF
12513 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
12514 _ACEOF
12515
12516
12517 if test "$ac_cv_sizeof_unsigned_short" != 4
12518 then
12519 { { $as_echo "$as_me:$LINENO: error: --with-int32 option is required" >&5
12520 $as_echo "$as_me: error: --with-int32 option is required" >&2;}
12521 { (exit 1); exit 1; }; }
12522 fi
12523 int32="unsigned short"
12524 else
12525 int32="unsigned long"
12526 fi
12527 else
12528 int32="unsigned"
12529 fi
12530
12531 fi
12532
12533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534
12535 fi
12536
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12538
12539
12540 fi
12541
12542 UINT32="$int32"
12543
12544
12545 cat >>confdefs.h <<_ACEOF
12546 #define SHA1_WORD $UINT32
12547 _ACEOF
12548
12549
12550
12551 # Check whether --with-int64 was given.
12552 if test "${with_int64+set}" = set; then
12553 withval=$with_int64; int64="$withval"
12554 else
12555
12556
12557 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
12558 $as_echo_n "checking for uint64_t... " >&6; }
12559
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566
12567 #if HAVE_SYS_TYPES_H
12568 #include <sys/types.h>
12569 #endif
12570
12571 int
12572 main ()
12573 {
12574
12575 uint64_t i=0;
12576
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 rm -f conftest.$ac_objext
12582 if { (ac_try="$ac_compile"
12583 case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586 esac
12587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12588 $as_echo "$ac_try_echo") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.$ac_objext; then
12599 { $as_echo "$as_me:$LINENO: result: yes" >&5
12600 $as_echo "yes" >&6; } ; int64="uint64_t"
12601 else
12602 $as_echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12604
12605
12606
12607 { $as_echo "$as_me:$LINENO: result: no" >&5
12608 $as_echo "no" >&6; }
12609 { $as_echo "$as_me:$LINENO: checking for u_int_64_t" >&5
12610 $as_echo_n "checking for u_int_64_t... " >&6; }
12611
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h. */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618
12619 #if HAVE_SYS_TYPES_H
12620 #include <sys/types.h>
12621 #endif
12622
12623 int
12624 main ()
12625 {
12626
12627 u_int64_t i=0;
12628
12629 ;
12630 return 0;
12631 }
12632 _ACEOF
12633 rm -f conftest.$ac_objext
12634 if { (ac_try="$ac_compile"
12635 case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638 esac
12639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12640 $as_echo "$ac_try_echo") >&5
12641 (eval "$ac_compile") 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest.$ac_objext; then
12651 { $as_echo "$as_me:$LINENO: result: yes" >&5
12652 $as_echo "yes" >&6; }; int64="u_int64_t"
12653 else
12654 $as_echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657
12658
12659 { $as_echo "$as_me:$LINENO: result: no" >&5
12660 $as_echo "no" >&6; }
12661
12662 # The cast to long int works around a bug in the HP C Compiler
12663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12665 # This bug is HP SR number 8606223364.
12666 { $as_echo "$as_me:$LINENO: checking size of unsigned" >&5
12667 $as_echo_n "checking size of unsigned... " >&6; }
12668 if test "${ac_cv_sizeof_unsigned+set}" = set; then
12669 $as_echo_n "(cached) " >&6
12670 else
12671 if test "$cross_compiling" = yes; then
12672 # Depending upon the size, compute the lo and hi bounds.
12673 cat >conftest.$ac_ext <<_ACEOF
12674 /* confdefs.h. */
12675 _ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12679 $ac_includes_default
12680 int
12681 main ()
12682 {
12683 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= 0)];
12684 test_array [0] = 0
12685
12686 ;
12687 return 0;
12688 }
12689 _ACEOF
12690 rm -f conftest.$ac_objext
12691 if { (ac_try="$ac_compile"
12692 case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12695 esac
12696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12697 $as_echo "$ac_try_echo") >&5
12698 (eval "$ac_compile") 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && {
12705 test -z "$ac_c_werror_flag" ||
12706 test ! -s conftest.err
12707 } && test -s conftest.$ac_objext; then
12708 ac_lo=0 ac_mid=0
12709 while :; do
12710 cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h. */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 $ac_includes_default
12717 int
12718 main ()
12719 {
12720 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)];
12721 test_array [0] = 0
12722
12723 ;
12724 return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (ac_try="$ac_compile"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12732 esac
12733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12734 $as_echo "$ac_try_echo") >&5
12735 (eval "$ac_compile") 2>conftest.er1
12736 ac_status=$?
12737 grep -v '^ *+' conftest.er1 >conftest.err
12738 rm -f conftest.er1
12739 cat conftest.err >&5
12740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && {
12742 test -z "$ac_c_werror_flag" ||
12743 test ! -s conftest.err
12744 } && test -s conftest.$ac_objext; then
12745 ac_hi=$ac_mid; break
12746 else
12747 $as_echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12749
12750 ac_lo=`expr $ac_mid + 1`
12751 if test $ac_lo -le $ac_mid; then
12752 ac_lo= ac_hi=
12753 break
12754 fi
12755 ac_mid=`expr 2 '*' $ac_mid + 1`
12756 fi
12757
12758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 done
12760 else
12761 $as_echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764 cat >conftest.$ac_ext <<_ACEOF
12765 /* confdefs.h. */
12766 _ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12770 $ac_includes_default
12771 int
12772 main ()
12773 {
12774 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) < 0)];
12775 test_array [0] = 0
12776
12777 ;
12778 return 0;
12779 }
12780 _ACEOF
12781 rm -f conftest.$ac_objext
12782 if { (ac_try="$ac_compile"
12783 case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786 esac
12787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12788 $as_echo "$ac_try_echo") >&5
12789 (eval "$ac_compile") 2>conftest.er1
12790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && {
12796 test -z "$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12798 } && test -s conftest.$ac_objext; then
12799 ac_hi=-1 ac_mid=-1
12800 while :; do
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h. */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12807 $ac_includes_default
12808 int
12809 main ()
12810 {
12811 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) >= $ac_mid)];
12812 test_array [0] = 0
12813
12814 ;
12815 return 0;
12816 }
12817 _ACEOF
12818 rm -f conftest.$ac_objext
12819 if { (ac_try="$ac_compile"
12820 case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823 esac
12824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12825 $as_echo "$ac_try_echo") >&5
12826 (eval "$ac_compile") 2>conftest.er1
12827 ac_status=$?
12828 grep -v '^ *+' conftest.er1 >conftest.err
12829 rm -f conftest.er1
12830 cat conftest.err >&5
12831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } && {
12833 test -z "$ac_c_werror_flag" ||
12834 test ! -s conftest.err
12835 } && test -s conftest.$ac_objext; then
12836 ac_lo=$ac_mid; break
12837 else
12838 $as_echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12840
12841 ac_hi=`expr '(' $ac_mid ')' - 1`
12842 if test $ac_mid -le $ac_hi; then
12843 ac_lo= ac_hi=
12844 break
12845 fi
12846 ac_mid=`expr 2 '*' $ac_mid`
12847 fi
12848
12849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 done
12851 else
12852 $as_echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12854
12855 ac_lo= ac_hi=
12856 fi
12857
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 fi
12860
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 # Binary search between lo and hi bounds.
12863 while test "x$ac_lo" != "x$ac_hi"; do
12864 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12865 cat >conftest.$ac_ext <<_ACEOF
12866 /* confdefs.h. */
12867 _ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12871 $ac_includes_default
12872 int
12873 main ()
12874 {
12875 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned))) <= $ac_mid)];
12876 test_array [0] = 0
12877
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext
12883 if { (ac_try="$ac_compile"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887 esac
12888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12889 $as_echo "$ac_try_echo") >&5
12890 (eval "$ac_compile") 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } && {
12897 test -z "$ac_c_werror_flag" ||
12898 test ! -s conftest.err
12899 } && test -s conftest.$ac_objext; then
12900 ac_hi=$ac_mid
12901 else
12902 $as_echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905 ac_lo=`expr '(' $ac_mid ')' + 1`
12906 fi
12907
12908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 done
12910 case $ac_lo in
12911 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
12912 '') if test "$ac_cv_type_unsigned" = yes; then
12913 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12915 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
12916 See \`config.log' for more details." >&5
12917 $as_echo "$as_me: error: cannot compute sizeof (unsigned)
12918 See \`config.log' for more details." >&2;}
12919 { (exit 77); exit 77; }; }; }
12920 else
12921 ac_cv_sizeof_unsigned=0
12922 fi ;;
12923 esac
12924 else
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 $ac_includes_default
12932 static long int longval () { return (long int) (sizeof (unsigned)); }
12933 static unsigned long int ulongval () { return (long int) (sizeof (unsigned)); }
12934 #include <stdio.h>
12935 #include <stdlib.h>
12936 int
12937 main ()
12938 {
12939
12940 FILE *f = fopen ("conftest.val", "w");
12941 if (! f)
12942 return 1;
12943 if (((long int) (sizeof (unsigned))) < 0)
12944 {
12945 long int i = longval ();
12946 if (i != ((long int) (sizeof (unsigned))))
12947 return 1;
12948 fprintf (f, "%ld", i);
12949 }
12950 else
12951 {
12952 unsigned long int i = ulongval ();
12953 if (i != ((long int) (sizeof (unsigned))))
12954 return 1;
12955 fprintf (f, "%lu", i);
12956 }
12957 /* Do not output a trailing newline, as this causes \r\n confusion
12958 on some platforms. */
12959 return ferror (f) || fclose (f) != 0;
12960
12961 ;
12962 return 0;
12963 }
12964 _ACEOF
12965 rm -f conftest$ac_exeext
12966 if { (ac_try="$ac_link"
12967 case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12970 esac
12971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12972 $as_echo "$ac_try_echo") >&5
12973 (eval "$ac_link") 2>&5
12974 ac_status=$?
12975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12980 esac
12981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12982 $as_echo "$ac_try_echo") >&5
12983 (eval "$ac_try") 2>&5
12984 ac_status=$?
12985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_cv_sizeof_unsigned=`cat conftest.val`
12988 else
12989 $as_echo "$as_me: program exited with status $ac_status" >&5
12990 $as_echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12992
12993 ( exit $ac_status )
12994 if test "$ac_cv_type_unsigned" = yes; then
12995 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12997 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
12998 See \`config.log' for more details." >&5
12999 $as_echo "$as_me: error: cannot compute sizeof (unsigned)
13000 See \`config.log' for more details." >&2;}
13001 { (exit 77); exit 77; }; }; }
13002 else
13003 ac_cv_sizeof_unsigned=0
13004 fi
13005 fi
13006 rm -rf conftest.dSYM
13007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13008 fi
13009 rm -f conftest.val
13010 fi
13011 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
13012 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
13013
13014
13015
13016 cat >>confdefs.h <<_ACEOF
13017 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
13018 _ACEOF
13019
13020
13021 if test "$ac_cv_sizeof_unsigned" != 8
13022 then
13023 # The cast to long int works around a bug in the HP C Compiler
13024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13026 # This bug is HP SR number 8606223364.
13027 { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
13028 $as_echo_n "checking size of unsigned long... " >&6; }
13029 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13030 $as_echo_n "(cached) " >&6
13031 else
13032 if test "$cross_compiling" = yes; then
13033 # Depending upon the size, compute the lo and hi bounds.
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h. */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 $ac_includes_default
13041 int
13042 main ()
13043 {
13044 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
13045 test_array [0] = 0
13046
13047 ;
13048 return 0;
13049 }
13050 _ACEOF
13051 rm -f conftest.$ac_objext
13052 if { (ac_try="$ac_compile"
13053 case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13056 esac
13057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13058 $as_echo "$ac_try_echo") >&5
13059 (eval "$ac_compile") 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest.$ac_objext; then
13069 ac_lo=0 ac_mid=0
13070 while :; do
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h. */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 $ac_includes_default
13078 int
13079 main ()
13080 {
13081 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
13082 test_array [0] = 0
13083
13084 ;
13085 return 0;
13086 }
13087 _ACEOF
13088 rm -f conftest.$ac_objext
13089 if { (ac_try="$ac_compile"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093 esac
13094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13095 $as_echo "$ac_try_echo") >&5
13096 (eval "$ac_compile") 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } && {
13103 test -z "$ac_c_werror_flag" ||
13104 test ! -s conftest.err
13105 } && test -s conftest.$ac_objext; then
13106 ac_hi=$ac_mid; break
13107 else
13108 $as_echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13110
13111 ac_lo=`expr $ac_mid + 1`
13112 if test $ac_lo -le $ac_mid; then
13113 ac_lo= ac_hi=
13114 break
13115 fi
13116 ac_mid=`expr 2 '*' $ac_mid + 1`
13117 fi
13118
13119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13120 done
13121 else
13122 $as_echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
13124
13125 cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h. */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13131 $ac_includes_default
13132 int
13133 main ()
13134 {
13135 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
13136 test_array [0] = 0
13137
13138 ;
13139 return 0;
13140 }
13141 _ACEOF
13142 rm -f conftest.$ac_objext
13143 if { (ac_try="$ac_compile"
13144 case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13147 esac
13148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13149 $as_echo "$ac_try_echo") >&5
13150 (eval "$ac_compile") 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && {
13157 test -z "$ac_c_werror_flag" ||
13158 test ! -s conftest.err
13159 } && test -s conftest.$ac_objext; then
13160 ac_hi=-1 ac_mid=-1
13161 while :; do
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 $ac_includes_default
13169 int
13170 main ()
13171 {
13172 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
13173 test_array [0] = 0
13174
13175 ;
13176 return 0;
13177 }
13178 _ACEOF
13179 rm -f conftest.$ac_objext
13180 if { (ac_try="$ac_compile"
13181 case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184 esac
13185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13186 $as_echo "$ac_try_echo") >&5
13187 (eval "$ac_compile") 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } && {
13194 test -z "$ac_c_werror_flag" ||
13195 test ! -s conftest.err
13196 } && test -s conftest.$ac_objext; then
13197 ac_lo=$ac_mid; break
13198 else
13199 $as_echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13201
13202 ac_hi=`expr '(' $ac_mid ')' - 1`
13203 if test $ac_mid -le $ac_hi; then
13204 ac_lo= ac_hi=
13205 break
13206 fi
13207 ac_mid=`expr 2 '*' $ac_mid`
13208 fi
13209
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 done
13212 else
13213 $as_echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 ac_lo= ac_hi=
13217 fi
13218
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 fi
13221
13222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 # Binary search between lo and hi bounds.
13224 while test "x$ac_lo" != "x$ac_hi"; do
13225 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h. */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 $ac_includes_default
13233 int
13234 main ()
13235 {
13236 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
13237 test_array [0] = 0
13238
13239 ;
13240 return 0;
13241 }
13242 _ACEOF
13243 rm -f conftest.$ac_objext
13244 if { (ac_try="$ac_compile"
13245 case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13248 esac
13249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13250 $as_echo "$ac_try_echo") >&5
13251 (eval "$ac_compile") 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_c_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest.$ac_objext; then
13261 ac_hi=$ac_mid
13262 else
13263 $as_echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266 ac_lo=`expr '(' $ac_mid ')' + 1`
13267 fi
13268
13269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 done
13271 case $ac_lo in
13272 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13273 '') if test "$ac_cv_type_unsigned_long" = yes; then
13274 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13276 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
13277 See \`config.log' for more details." >&5
13278 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
13279 See \`config.log' for more details." >&2;}
13280 { (exit 77); exit 77; }; }; }
13281 else
13282 ac_cv_sizeof_unsigned_long=0
13283 fi ;;
13284 esac
13285 else
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 $ac_includes_default
13293 static long int longval () { return (long int) (sizeof (unsigned long)); }
13294 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
13295 #include <stdio.h>
13296 #include <stdlib.h>
13297 int
13298 main ()
13299 {
13300
13301 FILE *f = fopen ("conftest.val", "w");
13302 if (! f)
13303 return 1;
13304 if (((long int) (sizeof (unsigned long))) < 0)
13305 {
13306 long int i = longval ();
13307 if (i != ((long int) (sizeof (unsigned long))))
13308 return 1;
13309 fprintf (f, "%ld", i);
13310 }
13311 else
13312 {
13313 unsigned long int i = ulongval ();
13314 if (i != ((long int) (sizeof (unsigned long))))
13315 return 1;
13316 fprintf (f, "%lu", i);
13317 }
13318 /* Do not output a trailing newline, as this causes \r\n confusion
13319 on some platforms. */
13320 return ferror (f) || fclose (f) != 0;
13321
13322 ;
13323 return 0;
13324 }
13325 _ACEOF
13326 rm -f conftest$ac_exeext
13327 if { (ac_try="$ac_link"
13328 case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331 esac
13332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13333 $as_echo "$ac_try_echo") >&5
13334 (eval "$ac_link") 2>&5
13335 ac_status=$?
13336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341 esac
13342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13343 $as_echo "$ac_try_echo") >&5
13344 (eval "$ac_try") 2>&5
13345 ac_status=$?
13346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13349 else
13350 $as_echo "$as_me: program exited with status $ac_status" >&5
13351 $as_echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13353
13354 ( exit $ac_status )
13355 if test "$ac_cv_type_unsigned_long" = yes; then
13356 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13358 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
13359 See \`config.log' for more details." >&5
13360 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
13361 See \`config.log' for more details." >&2;}
13362 { (exit 77); exit 77; }; }; }
13363 else
13364 ac_cv_sizeof_unsigned_long=0
13365 fi
13366 fi
13367 rm -rf conftest.dSYM
13368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13369 fi
13370 rm -f conftest.val
13371 fi
13372 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13373 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
13374
13375
13376
13377 cat >>confdefs.h <<_ACEOF
13378 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13379 _ACEOF
13380
13381
13382 if test "$ac_cv_sizeof_unsigned_long" != 8
13383 then
13384 # The cast to long int works around a bug in the HP C Compiler
13385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13387 # This bug is HP SR number 8606223364.
13388 { $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
13389 $as_echo_n "checking size of unsigned long long... " >&6; }
13390 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
13391 $as_echo_n "(cached) " >&6
13392 else
13393 if test "$cross_compiling" = yes; then
13394 # Depending upon the size, compute the lo and hi bounds.
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h. */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 $ac_includes_default
13402 int
13403 main ()
13404 {
13405 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
13406 test_array [0] = 0
13407
13408 ;
13409 return 0;
13410 }
13411 _ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (ac_try="$ac_compile"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417 esac
13418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13419 $as_echo "$ac_try_echo") >&5
13420 (eval "$ac_compile") 2>conftest.er1
13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } && {
13427 test -z "$ac_c_werror_flag" ||
13428 test ! -s conftest.err
13429 } && test -s conftest.$ac_objext; then
13430 ac_lo=0 ac_mid=0
13431 while :; do
13432 cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h. */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 $ac_includes_default
13439 int
13440 main ()
13441 {
13442 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
13443 test_array [0] = 0
13444
13445 ;
13446 return 0;
13447 }
13448 _ACEOF
13449 rm -f conftest.$ac_objext
13450 if { (ac_try="$ac_compile"
13451 case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13454 esac
13455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13456 $as_echo "$ac_try_echo") >&5
13457 (eval "$ac_compile") 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } && {
13464 test -z "$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13466 } && test -s conftest.$ac_objext; then
13467 ac_hi=$ac_mid; break
13468 else
13469 $as_echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472 ac_lo=`expr $ac_mid + 1`
13473 if test $ac_lo -le $ac_mid; then
13474 ac_lo= ac_hi=
13475 break
13476 fi
13477 ac_mid=`expr 2 '*' $ac_mid + 1`
13478 fi
13479
13480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 done
13482 else
13483 $as_echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486 cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h. */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13492 $ac_includes_default
13493 int
13494 main ()
13495 {
13496 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
13497 test_array [0] = 0
13498
13499 ;
13500 return 0;
13501 }
13502 _ACEOF
13503 rm -f conftest.$ac_objext
13504 if { (ac_try="$ac_compile"
13505 case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508 esac
13509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13510 $as_echo "$ac_try_echo") >&5
13511 (eval "$ac_compile") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest.$ac_objext; then
13521 ac_hi=-1 ac_mid=-1
13522 while :; do
13523 cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h. */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13529 $ac_includes_default
13530 int
13531 main ()
13532 {
13533 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
13534 test_array [0] = 0
13535
13536 ;
13537 return 0;
13538 }
13539 _ACEOF
13540 rm -f conftest.$ac_objext
13541 if { (ac_try="$ac_compile"
13542 case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13545 esac
13546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13547 $as_echo "$ac_try_echo") >&5
13548 (eval "$ac_compile") 2>conftest.er1
13549 ac_status=$?
13550 grep -v '^ *+' conftest.er1 >conftest.err
13551 rm -f conftest.er1
13552 cat conftest.err >&5
13553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } && {
13555 test -z "$ac_c_werror_flag" ||
13556 test ! -s conftest.err
13557 } && test -s conftest.$ac_objext; then
13558 ac_lo=$ac_mid; break
13559 else
13560 $as_echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13562
13563 ac_hi=`expr '(' $ac_mid ')' - 1`
13564 if test $ac_mid -le $ac_hi; then
13565 ac_lo= ac_hi=
13566 break
13567 fi
13568 ac_mid=`expr 2 '*' $ac_mid`
13569 fi
13570
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 done
13573 else
13574 $as_echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13576
13577 ac_lo= ac_hi=
13578 fi
13579
13580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13581 fi
13582
13583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584 # Binary search between lo and hi bounds.
13585 while test "x$ac_lo" != "x$ac_hi"; do
13586 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13587 cat >conftest.$ac_ext <<_ACEOF
13588 /* confdefs.h. */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13593 $ac_includes_default
13594 int
13595 main ()
13596 {
13597 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
13598 test_array [0] = 0
13599
13600 ;
13601 return 0;
13602 }
13603 _ACEOF
13604 rm -f conftest.$ac_objext
13605 if { (ac_try="$ac_compile"
13606 case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609 esac
13610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13611 $as_echo "$ac_try_echo") >&5
13612 (eval "$ac_compile") 2>conftest.er1
13613 ac_status=$?
13614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
13617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } && {
13619 test -z "$ac_c_werror_flag" ||
13620 test ! -s conftest.err
13621 } && test -s conftest.$ac_objext; then
13622 ac_hi=$ac_mid
13623 else
13624 $as_echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13626
13627 ac_lo=`expr '(' $ac_mid ')' + 1`
13628 fi
13629
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631 done
13632 case $ac_lo in
13633 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
13634 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
13635 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13637 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
13638 See \`config.log' for more details." >&5
13639 $as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
13640 See \`config.log' for more details." >&2;}
13641 { (exit 77); exit 77; }; }; }
13642 else
13643 ac_cv_sizeof_unsigned_long_long=0
13644 fi ;;
13645 esac
13646 else
13647 cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h. */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13653 $ac_includes_default
13654 static long int longval () { return (long int) (sizeof (unsigned long long)); }
13655 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
13656 #include <stdio.h>
13657 #include <stdlib.h>
13658 int
13659 main ()
13660 {
13661
13662 FILE *f = fopen ("conftest.val", "w");
13663 if (! f)
13664 return 1;
13665 if (((long int) (sizeof (unsigned long long))) < 0)
13666 {
13667 long int i = longval ();
13668 if (i != ((long int) (sizeof (unsigned long long))))
13669 return 1;
13670 fprintf (f, "%ld", i);
13671 }
13672 else
13673 {
13674 unsigned long int i = ulongval ();
13675 if (i != ((long int) (sizeof (unsigned long long))))
13676 return 1;
13677 fprintf (f, "%lu", i);
13678 }
13679 /* Do not output a trailing newline, as this causes \r\n confusion
13680 on some platforms. */
13681 return ferror (f) || fclose (f) != 0;
13682
13683 ;
13684 return 0;
13685 }
13686 _ACEOF
13687 rm -f conftest$ac_exeext
13688 if { (ac_try="$ac_link"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692 esac
13693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13694 $as_echo "$ac_try_echo") >&5
13695 (eval "$ac_link") 2>&5
13696 ac_status=$?
13697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702 esac
13703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13704 $as_echo "$ac_try_echo") >&5
13705 (eval "$ac_try") 2>&5
13706 ac_status=$?
13707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
13710 else
13711 $as_echo "$as_me: program exited with status $ac_status" >&5
13712 $as_echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 ( exit $ac_status )
13716 if test "$ac_cv_type_unsigned_long_long" = yes; then
13717 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13719 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
13720 See \`config.log' for more details." >&5
13721 $as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
13722 See \`config.log' for more details." >&2;}
13723 { (exit 77); exit 77; }; }; }
13724 else
13725 ac_cv_sizeof_unsigned_long_long=0
13726 fi
13727 fi
13728 rm -rf conftest.dSYM
13729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13730 fi
13731 rm -f conftest.val
13732 fi
13733 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
13734 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
13735
13736
13737
13738 cat >>confdefs.h <<_ACEOF
13739 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
13740 _ACEOF
13741
13742
13743 if test "$ac_cv_sizeof_unsigned_long_long" != 8
13744 then
13745 # The cast to long int works around a bug in the HP C Compiler
13746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13748 # This bug is HP SR number 8606223364.
13749 { $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
13750 $as_echo_n "checking size of unsigned short... " >&6; }
13751 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
13752 $as_echo_n "(cached) " >&6
13753 else
13754 if test "$cross_compiling" = yes; then
13755 # Depending upon the size, compute the lo and hi bounds.
13756 cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h. */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13762 $ac_includes_default
13763 int
13764 main ()
13765 {
13766 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
13767 test_array [0] = 0
13768
13769 ;
13770 return 0;
13771 }
13772 _ACEOF
13773 rm -f conftest.$ac_objext
13774 if { (ac_try="$ac_compile"
13775 case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13778 esac
13779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13780 $as_echo "$ac_try_echo") >&5
13781 (eval "$ac_compile") 2>conftest.er1
13782 ac_status=$?
13783 grep -v '^ *+' conftest.er1 >conftest.err
13784 rm -f conftest.er1
13785 cat conftest.err >&5
13786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } && {
13788 test -z "$ac_c_werror_flag" ||
13789 test ! -s conftest.err
13790 } && test -s conftest.$ac_objext; then
13791 ac_lo=0 ac_mid=0
13792 while :; do
13793 cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h. */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 $ac_includes_default
13800 int
13801 main ()
13802 {
13803 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
13804 test_array [0] = 0
13805
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 rm -f conftest.$ac_objext
13811 if { (ac_try="$ac_compile"
13812 case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13815 esac
13816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13817 $as_echo "$ac_try_echo") >&5
13818 (eval "$ac_compile") 2>conftest.er1
13819 ac_status=$?
13820 grep -v '^ *+' conftest.er1 >conftest.err
13821 rm -f conftest.er1
13822 cat conftest.err >&5
13823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } && {
13825 test -z "$ac_c_werror_flag" ||
13826 test ! -s conftest.err
13827 } && test -s conftest.$ac_objext; then
13828 ac_hi=$ac_mid; break
13829 else
13830 $as_echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13832
13833 ac_lo=`expr $ac_mid + 1`
13834 if test $ac_lo -le $ac_mid; then
13835 ac_lo= ac_hi=
13836 break
13837 fi
13838 ac_mid=`expr 2 '*' $ac_mid + 1`
13839 fi
13840
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 done
13843 else
13844 $as_echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h. */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13853 $ac_includes_default
13854 int
13855 main ()
13856 {
13857 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
13858 test_array [0] = 0
13859
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 rm -f conftest.$ac_objext
13865 if { (ac_try="$ac_compile"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869 esac
13870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13871 $as_echo "$ac_try_echo") >&5
13872 (eval "$ac_compile") 2>conftest.er1
13873 ac_status=$?
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
13877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } && {
13879 test -z "$ac_c_werror_flag" ||
13880 test ! -s conftest.err
13881 } && test -s conftest.$ac_objext; then
13882 ac_hi=-1 ac_mid=-1
13883 while :; do
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h. */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 $ac_includes_default
13891 int
13892 main ()
13893 {
13894 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
13895 test_array [0] = 0
13896
13897 ;
13898 return 0;
13899 }
13900 _ACEOF
13901 rm -f conftest.$ac_objext
13902 if { (ac_try="$ac_compile"
13903 case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13906 esac
13907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13908 $as_echo "$ac_try_echo") >&5
13909 (eval "$ac_compile") 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } && {
13916 test -z "$ac_c_werror_flag" ||
13917 test ! -s conftest.err
13918 } && test -s conftest.$ac_objext; then
13919 ac_lo=$ac_mid; break
13920 else
13921 $as_echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13923
13924 ac_hi=`expr '(' $ac_mid ')' - 1`
13925 if test $ac_mid -le $ac_hi; then
13926 ac_lo= ac_hi=
13927 break
13928 fi
13929 ac_mid=`expr 2 '*' $ac_mid`
13930 fi
13931
13932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933 done
13934 else
13935 $as_echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13937
13938 ac_lo= ac_hi=
13939 fi
13940
13941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13942 fi
13943
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945 # Binary search between lo and hi bounds.
13946 while test "x$ac_lo" != "x$ac_hi"; do
13947 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h. */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 int
13956 main ()
13957 {
13958 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
13959 test_array [0] = 0
13960
13961 ;
13962 return 0;
13963 }
13964 _ACEOF
13965 rm -f conftest.$ac_objext
13966 if { (ac_try="$ac_compile"
13967 case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13970 esac
13971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13972 $as_echo "$ac_try_echo") >&5
13973 (eval "$ac_compile") 2>conftest.er1
13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
13978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && {
13980 test -z "$ac_c_werror_flag" ||
13981 test ! -s conftest.err
13982 } && test -s conftest.$ac_objext; then
13983 ac_hi=$ac_mid
13984 else
13985 $as_echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988 ac_lo=`expr '(' $ac_mid ')' + 1`
13989 fi
13990
13991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992 done
13993 case $ac_lo in
13994 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
13995 '') if test "$ac_cv_type_unsigned_short" = yes; then
13996 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13998 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
13999 See \`config.log' for more details." >&5
14000 $as_echo "$as_me: error: cannot compute sizeof (unsigned short)
14001 See \`config.log' for more details." >&2;}
14002 { (exit 77); exit 77; }; }; }
14003 else
14004 ac_cv_sizeof_unsigned_short=0
14005 fi ;;
14006 esac
14007 else
14008 cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h. */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14014 $ac_includes_default
14015 static long int longval () { return (long int) (sizeof (unsigned short)); }
14016 static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
14017 #include <stdio.h>
14018 #include <stdlib.h>
14019 int
14020 main ()
14021 {
14022
14023 FILE *f = fopen ("conftest.val", "w");
14024 if (! f)
14025 return 1;
14026 if (((long int) (sizeof (unsigned short))) < 0)
14027 {
14028 long int i = longval ();
14029 if (i != ((long int) (sizeof (unsigned short))))
14030 return 1;
14031 fprintf (f, "%ld", i);
14032 }
14033 else
14034 {
14035 unsigned long int i = ulongval ();
14036 if (i != ((long int) (sizeof (unsigned short))))
14037 return 1;
14038 fprintf (f, "%lu", i);
14039 }
14040 /* Do not output a trailing newline, as this causes \r\n confusion
14041 on some platforms. */
14042 return ferror (f) || fclose (f) != 0;
14043
14044 ;
14045 return 0;
14046 }
14047 _ACEOF
14048 rm -f conftest$ac_exeext
14049 if { (ac_try="$ac_link"
14050 case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14053 esac
14054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14055 $as_echo "$ac_try_echo") >&5
14056 (eval "$ac_link") 2>&5
14057 ac_status=$?
14058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14060 { (case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063 esac
14064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14065 $as_echo "$ac_try_echo") >&5
14066 (eval "$ac_try") 2>&5
14067 ac_status=$?
14068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; }; then
14070 ac_cv_sizeof_unsigned_short=`cat conftest.val`
14071 else
14072 $as_echo "$as_me: program exited with status $ac_status" >&5
14073 $as_echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14075
14076 ( exit $ac_status )
14077 if test "$ac_cv_type_unsigned_short" = yes; then
14078 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14080 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
14081 See \`config.log' for more details." >&5
14082 $as_echo "$as_me: error: cannot compute sizeof (unsigned short)
14083 See \`config.log' for more details." >&2;}
14084 { (exit 77); exit 77; }; }; }
14085 else
14086 ac_cv_sizeof_unsigned_short=0
14087 fi
14088 fi
14089 rm -rf conftest.dSYM
14090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14091 fi
14092 rm -f conftest.val
14093 fi
14094 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
14095 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14096
14097
14098
14099 cat >>confdefs.h <<_ACEOF
14100 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14101 _ACEOF
14102
14103
14104 if test "$ac_cv_sizeof_unsigned_short" != 8
14105 then
14106 { { $as_echo "$as_me:$LINENO: error: --with-int64 option is required" >&5
14107 $as_echo "$as_me: error: --with-int64 option is required" >&2;}
14108 { (exit 1); exit 1; }; }
14109 fi
14110 int64="unsigned short"
14111 else
14112 int64="unsigned long long"
14113 fi
14114 else
14115 int64="unsigned long"
14116 fi
14117 else
14118 int64="unsigned"
14119 fi
14120
14121 fi
14122
14123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14124
14125 fi
14126
14127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14128
14129
14130 fi
14131
14132 UINT64="$int64"
14133
14134
14135 cat >>confdefs.h <<_ACEOF
14136 #define SHA512_WORD $UINT64
14137 _ACEOF
14138
14139 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14140 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14141 if test "${ac_cv_c_const+set}" = set; then
14142 $as_echo_n "(cached) " >&6
14143 else
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h. */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150
14151 int
14152 main ()
14153 {
14154 /* FIXME: Include the comments suggested by Paul. */
14155 #ifndef __cplusplus
14156 /* Ultrix mips cc rejects this. */
14157 typedef int charset[2];
14158 const charset cs;
14159 /* SunOS 4.1.1 cc rejects this. */
14160 char const *const *pcpcc;
14161 char **ppc;
14162 /* NEC SVR4.0.2 mips cc rejects this. */
14163 struct point {int x, y;};
14164 static struct point const zero = {0,0};
14165 /* AIX XL C 1.02.0.0 rejects this.
14166 It does not let you subtract one const X* pointer from another in
14167 an arm of an if-expression whose if-part is not a constant
14168 expression */
14169 const char *g = "string";
14170 pcpcc = &g + (g ? g-g : 0);
14171 /* HPUX 7.0 cc rejects these. */
14172 ++pcpcc;
14173 ppc = (char**) pcpcc;
14174 pcpcc = (char const *const *) ppc;
14175 { /* SCO 3.2v4 cc rejects this. */
14176 char *t;
14177 char const *s = 0 ? (char *) 0 : (char const *) 0;
14178
14179 *t++ = 0;
14180 if (s) return 0;
14181 }
14182 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14183 int x[] = {25, 17};
14184 const int *foo = &x[0];
14185 ++foo;
14186 }
14187 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14188 typedef const int *iptr;
14189 iptr p = 0;
14190 ++p;
14191 }
14192 { /* AIX XL C 1.02.0.0 rejects this saying
14193 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14194 struct s { int j; const int *ap[3]; };
14195 struct s *b; b->j = 5;
14196 }
14197 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14198 const int foo = 10;
14199 if (!foo) return 0;
14200 }
14201 return !cs[0] && !zero.x;
14202 #endif
14203
14204 ;
14205 return 0;
14206 }
14207 _ACEOF
14208 rm -f conftest.$ac_objext
14209 if { (ac_try="$ac_compile"
14210 case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14213 esac
14214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14215 $as_echo "$ac_try_echo") >&5
14216 (eval "$ac_compile") 2>conftest.er1
14217 ac_status=$?
14218 grep -v '^ *+' conftest.er1 >conftest.err
14219 rm -f conftest.er1
14220 cat conftest.err >&5
14221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } && {
14223 test -z "$ac_c_werror_flag" ||
14224 test ! -s conftest.err
14225 } && test -s conftest.$ac_objext; then
14226 ac_cv_c_const=yes
14227 else
14228 $as_echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14230
14231 ac_cv_c_const=no
14232 fi
14233
14234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235 fi
14236 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14237 $as_echo "$ac_cv_c_const" >&6; }
14238 if test $ac_cv_c_const = no; then
14239
14240 cat >>confdefs.h <<\_ACEOF
14241 #define const /**/
14242 _ACEOF
14243
14244 fi
14245
14246
14247 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14248 $as_echo_n "checking for ANSI C header files... " >&6; }
14249 if test "${ac_cv_header_stdc+set}" = set; then
14250 $as_echo_n "(cached) " >&6
14251 else
14252 cat >conftest.$ac_ext <<_ACEOF
14253 /* confdefs.h. */
14254 _ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h. */
14258 #include <stdlib.h>
14259 #include <stdarg.h>
14260 #include <string.h>
14261 #include <float.h>
14262
14263 int
14264 main ()
14265 {
14266
14267 ;
14268 return 0;
14269 }
14270 _ACEOF
14271 rm -f conftest.$ac_objext
14272 if { (ac_try="$ac_compile"
14273 case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14276 esac
14277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14278 $as_echo "$ac_try_echo") >&5
14279 (eval "$ac_compile") 2>conftest.er1
14280 ac_status=$?
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
14284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } && {
14286 test -z "$ac_c_werror_flag" ||
14287 test ! -s conftest.err
14288 } && test -s conftest.$ac_objext; then
14289 ac_cv_header_stdc=yes
14290 else
14291 $as_echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14293
14294 ac_cv_header_stdc=no
14295 fi
14296
14297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14298
14299 if test $ac_cv_header_stdc = yes; then
14300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14301 cat >conftest.$ac_ext <<_ACEOF
14302 /* confdefs.h. */
14303 _ACEOF
14304 cat confdefs.h >>conftest.$ac_ext
14305 cat >>conftest.$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14307 #include <string.h>
14308
14309 _ACEOF
14310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14311 $EGREP "memchr" >/dev/null 2>&1; then
14312 :
14313 else
14314 ac_cv_header_stdc=no
14315 fi
14316 rm -f conftest*
14317
14318 fi
14319
14320 if test $ac_cv_header_stdc = yes; then
14321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14322 cat >conftest.$ac_ext <<_ACEOF
14323 /* confdefs.h. */
14324 _ACEOF
14325 cat confdefs.h >>conftest.$ac_ext
14326 cat >>conftest.$ac_ext <<_ACEOF
14327 /* end confdefs.h. */
14328 #include <stdlib.h>
14329
14330 _ACEOF
14331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14332 $EGREP "free" >/dev/null 2>&1; then
14333 :
14334 else
14335 ac_cv_header_stdc=no
14336 fi
14337 rm -f conftest*
14338
14339 fi
14340
14341 if test $ac_cv_header_stdc = yes; then
14342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14343 if test "$cross_compiling" = yes; then
14344 :
14345 else
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 #include <ctype.h>
14353 #include <stdlib.h>
14354 #if ((' ' & 0x0FF) == 0x020)
14355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14357 #else
14358 # define ISLOWER(c) \
14359 (('a' <= (c) && (c) <= 'i') \
14360 || ('j' <= (c) && (c) <= 'r') \
14361 || ('s' <= (c) && (c) <= 'z'))
14362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14363 #endif
14364
14365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14366 int
14367 main ()
14368 {
14369 int i;
14370 for (i = 0; i < 256; i++)
14371 if (XOR (islower (i), ISLOWER (i))
14372 || toupper (i) != TOUPPER (i))
14373 return 2;
14374 return 0;
14375 }
14376 _ACEOF
14377 rm -f conftest$ac_exeext
14378 if { (ac_try="$ac_link"
14379 case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14382 esac
14383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14384 $as_echo "$ac_try_echo") >&5
14385 (eval "$ac_link") 2>&5
14386 ac_status=$?
14387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14389 { (case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14392 esac
14393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14394 $as_echo "$ac_try_echo") >&5
14395 (eval "$ac_try") 2>&5
14396 ac_status=$?
14397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 :
14400 else
14401 $as_echo "$as_me: program exited with status $ac_status" >&5
14402 $as_echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.$ac_ext >&5
14404
14405 ( exit $ac_status )
14406 ac_cv_header_stdc=no
14407 fi
14408 rm -rf conftest.dSYM
14409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14410 fi
14411
14412
14413 fi
14414 fi
14415 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14416 $as_echo "$ac_cv_header_stdc" >&6; }
14417 if test $ac_cv_header_stdc = yes; then
14418
14419 cat >>confdefs.h <<\_ACEOF
14420 #define STDC_HEADERS 1
14421 _ACEOF
14422
14423 fi
14424
14425
14426 ac_config_files="$ac_config_files Makefile"
14427
14428 cat >confcache <<\_ACEOF
14429 # This file is a shell script that caches the results of configure
14430 # tests run on this system so they can be shared between configure
14431 # scripts and configure runs, see configure's option --config-cache.
14432 # It is not useful on other systems. If it contains results you don't
14433 # want to keep, you may remove or edit it.
14434 #
14435 # config.status only pays attention to the cache file if you give it
14436 # the --recheck option to rerun configure.
14437 #
14438 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14440 # following values.
14441
14442 _ACEOF
14443
14444 # The following way of writing the cache mishandles newlines in values,
14445 # but we know of no workaround that is simple, portable, and efficient.
14446 # So, we kill variables containing newlines.
14447 # Ultrix sh set writes to stderr and can't be redirected directly,
14448 # and sets the high bit in the cache file unless we assign to the vars.
14449 (
14450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14451 eval ac_val=\$$ac_var
14452 case $ac_val in #(
14453 *${as_nl}*)
14454 case $ac_var in #(
14455 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14456 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14457 esac
14458 case $ac_var in #(
14459 _ | IFS | as_nl) ;; #(
14460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14461 *) $as_unset $ac_var ;;
14462 esac ;;
14463 esac
14464 done
14465
14466 (set) 2>&1 |
14467 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14468 *${as_nl}ac_space=\ *)
14469 # `set' does not quote correctly, so add quotes (double-quote
14470 # substitution turns \\\\ into \\, and sed turns \\ into \).
14471 sed -n \
14472 "s/'/'\\\\''/g;
14473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14474 ;; #(
14475 *)
14476 # `set' quotes correctly as required by POSIX, so do not add quotes.
14477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14478 ;;
14479 esac |
14480 sort
14481 ) |
14482 sed '
14483 /^ac_cv_env_/b end
14484 t clear
14485 :clear
14486 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14487 t end
14488 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14489 :end' >>confcache
14490 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14491 if test -w "$cache_file"; then
14492 test "x$cache_file" != "x/dev/null" &&
14493 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14494 $as_echo "$as_me: updating cache $cache_file" >&6;}
14495 cat confcache >$cache_file
14496 else
14497 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14498 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14499 fi
14500 fi
14501 rm -f confcache
14502
14503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14504 # Let make expand exec_prefix.
14505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14506
14507 DEFS=-DHAVE_CONFIG_H
14508
14509 ac_libobjs=
14510 ac_ltlibobjs=
14511 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14512 # 1. Remove the extension, and $U if already installed.
14513 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14514 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14515 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14516 # will be set to the directory where LIBOBJS objects are built.
14517 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14518 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14519 done
14520 LIBOBJS=$ac_libobjs
14521
14522 LTLIBOBJS=$ac_ltlibobjs
14523
14524
14525 if test -n "$EXEEXT"; then
14526 am__EXEEXT_TRUE=
14527 am__EXEEXT_FALSE='#'
14528 else
14529 am__EXEEXT_TRUE='#'
14530 am__EXEEXT_FALSE=
14531 fi
14532
14533 if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
14534 { { $as_echo "$as_me:$LINENO: error: conditional \"HMACC\" was never defined.
14535 Usually this means the macro was only invoked conditionally." >&5
14536 $as_echo "$as_me: error: conditional \"HMACC\" was never defined.
14537 Usually this means the macro was only invoked conditionally." >&2;}
14538 { (exit 1); exit 1; }; }
14539 fi
14540 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14541 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14542 Usually this means the macro was only invoked conditionally." >&5
14543 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14544 Usually this means the macro was only invoked conditionally." >&2;}
14545 { (exit 1); exit 1; }; }
14546 fi
14547 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14548 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14549 Usually this means the macro was only invoked conditionally." >&5
14550 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14551 Usually this means the macro was only invoked conditionally." >&2;}
14552 { (exit 1); exit 1; }; }
14553 fi
14554
14555 : ${CONFIG_STATUS=./config.status}
14556 ac_write_fail=0
14557 ac_clean_files_save=$ac_clean_files
14558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14559 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14560 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14561 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14562 #! $SHELL
14563 # Generated by $as_me.
14564 # Run this file to recreate the current configuration.
14565 # Compiler output produced by configure, useful for debugging
14566 # configure, is in config.log if it exists.
14567
14568 debug=false
14569 ac_cs_recheck=false
14570 ac_cs_silent=false
14571 SHELL=\${CONFIG_SHELL-$SHELL}
14572 _ACEOF
14573
14574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14575 ## --------------------- ##
14576 ## M4sh Initialization. ##
14577 ## --------------------- ##
14578
14579 # Be more Bourne compatible
14580 DUALCASE=1; export DUALCASE # for MKS sh
14581 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14582 emulate sh
14583 NULLCMD=:
14584 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14585 # is contrary to our usage. Disable this feature.
14586 alias -g '${1+"$@"}'='"$@"'
14587 setopt NO_GLOB_SUBST
14588 else
14589 case `(set -o) 2>/dev/null` in
14590 *posix*) set -o posix ;;
14591 esac
14592
14593 fi
14594
14595
14596
14597
14598 # PATH needs CR
14599 # Avoid depending upon Character Ranges.
14600 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14601 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14602 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14603 as_cr_digits='0123456789'
14604 as_cr_alnum=$as_cr_Letters$as_cr_digits
14605
14606 as_nl='
14607 '
14608 export as_nl
14609 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14610 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14611 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14613 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14614 as_echo='printf %s\n'
14615 as_echo_n='printf %s'
14616 else
14617 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14618 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14619 as_echo_n='/usr/ucb/echo -n'
14620 else
14621 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14622 as_echo_n_body='eval
14623 arg=$1;
14624 case $arg in
14625 *"$as_nl"*)
14626 expr "X$arg" : "X\\(.*\\)$as_nl";
14627 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14628 esac;
14629 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14630 '
14631 export as_echo_n_body
14632 as_echo_n='sh -c $as_echo_n_body as_echo'
14633 fi
14634 export as_echo_body
14635 as_echo='sh -c $as_echo_body as_echo'
14636 fi
14637
14638 # The user is always right.
14639 if test "${PATH_SEPARATOR+set}" != set; then
14640 PATH_SEPARATOR=:
14641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14642 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14643 PATH_SEPARATOR=';'
14644 }
14645 fi
14646
14647 # Support unset when possible.
14648 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14649 as_unset=unset
14650 else
14651 as_unset=false
14652 fi
14653
14654
14655 # IFS
14656 # We need space, tab and new line, in precisely that order. Quoting is
14657 # there to prevent editors from complaining about space-tab.
14658 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14659 # splitting by setting IFS to empty value.)
14660 IFS=" "" $as_nl"
14661
14662 # Find who we are. Look in the path if we contain no directory separator.
14663 case $0 in
14664 *[\\/]* ) as_myself=$0 ;;
14665 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666 for as_dir in $PATH
14667 do
14668 IFS=$as_save_IFS
14669 test -z "$as_dir" && as_dir=.
14670 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14671 done
14672 IFS=$as_save_IFS
14673
14674 ;;
14675 esac
14676 # We did not find ourselves, most probably we were run as `sh COMMAND'
14677 # in which case we are not to be found in the path.
14678 if test "x$as_myself" = x; then
14679 as_myself=$0
14680 fi
14681 if test ! -f "$as_myself"; then
14682 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14683 { (exit 1); exit 1; }
14684 fi
14685
14686 # Work around bugs in pre-3.0 UWIN ksh.
14687 for as_var in ENV MAIL MAILPATH
14688 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14689 done
14690 PS1='$ '
14691 PS2='> '
14692 PS4='+ '
14693
14694 # NLS nuisances.
14695 LC_ALL=C
14696 export LC_ALL
14697 LANGUAGE=C
14698 export LANGUAGE
14699
14700 # Required to use basename.
14701 if expr a : '\(a\)' >/dev/null 2>&1 &&
14702 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14703 as_expr=expr
14704 else
14705 as_expr=false
14706 fi
14707
14708 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14709 as_basename=basename
14710 else
14711 as_basename=false
14712 fi
14713
14714
14715 # Name of the executable.
14716 as_me=`$as_basename -- "$0" ||
14717 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14718 X"$0" : 'X\(//\)$' \| \
14719 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14720 $as_echo X/"$0" |
14721 sed '/^.*\/\([^/][^/]*\)\/*$/{
14722 s//\1/
14723 q
14724 }
14725 /^X\/\(\/\/\)$/{
14726 s//\1/
14727 q
14728 }
14729 /^X\/\(\/\).*/{
14730 s//\1/
14731 q
14732 }
14733 s/.*/./; q'`
14734
14735 # CDPATH.
14736 $as_unset CDPATH
14737
14738
14739
14740 as_lineno_1=$LINENO
14741 as_lineno_2=$LINENO
14742 test "x$as_lineno_1" != "x$as_lineno_2" &&
14743 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14744
14745 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14746 # uniformly replaced by the line number. The first 'sed' inserts a
14747 # line-number line after each line using $LINENO; the second 'sed'
14748 # does the real work. The second script uses 'N' to pair each
14749 # line-number line with the line containing $LINENO, and appends
14750 # trailing '-' during substitution so that $LINENO is not a special
14751 # case at line end.
14752 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14753 # scripts with optimization help from Paolo Bonzini. Blame Lee
14754 # E. McMahon (1931-1989) for sed's syntax. :-)
14755 sed -n '
14756 p
14757 /[$]LINENO/=
14758 ' <$as_myself |
14759 sed '
14760 s/[$]LINENO.*/&-/
14761 t lineno
14762 b
14763 :lineno
14764 N
14765 :loop
14766 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14767 t loop
14768 s/-\n.*//
14769 ' >$as_me.lineno &&
14770 chmod +x "$as_me.lineno" ||
14771 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14772 { (exit 1); exit 1; }; }
14773
14774 # Don't try to exec as it changes $[0], causing all sort of problems
14775 # (the dirname of $[0] is not the place where we might find the
14776 # original and so on. Autoconf is especially sensitive to this).
14777 . "./$as_me.lineno"
14778 # Exit status is that of the last command.
14779 exit
14780 }
14781
14782
14783 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14784 as_dirname=dirname
14785 else
14786 as_dirname=false
14787 fi
14788
14789 ECHO_C= ECHO_N= ECHO_T=
14790 case `echo -n x` in
14791 -n*)
14792 case `echo 'x\c'` in
14793 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14794 *) ECHO_C='\c';;
14795 esac;;
14796 *)
14797 ECHO_N='-n';;
14798 esac
14799 if expr a : '\(a\)' >/dev/null 2>&1 &&
14800 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14801 as_expr=expr
14802 else
14803 as_expr=false
14804 fi
14805
14806 rm -f conf$$ conf$$.exe conf$$.file
14807 if test -d conf$$.dir; then
14808 rm -f conf$$.dir/conf$$.file
14809 else
14810 rm -f conf$$.dir
14811 mkdir conf$$.dir 2>/dev/null
14812 fi
14813 if (echo >conf$$.file) 2>/dev/null; then
14814 if ln -s conf$$.file conf$$ 2>/dev/null; then
14815 as_ln_s='ln -s'
14816 # ... but there are two gotchas:
14817 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14818 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14819 # In both cases, we have to default to `cp -p'.
14820 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14821 as_ln_s='cp -p'
14822 elif ln conf$$.file conf$$ 2>/dev/null; then
14823 as_ln_s=ln
14824 else
14825 as_ln_s='cp -p'
14826 fi
14827 else
14828 as_ln_s='cp -p'
14829 fi
14830 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14831 rmdir conf$$.dir 2>/dev/null
14832
14833 if mkdir -p . 2>/dev/null; then
14834 as_mkdir_p=:
14835 else
14836 test -d ./-p && rmdir ./-p
14837 as_mkdir_p=false
14838 fi
14839
14840 if test -x / >/dev/null 2>&1; then
14841 as_test_x='test -x'
14842 else
14843 if ls -dL / >/dev/null 2>&1; then
14844 as_ls_L_option=L
14845 else
14846 as_ls_L_option=
14847 fi
14848 as_test_x='
14849 eval sh -c '\''
14850 if test -d "$1"; then
14851 test -d "$1/.";
14852 else
14853 case $1 in
14854 -*)set "./$1";;
14855 esac;
14856 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14857 ???[sx]*):;;*)false;;esac;fi
14858 '\'' sh
14859 '
14860 fi
14861 as_executable_p=$as_test_x
14862
14863 # Sed expression to map a string onto a valid CPP name.
14864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14865
14866 # Sed expression to map a string onto a valid variable name.
14867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14868
14869
14870 exec 6>&1
14871
14872 # Save the log message, to keep $[0] and so on meaningful, and to
14873 # report actual input values of CONFIG_FILES etc. instead of their
14874 # values after options handling.
14875 ac_log="
14876 This file was extended by libsha1 $as_me 1.21, which was
14877 generated by GNU Autoconf 2.63. Invocation command line was
14878
14879 CONFIG_FILES = $CONFIG_FILES
14880 CONFIG_HEADERS = $CONFIG_HEADERS
14881 CONFIG_LINKS = $CONFIG_LINKS
14882 CONFIG_COMMANDS = $CONFIG_COMMANDS
14883 $ $0 $@
14884
14885 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14886 "
14887
14888 _ACEOF
14889
14890 case $ac_config_files in *"
14891 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14892 esac
14893
14894 case $ac_config_headers in *"
14895 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14896 esac
14897
14898
14899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14900 # Files that config.status was made for.
14901 config_files="$ac_config_files"
14902 config_headers="$ac_config_headers"
14903 config_commands="$ac_config_commands"
14904
14905 _ACEOF
14906
14907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14908 ac_cs_usage="\
14909 \`$as_me' instantiates files from templates according to the
14910 current configuration.
14911
14912 Usage: $0 [OPTION]... [FILE]...
14913
14914 -h, --help print this help, then exit
14915 -V, --version print version number and configuration settings, then exit
14916 -q, --quiet, --silent
14917 do not print progress messages
14918 -d, --debug don't remove temporary files
14919 --recheck update $as_me by reconfiguring in the same conditions
14920 --file=FILE[:TEMPLATE]
14921 instantiate the configuration file FILE
14922 --header=FILE[:TEMPLATE]
14923 instantiate the configuration header FILE
14924
14925 Configuration files:
14926 $config_files
14927
14928 Configuration headers:
14929 $config_headers
14930
14931 Configuration commands:
14932 $config_commands
14933
14934 Report bugs to <bug-autoconf@gnu.org>."
14935
14936 _ACEOF
14937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14938 ac_cs_version="\\
14939 libsha1 config.status 1.21
14940 configured by $0, generated by GNU Autoconf 2.63,
14941 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14942
14943 Copyright (C) 2008 Free Software Foundation, Inc.
14944 This config.status script is free software; the Free Software Foundation
14945 gives unlimited permission to copy, distribute and modify it."
14946
14947 ac_pwd='$ac_pwd'
14948 srcdir='$srcdir'
14949 INSTALL='$INSTALL'
14950 MKDIR_P='$MKDIR_P'
14951 AWK='$AWK'
14952 test -n "\$AWK" || AWK=awk
14953 _ACEOF
14954
14955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14956 # The default lists apply if the user does not specify any file.
14957 ac_need_defaults=:
14958 while test $# != 0
14959 do
14960 case $1 in
14961 --*=*)
14962 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14963 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14964 ac_shift=:
14965 ;;
14966 *)
14967 ac_option=$1
14968 ac_optarg=$2
14969 ac_shift=shift
14970 ;;
14971 esac
14972
14973 case $ac_option in
14974 # Handling of the options.
14975 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14976 ac_cs_recheck=: ;;
14977 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14978 $as_echo "$ac_cs_version"; exit ;;
14979 --debug | --debu | --deb | --de | --d | -d )
14980 debug=: ;;
14981 --file | --fil | --fi | --f )
14982 $ac_shift
14983 case $ac_optarg in
14984 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14985 esac
14986 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14987 ac_need_defaults=false;;
14988 --header | --heade | --head | --hea )
14989 $ac_shift
14990 case $ac_optarg in
14991 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14992 esac
14993 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14994 ac_need_defaults=false;;
14995 --he | --h)
14996 # Conflict between --help and --header
14997 { $as_echo "$as_me: error: ambiguous option: $1
14998 Try \`$0 --help' for more information." >&2
14999 { (exit 1); exit 1; }; };;
15000 --help | --hel | -h )
15001 $as_echo "$ac_cs_usage"; exit ;;
15002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15003 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15004 ac_cs_silent=: ;;
15005
15006 # This is an error.
15007 -*) { $as_echo "$as_me: error: unrecognized option: $1
15008 Try \`$0 --help' for more information." >&2
15009 { (exit 1); exit 1; }; } ;;
15010
15011 *) ac_config_targets="$ac_config_targets $1"
15012 ac_need_defaults=false ;;
15013
15014 esac
15015 shift
15016 done
15017
15018 ac_configure_extra_args=
15019
15020 if $ac_cs_silent; then
15021 exec 6>/dev/null
15022 ac_configure_extra_args="$ac_configure_extra_args --silent"
15023 fi
15024
15025 _ACEOF
15026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15027 if \$ac_cs_recheck; then
15028 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15029 shift
15030 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15031 CONFIG_SHELL='$SHELL'
15032 export CONFIG_SHELL
15033 exec "\$@"
15034 fi
15035
15036 _ACEOF
15037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15038 exec 5>>config.log
15039 {
15040 echo
15041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15042 ## Running $as_me. ##
15043 _ASBOX
15044 $as_echo "$ac_log"
15045 } >&5
15046
15047 _ACEOF
15048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15049 #
15050 # INIT-COMMANDS
15051 #
15052 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15053
15054
15055 # The HP-UX ksh and POSIX shell print the target directory to stdout
15056 # if CDPATH is set.
15057 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15058
15059 sed_quote_subst='$sed_quote_subst'
15060 double_quote_subst='$double_quote_subst'
15061 delay_variable_subst='$delay_variable_subst'
15062 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15063 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15064 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15065 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15066 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15067 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15068 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15069 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15070 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15071 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15072 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15073 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15074 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15075 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15076 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15077 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15078 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15079 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15080 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15081 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15082 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15083 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15084 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15085 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15086 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15087 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15088 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15089 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15090 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15091 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15092 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15093 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15094 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15095 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15096 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15097 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15098 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15099 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15100 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15101 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15102 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15103 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15104 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15105 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15106 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"`'
15107 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"`'
15108 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15109 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15110 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15111 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15112 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15113 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15114 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15115 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15116 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15117 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15118 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15119 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15120 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15121 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15122 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15123 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15124 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15125 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15126 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15127 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15128 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15129 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15130 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15131 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15132 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15133 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15134 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15135 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15136 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15137 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15138 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15139 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15140 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15141 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15142 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15143 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15144 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15145 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15146 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15147 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15148 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15149 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15150 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15151 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15152 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15153 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15154 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15155 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15156 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15157 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15158 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15159 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15160 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15161 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15162 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15163 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15164 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15165 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15166 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15167 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15168 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15169 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15170 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15171 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15172 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15173 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15174 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15175 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15176 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15177 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15178 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15179 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15180
15181 LTCC='$LTCC'
15182 LTCFLAGS='$LTCFLAGS'
15183 compiler='$compiler_DEFAULT'
15184
15185 # Quote evaled strings.
15186 for var in SED \
15187 GREP \
15188 EGREP \
15189 FGREP \
15190 LD \
15191 NM \
15192 LN_S \
15193 lt_SP2NL \
15194 lt_NL2SP \
15195 reload_flag \
15196 OBJDUMP \
15197 deplibs_check_method \
15198 file_magic_cmd \
15199 AR \
15200 AR_FLAGS \
15201 STRIP \
15202 RANLIB \
15203 CC \
15204 CFLAGS \
15205 compiler \
15206 lt_cv_sys_global_symbol_pipe \
15207 lt_cv_sys_global_symbol_to_cdecl \
15208 lt_cv_sys_global_symbol_to_c_name_address \
15209 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15210 SHELL \
15211 ECHO \
15212 lt_prog_compiler_no_builtin_flag \
15213 lt_prog_compiler_wl \
15214 lt_prog_compiler_pic \
15215 lt_prog_compiler_static \
15216 lt_cv_prog_compiler_c_o \
15217 need_locks \
15218 DSYMUTIL \
15219 NMEDIT \
15220 LIPO \
15221 OTOOL \
15222 OTOOL64 \
15223 shrext_cmds \
15224 export_dynamic_flag_spec \
15225 whole_archive_flag_spec \
15226 compiler_needs_object \
15227 with_gnu_ld \
15228 allow_undefined_flag \
15229 no_undefined_flag \
15230 hardcode_libdir_flag_spec \
15231 hardcode_libdir_flag_spec_ld \
15232 hardcode_libdir_separator \
15233 fix_srcfile_path \
15234 exclude_expsyms \
15235 include_expsyms \
15236 file_list_spec \
15237 variables_saved_for_relink \
15238 libname_spec \
15239 library_names_spec \
15240 soname_spec \
15241 finish_eval \
15242 old_striplib \
15243 striplib; do
15244 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15245 *[\\\\\\\`\\"\\\$]*)
15246 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15247 ;;
15248 *)
15249 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15250 ;;
15251 esac
15252 done
15253
15254 # Double-quote double-evaled strings.
15255 for var in reload_cmds \
15256 old_postinstall_cmds \
15257 old_postuninstall_cmds \
15258 old_archive_cmds \
15259 extract_expsyms_cmds \
15260 old_archive_from_new_cmds \
15261 old_archive_from_expsyms_cmds \
15262 archive_cmds \
15263 archive_expsym_cmds \
15264 module_cmds \
15265 module_expsym_cmds \
15266 export_symbols_cmds \
15267 prelink_cmds \
15268 postinstall_cmds \
15269 postuninstall_cmds \
15270 finish_cmds \
15271 sys_lib_search_path_spec \
15272 sys_lib_dlsearch_path_spec; do
15273 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15274 *[\\\\\\\`\\"\\\$]*)
15275 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15276 ;;
15277 *)
15278 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15279 ;;
15280 esac
15281 done
15282
15283 # Fix-up fallback echo if it was mangled by the above quoting rules.
15284 case \$lt_ECHO in
15285 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15286 ;;
15287 esac
15288
15289 ac_aux_dir='$ac_aux_dir'
15290 xsi_shell='$xsi_shell'
15291 lt_shell_append='$lt_shell_append'
15292
15293 # See if we are running on zsh, and set the options which allow our
15294 # commands through without removal of \ escapes INIT.
15295 if test -n "\${ZSH_VERSION+set}" ; then
15296 setopt NO_GLOB_SUBST
15297 fi
15298
15299
15300 PACKAGE='$PACKAGE'
15301 VERSION='$VERSION'
15302 TIMESTAMP='$TIMESTAMP'
15303 RM='$RM'
15304 ofile='$ofile'
15305
15306
15307
15308
15309 _ACEOF
15310
15311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15312
15313 # Handling of arguments.
15314 for ac_config_target in $ac_config_targets
15315 do
15316 case $ac_config_target in
15317 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15318 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15319 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15320 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15321
15322 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15323 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15324 { (exit 1); exit 1; }; };;
15325 esac
15326 done
15327
15328
15329 # If the user did not use the arguments to specify the items to instantiate,
15330 # then the envvar interface is used. Set only those that are not.
15331 # We use the long form for the default assignment because of an extremely
15332 # bizarre bug on SunOS 4.1.3.
15333 if $ac_need_defaults; then
15334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15336 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15337 fi
15338
15339 # Have a temporary directory for convenience. Make it in the build tree
15340 # simply because there is no reason against having it here, and in addition,
15341 # creating and moving files from /tmp can sometimes cause problems.
15342 # Hook for its removal unless debugging.
15343 # Note that there is a small window in which the directory will not be cleaned:
15344 # after its creation but before its name has been assigned to `$tmp'.
15345 $debug ||
15346 {
15347 tmp=
15348 trap 'exit_status=$?
15349 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15350 ' 0
15351 trap '{ (exit 1); exit 1; }' 1 2 13 15
15352 }
15353 # Create a (secure) tmp directory for tmp files.
15354
15355 {
15356 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15357 test -n "$tmp" && test -d "$tmp"
15358 } ||
15359 {
15360 tmp=./conf$$-$RANDOM
15361 (umask 077 && mkdir "$tmp")
15362 } ||
15363 {
15364 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15365 { (exit 1); exit 1; }
15366 }
15367
15368 # Set up the scripts for CONFIG_FILES section.
15369 # No need to generate them if there are no CONFIG_FILES.
15370 # This happens for instance with `./config.status config.h'.
15371 if test -n "$CONFIG_FILES"; then
15372
15373
15374 ac_cr=' '
15375 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15376 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15377 ac_cs_awk_cr='\\r'
15378 else
15379 ac_cs_awk_cr=$ac_cr
15380 fi
15381
15382 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15383 _ACEOF
15384
15385
15386 {
15387 echo "cat >conf$$subs.awk <<_ACEOF" &&
15388 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15389 echo "_ACEOF"
15390 } >conf$$subs.sh ||
15391 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15392 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15393 { (exit 1); exit 1; }; }
15394 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15395 ac_delim='%!_!# '
15396 for ac_last_try in false false false false false :; do
15397 . ./conf$$subs.sh ||
15398 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15399 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15400 { (exit 1); exit 1; }; }
15401
15402 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15403 if test $ac_delim_n = $ac_delim_num; then
15404 break
15405 elif $ac_last_try; then
15406 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15407 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15408 { (exit 1); exit 1; }; }
15409 else
15410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15411 fi
15412 done
15413 rm -f conf$$subs.sh
15414
15415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15417 _ACEOF
15418 sed -n '
15419 h
15420 s/^/S["/; s/!.*/"]=/
15421 p
15422 g
15423 s/^[^!]*!//
15424 :repl
15425 t repl
15426 s/'"$ac_delim"'$//
15427 t delim
15428 :nl
15429 h
15430 s/\(.\{148\}\).*/\1/
15431 t more1
15432 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15433 p
15434 n
15435 b repl
15436 :more1
15437 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15438 p
15439 g
15440 s/.\{148\}//
15441 t nl
15442 :delim
15443 h
15444 s/\(.\{148\}\).*/\1/
15445 t more2
15446 s/["\\]/\\&/g; s/^/"/; s/$/"/
15447 p
15448 b
15449 :more2
15450 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15451 p
15452 g
15453 s/.\{148\}//
15454 t delim
15455 ' <conf$$subs.awk | sed '
15456 /^[^""]/{
15457 N
15458 s/\n//
15459 }
15460 ' >>$CONFIG_STATUS || ac_write_fail=1
15461 rm -f conf$$subs.awk
15462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15463 _ACAWK
15464 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15465 for (key in S) S_is_set[key] = 1
15466 FS = "\a"
15467
15468 }
15469 {
15470 line = $ 0
15471 nfields = split(line, field, "@")
15472 substed = 0
15473 len = length(field[1])
15474 for (i = 2; i < nfields; i++) {
15475 key = field[i]
15476 keylen = length(key)
15477 if (S_is_set[key]) {
15478 value = S[key]
15479 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15480 len += length(value) + length(field[++i])
15481 substed = 1
15482 } else
15483 len += 1 + keylen
15484 }
15485
15486 print line
15487 }
15488
15489 _ACAWK
15490 _ACEOF
15491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15492 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15493 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15494 else
15495 cat
15496 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15497 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15498 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15499 { (exit 1); exit 1; }; }
15500 _ACEOF
15501
15502 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15503 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15504 # trailing colons and then remove the whole line if VPATH becomes empty
15505 # (actually we leave an empty line to preserve line numbers).
15506 if test "x$srcdir" = x.; then
15507 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15508 s/:*\$(srcdir):*/:/
15509 s/:*\${srcdir}:*/:/
15510 s/:*@srcdir@:*/:/
15511 s/^\([^=]*=[ ]*\):*/\1/
15512 s/:*$//
15513 s/^[^=]*=[ ]*$//
15514 }'
15515 fi
15516
15517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15518 fi # test -n "$CONFIG_FILES"
15519
15520 # Set up the scripts for CONFIG_HEADERS section.
15521 # No need to generate them if there are no CONFIG_HEADERS.
15522 # This happens for instance with `./config.status Makefile'.
15523 if test -n "$CONFIG_HEADERS"; then
15524 cat >"$tmp/defines.awk" <<\_ACAWK ||
15525 BEGIN {
15526 _ACEOF
15527
15528 # Transform confdefs.h into an awk script `defines.awk', embedded as
15529 # here-document in config.status, that substitutes the proper values into
15530 # config.h.in to produce config.h.
15531
15532 # Create a delimiter string that does not exist in confdefs.h, to ease
15533 # handling of long lines.
15534 ac_delim='%!_!# '
15535 for ac_last_try in false false :; do
15536 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15537 if test -z "$ac_t"; then
15538 break
15539 elif $ac_last_try; then
15540 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15541 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15542 { (exit 1); exit 1; }; }
15543 else
15544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15545 fi
15546 done
15547
15548 # For the awk script, D is an array of macro values keyed by name,
15549 # likewise P contains macro parameters if any. Preserve backslash
15550 # newline sequences.
15551
15552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15553 sed -n '
15554 s/.\{148\}/&'"$ac_delim"'/g
15555 t rset
15556 :rset
15557 s/^[ ]*#[ ]*define[ ][ ]*/ /
15558 t def
15559 d
15560 :def
15561 s/\\$//
15562 t bsnl
15563 s/["\\]/\\&/g
15564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15565 D["\1"]=" \3"/p
15566 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15567 d
15568 :bsnl
15569 s/["\\]/\\&/g
15570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15571 D["\1"]=" \3\\\\\\n"\\/p
15572 t cont
15573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15574 t cont
15575 d
15576 :cont
15577 n
15578 s/.\{148\}/&'"$ac_delim"'/g
15579 t clear
15580 :clear
15581 s/\\$//
15582 t bsnlc
15583 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15584 d
15585 :bsnlc
15586 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15587 b cont
15588 ' <confdefs.h | sed '
15589 s/'"$ac_delim"'/"\\\
15590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15591
15592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15593 for (key in D) D_is_set[key] = 1
15594 FS = "\a"
15595 }
15596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15597 line = \$ 0
15598 split(line, arg, " ")
15599 if (arg[1] == "#") {
15600 defundef = arg[2]
15601 mac1 = arg[3]
15602 } else {
15603 defundef = substr(arg[1], 2)
15604 mac1 = arg[2]
15605 }
15606 split(mac1, mac2, "(") #)
15607 macro = mac2[1]
15608 prefix = substr(line, 1, index(line, defundef) - 1)
15609 if (D_is_set[macro]) {
15610 # Preserve the white space surrounding the "#".
15611 print prefix "define", macro P[macro] D[macro]
15612 next
15613 } else {
15614 # Replace #undef with comments. This is necessary, for example,
15615 # in the case of _POSIX_SOURCE, which is predefined and required
15616 # on some systems where configure will not decide to define it.
15617 if (defundef == "undef") {
15618 print "/*", prefix defundef, macro, "*/"
15619 next
15620 }
15621 }
15622 }
15623 { print }
15624 _ACAWK
15625 _ACEOF
15626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15627 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15628 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15629 { (exit 1); exit 1; }; }
15630 fi # test -n "$CONFIG_HEADERS"
15631
15632
15633 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15634 shift
15635 for ac_tag
15636 do
15637 case $ac_tag in
15638 :[FHLC]) ac_mode=$ac_tag; continue;;
15639 esac
15640 case $ac_mode$ac_tag in
15641 :[FHL]*:*);;
15642 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15643 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15644 { (exit 1); exit 1; }; };;
15645 :[FH]-) ac_tag=-:-;;
15646 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15647 esac
15648 ac_save_IFS=$IFS
15649 IFS=:
15650 set x $ac_tag
15651 IFS=$ac_save_IFS
15652 shift
15653 ac_file=$1
15654 shift
15655
15656 case $ac_mode in
15657 :L) ac_source=$1;;
15658 :[FH])
15659 ac_file_inputs=
15660 for ac_f
15661 do
15662 case $ac_f in
15663 -) ac_f="$tmp/stdin";;
15664 *) # Look for the file first in the build tree, then in the source tree
15665 # (if the path is not absolute). The absolute path cannot be DOS-style,
15666 # because $ac_f cannot contain `:'.
15667 test -f "$ac_f" ||
15668 case $ac_f in
15669 [\\/$]*) false;;
15670 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15671 esac ||
15672 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15673 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15674 { (exit 1); exit 1; }; };;
15675 esac
15676 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15677 ac_file_inputs="$ac_file_inputs '$ac_f'"
15678 done
15679
15680 # Let's still pretend it is `configure' which instantiates (i.e., don't
15681 # use $as_me), people would be surprised to read:
15682 # /* config.h. Generated by config.status. */
15683 configure_input='Generated from '`
15684 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15685 `' by configure.'
15686 if test x"$ac_file" != x-; then
15687 configure_input="$ac_file. $configure_input"
15688 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15689 $as_echo "$as_me: creating $ac_file" >&6;}
15690 fi
15691 # Neutralize special characters interpreted by sed in replacement strings.
15692 case $configure_input in #(
15693 *\&* | *\|* | *\\* )
15694 ac_sed_conf_input=`$as_echo "$configure_input" |
15695 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15696 *) ac_sed_conf_input=$configure_input;;
15697 esac
15698
15699 case $ac_tag in
15700 *:-:* | *:-) cat >"$tmp/stdin" \
15701 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15702 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15703 { (exit 1); exit 1; }; } ;;
15704 esac
15705 ;;
15706 esac
15707
15708 ac_dir=`$as_dirname -- "$ac_file" ||
15709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15710 X"$ac_file" : 'X\(//\)[^/]' \| \
15711 X"$ac_file" : 'X\(//\)$' \| \
15712 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15713 $as_echo X"$ac_file" |
15714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15715 s//\1/
15716 q
15717 }
15718 /^X\(\/\/\)[^/].*/{
15719 s//\1/
15720 q
15721 }
15722 /^X\(\/\/\)$/{
15723 s//\1/
15724 q
15725 }
15726 /^X\(\/\).*/{
15727 s//\1/
15728 q
15729 }
15730 s/.*/./; q'`
15731 { as_dir="$ac_dir"
15732 case $as_dir in #(
15733 -*) as_dir=./$as_dir;;
15734 esac
15735 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15736 as_dirs=
15737 while :; do
15738 case $as_dir in #(
15739 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15740 *) as_qdir=$as_dir;;
15741 esac
15742 as_dirs="'$as_qdir' $as_dirs"
15743 as_dir=`$as_dirname -- "$as_dir" ||
15744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15745 X"$as_dir" : 'X\(//\)[^/]' \| \
15746 X"$as_dir" : 'X\(//\)$' \| \
15747 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15748 $as_echo X"$as_dir" |
15749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15750 s//\1/
15751 q
15752 }
15753 /^X\(\/\/\)[^/].*/{
15754 s//\1/
15755 q
15756 }
15757 /^X\(\/\/\)$/{
15758 s//\1/
15759 q
15760 }
15761 /^X\(\/\).*/{
15762 s//\1/
15763 q
15764 }
15765 s/.*/./; q'`
15766 test -d "$as_dir" && break
15767 done
15768 test -z "$as_dirs" || eval "mkdir $as_dirs"
15769 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15770 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15771 { (exit 1); exit 1; }; }; }
15772 ac_builddir=.
15773
15774 case "$ac_dir" in
15775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15776 *)
15777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15778 # A ".." for each directory in $ac_dir_suffix.
15779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15780 case $ac_top_builddir_sub in
15781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15783 esac ;;
15784 esac
15785 ac_abs_top_builddir=$ac_pwd
15786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15787 # for backward compatibility:
15788 ac_top_builddir=$ac_top_build_prefix
15789
15790 case $srcdir in
15791 .) # We are building in place.
15792 ac_srcdir=.
15793 ac_top_srcdir=$ac_top_builddir_sub
15794 ac_abs_top_srcdir=$ac_pwd ;;
15795 [\\/]* | ?:[\\/]* ) # Absolute name.
15796 ac_srcdir=$srcdir$ac_dir_suffix;
15797 ac_top_srcdir=$srcdir
15798 ac_abs_top_srcdir=$srcdir ;;
15799 *) # Relative name.
15800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15801 ac_top_srcdir=$ac_top_build_prefix$srcdir
15802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15803 esac
15804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15805
15806
15807 case $ac_mode in
15808 :F)
15809 #
15810 # CONFIG_FILE
15811 #
15812
15813 case $INSTALL in
15814 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15815 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15816 esac
15817 ac_MKDIR_P=$MKDIR_P
15818 case $MKDIR_P in
15819 [\\/$]* | ?:[\\/]* ) ;;
15820 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15821 esac
15822 _ACEOF
15823
15824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15825 # If the template does not know about datarootdir, expand it.
15826 # FIXME: This hack should be removed a few years after 2.60.
15827 ac_datarootdir_hack=; ac_datarootdir_seen=
15828
15829 ac_sed_dataroot='
15830 /datarootdir/ {
15831 p
15832 q
15833 }
15834 /@datadir@/p
15835 /@docdir@/p
15836 /@infodir@/p
15837 /@localedir@/p
15838 /@mandir@/p
15839 '
15840 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15841 *datarootdir*) ac_datarootdir_seen=yes;;
15842 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15843 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15844 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15845 _ACEOF
15846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15847 ac_datarootdir_hack='
15848 s&@datadir@&$datadir&g
15849 s&@docdir@&$docdir&g
15850 s&@infodir@&$infodir&g
15851 s&@localedir@&$localedir&g
15852 s&@mandir@&$mandir&g
15853 s&\\\${datarootdir}&$datarootdir&g' ;;
15854 esac
15855 _ACEOF
15856
15857 # Neutralize VPATH when `$srcdir' = `.'.
15858 # Shell code in configure.ac might set extrasub.
15859 # FIXME: do we really want to maintain this feature?
15860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15861 ac_sed_extra="$ac_vpsub
15862 $extrasub
15863 _ACEOF
15864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15865 :t
15866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15867 s|@configure_input@|$ac_sed_conf_input|;t t
15868 s&@top_builddir@&$ac_top_builddir_sub&;t t
15869 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15870 s&@srcdir@&$ac_srcdir&;t t
15871 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15872 s&@top_srcdir@&$ac_top_srcdir&;t t
15873 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15874 s&@builddir@&$ac_builddir&;t t
15875 s&@abs_builddir@&$ac_abs_builddir&;t t
15876 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15877 s&@INSTALL@&$ac_INSTALL&;t t
15878 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15879 $ac_datarootdir_hack
15880 "
15881 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15882 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15883 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15884 { (exit 1); exit 1; }; }
15885
15886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15887 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15889 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15890 which seems to be undefined. Please make sure it is defined." >&5
15891 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15892 which seems to be undefined. Please make sure it is defined." >&2;}
15893
15894 rm -f "$tmp/stdin"
15895 case $ac_file in
15896 -) cat "$tmp/out" && rm -f "$tmp/out";;
15897 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15898 esac \
15899 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15900 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15901 { (exit 1); exit 1; }; }
15902 ;;
15903 :H)
15904 #
15905 # CONFIG_HEADER
15906 #
15907 if test x"$ac_file" != x-; then
15908 {
15909 $as_echo "/* $configure_input */" \
15910 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15911 } >"$tmp/config.h" \
15912 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15913 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15914 { (exit 1); exit 1; }; }
15915 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15916 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15917 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15918 else
15919 rm -f "$ac_file"
15920 mv "$tmp/config.h" "$ac_file" \
15921 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15922 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15923 { (exit 1); exit 1; }; }
15924 fi
15925 else
15926 $as_echo "/* $configure_input */" \
15927 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15928 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15929 $as_echo "$as_me: error: could not create -" >&2;}
15930 { (exit 1); exit 1; }; }
15931 fi
15932 # Compute "$ac_file"'s index in $config_headers.
15933 _am_arg="$ac_file"
15934 _am_stamp_count=1
15935 for _am_header in $config_headers :; do
15936 case $_am_header in
15937 $_am_arg | $_am_arg:* )
15938 break ;;
15939 * )
15940 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15941 esac
15942 done
15943 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15944 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15945 X"$_am_arg" : 'X\(//\)[^/]' \| \
15946 X"$_am_arg" : 'X\(//\)$' \| \
15947 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15948 $as_echo X"$_am_arg" |
15949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15950 s//\1/
15951 q
15952 }
15953 /^X\(\/\/\)[^/].*/{
15954 s//\1/
15955 q
15956 }
15957 /^X\(\/\/\)$/{
15958 s//\1/
15959 q
15960 }
15961 /^X\(\/\).*/{
15962 s//\1/
15963 q
15964 }
15965 s/.*/./; q'`/stamp-h$_am_stamp_count
15966 ;;
15967
15968 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15969 $as_echo "$as_me: executing $ac_file commands" >&6;}
15970 ;;
15971 esac
15972
15973
15974 case $ac_file$ac_mode in
15975 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15976 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15977 # are listed without --file. Let's play safe and only enable the eval
15978 # if we detect the quoting.
15979 case $CONFIG_FILES in
15980 *\'*) eval set x "$CONFIG_FILES" ;;
15981 *) set x $CONFIG_FILES ;;
15982 esac
15983 shift
15984 for mf
15985 do
15986 # Strip MF so we end up with the name of the file.
15987 mf=`echo "$mf" | sed -e 's/:.*$//'`
15988 # Check whether this is an Automake generated Makefile or not.
15989 # We used to match only the files named `Makefile.in', but
15990 # some people rename them; so instead we look at the file content.
15991 # Grep'ing the first line is not enough: some people post-process
15992 # each Makefile.in and add a new line on top of each file to say so.
15993 # Grep'ing the whole file is not good either: AIX grep has a line
15994 # limit of 2048, but all sed's we know have understand at least 4000.
15995 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15996 dirpart=`$as_dirname -- "$mf" ||
15997 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15998 X"$mf" : 'X\(//\)[^/]' \| \
15999 X"$mf" : 'X\(//\)$' \| \
16000 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16001 $as_echo X"$mf" |
16002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16003 s//\1/
16004 q
16005 }
16006 /^X\(\/\/\)[^/].*/{
16007 s//\1/
16008 q
16009 }
16010 /^X\(\/\/\)$/{
16011 s//\1/
16012 q
16013 }
16014 /^X\(\/\).*/{
16015 s//\1/
16016 q
16017 }
16018 s/.*/./; q'`
16019 else
16020 continue
16021 fi
16022 # Extract the definition of DEPDIR, am__include, and am__quote
16023 # from the Makefile without running `make'.
16024 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16025 test -z "$DEPDIR" && continue
16026 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16027 test -z "am__include" && continue
16028 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16029 # When using ansi2knr, U may be empty or an underscore; expand it
16030 U=`sed -n 's/^U = //p' < "$mf"`
16031 # Find all dependency output files, they are included files with
16032 # $(DEPDIR) in their names. We invoke sed twice because it is the
16033 # simplest approach to changing $(DEPDIR) to its actual value in the
16034 # expansion.
16035 for file in `sed -n "
16036 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16037 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16038 # Make sure the directory exists.
16039 test -f "$dirpart/$file" && continue
16040 fdir=`$as_dirname -- "$file" ||
16041 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16042 X"$file" : 'X\(//\)[^/]' \| \
16043 X"$file" : 'X\(//\)$' \| \
16044 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16045 $as_echo X"$file" |
16046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16047 s//\1/
16048 q
16049 }
16050 /^X\(\/\/\)[^/].*/{
16051 s//\1/
16052 q
16053 }
16054 /^X\(\/\/\)$/{
16055 s//\1/
16056 q
16057 }
16058 /^X\(\/\).*/{
16059 s//\1/
16060 q
16061 }
16062 s/.*/./; q'`
16063 { as_dir=$dirpart/$fdir
16064 case $as_dir in #(
16065 -*) as_dir=./$as_dir;;
16066 esac
16067 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16068 as_dirs=
16069 while :; do
16070 case $as_dir in #(
16071 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16072 *) as_qdir=$as_dir;;
16073 esac
16074 as_dirs="'$as_qdir' $as_dirs"
16075 as_dir=`$as_dirname -- "$as_dir" ||
16076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16077 X"$as_dir" : 'X\(//\)[^/]' \| \
16078 X"$as_dir" : 'X\(//\)$' \| \
16079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16080 $as_echo X"$as_dir" |
16081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16082 s//\1/
16083 q
16084 }
16085 /^X\(\/\/\)[^/].*/{
16086 s//\1/
16087 q
16088 }
16089 /^X\(\/\/\)$/{
16090 s//\1/
16091 q
16092 }
16093 /^X\(\/\).*/{
16094 s//\1/
16095 q
16096 }
16097 s/.*/./; q'`
16098 test -d "$as_dir" && break
16099 done
16100 test -z "$as_dirs" || eval "mkdir $as_dirs"
16101 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16102 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16103 { (exit 1); exit 1; }; }; }
16104 # echo "creating $dirpart/$file"
16105 echo '# dummy' > "$dirpart/$file"
16106 done
16107 done
16108 }
16109 ;;
16110 "libtool":C)
16111
16112 # See if we are running on zsh, and set the options which allow our
16113 # commands through without removal of \ escapes.
16114 if test -n "${ZSH_VERSION+set}" ; then
16115 setopt NO_GLOB_SUBST
16116 fi
16117
16118 cfgfile="${ofile}T"
16119 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16120 $RM "$cfgfile"
16121
16122 cat <<_LT_EOF >> "$cfgfile"
16123 #! $SHELL
16124
16125 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16126 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16127 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16128 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16129 #
16130 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16131 # 2006, 2007, 2008 Free Software Foundation, Inc.
16132 # Written by Gordon Matzigkeit, 1996
16133 #
16134 # This file is part of GNU Libtool.
16135 #
16136 # GNU Libtool is free software; you can redistribute it and/or
16137 # modify it under the terms of the GNU General Public License as
16138 # published by the Free Software Foundation; either version 2 of
16139 # the License, or (at your option) any later version.
16140 #
16141 # As a special exception to the GNU General Public License,
16142 # if you distribute this file as part of a program or library that
16143 # is built using GNU Libtool, you may include this file under the
16144 # same distribution terms that you use for the rest of that program.
16145 #
16146 # GNU Libtool is distributed in the hope that it will be useful,
16147 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16149 # GNU General Public License for more details.
16150 #
16151 # You should have received a copy of the GNU General Public License
16152 # along with GNU Libtool; see the file COPYING. If not, a copy
16153 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16154 # obtained by writing to the Free Software Foundation, Inc.,
16155 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16156
16157
16158 # The names of the tagged configurations supported by this script.
16159 available_tags=""
16160
16161 # ### BEGIN LIBTOOL CONFIG
16162
16163 # Which release of libtool.m4 was used?
16164 macro_version=$macro_version
16165 macro_revision=$macro_revision
16166
16167 # Whether or not to build shared libraries.
16168 build_libtool_libs=$enable_shared
16169
16170 # Whether or not to build static libraries.
16171 build_old_libs=$enable_static
16172
16173 # What type of objects to build.
16174 pic_mode=$pic_mode
16175
16176 # Whether or not to optimize for fast installation.
16177 fast_install=$enable_fast_install
16178
16179 # The host system.
16180 host_alias=$host_alias
16181 host=$host
16182 host_os=$host_os
16183
16184 # The build system.
16185 build_alias=$build_alias
16186 build=$build
16187 build_os=$build_os
16188
16189 # A sed program that does not truncate output.
16190 SED=$lt_SED
16191
16192 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16193 Xsed="\$SED -e 1s/^X//"
16194
16195 # A grep program that handles long lines.
16196 GREP=$lt_GREP
16197
16198 # An ERE matcher.
16199 EGREP=$lt_EGREP
16200
16201 # A literal string matcher.
16202 FGREP=$lt_FGREP
16203
16204 # A BSD- or MS-compatible name lister.
16205 NM=$lt_NM
16206
16207 # Whether we need soft or hard links.
16208 LN_S=$lt_LN_S
16209
16210 # What is the maximum length of a command?
16211 max_cmd_len=$max_cmd_len
16212
16213 # Object file suffix (normally "o").
16214 objext=$ac_objext
16215
16216 # Executable file suffix (normally "").
16217 exeext=$exeext
16218
16219 # whether the shell understands "unset".
16220 lt_unset=$lt_unset
16221
16222 # turn spaces into newlines.
16223 SP2NL=$lt_lt_SP2NL
16224
16225 # turn newlines into spaces.
16226 NL2SP=$lt_lt_NL2SP
16227
16228 # How to create reloadable object files.
16229 reload_flag=$lt_reload_flag
16230 reload_cmds=$lt_reload_cmds
16231
16232 # An object symbol dumper.
16233 OBJDUMP=$lt_OBJDUMP
16234
16235 # Method to check whether dependent libraries are shared objects.
16236 deplibs_check_method=$lt_deplibs_check_method
16237
16238 # Command to use when deplibs_check_method == "file_magic".
16239 file_magic_cmd=$lt_file_magic_cmd
16240
16241 # The archiver.
16242 AR=$lt_AR
16243 AR_FLAGS=$lt_AR_FLAGS
16244
16245 # A symbol stripping program.
16246 STRIP=$lt_STRIP
16247
16248 # Commands used to install an old-style archive.
16249 RANLIB=$lt_RANLIB
16250 old_postinstall_cmds=$lt_old_postinstall_cmds
16251 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16252
16253 # A C compiler.
16254 LTCC=$lt_CC
16255
16256 # LTCC compiler flags.
16257 LTCFLAGS=$lt_CFLAGS
16258
16259 # Take the output of nm and produce a listing of raw symbols and C names.
16260 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16261
16262 # Transform the output of nm in a proper C declaration.
16263 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16264
16265 # Transform the output of nm in a C name address pair.
16266 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16267
16268 # Transform the output of nm in a C name address pair when lib prefix is needed.
16269 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16270
16271 # The name of the directory that contains temporary libtool files.
16272 objdir=$objdir
16273
16274 # Shell to use when invoking shell scripts.
16275 SHELL=$lt_SHELL
16276
16277 # An echo program that does not interpret backslashes.
16278 ECHO=$lt_ECHO
16279
16280 # Used to examine libraries when file_magic_cmd begins with "file".
16281 MAGIC_CMD=$MAGIC_CMD
16282
16283 # Must we lock files when doing compilation?
16284 need_locks=$lt_need_locks
16285
16286 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16287 DSYMUTIL=$lt_DSYMUTIL
16288
16289 # Tool to change global to local symbols on Mac OS X.
16290 NMEDIT=$lt_NMEDIT
16291
16292 # Tool to manipulate fat objects and archives on Mac OS X.
16293 LIPO=$lt_LIPO
16294
16295 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16296 OTOOL=$lt_OTOOL
16297
16298 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16299 OTOOL64=$lt_OTOOL64
16300
16301 # Old archive suffix (normally "a").
16302 libext=$libext
16303
16304 # Shared library suffix (normally ".so").
16305 shrext_cmds=$lt_shrext_cmds
16306
16307 # The commands to extract the exported symbol list from a shared archive.
16308 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16309
16310 # Variables whose values should be saved in libtool wrapper scripts and
16311 # restored at link time.
16312 variables_saved_for_relink=$lt_variables_saved_for_relink
16313
16314 # Do we need the "lib" prefix for modules?
16315 need_lib_prefix=$need_lib_prefix
16316
16317 # Do we need a version for libraries?
16318 need_version=$need_version
16319
16320 # Library versioning type.
16321 version_type=$version_type
16322
16323 # Shared library runtime path variable.
16324 runpath_var=$runpath_var
16325
16326 # Shared library path variable.
16327 shlibpath_var=$shlibpath_var
16328
16329 # Is shlibpath searched before the hard-coded library search path?
16330 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16331
16332 # Format of library name prefix.
16333 libname_spec=$lt_libname_spec
16334
16335 # List of archive names. First name is the real one, the rest are links.
16336 # The last name is the one that the linker finds with -lNAME
16337 library_names_spec=$lt_library_names_spec
16338
16339 # The coded name of the library, if different from the real name.
16340 soname_spec=$lt_soname_spec
16341
16342 # Command to use after installation of a shared archive.
16343 postinstall_cmds=$lt_postinstall_cmds
16344
16345 # Command to use after uninstallation of a shared archive.
16346 postuninstall_cmds=$lt_postuninstall_cmds
16347
16348 # Commands used to finish a libtool library installation in a directory.
16349 finish_cmds=$lt_finish_cmds
16350
16351 # As "finish_cmds", except a single script fragment to be evaled but
16352 # not shown.
16353 finish_eval=$lt_finish_eval
16354
16355 # Whether we should hardcode library paths into libraries.
16356 hardcode_into_libs=$hardcode_into_libs
16357
16358 # Compile-time system search path for libraries.
16359 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16360
16361 # Run-time system search path for libraries.
16362 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16363
16364 # Whether dlopen is supported.
16365 dlopen_support=$enable_dlopen
16366
16367 # Whether dlopen of programs is supported.
16368 dlopen_self=$enable_dlopen_self
16369
16370 # Whether dlopen of statically linked programs is supported.
16371 dlopen_self_static=$enable_dlopen_self_static
16372
16373 # Commands to strip libraries.
16374 old_striplib=$lt_old_striplib
16375 striplib=$lt_striplib
16376
16377
16378 # The linker used to build libraries.
16379 LD=$lt_LD
16380
16381 # Commands used to build an old-style archive.
16382 old_archive_cmds=$lt_old_archive_cmds
16383
16384 # A language specific compiler.
16385 CC=$lt_compiler
16386
16387 # Is the compiler the GNU compiler?
16388 with_gcc=$GCC
16389
16390 # Compiler flag to turn off builtin functions.
16391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16392
16393 # How to pass a linker flag through the compiler.
16394 wl=$lt_lt_prog_compiler_wl
16395
16396 # Additional compiler flags for building library objects.
16397 pic_flag=$lt_lt_prog_compiler_pic
16398
16399 # Compiler flag to prevent dynamic linking.
16400 link_static_flag=$lt_lt_prog_compiler_static
16401
16402 # Does compiler simultaneously support -c and -o options?
16403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16404
16405 # Whether or not to add -lc for building shared libraries.
16406 build_libtool_need_lc=$archive_cmds_need_lc
16407
16408 # Whether or not to disallow shared libs when runtime libs are static.
16409 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16410
16411 # Compiler flag to allow reflexive dlopens.
16412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16413
16414 # Compiler flag to generate shared objects directly from archives.
16415 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16416
16417 # Whether the compiler copes with passing no objects directly.
16418 compiler_needs_object=$lt_compiler_needs_object
16419
16420 # Create an old-style archive from a shared archive.
16421 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16422
16423 # Create a temporary old-style archive to link instead of a shared archive.
16424 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16425
16426 # Commands used to build a shared archive.
16427 archive_cmds=$lt_archive_cmds
16428 archive_expsym_cmds=$lt_archive_expsym_cmds
16429
16430 # Commands used to build a loadable module if different from building
16431 # a shared archive.
16432 module_cmds=$lt_module_cmds
16433 module_expsym_cmds=$lt_module_expsym_cmds
16434
16435 # Whether we are building with GNU ld or not.
16436 with_gnu_ld=$lt_with_gnu_ld
16437
16438 # Flag that allows shared libraries with undefined symbols to be built.
16439 allow_undefined_flag=$lt_allow_undefined_flag
16440
16441 # Flag that enforces no undefined symbols.
16442 no_undefined_flag=$lt_no_undefined_flag
16443
16444 # Flag to hardcode \$libdir into a binary during linking.
16445 # This must work even if \$libdir does not exist
16446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16447
16448 # If ld is used when linking, flag to hardcode \$libdir into a binary
16449 # during linking. This must work even if \$libdir does not exist.
16450 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16451
16452 # Whether we need a single "-rpath" flag with a separated argument.
16453 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16454
16455 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16456 # DIR into the resulting binary.
16457 hardcode_direct=$hardcode_direct
16458
16459 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16460 # DIR into the resulting binary and the resulting library dependency is
16461 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16462 # library is relocated.
16463 hardcode_direct_absolute=$hardcode_direct_absolute
16464
16465 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16466 # into the resulting binary.
16467 hardcode_minus_L=$hardcode_minus_L
16468
16469 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16470 # into the resulting binary.
16471 hardcode_shlibpath_var=$hardcode_shlibpath_var
16472
16473 # Set to "yes" if building a shared library automatically hardcodes DIR
16474 # into the library and all subsequent libraries and executables linked
16475 # against it.
16476 hardcode_automatic=$hardcode_automatic
16477
16478 # Set to yes if linker adds runtime paths of dependent libraries
16479 # to runtime path list.
16480 inherit_rpath=$inherit_rpath
16481
16482 # Whether libtool must link a program against all its dependency libraries.
16483 link_all_deplibs=$link_all_deplibs
16484
16485 # Fix the shell variable \$srcfile for the compiler.
16486 fix_srcfile_path=$lt_fix_srcfile_path
16487
16488 # Set to "yes" if exported symbols are required.
16489 always_export_symbols=$always_export_symbols
16490
16491 # The commands to list exported symbols.
16492 export_symbols_cmds=$lt_export_symbols_cmds
16493
16494 # Symbols that should not be listed in the preloaded symbols.
16495 exclude_expsyms=$lt_exclude_expsyms
16496
16497 # Symbols that must always be exported.
16498 include_expsyms=$lt_include_expsyms
16499
16500 # Commands necessary for linking programs (against libraries) with templates.
16501 prelink_cmds=$lt_prelink_cmds
16502
16503 # Specify filename containing input files.
16504 file_list_spec=$lt_file_list_spec
16505
16506 # How to hardcode a shared library path into an executable.
16507 hardcode_action=$hardcode_action
16508
16509 # ### END LIBTOOL CONFIG
16510
16511 _LT_EOF
16512
16513 case $host_os in
16514 aix3*)
16515 cat <<\_LT_EOF >> "$cfgfile"
16516 # AIX sometimes has problems with the GCC collect2 program. For some
16517 # reason, if we set the COLLECT_NAMES environment variable, the problems
16518 # vanish in a puff of smoke.
16519 if test "X${COLLECT_NAMES+set}" != Xset; then
16520 COLLECT_NAMES=
16521 export COLLECT_NAMES
16522 fi
16523 _LT_EOF
16524 ;;
16525 esac
16526
16527
16528 ltmain="$ac_aux_dir/ltmain.sh"
16529
16530
16531 # We use sed instead of cat because bash on DJGPP gets confused if
16532 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16533 # text mode, it properly converts lines to CR/LF. This bash problem
16534 # is reportedly fixed, but why not run on old versions too?
16535 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16536 || (rm -f "$cfgfile"; exit 1)
16537
16538 case $xsi_shell in
16539 yes)
16540 cat << \_LT_EOF >> "$cfgfile"
16541
16542 # func_dirname file append nondir_replacement
16543 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16544 # otherwise set result to NONDIR_REPLACEMENT.
16545 func_dirname ()
16546 {
16547 case ${1} in
16548 */*) func_dirname_result="${1%/*}${2}" ;;
16549 * ) func_dirname_result="${3}" ;;
16550 esac
16551 }
16552
16553 # func_basename file
16554 func_basename ()
16555 {
16556 func_basename_result="${1##*/}"
16557 }
16558
16559 # func_dirname_and_basename file append nondir_replacement
16560 # perform func_basename and func_dirname in a single function
16561 # call:
16562 # dirname: Compute the dirname of FILE. If nonempty,
16563 # add APPEND to the result, otherwise set result
16564 # to NONDIR_REPLACEMENT.
16565 # value returned in "$func_dirname_result"
16566 # basename: Compute filename of FILE.
16567 # value retuned in "$func_basename_result"
16568 # Implementation must be kept synchronized with func_dirname
16569 # and func_basename. For efficiency, we do not delegate to
16570 # those functions but instead duplicate the functionality here.
16571 func_dirname_and_basename ()
16572 {
16573 case ${1} in
16574 */*) func_dirname_result="${1%/*}${2}" ;;
16575 * ) func_dirname_result="${3}" ;;
16576 esac
16577 func_basename_result="${1##*/}"
16578 }
16579
16580 # func_stripname prefix suffix name
16581 # strip PREFIX and SUFFIX off of NAME.
16582 # PREFIX and SUFFIX must not contain globbing or regex special
16583 # characters, hashes, percent signs, but SUFFIX may contain a leading
16584 # dot (in which case that matches only a dot).
16585 func_stripname ()
16586 {
16587 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16588 # positional parameters, so assign one to ordinary parameter first.
16589 func_stripname_result=${3}
16590 func_stripname_result=${func_stripname_result#"${1}"}
16591 func_stripname_result=${func_stripname_result%"${2}"}
16592 }
16593
16594 # func_opt_split
16595 func_opt_split ()
16596 {
16597 func_opt_split_opt=${1%%=*}
16598 func_opt_split_arg=${1#*=}
16599 }
16600
16601 # func_lo2o object
16602 func_lo2o ()
16603 {
16604 case ${1} in
16605 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16606 *) func_lo2o_result=${1} ;;
16607 esac
16608 }
16609
16610 # func_xform libobj-or-source
16611 func_xform ()
16612 {
16613 func_xform_result=${1%.*}.lo
16614 }
16615
16616 # func_arith arithmetic-term...
16617 func_arith ()
16618 {
16619 func_arith_result=$(( $* ))
16620 }
16621
16622 # func_len string
16623 # STRING may not start with a hyphen.
16624 func_len ()
16625 {
16626 func_len_result=${#1}
16627 }
16628
16629 _LT_EOF
16630 ;;
16631 *) # Bourne compatible functions.
16632 cat << \_LT_EOF >> "$cfgfile"
16633
16634 # func_dirname file append nondir_replacement
16635 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16636 # otherwise set result to NONDIR_REPLACEMENT.
16637 func_dirname ()
16638 {
16639 # Extract subdirectory from the argument.
16640 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16641 if test "X$func_dirname_result" = "X${1}"; then
16642 func_dirname_result="${3}"
16643 else
16644 func_dirname_result="$func_dirname_result${2}"
16645 fi
16646 }
16647
16648 # func_basename file
16649 func_basename ()
16650 {
16651 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16652 }
16653
16654
16655 # func_stripname prefix suffix name
16656 # strip PREFIX and SUFFIX off of NAME.
16657 # PREFIX and SUFFIX must not contain globbing or regex special
16658 # characters, hashes, percent signs, but SUFFIX may contain a leading
16659 # dot (in which case that matches only a dot).
16660 # func_strip_suffix prefix name
16661 func_stripname ()
16662 {
16663 case ${2} in
16664 .*) func_stripname_result=`$ECHO "X${3}" \
16665 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16666 *) func_stripname_result=`$ECHO "X${3}" \
16667 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16668 esac
16669 }
16670
16671 # sed scripts:
16672 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16673 my_sed_long_arg='1s/^-[^=]*=//'
16674
16675 # func_opt_split
16676 func_opt_split ()
16677 {
16678 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16679 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16680 }
16681
16682 # func_lo2o object
16683 func_lo2o ()
16684 {
16685 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16686 }
16687
16688 # func_xform libobj-or-source
16689 func_xform ()
16690 {
16691 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16692 }
16693
16694 # func_arith arithmetic-term...
16695 func_arith ()
16696 {
16697 func_arith_result=`expr "$@"`
16698 }
16699
16700 # func_len string
16701 # STRING may not start with a hyphen.
16702 func_len ()
16703 {
16704 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16705 }
16706
16707 _LT_EOF
16708 esac
16709
16710 case $lt_shell_append in
16711 yes)
16712 cat << \_LT_EOF >> "$cfgfile"
16713
16714 # func_append var value
16715 # Append VALUE to the end of shell variable VAR.
16716 func_append ()
16717 {
16718 eval "$1+=\$2"
16719 }
16720 _LT_EOF
16721 ;;
16722 *)
16723 cat << \_LT_EOF >> "$cfgfile"
16724
16725 # func_append var value
16726 # Append VALUE to the end of shell variable VAR.
16727 func_append ()
16728 {
16729 eval "$1=\$$1\$2"
16730 }
16731
16732 _LT_EOF
16733 ;;
16734 esac
16735
16736
16737 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16738 || (rm -f "$cfgfile"; exit 1)
16739
16740 mv -f "$cfgfile" "$ofile" ||
16741 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16742 chmod +x "$ofile"
16743
16744 ;;
16745
16746 esac
16747 done # for ac_tag
16748
16749
16750 { (exit 0); exit 0; }
16751 _ACEOF
16752 chmod +x $CONFIG_STATUS
16753 ac_clean_files=$ac_clean_files_save
16754
16755 test $ac_write_fail = 0 ||
16756 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16757 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16758 { (exit 1); exit 1; }; }
16759
16760
16761 # configure is writing to config.log, and then calls config.status.
16762 # config.status does its own redirection, appending to config.log.
16763 # Unfortunately, on DOS this fails, as config.log is still kept open
16764 # by configure, so config.status won't be able to write to it; its
16765 # output is simply discarded. So we exec the FD to /dev/null,
16766 # effectively closing config.log, so it can be properly (re)opened and
16767 # appended to by config.status. When coming back to configure, we
16768 # need to make the FD available again.
16769 if test "$no_create" != yes; then
16770 ac_cs_success=:
16771 ac_config_status_args=
16772 test "$silent" = yes &&
16773 ac_config_status_args="$ac_config_status_args --quiet"
16774 exec 5>/dev/null
16775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16776 exec 5>>config.log
16777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16778 # would make configure fail if this is the last instruction.
16779 $ac_cs_success || { (exit 1); exit 1; }
16780 fi
16781 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16782 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16783 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16784 fi
16785