configure revision 1.1.1.1.42.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for trousers 0.3.14.
4 #
5 # Report bugs to <trousers-tech (at] lists.sf.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='trousers'
747 PACKAGE_TARNAME='trousers'
748 PACKAGE_VERSION='0.3.14'
749 PACKAGE_STRING='trousers 0.3.14'
750 PACKAGE_BUGREPORT='trousers-tech (at] lists.sf.net'
751
752 # Factoring default headers for most tests.
753 ac_includes_default="\
754 #include <stdio.h>
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
757 #endif
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
760 #endif
761 #ifdef STDC_HEADERS
762 # include <stdlib.h>
763 # include <stddef.h>
764 #else
765 # ifdef HAVE_STDLIB_H
766 # include <stdlib.h>
767 # endif
768 #endif
769 #ifdef HAVE_STRING_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771 # include <memory.h>
772 # endif
773 # include <string.h>
774 #endif
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
777 #endif
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
780 #endif
781 #ifdef HAVE_STDINT_H
782 # include <stdint.h>
783 #endif
784 #ifdef HAVE_UNISTD_H
785 # include <unistd.h>
786 #endif"
787
788 ac_subst_vars='am__EXEEXT_FALSE
789 am__EXEEXT_TRUE
790 LTLIBOBJS
791 LIBOBJS
792 OTOOL64
793 OTOOL
794 LIPO
795 NMEDIT
796 DSYMUTIL
797 lt_ECHO
798 RANLIB
799 AR
800 OBJDUMP
801 LN_S
802 NM
803 ac_ct_DUMPBIN
804 DUMPBIN
805 LD
806 FGREP
807 SED
808 LIBTOOL
809 TSS_BUILD_SYM_CRYPTO_FALSE
810 TSS_BUILD_SYM_CRYPTO_TRUE
811 TSS_BUILD_ASYM_CRYPTO_FALSE
812 TSS_BUILD_ASYM_CRYPTO_TRUE
813 TSS_BUILD_AUTH_FALSE
814 TSS_BUILD_AUTH_TRUE
815 TSS_BUILD_RSAKEY_LIST_FALSE
816 TSS_BUILD_RSAKEY_LIST_TRUE
817 TSS_BUILD_ENCDATA_LIST_FALSE
818 TSS_BUILD_ENCDATA_LIST_TRUE
819 TSS_BUILD_HASH_LIST_FALSE
820 TSS_BUILD_HASH_LIST_TRUE
821 TSS_BUILD_PCRS_LIST_FALSE
822 TSS_BUILD_PCRS_LIST_TRUE
823 TSS_BUILD_GET_FLAGS_FALSE
824 TSS_BUILD_GET_FLAGS_TRUE
825 TSS_BUILD_NV_SUPPORT_FALSE
826 TSS_BUILD_NV_SUPPORT_TRUE
827 TSS_BUILD_NV_LIST_FALSE
828 TSS_BUILD_NV_LIST_TRUE
829 TSS_BUILD_CMK_FALSE
830 TSS_BUILD_CMK_TRUE
831 TSS_BUILD_QUOTE2_FALSE
832 TSS_BUILD_QUOTE2_TRUE
833 TSS_BUILD_DELEGATION_FALSE
834 TSS_BUILD_DELEGATION_TRUE
835 TSS_BUILD_SEALX_FALSE
836 TSS_BUILD_SEALX_TRUE
837 TSS_BUILD_AUDIT_FALSE
838 TSS_BUILD_AUDIT_TRUE
839 TSS_BUILD_NV_FALSE
840 TSS_BUILD_NV_TRUE
841 TSS_BUILD_ASN1_FALSE
842 TSS_BUILD_ASN1_TRUE
843 TSS_BUILD_TRANSPORT_FALSE
844 TSS_BUILD_TRANSPORT_TRUE
845 TSS_BUILD_TICK_FALSE
846 TSS_BUILD_TICK_TRUE
847 TSS_BUILD_COUNTER_FALSE
848 TSS_BUILD_COUNTER_TRUE
849 TSS_BUILD_PCR_COMP12_FALSE
850 TSS_BUILD_PCR_COMP12_TRUE
851 TSS_BUILD_DAA_FALSE
852 TSS_BUILD_DAA_TRUE
853 TSS_BUILD_TSS12_FALSE
854 TSS_BUILD_TSS12_TRUE
855 TSS_BUILD_SELFTEST_FALSE
856 TSS_BUILD_SELFTEST_TRUE
857 TSS_BUILD_PCR_EXTEND_FALSE
858 TSS_BUILD_PCR_EXTEND_TRUE
859 TSS_BUILD_KEY_FALSE
860 TSS_BUILD_KEY_TRUE
861 TSS_BUILD_MIGRATION_FALSE
862 TSS_BUILD_MIGRATION_TRUE
863 TSS_BUILD_MAINT_FALSE
864 TSS_BUILD_MAINT_TRUE
865 TSS_BUILD_CERTIFY_FALSE
866 TSS_BUILD_CERTIFY_TRUE
867 TSS_BUILD_AIK_FALSE
868 TSS_BUILD_AIK_TRUE
869 TSS_BUILD_ADMIN_FALSE
870 TSS_BUILD_ADMIN_TRUE
871 TSS_BUILD_PS_FALSE
872 TSS_BUILD_PS_TRUE
873 TSS_BUILD_EK_FALSE
874 TSS_BUILD_EK_TRUE
875 TSS_BUILD_OWN_FALSE
876 TSS_BUILD_OWN_TRUE
877 TSS_BUILD_BIND_FALSE
878 TSS_BUILD_BIND_TRUE
879 TSS_BUILD_CHANGEAUTH_FALSE
880 TSS_BUILD_CHANGEAUTH_TRUE
881 TSS_BUILD_SEAL_FALSE
882 TSS_BUILD_SEAL_TRUE
883 TSS_BUILD_PCR_COMP_FALSE
884 TSS_BUILD_PCR_COMP_TRUE
885 TSS_BUILD_QUOTE_FALSE
886 TSS_BUILD_QUOTE_TRUE
887 TSS_BUILD_SIGN_FALSE
888 TSS_BUILD_SIGN_TRUE
889 TSS_BUILD_PCR_EVENTS_FALSE
890 TSS_BUILD_PCR_EVENTS_TRUE
891 TSS_BUILD_DIR_FALSE
892 TSS_BUILD_DIR_TRUE
893 TSS_BUILD_POLICY_FALSE
894 TSS_BUILD_POLICY_TRUE
895 TSS_BUILD_CAPS_TPM_FALSE
896 TSS_BUILD_CAPS_TPM_TRUE
897 TSS_BUILD_CAPS_FALSE
898 TSS_BUILD_CAPS_TRUE
899 TSS_BUILD_RANDOM_FALSE
900 TSS_BUILD_RANDOM_TRUE
901 TSS_BUILD_GETSET_FALSE
902 TSS_BUILD_GETSET_TRUE
903 TSS_BUILD_HASH_FALSE
904 TSS_BUILD_HASH_TRUE
905 RPC
906 TCSD_DEFAULT_PORT
907 OPENSSL_UI_FALSE
908 OPENSSL_UI_TRUE
909 GTK_LIBS
910 GTK_CFLAGS
911 PKG_CONFIG
912 HAVE_GTK_FALSE
913 HAVE_GTK_TRUE
914 EGREP
915 GREP
916 CPP
917 NOUSERCHECK_FALSE
918 NOUSERCHECK_TRUE
919 CRYPTOLIB
920 CRYPTO_PACKAGE
921 am__fastdepCC_FALSE
922 am__fastdepCC_TRUE
923 CCDEPMODE
924 AMDEPBACKSLASH
925 AMDEP_FALSE
926 AMDEP_TRUE
927 am__quote
928 am__include
929 DEPDIR
930 OBJEXT
931 EXEEXT
932 ac_ct_CC
933 CPPFLAGS
934 LDFLAGS
935 CFLAGS
936 CC
937 OPENSSL_LIB_DIR
938 TCSD_LDFLAGS
939 am__untar
940 am__tar
941 AMTAR
942 am__leading_dot
943 SET_MAKE
944 AWK
945 mkdir_p
946 MKDIR_P
947 INSTALL_STRIP_PROGRAM
948 STRIP
949 install_sh
950 MAKEINFO
951 AUTOHEADER
952 AUTOMAKE
953 AUTOCONF
954 ACLOCAL
955 VERSION
956 PACKAGE
957 CYGPATH_W
958 am__isrc
959 INSTALL_DATA
960 INSTALL_SCRIPT
961 INSTALL_PROGRAM
962 target_os
963 target_vendor
964 target_cpu
965 target
966 host_os
967 host_vendor
968 host_cpu
969 host
970 build_os
971 build_vendor
972 build_cpu
973 build
974 target_alias
975 host_alias
976 build_alias
977 LIBS
978 ECHO_T
979 ECHO_N
980 ECHO_C
981 DEFS
982 mandir
983 localedir
984 libdir
985 psdir
986 pdfdir
987 dvidir
988 htmldir
989 infodir
990 docdir
991 oldincludedir
992 includedir
993 localstatedir
994 sharedstatedir
995 sysconfdir
996 datadir
997 datarootdir
998 libexecdir
999 sbindir
1000 bindir
1001 program_transform_name
1002 prefix
1003 exec_prefix
1004 PACKAGE_BUGREPORT
1005 PACKAGE_STRING
1006 PACKAGE_VERSION
1007 PACKAGE_TARNAME
1008 PACKAGE_NAME
1009 PATH_SEPARATOR
1010 SHELL'
1011 ac_subst_files=''
1012 ac_user_opts='
1013 enable_option_checking
1014 enable_debug
1015 with_openssl
1016 enable_dependency_tracking
1017 enable_gcov
1018 enable_gprof
1019 enable_strict_spec_compliance
1020 enable_usercheck
1021 with_gmp
1022 with_gui
1023 with_api
1024 enable_static
1025 enable_shared
1026 with_pic
1027 enable_fast_install
1028 with_gnu_ld
1029 enable_libtool_lock
1030 '
1031 ac_precious_vars='build_alias
1032 host_alias
1033 target_alias
1034 CC
1035 CFLAGS
1036 LDFLAGS
1037 LIBS
1038 CPPFLAGS
1039 CPP
1040 PKG_CONFIG
1041 GTK_CFLAGS
1042 GTK_LIBS'
1043
1044
1045 # Initialize some variables set by options.
1046 ac_init_help=
1047 ac_init_version=false
1048 ac_unrecognized_opts=
1049 ac_unrecognized_sep=
1050 # The variables have the same names as the options, with
1051 # dashes changed to underlines.
1052 cache_file=/dev/null
1053 exec_prefix=NONE
1054 no_create=
1055 no_recursion=
1056 prefix=NONE
1057 program_prefix=NONE
1058 program_suffix=NONE
1059 program_transform_name=s,x,x,
1060 silent=
1061 site=
1062 srcdir=
1063 verbose=
1064 x_includes=NONE
1065 x_libraries=NONE
1066
1067 # Installation directory options.
1068 # These are left unexpanded so users can "make install exec_prefix=/foo"
1069 # and all the variables that are supposed to be based on exec_prefix
1070 # by default will actually change.
1071 # Use braces instead of parens because sh, perl, etc. also accept them.
1072 # (The list follows the same order as the GNU Coding Standards.)
1073 bindir='${exec_prefix}/bin'
1074 sbindir='${exec_prefix}/sbin'
1075 libexecdir='${exec_prefix}/libexec'
1076 datarootdir='${prefix}/share'
1077 datadir='${datarootdir}'
1078 sysconfdir='${prefix}/etc'
1079 sharedstatedir='${prefix}/com'
1080 localstatedir='${prefix}/var'
1081 includedir='${prefix}/include'
1082 oldincludedir='/usr/include'
1083 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1084 infodir='${datarootdir}/info'
1085 htmldir='${docdir}'
1086 dvidir='${docdir}'
1087 pdfdir='${docdir}'
1088 psdir='${docdir}'
1089 libdir='${exec_prefix}/lib'
1090 localedir='${datarootdir}/locale'
1091 mandir='${datarootdir}/man'
1092
1093 ac_prev=
1094 ac_dashdash=
1095 for ac_option
1096 do
1097 # If the previous option needs an argument, assign it.
1098 if test -n "$ac_prev"; then
1099 eval $ac_prev=\$ac_option
1100 ac_prev=
1101 continue
1102 fi
1103
1104 case $ac_option in
1105 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1106 *) ac_optarg=yes ;;
1107 esac
1108
1109 # Accept the important Cygnus configure options, so we can diagnose typos.
1110
1111 case $ac_dashdash$ac_option in
1112 --)
1113 ac_dashdash=yes ;;
1114
1115 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1116 ac_prev=bindir ;;
1117 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1118 bindir=$ac_optarg ;;
1119
1120 -build | --build | --buil | --bui | --bu)
1121 ac_prev=build_alias ;;
1122 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1123 build_alias=$ac_optarg ;;
1124
1125 -cache-file | --cache-file | --cache-fil | --cache-fi \
1126 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1127 ac_prev=cache_file ;;
1128 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1129 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1130 cache_file=$ac_optarg ;;
1131
1132 --config-cache | -C)
1133 cache_file=config.cache ;;
1134
1135 -datadir | --datadir | --datadi | --datad)
1136 ac_prev=datadir ;;
1137 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1138 datadir=$ac_optarg ;;
1139
1140 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1141 | --dataroo | --dataro | --datar)
1142 ac_prev=datarootdir ;;
1143 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1144 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1145 datarootdir=$ac_optarg ;;
1146
1147 -disable-* | --disable-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "enable_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval enable_$ac_useropt=no ;;
1163
1164 -docdir | --docdir | --docdi | --doc | --do)
1165 ac_prev=docdir ;;
1166 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1167 docdir=$ac_optarg ;;
1168
1169 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1170 ac_prev=dvidir ;;
1171 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1172 dvidir=$ac_optarg ;;
1173
1174 -enable-* | --enable-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1179 { (exit 1); exit 1; }; }
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184 "enable_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval enable_$ac_useropt=\$ac_optarg ;;
1190
1191 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1192 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1193 | --exec | --exe | --ex)
1194 ac_prev=exec_prefix ;;
1195 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1196 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1197 | --exec=* | --exe=* | --ex=*)
1198 exec_prefix=$ac_optarg ;;
1199
1200 -gas | --gas | --ga | --g)
1201 # Obsolete; use --with-gas.
1202 with_gas=yes ;;
1203
1204 -help | --help | --hel | --he | -h)
1205 ac_init_help=long ;;
1206 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1207 ac_init_help=recursive ;;
1208 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1209 ac_init_help=short ;;
1210
1211 -host | --host | --hos | --ho)
1212 ac_prev=host_alias ;;
1213 -host=* | --host=* | --hos=* | --ho=*)
1214 host_alias=$ac_optarg ;;
1215
1216 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1217 ac_prev=htmldir ;;
1218 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1219 | --ht=*)
1220 htmldir=$ac_optarg ;;
1221
1222 -includedir | --includedir | --includedi | --included | --include \
1223 | --includ | --inclu | --incl | --inc)
1224 ac_prev=includedir ;;
1225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1226 | --includ=* | --inclu=* | --incl=* | --inc=*)
1227 includedir=$ac_optarg ;;
1228
1229 -infodir | --infodir | --infodi | --infod | --info | --inf)
1230 ac_prev=infodir ;;
1231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1232 infodir=$ac_optarg ;;
1233
1234 -libdir | --libdir | --libdi | --libd)
1235 ac_prev=libdir ;;
1236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1237 libdir=$ac_optarg ;;
1238
1239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1240 | --libexe | --libex | --libe)
1241 ac_prev=libexecdir ;;
1242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1243 | --libexe=* | --libex=* | --libe=*)
1244 libexecdir=$ac_optarg ;;
1245
1246 -localedir | --localedir | --localedi | --localed | --locale)
1247 ac_prev=localedir ;;
1248 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1249 localedir=$ac_optarg ;;
1250
1251 -localstatedir | --localstatedir | --localstatedi | --localstated \
1252 | --localstate | --localstat | --localsta | --localst | --locals)
1253 ac_prev=localstatedir ;;
1254 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1255 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1256 localstatedir=$ac_optarg ;;
1257
1258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1259 ac_prev=mandir ;;
1260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1261 mandir=$ac_optarg ;;
1262
1263 -nfp | --nfp | --nf)
1264 # Obsolete; use --without-fp.
1265 with_fp=no ;;
1266
1267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1268 | --no-cr | --no-c | -n)
1269 no_create=yes ;;
1270
1271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1273 no_recursion=yes ;;
1274
1275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1277 | --oldin | --oldi | --old | --ol | --o)
1278 ac_prev=oldincludedir ;;
1279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1282 oldincludedir=$ac_optarg ;;
1283
1284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1285 ac_prev=prefix ;;
1286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1287 prefix=$ac_optarg ;;
1288
1289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1290 | --program-pre | --program-pr | --program-p)
1291 ac_prev=program_prefix ;;
1292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1294 program_prefix=$ac_optarg ;;
1295
1296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1297 | --program-suf | --program-su | --program-s)
1298 ac_prev=program_suffix ;;
1299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1301 program_suffix=$ac_optarg ;;
1302
1303 -program-transform-name | --program-transform-name \
1304 | --program-transform-nam | --program-transform-na \
1305 | --program-transform-n | --program-transform- \
1306 | --program-transform | --program-transfor \
1307 | --program-transfo | --program-transf \
1308 | --program-trans | --program-tran \
1309 | --progr-tra | --program-tr | --program-t)
1310 ac_prev=program_transform_name ;;
1311 -program-transform-name=* | --program-transform-name=* \
1312 | --program-transform-nam=* | --program-transform-na=* \
1313 | --program-transform-n=* | --program-transform-=* \
1314 | --program-transform=* | --program-transfor=* \
1315 | --program-transfo=* | --program-transf=* \
1316 | --program-trans=* | --program-tran=* \
1317 | --progr-tra=* | --program-tr=* | --program-t=*)
1318 program_transform_name=$ac_optarg ;;
1319
1320 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1321 ac_prev=pdfdir ;;
1322 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1323 pdfdir=$ac_optarg ;;
1324
1325 -psdir | --psdir | --psdi | --psd | --ps)
1326 ac_prev=psdir ;;
1327 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1328 psdir=$ac_optarg ;;
1329
1330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1331 | -silent | --silent | --silen | --sile | --sil)
1332 silent=yes ;;
1333
1334 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1335 ac_prev=sbindir ;;
1336 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1337 | --sbi=* | --sb=*)
1338 sbindir=$ac_optarg ;;
1339
1340 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1341 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1342 | --sharedst | --shareds | --shared | --share | --shar \
1343 | --sha | --sh)
1344 ac_prev=sharedstatedir ;;
1345 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1346 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1347 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1348 | --sha=* | --sh=*)
1349 sharedstatedir=$ac_optarg ;;
1350
1351 -site | --site | --sit)
1352 ac_prev=site ;;
1353 -site=* | --site=* | --sit=*)
1354 site=$ac_optarg ;;
1355
1356 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1357 ac_prev=srcdir ;;
1358 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1359 srcdir=$ac_optarg ;;
1360
1361 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1362 | --syscon | --sysco | --sysc | --sys | --sy)
1363 ac_prev=sysconfdir ;;
1364 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1365 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1366 sysconfdir=$ac_optarg ;;
1367
1368 -target | --target | --targe | --targ | --tar | --ta | --t)
1369 ac_prev=target_alias ;;
1370 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1371 target_alias=$ac_optarg ;;
1372
1373 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1374 verbose=yes ;;
1375
1376 -version | --version | --versio | --versi | --vers | -V)
1377 ac_init_version=: ;;
1378
1379 -with-* | --with-*)
1380 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1383 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1384 { (exit 1); exit 1; }; }
1385 ac_useropt_orig=$ac_useropt
1386 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1387 case $ac_user_opts in
1388 *"
1389 "with_$ac_useropt"
1390 "*) ;;
1391 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1392 ac_unrecognized_sep=', ';;
1393 esac
1394 eval with_$ac_useropt=\$ac_optarg ;;
1395
1396 -without-* | --without-*)
1397 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1400 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1401 { (exit 1); exit 1; }; }
1402 ac_useropt_orig=$ac_useropt
1403 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1404 case $ac_user_opts in
1405 *"
1406 "with_$ac_useropt"
1407 "*) ;;
1408 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1409 ac_unrecognized_sep=', ';;
1410 esac
1411 eval with_$ac_useropt=no ;;
1412
1413 --x)
1414 # Obsolete; use --with-x.
1415 with_x=yes ;;
1416
1417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1418 | --x-incl | --x-inc | --x-in | --x-i)
1419 ac_prev=x_includes ;;
1420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1422 x_includes=$ac_optarg ;;
1423
1424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1426 ac_prev=x_libraries ;;
1427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1429 x_libraries=$ac_optarg ;;
1430
1431 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1432 Try \`$0 --help' for more information." >&2
1433 { (exit 1); exit 1; }; }
1434 ;;
1435
1436 *=*)
1437 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1438 # Reject names that are not valid shell variable names.
1439 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1440 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1441 { (exit 1); exit 1; }; }
1442 eval $ac_envvar=\$ac_optarg
1443 export $ac_envvar ;;
1444
1445 *)
1446 # FIXME: should be removed in autoconf 3.0.
1447 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1448 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1449 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1450 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1451 ;;
1452
1453 esac
1454 done
1455
1456 if test -n "$ac_prev"; then
1457 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1458 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1459 { (exit 1); exit 1; }; }
1460 fi
1461
1462 if test -n "$ac_unrecognized_opts"; then
1463 case $enable_option_checking in
1464 no) ;;
1465 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1466 { (exit 1); exit 1; }; } ;;
1467 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1468 esac
1469 fi
1470
1471 # Check all directory arguments for consistency.
1472 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1473 datadir sysconfdir sharedstatedir localstatedir includedir \
1474 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1475 libdir localedir mandir
1476 do
1477 eval ac_val=\$$ac_var
1478 # Remove trailing slashes.
1479 case $ac_val in
1480 */ )
1481 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1482 eval $ac_var=\$ac_val;;
1483 esac
1484 # Be sure to have absolute directory names.
1485 case $ac_val in
1486 [\\/$]* | ?:[\\/]* ) continue;;
1487 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1488 esac
1489 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1490 { (exit 1); exit 1; }; }
1491 done
1492
1493 # There might be people who depend on the old broken behavior: `$host'
1494 # used to hold the argument of --host etc.
1495 # FIXME: To remove some day.
1496 build=$build_alias
1497 host=$host_alias
1498 target=$target_alias
1499
1500 # FIXME: To remove some day.
1501 if test "x$host_alias" != x; then
1502 if test "x$build_alias" = x; then
1503 cross_compiling=maybe
1504 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1505 If a cross compiler is detected then cross compile mode will be used." >&2
1506 elif test "x$build_alias" != "x$host_alias"; then
1507 cross_compiling=yes
1508 fi
1509 fi
1510
1511 ac_tool_prefix=
1512 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1513
1514 test "$silent" = yes && exec 6>/dev/null
1515
1516
1517 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1518 ac_ls_di=`ls -di .` &&
1519 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1520 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1521 { (exit 1); exit 1; }; }
1522 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1523 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1524 { (exit 1); exit 1; }; }
1525
1526
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 s//\1/
1539 q
1540 }
1541 /^X\(\/\/\)[^/].*/{
1542 s//\1/
1543 q
1544 }
1545 /^X\(\/\/\)$/{
1546 s//\1/
1547 q
1548 }
1549 /^X\(\/\).*/{
1550 s//\1/
1551 q
1552 }
1553 s/.*/./; q'`
1554 srcdir=$ac_confdir
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556 srcdir=..
1557 fi
1558 else
1559 ac_srcdir_defaulted=no
1560 fi
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1564 { (exit 1); exit 1; }; }
1565 fi
1566 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1567 ac_abs_confdir=`(
1568 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1569 { (exit 1); exit 1; }; }
1570 pwd)`
1571 # When building in place, set srcdir=.
1572 if test "$ac_abs_confdir" = "$ac_pwd"; then
1573 srcdir=.
1574 fi
1575 # Remove unnecessary trailing slashes from srcdir.
1576 # Double slashes in file names in object file debugging info
1577 # mess up M-x gdb in Emacs.
1578 case $srcdir in
1579 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1580 esac
1581 for ac_var in $ac_precious_vars; do
1582 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_env_${ac_var}_value=\$${ac_var}
1584 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1585 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1586 done
1587
1588 #
1589 # Report the --help message.
1590 #
1591 if test "$ac_init_help" = "long"; then
1592 # Omit some internal or obsolete options to make the list less imposing.
1593 # This message is too long to be a string in the A/UX 3.1 sh.
1594 cat <<_ACEOF
1595 \`configure' configures trousers 0.3.14 to adapt to many kinds of systems.
1596
1597 Usage: $0 [OPTION]... [VAR=VALUE]...
1598
1599 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1600 VAR=VALUE. See below for descriptions of some of the useful variables.
1601
1602 Defaults for the options are specified in brackets.
1603
1604 Configuration:
1605 -h, --help display this help and exit
1606 --help=short display options specific to this package
1607 --help=recursive display the short help of all the included packages
1608 -V, --version display version information and exit
1609 -q, --quiet, --silent do not print \`checking...' messages
1610 --cache-file=FILE cache test results in FILE [disabled]
1611 -C, --config-cache alias for \`--cache-file=config.cache'
1612 -n, --no-create do not create output files
1613 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1614
1615 Installation directories:
1616 --prefix=PREFIX install architecture-independent files in PREFIX
1617 [$ac_default_prefix]
1618 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1619 [PREFIX]
1620
1621 By default, \`make install' will install all the files in
1622 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1623 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1624 for instance \`--prefix=\$HOME'.
1625
1626 For better control, use the options below.
1627
1628 Fine tuning of the installation directories:
1629 --bindir=DIR user executables [EPREFIX/bin]
1630 --sbindir=DIR system admin executables [EPREFIX/sbin]
1631 --libexecdir=DIR program executables [EPREFIX/libexec]
1632 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1633 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1634 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1635 --libdir=DIR object code libraries [EPREFIX/lib]
1636 --includedir=DIR C header files [PREFIX/include]
1637 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1638 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1639 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1640 --infodir=DIR info documentation [DATAROOTDIR/info]
1641 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1642 --mandir=DIR man documentation [DATAROOTDIR/man]
1643 --docdir=DIR documentation root [DATAROOTDIR/doc/trousers]
1644 --htmldir=DIR html documentation [DOCDIR]
1645 --dvidir=DIR dvi documentation [DOCDIR]
1646 --pdfdir=DIR pdf documentation [DOCDIR]
1647 --psdir=DIR ps documentation [DOCDIR]
1648 _ACEOF
1649
1650 cat <<\_ACEOF
1651
1652 Program names:
1653 --program-prefix=PREFIX prepend PREFIX to installed program names
1654 --program-suffix=SUFFIX append SUFFIX to installed program names
1655 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1656
1657 System types:
1658 --build=BUILD configure for building on BUILD [guessed]
1659 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1660 --target=TARGET configure for building compilers for TARGET [HOST]
1661 _ACEOF
1662 fi
1663
1664 if test -n "$ac_init_help"; then
1665 case $ac_init_help in
1666 short | recursive ) echo "Configuration of trousers 0.3.14:";;
1667 esac
1668 cat <<\_ACEOF
1669
1670 Optional Features:
1671 --disable-option-checking ignore unrecognized --enable/--with options
1672 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1673 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1674 --enable-debug turn on all trousers debugging flags [default=off]
1675 --disable-dependency-tracking speeds up one-time build
1676 --enable-dependency-tracking do not reject slow dependency extractors
1677 --enable-gcov turn on gcov code coverage flags [default=off]
1678 --enable-gprof enable profiling with gprof [default=off]
1679 --enable-strict-spec-compliance
1680 build TrouSerS as strictly spec compliant
1681 [default=off]
1682 --disable-usercheck build TrouSerS without checking and setting of
1683 user/group tss [default=on] (Caution: This is
1684 intended for development purposes only.)
1685 --enable-static[=PKGS] build static libraries [default=no]
1686 --enable-shared[=PKGS] build shared libraries [default=yes]
1687 --enable-fast-install[=PKGS]
1688 optimize for fast installation [default=yes]
1689 --disable-libtool-lock avoid locking (might break parallel builds)
1690
1691 Optional Packages:
1692 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1693 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1694 --with-openssl=PATH Location of openssl libs/includes
1695 --with-gmp build TrouSerS with the GMP math lib (used in DAA)
1696 --with-gui type of gui popup (gtk/none) [default=gtk]
1697 --with-api Version of the TSS API to build [default=1.2]
1698 --with-pic try to use only PIC/non-PIC objects [default=use
1699 both]
1700 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1701
1702 Some influential environment variables:
1703 CC C compiler command
1704 CFLAGS C compiler flags
1705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1706 nonstandard directory <lib dir>
1707 LIBS libraries to pass to the linker, e.g. -l<library>
1708 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1709 you have headers in a nonstandard directory <include dir>
1710 CPP C preprocessor
1711 PKG_CONFIG path to pkg-config utility
1712 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1713 GTK_LIBS linker flags for GTK, overriding pkg-config
1714
1715 Use these variables to override the choices made by `configure' or to help
1716 it to find libraries and programs with nonstandard names/locations.
1717
1718 Report bugs to <trousers-tech@lists.sf.net>.
1719 _ACEOF
1720 ac_status=$?
1721 fi
1722
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728 continue
1729 ac_builddir=.
1730
1731 case "$ac_dir" in
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *)
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 esac ;;
1741 esac
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1746
1747 case $srcdir in
1748 .) # We are building in place.
1749 ac_srcdir=.
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
1753 ac_srcdir=$srcdir$ac_dir_suffix;
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1756 *) # Relative name.
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1760 esac
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1762
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1766 echo &&
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1771 else
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773 fi || ac_status=$?
1774 cd "$ac_pwd" || { ac_status=$?; break; }
1775 done
1776 fi
1777
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1780 cat <<\_ACEOF
1781 trousers configure 0.3.14
1782 generated by GNU Autoconf 2.63
1783
1784 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1785 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1786 This configure script is free software; the Free Software Foundation
1787 gives unlimited permission to copy, distribute and modify it.
1788 _ACEOF
1789 exit
1790 fi
1791 cat >config.log <<_ACEOF
1792 This file contains any messages produced by compilers while
1793 running configure, to aid debugging if configure makes a mistake.
1794
1795 It was created by trousers $as_me 0.3.14, which was
1796 generated by GNU Autoconf 2.63. Invocation command line was
1797
1798 $ $0 $@
1799
1800 _ACEOF
1801 exec 5>>config.log
1802 {
1803 cat <<_ASUNAME
1804 ## --------- ##
1805 ## Platform. ##
1806 ## --------- ##
1807
1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1813
1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1816
1817 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1818 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1821 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1822 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1823 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1824
1825 _ASUNAME
1826
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1829 do
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 $as_echo "PATH: $as_dir"
1833 done
1834 IFS=$as_save_IFS
1835
1836 } >&5
1837
1838 cat >&5 <<_ACEOF
1839
1840
1841 ## ----------- ##
1842 ## Core tests. ##
1843 ## ----------- ##
1844
1845 _ACEOF
1846
1847
1848 # Keep a trace of the command line.
1849 # Strip out --no-create and --no-recursion so they do not pile up.
1850 # Strip out --silent because we don't want to record it for future runs.
1851 # Also quote any args containing shell meta-characters.
1852 # Make two passes to allow for proper duplicate-argument suppression.
1853 ac_configure_args=
1854 ac_configure_args0=
1855 ac_configure_args1=
1856 ac_must_keep_next=false
1857 for ac_pass in 1 2
1858 do
1859 for ac_arg
1860 do
1861 case $ac_arg in
1862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864 | -silent | --silent | --silen | --sile | --sil)
1865 continue ;;
1866 *\'*)
1867 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 esac
1869 case $ac_pass in
1870 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1871 2)
1872 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1873 if test $ac_must_keep_next = true; then
1874 ac_must_keep_next=false # Got value, back to normal.
1875 else
1876 case $ac_arg in
1877 *=* | --config-cache | -C | -disable-* | --disable-* \
1878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880 | -with-* | --with-* | -without-* | --without-* | --x)
1881 case "$ac_configure_args0 " in
1882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883 esac
1884 ;;
1885 -* ) ac_must_keep_next=true ;;
1886 esac
1887 fi
1888 ac_configure_args="$ac_configure_args '$ac_arg'"
1889 ;;
1890 esac
1891 done
1892 done
1893 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1894 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1895
1896 # When interrupted or exit'd, cleanup temporary files, and complete
1897 # config.log. We remove comments because anyway the quotes in there
1898 # would cause problems or look ugly.
1899 # WARNING: Use '\'' to represent an apostrophe within the trap.
1900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901 trap 'exit_status=$?
1902 # Save into config.log some information that might help in debugging.
1903 {
1904 echo
1905
1906 cat <<\_ASBOX
1907 ## ---------------- ##
1908 ## Cache variables. ##
1909 ## ---------------- ##
1910 _ASBOX
1911 echo
1912 # The following way of writing the cache mishandles newlines in values,
1913 (
1914 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1915 eval ac_val=\$$ac_var
1916 case $ac_val in #(
1917 *${as_nl}*)
1918 case $ac_var in #(
1919 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1920 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1921 esac
1922 case $ac_var in #(
1923 _ | IFS | as_nl) ;; #(
1924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1925 *) $as_unset $ac_var ;;
1926 esac ;;
1927 esac
1928 done
1929 (set) 2>&1 |
1930 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1931 *${as_nl}ac_space=\ *)
1932 sed -n \
1933 "s/'\''/'\''\\\\'\'''\''/g;
1934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1935 ;; #(
1936 *)
1937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1938 ;;
1939 esac |
1940 sort
1941 )
1942 echo
1943
1944 cat <<\_ASBOX
1945 ## ----------------- ##
1946 ## Output variables. ##
1947 ## ----------------- ##
1948 _ASBOX
1949 echo
1950 for ac_var in $ac_subst_vars
1951 do
1952 eval ac_val=\$$ac_var
1953 case $ac_val in
1954 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1955 esac
1956 $as_echo "$ac_var='\''$ac_val'\''"
1957 done | sort
1958 echo
1959
1960 if test -n "$ac_subst_files"; then
1961 cat <<\_ASBOX
1962 ## ------------------- ##
1963 ## File substitutions. ##
1964 ## ------------------- ##
1965 _ASBOX
1966 echo
1967 for ac_var in $ac_subst_files
1968 do
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
1974 done | sort
1975 echo
1976 fi
1977
1978 if test -s confdefs.h; then
1979 cat <<\_ASBOX
1980 ## ----------- ##
1981 ## confdefs.h. ##
1982 ## ----------- ##
1983 _ASBOX
1984 echo
1985 cat confdefs.h
1986 echo
1987 fi
1988 test "$ac_signal" != 0 &&
1989 $as_echo "$as_me: caught signal $ac_signal"
1990 $as_echo "$as_me: exit $exit_status"
1991 } >&5
1992 rm -f core *.core core.conftest.* &&
1993 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1994 exit $exit_status
1995 ' 0
1996 for ac_signal in 1 2 13 15; do
1997 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1998 done
1999 ac_signal=0
2000
2001 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2002 rm -f -r conftest* confdefs.h
2003
2004 # Predefined preprocessor variables.
2005
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_NAME "$PACKAGE_NAME"
2008 _ACEOF
2009
2010
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2013 _ACEOF
2014
2015
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2018 _ACEOF
2019
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_STRING "$PACKAGE_STRING"
2023 _ACEOF
2024
2025
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2028 _ACEOF
2029
2030
2031 # Let the site file select an alternate cache file if it wants to.
2032 # Prefer an explicitly selected file to automatically selected ones.
2033 ac_site_file1=NONE
2034 ac_site_file2=NONE
2035 if test -n "$CONFIG_SITE"; then
2036 ac_site_file1=$CONFIG_SITE
2037 elif test "x$prefix" != xNONE; then
2038 ac_site_file1=$prefix/share/config.site
2039 ac_site_file2=$prefix/etc/config.site
2040 else
2041 ac_site_file1=$ac_default_prefix/share/config.site
2042 ac_site_file2=$ac_default_prefix/etc/config.site
2043 fi
2044 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2045 do
2046 test "x$ac_site_file" = xNONE && continue
2047 if test -r "$ac_site_file"; then
2048 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2049 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2050 sed 's/^/| /' "$ac_site_file" >&5
2051 . "$ac_site_file"
2052 fi
2053 done
2054
2055 if test -r "$cache_file"; then
2056 # Some versions of bash will fail to source /dev/null (special
2057 # files actually), so we avoid doing that.
2058 if test -f "$cache_file"; then
2059 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2060 $as_echo "$as_me: loading cache $cache_file" >&6;}
2061 case $cache_file in
2062 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2063 *) . "./$cache_file";;
2064 esac
2065 fi
2066 else
2067 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2068 $as_echo "$as_me: creating cache $cache_file" >&6;}
2069 >$cache_file
2070 fi
2071
2072 # Check that the precious variables saved in the cache have kept the same
2073 # value.
2074 ac_cache_corrupted=false
2075 for ac_var in $ac_precious_vars; do
2076 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2077 eval ac_new_set=\$ac_env_${ac_var}_set
2078 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2079 eval ac_new_val=\$ac_env_${ac_var}_value
2080 case $ac_old_set,$ac_new_set in
2081 set,)
2082 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2083 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2084 ac_cache_corrupted=: ;;
2085 ,set)
2086 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2087 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2088 ac_cache_corrupted=: ;;
2089 ,);;
2090 *)
2091 if test "x$ac_old_val" != "x$ac_new_val"; then
2092 # differences in whitespace do not lead to failure.
2093 ac_old_val_w=`echo x $ac_old_val`
2094 ac_new_val_w=`echo x $ac_new_val`
2095 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2096 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2097 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2098 ac_cache_corrupted=:
2099 else
2100 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2101 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2102 eval $ac_var=\$ac_old_val
2103 fi
2104 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2105 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2106 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2107 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2108 fi;;
2109 esac
2110 # Pass precious variables to config.status.
2111 if test "$ac_new_set" = set; then
2112 case $ac_new_val in
2113 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2114 *) ac_arg=$ac_var=$ac_new_val ;;
2115 esac
2116 case " $ac_configure_args " in
2117 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2118 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2119 esac
2120 fi
2121 done
2122 if $ac_cache_corrupted; then
2123 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2126 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2127 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2128 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2129 { (exit 1); exit 1; }; }
2130 fi
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156 ac_ext=c
2157 ac_cpp='$CPP $CPPFLAGS'
2158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2161
2162
2163
2164 TSS_SPEC_MAJOR=1
2165 TSS_SPEC_MINOR=2
2166 TSS_VER_MAJOR=0
2167 TSS_VER_MINOR=3
2168
2169 # compute $target
2170 ac_aux_dir=
2171 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2172 if test -f "$ac_dir/install-sh"; then
2173 ac_aux_dir=$ac_dir
2174 ac_install_sh="$ac_aux_dir/install-sh -c"
2175 break
2176 elif test -f "$ac_dir/install.sh"; then
2177 ac_aux_dir=$ac_dir
2178 ac_install_sh="$ac_aux_dir/install.sh -c"
2179 break
2180 elif test -f "$ac_dir/shtool"; then
2181 ac_aux_dir=$ac_dir
2182 ac_install_sh="$ac_aux_dir/shtool install -c"
2183 break
2184 fi
2185 done
2186 if test -z "$ac_aux_dir"; then
2187 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2188 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2189 { (exit 1); exit 1; }; }
2190 fi
2191
2192 # These three variables are undocumented and unsupported,
2193 # and are intended to be withdrawn in a future Autoconf release.
2194 # They can cause serious problems if a builder's source tree is in a directory
2195 # whose full name contains unusual characters.
2196 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2197 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2198 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2199
2200
2201 # Make sure we can run config.sub.
2202 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2203 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2204 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2205 { (exit 1); exit 1; }; }
2206
2207 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2208 $as_echo_n "checking build system type... " >&6; }
2209 if test "${ac_cv_build+set}" = set; then
2210 $as_echo_n "(cached) " >&6
2211 else
2212 ac_build_alias=$build_alias
2213 test "x$ac_build_alias" = x &&
2214 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2215 test "x$ac_build_alias" = x &&
2216 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2217 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2218 { (exit 1); exit 1; }; }
2219 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2220 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2221 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2222 { (exit 1); exit 1; }; }
2223
2224 fi
2225 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2226 $as_echo "$ac_cv_build" >&6; }
2227 case $ac_cv_build in
2228 *-*-*) ;;
2229 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2230 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2231 { (exit 1); exit 1; }; };;
2232 esac
2233 build=$ac_cv_build
2234 ac_save_IFS=$IFS; IFS='-'
2235 set x $ac_cv_build
2236 shift
2237 build_cpu=$1
2238 build_vendor=$2
2239 shift; shift
2240 # Remember, the first character of IFS is used to create $*,
2241 # except with old shells:
2242 build_os=$*
2243 IFS=$ac_save_IFS
2244 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2245
2246
2247 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2248 $as_echo_n "checking host system type... " >&6; }
2249 if test "${ac_cv_host+set}" = set; then
2250 $as_echo_n "(cached) " >&6
2251 else
2252 if test "x$host_alias" = x; then
2253 ac_cv_host=$ac_cv_build
2254 else
2255 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2256 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2257 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2258 { (exit 1); exit 1; }; }
2259 fi
2260
2261 fi
2262 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2263 $as_echo "$ac_cv_host" >&6; }
2264 case $ac_cv_host in
2265 *-*-*) ;;
2266 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2267 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2268 { (exit 1); exit 1; }; };;
2269 esac
2270 host=$ac_cv_host
2271 ac_save_IFS=$IFS; IFS='-'
2272 set x $ac_cv_host
2273 shift
2274 host_cpu=$1
2275 host_vendor=$2
2276 shift; shift
2277 # Remember, the first character of IFS is used to create $*,
2278 # except with old shells:
2279 host_os=$*
2280 IFS=$ac_save_IFS
2281 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2282
2283
2284 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2285 $as_echo_n "checking target system type... " >&6; }
2286 if test "${ac_cv_target+set}" = set; then
2287 $as_echo_n "(cached) " >&6
2288 else
2289 if test "x$target_alias" = x; then
2290 ac_cv_target=$ac_cv_host
2291 else
2292 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2293 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2294 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2295 { (exit 1); exit 1; }; }
2296 fi
2297
2298 fi
2299 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2300 $as_echo "$ac_cv_target" >&6; }
2301 case $ac_cv_target in
2302 *-*-*) ;;
2303 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2304 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2305 { (exit 1); exit 1; }; };;
2306 esac
2307 target=$ac_cv_target
2308 ac_save_IFS=$IFS; IFS='-'
2309 set x $ac_cv_target
2310 shift
2311 target_cpu=$1
2312 target_vendor=$2
2313 shift; shift
2314 # Remember, the first character of IFS is used to create $*,
2315 # except with old shells:
2316 target_os=$*
2317 IFS=$ac_save_IFS
2318 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2319
2320
2321 # The aliases save the names the user supplied, while $host etc.
2322 # will get canonicalized.
2323 test -n "$target_alias" &&
2324 test "$program_prefix$program_suffix$program_transform_name" = \
2325 NONENONEs,x,x, &&
2326 program_prefix=${target_alias}-
2327 am__api_version='1.11'
2328
2329 # Find a good install program. We prefer a C program (faster),
2330 # so one script is as good as another. But avoid the broken or
2331 # incompatible versions:
2332 # SysV /etc/install, /usr/sbin/install
2333 # SunOS /usr/etc/install
2334 # IRIX /sbin/install
2335 # AIX /bin/install
2336 # AmigaOS /C/install, which installs bootblocks on floppy discs
2337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2340 # OS/2's system install, which has a completely different semantic
2341 # ./install, which can be erroneously created by make from ./install.sh.
2342 # Reject install programs that cannot install multiple files.
2343 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2344 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2345 if test -z "$INSTALL"; then
2346 if test "${ac_cv_path_install+set}" = set; then
2347 $as_echo_n "(cached) " >&6
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 # Account for people who put trailing slashes in PATH elements.
2355 case $as_dir/ in
2356 ./ | .// | /cC/* | \
2357 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2358 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2359 /usr/ucb/* ) ;;
2360 *)
2361 # OSF1 and SCO ODT 3.0 have their own names for install.
2362 # Don't use installbsd from OSF since it installs stuff as root
2363 # by default.
2364 for ac_prog in ginstall scoinst install; do
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2367 if test $ac_prog = install &&
2368 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369 # AIX install. It has an incompatible calling convention.
2370 :
2371 elif test $ac_prog = install &&
2372 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2373 # program-specific install script used by HP pwplus--don't use.
2374 :
2375 else
2376 rm -rf conftest.one conftest.two conftest.dir
2377 echo one > conftest.one
2378 echo two > conftest.two
2379 mkdir conftest.dir
2380 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2381 test -s conftest.one && test -s conftest.two &&
2382 test -s conftest.dir/conftest.one &&
2383 test -s conftest.dir/conftest.two
2384 then
2385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2386 break 3
2387 fi
2388 fi
2389 fi
2390 done
2391 done
2392 ;;
2393 esac
2394
2395 done
2396 IFS=$as_save_IFS
2397
2398 rm -rf conftest.one conftest.two conftest.dir
2399
2400 fi
2401 if test "${ac_cv_path_install+set}" = set; then
2402 INSTALL=$ac_cv_path_install
2403 else
2404 # As a last resort, use the slow shell script. Don't cache a
2405 # value for INSTALL within a source directory, because that will
2406 # break other packages using the cache if that directory is
2407 # removed, or if the value is a relative name.
2408 INSTALL=$ac_install_sh
2409 fi
2410 fi
2411 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2412 $as_echo "$INSTALL" >&6; }
2413
2414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2415 # It thinks the first close brace ends the variable substitution.
2416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2417
2418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2419
2420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2421
2422 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2423 $as_echo_n "checking whether build environment is sane... " >&6; }
2424 # Just in case
2425 sleep 1
2426 echo timestamp > conftest.file
2427 # Reject unsafe characters in $srcdir or the absolute working directory
2428 # name. Accept space and tab only in the latter.
2429 am_lf='
2430 '
2431 case `pwd` in
2432 *[\\\"\#\$\&\'\`$am_lf]*)
2433 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2434 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2435 { (exit 1); exit 1; }; };;
2436 esac
2437 case $srcdir in
2438 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2439 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2440 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2441 { (exit 1); exit 1; }; };;
2442 esac
2443
2444 # Do `set' in a subshell so we don't clobber the current shell's
2445 # arguments. Must try -L first in case configure is actually a
2446 # symlink; some systems play weird games with the mod time of symlinks
2447 # (eg FreeBSD returns the mod time of the symlink's containing
2448 # directory).
2449 if (
2450 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2451 if test "$*" = "X"; then
2452 # -L didn't work.
2453 set X `ls -t "$srcdir/configure" conftest.file`
2454 fi
2455 rm -f conftest.file
2456 if test "$*" != "X $srcdir/configure conftest.file" \
2457 && test "$*" != "X conftest.file $srcdir/configure"; then
2458
2459 # If neither matched, then we have a broken ls. This can happen
2460 # if, for instance, CONFIG_SHELL is bash and it inherits a
2461 # broken ls alias from the environment. This has actually
2462 # happened. Such a system could not be considered "sane".
2463 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2464 alias in your environment" >&5
2465 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2466 alias in your environment" >&2;}
2467 { (exit 1); exit 1; }; }
2468 fi
2469
2470 test "$2" = conftest.file
2471 )
2472 then
2473 # Ok.
2474 :
2475 else
2476 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2477 Check your system clock" >&5
2478 $as_echo "$as_me: error: newly created file is older than distributed files!
2479 Check your system clock" >&2;}
2480 { (exit 1); exit 1; }; }
2481 fi
2482 { $as_echo "$as_me:$LINENO: result: yes" >&5
2483 $as_echo "yes" >&6; }
2484 test "$program_prefix" != NONE &&
2485 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2486 # Use a double $ so make ignores it.
2487 test "$program_suffix" != NONE &&
2488 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2489 # Double any \ or $.
2490 # By default was `s,x,x', remove it if useless.
2491 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2492 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2493
2494 # expand $ac_aux_dir to an absolute path
2495 am_aux_dir=`cd $ac_aux_dir && pwd`
2496
2497 if test x"${MISSING+set}" != xset; then
2498 case $am_aux_dir in
2499 *\ * | *\ *)
2500 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2501 *)
2502 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2503 esac
2504 fi
2505 # Use eval to expand $SHELL
2506 if eval "$MISSING --run true"; then
2507 am_missing_run="$MISSING --run "
2508 else
2509 am_missing_run=
2510 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2511 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2512 fi
2513
2514 if test x"${install_sh}" != xset; then
2515 case $am_aux_dir in
2516 *\ * | *\ *)
2517 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2518 *)
2519 install_sh="\${SHELL} $am_aux_dir/install-sh"
2520 esac
2521 fi
2522
2523 # Installed binaries are usually stripped using `strip' when the user
2524 # run `make install-strip'. However `strip' might not be the right
2525 # tool to use in cross-compilation environments, therefore Automake
2526 # will honor the `STRIP' environment variable to overrule this program.
2527 if test "$cross_compiling" != no; then
2528 if test -n "$ac_tool_prefix"; then
2529 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}strip; ac_word=$2
2531 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if test "${ac_cv_prog_STRIP+set}" = set; then
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test -n "$STRIP"; then
2537 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550 done
2551 done
2552 IFS=$as_save_IFS
2553
2554 fi
2555 fi
2556 STRIP=$ac_cv_prog_STRIP
2557 if test -n "$STRIP"; then
2558 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2559 $as_echo "$STRIP" >&6; }
2560 else
2561 { $as_echo "$as_me:$LINENO: result: no" >&5
2562 $as_echo "no" >&6; }
2563 fi
2564
2565
2566 fi
2567 if test -z "$ac_cv_prog_STRIP"; then
2568 ac_ct_STRIP=$STRIP
2569 # Extract the first word of "strip", so it can be a program name with args.
2570 set dummy strip; ac_word=$2
2571 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$ac_ct_STRIP"; then
2577 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_ac_ct_STRIP="strip"
2587 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2597 if test -n "$ac_ct_STRIP"; then
2598 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2599 $as_echo "$ac_ct_STRIP" >&6; }
2600 else
2601 { $as_echo "$as_me:$LINENO: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605 if test "x$ac_ct_STRIP" = x; then
2606 STRIP=":"
2607 else
2608 case $cross_compiling:$ac_tool_warned in
2609 yes:)
2610 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612 ac_tool_warned=yes ;;
2613 esac
2614 STRIP=$ac_ct_STRIP
2615 fi
2616 else
2617 STRIP="$ac_cv_prog_STRIP"
2618 fi
2619
2620 fi
2621 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2622
2623 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2624 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2625 if test -z "$MKDIR_P"; then
2626 if test "${ac_cv_path_mkdir+set}" = set; then
2627 $as_echo_n "(cached) " >&6
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2631 do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_prog in mkdir gmkdir; do
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2637 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2638 'mkdir (GNU coreutils) '* | \
2639 'mkdir (coreutils) '* | \
2640 'mkdir (fileutils) '4.1*)
2641 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2642 break 3;;
2643 esac
2644 done
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650
2651 if test "${ac_cv_path_mkdir+set}" = set; then
2652 MKDIR_P="$ac_cv_path_mkdir -p"
2653 else
2654 # As a last resort, use the slow shell script. Don't cache a
2655 # value for MKDIR_P within a source directory, because that will
2656 # break other packages using the cache if that directory is
2657 # removed, or if the value is a relative name.
2658 test -d ./--version && rmdir ./--version
2659 MKDIR_P="$ac_install_sh -d"
2660 fi
2661 fi
2662 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2663 $as_echo "$MKDIR_P" >&6; }
2664
2665 mkdir_p="$MKDIR_P"
2666 case $mkdir_p in
2667 [\\/$]* | ?:[\\/]*) ;;
2668 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2669 esac
2670
2671 for ac_prog in gawk mawk nawk awk
2672 do
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if test "${ac_cv_prog_AWK+set}" = set; then
2678 $as_echo_n "(cached) " >&6
2679 else
2680 if test -n "$AWK"; then
2681 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_AWK="$ac_prog"
2691 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694 done
2695 done
2696 IFS=$as_save_IFS
2697
2698 fi
2699 fi
2700 AWK=$ac_cv_prog_AWK
2701 if test -n "$AWK"; then
2702 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2703 $as_echo "$AWK" >&6; }
2704 else
2705 { $as_echo "$as_me:$LINENO: result: no" >&5
2706 $as_echo "no" >&6; }
2707 fi
2708
2709
2710 test -n "$AWK" && break
2711 done
2712
2713 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2715 set x ${MAKE-make}
2716 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2717 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2718 $as_echo_n "(cached) " >&6
2719 else
2720 cat >conftest.make <<\_ACEOF
2721 SHELL = /bin/sh
2722 all:
2723 @echo '@@@%%%=$(MAKE)=@@@%%%'
2724 _ACEOF
2725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2726 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2727 *@@@%%%=?*=@@@%%%*)
2728 eval ac_cv_prog_make_${ac_make}_set=yes;;
2729 *)
2730 eval ac_cv_prog_make_${ac_make}_set=no;;
2731 esac
2732 rm -f conftest.make
2733 fi
2734 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2735 { $as_echo "$as_me:$LINENO: result: yes" >&5
2736 $as_echo "yes" >&6; }
2737 SET_MAKE=
2738 else
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740 $as_echo "no" >&6; }
2741 SET_MAKE="MAKE=${MAKE-make}"
2742 fi
2743
2744 rm -rf .tst 2>/dev/null
2745 mkdir .tst 2>/dev/null
2746 if test -d .tst; then
2747 am__leading_dot=.
2748 else
2749 am__leading_dot=_
2750 fi
2751 rmdir .tst 2>/dev/null
2752
2753 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2754 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2755 # is not polluted with repeated "-I."
2756 am__isrc=' -I$(srcdir)'
2757 # test to see if srcdir already configured
2758 if test -f $srcdir/config.status; then
2759 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2760 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2761 { (exit 1); exit 1; }; }
2762 fi
2763 fi
2764
2765 # test whether we have cygpath
2766 if test -z "$CYGPATH_W"; then
2767 if (cygpath --version) >/dev/null 2>/dev/null; then
2768 CYGPATH_W='cygpath -w'
2769 else
2770 CYGPATH_W=echo
2771 fi
2772 fi
2773
2774
2775 # Define the identity of the package.
2776 PACKAGE='trousers'
2777 VERSION='0.3.14'
2778
2779
2780 cat >>confdefs.h <<_ACEOF
2781 #define PACKAGE "$PACKAGE"
2782 _ACEOF
2783
2784
2785 cat >>confdefs.h <<_ACEOF
2786 #define VERSION "$VERSION"
2787 _ACEOF
2788
2789 # Some tools Automake needs.
2790
2791 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2792
2793
2794 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2795
2796
2797 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2798
2799
2800 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2801
2802
2803 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2804
2805 # We need awk for the "check" target. The system "awk" is bad on
2806 # some platforms.
2807 # Always define AMTAR for backward compatibility.
2808
2809 AMTAR=${AMTAR-"${am_missing_run}tar"}
2810
2811 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2812
2813
2814
2815
2816
2817
2818 # Debugging support
2819 # Check whether --enable-debug was given.
2820 if test "${enable_debug+set}" = set; then
2821 enableval=$enable_debug; { $as_echo "$as_me:$LINENO: result: *** Enabling debugging at user request ***" >&5
2822 $as_echo "*** Enabling debugging at user request ***" >&6; }
2823 fi
2824
2825
2826 # If the user has not set CFLAGS, do something appropriate
2827 test_CFLAGS=${CFLAGS+set}
2828 if test "$test_CFLAGS" != set; then
2829 if test "x$enable_debug" = "xyes"; then
2830 CFLAGS="-O0 -g -DTSS_DEBUG -Wreturn-type"
2831 # CFLAGS="-O0 -g -DTSS_DEBUG -Wreturn-type -DTCSD_SINGLE_THREAD_DEBUG"
2832 else
2833 CFLAGS="-O2"
2834 fi
2835 else
2836 if test "x$enable_debug" = "xyes"; then
2837 CFLAGS="${CFLAGS} -O0 -g -DTSS_DEBUG -Wreturn-type"
2838 fi
2839 fi
2840
2841 # Arch specific stuff
2842 case $target in
2843 *darwin*)
2844 TCSD_LDFLAGS=""
2845 ;;
2846 *solaris*)
2847 CFLAGS="$CFLAGS -DSOLARIS"
2848 ;;
2849 *)
2850 TCSD_LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
2851 ;;
2852 esac
2853
2854
2855
2856 # Non-standard OpenSSL location
2857 { $as_echo "$as_me:$LINENO: checking Non-standard OpenSSL location" >&5
2858 $as_echo_n "checking Non-standard OpenSSL location... " >&6; }
2859
2860 # Check whether --with-openssl was given.
2861 if test "${with_openssl+set}" = set; then
2862 withval=$with_openssl; OPENSSL_INCLUDE_DIR="$withval/include"
2863 OPENSSL_LIB_DIR="$withval/lib"
2864 if [ ! -d $OPENSSL_INCLUDE_DIR -o ! -d $OPENSSL_LIB_DIR ]; then
2865 { { $as_echo "$as_me:$LINENO: error: $OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!" >&5
2866 $as_echo "$as_me: error: $OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!" >&2;}
2867 { (exit 1); exit 1; }; }
2868 else
2869 { $as_echo "$as_me:$LINENO: result: yes" >&5
2870 $as_echo "yes" >&6; }
2871 CFLAGS="$CFLAGS -L$OPENSSL_LIB_DIR -I$OPENSSL_INCLUDE_DIR"
2872
2873 fi
2874 else
2875 { $as_echo "$as_me:$LINENO: result: no" >&5
2876 $as_echo "no" >&6; }
2877
2878 fi
2879
2880
2881 # The tspi Makefile will look for trspi/crypto/@CRYPTO_PACKAGE@/crypto.c
2882 # Future crypto packages can go in their own subdir of trspi/crypto
2883 # and a check for them should be made here
2884 DEPDIR="${am__leading_dot}deps"
2885
2886 ac_config_commands="$ac_config_commands depfiles"
2887
2888
2889 am_make=${MAKE-make}
2890 cat > confinc << 'END'
2891 am__doit:
2892 @echo this is the am__doit target
2893 .PHONY: am__doit
2894 END
2895 # If we don't find an include directive, just comment out the code.
2896 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2897 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2898 am__include="#"
2899 am__quote=
2900 _am_result=none
2901 # First try GNU make style include.
2902 echo "include confinc" > confmf
2903 # Ignore all kinds of additional output from `make'.
2904 case `$am_make -s -f confmf 2> /dev/null` in #(
2905 *the\ am__doit\ target*)
2906 am__include=include
2907 am__quote=
2908 _am_result=GNU
2909 ;;
2910 esac
2911 # Now try BSD make style include.
2912 if test "$am__include" = "#"; then
2913 echo '.include "confinc"' > confmf
2914 case `$am_make -s -f confmf 2> /dev/null` in #(
2915 *the\ am__doit\ target*)
2916 am__include=.include
2917 am__quote="\""
2918 _am_result=BSD
2919 ;;
2920 esac
2921 fi
2922
2923
2924 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2925 $as_echo "$_am_result" >&6; }
2926 rm -f confinc confmf
2927
2928 # Check whether --enable-dependency-tracking was given.
2929 if test "${enable_dependency_tracking+set}" = set; then
2930 enableval=$enable_dependency_tracking;
2931 fi
2932
2933 if test "x$enable_dependency_tracking" != xno; then
2934 am_depcomp="$ac_aux_dir/depcomp"
2935 AMDEPBACKSLASH='\'
2936 fi
2937 if test "x$enable_dependency_tracking" != xno; then
2938 AMDEP_TRUE=
2939 AMDEP_FALSE='#'
2940 else
2941 AMDEP_TRUE='#'
2942 AMDEP_FALSE=
2943 fi
2944
2945
2946 ac_ext=c
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2954 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if test "${ac_cv_prog_CC+set}" = set; then
2957 $as_echo_n "(cached) " >&6
2958 else
2959 if test -n "$CC"; then
2960 ac_cv_prog_CC="$CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973 done
2974 done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 CC=$ac_cv_prog_CC
2980 if test -n "$CC"; then
2981 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2982 $as_echo "$CC" >&6; }
2983 else
2984 { $as_echo "$as_me:$LINENO: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988
2989 fi
2990 if test -z "$ac_cv_prog_CC"; then
2991 ac_ct_CC=$CC
2992 # Extract the first word of "gcc", so it can be a program name with args.
2993 set dummy gcc; ac_word=$2
2994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2997 $as_echo_n "(cached) " >&6
2998 else
2999 if test -n "$ac_ct_CC"; then
3000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3004 do
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_ac_ct_CC="gcc"
3010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013 done
3014 done
3015 IFS=$as_save_IFS
3016
3017 fi
3018 fi
3019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3020 if test -n "$ac_ct_CC"; then
3021 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3022 $as_echo "$ac_ct_CC" >&6; }
3023 else
3024 { $as_echo "$as_me:$LINENO: result: no" >&5
3025 $as_echo "no" >&6; }
3026 fi
3027
3028 if test "x$ac_ct_CC" = x; then
3029 CC=""
3030 else
3031 case $cross_compiling:$ac_tool_warned in
3032 yes:)
3033 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3036 esac
3037 CC=$ac_ct_CC
3038 fi
3039 else
3040 CC="$ac_cv_prog_CC"
3041 fi
3042
3043 if test -z "$CC"; then
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}cc; ac_word=$2
3047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_CC+set}" = set; then
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_CC="${ac_tool_prefix}cc"
3063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3076 else
3077 { $as_echo "$as_me:$LINENO: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082 fi
3083 fi
3084 if test -z "$CC"; then
3085 # Extract the first word of "cc", so it can be a program name with args.
3086 set dummy cc; ac_word=$2
3087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_CC+set}" = set; then
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095 ac_prog_rejected=no
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3104 ac_prog_rejected=yes
3105 continue
3106 fi
3107 ac_cv_prog_CC="cc"
3108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111 done
3112 done
3113 IFS=$as_save_IFS
3114
3115 if test $ac_prog_rejected = yes; then
3116 # We found a bogon in the path, so make sure we never use it.
3117 set dummy $ac_cv_prog_CC
3118 shift
3119 if test $# != 0; then
3120 # We chose a different compiler from the bogus one.
3121 # However, it has the same basename, so the bogon will be chosen
3122 # first if we set CC to just the basename; use the full file name.
3123 shift
3124 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3125 fi
3126 fi
3127 fi
3128 fi
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134 { $as_echo "$as_me:$LINENO: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139 fi
3140 if test -z "$CC"; then
3141 if test -n "$ac_tool_prefix"; then
3142 for ac_prog in cl.exe
3143 do
3144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165 done
3166 done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3175 else
3176 { $as_echo "$as_me:$LINENO: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181 test -n "$CC" && break
3182 done
3183 fi
3184 if test -z "$CC"; then
3185 ac_ct_CC=$CC
3186 for ac_prog in cl.exe
3187 do
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3193 $as_echo_n "(cached) " >&6
3194 else
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_ac_ct_CC="$ac_prog"
3206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209 done
3210 done
3211 IFS=$as_save_IFS
3212
3213 fi
3214 fi
3215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216 if test -n "$ac_ct_CC"; then
3217 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3218 $as_echo "$ac_ct_CC" >&6; }
3219 else
3220 { $as_echo "$as_me:$LINENO: result: no" >&5
3221 $as_echo "no" >&6; }
3222 fi
3223
3224
3225 test -n "$ac_ct_CC" && break
3226 done
3227
3228 if test "x$ac_ct_CC" = x; then
3229 CC=""
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 CC=$ac_ct_CC
3238 fi
3239 fi
3240
3241 fi
3242
3243
3244 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3247 See \`config.log' for more details." >&5
3248 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3249 See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }; }
3251
3252 # Provide some information about the compiler.
3253 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3254 set X $ac_compile
3255 ac_compiler=$2
3256 { (ac_try="$ac_compiler --version >&5"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3262 $as_echo "$ac_try_echo") >&5
3263 (eval "$ac_compiler --version >&5") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }
3267 { (ac_try="$ac_compiler -v >&5"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3273 $as_echo "$ac_try_echo") >&5
3274 (eval "$ac_compiler -v >&5") 2>&5
3275 ac_status=$?
3276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }
3278 { (ac_try="$ac_compiler -V >&5"
3279 case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284 $as_echo "$ac_try_echo") >&5
3285 (eval "$ac_compiler -V >&5") 2>&5
3286 ac_status=$?
3287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }
3289
3290 cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h. */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3296
3297 int
3298 main ()
3299 {
3300
3301 ;
3302 return 0;
3303 }
3304 _ACEOF
3305 ac_clean_files_save=$ac_clean_files
3306 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3307 # Try to create an executable without -o first, disregard a.out.
3308 # It will help us diagnose broken compilers, and finding out an intuition
3309 # of exeext.
3310 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3311 $as_echo_n "checking for C compiler default output file name... " >&6; }
3312 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3313
3314 # The possible output files:
3315 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3316
3317 ac_rmfiles=
3318 for ac_file in $ac_files
3319 do
3320 case $ac_file in
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3322 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3323 esac
3324 done
3325 rm -f $ac_rmfiles
3326
3327 if { (ac_try="$ac_link_default"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3333 $as_echo "$ac_try_echo") >&5
3334 (eval "$ac_link_default") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; then
3338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3340 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3341 # so that the user can short-circuit this test for compilers unknown to
3342 # Autoconf.
3343 for ac_file in $ac_files ''
3344 do
3345 test -f "$ac_file" || continue
3346 case $ac_file in
3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3348 ;;
3349 [ab].out )
3350 # We found the default executable, but exeext='' is most
3351 # certainly right.
3352 break;;
3353 *.* )
3354 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3355 then :; else
3356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357 fi
3358 # We set ac_cv_exeext here because the later test for it is not
3359 # safe: cross compilers may not add the suffix if given an `-o'
3360 # argument, so we may need to know it at that point already.
3361 # Even if this section looks crufty: it has the advantage of
3362 # actually working.
3363 break;;
3364 * )
3365 break;;
3366 esac
3367 done
3368 test "$ac_cv_exeext" = no && ac_cv_exeext=
3369
3370 else
3371 ac_file=''
3372 fi
3373
3374 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3375 $as_echo "$ac_file" >&6; }
3376 if test -z "$ac_file"; then
3377 $as_echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3379
3380 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3383 See \`config.log' for more details." >&5
3384 $as_echo "$as_me: error: C compiler cannot create executables
3385 See \`config.log' for more details." >&2;}
3386 { (exit 77); exit 77; }; }; }
3387 fi
3388
3389 ac_exeext=$ac_cv_exeext
3390
3391 # Check that the compiler produces executables we can run. If not, either
3392 # the compiler is broken, or we cross compile.
3393 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3394 $as_echo_n "checking whether the C compiler works... " >&6; }
3395 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3396 # If not cross compiling, check that we can run a simple program.
3397 if test "$cross_compiling" != yes; then
3398 if { ac_try='./$ac_file'
3399 { (case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3404 $as_echo "$ac_try_echo") >&5
3405 (eval "$ac_try") 2>&5
3406 ac_status=$?
3407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 cross_compiling=no
3410 else
3411 if test "$cross_compiling" = maybe; then
3412 cross_compiling=yes
3413 else
3414 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3417 If you meant to cross compile, use \`--host'.
3418 See \`config.log' for more details." >&5
3419 $as_echo "$as_me: error: cannot run C compiled programs.
3420 If you meant to cross compile, use \`--host'.
3421 See \`config.log' for more details." >&2;}
3422 { (exit 1); exit 1; }; }; }
3423 fi
3424 fi
3425 fi
3426 { $as_echo "$as_me:$LINENO: result: yes" >&5
3427 $as_echo "yes" >&6; }
3428
3429 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3430 ac_clean_files=$ac_clean_files_save
3431 # Check that the compiler produces executables we can run. If not, either
3432 # the compiler is broken, or we cross compile.
3433 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3434 $as_echo_n "checking whether we are cross compiling... " >&6; }
3435 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3436 $as_echo "$cross_compiling" >&6; }
3437
3438 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3439 $as_echo_n "checking for suffix of executables... " >&6; }
3440 if { (ac_try="$ac_link"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3446 $as_echo "$ac_try_echo") >&5
3447 (eval "$ac_link") 2>&5
3448 ac_status=$?
3449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; then
3451 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3452 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3453 # work properly (i.e., refer to `conftest.exe'), while it won't with
3454 # `rm'.
3455 for ac_file in conftest.exe conftest conftest.*; do
3456 test -f "$ac_file" || continue
3457 case $ac_file in
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3459 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460 break;;
3461 * ) break;;
3462 esac
3463 done
3464 else
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3468 See \`config.log' for more details." >&5
3469 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3470 See \`config.log' for more details." >&2;}
3471 { (exit 1); exit 1; }; }; }
3472 fi
3473
3474 rm -f conftest$ac_cv_exeext
3475 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3476 $as_echo "$ac_cv_exeext" >&6; }
3477
3478 rm -f conftest.$ac_ext
3479 EXEEXT=$ac_cv_exeext
3480 ac_exeext=$EXEEXT
3481 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3482 $as_echo_n "checking for suffix of object files... " >&6; }
3483 if test "${ac_cv_objext+set}" = set; then
3484 $as_echo_n "(cached) " >&6
3485 else
3486 cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h. */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492
3493 int
3494 main ()
3495 {
3496
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 rm -f conftest.o conftest.obj
3502 if { (ac_try="$ac_compile"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3508 $as_echo "$ac_try_echo") >&5
3509 (eval "$ac_compile") 2>&5
3510 ac_status=$?
3511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; then
3513 for ac_file in conftest.o conftest.obj conftest.*; do
3514 test -f "$ac_file" || continue;
3515 case $ac_file in
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3518 break;;
3519 esac
3520 done
3521 else
3522 $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3528 See \`config.log' for more details." >&5
3529 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3530 See \`config.log' for more details." >&2;}
3531 { (exit 1); exit 1; }; }; }
3532 fi
3533
3534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3535 fi
3536 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3537 $as_echo "$ac_cv_objext" >&6; }
3538 OBJEXT=$ac_cv_objext
3539 ac_objext=$OBJEXT
3540 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3541 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3542 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3543 $as_echo_n "(cached) " >&6
3544 else
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551
3552 int
3553 main ()
3554 {
3555 #ifndef __GNUC__
3556 choke me
3557 #endif
3558
3559 ;
3560 return 0;
3561 }
3562 _ACEOF
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3570 $as_echo "$ac_try_echo") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3581 ac_compiler_gnu=yes
3582 else
3583 $as_echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 ac_compiler_gnu=no
3587 fi
3588
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3591
3592 fi
3593 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3594 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3595 if test $ac_compiler_gnu = yes; then
3596 GCC=yes
3597 else
3598 GCC=
3599 fi
3600 ac_test_CFLAGS=${CFLAGS+set}
3601 ac_save_CFLAGS=$CFLAGS
3602 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3603 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3604 if test "${ac_cv_prog_cc_g+set}" = set; then
3605 $as_echo_n "(cached) " >&6
3606 else
3607 ac_save_c_werror_flag=$ac_c_werror_flag
3608 ac_c_werror_flag=yes
3609 ac_cv_prog_cc_g=no
3610 CFLAGS="-g"
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617
3618 int
3619 main ()
3620 {
3621
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 rm -f conftest.$ac_objext
3627 if { (ac_try="$ac_compile"
3628 case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3633 $as_echo "$ac_try_echo") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } && {
3641 test -z "$ac_c_werror_flag" ||
3642 test ! -s conftest.err
3643 } && test -s conftest.$ac_objext; then
3644 ac_cv_prog_cc_g=yes
3645 else
3646 $as_echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 CFLAGS=""
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h. */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656
3657 int
3658 main ()
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.$ac_objext
3666 if { (ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3672 $as_echo "$ac_try_echo") >&5
3673 (eval "$ac_compile") 2>conftest.er1
3674 ac_status=$?
3675 grep -v '^ *+' conftest.er1 >conftest.err
3676 rm -f conftest.er1
3677 cat conftest.err >&5
3678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } && {
3680 test -z "$ac_c_werror_flag" ||
3681 test ! -s conftest.err
3682 } && test -s conftest.$ac_objext; then
3683 :
3684 else
3685 $as_echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 ac_c_werror_flag=$ac_save_c_werror_flag
3689 CFLAGS="-g"
3690 cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h. */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696
3697 int
3698 main ()
3699 {
3700
3701 ;
3702 return 0;
3703 }
3704 _ACEOF
3705 rm -f conftest.$ac_objext
3706 if { (ac_try="$ac_compile"
3707 case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710 esac
3711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3712 $as_echo "$ac_try_echo") >&5
3713 (eval "$ac_compile") 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } && {
3720 test -z "$ac_c_werror_flag" ||
3721 test ! -s conftest.err
3722 } && test -s conftest.$ac_objext; then
3723 ac_cv_prog_cc_g=yes
3724 else
3725 $as_echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728
3729 fi
3730
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 fi
3733
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 fi
3736
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3739 fi
3740 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3741 $as_echo "$ac_cv_prog_cc_g" >&6; }
3742 if test "$ac_test_CFLAGS" = set; then
3743 CFLAGS=$ac_save_CFLAGS
3744 elif test $ac_cv_prog_cc_g = yes; then
3745 if test "$GCC" = yes; then
3746 CFLAGS="-g -O2"
3747 else
3748 CFLAGS="-g"
3749 fi
3750 else
3751 if test "$GCC" = yes; then
3752 CFLAGS="-O2"
3753 else
3754 CFLAGS=
3755 fi
3756 fi
3757 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3758 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3759 if test "${ac_cv_prog_cc_c89+set}" = set; then
3760 $as_echo_n "(cached) " >&6
3761 else
3762 ac_cv_prog_cc_c89=no
3763 ac_save_CC=$CC
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 #include <stdarg.h>
3771 #include <stdio.h>
3772 #include <sys/types.h>
3773 #include <sys/stat.h>
3774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3775 struct buf { int x; };
3776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777 static char *e (p, i)
3778 char **p;
3779 int i;
3780 {
3781 return p[i];
3782 }
3783 static char *f (char * (*g) (char **, int), char **p, ...)
3784 {
3785 char *s;
3786 va_list v;
3787 va_start (v,p);
3788 s = g (p, va_arg (v,int));
3789 va_end (v);
3790 return s;
3791 }
3792
3793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3794 function prototypes and stuff, but not '\xHH' hex character constants.
3795 These don't provoke an error unfortunately, instead are silently treated
3796 as 'x'. The following induces an error, until -std is added to get
3797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3798 array size at least. It's necessary to write '\x00'==0 to get something
3799 that's true only with -std. */
3800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3801
3802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803 inside strings and character constants. */
3804 #define FOO(x) 'x'
3805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3806
3807 int test (int i, double x);
3808 struct s1 {int (*f) (int a);};
3809 struct s2 {int (*f) (double a);};
3810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3811 int argc;
3812 char **argv;
3813 int
3814 main ()
3815 {
3816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3823 do
3824 CC="$ac_save_CC $ac_arg"
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3827 case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832 $as_echo "$ac_try_echo") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && {
3840 test -z "$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 } && test -s conftest.$ac_objext; then
3843 ac_cv_prog_cc_c89=$ac_arg
3844 else
3845 $as_echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848
3849 fi
3850
3851 rm -f core conftest.err conftest.$ac_objext
3852 test "x$ac_cv_prog_cc_c89" != "xno" && break
3853 done
3854 rm -f conftest.$ac_ext
3855 CC=$ac_save_CC
3856
3857 fi
3858 # AC_CACHE_VAL
3859 case "x$ac_cv_prog_cc_c89" in
3860 x)
3861 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3862 $as_echo "none needed" >&6; } ;;
3863 xno)
3864 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3865 $as_echo "unsupported" >&6; } ;;
3866 *)
3867 CC="$CC $ac_cv_prog_cc_c89"
3868 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3869 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3870 esac
3871
3872
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
3879 depcc="$CC" am_compiler_list=
3880
3881 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3882 $as_echo_n "checking dependency style of $depcc... " >&6; }
3883 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3887 # We make a subdir and do the tests there. Otherwise we can end up
3888 # making bogus files that we don't know about and never remove. For
3889 # instance it was reported that on HP-UX the gcc test will end up
3890 # making a dummy file named `D' -- because `-MD' means `put the output
3891 # in D'.
3892 mkdir conftest.dir
3893 # Copy depcomp to subdir because otherwise we won't find it if we're
3894 # using a relative directory.
3895 cp "$am_depcomp" conftest.dir
3896 cd conftest.dir
3897 # We will build objects and dependencies in a subdirectory because
3898 # it helps to detect inapplicable dependency modes. For instance
3899 # both Tru64's cc and ICC support -MD to output dependencies as a
3900 # side effect of compilation, but ICC will put the dependencies in
3901 # the current directory while Tru64 will put them in the object
3902 # directory.
3903 mkdir sub
3904
3905 am_cv_CC_dependencies_compiler_type=none
3906 if test "$am_compiler_list" = ""; then
3907 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3908 fi
3909 am__universal=false
3910 case " $depcc " in #(
3911 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3912 esac
3913
3914 for depmode in $am_compiler_list; do
3915 # Setup a source with many dependencies, because some compilers
3916 # like to wrap large dependency lists on column 80 (with \), and
3917 # we should not choose a depcomp mode which is confused by this.
3918 #
3919 # We need to recreate these files for each test, as the compiler may
3920 # overwrite some of them when testing with obscure command lines.
3921 # This happens at least with the AIX C compiler.
3922 : > sub/conftest.c
3923 for i in 1 2 3 4 5 6; do
3924 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3925 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3926 # Solaris 8's {/usr,}/bin/sh.
3927 touch sub/conftst$i.h
3928 done
3929 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3930
3931 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3932 # mode. It turns out that the SunPro C++ compiler does not properly
3933 # handle `-M -o', and we need to detect this. Also, some Intel
3934 # versions had trouble with output in subdirs
3935 am__obj=sub/conftest.${OBJEXT-o}
3936 am__minus_obj="-o $am__obj"
3937 case $depmode in
3938 gcc)
3939 # This depmode causes a compiler race in universal mode.
3940 test "$am__universal" = false || continue
3941 ;;
3942 nosideeffect)
3943 # after this tag, mechanisms are not by side-effect, so they'll
3944 # only be used when explicitly requested
3945 if test "x$enable_dependency_tracking" = xyes; then
3946 continue
3947 else
3948 break
3949 fi
3950 ;;
3951 msvisualcpp | msvcmsys)
3952 # This compiler won't grok `-c -o', but also, the minuso test has
3953 # not run yet. These depmodes are late enough in the game, and
3954 # so weak that their functioning should not be impacted.
3955 am__obj=conftest.${OBJEXT-o}
3956 am__minus_obj=
3957 ;;
3958 none) break ;;
3959 esac
3960 if depmode=$depmode \
3961 source=sub/conftest.c object=$am__obj \
3962 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3963 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3964 >/dev/null 2>conftest.err &&
3965 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3966 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3967 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3968 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3969 # icc doesn't choke on unknown options, it will just issue warnings
3970 # or remarks (even with -Werror). So we grep stderr for any message
3971 # that says an option was ignored or not supported.
3972 # When given -MP, icc 7.0 and 7.1 complain thusly:
3973 # icc: Command line warning: ignoring option '-M'; no argument required
3974 # The diagnosis changed in icc 8.0:
3975 # icc: Command line remark: option '-MP' not supported
3976 if (grep 'ignoring option' conftest.err ||
3977 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3978 am_cv_CC_dependencies_compiler_type=$depmode
3979 break
3980 fi
3981 fi
3982 done
3983
3984 cd ..
3985 rm -rf conftest.dir
3986 else
3987 am_cv_CC_dependencies_compiler_type=none
3988 fi
3989
3990 fi
3991 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3992 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3993 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3994
3995 if
3996 test "x$enable_dependency_tracking" != xno \
3997 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3998 am__fastdepCC_TRUE=
3999 am__fastdepCC_FALSE='#'
4000 else
4001 am__fastdepCC_TRUE='#'
4002 am__fastdepCC_FALSE=
4003 fi
4004
4005
4006
4007 { $as_echo "$as_me:$LINENO: checking for EVP_DigestUpdate in -lcrypto" >&5
4008 $as_echo_n "checking for EVP_DigestUpdate in -lcrypto... " >&6; }
4009 if test "${ac_cv_lib_crypto_EVP_DigestUpdate+set}" = set; then
4010 $as_echo_n "(cached) " >&6
4011 else
4012 ac_check_lib_save_LIBS=$LIBS
4013 LIBS="-lcrypto $LIBS"
4014 cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020
4021 /* Override any GCC internal prototype to avoid an error.
4022 Use char because int might match the return type of a GCC
4023 builtin and then its argument prototype would still apply. */
4024 #ifdef __cplusplus
4025 extern "C"
4026 #endif
4027 char EVP_DigestUpdate ();
4028 int
4029 main ()
4030 {
4031 return EVP_DigestUpdate ();
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.$ac_objext conftest$ac_exeext
4037 if { (ac_try="$ac_link"
4038 case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4043 $as_echo "$ac_try_echo") >&5
4044 (eval "$ac_link") 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } && {
4051 test -z "$ac_c_werror_flag" ||
4052 test ! -s conftest.err
4053 } && test -s conftest$ac_exeext && {
4054 test "$cross_compiling" = yes ||
4055 $as_test_x conftest$ac_exeext
4056 }; then
4057 ac_cv_lib_crypto_EVP_DigestUpdate=yes
4058 else
4059 $as_echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062 ac_cv_lib_crypto_EVP_DigestUpdate=no
4063 fi
4064
4065 rm -rf conftest.dSYM
4066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4067 conftest$ac_exeext conftest.$ac_ext
4068 LIBS=$ac_check_lib_save_LIBS
4069 fi
4070 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestUpdate" >&5
4071 $as_echo "$ac_cv_lib_crypto_EVP_DigestUpdate" >&6; }
4072 if test "x$ac_cv_lib_crypto_EVP_DigestUpdate" = x""yes; then
4073 CRYPTO_PACKAGE='openssl'
4074 else
4075 { { $as_echo "$as_me:$LINENO: error: openssl is currently the only supported crypto library for trousers. Please install openssl from http://www.openssl.org or the -devel package from your distro" >&5
4076 $as_echo "$as_me: error: openssl is currently the only supported crypto library for trousers. Please install openssl from http://www.openssl.org or the -devel package from your distro" >&2;}
4077 { (exit 1); exit 1; }; }
4078 fi
4079
4080
4081 CRYPTOLIB=-lcrypto
4082
4083
4084 # Check whether --enable-gcov was given.
4085 if test "${enable_gcov+set}" = set; then
4086 enableval=$enable_gcov; CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
4087 { $as_echo "$as_me:$LINENO: result: *** Enabling gcov at user request ***" >&5
4088 $as_echo "*** Enabling gcov at user request ***" >&6; }
4089 fi
4090
4091
4092 # profiling support
4093 # Check whether --enable-gprof was given.
4094 if test "${enable_gprof+set}" = set; then
4095 enableval=$enable_gprof; CFLAGS="$CFLAGS -pg"
4096 { $as_echo "$as_me:$LINENO: result: *** Enabling profiling at user request ***" >&5
4097 $as_echo "*** Enabling profiling at user request ***" >&6; }
4098 fi
4099
4100
4101 SPEC_COMP=0
4102 # strict spec compliance
4103 # Check whether --enable-strict-spec-compliance was given.
4104 if test "${enable_strict_spec_compliance+set}" = set; then
4105 enableval=$enable_strict_spec_compliance; CFLAGS="$CFLAGS -DTSS_SPEC_COMPLIANCE"
4106 SPEC_COMP=1
4107 { $as_echo "$as_me:$LINENO: result: *** Enabling spec compliance at user request ***" >&5
4108 $as_echo "*** Enabling spec compliance at user request ***" >&6; }
4109 fi
4110
4111
4112 # user+group checking
4113 # Check whether --enable-usercheck was given.
4114 if test "${enable_usercheck+set}" = set; then
4115 enableval=$enable_usercheck; if test "x$enableval" = "xno"; then
4116 CFLAGS="$CFLAGS -DNOUSERCHECK"
4117 { $as_echo "$as_me:$LINENO: result: *** Disabling user checking at user request ***" >&5
4118 $as_echo "*** Disabling user checking at user request ***" >&6; }
4119 fi
4120
4121 fi
4122
4123 if test "x$enable_usercheck" = "xno"; then
4124 NOUSERCHECK_TRUE=
4125 NOUSERCHECK_FALSE='#'
4126 else
4127 NOUSERCHECK_TRUE='#'
4128 NOUSERCHECK_FALSE=
4129 fi
4130
4131
4132 # daa math lib: gmp or openssl (default openssl)
4133 MATH_DEFINE=BI_OPENSSL
4134 ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4140 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4141 # On Suns, sometimes $CPP names a directory.
4142 if test -n "$CPP" && test -d "$CPP"; then
4143 CPP=
4144 fi
4145 if test -z "$CPP"; then
4146 if test "${ac_cv_prog_CPP+set}" = set; then
4147 $as_echo_n "(cached) " >&6
4148 else
4149 # Double quotes because CPP needs to be expanded
4150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4151 do
4152 ac_preproc_ok=false
4153 for ac_c_preproc_warn_flag in '' yes
4154 do
4155 # Use a header file that comes with gcc, so configuring glibc
4156 # with a fresh cross-compiler works.
4157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4158 # <limits.h> exists even on freestanding compilers.
4159 # On the NeXT, cc -E runs the code through the compiler's parser,
4160 # not just through cpp. "Syntax error" is here to catch this case.
4161 cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h. */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4167 #ifdef __STDC__
4168 # include <limits.h>
4169 #else
4170 # include <assert.h>
4171 #endif
4172 Syntax error
4173 _ACEOF
4174 if { (ac_try="$ac_cpp conftest.$ac_ext"
4175 case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4180 $as_echo "$ac_try_echo") >&5
4181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } >/dev/null && {
4188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4189 test ! -s conftest.err
4190 }; then
4191 :
4192 else
4193 $as_echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 # Broken: fails on valid input.
4197 continue
4198 fi
4199
4200 rm -f conftest.err conftest.$ac_ext
4201
4202 # OK, works on sane cases. Now check whether nonexistent headers
4203 # can be detected and how.
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <ac_nonexistent.h>
4211 _ACEOF
4212 if { (ac_try="$ac_cpp conftest.$ac_ext"
4213 case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216 esac
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev/null && {
4226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 }; then
4229 # Broken: success on invalid input.
4230 continue
4231 else
4232 $as_echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4234
4235 # Passes both tests.
4236 ac_preproc_ok=:
4237 break
4238 fi
4239
4240 rm -f conftest.err conftest.$ac_ext
4241
4242 done
4243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4244 rm -f conftest.err conftest.$ac_ext
4245 if $ac_preproc_ok; then
4246 break
4247 fi
4248
4249 done
4250 ac_cv_prog_CPP=$CPP
4251
4252 fi
4253 CPP=$ac_cv_prog_CPP
4254 else
4255 ac_cv_prog_CPP=$CPP
4256 fi
4257 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4258 $as_echo "$CPP" >&6; }
4259 ac_preproc_ok=false
4260 for ac_c_preproc_warn_flag in '' yes
4261 do
4262 # Use a header file that comes with gcc, so configuring glibc
4263 # with a fresh cross-compiler works.
4264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4265 # <limits.h> exists even on freestanding compilers.
4266 # On the NeXT, cc -E runs the code through the compiler's parser,
4267 # not just through cpp. "Syntax error" is here to catch this case.
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 #ifdef __STDC__
4275 # include <limits.h>
4276 #else
4277 # include <assert.h>
4278 #endif
4279 Syntax error
4280 _ACEOF
4281 if { (ac_try="$ac_cpp conftest.$ac_ext"
4282 case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4287 $as_echo "$ac_try_echo") >&5
4288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } >/dev/null && {
4295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4296 test ! -s conftest.err
4297 }; then
4298 :
4299 else
4300 $as_echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4302
4303 # Broken: fails on valid input.
4304 continue
4305 fi
4306
4307 rm -f conftest.err conftest.$ac_ext
4308
4309 # OK, works on sane cases. Now check whether nonexistent headers
4310 # can be detected and how.
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <ac_nonexistent.h>
4318 _ACEOF
4319 if { (ac_try="$ac_cpp conftest.$ac_ext"
4320 case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4325 $as_echo "$ac_try_echo") >&5
4326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } >/dev/null && {
4333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4335 }; then
4336 # Broken: success on invalid input.
4337 continue
4338 else
4339 $as_echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 # Passes both tests.
4343 ac_preproc_ok=:
4344 break
4345 fi
4346
4347 rm -f conftest.err conftest.$ac_ext
4348
4349 done
4350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4351 rm -f conftest.err conftest.$ac_ext
4352 if $ac_preproc_ok; then
4353 :
4354 else
4355 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4357 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4358 See \`config.log' for more details." >&5
4359 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4360 See \`config.log' for more details." >&2;}
4361 { (exit 1); exit 1; }; }; }
4362 fi
4363
4364 ac_ext=c
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369
4370
4371 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4372 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4373 if test "${ac_cv_path_GREP+set}" = set; then
4374 $as_echo_n "(cached) " >&6
4375 else
4376 if test -z "$GREP"; then
4377 ac_path_GREP_found=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381 do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_prog in grep ggrep; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4388 # Check for GNU ac_path_GREP and select it if it is found.
4389 # Check for GNU $ac_path_GREP
4390 case `"$ac_path_GREP" --version 2>&1` in
4391 *GNU*)
4392 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4393 *)
4394 ac_count=0
4395 $as_echo_n 0123456789 >"conftest.in"
4396 while :
4397 do
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 $as_echo 'GREP' >> "conftest.nl"
4402 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404 ac_count=`expr $ac_count + 1`
4405 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_GREP="$ac_path_GREP"
4408 ac_path_GREP_max=$ac_count
4409 fi
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4412 done
4413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414 esac
4415
4416 $ac_path_GREP_found && break 3
4417 done
4418 done
4419 done
4420 IFS=$as_save_IFS
4421 if test -z "$ac_cv_path_GREP"; then
4422 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4423 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4424 { (exit 1); exit 1; }; }
4425 fi
4426 else
4427 ac_cv_path_GREP=$GREP
4428 fi
4429
4430 fi
4431 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4432 $as_echo "$ac_cv_path_GREP" >&6; }
4433 GREP="$ac_cv_path_GREP"
4434
4435
4436 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4437 $as_echo_n "checking for egrep... " >&6; }
4438 if test "${ac_cv_path_EGREP+set}" = set; then
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4442 then ac_cv_path_EGREP="$GREP -E"
4443 else
4444 if test -z "$EGREP"; then
4445 ac_path_EGREP_found=false
4446 # Loop through the user's path and test for each of PROGNAME-LIST
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4449 do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_prog in egrep; do
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4455 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4456 # Check for GNU ac_path_EGREP and select it if it is found.
4457 # Check for GNU $ac_path_EGREP
4458 case `"$ac_path_EGREP" --version 2>&1` in
4459 *GNU*)
4460 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4461 *)
4462 ac_count=0
4463 $as_echo_n 0123456789 >"conftest.in"
4464 while :
4465 do
4466 cat "conftest.in" "conftest.in" >"conftest.tmp"
4467 mv "conftest.tmp" "conftest.in"
4468 cp "conftest.in" "conftest.nl"
4469 $as_echo 'EGREP' >> "conftest.nl"
4470 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4472 ac_count=`expr $ac_count + 1`
4473 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_EGREP="$ac_path_EGREP"
4476 ac_path_EGREP_max=$ac_count
4477 fi
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4480 done
4481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482 esac
4483
4484 $ac_path_EGREP_found && break 3
4485 done
4486 done
4487 done
4488 IFS=$as_save_IFS
4489 if test -z "$ac_cv_path_EGREP"; then
4490 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4491 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4492 { (exit 1); exit 1; }; }
4493 fi
4494 else
4495 ac_cv_path_EGREP=$EGREP
4496 fi
4497
4498 fi
4499 fi
4500 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4501 $as_echo "$ac_cv_path_EGREP" >&6; }
4502 EGREP="$ac_cv_path_EGREP"
4503
4504
4505 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4506 $as_echo_n "checking for ANSI C header files... " >&6; }
4507 if test "${ac_cv_header_stdc+set}" = set; then
4508 $as_echo_n "(cached) " >&6
4509 else
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 #include <stdlib.h>
4517 #include <stdarg.h>
4518 #include <string.h>
4519 #include <float.h>
4520
4521 int
4522 main ()
4523 {
4524
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext
4530 if { (ac_try="$ac_compile"
4531 case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534 esac
4535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4536 $as_echo "$ac_try_echo") >&5
4537 (eval "$ac_compile") 2>conftest.er1
4538 ac_status=$?
4539 grep -v '^ *+' conftest.er1 >conftest.err
4540 rm -f conftest.er1
4541 cat conftest.err >&5
4542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && {
4544 test -z "$ac_c_werror_flag" ||
4545 test ! -s conftest.err
4546 } && test -s conftest.$ac_objext; then
4547 ac_cv_header_stdc=yes
4548 else
4549 $as_echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 ac_cv_header_stdc=no
4553 fi
4554
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556
4557 if test $ac_cv_header_stdc = yes; then
4558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 #include <string.h>
4566
4567 _ACEOF
4568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4569 $EGREP "memchr" >/dev/null 2>&1; then
4570 :
4571 else
4572 ac_cv_header_stdc=no
4573 fi
4574 rm -f conftest*
4575
4576 fi
4577
4578 if test $ac_cv_header_stdc = yes; then
4579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4580 cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h. */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 #include <stdlib.h>
4587
4588 _ACEOF
4589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4590 $EGREP "free" >/dev/null 2>&1; then
4591 :
4592 else
4593 ac_cv_header_stdc=no
4594 fi
4595 rm -f conftest*
4596
4597 fi
4598
4599 if test $ac_cv_header_stdc = yes; then
4600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4601 if test "$cross_compiling" = yes; then
4602 :
4603 else
4604 cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 #include <ctype.h>
4611 #include <stdlib.h>
4612 #if ((' ' & 0x0FF) == 0x020)
4613 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4614 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4615 #else
4616 # define ISLOWER(c) \
4617 (('a' <= (c) && (c) <= 'i') \
4618 || ('j' <= (c) && (c) <= 'r') \
4619 || ('s' <= (c) && (c) <= 'z'))
4620 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4621 #endif
4622
4623 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4624 int
4625 main ()
4626 {
4627 int i;
4628 for (i = 0; i < 256; i++)
4629 if (XOR (islower (i), ISLOWER (i))
4630 || toupper (i) != TOUPPER (i))
4631 return 2;
4632 return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest$ac_exeext
4636 if { (ac_try="$ac_link"
4637 case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640 esac
4641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4642 $as_echo "$ac_try_echo") >&5
4643 (eval "$ac_link") 2>&5
4644 ac_status=$?
4645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4647 { (case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652 $as_echo "$ac_try_echo") >&5
4653 (eval "$ac_try") 2>&5
4654 ac_status=$?
4655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 :
4658 else
4659 $as_echo "$as_me: program exited with status $ac_status" >&5
4660 $as_echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663 ( exit $ac_status )
4664 ac_cv_header_stdc=no
4665 fi
4666 rm -rf conftest.dSYM
4667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4668 fi
4669
4670
4671 fi
4672 fi
4673 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4674 $as_echo "$ac_cv_header_stdc" >&6; }
4675 if test $ac_cv_header_stdc = yes; then
4676
4677 cat >>confdefs.h <<\_ACEOF
4678 #define STDC_HEADERS 1
4679 _ACEOF
4680
4681 fi
4682
4683 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4694 inttypes.h stdint.h unistd.h
4695 do
4696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4697 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4698 $as_echo_n "checking for $ac_header... " >&6; }
4699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4700 $as_echo_n "(cached) " >&6
4701 else
4702 cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h. */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 $ac_includes_default
4709
4710 #include <$ac_header>
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (ac_try="$ac_compile"
4714 case "(($ac_try" in
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4717 esac
4718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4719 $as_echo "$ac_try_echo") >&5
4720 (eval "$ac_compile") 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } && {
4727 test -z "$ac_c_werror_flag" ||
4728 test ! -s conftest.err
4729 } && test -s conftest.$ac_objext; then
4730 eval "$as_ac_Header=yes"
4731 else
4732 $as_echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 eval "$as_ac_Header=no"
4736 fi
4737
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 fi
4740 ac_res=`eval 'as_val=${'$as_ac_Header'}
4741 $as_echo "$as_val"'`
4742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4743 $as_echo "$ac_res" >&6; }
4744 as_val=`eval 'as_val=${'$as_ac_Header'}
4745 $as_echo "$as_val"'`
4746 if test "x$as_val" = x""yes; then
4747 cat >>confdefs.h <<_ACEOF
4748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 _ACEOF
4750
4751 fi
4752
4753 done
4754
4755
4756
4757 # Check whether --with-gmp was given.
4758 if test "${with_gmp+set}" = set; then
4759 withval=$with_gmp;
4760 { $as_echo "$as_me:$LINENO: checking for __gmp_rand in -lgmp" >&5
4761 $as_echo_n "checking for __gmp_rand in -lgmp... " >&6; }
4762 if test "${ac_cv_lib_gmp___gmp_rand+set}" = set; then
4763 $as_echo_n "(cached) " >&6
4764 else
4765 ac_check_lib_save_LIBS=$LIBS
4766 LIBS="-lgmp $LIBS"
4767 cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h. */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4773
4774 /* Override any GCC internal prototype to avoid an error.
4775 Use char because int might match the return type of a GCC
4776 builtin and then its argument prototype would still apply. */
4777 #ifdef __cplusplus
4778 extern "C"
4779 #endif
4780 char __gmp_rand ();
4781 int
4782 main ()
4783 {
4784 return __gmp_rand ();
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext conftest$ac_exeext
4790 if { (ac_try="$ac_link"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796 $as_echo "$ac_try_echo") >&5
4797 (eval "$ac_link") 2>conftest.er1
4798 ac_status=$?
4799 grep -v '^ *+' conftest.er1 >conftest.err
4800 rm -f conftest.er1
4801 cat conftest.err >&5
4802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } && {
4804 test -z "$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4806 } && test -s conftest$ac_exeext && {
4807 test "$cross_compiling" = yes ||
4808 $as_test_x conftest$ac_exeext
4809 }; then
4810 ac_cv_lib_gmp___gmp_rand=yes
4811 else
4812 $as_echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_cv_lib_gmp___gmp_rand=no
4816 fi
4817
4818 rm -rf conftest.dSYM
4819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4820 conftest$ac_exeext conftest.$ac_ext
4821 LIBS=$ac_check_lib_save_LIBS
4822 fi
4823 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmp_rand" >&5
4824 $as_echo "$ac_cv_lib_gmp___gmp_rand" >&6; }
4825 if test "x$ac_cv_lib_gmp___gmp_rand" = x""yes; then
4826 cat >>confdefs.h <<_ACEOF
4827 #define HAVE_LIBGMP 1
4828 _ACEOF
4829
4830 LIBS="-lgmp $LIBS"
4831
4832 fi
4833
4834
4835 for ac_header in gmp.h
4836 do
4837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4839 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4840 $as_echo_n "checking for $ac_header... " >&6; }
4841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4842 $as_echo_n "(cached) " >&6
4843 fi
4844 ac_res=`eval 'as_val=${'$as_ac_Header'}
4845 $as_echo "$as_val"'`
4846 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4847 $as_echo "$ac_res" >&6; }
4848 else
4849 # Is the header compilable?
4850 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4851 $as_echo_n "checking $ac_header usability... " >&6; }
4852 cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 $ac_includes_default
4859 #include <$ac_header>
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (ac_try="$ac_compile"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4868 $as_echo "$ac_try_echo") >&5
4869 (eval "$ac_compile") 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && {
4876 test -z "$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 } && test -s conftest.$ac_objext; then
4879 ac_header_compiler=yes
4880 else
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 ac_header_compiler=no
4885 fi
4886
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4889 $as_echo "$ac_header_compiler" >&6; }
4890
4891 # Is the header present?
4892 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4893 $as_echo_n "checking $ac_header presence... " >&6; }
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <$ac_header>
4901 _ACEOF
4902 if { (ac_try="$ac_cpp conftest.$ac_ext"
4903 case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906 esac
4907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4908 $as_echo "$ac_try_echo") >&5
4909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4910 ac_status=$?
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
4914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } >/dev/null && {
4916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4917 test ! -s conftest.err
4918 }; then
4919 ac_header_preproc=yes
4920 else
4921 $as_echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924 ac_header_preproc=no
4925 fi
4926
4927 rm -f conftest.err conftest.$ac_ext
4928 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4929 $as_echo "$ac_header_preproc" >&6; }
4930
4931 # So? What about this header?
4932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4933 yes:no: )
4934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4935 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4937 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4938 ac_header_preproc=yes
4939 ;;
4940 no:yes:* )
4941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4942 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4944 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4946 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4948 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4950 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4952 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4953 ( cat <<\_ASBOX
4954 ## ----------------------------------------- ##
4955 ## Report this to trousers-tech (at] lists.sf.net ##
4956 ## ----------------------------------------- ##
4957 _ASBOX
4958 ) | sed "s/^/$as_me: WARNING: /" >&2
4959 ;;
4960 esac
4961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4962 $as_echo_n "checking for $ac_header... " >&6; }
4963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4964 $as_echo_n "(cached) " >&6
4965 else
4966 eval "$as_ac_Header=\$ac_header_preproc"
4967 fi
4968 ac_res=`eval 'as_val=${'$as_ac_Header'}
4969 $as_echo "$as_val"'`
4970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4971 $as_echo "$ac_res" >&6; }
4972
4973 fi
4974 as_val=`eval 'as_val=${'$as_ac_Header'}
4975 $as_echo "$as_val"'`
4976 if test "x$as_val" = x""yes; then
4977 cat >>confdefs.h <<_ACEOF
4978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4979 _ACEOF
4980
4981 fi
4982
4983 done
4984
4985 MATH_DEFINE=BI_GMP
4986 { $as_echo "$as_me:$LINENO: result: *** Enabling GMP lib at user request ***" >&5
4987 $as_echo "*** Enabling GMP lib at user request ***" >&6; }
4988
4989 fi
4990
4991
4992 case "$MATH_DEFINE" in
4993 BI_OPENSSL)
4994
4995
4996 for ac_header in openssl/bn.h openssl/engine.h
4997 do
4998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5000 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5001 $as_echo_n "checking for $ac_header... " >&6; }
5002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5003 $as_echo_n "(cached) " >&6
5004 fi
5005 ac_res=`eval 'as_val=${'$as_ac_Header'}
5006 $as_echo "$as_val"'`
5007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5008 $as_echo "$ac_res" >&6; }
5009 else
5010 # Is the header compilable?
5011 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5012 $as_echo_n "checking $ac_header usability... " >&6; }
5013 cat >conftest.$ac_ext <<_ACEOF
5014 /* confdefs.h. */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5020 #include <$ac_header>
5021 _ACEOF
5022 rm -f conftest.$ac_objext
5023 if { (ac_try="$ac_compile"
5024 case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027 esac
5028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5029 $as_echo "$ac_try_echo") >&5
5030 (eval "$ac_compile") 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && {
5037 test -z "$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 } && test -s conftest.$ac_objext; then
5040 ac_header_compiler=yes
5041 else
5042 $as_echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5044
5045 ac_header_compiler=no
5046 fi
5047
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5050 $as_echo "$ac_header_compiler" >&6; }
5051
5052 # Is the header present?
5053 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5054 $as_echo_n "checking $ac_header presence... " >&6; }
5055 cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 #include <$ac_header>
5062 _ACEOF
5063 if { (ac_try="$ac_cpp conftest.$ac_ext"
5064 case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5067 esac
5068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5069 $as_echo "$ac_try_echo") >&5
5070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } >/dev/null && {
5077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5078 test ! -s conftest.err
5079 }; then
5080 ac_header_preproc=yes
5081 else
5082 $as_echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085 ac_header_preproc=no
5086 fi
5087
5088 rm -f conftest.err conftest.$ac_ext
5089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5090 $as_echo "$ac_header_preproc" >&6; }
5091
5092 # So? What about this header?
5093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5094 yes:no: )
5095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5096 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5099 ac_header_preproc=yes
5100 ;;
5101 no:yes:* )
5102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5103 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5105 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5107 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5109 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5113 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5114 ( cat <<\_ASBOX
5115 ## ----------------------------------------- ##
5116 ## Report this to trousers-tech (at] lists.sf.net ##
5117 ## ----------------------------------------- ##
5118 _ASBOX
5119 ) | sed "s/^/$as_me: WARNING: /" >&2
5120 ;;
5121 esac
5122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5123 $as_echo_n "checking for $ac_header... " >&6; }
5124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5125 $as_echo_n "(cached) " >&6
5126 else
5127 eval "$as_ac_Header=\$ac_header_preproc"
5128 fi
5129 ac_res=`eval 'as_val=${'$as_ac_Header'}
5130 $as_echo "$as_val"'`
5131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5132 $as_echo "$ac_res" >&6; }
5133
5134 fi
5135 as_val=`eval 'as_val=${'$as_ac_Header'}
5136 $as_echo "$as_val"'`
5137 if test "x$as_val" = x""yes; then
5138 cat >>confdefs.h <<_ACEOF
5139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5140 _ACEOF
5141
5142 fi
5143
5144 done
5145
5146 ;;
5147 esac
5148 CFLAGS="$CFLAGS -D$MATH_DEFINE"
5149
5150 GUI=openssl
5151
5152 # Check whether --with-gui was given.
5153 if test "${with_gui+set}" = set; then
5154 withval=$with_gui; GUI=$withval
5155 fi
5156
5157
5158 if test "x$GUI" = "xgtk"; then
5159 # section imported from Glade compile
5160 pkg_modules="gtk+-2.0 >= 2.0.0"
5161
5162
5163 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5164 if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5166 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5170 $as_echo_n "(cached) " >&6
5171 else
5172 case $PKG_CONFIG in
5173 [\\/]* | ?:[\\/]*)
5174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5175 ;;
5176 *)
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192 ;;
5193 esac
5194 fi
5195 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5196 if test -n "$PKG_CONFIG"; then
5197 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5198 $as_echo "$PKG_CONFIG" >&6; }
5199 else
5200 { $as_echo "$as_me:$LINENO: result: no" >&5
5201 $as_echo "no" >&6; }
5202 fi
5203
5204
5205 fi
5206 if test -z "$ac_cv_path_PKG_CONFIG"; then
5207 ac_pt_PKG_CONFIG=$PKG_CONFIG
5208 # Extract the first word of "pkg-config", so it can be a program name with args.
5209 set dummy pkg-config; ac_word=$2
5210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5213 $as_echo_n "(cached) " >&6
5214 else
5215 case $ac_pt_PKG_CONFIG in
5216 [\\/]* | ?:[\\/]*)
5217 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5218 ;;
5219 *)
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 ;;
5236 esac
5237 fi
5238 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5239 if test -n "$ac_pt_PKG_CONFIG"; then
5240 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5241 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5242 else
5243 { $as_echo "$as_me:$LINENO: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247 if test "x$ac_pt_PKG_CONFIG" = x; then
5248 PKG_CONFIG=""
5249 else
5250 case $cross_compiling:$ac_tool_warned in
5251 yes:)
5252 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254 ac_tool_warned=yes ;;
5255 esac
5256 PKG_CONFIG=$ac_pt_PKG_CONFIG
5257 fi
5258 else
5259 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5260 fi
5261
5262 fi
5263 if test -n "$PKG_CONFIG"; then
5264 _pkg_min_version=0.9.0
5265 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5266 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5267 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5268 { $as_echo "$as_me:$LINENO: result: yes" >&5
5269 $as_echo "yes" >&6; }
5270 else
5271 { $as_echo "$as_me:$LINENO: result: no" >&5
5272 $as_echo "no" >&6; }
5273 PKG_CONFIG=""
5274 fi
5275
5276 fi
5277
5278 pkg_failed=no
5279 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
5280 $as_echo_n "checking for GTK... " >&6; }
5281
5282 if test -n "$GTK_CFLAGS"; then
5283 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
5284 elif test -n "$PKG_CONFIG"; then
5285 if test -n "$PKG_CONFIG" && \
5286 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
5287 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5288 ac_status=$?
5289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; then
5291 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
5292 else
5293 pkg_failed=yes
5294 fi
5295 else
5296 pkg_failed=untried
5297 fi
5298 if test -n "$GTK_LIBS"; then
5299 pkg_cv_GTK_LIBS="$GTK_LIBS"
5300 elif test -n "$PKG_CONFIG"; then
5301 if test -n "$PKG_CONFIG" && \
5302 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
5303 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
5304 ac_status=$?
5305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; then
5307 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
5308 else
5309 pkg_failed=yes
5310 fi
5311 else
5312 pkg_failed=untried
5313 fi
5314
5315
5316
5317 if test $pkg_failed = yes; then
5318
5319 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5320 _pkg_short_errors_supported=yes
5321 else
5322 _pkg_short_errors_supported=no
5323 fi
5324 if test $_pkg_short_errors_supported = yes; then
5325 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$pkg_modules" 2>&1`
5326 else
5327 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "$pkg_modules" 2>&1`
5328 fi
5329 # Put the nasty error message in config.log where it belongs
5330 echo "$GTK_PKG_ERRORS" >&5
5331
5332 { $as_echo "$as_me:$LINENO: result: no" >&5
5333 $as_echo "no" >&6; }
5334 if false; then
5335 HAVE_GTK_TRUE=
5336 HAVE_GTK_FALSE='#'
5337 else
5338 HAVE_GTK_TRUE='#'
5339 HAVE_GTK_FALSE=
5340 fi
5341
5342 { { $as_echo "$as_me:$LINENO: error: Please install the gtk2-devel package for your distro or select another gui option." >&5
5343 $as_echo "$as_me: error: Please install the gtk2-devel package for your distro or select another gui option." >&2;}
5344 { (exit 1); exit 1; }; }
5345 elif test $pkg_failed = untried; then
5346 if false; then
5347 HAVE_GTK_TRUE=
5348 HAVE_GTK_FALSE='#'
5349 else
5350 HAVE_GTK_TRUE='#'
5351 HAVE_GTK_FALSE=
5352 fi
5353
5354 { { $as_echo "$as_me:$LINENO: error: Please install the gtk2-devel package for your distro or select another gui option." >&5
5355 $as_echo "$as_me: error: Please install the gtk2-devel package for your distro or select another gui option." >&2;}
5356 { (exit 1); exit 1; }; }
5357 else
5358 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
5359 GTK_LIBS=$pkg_cv_GTK_LIBS
5360 { $as_echo "$as_me:$LINENO: result: yes" >&5
5361 $as_echo "yes" >&6; }
5362 if true; then
5363 HAVE_GTK_TRUE=
5364 HAVE_GTK_FALSE='#'
5365 else
5366 HAVE_GTK_TRUE='#'
5367 HAVE_GTK_FALSE=
5368 fi
5369
5370 fi
5371 if false; then
5372 OPENSSL_UI_TRUE=
5373 OPENSSL_UI_FALSE='#'
5374 else
5375 OPENSSL_UI_TRUE='#'
5376 OPENSSL_UI_FALSE=
5377 fi
5378
5379
5380
5381 elif test "x$GUI" = "xopenssl"; then
5382 # We know we have OpenSSL
5383 if true; then
5384 OPENSSL_UI_TRUE=
5385 OPENSSL_UI_FALSE='#'
5386 else
5387 OPENSSL_UI_TRUE='#'
5388 OPENSSL_UI_FALSE=
5389 fi
5390
5391 if false; then
5392 HAVE_GTK_TRUE=
5393 HAVE_GTK_FALSE='#'
5394 else
5395 HAVE_GTK_TRUE='#'
5396 HAVE_GTK_FALSE=
5397 fi
5398
5399 elif test "x$GUI" = "xnone"; then
5400 if test $SPEC_COMP -eq 1; then
5401 { { $as_echo "$as_me:$LINENO: error: Popups must be enabled in strict spec compliance mode" >&5
5402 $as_echo "$as_me: error: Popups must be enabled in strict spec compliance mode" >&2;}
5403 { (exit 1); exit 1; }; }
5404 fi
5405 { $as_echo "$as_me:$LINENO: result: *** Disabling GUI popups at user request ***" >&5
5406 $as_echo "*** Disabling GUI popups at user request ***" >&6; }
5407 { $as_echo "$as_me:$LINENO: result: *** WARNING: This may break apps! ***" >&5
5408 $as_echo "*** WARNING: This may break apps! ***" >&6; }
5409 CFLAGS="$CFLAGS -DTSS_NO_GUI"
5410 if false; then
5411 HAVE_GTK_TRUE=
5412 HAVE_GTK_FALSE='#'
5413 else
5414 HAVE_GTK_TRUE='#'
5415 HAVE_GTK_FALSE=
5416 fi
5417
5418 if false; then
5419 OPENSSL_UI_TRUE=
5420 OPENSSL_UI_FALSE='#'
5421 else
5422 OPENSSL_UI_TRUE='#'
5423 OPENSSL_UI_FALSE=
5424 fi
5425
5426 else
5427 { { $as_echo "$as_me:$LINENO: error: \"gtk\", \"openssl\" and \"none\" are the only supported gui options for trousers" >&5
5428 $as_echo "$as_me: error: \"gtk\", \"openssl\" and \"none\" are the only supported gui options for trousers" >&2;}
5429 { (exit 1); exit 1; }; }
5430 fi
5431
5432 #
5433 # The default port that the TCS daemon listens on
5434 #
5435 TCSD_DEFAULT_PORT=30003
5436
5437 #
5438 # The RPC mechanism to build into both libtspi and the tcsd
5439 #
5440 # AC_SUBST(RPC, "soap")
5441 RPC="tcstp"
5442
5443
5444 #
5445 # API= The TSS API level to build by default.
5446 #
5447 # To build a 1.1 TSS, set API=1.1 (./configure --with-api=1.1)
5448 # To build a 1.2 TSS, set API=1.2 (./configure --with-api=1.2)
5449 #
5450 # In order to build a custom TSS API, set API to the lowest API level that
5451 # contains the APIs you need. For instance, if you need only APIs that are
5452 # a subset of the TSS 1.1 API, set this to 1.1. If you need any of the 1.2
5453 # APIs, you'll need to set this to 1.2. Send mail to trousers-tech (at] lists.sf.net
5454 # if you have questions.
5455 #
5456 API=1.2
5457
5458 # Check whether --with-api was given.
5459 if test "${with_api+set}" = set; then
5460 withval=$with_api; API=$withval
5461 fi
5462
5463
5464 if test "x$API" != "x1.1" && test "x$API" != "x1.2"; then
5465 { { $as_echo "$as_me:$LINENO: error: \"1.1\" and \"1.2\" are the only supported API versions for trousers.
5466 Custom API build options are available by editing 'configure.in'." >&5
5467 $as_echo "$as_me: error: \"1.1\" and \"1.2\" are the only supported API versions for trousers.
5468 Custom API build options are available by editing 'configure.in'." >&2;}
5469 { (exit 1); exit 1; }; }
5470 fi
5471
5472 if test "x$API" = "x1.1" || test "x$API" = "x1.2"; then
5473 # Tspi_Hash_GetHashValue,SetHashValue,UpdateHashValue
5474 if true; then
5475 TSS_BUILD_HASH_TRUE=
5476 TSS_BUILD_HASH_FALSE='#'
5477 else
5478 TSS_BUILD_HASH_TRUE='#'
5479 TSS_BUILD_HASH_FALSE=
5480 fi
5481
5482 # Tspi_{Get|Set}Attribdata,{Get|Set}AttribUint32
5483 if true; then
5484 TSS_BUILD_GETSET_TRUE=
5485 TSS_BUILD_GETSET_FALSE='#'
5486 else
5487 TSS_BUILD_GETSET_TRUE='#'
5488 TSS_BUILD_GETSET_FALSE=
5489 fi
5490
5491 # Tspi_TPM_GetRandom,StirRandom
5492 if true; then
5493 TSS_BUILD_RANDOM_TRUE=
5494 TSS_BUILD_RANDOM_FALSE='#'
5495 else
5496 TSS_BUILD_RANDOM_TRUE='#'
5497 TSS_BUILD_RANDOM_FALSE=
5498 fi
5499
5500 # Tspi_GetCapability (for TSP and TCS capabilities)
5501 if true; then
5502 TSS_BUILD_CAPS_TRUE=
5503 TSS_BUILD_CAPS_FALSE='#'
5504 else
5505 TSS_BUILD_CAPS_TRUE='#'
5506 TSS_BUILD_CAPS_FALSE=
5507 fi
5508
5509 # Tspi_TPM_GetCapability (for TPM chip capabilities)
5510 if true; then
5511 TSS_BUILD_CAPS_TPM_TRUE=
5512 TSS_BUILD_CAPS_TPM_FALSE='#'
5513 else
5514 TSS_BUILD_CAPS_TPM_TRUE='#'
5515 TSS_BUILD_CAPS_TPM_FALSE=
5516 fi
5517
5518 # Tspi_GetPolicyObject, Tspi_Policy_SetSecret,FlushSecret,AssignToObject
5519 if true; then
5520 TSS_BUILD_POLICY_TRUE=
5521 TSS_BUILD_POLICY_FALSE='#'
5522 else
5523 TSS_BUILD_POLICY_TRUE='#'
5524 TSS_BUILD_POLICY_FALSE=
5525 fi
5526
5527 # Tspi_TPM_DirWrite,DirRead
5528 if true; then
5529 TSS_BUILD_DIR_TRUE=
5530 TSS_BUILD_DIR_FALSE='#'
5531 else
5532 TSS_BUILD_DIR_TRUE='#'
5533 TSS_BUILD_DIR_FALSE=
5534 fi
5535
5536 # Tspi_TPM_GetEvent,GetEvents,GetEventLog
5537 if true; then
5538 TSS_BUILD_PCR_EVENTS_TRUE=
5539 TSS_BUILD_PCR_EVENTS_FALSE='#'
5540 else
5541 TSS_BUILD_PCR_EVENTS_TRUE='#'
5542 TSS_BUILD_PCR_EVENTS_FALSE=
5543 fi
5544
5545 # Tspi_Hash_Sign,VerifySignature
5546 if true; then
5547 TSS_BUILD_SIGN_TRUE=
5548 TSS_BUILD_SIGN_FALSE='#'
5549 else
5550 TSS_BUILD_SIGN_TRUE='#'
5551 TSS_BUILD_SIGN_FALSE=
5552 fi
5553
5554 # Tspi_TPM_Quote
5555 if true; then
5556 TSS_BUILD_QUOTE_TRUE=
5557 TSS_BUILD_QUOTE_FALSE='#'
5558 else
5559 TSS_BUILD_QUOTE_TRUE='#'
5560 TSS_BUILD_QUOTE_FALSE=
5561 fi
5562
5563 # Tspi_PcrComposite_{Set|Get}PcrValue,SelectPcrIndex
5564 if true; then
5565 TSS_BUILD_PCR_COMP_TRUE=
5566 TSS_BUILD_PCR_COMP_FALSE='#'
5567 else
5568 TSS_BUILD_PCR_COMP_TRUE='#'
5569 TSS_BUILD_PCR_COMP_FALSE=
5570 fi
5571
5572 # Tspi_Data_Seal,Unseal
5573 if true; then
5574 TSS_BUILD_SEAL_TRUE=
5575 TSS_BUILD_SEAL_FALSE='#'
5576 else
5577 TSS_BUILD_SEAL_TRUE='#'
5578 TSS_BUILD_SEAL_FALSE=
5579 fi
5580
5581 # Tspi_ChangeAuth,ChangeAuthAsym
5582 if true; then
5583 TSS_BUILD_CHANGEAUTH_TRUE=
5584 TSS_BUILD_CHANGEAUTH_FALSE='#'
5585 else
5586 TSS_BUILD_CHANGEAUTH_TRUE='#'
5587 TSS_BUILD_CHANGEAUTH_FALSE=
5588 fi
5589
5590 # Tspi_Data_Bind,Unbind
5591 if true; then
5592 TSS_BUILD_BIND_TRUE=
5593 TSS_BUILD_BIND_FALSE='#'
5594 else
5595 TSS_BUILD_BIND_TRUE='#'
5596 TSS_BUILD_BIND_FALSE=
5597 fi
5598
5599 # Tspi_TPM_TakeOwnership,ClearOwner (REQ: EK)
5600 if true; then
5601 TSS_BUILD_OWN_TRUE=
5602 TSS_BUILD_OWN_FALSE='#'
5603 else
5604 TSS_BUILD_OWN_TRUE='#'
5605 TSS_BUILD_OWN_FALSE=
5606 fi
5607
5608 # Tspi_TPM_CreateEndorsementKey,GetPubEndorsementKey
5609 if true; then
5610 TSS_BUILD_EK_TRUE=
5611 TSS_BUILD_EK_FALSE='#'
5612 else
5613 TSS_BUILD_EK_TRUE='#'
5614 TSS_BUILD_EK_FALSE=
5615 fi
5616
5617 # Tspi_Context_RegisterKey,UnregisterKey,LoadKeyByUUID,GetKeyByUUID,GetKeyByPublicInfo,
5618 # GetRegisteredKeysByUUID
5619 if true; then
5620 TSS_BUILD_PS_TRUE=
5621 TSS_BUILD_PS_FALSE='#'
5622 else
5623 TSS_BUILD_PS_TRUE='#'
5624 TSS_BUILD_PS_FALSE=
5625 fi
5626
5627 # Tspi_TPM_{Set|Get}Status
5628 if true; then
5629 TSS_BUILD_ADMIN_TRUE=
5630 TSS_BUILD_ADMIN_FALSE='#'
5631 else
5632 TSS_BUILD_ADMIN_TRUE='#'
5633 TSS_BUILD_ADMIN_FALSE=
5634 fi
5635
5636 # Tspi_TPM_CollateIdentityRequest,ActivateIdentity
5637 if true; then
5638 TSS_BUILD_AIK_TRUE=
5639 TSS_BUILD_AIK_FALSE='#'
5640 else
5641 TSS_BUILD_AIK_TRUE='#'
5642 TSS_BUILD_AIK_FALSE=
5643 fi
5644
5645 # Tspi_Key_CertifyKey
5646 if true; then
5647 TSS_BUILD_CERTIFY_TRUE=
5648 TSS_BUILD_CERTIFY_FALSE='#'
5649 else
5650 TSS_BUILD_CERTIFY_TRUE='#'
5651 TSS_BUILD_CERTIFY_FALSE=
5652 fi
5653
5654 # Tspi_TPM_CreateMaintenanceArchive,KillMaintenanceFeature,LoadMaintenancePubKey,
5655 # CheckMaintenancePubKey
5656 if true; then
5657 TSS_BUILD_MAINT_TRUE=
5658 TSS_BUILD_MAINT_FALSE='#'
5659 else
5660 TSS_BUILD_MAINT_TRUE='#'
5661 TSS_BUILD_MAINT_FALSE=
5662 fi
5663
5664 # Tspi_TPM_AuthorizeMigrationTicket,Key_CreateMigrationBlob,ConvertMigrationBlob
5665 if true; then
5666 TSS_BUILD_MIGRATION_TRUE=
5667 TSS_BUILD_MIGRATION_FALSE='#'
5668 else
5669 TSS_BUILD_MIGRATION_TRUE='#'
5670 TSS_BUILD_MIGRATION_FALSE=
5671 fi
5672
5673 # Tspi_Context_LoadKeyByBlob,Key_LoadKey,UnloadKey,CreateKey,WrapKey,GetPubKey
5674 if true; then
5675 TSS_BUILD_KEY_TRUE=
5676 TSS_BUILD_KEY_FALSE='#'
5677 else
5678 TSS_BUILD_KEY_TRUE='#'
5679 TSS_BUILD_KEY_FALSE=
5680 fi
5681
5682 # Tspi_TPM_PcrExtend,PcrRead,PcrReset
5683 if true; then
5684 TSS_BUILD_PCR_EXTEND_TRUE=
5685 TSS_BUILD_PCR_EXTEND_FALSE='#'
5686 else
5687 TSS_BUILD_PCR_EXTEND_TRUE='#'
5688 TSS_BUILD_PCR_EXTEND_FALSE=
5689 fi
5690
5691 # Tspi_TPM_SelfTestFull,CertifySelfTest,GetTestResult
5692 if true; then
5693 TSS_BUILD_SELFTEST_TRUE=
5694 TSS_BUILD_SELFTEST_FALSE='#'
5695 else
5696 TSS_BUILD_SELFTEST_TRUE='#'
5697 TSS_BUILD_SELFTEST_FALSE=
5698 fi
5699
5700 fi
5701
5702 if test "x$API" = "x1.2"; then
5703 if true; then
5704 TSS_BUILD_TSS12_TRUE=
5705 TSS_BUILD_TSS12_FALSE='#'
5706 else
5707 TSS_BUILD_TSS12_TRUE='#'
5708 TSS_BUILD_TSS12_FALSE=
5709 fi
5710
5711 # Don't build DAA until the API is fixed - KEY
5712 if false; then
5713 TSS_BUILD_DAA_TRUE=
5714 TSS_BUILD_DAA_FALSE='#'
5715 else
5716 TSS_BUILD_DAA_TRUE='#'
5717 TSS_BUILD_DAA_FALSE=
5718 fi
5719
5720 if true; then
5721 TSS_BUILD_PCR_COMP12_TRUE=
5722 TSS_BUILD_PCR_COMP12_FALSE='#'
5723 else
5724 TSS_BUILD_PCR_COMP12_TRUE='#'
5725 TSS_BUILD_PCR_COMP12_FALSE=
5726 fi
5727
5728 if true; then
5729 TSS_BUILD_COUNTER_TRUE=
5730 TSS_BUILD_COUNTER_FALSE='#'
5731 else
5732 TSS_BUILD_COUNTER_TRUE='#'
5733 TSS_BUILD_COUNTER_FALSE=
5734 fi
5735
5736 if true; then
5737 TSS_BUILD_TICK_TRUE=
5738 TSS_BUILD_TICK_FALSE='#'
5739 else
5740 TSS_BUILD_TICK_TRUE='#'
5741 TSS_BUILD_TICK_FALSE=
5742 fi
5743
5744 if true; then
5745 TSS_BUILD_TRANSPORT_TRUE=
5746 TSS_BUILD_TRANSPORT_FALSE='#'
5747 else
5748 TSS_BUILD_TRANSPORT_TRUE='#'
5749 TSS_BUILD_TRANSPORT_FALSE=
5750 fi
5751
5752 if true; then
5753 TSS_BUILD_ASN1_TRUE=
5754 TSS_BUILD_ASN1_FALSE='#'
5755 else
5756 TSS_BUILD_ASN1_TRUE='#'
5757 TSS_BUILD_ASN1_FALSE=
5758 fi
5759
5760 if true; then
5761 TSS_BUILD_NV_TRUE=
5762 TSS_BUILD_NV_FALSE='#'
5763 else
5764 TSS_BUILD_NV_TRUE='#'
5765 TSS_BUILD_NV_FALSE=
5766 fi
5767
5768 if true; then
5769 TSS_BUILD_AUDIT_TRUE=
5770 TSS_BUILD_AUDIT_FALSE='#'
5771 else
5772 TSS_BUILD_AUDIT_TRUE='#'
5773 TSS_BUILD_AUDIT_FALSE=
5774 fi
5775
5776 if true; then
5777 TSS_BUILD_SEALX_TRUE=
5778 TSS_BUILD_SEALX_FALSE='#'
5779 else
5780 TSS_BUILD_SEALX_TRUE='#'
5781 TSS_BUILD_SEALX_FALSE=
5782 fi
5783
5784 if true; then
5785 TSS_BUILD_DELEGATION_TRUE=
5786 TSS_BUILD_DELEGATION_FALSE='#'
5787 else
5788 TSS_BUILD_DELEGATION_TRUE='#'
5789 TSS_BUILD_DELEGATION_FALSE=
5790 fi
5791
5792 if true; then
5793 TSS_BUILD_QUOTE2_TRUE=
5794 TSS_BUILD_QUOTE2_FALSE='#'
5795 else
5796 TSS_BUILD_QUOTE2_TRUE='#'
5797 TSS_BUILD_QUOTE2_FALSE=
5798 fi
5799
5800 # CMK depends on MIGRATION
5801 if true; then
5802 TSS_BUILD_CMK_TRUE=
5803 TSS_BUILD_CMK_FALSE='#'
5804 else
5805 TSS_BUILD_CMK_TRUE='#'
5806 TSS_BUILD_CMK_FALSE=
5807 fi
5808
5809 else
5810 if false; then
5811 TSS_BUILD_TSS12_TRUE=
5812 TSS_BUILD_TSS12_FALSE='#'
5813 else
5814 TSS_BUILD_TSS12_TRUE='#'
5815 TSS_BUILD_TSS12_FALSE=
5816 fi
5817
5818 if false; then
5819 TSS_BUILD_DAA_TRUE=
5820 TSS_BUILD_DAA_FALSE='#'
5821 else
5822 TSS_BUILD_DAA_TRUE='#'
5823 TSS_BUILD_DAA_FALSE=
5824 fi
5825
5826 if false; then
5827 TSS_BUILD_PCR_COMP12_TRUE=
5828 TSS_BUILD_PCR_COMP12_FALSE='#'
5829 else
5830 TSS_BUILD_PCR_COMP12_TRUE='#'
5831 TSS_BUILD_PCR_COMP12_FALSE=
5832 fi
5833
5834 if false; then
5835 TSS_BUILD_COUNTER_TRUE=
5836 TSS_BUILD_COUNTER_FALSE='#'
5837 else
5838 TSS_BUILD_COUNTER_TRUE='#'
5839 TSS_BUILD_COUNTER_FALSE=
5840 fi
5841
5842 if false; then
5843 TSS_BUILD_TICK_TRUE=
5844 TSS_BUILD_TICK_FALSE='#'
5845 else
5846 TSS_BUILD_TICK_TRUE='#'
5847 TSS_BUILD_TICK_FALSE=
5848 fi
5849
5850 if false; then
5851 TSS_BUILD_TRANSPORT_TRUE=
5852 TSS_BUILD_TRANSPORT_FALSE='#'
5853 else
5854 TSS_BUILD_TRANSPORT_TRUE='#'
5855 TSS_BUILD_TRANSPORT_FALSE=
5856 fi
5857
5858 if false; then
5859 TSS_BUILD_ASN1_TRUE=
5860 TSS_BUILD_ASN1_FALSE='#'
5861 else
5862 TSS_BUILD_ASN1_TRUE='#'
5863 TSS_BUILD_ASN1_FALSE=
5864 fi
5865
5866 if false; then
5867 TSS_BUILD_NV_TRUE=
5868 TSS_BUILD_NV_FALSE='#'
5869 else
5870 TSS_BUILD_NV_TRUE='#'
5871 TSS_BUILD_NV_FALSE=
5872 fi
5873
5874 if false; then
5875 TSS_BUILD_AUDIT_TRUE=
5876 TSS_BUILD_AUDIT_FALSE='#'
5877 else
5878 TSS_BUILD_AUDIT_TRUE='#'
5879 TSS_BUILD_AUDIT_FALSE=
5880 fi
5881
5882 if false; then
5883 TSS_BUILD_SEALX_TRUE=
5884 TSS_BUILD_SEALX_FALSE='#'
5885 else
5886 TSS_BUILD_SEALX_TRUE='#'
5887 TSS_BUILD_SEALX_FALSE=
5888 fi
5889
5890 if false; then
5891 TSS_BUILD_DELEGATION_TRUE=
5892 TSS_BUILD_DELEGATION_FALSE='#'
5893 else
5894 TSS_BUILD_DELEGATION_TRUE='#'
5895 TSS_BUILD_DELEGATION_FALSE=
5896 fi
5897
5898 if false; then
5899 TSS_BUILD_QUOTE2_TRUE=
5900 TSS_BUILD_QUOTE2_FALSE='#'
5901 else
5902 TSS_BUILD_QUOTE2_TRUE='#'
5903 TSS_BUILD_QUOTE2_FALSE=
5904 fi
5905
5906 if false; then
5907 TSS_BUILD_CMK_TRUE=
5908 TSS_BUILD_CMK_FALSE='#'
5909 else
5910 TSS_BUILD_CMK_TRUE='#'
5911 TSS_BUILD_CMK_FALSE=
5912 fi
5913
5914 fi
5915
5916 #
5917 # There's no need to edit anything below, these conditionals control the building
5918 # of files that support the files above, which all contain TSS APIs
5919 #
5920 if test -z $TSS_BUILD_NV_TRUE; then
5921 TSS_BUILD_NV_LIST_TRUE=
5922 TSS_BUILD_NV_LIST_FALSE='#'
5923 else
5924 TSS_BUILD_NV_LIST_TRUE='#'
5925 TSS_BUILD_NV_LIST_FALSE=
5926 fi
5927
5928 if test -z $TSS_BUILD_NV_TRUE; then
5929 TSS_BUILD_NV_SUPPORT_TRUE=
5930 TSS_BUILD_NV_SUPPORT_FALSE='#'
5931 else
5932 TSS_BUILD_NV_SUPPORT_TRUE='#'
5933 TSS_BUILD_NV_SUPPORT_FALSE=
5934 fi
5935
5936 if test -z $TSS_BUILD_ADMIN_TRUE || \
5937 test -z $TSS_BUILD_CAPS_TPM_TRUE; then
5938 TSS_BUILD_GET_FLAGS_TRUE=
5939 TSS_BUILD_GET_FLAGS_FALSE='#'
5940 else
5941 TSS_BUILD_GET_FLAGS_TRUE='#'
5942 TSS_BUILD_GET_FLAGS_FALSE=
5943 fi
5944
5945 if test -z $TSS_BUILD_SEAL_TRUE || \
5946 test -z $TSS_BUILD_QUOTE_TRUE || \
5947 test -z $TSS_BUILD_PCRS_TRUE || \
5948 test -z $TSS_BUILD_PCR_COMP_TRUE || \
5949 test -z $TSS_BUILD_SEALX_TRUE; then
5950 TSS_BUILD_PCRS_LIST_TRUE=
5951 TSS_BUILD_PCRS_LIST_FALSE='#'
5952 else
5953 TSS_BUILD_PCRS_LIST_TRUE='#'
5954 TSS_BUILD_PCRS_LIST_FALSE=
5955 fi
5956
5957 if test -z $TSS_BUILD_SIGN_TRUE || test -z $TSS_BUILD_HASH_TRUE; then
5958 TSS_BUILD_HASH_LIST_TRUE=
5959 TSS_BUILD_HASH_LIST_FALSE='#'
5960 else
5961 TSS_BUILD_HASH_LIST_TRUE='#'
5962 TSS_BUILD_HASH_LIST_FALSE=
5963 fi
5964
5965 if test -z $TSS_BUILD_SEAL_TRUE || \
5966 test -z $TSS_BUILD_CHANGEAUTH_TRUE || \
5967 test -z $TSS_BUILD_BIND_TRUE || \
5968 test -z $TSS_BUILD_SEALX_TRUE; then
5969 TSS_BUILD_ENCDATA_LIST_TRUE=
5970 TSS_BUILD_ENCDATA_LIST_FALSE='#'
5971 else
5972 TSS_BUILD_ENCDATA_LIST_TRUE='#'
5973 TSS_BUILD_ENCDATA_LIST_FALSE=
5974 fi
5975
5976 if test -z $TSS_BUILD_ADMIN_TRUE || \
5977 test -z $TSS_BUILD_EK_TRUE || \
5978 test -z $TSS_BUILD_MIGRATION_TRUE || \
5979 test -z $TSS_BUILD_MAINT_TRUE || \
5980 test -z $TSS_BUILD_CERTIFY_TRUE || \
5981 test -z $TSS_BUILD_AIK_TRUE || \
5982 test -z $TSS_BUILD_QUOTE_TRUE || \
5983 test -z $TSS_BUILD_BIND_TRUE || \
5984 test -z $TSS_BUILD_CHANGEAUTH_TRUE || \
5985 test -z $TSS_BUILD_OWN_TRUE || \
5986 test -z $TSS_BUILD_SIGN_TRUE || \
5987 test -z $TSS_BUILD_PS_TRUE || \
5988 test -z $TSS_BUILD_SEAL_TRUE || \
5989 test -z $TSS_BUILD_DAA_TRUE || \
5990 test -z $TSS_BUILD_KEY_TRUE || \
5991 test -z $TSS_BUILD_SEALX_TRUE; then
5992 TSS_BUILD_RSAKEY_LIST_TRUE=
5993 TSS_BUILD_RSAKEY_LIST_FALSE='#'
5994 else
5995 TSS_BUILD_RSAKEY_LIST_TRUE='#'
5996 TSS_BUILD_RSAKEY_LIST_FALSE=
5997 fi
5998
5999 if test -z $TSS_BUILD_HASH_TRUE || \
6000 test -z $TSS_BUILD_CAPS_TRUE || \
6001 test -z $TSS_BUILD_CAPS_TPM_TRUE || \
6002 test -z $TSS_BUILD_POLICY_TRUE || \
6003 test -z $TSS_BUILD_DIR_TRUE || \
6004 test -z $TSS_BUILD_PCR_EVENTS_TRUE || \
6005 test -z $TSS_BUILD_SIGN_TRUE || \
6006 test -z $TSS_BUILD_QUOTE_TRUE || \
6007 test -z $TSS_BUILD_PCR_COMP_TRUE || \
6008 test -z $TSS_BUILD_SEAL_TRUE || \
6009 test -z $TSS_BUILD_SEALX_TRUE || \
6010 test -z $TSS_BUILD_CHANGEAUTH_TRUE || \
6011 test -z $TSS_BUILD_BIND_TRUE || \
6012 test -z $TSS_BUILD_OWN_TRUE || \
6013 test -z $TSS_BUILD_PS_TRUE || \
6014 test -z $TSS_BUILD_ADMIN_TRUE || \
6015 test -z $TSS_BUILD_AIK_TRUE || \
6016 test -z $TSS_BUILD_EK_TRUE || \
6017 test -z $TSS_BUILD_CERTIFY_TRUE || \
6018 test -z $TSS_BUILD_MAINT_TRUE || \
6019 test -z $TSS_BUILD_MIGRATION_TRUE || \
6020 test -z $TSS_BUILD_KEY_TRUE || \
6021 test -z $TSS_BUILD_PCR_EXTEND_TRUE || \
6022 test -z $TSS_BUILD_SELFTEST_TRUE || \
6023 test -z $TSS_BUILD_DAA_TRUE; then
6024 TSS_BUILD_AUTH_TRUE=
6025 TSS_BUILD_AUTH_FALSE='#'
6026 else
6027 TSS_BUILD_AUTH_TRUE='#'
6028 TSS_BUILD_AUTH_FALSE=
6029 fi
6030
6031 if test -z $TSS_BUILD_AIK_TRUE || \
6032 test -z $TSS_BUILD_CERTIFY_TRUE || \
6033 test -z $TSS_BUILD_QUOTE_TRUE || \
6034 test -z $TSS_BUILD_EK_TRUE || \
6035 test -z $TSS_BUILD_CHANGEAUTH_TRUE || \
6036 test -z $TSS_BUILD_BIND_TRUE || \
6037 test -z $TSS_BUILD_OWN_TRUE || \
6038 test -z $TSS_BUILD_SELFTEST_TRUE || \
6039 test -z $TSS_BUILD_SIGN_TRUE || \
6040 test -z $TSS_BUILD_KEY_TRUE || \
6041 test -z $TSS_BUILD_DAA_TRUE; then
6042 TSS_BUILD_ASYM_CRYPTO_TRUE=
6043 TSS_BUILD_ASYM_CRYPTO_FALSE='#'
6044 else
6045 TSS_BUILD_ASYM_CRYPTO_TRUE='#'
6046 TSS_BUILD_ASYM_CRYPTO_FALSE=
6047 fi
6048
6049 if test -z $TSS_BUILD_AIK_TRUE || \
6050 test -z $TSS_BUILD_TRANSPORT_TRUE; then
6051 TSS_BUILD_SYM_CRYPTO_TRUE=
6052 TSS_BUILD_SYM_CRYPTO_FALSE='#'
6053 else
6054 TSS_BUILD_SYM_CRYPTO_TRUE='#'
6055 TSS_BUILD_SYM_CRYPTO_FALSE=
6056 fi
6057
6058
6059 #GETTEXT_PACKAGE=trousers
6060 #AC_SUBST(GETTEXT_PACKAGE)
6061 #AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
6062
6063 #ALL_LINGUAS=""
6064 #AM_GLIB_GNU_GETTEXT
6065
6066 # end Glade section
6067
6068 if test "${ac_cv_header_pthread_h+set}" = set; then
6069 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
6070 $as_echo_n "checking for pthread.h... " >&6; }
6071 if test "${ac_cv_header_pthread_h+set}" = set; then
6072 $as_echo_n "(cached) " >&6
6073 fi
6074 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6075 $as_echo "$ac_cv_header_pthread_h" >&6; }
6076 else
6077 # Is the header compilable?
6078 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
6079 $as_echo_n "checking pthread.h usability... " >&6; }
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 $ac_includes_default
6087 #include <pthread.h>
6088 _ACEOF
6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6091 case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094 esac
6095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6096 $as_echo "$ac_try_echo") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest.$ac_objext; then
6107 ac_header_compiler=yes
6108 else
6109 $as_echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6111
6112 ac_header_compiler=no
6113 fi
6114
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6117 $as_echo "$ac_header_compiler" >&6; }
6118
6119 # Is the header present?
6120 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
6121 $as_echo_n "checking pthread.h presence... " >&6; }
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <pthread.h>
6129 _ACEOF
6130 if { (ac_try="$ac_cpp conftest.$ac_ext"
6131 case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134 esac
6135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6136 $as_echo "$ac_try_echo") >&5
6137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } >/dev/null && {
6144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 }; then
6147 ac_header_preproc=yes
6148 else
6149 $as_echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6151
6152 ac_header_preproc=no
6153 fi
6154
6155 rm -f conftest.err conftest.$ac_ext
6156 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6157 $as_echo "$ac_header_preproc" >&6; }
6158
6159 # So? What about this header?
6160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6161 yes:no: )
6162 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
6163 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6164 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
6165 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
6166 ac_header_preproc=yes
6167 ;;
6168 no:yes:* )
6169 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
6170 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
6171 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
6172 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
6173 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
6174 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
6175 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
6176 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
6177 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
6178 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
6179 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
6180 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
6181 ( cat <<\_ASBOX
6182 ## ----------------------------------------- ##
6183 ## Report this to trousers-tech (at] lists.sf.net ##
6184 ## ----------------------------------------- ##
6185 _ASBOX
6186 ) | sed "s/^/$as_me: WARNING: /" >&2
6187 ;;
6188 esac
6189 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
6190 $as_echo_n "checking for pthread.h... " >&6; }
6191 if test "${ac_cv_header_pthread_h+set}" = set; then
6192 $as_echo_n "(cached) " >&6
6193 else
6194 ac_cv_header_pthread_h=$ac_header_preproc
6195 fi
6196 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6197 $as_echo "$ac_cv_header_pthread_h" >&6; }
6198
6199 fi
6200 if test "x$ac_cv_header_pthread_h" = x""yes; then
6201
6202 cat >>confdefs.h <<\_ACEOF
6203 #define HAVE_PTHREAD_H 1
6204 _ACEOF
6205
6206 fi
6207
6208
6209
6210 # Check whether --enable-static was given.
6211 if test "${enable_static+set}" = set; then
6212 enableval=$enable_static; p=${PACKAGE-default}
6213 case $enableval in
6214 yes) enable_static=yes ;;
6215 no) enable_static=no ;;
6216 *)
6217 enable_static=no
6218 # Look at the argument we got. We use all the common list separators.
6219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6220 for pkg in $enableval; do
6221 IFS="$lt_save_ifs"
6222 if test "X$pkg" = "X$p"; then
6223 enable_static=yes
6224 fi
6225 done
6226 IFS="$lt_save_ifs"
6227 ;;
6228 esac
6229 else
6230 enable_static=no
6231 fi
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241 ac_ext=c
6242 ac_cpp='$CPP $CPPFLAGS'
6243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246 if test -n "$ac_tool_prefix"; then
6247 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6248 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6249 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if test "${ac_cv_prog_CC+set}" = set; then
6252 $as_echo_n "(cached) " >&6
6253 else
6254 if test -n "$CC"; then
6255 ac_cv_prog_CC="$CC" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 CC=$ac_cv_prog_CC
6275 if test -n "$CC"; then
6276 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6277 $as_echo "$CC" >&6; }
6278 else
6279 { $as_echo "$as_me:$LINENO: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282
6283
6284 fi
6285 if test -z "$ac_cv_prog_CC"; then
6286 ac_ct_CC=$CC
6287 # Extract the first word of "gcc", so it can be a program name with args.
6288 set dummy gcc; ac_word=$2
6289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$ac_ct_CC"; then
6295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_ac_ct_CC="gcc"
6305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6315 if test -n "$ac_ct_CC"; then
6316 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6317 $as_echo "$ac_ct_CC" >&6; }
6318 else
6319 { $as_echo "$as_me:$LINENO: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323 if test "x$ac_ct_CC" = x; then
6324 CC=""
6325 else
6326 case $cross_compiling:$ac_tool_warned in
6327 yes:)
6328 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6330 ac_tool_warned=yes ;;
6331 esac
6332 CC=$ac_ct_CC
6333 fi
6334 else
6335 CC="$ac_cv_prog_CC"
6336 fi
6337
6338 if test -z "$CC"; then
6339 if test -n "$ac_tool_prefix"; then
6340 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6341 set dummy ${ac_tool_prefix}cc; ac_word=$2
6342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if test "${ac_cv_prog_CC+set}" = set; then
6345 $as_echo_n "(cached) " >&6
6346 else
6347 if test -n "$CC"; then
6348 ac_cv_prog_CC="$CC" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_prog_CC="${ac_tool_prefix}cc"
6358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 CC=$ac_cv_prog_CC
6368 if test -n "$CC"; then
6369 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6370 $as_echo "$CC" >&6; }
6371 else
6372 { $as_echo "$as_me:$LINENO: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375
6376
6377 fi
6378 fi
6379 if test -z "$CC"; then
6380 # Extract the first word of "cc", so it can be a program name with args.
6381 set dummy cc; ac_word=$2
6382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_CC+set}" = set; then
6385 $as_echo_n "(cached) " >&6
6386 else
6387 if test -n "$CC"; then
6388 ac_cv_prog_CC="$CC" # Let the user override the test.
6389 else
6390 ac_prog_rejected=no
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6399 ac_prog_rejected=yes
6400 continue
6401 fi
6402 ac_cv_prog_CC="cc"
6403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 break 2
6405 fi
6406 done
6407 done
6408 IFS=$as_save_IFS
6409
6410 if test $ac_prog_rejected = yes; then
6411 # We found a bogon in the path, so make sure we never use it.
6412 set dummy $ac_cv_prog_CC
6413 shift
6414 if test $# != 0; then
6415 # We chose a different compiler from the bogus one.
6416 # However, it has the same basename, so the bogon will be chosen
6417 # first if we set CC to just the basename; use the full file name.
6418 shift
6419 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6420 fi
6421 fi
6422 fi
6423 fi
6424 CC=$ac_cv_prog_CC
6425 if test -n "$CC"; then
6426 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6427 $as_echo "$CC" >&6; }
6428 else
6429 { $as_echo "$as_me:$LINENO: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433
6434 fi
6435 if test -z "$CC"; then
6436 if test -n "$ac_tool_prefix"; then
6437 for ac_prog in cl.exe
6438 do
6439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_CC+set}" = set; then
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$CC"; then
6447 ac_cv_prog_CC="$CC" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460 done
6461 done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 CC=$ac_cv_prog_CC
6467 if test -n "$CC"; then
6468 { $as_echo "$as_me:$LINENO: result: $CC" >&5
6469 $as_echo "$CC" >&6; }
6470 else
6471 { $as_echo "$as_me:$LINENO: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475
6476 test -n "$CC" && break
6477 done
6478 fi
6479 if test -z "$CC"; then
6480 ac_ct_CC=$CC
6481 for ac_prog in cl.exe
6482 do
6483 # Extract the first word of "$ac_prog", so it can be a program name with args.
6484 set dummy $ac_prog; ac_word=$2
6485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -n "$ac_ct_CC"; then
6491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_CC="$ac_prog"
6501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6511 if test -n "$ac_ct_CC"; then
6512 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6513 $as_echo "$ac_ct_CC" >&6; }
6514 else
6515 { $as_echo "$as_me:$LINENO: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519
6520 test -n "$ac_ct_CC" && break
6521 done
6522
6523 if test "x$ac_ct_CC" = x; then
6524 CC=""
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6531 esac
6532 CC=$ac_ct_CC
6533 fi
6534 fi
6535
6536 fi
6537
6538
6539 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6541 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6542 See \`config.log' for more details." >&5
6543 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
6544 See \`config.log' for more details." >&2;}
6545 { (exit 1); exit 1; }; }; }
6546
6547 # Provide some information about the compiler.
6548 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
6549 set X $ac_compile
6550 ac_compiler=$2
6551 { (ac_try="$ac_compiler --version >&5"
6552 case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555 esac
6556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6557 $as_echo "$ac_try_echo") >&5
6558 (eval "$ac_compiler --version >&5") 2>&5
6559 ac_status=$?
6560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }
6562 { (ac_try="$ac_compiler -v >&5"
6563 case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566 esac
6567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6568 $as_echo "$ac_try_echo") >&5
6569 (eval "$ac_compiler -v >&5") 2>&5
6570 ac_status=$?
6571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }
6573 { (ac_try="$ac_compiler -V >&5"
6574 case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577 esac
6578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6579 $as_echo "$ac_try_echo") >&5
6580 (eval "$ac_compiler -V >&5") 2>&5
6581 ac_status=$?
6582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }
6584
6585 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6586 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6587 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6588 $as_echo_n "(cached) " >&6
6589 else
6590 cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h. */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6596
6597 int
6598 main ()
6599 {
6600 #ifndef __GNUC__
6601 choke me
6602 #endif
6603
6604 ;
6605 return 0;
6606 }
6607 _ACEOF
6608 rm -f conftest.$ac_objext
6609 if { (ac_try="$ac_compile"
6610 case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6613 esac
6614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6615 $as_echo "$ac_try_echo") >&5
6616 (eval "$ac_compile") 2>conftest.er1
6617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && {
6623 test -z "$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 } && test -s conftest.$ac_objext; then
6626 ac_compiler_gnu=yes
6627 else
6628 $as_echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_compiler_gnu=no
6632 fi
6633
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6636
6637 fi
6638 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6639 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6640 if test $ac_compiler_gnu = yes; then
6641 GCC=yes
6642 else
6643 GCC=
6644 fi
6645 ac_test_CFLAGS=${CFLAGS+set}
6646 ac_save_CFLAGS=$CFLAGS
6647 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6648 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6649 if test "${ac_cv_prog_cc_g+set}" = set; then
6650 $as_echo_n "(cached) " >&6
6651 else
6652 ac_save_c_werror_flag=$ac_c_werror_flag
6653 ac_c_werror_flag=yes
6654 ac_cv_prog_cc_g=no
6655 CFLAGS="-g"
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662
6663 int
6664 main ()
6665 {
6666
6667 ;
6668 return 0;
6669 }
6670 _ACEOF
6671 rm -f conftest.$ac_objext
6672 if { (ac_try="$ac_compile"
6673 case "(($ac_try" in
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6676 esac
6677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6678 $as_echo "$ac_try_echo") >&5
6679 (eval "$ac_compile") 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } && {
6686 test -z "$ac_c_werror_flag" ||
6687 test ! -s conftest.err
6688 } && test -s conftest.$ac_objext; then
6689 ac_cv_prog_cc_g=yes
6690 else
6691 $as_echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6693
6694 CFLAGS=""
6695 cat >conftest.$ac_ext <<_ACEOF
6696 /* confdefs.h. */
6697 _ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6701
6702 int
6703 main ()
6704 {
6705
6706 ;
6707 return 0;
6708 }
6709 _ACEOF
6710 rm -f conftest.$ac_objext
6711 if { (ac_try="$ac_compile"
6712 case "(($ac_try" in
6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714 *) ac_try_echo=$ac_try;;
6715 esac
6716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6717 $as_echo "$ac_try_echo") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest.$ac_objext; then
6728 :
6729 else
6730 $as_echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 ac_c_werror_flag=$ac_save_c_werror_flag
6734 CFLAGS="-g"
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h. */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741
6742 int
6743 main ()
6744 {
6745
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 rm -f conftest.$ac_objext
6751 if { (ac_try="$ac_compile"
6752 case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6755 esac
6756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6757 $as_echo "$ac_try_echo") >&5
6758 (eval "$ac_compile") 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && {
6765 test -z "$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 } && test -s conftest.$ac_objext; then
6768 ac_cv_prog_cc_g=yes
6769 else
6770 $as_echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6772
6773
6774 fi
6775
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 fi
6778
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 fi
6781
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 ac_c_werror_flag=$ac_save_c_werror_flag
6784 fi
6785 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6786 $as_echo "$ac_cv_prog_cc_g" >&6; }
6787 if test "$ac_test_CFLAGS" = set; then
6788 CFLAGS=$ac_save_CFLAGS
6789 elif test $ac_cv_prog_cc_g = yes; then
6790 if test "$GCC" = yes; then
6791 CFLAGS="-g -O2"
6792 else
6793 CFLAGS="-g"
6794 fi
6795 else
6796 if test "$GCC" = yes; then
6797 CFLAGS="-O2"
6798 else
6799 CFLAGS=
6800 fi
6801 fi
6802 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6803 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6804 if test "${ac_cv_prog_cc_c89+set}" = set; then
6805 $as_echo_n "(cached) " >&6
6806 else
6807 ac_cv_prog_cc_c89=no
6808 ac_save_CC=$CC
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <stdarg.h>
6816 #include <stdio.h>
6817 #include <sys/types.h>
6818 #include <sys/stat.h>
6819 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6820 struct buf { int x; };
6821 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6822 static char *e (p, i)
6823 char **p;
6824 int i;
6825 {
6826 return p[i];
6827 }
6828 static char *f (char * (*g) (char **, int), char **p, ...)
6829 {
6830 char *s;
6831 va_list v;
6832 va_start (v,p);
6833 s = g (p, va_arg (v,int));
6834 va_end (v);
6835 return s;
6836 }
6837
6838 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6839 function prototypes and stuff, but not '\xHH' hex character constants.
6840 These don't provoke an error unfortunately, instead are silently treated
6841 as 'x'. The following induces an error, until -std is added to get
6842 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6843 array size at least. It's necessary to write '\x00'==0 to get something
6844 that's true only with -std. */
6845 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6846
6847 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6848 inside strings and character constants. */
6849 #define FOO(x) 'x'
6850 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6851
6852 int test (int i, double x);
6853 struct s1 {int (*f) (int a);};
6854 struct s2 {int (*f) (double a);};
6855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6856 int argc;
6857 char **argv;
6858 int
6859 main ()
6860 {
6861 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6862 ;
6863 return 0;
6864 }
6865 _ACEOF
6866 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6867 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6868 do
6869 CC="$ac_save_CC $ac_arg"
6870 rm -f conftest.$ac_objext
6871 if { (ac_try="$ac_compile"
6872 case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875 esac
6876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877 $as_echo "$ac_try_echo") >&5
6878 (eval "$ac_compile") 2>conftest.er1
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
6883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && {
6885 test -z "$ac_c_werror_flag" ||
6886 test ! -s conftest.err
6887 } && test -s conftest.$ac_objext; then
6888 ac_cv_prog_cc_c89=$ac_arg
6889 else
6890 $as_echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6892
6893
6894 fi
6895
6896 rm -f core conftest.err conftest.$ac_objext
6897 test "x$ac_cv_prog_cc_c89" != "xno" && break
6898 done
6899 rm -f conftest.$ac_ext
6900 CC=$ac_save_CC
6901
6902 fi
6903 # AC_CACHE_VAL
6904 case "x$ac_cv_prog_cc_c89" in
6905 x)
6906 { $as_echo "$as_me:$LINENO: result: none needed" >&5
6907 $as_echo "none needed" >&6; } ;;
6908 xno)
6909 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6910 $as_echo "unsupported" >&6; } ;;
6911 *)
6912 CC="$CC $ac_cv_prog_cc_c89"
6913 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6914 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6915 esac
6916
6917
6918 ac_ext=c
6919 ac_cpp='$CPP $CPPFLAGS'
6920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6923
6924 depcc="$CC" am_compiler_list=
6925
6926 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6927 $as_echo_n "checking dependency style of $depcc... " >&6; }
6928 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6932 # We make a subdir and do the tests there. Otherwise we can end up
6933 # making bogus files that we don't know about and never remove. For
6934 # instance it was reported that on HP-UX the gcc test will end up
6935 # making a dummy file named `D' -- because `-MD' means `put the output
6936 # in D'.
6937 mkdir conftest.dir
6938 # Copy depcomp to subdir because otherwise we won't find it if we're
6939 # using a relative directory.
6940 cp "$am_depcomp" conftest.dir
6941 cd conftest.dir
6942 # We will build objects and dependencies in a subdirectory because
6943 # it helps to detect inapplicable dependency modes. For instance
6944 # both Tru64's cc and ICC support -MD to output dependencies as a
6945 # side effect of compilation, but ICC will put the dependencies in
6946 # the current directory while Tru64 will put them in the object
6947 # directory.
6948 mkdir sub
6949
6950 am_cv_CC_dependencies_compiler_type=none
6951 if test "$am_compiler_list" = ""; then
6952 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6953 fi
6954 am__universal=false
6955 case " $depcc " in #(
6956 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6957 esac
6958
6959 for depmode in $am_compiler_list; do
6960 # Setup a source with many dependencies, because some compilers
6961 # like to wrap large dependency lists on column 80 (with \), and
6962 # we should not choose a depcomp mode which is confused by this.
6963 #
6964 # We need to recreate these files for each test, as the compiler may
6965 # overwrite some of them when testing with obscure command lines.
6966 # This happens at least with the AIX C compiler.
6967 : > sub/conftest.c
6968 for i in 1 2 3 4 5 6; do
6969 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6970 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6971 # Solaris 8's {/usr,}/bin/sh.
6972 touch sub/conftst$i.h
6973 done
6974 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6975
6976 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6977 # mode. It turns out that the SunPro C++ compiler does not properly
6978 # handle `-M -o', and we need to detect this. Also, some Intel
6979 # versions had trouble with output in subdirs
6980 am__obj=sub/conftest.${OBJEXT-o}
6981 am__minus_obj="-o $am__obj"
6982 case $depmode in
6983 gcc)
6984 # This depmode causes a compiler race in universal mode.
6985 test "$am__universal" = false || continue
6986 ;;
6987 nosideeffect)
6988 # after this tag, mechanisms are not by side-effect, so they'll
6989 # only be used when explicitly requested
6990 if test "x$enable_dependency_tracking" = xyes; then
6991 continue
6992 else
6993 break
6994 fi
6995 ;;
6996 msvisualcpp | msvcmsys)
6997 # This compiler won't grok `-c -o', but also, the minuso test has
6998 # not run yet. These depmodes are late enough in the game, and
6999 # so weak that their functioning should not be impacted.
7000 am__obj=conftest.${OBJEXT-o}
7001 am__minus_obj=
7002 ;;
7003 none) break ;;
7004 esac
7005 if depmode=$depmode \
7006 source=sub/conftest.c object=$am__obj \
7007 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7008 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7009 >/dev/null 2>conftest.err &&
7010 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7011 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7012 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7013 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7014 # icc doesn't choke on unknown options, it will just issue warnings
7015 # or remarks (even with -Werror). So we grep stderr for any message
7016 # that says an option was ignored or not supported.
7017 # When given -MP, icc 7.0 and 7.1 complain thusly:
7018 # icc: Command line warning: ignoring option '-M'; no argument required
7019 # The diagnosis changed in icc 8.0:
7020 # icc: Command line remark: option '-MP' not supported
7021 if (grep 'ignoring option' conftest.err ||
7022 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7023 am_cv_CC_dependencies_compiler_type=$depmode
7024 break
7025 fi
7026 fi
7027 done
7028
7029 cd ..
7030 rm -rf conftest.dir
7031 else
7032 am_cv_CC_dependencies_compiler_type=none
7033 fi
7034
7035 fi
7036 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7037 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7038 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7039
7040 if
7041 test "x$enable_dependency_tracking" != xno \
7042 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7043 am__fastdepCC_TRUE=
7044 am__fastdepCC_FALSE='#'
7045 else
7046 am__fastdepCC_TRUE='#'
7047 am__fastdepCC_FALSE=
7048 fi
7049
7050
7051 case `pwd` in
7052 *\ * | *\ *)
7053 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7054 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7055 esac
7056
7057
7058
7059 macro_version='2.2.6b'
7060 macro_revision='1.3017'
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074 ltmain="$ac_aux_dir/ltmain.sh"
7075
7076 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7077 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7078 if test "${ac_cv_path_SED+set}" = set; then
7079 $as_echo_n "(cached) " >&6
7080 else
7081 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7082 for ac_i in 1 2 3 4 5 6 7; do
7083 ac_script="$ac_script$as_nl$ac_script"
7084 done
7085 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7086 $as_unset ac_script || ac_script=
7087 if test -z "$SED"; then
7088 ac_path_SED_found=false
7089 # Loop through the user's path and test for each of PROGNAME-LIST
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_prog in sed gsed; do
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7098 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7099 # Check for GNU ac_path_SED and select it if it is found.
7100 # Check for GNU $ac_path_SED
7101 case `"$ac_path_SED" --version 2>&1` in
7102 *GNU*)
7103 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7104 *)
7105 ac_count=0
7106 $as_echo_n 0123456789 >"conftest.in"
7107 while :
7108 do
7109 cat "conftest.in" "conftest.in" >"conftest.tmp"
7110 mv "conftest.tmp" "conftest.in"
7111 cp "conftest.in" "conftest.nl"
7112 $as_echo '' >> "conftest.nl"
7113 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7115 ac_count=`expr $ac_count + 1`
7116 if test $ac_count -gt ${ac_path_SED_max-0}; then
7117 # Best one so far, save it but keep looking for a better one
7118 ac_cv_path_SED="$ac_path_SED"
7119 ac_path_SED_max=$ac_count
7120 fi
7121 # 10*(2^10) chars as input seems more than enough
7122 test $ac_count -gt 10 && break
7123 done
7124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7125 esac
7126
7127 $ac_path_SED_found && break 3
7128 done
7129 done
7130 done
7131 IFS=$as_save_IFS
7132 if test -z "$ac_cv_path_SED"; then
7133 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
7134 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
7135 { (exit 1); exit 1; }; }
7136 fi
7137 else
7138 ac_cv_path_SED=$SED
7139 fi
7140
7141 fi
7142 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7143 $as_echo "$ac_cv_path_SED" >&6; }
7144 SED="$ac_cv_path_SED"
7145 rm -f conftest.sed
7146
7147 test -z "$SED" && SED=sed
7148 Xsed="$SED -e 1s/^X//"
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
7161 $as_echo_n "checking for fgrep... " >&6; }
7162 if test "${ac_cv_path_FGREP+set}" = set; then
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7166 then ac_cv_path_FGREP="$GREP -F"
7167 else
7168 if test -z "$FGREP"; then
7169 ac_path_FGREP_found=false
7170 # Loop through the user's path and test for each of PROGNAME-LIST
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7173 do
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_prog in fgrep; do
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7179 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7180 # Check for GNU ac_path_FGREP and select it if it is found.
7181 # Check for GNU $ac_path_FGREP
7182 case `"$ac_path_FGREP" --version 2>&1` in
7183 *GNU*)
7184 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7185 *)
7186 ac_count=0
7187 $as_echo_n 0123456789 >"conftest.in"
7188 while :
7189 do
7190 cat "conftest.in" "conftest.in" >"conftest.tmp"
7191 mv "conftest.tmp" "conftest.in"
7192 cp "conftest.in" "conftest.nl"
7193 $as_echo 'FGREP' >> "conftest.nl"
7194 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7196 ac_count=`expr $ac_count + 1`
7197 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7198 # Best one so far, save it but keep looking for a better one
7199 ac_cv_path_FGREP="$ac_path_FGREP"
7200 ac_path_FGREP_max=$ac_count
7201 fi
7202 # 10*(2^10) chars as input seems more than enough
7203 test $ac_count -gt 10 && break
7204 done
7205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7206 esac
7207
7208 $ac_path_FGREP_found && break 3
7209 done
7210 done
7211 done
7212 IFS=$as_save_IFS
7213 if test -z "$ac_cv_path_FGREP"; then
7214 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7215 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7216 { (exit 1); exit 1; }; }
7217 fi
7218 else
7219 ac_cv_path_FGREP=$FGREP
7220 fi
7221
7222 fi
7223 fi
7224 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7225 $as_echo "$ac_cv_path_FGREP" >&6; }
7226 FGREP="$ac_cv_path_FGREP"
7227
7228
7229 test -z "$GREP" && GREP=grep
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249 # Check whether --with-gnu-ld was given.
7250 if test "${with_gnu_ld+set}" = set; then
7251 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7252 else
7253 with_gnu_ld=no
7254 fi
7255
7256 ac_prog=ld
7257 if test "$GCC" = yes; then
7258 # Check if gcc -print-prog-name=ld gives a path.
7259 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7260 $as_echo_n "checking for ld used by $CC... " >&6; }
7261 case $host in
7262 *-*-mingw*)
7263 # gcc leaves a trailing carriage return which upsets mingw
7264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7265 *)
7266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7267 esac
7268 case $ac_prog in
7269 # Accept absolute paths.
7270 [\\/]* | ?:[\\/]*)
7271 re_direlt='/[^/][^/]*/\.\./'
7272 # Canonicalize the pathname of ld
7273 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7274 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7275 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7276 done
7277 test -z "$LD" && LD="$ac_prog"
7278 ;;
7279 "")
7280 # If it fails, then pretend we aren't using GCC.
7281 ac_prog=ld
7282 ;;
7283 *)
7284 # If it is relative, then search for the first ld in PATH.
7285 with_gnu_ld=unknown
7286 ;;
7287 esac
7288 elif test "$with_gnu_ld" = yes; then
7289 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7290 $as_echo_n "checking for GNU ld... " >&6; }
7291 else
7292 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7293 $as_echo_n "checking for non-GNU ld... " >&6; }
7294 fi
7295 if test "${lt_cv_path_LD+set}" = set; then
7296 $as_echo_n "(cached) " >&6
7297 else
7298 if test -z "$LD"; then
7299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7300 for ac_dir in $PATH; do
7301 IFS="$lt_save_ifs"
7302 test -z "$ac_dir" && ac_dir=.
7303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7304 lt_cv_path_LD="$ac_dir/$ac_prog"
7305 # Check to see if the program is GNU ld. I'd rather use --version,
7306 # but apparently some variants of GNU ld only accept -v.
7307 # Break only if it was the GNU/non-GNU ld that we prefer.
7308 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7309 *GNU* | *'with BFD'*)
7310 test "$with_gnu_ld" != no && break
7311 ;;
7312 *)
7313 test "$with_gnu_ld" != yes && break
7314 ;;
7315 esac
7316 fi
7317 done
7318 IFS="$lt_save_ifs"
7319 else
7320 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7321 fi
7322 fi
7323
7324 LD="$lt_cv_path_LD"
7325 if test -n "$LD"; then
7326 { $as_echo "$as_me:$LINENO: result: $LD" >&5
7327 $as_echo "$LD" >&6; }
7328 else
7329 { $as_echo "$as_me:$LINENO: result: no" >&5
7330 $as_echo "no" >&6; }
7331 fi
7332 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7333 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7334 { (exit 1); exit 1; }; }
7335 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7336 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7337 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7338 $as_echo_n "(cached) " >&6
7339 else
7340 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7341 case `$LD -v 2>&1 </dev/null` in
7342 *GNU* | *'with BFD'*)
7343 lt_cv_prog_gnu_ld=yes
7344 ;;
7345 *)
7346 lt_cv_prog_gnu_ld=no
7347 ;;
7348 esac
7349 fi
7350 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7351 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7352 with_gnu_ld=$lt_cv_prog_gnu_ld
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7363 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7364 if test "${lt_cv_path_NM+set}" = set; then
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$NM"; then
7368 # Let the user override the test.
7369 lt_cv_path_NM="$NM"
7370 else
7371 lt_nm_to_check="${ac_tool_prefix}nm"
7372 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7373 lt_nm_to_check="$lt_nm_to_check nm"
7374 fi
7375 for lt_tmp_nm in $lt_nm_to_check; do
7376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7377 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7378 IFS="$lt_save_ifs"
7379 test -z "$ac_dir" && ac_dir=.
7380 tmp_nm="$ac_dir/$lt_tmp_nm"
7381 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7382 # Check to see if the nm accepts a BSD-compat flag.
7383 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7384 # nm: unknown option "B" ignored
7385 # Tru64's nm complains that /dev/null is an invalid object file
7386 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7387 */dev/null* | *'Invalid file or object type'*)
7388 lt_cv_path_NM="$tmp_nm -B"
7389 break
7390 ;;
7391 *)
7392 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7393 */dev/null*)
7394 lt_cv_path_NM="$tmp_nm -p"
7395 break
7396 ;;
7397 *)
7398 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7399 continue # so that we can try to find one that supports BSD flags
7400 ;;
7401 esac
7402 ;;
7403 esac
7404 fi
7405 done
7406 IFS="$lt_save_ifs"
7407 done
7408 : ${lt_cv_path_NM=no}
7409 fi
7410 fi
7411 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7412 $as_echo "$lt_cv_path_NM" >&6; }
7413 if test "$lt_cv_path_NM" != "no"; then
7414 NM="$lt_cv_path_NM"
7415 else
7416 # Didn't find any BSD compatible name lister, look for dumpbin.
7417 if test -n "$ac_tool_prefix"; then
7418 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7419 do
7420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7425 $as_echo_n "(cached) " >&6
7426 else
7427 if test -n "$DUMPBIN"; then
7428 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441 done
7442 done
7443 IFS=$as_save_IFS
7444
7445 fi
7446 fi
7447 DUMPBIN=$ac_cv_prog_DUMPBIN
7448 if test -n "$DUMPBIN"; then
7449 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7450 $as_echo "$DUMPBIN" >&6; }
7451 else
7452 { $as_echo "$as_me:$LINENO: result: no" >&5
7453 $as_echo "no" >&6; }
7454 fi
7455
7456
7457 test -n "$DUMPBIN" && break
7458 done
7459 fi
7460 if test -z "$DUMPBIN"; then
7461 ac_ct_DUMPBIN=$DUMPBIN
7462 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7463 do
7464 # Extract the first word of "$ac_prog", so it can be a program name with args.
7465 set dummy $ac_prog; ac_word=$2
7466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7469 $as_echo_n "(cached) " >&6
7470 else
7471 if test -n "$ac_ct_DUMPBIN"; then
7472 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7492 if test -n "$ac_ct_DUMPBIN"; then
7493 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
7494 $as_echo "$ac_ct_DUMPBIN" >&6; }
7495 else
7496 { $as_echo "$as_me:$LINENO: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499
7500
7501 test -n "$ac_ct_DUMPBIN" && break
7502 done
7503
7504 if test "x$ac_ct_DUMPBIN" = x; then
7505 DUMPBIN=":"
7506 else
7507 case $cross_compiling:$ac_tool_warned in
7508 yes:)
7509 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511 ac_tool_warned=yes ;;
7512 esac
7513 DUMPBIN=$ac_ct_DUMPBIN
7514 fi
7515 fi
7516
7517
7518 if test "$DUMPBIN" != ":"; then
7519 NM="$DUMPBIN"
7520 fi
7521 fi
7522 test -z "$NM" && NM=nm
7523
7524
7525
7526
7527
7528
7529 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
7530 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7531 if test "${lt_cv_nm_interface+set}" = set; then
7532 $as_echo_n "(cached) " >&6
7533 else
7534 lt_cv_nm_interface="BSD nm"
7535 echo "int some_variable = 0;" > conftest.$ac_ext
7536 (eval echo "\"\$as_me:7536: $ac_compile\"" >&5)
7537 (eval "$ac_compile" 2>conftest.err)
7538 cat conftest.err >&5
7539 (eval echo "\"\$as_me:7539: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7540 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7541 cat conftest.err >&5
7542 (eval echo "\"\$as_me:7542: output\"" >&5)
7543 cat conftest.out >&5
7544 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7545 lt_cv_nm_interface="MS dumpbin"
7546 fi
7547 rm -f conftest*
7548 fi
7549 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
7550 $as_echo "$lt_cv_nm_interface" >&6; }
7551
7552 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7553 $as_echo_n "checking whether ln -s works... " >&6; }
7554 LN_S=$as_ln_s
7555 if test "$LN_S" = "ln -s"; then
7556 { $as_echo "$as_me:$LINENO: result: yes" >&5
7557 $as_echo "yes" >&6; }
7558 else
7559 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7560 $as_echo "no, using $LN_S" >&6; }
7561 fi
7562
7563 # find the maximum length of command line arguments
7564 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7565 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7566 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7567 $as_echo_n "(cached) " >&6
7568 else
7569 i=0
7570 teststring="ABCD"
7571
7572 case $build_os in
7573 msdosdjgpp*)
7574 # On DJGPP, this test can blow up pretty badly due to problems in libc
7575 # (any single argument exceeding 2000 bytes causes a buffer overrun
7576 # during glob expansion). Even if it were fixed, the result of this
7577 # check would be larger than it should be.
7578 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7579 ;;
7580
7581 gnu*)
7582 # Under GNU Hurd, this test is not required because there is
7583 # no limit to the length of command line arguments.
7584 # Libtool will interpret -1 as no limit whatsoever
7585 lt_cv_sys_max_cmd_len=-1;
7586 ;;
7587
7588 cygwin* | mingw* | cegcc*)
7589 # On Win9x/ME, this test blows up -- it succeeds, but takes
7590 # about 5 minutes as the teststring grows exponentially.
7591 # Worse, since 9x/ME are not pre-emptively multitasking,
7592 # you end up with a "frozen" computer, even though with patience
7593 # the test eventually succeeds (with a max line length of 256k).
7594 # Instead, let's just punt: use the minimum linelength reported by
7595 # all of the supported platforms: 8192 (on NT/2K/XP).
7596 lt_cv_sys_max_cmd_len=8192;
7597 ;;
7598
7599 amigaos*)
7600 # On AmigaOS with pdksh, this test takes hours, literally.
7601 # So we just punt and use a minimum line length of 8192.
7602 lt_cv_sys_max_cmd_len=8192;
7603 ;;
7604
7605 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7606 # This has been around since 386BSD, at least. Likely further.
7607 if test -x /sbin/sysctl; then
7608 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7609 elif test -x /usr/sbin/sysctl; then
7610 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7611 else
7612 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7613 fi
7614 # And add a safety zone
7615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7617 ;;
7618
7619 interix*)
7620 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7621 lt_cv_sys_max_cmd_len=196608
7622 ;;
7623
7624 osf*)
7625 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7626 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7627 # nice to cause kernel panics so lets avoid the loop below.
7628 # First set a reasonable default.
7629 lt_cv_sys_max_cmd_len=16384
7630 #
7631 if test -x /sbin/sysconfig; then
7632 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7633 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7634 esac
7635 fi
7636 ;;
7637 sco3.2v5*)
7638 lt_cv_sys_max_cmd_len=102400
7639 ;;
7640 sysv5* | sco5v6* | sysv4.2uw2*)
7641 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7642 if test -n "$kargmax"; then
7643 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7644 else
7645 lt_cv_sys_max_cmd_len=32768
7646 fi
7647 ;;
7648 *)
7649 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7650 if test -n "$lt_cv_sys_max_cmd_len"; then
7651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7653 else
7654 # Make teststring a little bigger before we do anything with it.
7655 # a 1K string should be a reasonable start.
7656 for i in 1 2 3 4 5 6 7 8 ; do
7657 teststring=$teststring$teststring
7658 done
7659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7660 # If test is not a shell built-in, we'll probably end up computing a
7661 # maximum length that is only half of the actual maximum length, but
7662 # we can't tell.
7663 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7664 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7665 test $i != 17 # 1/2 MB should be enough
7666 do
7667 i=`expr $i + 1`
7668 teststring=$teststring$teststring
7669 done
7670 # Only check the string length outside the loop.
7671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7672 teststring=
7673 # Add a significant safety factor because C++ compilers can tack on
7674 # massive amounts of additional arguments before passing them to the
7675 # linker. It appears as though 1/2 is a usable value.
7676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7677 fi
7678 ;;
7679 esac
7680
7681 fi
7682
7683 if test -n $lt_cv_sys_max_cmd_len ; then
7684 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7685 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7686 else
7687 { $as_echo "$as_me:$LINENO: result: none" >&5
7688 $as_echo "none" >&6; }
7689 fi
7690 max_cmd_len=$lt_cv_sys_max_cmd_len
7691
7692
7693
7694
7695
7696
7697 : ${CP="cp -f"}
7698 : ${MV="mv -f"}
7699 : ${RM="rm -f"}
7700
7701 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7702 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7703 # Try some XSI features
7704 xsi_shell=no
7705 ( _lt_dummy="a/b/c"
7706 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7707 = c,a/b,, \
7708 && eval 'test $(( 1 + 1 )) -eq 2 \
7709 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7710 && xsi_shell=yes
7711 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7712 $as_echo "$xsi_shell" >&6; }
7713
7714
7715 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7716 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7717 lt_shell_append=no
7718 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7719 >/dev/null 2>&1 \
7720 && lt_shell_append=yes
7721 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7722 $as_echo "$lt_shell_append" >&6; }
7723
7724
7725 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7726 lt_unset=unset
7727 else
7728 lt_unset=false
7729 fi
7730
7731
7732
7733
7734
7735 # test EBCDIC or ASCII
7736 case `echo X|tr X '\101'` in
7737 A) # ASCII based system
7738 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7739 lt_SP2NL='tr \040 \012'
7740 lt_NL2SP='tr \015\012 \040\040'
7741 ;;
7742 *) # EBCDIC based system
7743 lt_SP2NL='tr \100 \n'
7744 lt_NL2SP='tr \r\n \100\100'
7745 ;;
7746 esac
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7757 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7758 if test "${lt_cv_ld_reload_flag+set}" = set; then
7759 $as_echo_n "(cached) " >&6
7760 else
7761 lt_cv_ld_reload_flag='-r'
7762 fi
7763 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7764 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7765 reload_flag=$lt_cv_ld_reload_flag
7766 case $reload_flag in
7767 "" | " "*) ;;
7768 *) reload_flag=" $reload_flag" ;;
7769 esac
7770 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7771 case $host_os in
7772 darwin*)
7773 if test "$GCC" = yes; then
7774 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7775 else
7776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7777 fi
7778 ;;
7779 esac
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789 if test -n "$ac_tool_prefix"; then
7790 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7791 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7792 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$OBJDUMP"; then
7798 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7808 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811 done
7812 done
7813 IFS=$as_save_IFS
7814
7815 fi
7816 fi
7817 OBJDUMP=$ac_cv_prog_OBJDUMP
7818 if test -n "$OBJDUMP"; then
7819 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7820 $as_echo "$OBJDUMP" >&6; }
7821 else
7822 { $as_echo "$as_me:$LINENO: result: no" >&5
7823 $as_echo "no" >&6; }
7824 fi
7825
7826
7827 fi
7828 if test -z "$ac_cv_prog_OBJDUMP"; then
7829 ac_ct_OBJDUMP=$OBJDUMP
7830 # Extract the first word of "objdump", so it can be a program name with args.
7831 set dummy objdump; ac_word=$2
7832 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$ac_ct_OBJDUMP"; then
7838 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7842 do
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7848 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7850 fi
7851 done
7852 done
7853 IFS=$as_save_IFS
7854
7855 fi
7856 fi
7857 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7858 if test -n "$ac_ct_OBJDUMP"; then
7859 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7860 $as_echo "$ac_ct_OBJDUMP" >&6; }
7861 else
7862 { $as_echo "$as_me:$LINENO: result: no" >&5
7863 $as_echo "no" >&6; }
7864 fi
7865
7866 if test "x$ac_ct_OBJDUMP" = x; then
7867 OBJDUMP="false"
7868 else
7869 case $cross_compiling:$ac_tool_warned in
7870 yes:)
7871 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7873 ac_tool_warned=yes ;;
7874 esac
7875 OBJDUMP=$ac_ct_OBJDUMP
7876 fi
7877 else
7878 OBJDUMP="$ac_cv_prog_OBJDUMP"
7879 fi
7880
7881 test -z "$OBJDUMP" && OBJDUMP=objdump
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7892 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7893 if test "${lt_cv_deplibs_check_method+set}" = set; then
7894 $as_echo_n "(cached) " >&6
7895 else
7896 lt_cv_file_magic_cmd='$MAGIC_CMD'
7897 lt_cv_file_magic_test_file=
7898 lt_cv_deplibs_check_method='unknown'
7899 # Need to set the preceding variable on all platforms that support
7900 # interlibrary dependencies.
7901 # 'none' -- dependencies not supported.
7902 # `unknown' -- same as none, but documents that we really don't know.
7903 # 'pass_all' -- all dependencies passed with no checks.
7904 # 'test_compile' -- check by making test program.
7905 # 'file_magic [[regex]]' -- check by looking for files in library path
7906 # which responds to the $file_magic_cmd with a given extended regex.
7907 # If you have `file' or equivalent on your system and you're not sure
7908 # whether `pass_all' will *always* work, you probably want this one.
7909
7910 case $host_os in
7911 aix[4-9]*)
7912 lt_cv_deplibs_check_method=pass_all
7913 ;;
7914
7915 beos*)
7916 lt_cv_deplibs_check_method=pass_all
7917 ;;
7918
7919 bsdi[45]*)
7920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7921 lt_cv_file_magic_cmd='/usr/bin/file -L'
7922 lt_cv_file_magic_test_file=/shlib/libc.so
7923 ;;
7924
7925 cygwin*)
7926 # func_win32_libid is a shell function defined in ltmain.sh
7927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7928 lt_cv_file_magic_cmd='func_win32_libid'
7929 ;;
7930
7931 mingw* | pw32*)
7932 # Base MSYS/MinGW do not provide the 'file' command needed by
7933 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7934 # unless we find 'file', for example because we are cross-compiling.
7935 if ( file / ) >/dev/null 2>&1; then
7936 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7937 lt_cv_file_magic_cmd='func_win32_libid'
7938 else
7939 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7940 lt_cv_file_magic_cmd='$OBJDUMP -f'
7941 fi
7942 ;;
7943
7944 cegcc)
7945 # use the weaker test based on 'objdump'. See mingw*.
7946 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7947 lt_cv_file_magic_cmd='$OBJDUMP -f'
7948 ;;
7949
7950 darwin* | rhapsody*)
7951 lt_cv_deplibs_check_method=pass_all
7952 ;;
7953
7954 freebsd* | dragonfly*)
7955 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7956 case $host_cpu in
7957 i*86 )
7958 # Not sure whether the presence of OpenBSD here was a mistake.
7959 # Let's accept both of them until this is cleared up.
7960 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7961 lt_cv_file_magic_cmd=/usr/bin/file
7962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7963 ;;
7964 esac
7965 else
7966 lt_cv_deplibs_check_method=pass_all
7967 fi
7968 ;;
7969
7970 gnu*)
7971 lt_cv_deplibs_check_method=pass_all
7972 ;;
7973
7974 hpux10.20* | hpux11*)
7975 lt_cv_file_magic_cmd=/usr/bin/file
7976 case $host_cpu in
7977 ia64*)
7978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7979 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7980 ;;
7981 hppa*64*)
7982 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]'
7983 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7984 ;;
7985 *)
7986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7987 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7988 ;;
7989 esac
7990 ;;
7991
7992 interix[3-9]*)
7993 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7995 ;;
7996
7997 irix5* | irix6* | nonstopux*)
7998 case $LD in
7999 *-32|*"-32 ") libmagic=32-bit;;
8000 *-n32|*"-n32 ") libmagic=N32;;
8001 *-64|*"-64 ") libmagic=64-bit;;
8002 *) libmagic=never-match;;
8003 esac
8004 lt_cv_deplibs_check_method=pass_all
8005 ;;
8006
8007 # This must be Linux ELF.
8008 linux* | k*bsd*-gnu)
8009 lt_cv_deplibs_check_method=pass_all
8010 ;;
8011
8012 netbsd*)
8013 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8015 else
8016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8017 fi
8018 ;;
8019
8020 newos6*)
8021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8022 lt_cv_file_magic_cmd=/usr/bin/file
8023 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8024 ;;
8025
8026 *nto* | *qnx*)
8027 lt_cv_deplibs_check_method=pass_all
8028 ;;
8029
8030 openbsd*)
8031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8033 else
8034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8035 fi
8036 ;;
8037
8038 osf3* | osf4* | osf5*)
8039 lt_cv_deplibs_check_method=pass_all
8040 ;;
8041
8042 rdos*)
8043 lt_cv_deplibs_check_method=pass_all
8044 ;;
8045
8046 solaris*)
8047 lt_cv_deplibs_check_method=pass_all
8048 ;;
8049
8050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8051 lt_cv_deplibs_check_method=pass_all
8052 ;;
8053
8054 sysv4 | sysv4.3*)
8055 case $host_vendor in
8056 motorola)
8057 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]'
8058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8059 ;;
8060 ncr)
8061 lt_cv_deplibs_check_method=pass_all
8062 ;;
8063 sequent)
8064 lt_cv_file_magic_cmd='/bin/file'
8065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8066 ;;
8067 sni)
8068 lt_cv_file_magic_cmd='/bin/file'
8069 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8070 lt_cv_file_magic_test_file=/lib/libc.so
8071 ;;
8072 siemens)
8073 lt_cv_deplibs_check_method=pass_all
8074 ;;
8075 pc)
8076 lt_cv_deplibs_check_method=pass_all
8077 ;;
8078 esac
8079 ;;
8080
8081 tpf*)
8082 lt_cv_deplibs_check_method=pass_all
8083 ;;
8084 esac
8085
8086 fi
8087 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8088 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8089 file_magic_cmd=$lt_cv_file_magic_cmd
8090 deplibs_check_method=$lt_cv_deplibs_check_method
8091 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104 if test -n "$ac_tool_prefix"; then
8105 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8106 set dummy ${ac_tool_prefix}ar; ac_word=$2
8107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if test "${ac_cv_prog_AR+set}" = set; then
8110 $as_echo_n "(cached) " >&6
8111 else
8112 if test -n "$AR"; then
8113 ac_cv_prog_AR="$AR" # Let the user override the test.
8114 else
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_prog_AR="${ac_tool_prefix}ar"
8123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126 done
8127 done
8128 IFS=$as_save_IFS
8129
8130 fi
8131 fi
8132 AR=$ac_cv_prog_AR
8133 if test -n "$AR"; then
8134 { $as_echo "$as_me:$LINENO: result: $AR" >&5
8135 $as_echo "$AR" >&6; }
8136 else
8137 { $as_echo "$as_me:$LINENO: result: no" >&5
8138 $as_echo "no" >&6; }
8139 fi
8140
8141
8142 fi
8143 if test -z "$ac_cv_prog_AR"; then
8144 ac_ct_AR=$AR
8145 # Extract the first word of "ar", so it can be a program name with args.
8146 set dummy ar; ac_word=$2
8147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8150 $as_echo_n "(cached) " >&6
8151 else
8152 if test -n "$ac_ct_AR"; then
8153 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8157 do
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_ac_ct_AR="ar"
8163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8165 fi
8166 done
8167 done
8168 IFS=$as_save_IFS
8169
8170 fi
8171 fi
8172 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8173 if test -n "$ac_ct_AR"; then
8174 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8175 $as_echo "$ac_ct_AR" >&6; }
8176 else
8177 { $as_echo "$as_me:$LINENO: result: no" >&5
8178 $as_echo "no" >&6; }
8179 fi
8180
8181 if test "x$ac_ct_AR" = x; then
8182 AR="false"
8183 else
8184 case $cross_compiling:$ac_tool_warned in
8185 yes:)
8186 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8188 ac_tool_warned=yes ;;
8189 esac
8190 AR=$ac_ct_AR
8191 fi
8192 else
8193 AR="$ac_cv_prog_AR"
8194 fi
8195
8196 test -z "$AR" && AR=ar
8197 test -z "$AR_FLAGS" && AR_FLAGS=cru
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8211 set dummy ${ac_tool_prefix}strip; ac_word=$2
8212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if test "${ac_cv_prog_STRIP+set}" = set; then
8215 $as_echo_n "(cached) " >&6
8216 else
8217 if test -n "$STRIP"; then
8218 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8230 fi
8231 done
8232 done
8233 IFS=$as_save_IFS
8234
8235 fi
8236 fi
8237 STRIP=$ac_cv_prog_STRIP
8238 if test -n "$STRIP"; then
8239 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8240 $as_echo "$STRIP" >&6; }
8241 else
8242 { $as_echo "$as_me:$LINENO: result: no" >&5
8243 $as_echo "no" >&6; }
8244 fi
8245
8246
8247 fi
8248 if test -z "$ac_cv_prog_STRIP"; then
8249 ac_ct_STRIP=$STRIP
8250 # Extract the first word of "strip", so it can be a program name with args.
8251 set dummy strip; ac_word=$2
8252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8255 $as_echo_n "(cached) " >&6
8256 else
8257 if test -n "$ac_ct_STRIP"; then
8258 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8259 else
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8262 do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_prog_ac_ct_STRIP="strip"
8268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271 done
8272 done
8273 IFS=$as_save_IFS
8274
8275 fi
8276 fi
8277 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8278 if test -n "$ac_ct_STRIP"; then
8279 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8280 $as_echo "$ac_ct_STRIP" >&6; }
8281 else
8282 { $as_echo "$as_me:$LINENO: result: no" >&5
8283 $as_echo "no" >&6; }
8284 fi
8285
8286 if test "x$ac_ct_STRIP" = x; then
8287 STRIP=":"
8288 else
8289 case $cross_compiling:$ac_tool_warned in
8290 yes:)
8291 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8293 ac_tool_warned=yes ;;
8294 esac
8295 STRIP=$ac_ct_STRIP
8296 fi
8297 else
8298 STRIP="$ac_cv_prog_STRIP"
8299 fi
8300
8301 test -z "$STRIP" && STRIP=:
8302
8303
8304
8305
8306
8307
8308 if test -n "$ac_tool_prefix"; then
8309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8310 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_prog_RANLIB+set}" = set; then
8314 $as_echo_n "(cached) " >&6
8315 else
8316 if test -n "$RANLIB"; then
8317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8321 do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8329 fi
8330 done
8331 done
8332 IFS=$as_save_IFS
8333
8334 fi
8335 fi
8336 RANLIB=$ac_cv_prog_RANLIB
8337 if test -n "$RANLIB"; then
8338 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8339 $as_echo "$RANLIB" >&6; }
8340 else
8341 { $as_echo "$as_me:$LINENO: result: no" >&5
8342 $as_echo "no" >&6; }
8343 fi
8344
8345
8346 fi
8347 if test -z "$ac_cv_prog_RANLIB"; then
8348 ac_ct_RANLIB=$RANLIB
8349 # Extract the first word of "ranlib", so it can be a program name with args.
8350 set dummy ranlib; ac_word=$2
8351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test -n "$ac_ct_RANLIB"; then
8357 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8361 do
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8366 ac_cv_prog_ac_ct_RANLIB="ranlib"
8367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8369 fi
8370 done
8371 done
8372 IFS=$as_save_IFS
8373
8374 fi
8375 fi
8376 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8377 if test -n "$ac_ct_RANLIB"; then
8378 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8379 $as_echo "$ac_ct_RANLIB" >&6; }
8380 else
8381 { $as_echo "$as_me:$LINENO: result: no" >&5
8382 $as_echo "no" >&6; }
8383 fi
8384
8385 if test "x$ac_ct_RANLIB" = x; then
8386 RANLIB=":"
8387 else
8388 case $cross_compiling:$ac_tool_warned in
8389 yes:)
8390 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8392 ac_tool_warned=yes ;;
8393 esac
8394 RANLIB=$ac_ct_RANLIB
8395 fi
8396 else
8397 RANLIB="$ac_cv_prog_RANLIB"
8398 fi
8399
8400 test -z "$RANLIB" && RANLIB=:
8401
8402
8403
8404
8405
8406
8407 # Determine commands to create old-style static archives.
8408 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8409 old_postinstall_cmds='chmod 644 $oldlib'
8410 old_postuninstall_cmds=
8411
8412 if test -n "$RANLIB"; then
8413 case $host_os in
8414 openbsd*)
8415 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8416 ;;
8417 *)
8418 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8419 ;;
8420 esac
8421 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8422 fi
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457 # If no C compiler was specified, use CC.
8458 LTCC=${LTCC-"$CC"}
8459
8460 # If no C compiler flags were specified, use CFLAGS.
8461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8462
8463 # Allow CC to be a program name with arguments.
8464 compiler=$CC
8465
8466
8467 # Check for command to grab the raw symbol name followed by C symbol from nm.
8468 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8469 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8470 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8471 $as_echo_n "(cached) " >&6
8472 else
8473
8474 # These are sane defaults that work on at least a few old systems.
8475 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8476
8477 # Character class describing NM global symbol codes.
8478 symcode='[BCDEGRST]'
8479
8480 # Regexp to match symbols that can be accessed directly from C.
8481 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8482
8483 # Define system-specific variables.
8484 case $host_os in
8485 aix*)
8486 symcode='[BCDT]'
8487 ;;
8488 cygwin* | mingw* | pw32* | cegcc*)
8489 symcode='[ABCDGISTW]'
8490 ;;
8491 hpux*)
8492 if test "$host_cpu" = ia64; then
8493 symcode='[ABCDEGRST]'
8494 fi
8495 ;;
8496 irix* | nonstopux*)
8497 symcode='[BCDEGRST]'
8498 ;;
8499 osf*)
8500 symcode='[BCDEGQRST]'
8501 ;;
8502 solaris*)
8503 symcode='[BDRT]'
8504 ;;
8505 sco3.2v5*)
8506 symcode='[DT]'
8507 ;;
8508 sysv4.2uw2*)
8509 symcode='[DT]'
8510 ;;
8511 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8512 symcode='[ABDT]'
8513 ;;
8514 sysv4)
8515 symcode='[DFNSTU]'
8516 ;;
8517 esac
8518
8519 # If we're using GNU nm, then use its standard symbol codes.
8520 case `$NM -V 2>&1` in
8521 *GNU* | *'with BFD'*)
8522 symcode='[ABCDGIRSTW]' ;;
8523 esac
8524
8525 # Transform an extracted symbol line into a proper C declaration.
8526 # Some systems (esp. on ia64) link data and code symbols differently,
8527 # so use this general approach.
8528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8529
8530 # Transform an extracted symbol line into symbol name and symbol address
8531 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8532 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'"
8533
8534 # Handle CRLF in mingw tool chain
8535 opt_cr=
8536 case $build_os in
8537 mingw*)
8538 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8539 ;;
8540 esac
8541
8542 # Try without a prefix underscore, then with it.
8543 for ac_symprfx in "" "_"; do
8544
8545 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8546 symxfrm="\\1 $ac_symprfx\\2 \\2"
8547
8548 # Write the raw and C identifiers.
8549 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8550 # Fake it for dumpbin and say T for any non-static function
8551 # and D for any global variable.
8552 # Also find C++ and __fastcall symbols from MSVC++,
8553 # which start with @ or ?.
8554 lt_cv_sys_global_symbol_pipe="$AWK '"\
8555 " {last_section=section; section=\$ 3};"\
8556 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8557 " \$ 0!~/External *\|/{next};"\
8558 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8559 " {if(hide[section]) next};"\
8560 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8561 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8562 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8563 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8564 " ' prfx=^$ac_symprfx"
8565 else
8566 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8567 fi
8568
8569 # Check to see that the pipe works correctly.
8570 pipe_works=no
8571
8572 rm -f conftest*
8573 cat > conftest.$ac_ext <<_LT_EOF
8574 #ifdef __cplusplus
8575 extern "C" {
8576 #endif
8577 char nm_test_var;
8578 void nm_test_func(void);
8579 void nm_test_func(void){}
8580 #ifdef __cplusplus
8581 }
8582 #endif
8583 int main(){nm_test_var='a';nm_test_func();return(0);}
8584 _LT_EOF
8585
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>&5
8588 ac_status=$?
8589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; then
8591 # Now try to grab the symbols.
8592 nlist=conftest.nm
8593 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8594 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8595 ac_status=$?
8596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } && test -s "$nlist"; then
8598 # Try sorting and uniquifying the output.
8599 if sort "$nlist" | uniq > "$nlist"T; then
8600 mv -f "$nlist"T "$nlist"
8601 else
8602 rm -f "$nlist"T
8603 fi
8604
8605 # Make sure that we snagged all the symbols we need.
8606 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8607 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8608 cat <<_LT_EOF > conftest.$ac_ext
8609 #ifdef __cplusplus
8610 extern "C" {
8611 #endif
8612
8613 _LT_EOF
8614 # Now generate the symbol file.
8615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8616
8617 cat <<_LT_EOF >> conftest.$ac_ext
8618
8619 /* The mapping between symbol names and symbols. */
8620 const struct {
8621 const char *name;
8622 void *address;
8623 }
8624 lt__PROGRAM__LTX_preloaded_symbols[] =
8625 {
8626 { "@PROGRAM@", (void *) 0 },
8627 _LT_EOF
8628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8629 cat <<\_LT_EOF >> conftest.$ac_ext
8630 {0, (void *) 0}
8631 };
8632
8633 /* This works around a problem in FreeBSD linker */
8634 #ifdef FREEBSD_WORKAROUND
8635 static const void *lt_preloaded_setup() {
8636 return lt__PROGRAM__LTX_preloaded_symbols;
8637 }
8638 #endif
8639
8640 #ifdef __cplusplus
8641 }
8642 #endif
8643 _LT_EOF
8644 # Now try linking the two files.
8645 mv conftest.$ac_objext conftstm.$ac_objext
8646 lt_save_LIBS="$LIBS"
8647 lt_save_CFLAGS="$CFLAGS"
8648 LIBS="conftstm.$ac_objext"
8649 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8651 (eval $ac_link) 2>&5
8652 ac_status=$?
8653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8655 pipe_works=yes
8656 fi
8657 LIBS="$lt_save_LIBS"
8658 CFLAGS="$lt_save_CFLAGS"
8659 else
8660 echo "cannot find nm_test_func in $nlist" >&5
8661 fi
8662 else
8663 echo "cannot find nm_test_var in $nlist" >&5
8664 fi
8665 else
8666 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8667 fi
8668 else
8669 echo "$progname: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8671 fi
8672 rm -rf conftest* conftst*
8673
8674 # Do not use the global_symbol_pipe unless it works.
8675 if test "$pipe_works" = yes; then
8676 break
8677 else
8678 lt_cv_sys_global_symbol_pipe=
8679 fi
8680 done
8681
8682 fi
8683
8684 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8685 lt_cv_sys_global_symbol_to_cdecl=
8686 fi
8687 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8688 { $as_echo "$as_me:$LINENO: result: failed" >&5
8689 $as_echo "failed" >&6; }
8690 else
8691 { $as_echo "$as_me:$LINENO: result: ok" >&5
8692 $as_echo "ok" >&6; }
8693 fi
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716 # Check whether --enable-libtool-lock was given.
8717 if test "${enable_libtool_lock+set}" = set; then
8718 enableval=$enable_libtool_lock;
8719 fi
8720
8721 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8722
8723 # Some flags need to be propagated to the compiler or linker for good
8724 # libtool support.
8725 case $host in
8726 ia64-*-hpux*)
8727 # Find out which ABI we are using.
8728 echo 'int i;' > conftest.$ac_ext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730 (eval $ac_compile) 2>&5
8731 ac_status=$?
8732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; then
8734 case `/usr/bin/file conftest.$ac_objext` in
8735 *ELF-32*)
8736 HPUX_IA64_MODE="32"
8737 ;;
8738 *ELF-64*)
8739 HPUX_IA64_MODE="64"
8740 ;;
8741 esac
8742 fi
8743 rm -rf conftest*
8744 ;;
8745 *-*-irix6*)
8746 # Find out which ABI we are using.
8747 echo '#line 8747 "configure"' > conftest.$ac_ext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>&5
8750 ac_status=$?
8751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; then
8753 if test "$lt_cv_prog_gnu_ld" = yes; then
8754 case `/usr/bin/file conftest.$ac_objext` in
8755 *32-bit*)
8756 LD="${LD-ld} -melf32bsmip"
8757 ;;
8758 *N32*)
8759 LD="${LD-ld} -melf32bmipn32"
8760 ;;
8761 *64-bit*)
8762 LD="${LD-ld} -melf64bmip"
8763 ;;
8764 esac
8765 else
8766 case `/usr/bin/file conftest.$ac_objext` in
8767 *32-bit*)
8768 LD="${LD-ld} -32"
8769 ;;
8770 *N32*)
8771 LD="${LD-ld} -n32"
8772 ;;
8773 *64-bit*)
8774 LD="${LD-ld} -64"
8775 ;;
8776 esac
8777 fi
8778 fi
8779 rm -rf conftest*
8780 ;;
8781
8782 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8783 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8784 # Find out which ABI we are using.
8785 echo 'int i;' > conftest.$ac_ext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8787 (eval $ac_compile) 2>&5
8788 ac_status=$?
8789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; then
8791 case `/usr/bin/file conftest.o` in
8792 *32-bit*)
8793 case $host in
8794 x86_64-*kfreebsd*-gnu)
8795 LD="${LD-ld} -m elf_i386_fbsd"
8796 ;;
8797 x86_64-*linux*)
8798 LD="${LD-ld} -m elf_i386"
8799 ;;
8800 ppc64-*linux*|powerpc64-*linux*)
8801 LD="${LD-ld} -m elf32ppclinux"
8802 ;;
8803 s390x-*linux*)
8804 LD="${LD-ld} -m elf_s390"
8805 ;;
8806 sparc64-*linux*)
8807 LD="${LD-ld} -m elf32_sparc"
8808 ;;
8809 esac
8810 ;;
8811 *64-bit*)
8812 case $host in
8813 x86_64-*kfreebsd*-gnu)
8814 LD="${LD-ld} -m elf_x86_64_fbsd"
8815 ;;
8816 x86_64-*linux*)
8817 LD="${LD-ld} -m elf_x86_64"
8818 ;;
8819 ppc*-*linux*|powerpc*-*linux*)
8820 LD="${LD-ld} -m elf64ppc"
8821 ;;
8822 s390*-*linux*|s390*-*tpf*)
8823 LD="${LD-ld} -m elf64_s390"
8824 ;;
8825 sparc*-*linux*)
8826 LD="${LD-ld} -m elf64_sparc"
8827 ;;
8828 esac
8829 ;;
8830 esac
8831 fi
8832 rm -rf conftest*
8833 ;;
8834
8835 *-*-sco3.2v5*)
8836 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8837 SAVE_CFLAGS="$CFLAGS"
8838 CFLAGS="$CFLAGS -belf"
8839 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8840 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8841 if test "${lt_cv_cc_needs_belf+set}" = set; then
8842 $as_echo_n "(cached) " >&6
8843 else
8844 ac_ext=c
8845 ac_cpp='$CPP $CPPFLAGS'
8846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8849
8850 cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h. */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856
8857 int
8858 main ()
8859 {
8860
8861 ;
8862 return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest.$ac_objext conftest$ac_exeext
8866 if { (ac_try="$ac_link"
8867 case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870 esac
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873 (eval "$ac_link") 2>conftest.er1
8874 ac_status=$?
8875 grep -v '^ *+' conftest.er1 >conftest.err
8876 rm -f conftest.er1
8877 cat conftest.err >&5
8878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_c_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest$ac_exeext && {
8883 test "$cross_compiling" = yes ||
8884 $as_test_x conftest$ac_exeext
8885 }; then
8886 lt_cv_cc_needs_belf=yes
8887 else
8888 $as_echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8890
8891 lt_cv_cc_needs_belf=no
8892 fi
8893
8894 rm -rf conftest.dSYM
8895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8896 conftest$ac_exeext conftest.$ac_ext
8897 ac_ext=c
8898 ac_cpp='$CPP $CPPFLAGS'
8899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8902
8903 fi
8904 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8905 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8906 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8907 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8908 CFLAGS="$SAVE_CFLAGS"
8909 fi
8910 ;;
8911 sparc*-*solaris*)
8912 # Find out which ABI we are using.
8913 echo 'int i;' > conftest.$ac_ext
8914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8915 (eval $ac_compile) 2>&5
8916 ac_status=$?
8917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; then
8919 case `/usr/bin/file conftest.o` in
8920 *64-bit*)
8921 case $lt_cv_prog_gnu_ld in
8922 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8923 *)
8924 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8925 LD="${LD-ld} -64"
8926 fi
8927 ;;
8928 esac
8929 ;;
8930 esac
8931 fi
8932 rm -rf conftest*
8933 ;;
8934 esac
8935
8936 need_locks="$enable_libtool_lock"
8937
8938
8939 case $host_os in
8940 rhapsody* | darwin*)
8941 if test -n "$ac_tool_prefix"; then
8942 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8943 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8945 $as_echo_n "checking for $ac_word... " >&6; }
8946 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8947 $as_echo_n "(cached) " >&6
8948 else
8949 if test -n "$DSYMUTIL"; then
8950 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8951 else
8952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 for as_dir in $PATH
8954 do
8955 IFS=$as_save_IFS
8956 test -z "$as_dir" && as_dir=.
8957 for ac_exec_ext in '' $ac_executable_extensions; do
8958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8959 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8961 break 2
8962 fi
8963 done
8964 done
8965 IFS=$as_save_IFS
8966
8967 fi
8968 fi
8969 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8970 if test -n "$DSYMUTIL"; then
8971 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8972 $as_echo "$DSYMUTIL" >&6; }
8973 else
8974 { $as_echo "$as_me:$LINENO: result: no" >&5
8975 $as_echo "no" >&6; }
8976 fi
8977
8978
8979 fi
8980 if test -z "$ac_cv_prog_DSYMUTIL"; then
8981 ac_ct_DSYMUTIL=$DSYMUTIL
8982 # Extract the first word of "dsymutil", so it can be a program name with args.
8983 set dummy dsymutil; ac_word=$2
8984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8985 $as_echo_n "checking for $ac_word... " >&6; }
8986 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8987 $as_echo_n "(cached) " >&6
8988 else
8989 if test -n "$ac_ct_DSYMUTIL"; then
8990 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8991 else
8992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993 for as_dir in $PATH
8994 do
8995 IFS=$as_save_IFS
8996 test -z "$as_dir" && as_dir=.
8997 for ac_exec_ext in '' $ac_executable_extensions; do
8998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8999 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9001 break 2
9002 fi
9003 done
9004 done
9005 IFS=$as_save_IFS
9006
9007 fi
9008 fi
9009 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9010 if test -n "$ac_ct_DSYMUTIL"; then
9011 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9012 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9013 else
9014 { $as_echo "$as_me:$LINENO: result: no" >&5
9015 $as_echo "no" >&6; }
9016 fi
9017
9018 if test "x$ac_ct_DSYMUTIL" = x; then
9019 DSYMUTIL=":"
9020 else
9021 case $cross_compiling:$ac_tool_warned in
9022 yes:)
9023 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9025 ac_tool_warned=yes ;;
9026 esac
9027 DSYMUTIL=$ac_ct_DSYMUTIL
9028 fi
9029 else
9030 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9031 fi
9032
9033 if test -n "$ac_tool_prefix"; then
9034 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9035 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9037 $as_echo_n "checking for $ac_word... " >&6; }
9038 if test "${ac_cv_prog_NMEDIT+set}" = set; then
9039 $as_echo_n "(cached) " >&6
9040 else
9041 if test -n "$NMEDIT"; then
9042 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9043 else
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 for as_dir in $PATH
9046 do
9047 IFS=$as_save_IFS
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9051 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9053 break 2
9054 fi
9055 done
9056 done
9057 IFS=$as_save_IFS
9058
9059 fi
9060 fi
9061 NMEDIT=$ac_cv_prog_NMEDIT
9062 if test -n "$NMEDIT"; then
9063 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9064 $as_echo "$NMEDIT" >&6; }
9065 else
9066 { $as_echo "$as_me:$LINENO: result: no" >&5
9067 $as_echo "no" >&6; }
9068 fi
9069
9070
9071 fi
9072 if test -z "$ac_cv_prog_NMEDIT"; then
9073 ac_ct_NMEDIT=$NMEDIT
9074 # Extract the first word of "nmedit", so it can be a program name with args.
9075 set dummy nmedit; ac_word=$2
9076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9077 $as_echo_n "checking for $ac_word... " >&6; }
9078 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9079 $as_echo_n "(cached) " >&6
9080 else
9081 if test -n "$ac_ct_NMEDIT"; then
9082 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9083 else
9084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085 for as_dir in $PATH
9086 do
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9091 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9093 break 2
9094 fi
9095 done
9096 done
9097 IFS=$as_save_IFS
9098
9099 fi
9100 fi
9101 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9102 if test -n "$ac_ct_NMEDIT"; then
9103 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9104 $as_echo "$ac_ct_NMEDIT" >&6; }
9105 else
9106 { $as_echo "$as_me:$LINENO: result: no" >&5
9107 $as_echo "no" >&6; }
9108 fi
9109
9110 if test "x$ac_ct_NMEDIT" = x; then
9111 NMEDIT=":"
9112 else
9113 case $cross_compiling:$ac_tool_warned in
9114 yes:)
9115 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9117 ac_tool_warned=yes ;;
9118 esac
9119 NMEDIT=$ac_ct_NMEDIT
9120 fi
9121 else
9122 NMEDIT="$ac_cv_prog_NMEDIT"
9123 fi
9124
9125 if test -n "$ac_tool_prefix"; then
9126 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9127 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9129 $as_echo_n "checking for $ac_word... " >&6; }
9130 if test "${ac_cv_prog_LIPO+set}" = set; then
9131 $as_echo_n "(cached) " >&6
9132 else
9133 if test -n "$LIPO"; then
9134 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9135 else
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137 for as_dir in $PATH
9138 do
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9143 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9144 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 break 2
9146 fi
9147 done
9148 done
9149 IFS=$as_save_IFS
9150
9151 fi
9152 fi
9153 LIPO=$ac_cv_prog_LIPO
9154 if test -n "$LIPO"; then
9155 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
9156 $as_echo "$LIPO" >&6; }
9157 else
9158 { $as_echo "$as_me:$LINENO: result: no" >&5
9159 $as_echo "no" >&6; }
9160 fi
9161
9162
9163 fi
9164 if test -z "$ac_cv_prog_LIPO"; then
9165 ac_ct_LIPO=$LIPO
9166 # Extract the first word of "lipo", so it can be a program name with args.
9167 set dummy lipo; ac_word=$2
9168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9169 $as_echo_n "checking for $ac_word... " >&6; }
9170 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9171 $as_echo_n "(cached) " >&6
9172 else
9173 if test -n "$ac_ct_LIPO"; then
9174 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9175 else
9176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 for as_dir in $PATH
9178 do
9179 IFS=$as_save_IFS
9180 test -z "$as_dir" && as_dir=.
9181 for ac_exec_ext in '' $ac_executable_extensions; do
9182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9183 ac_cv_prog_ac_ct_LIPO="lipo"
9184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9185 break 2
9186 fi
9187 done
9188 done
9189 IFS=$as_save_IFS
9190
9191 fi
9192 fi
9193 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9194 if test -n "$ac_ct_LIPO"; then
9195 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9196 $as_echo "$ac_ct_LIPO" >&6; }
9197 else
9198 { $as_echo "$as_me:$LINENO: result: no" >&5
9199 $as_echo "no" >&6; }
9200 fi
9201
9202 if test "x$ac_ct_LIPO" = x; then
9203 LIPO=":"
9204 else
9205 case $cross_compiling:$ac_tool_warned in
9206 yes:)
9207 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9209 ac_tool_warned=yes ;;
9210 esac
9211 LIPO=$ac_ct_LIPO
9212 fi
9213 else
9214 LIPO="$ac_cv_prog_LIPO"
9215 fi
9216
9217 if test -n "$ac_tool_prefix"; then
9218 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9219 set dummy ${ac_tool_prefix}otool; ac_word=$2
9220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if test "${ac_cv_prog_OTOOL+set}" = set; then
9223 $as_echo_n "(cached) " >&6
9224 else
9225 if test -n "$OTOOL"; then
9226 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9227 else
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9230 do
9231 IFS=$as_save_IFS
9232 test -z "$as_dir" && as_dir=.
9233 for ac_exec_ext in '' $ac_executable_extensions; do
9234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9237 break 2
9238 fi
9239 done
9240 done
9241 IFS=$as_save_IFS
9242
9243 fi
9244 fi
9245 OTOOL=$ac_cv_prog_OTOOL
9246 if test -n "$OTOOL"; then
9247 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9248 $as_echo "$OTOOL" >&6; }
9249 else
9250 { $as_echo "$as_me:$LINENO: result: no" >&5
9251 $as_echo "no" >&6; }
9252 fi
9253
9254
9255 fi
9256 if test -z "$ac_cv_prog_OTOOL"; then
9257 ac_ct_OTOOL=$OTOOL
9258 # Extract the first word of "otool", so it can be a program name with args.
9259 set dummy otool; ac_word=$2
9260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9261 $as_echo_n "checking for $ac_word... " >&6; }
9262 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9263 $as_echo_n "(cached) " >&6
9264 else
9265 if test -n "$ac_ct_OTOOL"; then
9266 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9267 else
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH
9270 do
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9275 ac_cv_prog_ac_ct_OTOOL="otool"
9276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9277 break 2
9278 fi
9279 done
9280 done
9281 IFS=$as_save_IFS
9282
9283 fi
9284 fi
9285 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9286 if test -n "$ac_ct_OTOOL"; then
9287 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9288 $as_echo "$ac_ct_OTOOL" >&6; }
9289 else
9290 { $as_echo "$as_me:$LINENO: result: no" >&5
9291 $as_echo "no" >&6; }
9292 fi
9293
9294 if test "x$ac_ct_OTOOL" = x; then
9295 OTOOL=":"
9296 else
9297 case $cross_compiling:$ac_tool_warned in
9298 yes:)
9299 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9301 ac_tool_warned=yes ;;
9302 esac
9303 OTOOL=$ac_ct_OTOOL
9304 fi
9305 else
9306 OTOOL="$ac_cv_prog_OTOOL"
9307 fi
9308
9309 if test -n "$ac_tool_prefix"; then
9310 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9311 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if test "${ac_cv_prog_OTOOL64+set}" = set; then
9315 $as_echo_n "(cached) " >&6
9316 else
9317 if test -n "$OTOOL64"; then
9318 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9319 else
9320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321 for as_dir in $PATH
9322 do
9323 IFS=$as_save_IFS
9324 test -z "$as_dir" && as_dir=.
9325 for ac_exec_ext in '' $ac_executable_extensions; do
9326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9327 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9329 break 2
9330 fi
9331 done
9332 done
9333 IFS=$as_save_IFS
9334
9335 fi
9336 fi
9337 OTOOL64=$ac_cv_prog_OTOOL64
9338 if test -n "$OTOOL64"; then
9339 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9340 $as_echo "$OTOOL64" >&6; }
9341 else
9342 { $as_echo "$as_me:$LINENO: result: no" >&5
9343 $as_echo "no" >&6; }
9344 fi
9345
9346
9347 fi
9348 if test -z "$ac_cv_prog_OTOOL64"; then
9349 ac_ct_OTOOL64=$OTOOL64
9350 # Extract the first word of "otool64", so it can be a program name with args.
9351 set dummy otool64; ac_word=$2
9352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9353 $as_echo_n "checking for $ac_word... " >&6; }
9354 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9355 $as_echo_n "(cached) " >&6
9356 else
9357 if test -n "$ac_ct_OTOOL64"; then
9358 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9359 else
9360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361 for as_dir in $PATH
9362 do
9363 IFS=$as_save_IFS
9364 test -z "$as_dir" && as_dir=.
9365 for ac_exec_ext in '' $ac_executable_extensions; do
9366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9367 ac_cv_prog_ac_ct_OTOOL64="otool64"
9368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9369 break 2
9370 fi
9371 done
9372 done
9373 IFS=$as_save_IFS
9374
9375 fi
9376 fi
9377 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9378 if test -n "$ac_ct_OTOOL64"; then
9379 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9380 $as_echo "$ac_ct_OTOOL64" >&6; }
9381 else
9382 { $as_echo "$as_me:$LINENO: result: no" >&5
9383 $as_echo "no" >&6; }
9384 fi
9385
9386 if test "x$ac_ct_OTOOL64" = x; then
9387 OTOOL64=":"
9388 else
9389 case $cross_compiling:$ac_tool_warned in
9390 yes:)
9391 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9393 ac_tool_warned=yes ;;
9394 esac
9395 OTOOL64=$ac_ct_OTOOL64
9396 fi
9397 else
9398 OTOOL64="$ac_cv_prog_OTOOL64"
9399 fi
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9428 $as_echo_n "checking for -single_module linker flag... " >&6; }
9429 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9430 $as_echo_n "(cached) " >&6
9431 else
9432 lt_cv_apple_cc_single_mod=no
9433 if test -z "${LT_MULTI_MODULE}"; then
9434 # By default we will add the -single_module flag. You can override
9435 # by either setting the environment variable LT_MULTI_MODULE
9436 # non-empty at configure time, or by adding -multi_module to the
9437 # link flags.
9438 rm -rf libconftest.dylib*
9439 echo "int foo(void){return 1;}" > conftest.c
9440 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9441 -dynamiclib -Wl,-single_module conftest.c" >&5
9442 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9443 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9444 _lt_result=$?
9445 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9446 lt_cv_apple_cc_single_mod=yes
9447 else
9448 cat conftest.err >&5
9449 fi
9450 rm -rf libconftest.dylib*
9451 rm -f conftest.*
9452 fi
9453 fi
9454 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9455 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9456 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9457 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9458 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9459 $as_echo_n "(cached) " >&6
9460 else
9461 lt_cv_ld_exported_symbols_list=no
9462 save_LDFLAGS=$LDFLAGS
9463 echo "_main" > conftest.sym
9464 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9465 cat >conftest.$ac_ext <<_ACEOF
9466 /* confdefs.h. */
9467 _ACEOF
9468 cat confdefs.h >>conftest.$ac_ext
9469 cat >>conftest.$ac_ext <<_ACEOF
9470 /* end confdefs.h. */
9471
9472 int
9473 main ()
9474 {
9475
9476 ;
9477 return 0;
9478 }
9479 _ACEOF
9480 rm -f conftest.$ac_objext conftest$ac_exeext
9481 if { (ac_try="$ac_link"
9482 case "(($ac_try" in
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9485 esac
9486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9487 $as_echo "$ac_try_echo") >&5
9488 (eval "$ac_link") 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } && {
9495 test -z "$ac_c_werror_flag" ||
9496 test ! -s conftest.err
9497 } && test -s conftest$ac_exeext && {
9498 test "$cross_compiling" = yes ||
9499 $as_test_x conftest$ac_exeext
9500 }; then
9501 lt_cv_ld_exported_symbols_list=yes
9502 else
9503 $as_echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506 lt_cv_ld_exported_symbols_list=no
9507 fi
9508
9509 rm -rf conftest.dSYM
9510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9511 conftest$ac_exeext conftest.$ac_ext
9512 LDFLAGS="$save_LDFLAGS"
9513
9514 fi
9515 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9516 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9517 case $host_os in
9518 rhapsody* | darwin1.[012])
9519 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9520 darwin1.*)
9521 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9522 darwin*) # darwin 5.x on
9523 # if running on 10.5 or later, the deployment target defaults
9524 # to the OS version, if on x86, and 10.4, the deployment
9525 # target defaults to 10.4. Don't you love it?
9526 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9527 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9528 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9529 10.[012]*)
9530 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9531 10.*)
9532 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9533 esac
9534 ;;
9535 esac
9536 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9537 _lt_dar_single_mod='$single_module'
9538 fi
9539 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9540 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9541 else
9542 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9543 fi
9544 if test "$DSYMUTIL" != ":"; then
9545 _lt_dsymutil='~$DSYMUTIL $lib || :'
9546 else
9547 _lt_dsymutil=
9548 fi
9549 ;;
9550 esac
9551
9552
9553 for ac_header in dlfcn.h
9554 do
9555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9556 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9557 $as_echo_n "checking for $ac_header... " >&6; }
9558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9559 $as_echo_n "(cached) " >&6
9560 else
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 $ac_includes_default
9568
9569 #include <$ac_header>
9570 _ACEOF
9571 rm -f conftest.$ac_objext
9572 if { (ac_try="$ac_compile"
9573 case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576 esac
9577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9578 $as_echo "$ac_try_echo") >&5
9579 (eval "$ac_compile") 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 } && test -s conftest.$ac_objext; then
9589 eval "$as_ac_Header=yes"
9590 else
9591 $as_echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9593
9594 eval "$as_ac_Header=no"
9595 fi
9596
9597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9598 fi
9599 ac_res=`eval 'as_val=${'$as_ac_Header'}
9600 $as_echo "$as_val"'`
9601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9602 $as_echo "$ac_res" >&6; }
9603 as_val=`eval 'as_val=${'$as_ac_Header'}
9604 $as_echo "$as_val"'`
9605 if test "x$as_val" = x""yes; then
9606 cat >>confdefs.h <<_ACEOF
9607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9608 _ACEOF
9609
9610 fi
9611
9612 done
9613
9614
9615
9616 # Set options
9617
9618
9619
9620 enable_dlopen=no
9621
9622
9623 enable_win32_dll=no
9624
9625
9626 # Check whether --enable-shared was given.
9627 if test "${enable_shared+set}" = set; then
9628 enableval=$enable_shared; p=${PACKAGE-default}
9629 case $enableval in
9630 yes) enable_shared=yes ;;
9631 no) enable_shared=no ;;
9632 *)
9633 enable_shared=no
9634 # Look at the argument we got. We use all the common list separators.
9635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9636 for pkg in $enableval; do
9637 IFS="$lt_save_ifs"
9638 if test "X$pkg" = "X$p"; then
9639 enable_shared=yes
9640 fi
9641 done
9642 IFS="$lt_save_ifs"
9643 ;;
9644 esac
9645 else
9646 enable_shared=yes
9647 fi
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659 # Check whether --with-pic was given.
9660 if test "${with_pic+set}" = set; then
9661 withval=$with_pic; pic_mode="$withval"
9662 else
9663 pic_mode=default
9664 fi
9665
9666
9667 test -z "$pic_mode" && pic_mode=default
9668
9669
9670
9671
9672
9673
9674
9675 # Check whether --enable-fast-install was given.
9676 if test "${enable_fast_install+set}" = set; then
9677 enableval=$enable_fast_install; p=${PACKAGE-default}
9678 case $enableval in
9679 yes) enable_fast_install=yes ;;
9680 no) enable_fast_install=no ;;
9681 *)
9682 enable_fast_install=no
9683 # Look at the argument we got. We use all the common list separators.
9684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9685 for pkg in $enableval; do
9686 IFS="$lt_save_ifs"
9687 if test "X$pkg" = "X$p"; then
9688 enable_fast_install=yes
9689 fi
9690 done
9691 IFS="$lt_save_ifs"
9692 ;;
9693 esac
9694 else
9695 enable_fast_install=yes
9696 fi
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708 # This can be used to rebuild libtool when needed
9709 LIBTOOL_DEPS="$ltmain"
9710
9711 # Always use our own libtool.
9712 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738 test -z "$LN_S" && LN_S="ln -s"
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753 if test -n "${ZSH_VERSION+set}" ; then
9754 setopt NO_GLOB_SUBST
9755 fi
9756
9757 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9758 $as_echo_n "checking for objdir... " >&6; }
9759 if test "${lt_cv_objdir+set}" = set; then
9760 $as_echo_n "(cached) " >&6
9761 else
9762 rm -f .libs 2>/dev/null
9763 mkdir .libs 2>/dev/null
9764 if test -d .libs; then
9765 lt_cv_objdir=.libs
9766 else
9767 # MS-DOS does not allow filenames that begin with a dot.
9768 lt_cv_objdir=_libs
9769 fi
9770 rmdir .libs 2>/dev/null
9771 fi
9772 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9773 $as_echo "$lt_cv_objdir" >&6; }
9774 objdir=$lt_cv_objdir
9775
9776
9777
9778
9779
9780 cat >>confdefs.h <<_ACEOF
9781 #define LT_OBJDIR "$lt_cv_objdir/"
9782 _ACEOF
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800 case $host_os in
9801 aix3*)
9802 # AIX sometimes has problems with the GCC collect2 program. For some
9803 # reason, if we set the COLLECT_NAMES environment variable, the problems
9804 # vanish in a puff of smoke.
9805 if test "X${COLLECT_NAMES+set}" != Xset; then
9806 COLLECT_NAMES=
9807 export COLLECT_NAMES
9808 fi
9809 ;;
9810 esac
9811
9812 # Sed substitution that helps us do robust quoting. It backslashifies
9813 # metacharacters that are still active within double-quoted strings.
9814 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9815
9816 # Same as above, but do not quote variable references.
9817 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9818
9819 # Sed substitution to delay expansion of an escaped shell variable in a
9820 # double_quote_subst'ed string.
9821 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9822
9823 # Sed substitution to delay expansion of an escaped single quote.
9824 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9825
9826 # Sed substitution to avoid accidental globbing in evaled expressions
9827 no_glob_subst='s/\*/\\\*/g'
9828
9829 # Global variables:
9830 ofile=libtool
9831 can_build_shared=yes
9832
9833 # All known linkers require a `.a' archive for static linking (except MSVC,
9834 # which needs '.lib').
9835 libext=a
9836
9837 with_gnu_ld="$lt_cv_prog_gnu_ld"
9838
9839 old_CC="$CC"
9840 old_CFLAGS="$CFLAGS"
9841
9842 # Set sane defaults for various variables
9843 test -z "$CC" && CC=cc
9844 test -z "$LTCC" && LTCC=$CC
9845 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9846 test -z "$LD" && LD=ld
9847 test -z "$ac_objext" && ac_objext=o
9848
9849 for cc_temp in $compiler""; do
9850 case $cc_temp in
9851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9853 \-*) ;;
9854 *) break;;
9855 esac
9856 done
9857 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9858
9859
9860 # Only perform the check for file, if the check method requires it
9861 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9862 case $deplibs_check_method in
9863 file_magic*)
9864 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9865 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9866 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9867 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9868 $as_echo_n "(cached) " >&6
9869 else
9870 case $MAGIC_CMD in
9871 [\\/*] | ?:[\\/]*)
9872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9873 ;;
9874 *)
9875 lt_save_MAGIC_CMD="$MAGIC_CMD"
9876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9877 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9878 for ac_dir in $ac_dummy; do
9879 IFS="$lt_save_ifs"
9880 test -z "$ac_dir" && ac_dir=.
9881 if test -f $ac_dir/${ac_tool_prefix}file; then
9882 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9883 if test -n "$file_magic_test_file"; then
9884 case $deplibs_check_method in
9885 "file_magic "*)
9886 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9888 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9889 $EGREP "$file_magic_regex" > /dev/null; then
9890 :
9891 else
9892 cat <<_LT_EOF 1>&2
9893
9894 *** Warning: the command libtool uses to detect shared libraries,
9895 *** $file_magic_cmd, produces output that libtool cannot recognize.
9896 *** The result is that libtool may fail to recognize shared libraries
9897 *** as such. This will affect the creation of libtool libraries that
9898 *** depend on shared libraries, but programs linked with such libtool
9899 *** libraries will work regardless of this problem. Nevertheless, you
9900 *** may want to report the problem to your system manager and/or to
9901 *** bug-libtool@gnu.org
9902
9903 _LT_EOF
9904 fi ;;
9905 esac
9906 fi
9907 break
9908 fi
9909 done
9910 IFS="$lt_save_ifs"
9911 MAGIC_CMD="$lt_save_MAGIC_CMD"
9912 ;;
9913 esac
9914 fi
9915
9916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9917 if test -n "$MAGIC_CMD"; then
9918 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9919 $as_echo "$MAGIC_CMD" >&6; }
9920 else
9921 { $as_echo "$as_me:$LINENO: result: no" >&5
9922 $as_echo "no" >&6; }
9923 fi
9924
9925
9926
9927
9928
9929 if test -z "$lt_cv_path_MAGIC_CMD"; then
9930 if test -n "$ac_tool_prefix"; then
9931 { $as_echo "$as_me:$LINENO: checking for file" >&5
9932 $as_echo_n "checking for file... " >&6; }
9933 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9934 $as_echo_n "(cached) " >&6
9935 else
9936 case $MAGIC_CMD in
9937 [\\/*] | ?:[\\/]*)
9938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9939 ;;
9940 *)
9941 lt_save_MAGIC_CMD="$MAGIC_CMD"
9942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9943 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9944 for ac_dir in $ac_dummy; do
9945 IFS="$lt_save_ifs"
9946 test -z "$ac_dir" && ac_dir=.
9947 if test -f $ac_dir/file; then
9948 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9949 if test -n "$file_magic_test_file"; then
9950 case $deplibs_check_method in
9951 "file_magic "*)
9952 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9955 $EGREP "$file_magic_regex" > /dev/null; then
9956 :
9957 else
9958 cat <<_LT_EOF 1>&2
9959
9960 *** Warning: the command libtool uses to detect shared libraries,
9961 *** $file_magic_cmd, produces output that libtool cannot recognize.
9962 *** The result is that libtool may fail to recognize shared libraries
9963 *** as such. This will affect the creation of libtool libraries that
9964 *** depend on shared libraries, but programs linked with such libtool
9965 *** libraries will work regardless of this problem. Nevertheless, you
9966 *** may want to report the problem to your system manager and/or to
9967 *** bug-libtool@gnu.org
9968
9969 _LT_EOF
9970 fi ;;
9971 esac
9972 fi
9973 break
9974 fi
9975 done
9976 IFS="$lt_save_ifs"
9977 MAGIC_CMD="$lt_save_MAGIC_CMD"
9978 ;;
9979 esac
9980 fi
9981
9982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9983 if test -n "$MAGIC_CMD"; then
9984 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9985 $as_echo "$MAGIC_CMD" >&6; }
9986 else
9987 { $as_echo "$as_me:$LINENO: result: no" >&5
9988 $as_echo "no" >&6; }
9989 fi
9990
9991
9992 else
9993 MAGIC_CMD=:
9994 fi
9995 fi
9996
9997 fi
9998 ;;
9999 esac
10000
10001 # Use C for the default configuration in the libtool script
10002
10003 lt_save_CC="$CC"
10004 ac_ext=c
10005 ac_cpp='$CPP $CPPFLAGS'
10006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10009
10010
10011 # Source file extension for C test sources.
10012 ac_ext=c
10013
10014 # Object file extension for compiled C test sources.
10015 objext=o
10016 objext=$objext
10017
10018 # Code to be used in simple compile tests
10019 lt_simple_compile_test_code="int some_variable = 0;"
10020
10021 # Code to be used in simple link tests
10022 lt_simple_link_test_code='int main(){return(0);}'
10023
10024
10025
10026
10027
10028
10029
10030 # If no C compiler was specified, use CC.
10031 LTCC=${LTCC-"$CC"}
10032
10033 # If no C compiler flags were specified, use CFLAGS.
10034 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10035
10036 # Allow CC to be a program name with arguments.
10037 compiler=$CC
10038
10039 # Save the default compiler, since it gets overwritten when the other
10040 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10041 compiler_DEFAULT=$CC
10042
10043 # save warnings/boilerplate of simple test code
10044 ac_outfile=conftest.$ac_objext
10045 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10046 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10047 _lt_compiler_boilerplate=`cat conftest.err`
10048 $RM conftest*
10049
10050 ac_outfile=conftest.$ac_objext
10051 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10053 _lt_linker_boilerplate=`cat conftest.err`
10054 $RM -r conftest*
10055
10056
10057 if test -n "$compiler"; then
10058
10059 lt_prog_compiler_no_builtin_flag=
10060
10061 if test "$GCC" = yes; then
10062 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10063
10064 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10065 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10066 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10067 $as_echo_n "(cached) " >&6
10068 else
10069 lt_cv_prog_compiler_rtti_exceptions=no
10070 ac_outfile=conftest.$ac_objext
10071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10072 lt_compiler_flag="-fno-rtti -fno-exceptions"
10073 # Insert the option either (1) after the last *FLAGS variable, or
10074 # (2) before a word containing "conftest.", or (3) at the end.
10075 # Note that $ac_compile itself does not contain backslashes and begins
10076 # with a dollar sign (not a hyphen), so the echo should work correctly.
10077 # The option is referenced via a variable to avoid confusing sed.
10078 lt_compile=`echo "$ac_compile" | $SED \
10079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10081 -e 's:$: $lt_compiler_flag:'`
10082 (eval echo "\"\$as_me:10082: $lt_compile\"" >&5)
10083 (eval "$lt_compile" 2>conftest.err)
10084 ac_status=$?
10085 cat conftest.err >&5
10086 echo "$as_me:10086: \$? = $ac_status" >&5
10087 if (exit $ac_status) && test -s "$ac_outfile"; then
10088 # The compiler can only warn and ignore the option if not recognized
10089 # So say no if there are warnings other than the usual output.
10090 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10092 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10093 lt_cv_prog_compiler_rtti_exceptions=yes
10094 fi
10095 fi
10096 $RM conftest*
10097
10098 fi
10099 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10100 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10101
10102 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10103 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10104 else
10105 :
10106 fi
10107
10108 fi
10109
10110
10111
10112
10113
10114
10115 lt_prog_compiler_wl=
10116 lt_prog_compiler_pic=
10117 lt_prog_compiler_static=
10118
10119 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10120 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10121
10122 if test "$GCC" = yes; then
10123 lt_prog_compiler_wl='-Wl,'
10124 lt_prog_compiler_static='-static'
10125
10126 case $host_os in
10127 aix*)
10128 # All AIX code is PIC.
10129 if test "$host_cpu" = ia64; then
10130 # AIX 5 now supports IA64 processor
10131 lt_prog_compiler_static='-Bstatic'
10132 fi
10133 ;;
10134
10135 amigaos*)
10136 case $host_cpu in
10137 powerpc)
10138 # see comment about AmigaOS4 .so support
10139 lt_prog_compiler_pic='-fPIC'
10140 ;;
10141 m68k)
10142 # FIXME: we need at least 68020 code to build shared libraries, but
10143 # adding the `-m68020' flag to GCC prevents building anything better,
10144 # like `-m68040'.
10145 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10146 ;;
10147 esac
10148 ;;
10149
10150 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10151 # PIC is the default for these OSes.
10152 ;;
10153
10154 mingw* | cygwin* | pw32* | os2* | cegcc*)
10155 # This hack is so that the source file can tell whether it is being
10156 # built for inclusion in a dll (and should export symbols for example).
10157 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10158 # (--disable-auto-import) libraries
10159 lt_prog_compiler_pic='-DDLL_EXPORT'
10160 ;;
10161
10162 darwin* | rhapsody*)
10163 # PIC is the default on this platform
10164 # Common symbols not allowed in MH_DYLIB files
10165 lt_prog_compiler_pic='-fno-common'
10166 ;;
10167
10168 hpux*)
10169 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10170 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10171 # sets the default TLS model and affects inlining.
10172 case $host_cpu in
10173 hppa*64*)
10174 # +Z the default
10175 ;;
10176 *)
10177 lt_prog_compiler_pic='-fPIC'
10178 ;;
10179 esac
10180 ;;
10181
10182 interix[3-9]*)
10183 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10184 # Instead, we relocate shared libraries at runtime.
10185 ;;
10186
10187 msdosdjgpp*)
10188 # Just because we use GCC doesn't mean we suddenly get shared libraries
10189 # on systems that don't support them.
10190 lt_prog_compiler_can_build_shared=no
10191 enable_shared=no
10192 ;;
10193
10194 *nto* | *qnx*)
10195 # QNX uses GNU C++, but need to define -shared option too, otherwise
10196 # it will coredump.
10197 lt_prog_compiler_pic='-fPIC -shared'
10198 ;;
10199
10200 sysv4*MP*)
10201 if test -d /usr/nec; then
10202 lt_prog_compiler_pic=-Kconform_pic
10203 fi
10204 ;;
10205
10206 *)
10207 lt_prog_compiler_pic='-fPIC'
10208 ;;
10209 esac
10210 else
10211 # PORTME Check for flag to pass linker flags through the system compiler.
10212 case $host_os in
10213 aix*)
10214 lt_prog_compiler_wl='-Wl,'
10215 if test "$host_cpu" = ia64; then
10216 # AIX 5 now supports IA64 processor
10217 lt_prog_compiler_static='-Bstatic'
10218 else
10219 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10220 fi
10221 ;;
10222
10223 mingw* | cygwin* | pw32* | os2* | cegcc*)
10224 # This hack is so that the source file can tell whether it is being
10225 # built for inclusion in a dll (and should export symbols for example).
10226 lt_prog_compiler_pic='-DDLL_EXPORT'
10227 ;;
10228
10229 hpux9* | hpux10* | hpux11*)
10230 lt_prog_compiler_wl='-Wl,'
10231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10232 # not for PA HP-UX.
10233 case $host_cpu in
10234 hppa*64*|ia64*)
10235 # +Z the default
10236 ;;
10237 *)
10238 lt_prog_compiler_pic='+Z'
10239 ;;
10240 esac
10241 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10242 lt_prog_compiler_static='${wl}-a ${wl}archive'
10243 ;;
10244
10245 irix5* | irix6* | nonstopux*)
10246 lt_prog_compiler_wl='-Wl,'
10247 # PIC (with -KPIC) is the default.
10248 lt_prog_compiler_static='-non_shared'
10249 ;;
10250
10251 linux* | k*bsd*-gnu)
10252 case $cc_basename in
10253 # old Intel for x86_64 which still supported -KPIC.
10254 ecc*)
10255 lt_prog_compiler_wl='-Wl,'
10256 lt_prog_compiler_pic='-KPIC'
10257 lt_prog_compiler_static='-static'
10258 ;;
10259 # icc used to be incompatible with GCC.
10260 # ICC 10 doesn't accept -KPIC any more.
10261 icc* | ifort*)
10262 lt_prog_compiler_wl='-Wl,'
10263 lt_prog_compiler_pic='-fPIC'
10264 lt_prog_compiler_static='-static'
10265 ;;
10266 # Lahey Fortran 8.1.
10267 lf95*)
10268 lt_prog_compiler_wl='-Wl,'
10269 lt_prog_compiler_pic='--shared'
10270 lt_prog_compiler_static='--static'
10271 ;;
10272 pgcc* | pgf77* | pgf90* | pgf95*)
10273 # Portland Group compilers (*not* the Pentium gcc compiler,
10274 # which looks to be a dead project)
10275 lt_prog_compiler_wl='-Wl,'
10276 lt_prog_compiler_pic='-fpic'
10277 lt_prog_compiler_static='-Bstatic'
10278 ;;
10279 ccc*)
10280 lt_prog_compiler_wl='-Wl,'
10281 # All Alpha code is PIC.
10282 lt_prog_compiler_static='-non_shared'
10283 ;;
10284 xl*)
10285 # IBM XL C 8.0/Fortran 10.1 on PPC
10286 lt_prog_compiler_wl='-Wl,'
10287 lt_prog_compiler_pic='-qpic'
10288 lt_prog_compiler_static='-qstaticlink'
10289 ;;
10290 *)
10291 case `$CC -V 2>&1 | sed 5q` in
10292 *Sun\ C*)
10293 # Sun C 5.9
10294 lt_prog_compiler_pic='-KPIC'
10295 lt_prog_compiler_static='-Bstatic'
10296 lt_prog_compiler_wl='-Wl,'
10297 ;;
10298 *Sun\ F*)
10299 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10300 lt_prog_compiler_pic='-KPIC'
10301 lt_prog_compiler_static='-Bstatic'
10302 lt_prog_compiler_wl=''
10303 ;;
10304 esac
10305 ;;
10306 esac
10307 ;;
10308
10309 newsos6)
10310 lt_prog_compiler_pic='-KPIC'
10311 lt_prog_compiler_static='-Bstatic'
10312 ;;
10313
10314 *nto* | *qnx*)
10315 # QNX uses GNU C++, but need to define -shared option too, otherwise
10316 # it will coredump.
10317 lt_prog_compiler_pic='-fPIC -shared'
10318 ;;
10319
10320 osf3* | osf4* | osf5*)
10321 lt_prog_compiler_wl='-Wl,'
10322 # All OSF/1 code is PIC.
10323 lt_prog_compiler_static='-non_shared'
10324 ;;
10325
10326 rdos*)
10327 lt_prog_compiler_static='-non_shared'
10328 ;;
10329
10330 solaris*)
10331 lt_prog_compiler_pic='-KPIC'
10332 lt_prog_compiler_static='-Bstatic'
10333 case $cc_basename in
10334 f77* | f90* | f95*)
10335 lt_prog_compiler_wl='-Qoption ld ';;
10336 *)
10337 lt_prog_compiler_wl='-Wl,';;
10338 esac
10339 ;;
10340
10341 sunos4*)
10342 lt_prog_compiler_wl='-Qoption ld '
10343 lt_prog_compiler_pic='-PIC'
10344 lt_prog_compiler_static='-Bstatic'
10345 ;;
10346
10347 sysv4 | sysv4.2uw2* | sysv4.3*)
10348 lt_prog_compiler_wl='-Wl,'
10349 lt_prog_compiler_pic='-KPIC'
10350 lt_prog_compiler_static='-Bstatic'
10351 ;;
10352
10353 sysv4*MP*)
10354 if test -d /usr/nec ;then
10355 lt_prog_compiler_pic='-Kconform_pic'
10356 lt_prog_compiler_static='-Bstatic'
10357 fi
10358 ;;
10359
10360 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10361 lt_prog_compiler_wl='-Wl,'
10362 lt_prog_compiler_pic='-KPIC'
10363 lt_prog_compiler_static='-Bstatic'
10364 ;;
10365
10366 unicos*)
10367 lt_prog_compiler_wl='-Wl,'
10368 lt_prog_compiler_can_build_shared=no
10369 ;;
10370
10371 uts4*)
10372 lt_prog_compiler_pic='-pic'
10373 lt_prog_compiler_static='-Bstatic'
10374 ;;
10375
10376 *)
10377 lt_prog_compiler_can_build_shared=no
10378 ;;
10379 esac
10380 fi
10381
10382 case $host_os in
10383 # For platforms which do not support PIC, -DPIC is meaningless:
10384 *djgpp*)
10385 lt_prog_compiler_pic=
10386 ;;
10387 *)
10388 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10389 ;;
10390 esac
10391 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10392 $as_echo "$lt_prog_compiler_pic" >&6; }
10393
10394
10395
10396
10397
10398
10399 #
10400 # Check to make sure the PIC flag actually works.
10401 #
10402 if test -n "$lt_prog_compiler_pic"; then
10403 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10404 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10405 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10406 $as_echo_n "(cached) " >&6
10407 else
10408 lt_cv_prog_compiler_pic_works=no
10409 ac_outfile=conftest.$ac_objext
10410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10411 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10412 # Insert the option either (1) after the last *FLAGS variable, or
10413 # (2) before a word containing "conftest.", or (3) at the end.
10414 # Note that $ac_compile itself does not contain backslashes and begins
10415 # with a dollar sign (not a hyphen), so the echo should work correctly.
10416 # The option is referenced via a variable to avoid confusing sed.
10417 lt_compile=`echo "$ac_compile" | $SED \
10418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10420 -e 's:$: $lt_compiler_flag:'`
10421 (eval echo "\"\$as_me:10421: $lt_compile\"" >&5)
10422 (eval "$lt_compile" 2>conftest.err)
10423 ac_status=$?
10424 cat conftest.err >&5
10425 echo "$as_me:10425: \$? = $ac_status" >&5
10426 if (exit $ac_status) && test -s "$ac_outfile"; then
10427 # The compiler can only warn and ignore the option if not recognized
10428 # So say no if there are warnings other than the usual output.
10429 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10431 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10432 lt_cv_prog_compiler_pic_works=yes
10433 fi
10434 fi
10435 $RM conftest*
10436
10437 fi
10438 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10439 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10440
10441 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10442 case $lt_prog_compiler_pic in
10443 "" | " "*) ;;
10444 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10445 esac
10446 else
10447 lt_prog_compiler_pic=
10448 lt_prog_compiler_can_build_shared=no
10449 fi
10450
10451 fi
10452
10453
10454
10455
10456
10457
10458 #
10459 # Check to make sure the static flag actually works.
10460 #
10461 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10462 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10463 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10464 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10465 $as_echo_n "(cached) " >&6
10466 else
10467 lt_cv_prog_compiler_static_works=no
10468 save_LDFLAGS="$LDFLAGS"
10469 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10470 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10472 # The linker can only warn and ignore the option if not recognized
10473 # So say no if there are warnings
10474 if test -s conftest.err; then
10475 # Append any errors to the config.log.
10476 cat conftest.err 1>&5
10477 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10479 if diff conftest.exp conftest.er2 >/dev/null; then
10480 lt_cv_prog_compiler_static_works=yes
10481 fi
10482 else
10483 lt_cv_prog_compiler_static_works=yes
10484 fi
10485 fi
10486 $RM -r conftest*
10487 LDFLAGS="$save_LDFLAGS"
10488
10489 fi
10490 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10491 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10492
10493 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10494 :
10495 else
10496 lt_prog_compiler_static=
10497 fi
10498
10499
10500
10501
10502
10503
10504
10505 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10506 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10507 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10508 $as_echo_n "(cached) " >&6
10509 else
10510 lt_cv_prog_compiler_c_o=no
10511 $RM -r conftest 2>/dev/null
10512 mkdir conftest
10513 cd conftest
10514 mkdir out
10515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10516
10517 lt_compiler_flag="-o out/conftest2.$ac_objext"
10518 # Insert the option either (1) after the last *FLAGS variable, or
10519 # (2) before a word containing "conftest.", or (3) at the end.
10520 # Note that $ac_compile itself does not contain backslashes and begins
10521 # with a dollar sign (not a hyphen), so the echo should work correctly.
10522 lt_compile=`echo "$ac_compile" | $SED \
10523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10525 -e 's:$: $lt_compiler_flag:'`
10526 (eval echo "\"\$as_me:10526: $lt_compile\"" >&5)
10527 (eval "$lt_compile" 2>out/conftest.err)
10528 ac_status=$?
10529 cat out/conftest.err >&5
10530 echo "$as_me:10530: \$? = $ac_status" >&5
10531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10532 then
10533 # The compiler can only warn and ignore the option if not recognized
10534 # So say no if there are warnings
10535 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10538 lt_cv_prog_compiler_c_o=yes
10539 fi
10540 fi
10541 chmod u+w . 2>&5
10542 $RM conftest*
10543 # SGI C++ compiler will create directory out/ii_files/ for
10544 # template instantiation
10545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10546 $RM out/* && rmdir out
10547 cd ..
10548 $RM -r conftest
10549 $RM conftest*
10550
10551 fi
10552 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10553 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10554
10555
10556
10557
10558
10559
10560 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10562 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10563 $as_echo_n "(cached) " >&6
10564 else
10565 lt_cv_prog_compiler_c_o=no
10566 $RM -r conftest 2>/dev/null
10567 mkdir conftest
10568 cd conftest
10569 mkdir out
10570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10571
10572 lt_compiler_flag="-o out/conftest2.$ac_objext"
10573 # Insert the option either (1) after the last *FLAGS variable, or
10574 # (2) before a word containing "conftest.", or (3) at the end.
10575 # Note that $ac_compile itself does not contain backslashes and begins
10576 # with a dollar sign (not a hyphen), so the echo should work correctly.
10577 lt_compile=`echo "$ac_compile" | $SED \
10578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10580 -e 's:$: $lt_compiler_flag:'`
10581 (eval echo "\"\$as_me:10581: $lt_compile\"" >&5)
10582 (eval "$lt_compile" 2>out/conftest.err)
10583 ac_status=$?
10584 cat out/conftest.err >&5
10585 echo "$as_me:10585: \$? = $ac_status" >&5
10586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10587 then
10588 # The compiler can only warn and ignore the option if not recognized
10589 # So say no if there are warnings
10590 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10593 lt_cv_prog_compiler_c_o=yes
10594 fi
10595 fi
10596 chmod u+w . 2>&5
10597 $RM conftest*
10598 # SGI C++ compiler will create directory out/ii_files/ for
10599 # template instantiation
10600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10601 $RM out/* && rmdir out
10602 cd ..
10603 $RM -r conftest
10604 $RM conftest*
10605
10606 fi
10607 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10608 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10609
10610
10611
10612
10613 hard_links="nottested"
10614 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10615 # do not overwrite the value of need_locks provided by the user
10616 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10617 $as_echo_n "checking if we can lock with hard links... " >&6; }
10618 hard_links=yes
10619 $RM conftest*
10620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10621 touch conftest.a
10622 ln conftest.a conftest.b 2>&5 || hard_links=no
10623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10624 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10625 $as_echo "$hard_links" >&6; }
10626 if test "$hard_links" = no; then
10627 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10628 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10629 need_locks=warn
10630 fi
10631 else
10632 need_locks=no
10633 fi
10634
10635
10636
10637
10638
10639
10640 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10641 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10642
10643 runpath_var=
10644 allow_undefined_flag=
10645 always_export_symbols=no
10646 archive_cmds=
10647 archive_expsym_cmds=
10648 compiler_needs_object=no
10649 enable_shared_with_static_runtimes=no
10650 export_dynamic_flag_spec=
10651 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10652 hardcode_automatic=no
10653 hardcode_direct=no
10654 hardcode_direct_absolute=no
10655 hardcode_libdir_flag_spec=
10656 hardcode_libdir_flag_spec_ld=
10657 hardcode_libdir_separator=
10658 hardcode_minus_L=no
10659 hardcode_shlibpath_var=unsupported
10660 inherit_rpath=no
10661 link_all_deplibs=unknown
10662 module_cmds=
10663 module_expsym_cmds=
10664 old_archive_from_new_cmds=
10665 old_archive_from_expsyms_cmds=
10666 thread_safe_flag_spec=
10667 whole_archive_flag_spec=
10668 # include_expsyms should be a list of space-separated symbols to be *always*
10669 # included in the symbol list
10670 include_expsyms=
10671 # exclude_expsyms can be an extended regexp of symbols to exclude
10672 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10673 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10674 # as well as any symbol that contains `d'.
10675 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10676 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10677 # platforms (ab)use it in PIC code, but their linkers get confused if
10678 # the symbol is explicitly referenced. Since portable code cannot
10679 # rely on this symbol name, it's probably fine to never include it in
10680 # preloaded symbol tables.
10681 # Exclude shared library initialization/finalization symbols.
10682 extract_expsyms_cmds=
10683
10684 case $host_os in
10685 cygwin* | mingw* | pw32* | cegcc*)
10686 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10687 # When not using gcc, we currently assume that we are using
10688 # Microsoft Visual C++.
10689 if test "$GCC" != yes; then
10690 with_gnu_ld=no
10691 fi
10692 ;;
10693 interix*)
10694 # we just hope/assume this is gcc and not c89 (= MSVC++)
10695 with_gnu_ld=yes
10696 ;;
10697 openbsd*)
10698 with_gnu_ld=no
10699 ;;
10700 esac
10701
10702 ld_shlibs=yes
10703 if test "$with_gnu_ld" = yes; then
10704 # If archive_cmds runs LD, not CC, wlarc should be empty
10705 wlarc='${wl}'
10706
10707 # Set some defaults for GNU ld with shared library support. These
10708 # are reset later if shared libraries are not supported. Putting them
10709 # here allows them to be overridden if necessary.
10710 runpath_var=LD_RUN_PATH
10711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10712 export_dynamic_flag_spec='${wl}--export-dynamic'
10713 # ancient GNU ld didn't support --whole-archive et. al.
10714 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10715 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10716 else
10717 whole_archive_flag_spec=
10718 fi
10719 supports_anon_versioning=no
10720 case `$LD -v 2>&1` in
10721 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10722 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10723 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10724 *\ 2.11.*) ;; # other 2.11 versions
10725 *) supports_anon_versioning=yes ;;
10726 esac
10727
10728 # See if GNU ld supports shared libraries.
10729 case $host_os in
10730 aix[3-9]*)
10731 # On AIX/PPC, the GNU linker is very broken
10732 if test "$host_cpu" != ia64; then
10733 ld_shlibs=no
10734 cat <<_LT_EOF 1>&2
10735
10736 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10737 *** to be unable to reliably create shared libraries on AIX.
10738 *** Therefore, libtool is disabling shared libraries support. If you
10739 *** really care for shared libraries, you may want to modify your PATH
10740 *** so that a non-GNU linker is found, and then restart.
10741
10742 _LT_EOF
10743 fi
10744 ;;
10745
10746 amigaos*)
10747 case $host_cpu in
10748 powerpc)
10749 # see comment about AmigaOS4 .so support
10750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10751 archive_expsym_cmds=''
10752 ;;
10753 m68k)
10754 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)'
10755 hardcode_libdir_flag_spec='-L$libdir'
10756 hardcode_minus_L=yes
10757 ;;
10758 esac
10759 ;;
10760
10761 beos*)
10762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10763 allow_undefined_flag=unsupported
10764 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10765 # support --undefined. This deserves some investigation. FIXME
10766 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10767 else
10768 ld_shlibs=no
10769 fi
10770 ;;
10771
10772 cygwin* | mingw* | pw32* | cegcc*)
10773 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10774 # as there is no search path for DLLs.
10775 hardcode_libdir_flag_spec='-L$libdir'
10776 allow_undefined_flag=unsupported
10777 always_export_symbols=no
10778 enable_shared_with_static_runtimes=yes
10779 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10780
10781 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10783 # If the export-symbols file already is a .def file (1st line
10784 # is EXPORTS), use it as is; otherwise, prepend...
10785 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10786 cp $export_symbols $output_objdir/$soname.def;
10787 else
10788 echo EXPORTS > $output_objdir/$soname.def;
10789 cat $export_symbols >> $output_objdir/$soname.def;
10790 fi~
10791 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10792 else
10793 ld_shlibs=no
10794 fi
10795 ;;
10796
10797 interix[3-9]*)
10798 hardcode_direct=no
10799 hardcode_shlibpath_var=no
10800 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10801 export_dynamic_flag_spec='${wl}-E'
10802 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10803 # Instead, shared libraries are loaded at an image base (0x10000000 by
10804 # default) and relocated if they conflict, which is a slow very memory
10805 # consuming and fragmenting process. To avoid this, we pick a random,
10806 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10807 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10809 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'
10810 ;;
10811
10812 gnu* | linux* | tpf* | k*bsd*-gnu)
10813 tmp_diet=no
10814 if test "$host_os" = linux-dietlibc; then
10815 case $cc_basename in
10816 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10817 esac
10818 fi
10819 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10820 && test "$tmp_diet" = no
10821 then
10822 tmp_addflag=
10823 tmp_sharedflag='-shared'
10824 case $cc_basename,$host_cpu in
10825 pgcc*) # Portland Group C compiler
10826 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'
10827 tmp_addflag=' $pic_flag'
10828 ;;
10829 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10830 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'
10831 tmp_addflag=' $pic_flag -Mnomain' ;;
10832 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10833 tmp_addflag=' -i_dynamic' ;;
10834 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10835 tmp_addflag=' -i_dynamic -nofor_main' ;;
10836 ifc* | ifort*) # Intel Fortran compiler
10837 tmp_addflag=' -nofor_main' ;;
10838 lf95*) # Lahey Fortran 8.1
10839 whole_archive_flag_spec=
10840 tmp_sharedflag='--shared' ;;
10841 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10842 tmp_sharedflag='-qmkshrobj'
10843 tmp_addflag= ;;
10844 esac
10845 case `$CC -V 2>&1 | sed 5q` in
10846 *Sun\ C*) # Sun C 5.9
10847 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'
10848 compiler_needs_object=yes
10849 tmp_sharedflag='-G' ;;
10850 *Sun\ F*) # Sun Fortran 8.3
10851 tmp_sharedflag='-G' ;;
10852 esac
10853 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10854
10855 if test "x$supports_anon_versioning" = xyes; then
10856 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10858 echo "local: *; };" >> $output_objdir/$libname.ver~
10859 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10860 fi
10861
10862 case $cc_basename in
10863 xlf*)
10864 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10865 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10866 hardcode_libdir_flag_spec=
10867 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10868 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10869 if test "x$supports_anon_versioning" = xyes; then
10870 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10872 echo "local: *; };" >> $output_objdir/$libname.ver~
10873 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10874 fi
10875 ;;
10876 esac
10877 else
10878 ld_shlibs=no
10879 fi
10880 ;;
10881
10882 netbsd*)
10883 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10884 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10885 wlarc=
10886 else
10887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10889 fi
10890 ;;
10891
10892 solaris*)
10893 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10894 ld_shlibs=no
10895 cat <<_LT_EOF 1>&2
10896
10897 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10898 *** create shared libraries on Solaris systems. Therefore, libtool
10899 *** is disabling shared libraries support. We urge you to upgrade GNU
10900 *** binutils to release 2.9.1 or newer. Another option is to modify
10901 *** your PATH or compiler configuration so that the native linker is
10902 *** used, and then restart.
10903
10904 _LT_EOF
10905 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10908 else
10909 ld_shlibs=no
10910 fi
10911 ;;
10912
10913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10914 case `$LD -v 2>&1` in
10915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10916 ld_shlibs=no
10917 cat <<_LT_EOF 1>&2
10918
10919 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10920 *** reliably create shared libraries on SCO systems. Therefore, libtool
10921 *** is disabling shared libraries support. We urge you to upgrade GNU
10922 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10923 *** your PATH or compiler configuration so that the native linker is
10924 *** used, and then restart.
10925
10926 _LT_EOF
10927 ;;
10928 *)
10929 # For security reasons, it is highly recommended that you always
10930 # use absolute paths for naming shared libraries, and exclude the
10931 # DT_RUNPATH tag from executables and libraries. But doing so
10932 # requires that you compile everything twice, which is a pain.
10933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10936 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10937 else
10938 ld_shlibs=no
10939 fi
10940 ;;
10941 esac
10942 ;;
10943
10944 sunos4*)
10945 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10946 wlarc=
10947 hardcode_direct=yes
10948 hardcode_shlibpath_var=no
10949 ;;
10950
10951 *)
10952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10955 else
10956 ld_shlibs=no
10957 fi
10958 ;;
10959 esac
10960
10961 if test "$ld_shlibs" = no; then
10962 runpath_var=
10963 hardcode_libdir_flag_spec=
10964 export_dynamic_flag_spec=
10965 whole_archive_flag_spec=
10966 fi
10967 else
10968 # PORTME fill in a description of your system's linker (not GNU ld)
10969 case $host_os in
10970 aix3*)
10971 allow_undefined_flag=unsupported
10972 always_export_symbols=yes
10973 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'
10974 # Note: this linker hardcodes the directories in LIBPATH if there
10975 # are no directories specified by -L.
10976 hardcode_minus_L=yes
10977 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10978 # Neither direct hardcoding nor static linking is supported with a
10979 # broken collect2.
10980 hardcode_direct=unsupported
10981 fi
10982 ;;
10983
10984 aix[4-9]*)
10985 if test "$host_cpu" = ia64; then
10986 # On IA64, the linker does run time linking by default, so we don't
10987 # have to do anything special.
10988 aix_use_runtimelinking=no
10989 exp_sym_flag='-Bexport'
10990 no_entry_flag=""
10991 else
10992 # If we're using GNU nm, then we don't want the "-C" option.
10993 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10994 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10995 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'
10996 else
10997 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'
10998 fi
10999 aix_use_runtimelinking=no
11000
11001 # Test if we are trying to use run time linking or normal
11002 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11003 # need to do runtime linking.
11004 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11005 for ld_flag in $LDFLAGS; do
11006 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11007 aix_use_runtimelinking=yes
11008 break
11009 fi
11010 done
11011 ;;
11012 esac
11013
11014 exp_sym_flag='-bexport'
11015 no_entry_flag='-bnoentry'
11016 fi
11017
11018 # When large executables or shared objects are built, AIX ld can
11019 # have problems creating the table of contents. If linking a library
11020 # or program results in "error TOC overflow" add -mminimal-toc to
11021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11023
11024 archive_cmds=''
11025 hardcode_direct=yes
11026 hardcode_direct_absolute=yes
11027 hardcode_libdir_separator=':'
11028 link_all_deplibs=yes
11029 file_list_spec='${wl}-f,'
11030
11031 if test "$GCC" = yes; then
11032 case $host_os in aix4.[012]|aix4.[012].*)
11033 # We only want to do this on AIX 4.2 and lower, the check
11034 # below for broken collect2 doesn't work under 4.3+
11035 collect2name=`${CC} -print-prog-name=collect2`
11036 if test -f "$collect2name" &&
11037 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11038 then
11039 # We have reworked collect2
11040 :
11041 else
11042 # We have old collect2
11043 hardcode_direct=unsupported
11044 # It fails to find uninstalled libraries when the uninstalled
11045 # path is not listed in the libpath. Setting hardcode_minus_L
11046 # to unsupported forces relinking
11047 hardcode_minus_L=yes
11048 hardcode_libdir_flag_spec='-L$libdir'
11049 hardcode_libdir_separator=
11050 fi
11051 ;;
11052 esac
11053 shared_flag='-shared'
11054 if test "$aix_use_runtimelinking" = yes; then
11055 shared_flag="$shared_flag "'${wl}-G'
11056 fi
11057 else
11058 # not using gcc
11059 if test "$host_cpu" = ia64; then
11060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11061 # chokes on -Wl,-G. The following line is correct:
11062 shared_flag='-G'
11063 else
11064 if test "$aix_use_runtimelinking" = yes; then
11065 shared_flag='${wl}-G'
11066 else
11067 shared_flag='${wl}-bM:SRE'
11068 fi
11069 fi
11070 fi
11071
11072 export_dynamic_flag_spec='${wl}-bexpall'
11073 # It seems that -bexpall does not export symbols beginning with
11074 # underscore (_), so it is better to generate a list of symbols to export.
11075 always_export_symbols=yes
11076 if test "$aix_use_runtimelinking" = yes; then
11077 # Warning - without using the other runtime loading flags (-brtl),
11078 # -berok will link without error, but may produce a broken library.
11079 allow_undefined_flag='-berok'
11080 # Determine the default libpath from the value encoded in an
11081 # empty executable.
11082 cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h. */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088
11089 int
11090 main ()
11091 {
11092
11093 ;
11094 return 0;
11095 }
11096 _ACEOF
11097 rm -f conftest.$ac_objext conftest$ac_exeext
11098 if { (ac_try="$ac_link"
11099 case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11102 esac
11103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11104 $as_echo "$ac_try_echo") >&5
11105 (eval "$ac_link") 2>conftest.er1
11106 ac_status=$?
11107 grep -v '^ *+' conftest.er1 >conftest.err
11108 rm -f conftest.er1
11109 cat conftest.err >&5
11110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } && {
11112 test -z "$ac_c_werror_flag" ||
11113 test ! -s conftest.err
11114 } && test -s conftest$ac_exeext && {
11115 test "$cross_compiling" = yes ||
11116 $as_test_x conftest$ac_exeext
11117 }; then
11118
11119 lt_aix_libpath_sed='
11120 /Import File Strings/,/^$/ {
11121 /^0/ {
11122 s/^0 *\(.*\)$/\1/
11123 p
11124 }
11125 }'
11126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11127 # Check for a 64-bit object if we didn't find anything.
11128 if test -z "$aix_libpath"; then
11129 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11130 fi
11131 else
11132 $as_echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11134
11135
11136 fi
11137
11138 rm -rf conftest.dSYM
11139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11140 conftest$ac_exeext conftest.$ac_ext
11141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11142
11143 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11144 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"
11145 else
11146 if test "$host_cpu" = ia64; then
11147 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11148 allow_undefined_flag="-z nodefs"
11149 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"
11150 else
11151 # Determine the default libpath from the value encoded in an
11152 # empty executable.
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159
11160 int
11161 main ()
11162 {
11163
11164 ;
11165 return 0;
11166 }
11167 _ACEOF
11168 rm -f conftest.$ac_objext conftest$ac_exeext
11169 if { (ac_try="$ac_link"
11170 case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11173 esac
11174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11175 $as_echo "$ac_try_echo") >&5
11176 (eval "$ac_link") 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } && {
11183 test -z "$ac_c_werror_flag" ||
11184 test ! -s conftest.err
11185 } && test -s conftest$ac_exeext && {
11186 test "$cross_compiling" = yes ||
11187 $as_test_x conftest$ac_exeext
11188 }; then
11189
11190 lt_aix_libpath_sed='
11191 /Import File Strings/,/^$/ {
11192 /^0/ {
11193 s/^0 *\(.*\)$/\1/
11194 p
11195 }
11196 }'
11197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11198 # Check for a 64-bit object if we didn't find anything.
11199 if test -z "$aix_libpath"; then
11200 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11201 fi
11202 else
11203 $as_echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11205
11206
11207 fi
11208
11209 rm -rf conftest.dSYM
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211 conftest$ac_exeext conftest.$ac_ext
11212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11213
11214 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11215 # Warning - without using the other run time loading flags,
11216 # -berok will link without error, but may produce a broken library.
11217 no_undefined_flag=' ${wl}-bernotok'
11218 allow_undefined_flag=' ${wl}-berok'
11219 # Exported symbols can be pulled into shared objects from archives
11220 whole_archive_flag_spec='$convenience'
11221 archive_cmds_need_lc=yes
11222 # This is similar to how AIX traditionally builds its shared libraries.
11223 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'
11224 fi
11225 fi
11226 ;;
11227
11228 amigaos*)
11229 case $host_cpu in
11230 powerpc)
11231 # see comment about AmigaOS4 .so support
11232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11233 archive_expsym_cmds=''
11234 ;;
11235 m68k)
11236 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)'
11237 hardcode_libdir_flag_spec='-L$libdir'
11238 hardcode_minus_L=yes
11239 ;;
11240 esac
11241 ;;
11242
11243 bsdi[45]*)
11244 export_dynamic_flag_spec=-rdynamic
11245 ;;
11246
11247 cygwin* | mingw* | pw32* | cegcc*)
11248 # When not using gcc, we currently assume that we are using
11249 # Microsoft Visual C++.
11250 # hardcode_libdir_flag_spec is actually meaningless, as there is
11251 # no search path for DLLs.
11252 hardcode_libdir_flag_spec=' '
11253 allow_undefined_flag=unsupported
11254 # Tell ltmain to make .lib files, not .a files.
11255 libext=lib
11256 # Tell ltmain to make .dll files, not .so files.
11257 shrext_cmds=".dll"
11258 # FIXME: Setting linknames here is a bad hack.
11259 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11260 # The linker will automatically build a .lib file if we build a DLL.
11261 old_archive_from_new_cmds='true'
11262 # FIXME: Should let the user specify the lib program.
11263 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11264 fix_srcfile_path='`cygpath -w "$srcfile"`'
11265 enable_shared_with_static_runtimes=yes
11266 ;;
11267
11268 darwin* | rhapsody*)
11269
11270
11271 archive_cmds_need_lc=no
11272 hardcode_direct=no
11273 hardcode_automatic=yes
11274 hardcode_shlibpath_var=unsupported
11275 whole_archive_flag_spec=''
11276 link_all_deplibs=yes
11277 allow_undefined_flag="$_lt_dar_allow_undefined"
11278 case $cc_basename in
11279 ifort*) _lt_dar_can_shared=yes ;;
11280 *) _lt_dar_can_shared=$GCC ;;
11281 esac
11282 if test "$_lt_dar_can_shared" = "yes"; then
11283 output_verbose_link_cmd=echo
11284 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11285 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11286 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}"
11287 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}"
11288
11289 else
11290 ld_shlibs=no
11291 fi
11292
11293 ;;
11294
11295 dgux*)
11296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11297 hardcode_libdir_flag_spec='-L$libdir'
11298 hardcode_shlibpath_var=no
11299 ;;
11300
11301 freebsd1*)
11302 ld_shlibs=no
11303 ;;
11304
11305 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11306 # support. Future versions do this automatically, but an explicit c++rt0.o
11307 # does not break anything, and helps significantly (at the cost of a little
11308 # extra space).
11309 freebsd2.2*)
11310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11311 hardcode_libdir_flag_spec='-R$libdir'
11312 hardcode_direct=yes
11313 hardcode_shlibpath_var=no
11314 ;;
11315
11316 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11317 freebsd2*)
11318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11319 hardcode_direct=yes
11320 hardcode_minus_L=yes
11321 hardcode_shlibpath_var=no
11322 ;;
11323
11324 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11325 freebsd* | dragonfly*)
11326 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11327 hardcode_libdir_flag_spec='-R$libdir'
11328 hardcode_direct=yes
11329 hardcode_shlibpath_var=no
11330 ;;
11331
11332 hpux9*)
11333 if test "$GCC" = yes; then
11334 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'
11335 else
11336 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'
11337 fi
11338 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11339 hardcode_libdir_separator=:
11340 hardcode_direct=yes
11341
11342 # hardcode_minus_L: Not really in the search PATH,
11343 # but as the default location of the library.
11344 hardcode_minus_L=yes
11345 export_dynamic_flag_spec='${wl}-E'
11346 ;;
11347
11348 hpux10*)
11349 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11350 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11351 else
11352 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11353 fi
11354 if test "$with_gnu_ld" = no; then
11355 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11356 hardcode_libdir_flag_spec_ld='+b $libdir'
11357 hardcode_libdir_separator=:
11358 hardcode_direct=yes
11359 hardcode_direct_absolute=yes
11360 export_dynamic_flag_spec='${wl}-E'
11361 # hardcode_minus_L: Not really in the search PATH,
11362 # but as the default location of the library.
11363 hardcode_minus_L=yes
11364 fi
11365 ;;
11366
11367 hpux11*)
11368 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11369 case $host_cpu in
11370 hppa*64*)
11371 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11372 ;;
11373 ia64*)
11374 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11375 ;;
11376 *)
11377 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11378 ;;
11379 esac
11380 else
11381 case $host_cpu in
11382 hppa*64*)
11383 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11384 ;;
11385 ia64*)
11386 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11387 ;;
11388 *)
11389 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11390 ;;
11391 esac
11392 fi
11393 if test "$with_gnu_ld" = no; then
11394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11395 hardcode_libdir_separator=:
11396
11397 case $host_cpu in
11398 hppa*64*|ia64*)
11399 hardcode_direct=no
11400 hardcode_shlibpath_var=no
11401 ;;
11402 *)
11403 hardcode_direct=yes
11404 hardcode_direct_absolute=yes
11405 export_dynamic_flag_spec='${wl}-E'
11406
11407 # hardcode_minus_L: Not really in the search PATH,
11408 # but as the default location of the library.
11409 hardcode_minus_L=yes
11410 ;;
11411 esac
11412 fi
11413 ;;
11414
11415 irix5* | irix6* | nonstopux*)
11416 if test "$GCC" = yes; then
11417 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'
11418 # Try to use the -exported_symbol ld option, if it does not
11419 # work, assume that -exports_file does not work either and
11420 # implicitly export all symbols.
11421 save_LDFLAGS="$LDFLAGS"
11422 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11423 cat >conftest.$ac_ext <<_ACEOF
11424 int foo(void) {}
11425 _ACEOF
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (ac_try="$ac_link"
11428 case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11431 esac
11432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11433 $as_echo "$ac_try_echo") >&5
11434 (eval "$ac_link") 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } && {
11441 test -z "$ac_c_werror_flag" ||
11442 test ! -s conftest.err
11443 } && test -s conftest$ac_exeext && {
11444 test "$cross_compiling" = yes ||
11445 $as_test_x conftest$ac_exeext
11446 }; then
11447 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'
11448
11449 else
11450 $as_echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453
11454 fi
11455
11456 rm -rf conftest.dSYM
11457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11458 conftest$ac_exeext conftest.$ac_ext
11459 LDFLAGS="$save_LDFLAGS"
11460 else
11461 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'
11462 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'
11463 fi
11464 archive_cmds_need_lc='no'
11465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11466 hardcode_libdir_separator=:
11467 inherit_rpath=yes
11468 link_all_deplibs=yes
11469 ;;
11470
11471 netbsd*)
11472 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11474 else
11475 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11476 fi
11477 hardcode_libdir_flag_spec='-R$libdir'
11478 hardcode_direct=yes
11479 hardcode_shlibpath_var=no
11480 ;;
11481
11482 newsos6)
11483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11484 hardcode_direct=yes
11485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11486 hardcode_libdir_separator=:
11487 hardcode_shlibpath_var=no
11488 ;;
11489
11490 *nto* | *qnx*)
11491 ;;
11492
11493 openbsd*)
11494 if test -f /usr/libexec/ld.so; then
11495 hardcode_direct=yes
11496 hardcode_shlibpath_var=no
11497 hardcode_direct_absolute=yes
11498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11499 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11500 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11501 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11502 export_dynamic_flag_spec='${wl}-E'
11503 else
11504 case $host_os in
11505 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11507 hardcode_libdir_flag_spec='-R$libdir'
11508 ;;
11509 *)
11510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11512 ;;
11513 esac
11514 fi
11515 else
11516 ld_shlibs=no
11517 fi
11518 ;;
11519
11520 os2*)
11521 hardcode_libdir_flag_spec='-L$libdir'
11522 hardcode_minus_L=yes
11523 allow_undefined_flag=unsupported
11524 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'
11525 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11526 ;;
11527
11528 osf3*)
11529 if test "$GCC" = yes; then
11530 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11531 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'
11532 else
11533 allow_undefined_flag=' -expect_unresolved \*'
11534 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'
11535 fi
11536 archive_cmds_need_lc='no'
11537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11538 hardcode_libdir_separator=:
11539 ;;
11540
11541 osf4* | osf5*) # as osf3* with the addition of -msym flag
11542 if test "$GCC" = yes; then
11543 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11544 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'
11545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11546 else
11547 allow_undefined_flag=' -expect_unresolved \*'
11548 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'
11549 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~
11550 $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'
11551
11552 # Both c and cxx compiler support -rpath directly
11553 hardcode_libdir_flag_spec='-rpath $libdir'
11554 fi
11555 archive_cmds_need_lc='no'
11556 hardcode_libdir_separator=:
11557 ;;
11558
11559 solaris*)
11560 no_undefined_flag=' -z defs'
11561 if test "$GCC" = yes; then
11562 wlarc='${wl}'
11563 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11564 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11565 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11566 else
11567 case `$CC -V 2>&1` in
11568 *"Compilers 5.0"*)
11569 wlarc=''
11570 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11571 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11572 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11573 ;;
11574 *)
11575 wlarc='${wl}'
11576 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11577 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11578 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11579 ;;
11580 esac
11581 fi
11582 hardcode_libdir_flag_spec='-R$libdir'
11583 hardcode_shlibpath_var=no
11584 case $host_os in
11585 solaris2.[0-5] | solaris2.[0-5].*) ;;
11586 *)
11587 # The compiler driver will combine and reorder linker options,
11588 # but understands `-z linker_flag'. GCC discards it without `$wl',
11589 # but is careful enough not to reorder.
11590 # Supported since Solaris 2.6 (maybe 2.5.1?)
11591 if test "$GCC" = yes; then
11592 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11593 else
11594 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11595 fi
11596 ;;
11597 esac
11598 link_all_deplibs=yes
11599 ;;
11600
11601 sunos4*)
11602 if test "x$host_vendor" = xsequent; then
11603 # Use $CC to link under sequent, because it throws in some extra .o
11604 # files that make .init and .fini sections work.
11605 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11606 else
11607 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11608 fi
11609 hardcode_libdir_flag_spec='-L$libdir'
11610 hardcode_direct=yes
11611 hardcode_minus_L=yes
11612 hardcode_shlibpath_var=no
11613 ;;
11614
11615 sysv4)
11616 case $host_vendor in
11617 sni)
11618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11619 hardcode_direct=yes # is this really true???
11620 ;;
11621 siemens)
11622 ## LD is ld it makes a PLAMLIB
11623 ## CC just makes a GrossModule.
11624 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11625 reload_cmds='$CC -r -o $output$reload_objs'
11626 hardcode_direct=no
11627 ;;
11628 motorola)
11629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11630 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11631 ;;
11632 esac
11633 runpath_var='LD_RUN_PATH'
11634 hardcode_shlibpath_var=no
11635 ;;
11636
11637 sysv4.3*)
11638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11639 hardcode_shlibpath_var=no
11640 export_dynamic_flag_spec='-Bexport'
11641 ;;
11642
11643 sysv4*MP*)
11644 if test -d /usr/nec; then
11645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11646 hardcode_shlibpath_var=no
11647 runpath_var=LD_RUN_PATH
11648 hardcode_runpath_var=yes
11649 ld_shlibs=yes
11650 fi
11651 ;;
11652
11653 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11654 no_undefined_flag='${wl}-z,text'
11655 archive_cmds_need_lc=no
11656 hardcode_shlibpath_var=no
11657 runpath_var='LD_RUN_PATH'
11658
11659 if test "$GCC" = yes; then
11660 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11661 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11662 else
11663 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11664 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11665 fi
11666 ;;
11667
11668 sysv5* | sco3.2v5* | sco5v6*)
11669 # Note: We can NOT use -z defs as we might desire, because we do not
11670 # link with -lc, and that would cause any symbols used from libc to
11671 # always be unresolved, which means just about no library would
11672 # ever link correctly. If we're not using GNU ld we use -z text
11673 # though, which does catch some bad symbols but isn't as heavy-handed
11674 # as -z defs.
11675 no_undefined_flag='${wl}-z,text'
11676 allow_undefined_flag='${wl}-z,nodefs'
11677 archive_cmds_need_lc=no
11678 hardcode_shlibpath_var=no
11679 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11680 hardcode_libdir_separator=':'
11681 link_all_deplibs=yes
11682 export_dynamic_flag_spec='${wl}-Bexport'
11683 runpath_var='LD_RUN_PATH'
11684
11685 if test "$GCC" = yes; then
11686 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11687 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11688 else
11689 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11690 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11691 fi
11692 ;;
11693
11694 uts4*)
11695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11696 hardcode_libdir_flag_spec='-L$libdir'
11697 hardcode_shlibpath_var=no
11698 ;;
11699
11700 *)
11701 ld_shlibs=no
11702 ;;
11703 esac
11704
11705 if test x$host_vendor = xsni; then
11706 case $host in
11707 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11708 export_dynamic_flag_spec='${wl}-Blargedynsym'
11709 ;;
11710 esac
11711 fi
11712 fi
11713
11714 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11715 $as_echo "$ld_shlibs" >&6; }
11716 test "$ld_shlibs" = no && can_build_shared=no
11717
11718 with_gnu_ld=$with_gnu_ld
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734 #
11735 # Do we need to explicitly link libc?
11736 #
11737 case "x$archive_cmds_need_lc" in
11738 x|xyes)
11739 # Assume -lc should be added
11740 archive_cmds_need_lc=yes
11741
11742 if test "$enable_shared" = yes && test "$GCC" = yes; then
11743 case $archive_cmds in
11744 *'~'*)
11745 # FIXME: we may have to deal with multi-command sequences.
11746 ;;
11747 '$CC '*)
11748 # Test whether the compiler implicitly links with -lc since on some
11749 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11750 # to ld, don't add -lc before -lgcc.
11751 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11752 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11753 $RM conftest*
11754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11755
11756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11757 (eval $ac_compile) 2>&5
11758 ac_status=$?
11759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } 2>conftest.err; then
11761 soname=conftest
11762 lib=conftest
11763 libobjs=conftest.$ac_objext
11764 deplibs=
11765 wl=$lt_prog_compiler_wl
11766 pic_flag=$lt_prog_compiler_pic
11767 compiler_flags=-v
11768 linker_flags=-v
11769 verstring=
11770 output_objdir=.
11771 libname=conftest
11772 lt_save_allow_undefined_flag=$allow_undefined_flag
11773 allow_undefined_flag=
11774 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11775 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11776 ac_status=$?
11777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }
11779 then
11780 archive_cmds_need_lc=no
11781 else
11782 archive_cmds_need_lc=yes
11783 fi
11784 allow_undefined_flag=$lt_save_allow_undefined_flag
11785 else
11786 cat conftest.err 1>&5
11787 fi
11788 $RM conftest*
11789 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11790 $as_echo "$archive_cmds_need_lc" >&6; }
11791 ;;
11792 esac
11793 fi
11794 ;;
11795 esac
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11954 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11955
11956 if test "$GCC" = yes; then
11957 case $host_os in
11958 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11959 *) lt_awk_arg="/^libraries:/" ;;
11960 esac
11961 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11962 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11963 # if the path contains ";" then we assume it to be the separator
11964 # otherwise default to the standard path separator (i.e. ":") - it is
11965 # assumed that no part of a normal pathname contains ";" but that should
11966 # okay in the real world where ";" in dirpaths is itself problematic.
11967 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11968 else
11969 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11970 fi
11971 # Ok, now we have the path, separated by spaces, we can step through it
11972 # and add multilib dir if necessary.
11973 lt_tmp_lt_search_path_spec=
11974 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11975 for lt_sys_path in $lt_search_path_spec; do
11976 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11977 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11978 else
11979 test -d "$lt_sys_path" && \
11980 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11981 fi
11982 done
11983 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11984 BEGIN {RS=" "; FS="/|\n";} {
11985 lt_foo="";
11986 lt_count=0;
11987 for (lt_i = NF; lt_i > 0; lt_i--) {
11988 if ($lt_i != "" && $lt_i != ".") {
11989 if ($lt_i == "..") {
11990 lt_count++;
11991 } else {
11992 if (lt_count == 0) {
11993 lt_foo="/" $lt_i lt_foo;
11994 } else {
11995 lt_count--;
11996 }
11997 }
11998 }
11999 }
12000 if (lt_foo != "") { lt_freq[lt_foo]++; }
12001 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12002 }'`
12003 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12004 else
12005 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12006 fi
12007 library_names_spec=
12008 libname_spec='lib$name'
12009 soname_spec=
12010 shrext_cmds=".so"
12011 postinstall_cmds=
12012 postuninstall_cmds=
12013 finish_cmds=
12014 finish_eval=
12015 shlibpath_var=
12016 shlibpath_overrides_runpath=unknown
12017 version_type=none
12018 dynamic_linker="$host_os ld.so"
12019 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12020 need_lib_prefix=unknown
12021 hardcode_into_libs=no
12022
12023 # when you set need_version to no, make sure it does not cause -set_version
12024 # flags to be left without arguments
12025 need_version=unknown
12026
12027 case $host_os in
12028 aix3*)
12029 version_type=linux
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12031 shlibpath_var=LIBPATH
12032
12033 # AIX 3 has no versioning support, so we append a major version to the name.
12034 soname_spec='${libname}${release}${shared_ext}$major'
12035 ;;
12036
12037 aix[4-9]*)
12038 version_type=linux
12039 need_lib_prefix=no
12040 need_version=no
12041 hardcode_into_libs=yes
12042 if test "$host_cpu" = ia64; then
12043 # AIX 5 supports IA64
12044 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12045 shlibpath_var=LD_LIBRARY_PATH
12046 else
12047 # With GCC up to 2.95.x, collect2 would create an import file
12048 # for dependence libraries. The import file would start with
12049 # the line `#! .'. This would cause the generated library to
12050 # depend on `.', always an invalid library. This was fixed in
12051 # development snapshots of GCC prior to 3.0.
12052 case $host_os in
12053 aix4 | aix4.[01] | aix4.[01].*)
12054 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12055 echo ' yes '
12056 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12057 :
12058 else
12059 can_build_shared=no
12060 fi
12061 ;;
12062 esac
12063 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12064 # soname into executable. Probably we can add versioning support to
12065 # collect2, so additional links can be useful in future.
12066 if test "$aix_use_runtimelinking" = yes; then
12067 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12068 # instead of lib<name>.a to let people know that these are not
12069 # typical AIX shared libraries.
12070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071 else
12072 # We preserve .a as extension for shared libraries through AIX4.2
12073 # and later when we are not doing run time linking.
12074 library_names_spec='${libname}${release}.a $libname.a'
12075 soname_spec='${libname}${release}${shared_ext}$major'
12076 fi
12077 shlibpath_var=LIBPATH
12078 fi
12079 ;;
12080
12081 amigaos*)
12082 case $host_cpu in
12083 powerpc)
12084 # Since July 2007 AmigaOS4 officially supports .so libraries.
12085 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12087 ;;
12088 m68k)
12089 library_names_spec='$libname.ixlibrary $libname.a'
12090 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12091 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'
12092 ;;
12093 esac
12094 ;;
12095
12096 beos*)
12097 library_names_spec='${libname}${shared_ext}'
12098 dynamic_linker="$host_os ld.so"
12099 shlibpath_var=LIBRARY_PATH
12100 ;;
12101
12102 bsdi[45]*)
12103 version_type=linux
12104 need_version=no
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106 soname_spec='${libname}${release}${shared_ext}$major'
12107 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12108 shlibpath_var=LD_LIBRARY_PATH
12109 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12110 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12111 # the default ld.so.conf also contains /usr/contrib/lib and
12112 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12113 # libtool to hard-code these into programs
12114 ;;
12115
12116 cygwin* | mingw* | pw32* | cegcc*)
12117 version_type=windows
12118 shrext_cmds=".dll"
12119 need_version=no
12120 need_lib_prefix=no
12121
12122 case $GCC,$host_os in
12123 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12124 library_names_spec='$libname.dll.a'
12125 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12126 postinstall_cmds='base_file=`basename \${file}`~
12127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12128 dldir=$destdir/`dirname \$dlpath`~
12129 test -d \$dldir || mkdir -p \$dldir~
12130 $install_prog $dir/$dlname \$dldir/$dlname~
12131 chmod a+x \$dldir/$dlname~
12132 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12133 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12134 fi'
12135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12136 dlpath=$dir/\$dldll~
12137 $RM \$dlpath'
12138 shlibpath_overrides_runpath=yes
12139
12140 case $host_os in
12141 cygwin*)
12142 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12143 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12144 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12145 ;;
12146 mingw* | cegcc*)
12147 # MinGW DLLs use traditional 'lib' prefix
12148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12149 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12150 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12151 # It is most probably a Windows format PATH printed by
12152 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12153 # path with ; separators, and with drive letters. We can handle the
12154 # drive letters (cygwin fileutils understands them), so leave them,
12155 # especially as we might pass files found there to a mingw objdump,
12156 # which wouldn't understand a cygwinified path. Ahh.
12157 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12158 else
12159 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12160 fi
12161 ;;
12162 pw32*)
12163 # pw32 DLLs use 'pw' prefix rather than 'lib'
12164 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12165 ;;
12166 esac
12167 ;;
12168
12169 *)
12170 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12171 ;;
12172 esac
12173 dynamic_linker='Win32 ld.exe'
12174 # FIXME: first we should search . and the directory the executable is in
12175 shlibpath_var=PATH
12176 ;;
12177
12178 darwin* | rhapsody*)
12179 dynamic_linker="$host_os dyld"
12180 version_type=darwin
12181 need_lib_prefix=no
12182 need_version=no
12183 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12184 soname_spec='${libname}${release}${major}$shared_ext'
12185 shlibpath_overrides_runpath=yes
12186 shlibpath_var=DYLD_LIBRARY_PATH
12187 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12188
12189 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12191 ;;
12192
12193 dgux*)
12194 version_type=linux
12195 need_lib_prefix=no
12196 need_version=no
12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12198 soname_spec='${libname}${release}${shared_ext}$major'
12199 shlibpath_var=LD_LIBRARY_PATH
12200 ;;
12201
12202 freebsd1*)
12203 dynamic_linker=no
12204 ;;
12205
12206 freebsd* | dragonfly*)
12207 # DragonFly does not have aout. When/if they implement a new
12208 # versioning mechanism, adjust this.
12209 if test -x /usr/bin/objformat; then
12210 objformat=`/usr/bin/objformat`
12211 else
12212 case $host_os in
12213 freebsd[123]*) objformat=aout ;;
12214 *) objformat=elf ;;
12215 esac
12216 fi
12217 version_type=freebsd-$objformat
12218 case $version_type in
12219 freebsd-elf*)
12220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12221 need_version=no
12222 need_lib_prefix=no
12223 ;;
12224 freebsd-*)
12225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12226 need_version=yes
12227 ;;
12228 esac
12229 shlibpath_var=LD_LIBRARY_PATH
12230 case $host_os in
12231 freebsd2*)
12232 shlibpath_overrides_runpath=yes
12233 ;;
12234 freebsd3.[01]* | freebsdelf3.[01]*)
12235 shlibpath_overrides_runpath=yes
12236 hardcode_into_libs=yes
12237 ;;
12238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12240 shlibpath_overrides_runpath=no
12241 hardcode_into_libs=yes
12242 ;;
12243 *) # from 4.6 on, and DragonFly
12244 shlibpath_overrides_runpath=yes
12245 hardcode_into_libs=yes
12246 ;;
12247 esac
12248 ;;
12249
12250 gnu*)
12251 version_type=linux
12252 need_lib_prefix=no
12253 need_version=no
12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12255 soname_spec='${libname}${release}${shared_ext}$major'
12256 shlibpath_var=LD_LIBRARY_PATH
12257 hardcode_into_libs=yes
12258 ;;
12259
12260 hpux9* | hpux10* | hpux11*)
12261 # Give a soname corresponding to the major version so that dld.sl refuses to
12262 # link against other versions.
12263 version_type=sunos
12264 need_lib_prefix=no
12265 need_version=no
12266 case $host_cpu in
12267 ia64*)
12268 shrext_cmds='.so'
12269 hardcode_into_libs=yes
12270 dynamic_linker="$host_os dld.so"
12271 shlibpath_var=LD_LIBRARY_PATH
12272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12274 soname_spec='${libname}${release}${shared_ext}$major'
12275 if test "X$HPUX_IA64_MODE" = X32; then
12276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12277 else
12278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12279 fi
12280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12281 ;;
12282 hppa*64*)
12283 shrext_cmds='.sl'
12284 hardcode_into_libs=yes
12285 dynamic_linker="$host_os dld.sl"
12286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12289 soname_spec='${libname}${release}${shared_ext}$major'
12290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12292 ;;
12293 *)
12294 shrext_cmds='.sl'
12295 dynamic_linker="$host_os dld.sl"
12296 shlibpath_var=SHLIB_PATH
12297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12299 soname_spec='${libname}${release}${shared_ext}$major'
12300 ;;
12301 esac
12302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12303 postinstall_cmds='chmod 555 $lib'
12304 ;;
12305
12306 interix[3-9]*)
12307 version_type=linux
12308 need_lib_prefix=no
12309 need_version=no
12310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12311 soname_spec='${libname}${release}${shared_ext}$major'
12312 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12313 shlibpath_var=LD_LIBRARY_PATH
12314 shlibpath_overrides_runpath=no
12315 hardcode_into_libs=yes
12316 ;;
12317
12318 irix5* | irix6* | nonstopux*)
12319 case $host_os in
12320 nonstopux*) version_type=nonstopux ;;
12321 *)
12322 if test "$lt_cv_prog_gnu_ld" = yes; then
12323 version_type=linux
12324 else
12325 version_type=irix
12326 fi ;;
12327 esac
12328 need_lib_prefix=no
12329 need_version=no
12330 soname_spec='${libname}${release}${shared_ext}$major'
12331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12332 case $host_os in
12333 irix5* | nonstopux*)
12334 libsuff= shlibsuff=
12335 ;;
12336 *)
12337 case $LD in # libtool.m4 will add one of these switches to LD
12338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12339 libsuff= shlibsuff= libmagic=32-bit;;
12340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12341 libsuff=32 shlibsuff=N32 libmagic=N32;;
12342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12344 *) libsuff= shlibsuff= libmagic=never-match;;
12345 esac
12346 ;;
12347 esac
12348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12349 shlibpath_overrides_runpath=no
12350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12352 hardcode_into_libs=yes
12353 ;;
12354
12355 # No shared lib support for Linux oldld, aout, or coff.
12356 linux*oldld* | linux*aout* | linux*coff*)
12357 dynamic_linker=no
12358 ;;
12359
12360 # This must be Linux ELF.
12361 linux* | k*bsd*-gnu)
12362 version_type=linux
12363 need_lib_prefix=no
12364 need_version=no
12365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366 soname_spec='${libname}${release}${shared_ext}$major'
12367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12368 shlibpath_var=LD_LIBRARY_PATH
12369 shlibpath_overrides_runpath=no
12370 # Some binutils ld are patched to set DT_RUNPATH
12371 save_LDFLAGS=$LDFLAGS
12372 save_libdir=$libdir
12373 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12374 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381
12382 int
12383 main ()
12384 {
12385
12386 ;
12387 return 0;
12388 }
12389 _ACEOF
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (ac_try="$ac_link"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395 esac
12396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397 $as_echo "$ac_try_echo") >&5
12398 (eval "$ac_link") 2>conftest.er1
12399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_c_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest$ac_exeext && {
12408 test "$cross_compiling" = yes ||
12409 $as_test_x conftest$ac_exeext
12410 }; then
12411 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
12412 shlibpath_overrides_runpath=yes
12413 fi
12414
12415 else
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419
12420 fi
12421
12422 rm -rf conftest.dSYM
12423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LDFLAGS=$save_LDFLAGS
12426 libdir=$save_libdir
12427
12428 # This implies no fast_install, which is unacceptable.
12429 # Some rework will be needed to allow for fast_install
12430 # before this can be enabled.
12431 hardcode_into_libs=yes
12432
12433 # Add ABI-specific directories to the system library path.
12434 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12435
12436 # Append ld.so.conf contents to the search path
12437 if test -f /etc/ld.so.conf; then
12438 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' ' '`
12439 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12440 fi
12441
12442 # We used to test for /lib/ld.so.1 and disable shared libraries on
12443 # powerpc, because MkLinux only supported shared libraries with the
12444 # GNU dynamic linker. Since this was broken with cross compilers,
12445 # most powerpc-linux boxes support dynamic linking these days and
12446 # people can always --disable-shared, the test was removed, and we
12447 # assume the GNU/Linux dynamic linker is in use.
12448 dynamic_linker='GNU/Linux ld.so'
12449 ;;
12450
12451 netbsd*)
12452 version_type=sunos
12453 need_lib_prefix=no
12454 need_version=no
12455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12458 dynamic_linker='NetBSD (a.out) ld.so'
12459 else
12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12461 soname_spec='${libname}${release}${shared_ext}$major'
12462 dynamic_linker='NetBSD ld.elf_so'
12463 fi
12464 shlibpath_var=LD_LIBRARY_PATH
12465 shlibpath_overrides_runpath=yes
12466 hardcode_into_libs=yes
12467 ;;
12468
12469 newsos6)
12470 version_type=linux
12471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12472 shlibpath_var=LD_LIBRARY_PATH
12473 shlibpath_overrides_runpath=yes
12474 ;;
12475
12476 *nto* | *qnx*)
12477 version_type=qnx
12478 need_lib_prefix=no
12479 need_version=no
12480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12481 soname_spec='${libname}${release}${shared_ext}$major'
12482 shlibpath_var=LD_LIBRARY_PATH
12483 shlibpath_overrides_runpath=no
12484 hardcode_into_libs=yes
12485 dynamic_linker='ldqnx.so'
12486 ;;
12487
12488 openbsd*)
12489 version_type=sunos
12490 sys_lib_dlsearch_path_spec="/usr/lib"
12491 need_lib_prefix=no
12492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12493 case $host_os in
12494 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12495 *) need_version=no ;;
12496 esac
12497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12499 shlibpath_var=LD_LIBRARY_PATH
12500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12501 case $host_os in
12502 openbsd2.[89] | openbsd2.[89].*)
12503 shlibpath_overrides_runpath=no
12504 ;;
12505 *)
12506 shlibpath_overrides_runpath=yes
12507 ;;
12508 esac
12509 else
12510 shlibpath_overrides_runpath=yes
12511 fi
12512 ;;
12513
12514 os2*)
12515 libname_spec='$name'
12516 shrext_cmds=".dll"
12517 need_lib_prefix=no
12518 library_names_spec='$libname${shared_ext} $libname.a'
12519 dynamic_linker='OS/2 ld.exe'
12520 shlibpath_var=LIBPATH
12521 ;;
12522
12523 osf3* | osf4* | osf5*)
12524 version_type=osf
12525 need_lib_prefix=no
12526 need_version=no
12527 soname_spec='${libname}${release}${shared_ext}$major'
12528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12529 shlibpath_var=LD_LIBRARY_PATH
12530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12532 ;;
12533
12534 rdos*)
12535 dynamic_linker=no
12536 ;;
12537
12538 solaris*)
12539 version_type=linux
12540 need_lib_prefix=no
12541 need_version=no
12542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12543 soname_spec='${libname}${release}${shared_ext}$major'
12544 shlibpath_var=LD_LIBRARY_PATH
12545 shlibpath_overrides_runpath=yes
12546 hardcode_into_libs=yes
12547 # ldd complains unless libraries are executable
12548 postinstall_cmds='chmod +x $lib'
12549 ;;
12550
12551 sunos4*)
12552 version_type=sunos
12553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12554 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 shlibpath_overrides_runpath=yes
12557 if test "$with_gnu_ld" = yes; then
12558 need_lib_prefix=no
12559 fi
12560 need_version=yes
12561 ;;
12562
12563 sysv4 | sysv4.3*)
12564 version_type=linux
12565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12566 soname_spec='${libname}${release}${shared_ext}$major'
12567 shlibpath_var=LD_LIBRARY_PATH
12568 case $host_vendor in
12569 sni)
12570 shlibpath_overrides_runpath=no
12571 need_lib_prefix=no
12572 runpath_var=LD_RUN_PATH
12573 ;;
12574 siemens)
12575 need_lib_prefix=no
12576 ;;
12577 motorola)
12578 need_lib_prefix=no
12579 need_version=no
12580 shlibpath_overrides_runpath=no
12581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12582 ;;
12583 esac
12584 ;;
12585
12586 sysv4*MP*)
12587 if test -d /usr/nec ;then
12588 version_type=linux
12589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12590 soname_spec='$libname${shared_ext}.$major'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 fi
12593 ;;
12594
12595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12596 version_type=freebsd-elf
12597 need_lib_prefix=no
12598 need_version=no
12599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12600 soname_spec='${libname}${release}${shared_ext}$major'
12601 shlibpath_var=LD_LIBRARY_PATH
12602 shlibpath_overrides_runpath=yes
12603 hardcode_into_libs=yes
12604 if test "$with_gnu_ld" = yes; then
12605 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12606 else
12607 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12608 case $host_os in
12609 sco3.2v5*)
12610 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12611 ;;
12612 esac
12613 fi
12614 sys_lib_dlsearch_path_spec='/usr/lib'
12615 ;;
12616
12617 tpf*)
12618 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12619 version_type=linux
12620 need_lib_prefix=no
12621 need_version=no
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12623 shlibpath_var=LD_LIBRARY_PATH
12624 shlibpath_overrides_runpath=no
12625 hardcode_into_libs=yes
12626 ;;
12627
12628 uts4*)
12629 version_type=linux
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12631 soname_spec='${libname}${release}${shared_ext}$major'
12632 shlibpath_var=LD_LIBRARY_PATH
12633 ;;
12634
12635 *)
12636 dynamic_linker=no
12637 ;;
12638 esac
12639 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12640 $as_echo "$dynamic_linker" >&6; }
12641 test "$dynamic_linker" = no && can_build_shared=no
12642
12643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12644 if test "$GCC" = yes; then
12645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12646 fi
12647
12648 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12649 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12650 fi
12651 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12652 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12653 fi
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12742 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12743 hardcode_action=
12744 if test -n "$hardcode_libdir_flag_spec" ||
12745 test -n "$runpath_var" ||
12746 test "X$hardcode_automatic" = "Xyes" ; then
12747
12748 # We can hardcode non-existent directories.
12749 if test "$hardcode_direct" != no &&
12750 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12751 # have to relink, otherwise we might link with an installed library
12752 # when we should be linking with a yet-to-be-installed one
12753 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12754 test "$hardcode_minus_L" != no; then
12755 # Linking always hardcodes the temporary library directory.
12756 hardcode_action=relink
12757 else
12758 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12759 hardcode_action=immediate
12760 fi
12761 else
12762 # We cannot hardcode anything, or else we can only hardcode existing
12763 # directories.
12764 hardcode_action=unsupported
12765 fi
12766 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12767 $as_echo "$hardcode_action" >&6; }
12768
12769 if test "$hardcode_action" = relink ||
12770 test "$inherit_rpath" = yes; then
12771 # Fast installation is not supported
12772 enable_fast_install=no
12773 elif test "$shlibpath_overrides_runpath" = yes ||
12774 test "$enable_shared" = no; then
12775 # Fast installation is not necessary
12776 enable_fast_install=needless
12777 fi
12778
12779
12780
12781
12782
12783
12784 if test "x$enable_dlopen" != xyes; then
12785 enable_dlopen=unknown
12786 enable_dlopen_self=unknown
12787 enable_dlopen_self_static=unknown
12788 else
12789 lt_cv_dlopen=no
12790 lt_cv_dlopen_libs=
12791
12792 case $host_os in
12793 beos*)
12794 lt_cv_dlopen="load_add_on"
12795 lt_cv_dlopen_libs=
12796 lt_cv_dlopen_self=yes
12797 ;;
12798
12799 mingw* | pw32* | cegcc*)
12800 lt_cv_dlopen="LoadLibrary"
12801 lt_cv_dlopen_libs=
12802 ;;
12803
12804 cygwin*)
12805 lt_cv_dlopen="dlopen"
12806 lt_cv_dlopen_libs=
12807 ;;
12808
12809 darwin*)
12810 # if libdl is installed we need to link against it
12811 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12814 $as_echo_n "(cached) " >&6
12815 else
12816 ac_check_lib_save_LIBS=$LIBS
12817 LIBS="-ldl $LIBS"
12818 cat >conftest.$ac_ext <<_ACEOF
12819 /* confdefs.h. */
12820 _ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h. */
12824
12825 /* Override any GCC internal prototype to avoid an error.
12826 Use char because int might match the return type of a GCC
12827 builtin and then its argument prototype would still apply. */
12828 #ifdef __cplusplus
12829 extern "C"
12830 #endif
12831 char dlopen ();
12832 int
12833 main ()
12834 {
12835 return dlopen ();
12836 ;
12837 return 0;
12838 }
12839 _ACEOF
12840 rm -f conftest.$ac_objext conftest$ac_exeext
12841 if { (ac_try="$ac_link"
12842 case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845 esac
12846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12847 $as_echo "$ac_try_echo") >&5
12848 (eval "$ac_link") 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } && {
12855 test -z "$ac_c_werror_flag" ||
12856 test ! -s conftest.err
12857 } && test -s conftest$ac_exeext && {
12858 test "$cross_compiling" = yes ||
12859 $as_test_x conftest$ac_exeext
12860 }; then
12861 ac_cv_lib_dl_dlopen=yes
12862 else
12863 $as_echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 ac_cv_lib_dl_dlopen=no
12867 fi
12868
12869 rm -rf conftest.dSYM
12870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12871 conftest$ac_exeext conftest.$ac_ext
12872 LIBS=$ac_check_lib_save_LIBS
12873 fi
12874 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12875 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12876 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12878 else
12879
12880 lt_cv_dlopen="dyld"
12881 lt_cv_dlopen_libs=
12882 lt_cv_dlopen_self=yes
12883
12884 fi
12885
12886 ;;
12887
12888 *)
12889 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12890 $as_echo_n "checking for shl_load... " >&6; }
12891 if test "${ac_cv_func_shl_load+set}" = set; then
12892 $as_echo_n "(cached) " >&6
12893 else
12894 cat >conftest.$ac_ext <<_ACEOF
12895 /* confdefs.h. */
12896 _ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12900 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12902 #define shl_load innocuous_shl_load
12903
12904 /* System header to define __stub macros and hopefully few prototypes,
12905 which can conflict with char shl_load (); below.
12906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12907 <limits.h> exists even on freestanding compilers. */
12908
12909 #ifdef __STDC__
12910 # include <limits.h>
12911 #else
12912 # include <assert.h>
12913 #endif
12914
12915 #undef shl_load
12916
12917 /* Override any GCC internal prototype to avoid an error.
12918 Use char because int might match the return type of a GCC
12919 builtin and then its argument prototype would still apply. */
12920 #ifdef __cplusplus
12921 extern "C"
12922 #endif
12923 char shl_load ();
12924 /* The GNU C library defines this for functions which it implements
12925 to always fail with ENOSYS. Some functions are actually named
12926 something starting with __ and the normal name is an alias. */
12927 #if defined __stub_shl_load || defined __stub___shl_load
12928 choke me
12929 #endif
12930
12931 int
12932 main ()
12933 {
12934 return shl_load ();
12935 ;
12936 return 0;
12937 }
12938 _ACEOF
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (ac_try="$ac_link"
12941 case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12944 esac
12945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12946 $as_echo "$ac_try_echo") >&5
12947 (eval "$ac_link") 2>conftest.er1
12948 ac_status=$?
12949 grep -v '^ *+' conftest.er1 >conftest.err
12950 rm -f conftest.er1
12951 cat conftest.err >&5
12952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } && {
12954 test -z "$ac_c_werror_flag" ||
12955 test ! -s conftest.err
12956 } && test -s conftest$ac_exeext && {
12957 test "$cross_compiling" = yes ||
12958 $as_test_x conftest$ac_exeext
12959 }; then
12960 ac_cv_func_shl_load=yes
12961 else
12962 $as_echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12964
12965 ac_cv_func_shl_load=no
12966 fi
12967
12968 rm -rf conftest.dSYM
12969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12970 conftest$ac_exeext conftest.$ac_ext
12971 fi
12972 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12973 $as_echo "$ac_cv_func_shl_load" >&6; }
12974 if test "x$ac_cv_func_shl_load" = x""yes; then
12975 lt_cv_dlopen="shl_load"
12976 else
12977 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12978 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12979 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12980 $as_echo_n "(cached) " >&6
12981 else
12982 ac_check_lib_save_LIBS=$LIBS
12983 LIBS="-ldld $LIBS"
12984 cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h. */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12990
12991 /* Override any GCC internal prototype to avoid an error.
12992 Use char because int might match the return type of a GCC
12993 builtin and then its argument prototype would still apply. */
12994 #ifdef __cplusplus
12995 extern "C"
12996 #endif
12997 char shl_load ();
12998 int
12999 main ()
13000 {
13001 return shl_load ();
13002 ;
13003 return 0;
13004 }
13005 _ACEOF
13006 rm -f conftest.$ac_objext conftest$ac_exeext
13007 if { (ac_try="$ac_link"
13008 case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13011 esac
13012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13013 $as_echo "$ac_try_echo") >&5
13014 (eval "$ac_link") 2>conftest.er1
13015 ac_status=$?
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
13019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } && {
13021 test -z "$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13023 } && test -s conftest$ac_exeext && {
13024 test "$cross_compiling" = yes ||
13025 $as_test_x conftest$ac_exeext
13026 }; then
13027 ac_cv_lib_dld_shl_load=yes
13028 else
13029 $as_echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13031
13032 ac_cv_lib_dld_shl_load=no
13033 fi
13034
13035 rm -rf conftest.dSYM
13036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13037 conftest$ac_exeext conftest.$ac_ext
13038 LIBS=$ac_check_lib_save_LIBS
13039 fi
13040 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13041 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13042 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13043 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13044 else
13045 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13046 $as_echo_n "checking for dlopen... " >&6; }
13047 if test "${ac_cv_func_dlopen+set}" = set; then
13048 $as_echo_n "(cached) " >&6
13049 else
13050 cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h. */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13058 #define dlopen innocuous_dlopen
13059
13060 /* System header to define __stub macros and hopefully few prototypes,
13061 which can conflict with char dlopen (); below.
13062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13063 <limits.h> exists even on freestanding compilers. */
13064
13065 #ifdef __STDC__
13066 # include <limits.h>
13067 #else
13068 # include <assert.h>
13069 #endif
13070
13071 #undef dlopen
13072
13073 /* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13076 #ifdef __cplusplus
13077 extern "C"
13078 #endif
13079 char dlopen ();
13080 /* The GNU C library defines this for functions which it implements
13081 to always fail with ENOSYS. Some functions are actually named
13082 something starting with __ and the normal name is an alias. */
13083 #if defined __stub_dlopen || defined __stub___dlopen
13084 choke me
13085 #endif
13086
13087 int
13088 main ()
13089 {
13090 return dlopen ();
13091 ;
13092 return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (ac_try="$ac_link"
13097 case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100 esac
13101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13102 $as_echo "$ac_try_echo") >&5
13103 (eval "$ac_link") 2>conftest.er1
13104 ac_status=$?
13105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
13108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } && {
13110 test -z "$ac_c_werror_flag" ||
13111 test ! -s conftest.err
13112 } && test -s conftest$ac_exeext && {
13113 test "$cross_compiling" = yes ||
13114 $as_test_x conftest$ac_exeext
13115 }; then
13116 ac_cv_func_dlopen=yes
13117 else
13118 $as_echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121 ac_cv_func_dlopen=no
13122 fi
13123
13124 rm -rf conftest.dSYM
13125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13126 conftest$ac_exeext conftest.$ac_ext
13127 fi
13128 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13129 $as_echo "$ac_cv_func_dlopen" >&6; }
13130 if test "x$ac_cv_func_dlopen" = x""yes; then
13131 lt_cv_dlopen="dlopen"
13132 else
13133 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13134 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13136 $as_echo_n "(cached) " >&6
13137 else
13138 ac_check_lib_save_LIBS=$LIBS
13139 LIBS="-ldl $LIBS"
13140 cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h. */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13146
13147 /* Override any GCC internal prototype to avoid an error.
13148 Use char because int might match the return type of a GCC
13149 builtin and then its argument prototype would still apply. */
13150 #ifdef __cplusplus
13151 extern "C"
13152 #endif
13153 char dlopen ();
13154 int
13155 main ()
13156 {
13157 return dlopen ();
13158 ;
13159 return 0;
13160 }
13161 _ACEOF
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (ac_try="$ac_link"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167 esac
13168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13169 $as_echo "$ac_try_echo") >&5
13170 (eval "$ac_link") 2>conftest.er1
13171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest$ac_exeext && {
13180 test "$cross_compiling" = yes ||
13181 $as_test_x conftest$ac_exeext
13182 }; then
13183 ac_cv_lib_dl_dlopen=yes
13184 else
13185 $as_echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13187
13188 ac_cv_lib_dl_dlopen=no
13189 fi
13190
13191 rm -rf conftest.dSYM
13192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13193 conftest$ac_exeext conftest.$ac_ext
13194 LIBS=$ac_check_lib_save_LIBS
13195 fi
13196 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13197 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13198 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13199 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13200 else
13201 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13202 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13203 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13204 $as_echo_n "(cached) " >&6
13205 else
13206 ac_check_lib_save_LIBS=$LIBS
13207 LIBS="-lsvld $LIBS"
13208 cat >conftest.$ac_ext <<_ACEOF
13209 /* confdefs.h. */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13214
13215 /* Override any GCC internal prototype to avoid an error.
13216 Use char because int might match the return type of a GCC
13217 builtin and then its argument prototype would still apply. */
13218 #ifdef __cplusplus
13219 extern "C"
13220 #endif
13221 char dlopen ();
13222 int
13223 main ()
13224 {
13225 return dlopen ();
13226 ;
13227 return 0;
13228 }
13229 _ACEOF
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (ac_try="$ac_link"
13232 case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235 esac
13236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13237 $as_echo "$ac_try_echo") >&5
13238 (eval "$ac_link") 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && {
13245 test -z "$ac_c_werror_flag" ||
13246 test ! -s conftest.err
13247 } && test -s conftest$ac_exeext && {
13248 test "$cross_compiling" = yes ||
13249 $as_test_x conftest$ac_exeext
13250 }; then
13251 ac_cv_lib_svld_dlopen=yes
13252 else
13253 $as_echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 ac_cv_lib_svld_dlopen=no
13257 fi
13258
13259 rm -rf conftest.dSYM
13260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13261 conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS
13263 fi
13264 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13265 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13266 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
13267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13268 else
13269 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13270 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13271 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13272 $as_echo_n "(cached) " >&6
13273 else
13274 ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-ldld $LIBS"
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282
13283 /* Override any GCC internal prototype to avoid an error.
13284 Use char because int might match the return type of a GCC
13285 builtin and then its argument prototype would still apply. */
13286 #ifdef __cplusplus
13287 extern "C"
13288 #endif
13289 char dld_link ();
13290 int
13291 main ()
13292 {
13293 return dld_link ();
13294 ;
13295 return 0;
13296 }
13297 _ACEOF
13298 rm -f conftest.$ac_objext conftest$ac_exeext
13299 if { (ac_try="$ac_link"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303 esac
13304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13305 $as_echo "$ac_try_echo") >&5
13306 (eval "$ac_link") 2>conftest.er1
13307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } && {
13313 test -z "$ac_c_werror_flag" ||
13314 test ! -s conftest.err
13315 } && test -s conftest$ac_exeext && {
13316 test "$cross_compiling" = yes ||
13317 $as_test_x conftest$ac_exeext
13318 }; then
13319 ac_cv_lib_dld_dld_link=yes
13320 else
13321 $as_echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_cv_lib_dld_dld_link=no
13325 fi
13326
13327 rm -rf conftest.dSYM
13328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13329 conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS
13331 fi
13332 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13333 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13334 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
13335 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13336 fi
13337
13338
13339 fi
13340
13341
13342 fi
13343
13344
13345 fi
13346
13347
13348 fi
13349
13350
13351 fi
13352
13353 ;;
13354 esac
13355
13356 if test "x$lt_cv_dlopen" != xno; then
13357 enable_dlopen=yes
13358 else
13359 enable_dlopen=no
13360 fi
13361
13362 case $lt_cv_dlopen in
13363 dlopen)
13364 save_CPPFLAGS="$CPPFLAGS"
13365 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13366
13367 save_LDFLAGS="$LDFLAGS"
13368 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13369
13370 save_LIBS="$LIBS"
13371 LIBS="$lt_cv_dlopen_libs $LIBS"
13372
13373 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13374 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13375 if test "${lt_cv_dlopen_self+set}" = set; then
13376 $as_echo_n "(cached) " >&6
13377 else
13378 if test "$cross_compiling" = yes; then :
13379 lt_cv_dlopen_self=cross
13380 else
13381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13382 lt_status=$lt_dlunknown
13383 cat > conftest.$ac_ext <<_LT_EOF
13384 #line 13384 "configure"
13385 #include "confdefs.h"
13386
13387 #if HAVE_DLFCN_H
13388 #include <dlfcn.h>
13389 #endif
13390
13391 #include <stdio.h>
13392
13393 #ifdef RTLD_GLOBAL
13394 # define LT_DLGLOBAL RTLD_GLOBAL
13395 #else
13396 # ifdef DL_GLOBAL
13397 # define LT_DLGLOBAL DL_GLOBAL
13398 # else
13399 # define LT_DLGLOBAL 0
13400 # endif
13401 #endif
13402
13403 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13404 find out it does not work in some platform. */
13405 #ifndef LT_DLLAZY_OR_NOW
13406 # ifdef RTLD_LAZY
13407 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13408 # else
13409 # ifdef DL_LAZY
13410 # define LT_DLLAZY_OR_NOW DL_LAZY
13411 # else
13412 # ifdef RTLD_NOW
13413 # define LT_DLLAZY_OR_NOW RTLD_NOW
13414 # else
13415 # ifdef DL_NOW
13416 # define LT_DLLAZY_OR_NOW DL_NOW
13417 # else
13418 # define LT_DLLAZY_OR_NOW 0
13419 # endif
13420 # endif
13421 # endif
13422 # endif
13423 #endif
13424
13425 void fnord() { int i=42;}
13426 int main ()
13427 {
13428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13429 int status = $lt_dlunknown;
13430
13431 if (self)
13432 {
13433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13435 /* dlclose (self); */
13436 }
13437 else
13438 puts (dlerror ());
13439
13440 return status;
13441 }
13442 _LT_EOF
13443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13444 (eval $ac_link) 2>&5
13445 ac_status=$?
13446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13448 (./conftest; exit; ) >&5 2>/dev/null
13449 lt_status=$?
13450 case x$lt_status in
13451 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13452 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13453 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13454 esac
13455 else :
13456 # compilation failed
13457 lt_cv_dlopen_self=no
13458 fi
13459 fi
13460 rm -fr conftest*
13461
13462
13463 fi
13464 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13465 $as_echo "$lt_cv_dlopen_self" >&6; }
13466
13467 if test "x$lt_cv_dlopen_self" = xyes; then
13468 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13469 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13470 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13471 if test "${lt_cv_dlopen_self_static+set}" = set; then
13472 $as_echo_n "(cached) " >&6
13473 else
13474 if test "$cross_compiling" = yes; then :
13475 lt_cv_dlopen_self_static=cross
13476 else
13477 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13478 lt_status=$lt_dlunknown
13479 cat > conftest.$ac_ext <<_LT_EOF
13480 #line 13480 "configure"
13481 #include "confdefs.h"
13482
13483 #if HAVE_DLFCN_H
13484 #include <dlfcn.h>
13485 #endif
13486
13487 #include <stdio.h>
13488
13489 #ifdef RTLD_GLOBAL
13490 # define LT_DLGLOBAL RTLD_GLOBAL
13491 #else
13492 # ifdef DL_GLOBAL
13493 # define LT_DLGLOBAL DL_GLOBAL
13494 # else
13495 # define LT_DLGLOBAL 0
13496 # endif
13497 #endif
13498
13499 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13500 find out it does not work in some platform. */
13501 #ifndef LT_DLLAZY_OR_NOW
13502 # ifdef RTLD_LAZY
13503 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13504 # else
13505 # ifdef DL_LAZY
13506 # define LT_DLLAZY_OR_NOW DL_LAZY
13507 # else
13508 # ifdef RTLD_NOW
13509 # define LT_DLLAZY_OR_NOW RTLD_NOW
13510 # else
13511 # ifdef DL_NOW
13512 # define LT_DLLAZY_OR_NOW DL_NOW
13513 # else
13514 # define LT_DLLAZY_OR_NOW 0
13515 # endif
13516 # endif
13517 # endif
13518 # endif
13519 #endif
13520
13521 void fnord() { int i=42;}
13522 int main ()
13523 {
13524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13525 int status = $lt_dlunknown;
13526
13527 if (self)
13528 {
13529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13530 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13531 /* dlclose (self); */
13532 }
13533 else
13534 puts (dlerror ());
13535
13536 return status;
13537 }
13538 _LT_EOF
13539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13540 (eval $ac_link) 2>&5
13541 ac_status=$?
13542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13544 (./conftest; exit; ) >&5 2>/dev/null
13545 lt_status=$?
13546 case x$lt_status in
13547 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13548 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13549 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13550 esac
13551 else :
13552 # compilation failed
13553 lt_cv_dlopen_self_static=no
13554 fi
13555 fi
13556 rm -fr conftest*
13557
13558
13559 fi
13560 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13561 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13562 fi
13563
13564 CPPFLAGS="$save_CPPFLAGS"
13565 LDFLAGS="$save_LDFLAGS"
13566 LIBS="$save_LIBS"
13567 ;;
13568 esac
13569
13570 case $lt_cv_dlopen_self in
13571 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13572 *) enable_dlopen_self=unknown ;;
13573 esac
13574
13575 case $lt_cv_dlopen_self_static in
13576 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13577 *) enable_dlopen_self_static=unknown ;;
13578 esac
13579 fi
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597 striplib=
13598 old_striplib=
13599 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13600 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13601 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13602 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13603 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13604 { $as_echo "$as_me:$LINENO: result: yes" >&5
13605 $as_echo "yes" >&6; }
13606 else
13607 # FIXME - insert some real tests, host_os isn't really good enough
13608 case $host_os in
13609 darwin*)
13610 if test -n "$STRIP" ; then
13611 striplib="$STRIP -x"
13612 old_striplib="$STRIP -S"
13613 { $as_echo "$as_me:$LINENO: result: yes" >&5
13614 $as_echo "yes" >&6; }
13615 else
13616 { $as_echo "$as_me:$LINENO: result: no" >&5
13617 $as_echo "no" >&6; }
13618 fi
13619 ;;
13620 *)
13621 { $as_echo "$as_me:$LINENO: result: no" >&5
13622 $as_echo "no" >&6; }
13623 ;;
13624 esac
13625 fi
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638 # Report which library types will actually be built
13639 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13640 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13641 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13642 $as_echo "$can_build_shared" >&6; }
13643
13644 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13645 $as_echo_n "checking whether to build shared libraries... " >&6; }
13646 test "$can_build_shared" = "no" && enable_shared=no
13647
13648 # On AIX, shared libraries and static libraries use the same namespace, and
13649 # are all built from PIC.
13650 case $host_os in
13651 aix3*)
13652 test "$enable_shared" = yes && enable_static=no
13653 if test -n "$RANLIB"; then
13654 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13655 postinstall_cmds='$RANLIB $lib'
13656 fi
13657 ;;
13658
13659 aix[4-9]*)
13660 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13661 test "$enable_shared" = yes && enable_static=no
13662 fi
13663 ;;
13664 esac
13665 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13666 $as_echo "$enable_shared" >&6; }
13667
13668 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13669 $as_echo_n "checking whether to build static libraries... " >&6; }
13670 # Make sure either enable_shared or enable_static is yes.
13671 test "$enable_shared" = yes || enable_static=yes
13672 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13673 $as_echo "$enable_static" >&6; }
13674
13675
13676
13677
13678 fi
13679 ac_ext=c
13680 ac_cpp='$CPP $CPPFLAGS'
13681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13684
13685 CC="$lt_save_CC"
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699 ac_config_commands="$ac_config_commands libtool"
13700
13701
13702
13703
13704 # Only expand once:
13705
13706
13707
13708
13709 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13710 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13711 if test "${ac_cv_c_bigendian+set}" = set; then
13712 $as_echo_n "(cached) " >&6
13713 else
13714 ac_cv_c_bigendian=unknown
13715 # See if we're dealing with a universal compiler.
13716 cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h. */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 #ifndef __APPLE_CC__
13723 not a universal capable compiler
13724 #endif
13725 typedef int dummy;
13726
13727 _ACEOF
13728 rm -f conftest.$ac_objext
13729 if { (ac_try="$ac_compile"
13730 case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13733 esac
13734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13735 $as_echo "$ac_try_echo") >&5
13736 (eval "$ac_compile") 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
13745 } && test -s conftest.$ac_objext; then
13746
13747 # Check for potential -arch flags. It is not universal unless
13748 # there are some -arch flags. Note that *ppc* also matches
13749 # ppc64. This check is also rather less than ideal.
13750 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
13751 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13752 esac
13753 else
13754 $as_echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757
13758 fi
13759
13760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13761 if test $ac_cv_c_bigendian = unknown; then
13762 # See if sys/param.h defines the BYTE_ORDER macro.
13763 cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h. */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 #include <sys/types.h>
13770 #include <sys/param.h>
13771
13772 int
13773 main ()
13774 {
13775 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13776 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13777 && LITTLE_ENDIAN)
13778 bogus endian macros
13779 #endif
13780
13781 ;
13782 return 0;
13783 }
13784 _ACEOF
13785 rm -f conftest.$ac_objext
13786 if { (ac_try="$ac_compile"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790 esac
13791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13792 $as_echo "$ac_try_echo") >&5
13793 (eval "$ac_compile") 2>conftest.er1
13794 ac_status=$?
13795 grep -v '^ *+' conftest.er1 >conftest.err
13796 rm -f conftest.er1
13797 cat conftest.err >&5
13798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } && {
13800 test -z "$ac_c_werror_flag" ||
13801 test ! -s conftest.err
13802 } && test -s conftest.$ac_objext; then
13803 # It does; now see whether it defined to BIG_ENDIAN or not.
13804 cat >conftest.$ac_ext <<_ACEOF
13805 /* confdefs.h. */
13806 _ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h. */
13810 #include <sys/types.h>
13811 #include <sys/param.h>
13812
13813 int
13814 main ()
13815 {
13816 #if BYTE_ORDER != BIG_ENDIAN
13817 not big endian
13818 #endif
13819
13820 ;
13821 return 0;
13822 }
13823 _ACEOF
13824 rm -f conftest.$ac_objext
13825 if { (ac_try="$ac_compile"
13826 case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13829 esac
13830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13831 $as_echo "$ac_try_echo") >&5
13832 (eval "$ac_compile") 2>conftest.er1
13833 ac_status=$?
13834 grep -v '^ *+' conftest.er1 >conftest.err
13835 rm -f conftest.er1
13836 cat conftest.err >&5
13837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } && {
13839 test -z "$ac_c_werror_flag" ||
13840 test ! -s conftest.err
13841 } && test -s conftest.$ac_objext; then
13842 ac_cv_c_bigendian=yes
13843 else
13844 $as_echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 ac_cv_c_bigendian=no
13848 fi
13849
13850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13851 else
13852 $as_echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13854
13855
13856 fi
13857
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13859 fi
13860 if test $ac_cv_c_bigendian = unknown; then
13861 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13862 cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h. */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 #include <limits.h>
13869
13870 int
13871 main ()
13872 {
13873 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13874 bogus endian macros
13875 #endif
13876
13877 ;
13878 return 0;
13879 }
13880 _ACEOF
13881 rm -f conftest.$ac_objext
13882 if { (ac_try="$ac_compile"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886 esac
13887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13888 $as_echo "$ac_try_echo") >&5
13889 (eval "$ac_compile") 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest.$ac_objext; then
13899 # It does; now see whether it defined to _BIG_ENDIAN or not.
13900 cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h. */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906 #include <limits.h>
13907
13908 int
13909 main ()
13910 {
13911 #ifndef _BIG_ENDIAN
13912 not big endian
13913 #endif
13914
13915 ;
13916 return 0;
13917 }
13918 _ACEOF
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13924 esac
13925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13926 $as_echo "$ac_try_echo") >&5
13927 (eval "$ac_compile") 2>conftest.er1
13928 ac_status=$?
13929 grep -v '^ *+' conftest.er1 >conftest.err
13930 rm -f conftest.er1
13931 cat conftest.err >&5
13932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } && {
13934 test -z "$ac_c_werror_flag" ||
13935 test ! -s conftest.err
13936 } && test -s conftest.$ac_objext; then
13937 ac_cv_c_bigendian=yes
13938 else
13939 $as_echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13941
13942 ac_cv_c_bigendian=no
13943 fi
13944
13945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13946 else
13947 $as_echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950
13951 fi
13952
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954 fi
13955 if test $ac_cv_c_bigendian = unknown; then
13956 # Compile a test program.
13957 if test "$cross_compiling" = yes; then
13958 # Try to guess by grepping values from an object file.
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 short int ascii_mm[] =
13966 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13967 short int ascii_ii[] =
13968 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13969 int use_ascii (int i) {
13970 return ascii_mm[i] + ascii_ii[i];
13971 }
13972 short int ebcdic_ii[] =
13973 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13974 short int ebcdic_mm[] =
13975 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13976 int use_ebcdic (int i) {
13977 return ebcdic_mm[i] + ebcdic_ii[i];
13978 }
13979 extern int foo;
13980
13981 int
13982 main ()
13983 {
13984 return use_ascii (foo) == use_ebcdic (foo);
13985 ;
13986 return 0;
13987 }
13988 _ACEOF
13989 rm -f conftest.$ac_objext
13990 if { (ac_try="$ac_compile"
13991 case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13994 esac
13995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13996 $as_echo "$ac_try_echo") >&5
13997 (eval "$ac_compile") 2>conftest.er1
13998 ac_status=$?
13999 grep -v '^ *+' conftest.er1 >conftest.err
14000 rm -f conftest.er1
14001 cat conftest.err >&5
14002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } && {
14004 test -z "$ac_c_werror_flag" ||
14005 test ! -s conftest.err
14006 } && test -s conftest.$ac_objext; then
14007 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14008 ac_cv_c_bigendian=yes
14009 fi
14010 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14011 if test "$ac_cv_c_bigendian" = unknown; then
14012 ac_cv_c_bigendian=no
14013 else
14014 # finding both strings is unlikely to happen, but who knows?
14015 ac_cv_c_bigendian=unknown
14016 fi
14017 fi
14018 else
14019 $as_echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14021
14022
14023 fi
14024
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026 else
14027 cat >conftest.$ac_ext <<_ACEOF
14028 /* confdefs.h. */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14033 $ac_includes_default
14034 int
14035 main ()
14036 {
14037
14038 /* Are we little or big endian? From Harbison&Steele. */
14039 union
14040 {
14041 long int l;
14042 char c[sizeof (long int)];
14043 } u;
14044 u.l = 1;
14045 return u.c[sizeof (long int) - 1] == 1;
14046
14047 ;
14048 return 0;
14049 }
14050 _ACEOF
14051 rm -f conftest$ac_exeext
14052 if { (ac_try="$ac_link"
14053 case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14056 esac
14057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14058 $as_echo "$ac_try_echo") >&5
14059 (eval "$ac_link") 2>&5
14060 ac_status=$?
14061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14063 { (case "(($ac_try" in
14064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065 *) ac_try_echo=$ac_try;;
14066 esac
14067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14068 $as_echo "$ac_try_echo") >&5
14069 (eval "$ac_try") 2>&5
14070 ac_status=$?
14071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 ac_cv_c_bigendian=no
14074 else
14075 $as_echo "$as_me: program exited with status $ac_status" >&5
14076 $as_echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14078
14079 ( exit $ac_status )
14080 ac_cv_c_bigendian=yes
14081 fi
14082 rm -rf conftest.dSYM
14083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14084 fi
14085
14086
14087 fi
14088 fi
14089 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14090 $as_echo "$ac_cv_c_bigendian" >&6; }
14091 case $ac_cv_c_bigendian in #(
14092 yes)
14093
14094 cat >>confdefs.h <<\_ACEOF
14095 #define _BIG_ENDIAN 1
14096 _ACEOF
14097 ;; #(
14098 no)
14099 ;; #(
14100 universal)
14101
14102 cat >>confdefs.h <<\_ACEOF
14103 #define AC_APPLE_UNIVERSAL_BUILD 1
14104 _ACEOF
14105
14106 ;; #(
14107 *)
14108 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14109 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14110 $as_echo "$as_me: error: unknown endianness
14111 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14112 { (exit 1); exit 1; }; } ;;
14113 esac
14114
14115 { $as_echo "$as_me:$LINENO: checking whether htole32 is declared" >&5
14116 $as_echo_n "checking whether htole32 is declared... " >&6; }
14117 if test "${ac_cv_have_decl_htole32+set}" = set; then
14118 $as_echo_n "(cached) " >&6
14119 else
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 $ac_includes_default
14127 int
14128 main ()
14129 {
14130 #ifndef htole32
14131 (void) htole32;
14132 #endif
14133
14134 ;
14135 return 0;
14136 }
14137 _ACEOF
14138 rm -f conftest.$ac_objext
14139 if { (ac_try="$ac_compile"
14140 case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14143 esac
14144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14145 $as_echo "$ac_try_echo") >&5
14146 (eval "$ac_compile") 2>conftest.er1
14147 ac_status=$?
14148 grep -v '^ *+' conftest.er1 >conftest.err
14149 rm -f conftest.er1
14150 cat conftest.err >&5
14151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } && {
14153 test -z "$ac_c_werror_flag" ||
14154 test ! -s conftest.err
14155 } && test -s conftest.$ac_objext; then
14156 ac_cv_have_decl_htole32=yes
14157 else
14158 $as_echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14160
14161 ac_cv_have_decl_htole32=no
14162 fi
14163
14164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165 fi
14166 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole32" >&5
14167 $as_echo "$ac_cv_have_decl_htole32" >&6; }
14168 if test "x$ac_cv_have_decl_htole32" = x""yes; then
14169
14170 cat >>confdefs.h <<\_ACEOF
14171 #define HTOLE_DEFINED 1
14172 _ACEOF
14173
14174 fi
14175
14176 if test "${ac_cv_header_sys_byteorder_h+set}" = set; then
14177 { $as_echo "$as_me:$LINENO: checking for sys/byteorder.h" >&5
14178 $as_echo_n "checking for sys/byteorder.h... " >&6; }
14179 if test "${ac_cv_header_sys_byteorder_h+set}" = set; then
14180 $as_echo_n "(cached) " >&6
14181 fi
14182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_byteorder_h" >&5
14183 $as_echo "$ac_cv_header_sys_byteorder_h" >&6; }
14184 else
14185 # Is the header compilable?
14186 { $as_echo "$as_me:$LINENO: checking sys/byteorder.h usability" >&5
14187 $as_echo_n "checking sys/byteorder.h usability... " >&6; }
14188 cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h. */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14194 $ac_includes_default
14195 #include <sys/byteorder.h>
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (ac_try="$ac_compile"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202 esac
14203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14204 $as_echo "$ac_try_echo") >&5
14205 (eval "$ac_compile") 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } && {
14212 test -z "$ac_c_werror_flag" ||
14213 test ! -s conftest.err
14214 } && test -s conftest.$ac_objext; then
14215 ac_header_compiler=yes
14216 else
14217 $as_echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14219
14220 ac_header_compiler=no
14221 fi
14222
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14225 $as_echo "$ac_header_compiler" >&6; }
14226
14227 # Is the header present?
14228 { $as_echo "$as_me:$LINENO: checking sys/byteorder.h presence" >&5
14229 $as_echo_n "checking sys/byteorder.h presence... " >&6; }
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h. */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 #include <sys/byteorder.h>
14237 _ACEOF
14238 if { (ac_try="$ac_cpp conftest.$ac_ext"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242 esac
14243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14244 $as_echo "$ac_try_echo") >&5
14245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14246 ac_status=$?
14247 grep -v '^ *+' conftest.er1 >conftest.err
14248 rm -f conftest.er1
14249 cat conftest.err >&5
14250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } >/dev/null && {
14252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 }; then
14255 ac_header_preproc=yes
14256 else
14257 $as_echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260 ac_header_preproc=no
14261 fi
14262
14263 rm -f conftest.err conftest.$ac_ext
14264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14265 $as_echo "$ac_header_preproc" >&6; }
14266
14267 # So? What about this header?
14268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14269 yes:no: )
14270 { $as_echo "$as_me:$LINENO: WARNING: sys/byteorder.h: accepted by the compiler, rejected by the preprocessor!" >&5
14271 $as_echo "$as_me: WARNING: sys/byteorder.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14272 { $as_echo "$as_me:$LINENO: WARNING: sys/byteorder.h: proceeding with the compiler's result" >&5
14273 $as_echo "$as_me: WARNING: sys/byteorder.h: proceeding with the compiler's result" >&2;}
14274 ac_header_preproc=yes
14275 ;;
14276 no:yes:* )
14277 { $as_echo "$as_me:$LINENO: WARNING: sys/byteorder.h: present but cannot be compiled" >&5
14278 $as_echo "$as_me: WARNING: sys/byteorder.h: present but cannot be compiled" >&2;}
14279 { $as_echo "$as_me:$LINENO: WARNING: sys/byteorder.h: check for missing prerequisite headers?" >&5
14280 $as_echo "$as_me: WARNING: sys/byteorder.h: check for missing prerequisite headers?" >&2;}
14281 { $as_echo "$as_me:$LINENO: WARNING: sys/byteorder.h: see the Autoconf documentation" >&5
14282 $as_echo "$as_me: WARNING: sys/byteorder.h: see the Autoconf documentation" >&2;}
14283 { $as_echo "$as_me:$LINENO: WARNING: sys/byteorder.h: section \"Present But Cannot Be Compiled\"" >&5
14284 $as_echo "$as_me: WARNING: sys/byteorder.h: section \"Present But Cannot Be Compiled\"" >&2;}
14285 { $as_echo "$as_me:$LINENO: WARNING: sys/byteorder.h: proceeding with the preprocessor's result" >&5
14286 $as_echo "$as_me: WARNING: sys/byteorder.h: proceeding with the preprocessor's result" >&2;}
14287 { $as_echo "$as_me:$LINENO: WARNING: sys/byteorder.h: in the future, the compiler will take precedence" >&5
14288 $as_echo "$as_me: WARNING: sys/byteorder.h: in the future, the compiler will take precedence" >&2;}
14289 ( cat <<\_ASBOX
14290 ## ----------------------------------------- ##
14291 ## Report this to trousers-tech (at] lists.sf.net ##
14292 ## ----------------------------------------- ##
14293 _ASBOX
14294 ) | sed "s/^/$as_me: WARNING: /" >&2
14295 ;;
14296 esac
14297 { $as_echo "$as_me:$LINENO: checking for sys/byteorder.h" >&5
14298 $as_echo_n "checking for sys/byteorder.h... " >&6; }
14299 if test "${ac_cv_header_sys_byteorder_h+set}" = set; then
14300 $as_echo_n "(cached) " >&6
14301 else
14302 ac_cv_header_sys_byteorder_h=$ac_header_preproc
14303 fi
14304 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_byteorder_h" >&5
14305 $as_echo "$ac_cv_header_sys_byteorder_h" >&6; }
14306
14307 fi
14308 if test "x$ac_cv_header_sys_byteorder_h" = x""yes; then
14309
14310 cat >>confdefs.h <<\_ACEOF
14311 #define HAVE_BYTEORDER_H 1
14312 _ACEOF
14313
14314 fi
14315
14316
14317 { $as_echo "$as_me:$LINENO: checking for daemon" >&5
14318 $as_echo_n "checking for daemon... " >&6; }
14319 if test "${ac_cv_func_daemon+set}" = set; then
14320 $as_echo_n "(cached) " >&6
14321 else
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 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
14329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14330 #define daemon innocuous_daemon
14331
14332 /* System header to define __stub macros and hopefully few prototypes,
14333 which can conflict with char daemon (); below.
14334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14335 <limits.h> exists even on freestanding compilers. */
14336
14337 #ifdef __STDC__
14338 # include <limits.h>
14339 #else
14340 # include <assert.h>
14341 #endif
14342
14343 #undef daemon
14344
14345 /* Override any GCC internal prototype to avoid an error.
14346 Use char because int might match the return type of a GCC
14347 builtin and then its argument prototype would still apply. */
14348 #ifdef __cplusplus
14349 extern "C"
14350 #endif
14351 char daemon ();
14352 /* The GNU C library defines this for functions which it implements
14353 to always fail with ENOSYS. Some functions are actually named
14354 something starting with __ and the normal name is an alias. */
14355 #if defined __stub_daemon || defined __stub___daemon
14356 choke me
14357 #endif
14358
14359 int
14360 main ()
14361 {
14362 return daemon ();
14363 ;
14364 return 0;
14365 }
14366 _ACEOF
14367 rm -f conftest.$ac_objext conftest$ac_exeext
14368 if { (ac_try="$ac_link"
14369 case "(($ac_try" in
14370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14371 *) ac_try_echo=$ac_try;;
14372 esac
14373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14374 $as_echo "$ac_try_echo") >&5
14375 (eval "$ac_link") 2>conftest.er1
14376 ac_status=$?
14377 grep -v '^ *+' conftest.er1 >conftest.err
14378 rm -f conftest.er1
14379 cat conftest.err >&5
14380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } && {
14382 test -z "$ac_c_werror_flag" ||
14383 test ! -s conftest.err
14384 } && test -s conftest$ac_exeext && {
14385 test "$cross_compiling" = yes ||
14386 $as_test_x conftest$ac_exeext
14387 }; then
14388 ac_cv_func_daemon=yes
14389 else
14390 $as_echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393 ac_cv_func_daemon=no
14394 fi
14395
14396 rm -rf conftest.dSYM
14397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14398 conftest$ac_exeext conftest.$ac_ext
14399 fi
14400 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
14401 $as_echo "$ac_cv_func_daemon" >&6; }
14402 if test "x$ac_cv_func_daemon" = x""yes; then
14403
14404 cat >>confdefs.h <<\_ACEOF
14405 #define HAVE_DAEMON 1
14406 _ACEOF
14407
14408 fi
14409
14410
14411 if test "x${GCC}" = "xyes"; then
14412 CFLAGS="$CFLAGS -W -Wall -Wno-unused-parameter -Wsign-compare"
14413 fi
14414
14415 CFLAGS="$CFLAGS -I../include \
14416 -DTCSD_DEFAULT_PORT=${TCSD_DEFAULT_PORT} -DTSS_VER_MAJOR=${TSS_VER_MAJOR} \
14417 -DTSS_VER_MINOR=${TSS_VER_MINOR} -DTSS_SPEC_MAJOR=${TSS_SPEC_MAJOR} \
14418 -DTSS_SPEC_MINOR=${TSS_SPEC_MINOR}"
14419 #CFLAGS="$CFLAGS -I../include -std=c99 -pedantic -W -Wall"
14420 KERNEL_VERSION=`uname -r`
14421
14422
14423 # When we build the rpms, prefix will be /usr. This'll do some things that make sense,
14424 # like put our sbin stuff in /usr/sbin and our library in /usr/lib. It'll do some other
14425 # things that don't make sense like put our config file in /usr/etc. So, I'll just hack
14426 # it here. If the --prefix option isn't specified during configure, let it all go to
14427 # /usr/local, even /usr/local/etc. :-P
14428 if test x"${prefix}" = x"/usr"; then
14429 sysconfdir="/etc"
14430 localstatedir="/var"
14431 mandir="/usr/share/man"
14432 elif test x"${prefix}" = x"NONE"; then
14433 localstatedir="/usr/local/var"
14434 fi
14435
14436 ac_config_files="$ac_config_files dist/tcsd.conf dist/fedora/trousers.spec dist/trousers.spec Makefile src/Makefile src/include/Makefile src/tcs/Makefile src/tddl/Makefile src/tspi/Makefile src/trspi/Makefile src/tcsd/Makefile man/man8/tcsd.8 man/man5/tcsd.conf.5 dist/Makefile man/Makefile man/man3/Makefile man/man5/Makefile man/man8/Makefile"
14437
14438 cat >confcache <<\_ACEOF
14439 # This file is a shell script that caches the results of configure
14440 # tests run on this system so they can be shared between configure
14441 # scripts and configure runs, see configure's option --config-cache.
14442 # It is not useful on other systems. If it contains results you don't
14443 # want to keep, you may remove or edit it.
14444 #
14445 # config.status only pays attention to the cache file if you give it
14446 # the --recheck option to rerun configure.
14447 #
14448 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14449 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14450 # following values.
14451
14452 _ACEOF
14453
14454 # The following way of writing the cache mishandles newlines in values,
14455 # but we know of no workaround that is simple, portable, and efficient.
14456 # So, we kill variables containing newlines.
14457 # Ultrix sh set writes to stderr and can't be redirected directly,
14458 # and sets the high bit in the cache file unless we assign to the vars.
14459 (
14460 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14461 eval ac_val=\$$ac_var
14462 case $ac_val in #(
14463 *${as_nl}*)
14464 case $ac_var in #(
14465 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14467 esac
14468 case $ac_var in #(
14469 _ | IFS | as_nl) ;; #(
14470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14471 *) $as_unset $ac_var ;;
14472 esac ;;
14473 esac
14474 done
14475
14476 (set) 2>&1 |
14477 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14478 *${as_nl}ac_space=\ *)
14479 # `set' does not quote correctly, so add quotes (double-quote
14480 # substitution turns \\\\ into \\, and sed turns \\ into \).
14481 sed -n \
14482 "s/'/'\\\\''/g;
14483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14484 ;; #(
14485 *)
14486 # `set' quotes correctly as required by POSIX, so do not add quotes.
14487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14488 ;;
14489 esac |
14490 sort
14491 ) |
14492 sed '
14493 /^ac_cv_env_/b end
14494 t clear
14495 :clear
14496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14497 t end
14498 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14499 :end' >>confcache
14500 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14501 if test -w "$cache_file"; then
14502 test "x$cache_file" != "x/dev/null" &&
14503 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14504 $as_echo "$as_me: updating cache $cache_file" >&6;}
14505 cat confcache >$cache_file
14506 else
14507 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14508 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14509 fi
14510 fi
14511 rm -f confcache
14512
14513 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14514 # Let make expand exec_prefix.
14515 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14516
14517 # Transform confdefs.h into DEFS.
14518 # Protect against shell expansion while executing Makefile rules.
14519 # Protect against Makefile macro expansion.
14520 #
14521 # If the first sed substitution is executed (which looks for macros that
14522 # take arguments), then branch to the quote section. Otherwise,
14523 # look for a macro that doesn't take arguments.
14524 ac_script='
14525 :mline
14526 /\\$/{
14527 N
14528 s,\\\n,,
14529 b mline
14530 }
14531 t clear
14532 :clear
14533 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14534 t quote
14535 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14536 t quote
14537 b any
14538 :quote
14539 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14540 s/\[/\\&/g
14541 s/\]/\\&/g
14542 s/\$/$$/g
14543 H
14544 :any
14545 ${
14546 g
14547 s/^\n//
14548 s/\n/ /g
14549 p
14550 }
14551 '
14552 DEFS=`sed -n "$ac_script" confdefs.h`
14553
14554
14555 ac_libobjs=
14556 ac_ltlibobjs=
14557 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14558 # 1. Remove the extension, and $U if already installed.
14559 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14560 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14561 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14562 # will be set to the directory where LIBOBJS objects are built.
14563 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14564 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14565 done
14566 LIBOBJS=$ac_libobjs
14567
14568 LTLIBOBJS=$ac_ltlibobjs
14569
14570
14571 if test -n "$EXEEXT"; then
14572 am__EXEEXT_TRUE=
14573 am__EXEEXT_FALSE='#'
14574 else
14575 am__EXEEXT_TRUE='#'
14576 am__EXEEXT_FALSE=
14577 fi
14578
14579 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14580 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14581 Usually this means the macro was only invoked conditionally." >&5
14582 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14583 Usually this means the macro was only invoked conditionally." >&2;}
14584 { (exit 1); exit 1; }; }
14585 fi
14586 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14587 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14588 Usually this means the macro was only invoked conditionally." >&5
14589 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14590 Usually this means the macro was only invoked conditionally." >&2;}
14591 { (exit 1); exit 1; }; }
14592 fi
14593 if test -z "${NOUSERCHECK_TRUE}" && test -z "${NOUSERCHECK_FALSE}"; then
14594 { { $as_echo "$as_me:$LINENO: error: conditional \"NOUSERCHECK\" was never defined.
14595 Usually this means the macro was only invoked conditionally." >&5
14596 $as_echo "$as_me: error: conditional \"NOUSERCHECK\" was never defined.
14597 Usually this means the macro was only invoked conditionally." >&2;}
14598 { (exit 1); exit 1; }; }
14599 fi
14600 if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
14601 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
14602 Usually this means the macro was only invoked conditionally." >&5
14603 $as_echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
14604 Usually this means the macro was only invoked conditionally." >&2;}
14605 { (exit 1); exit 1; }; }
14606 fi
14607 if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
14608 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
14609 Usually this means the macro was only invoked conditionally." >&5
14610 $as_echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
14611 Usually this means the macro was only invoked conditionally." >&2;}
14612 { (exit 1); exit 1; }; }
14613 fi
14614 if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
14615 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
14616 Usually this means the macro was only invoked conditionally." >&5
14617 $as_echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
14618 Usually this means the macro was only invoked conditionally." >&2;}
14619 { (exit 1); exit 1; }; }
14620 fi
14621 if test -z "${OPENSSL_UI_TRUE}" && test -z "${OPENSSL_UI_FALSE}"; then
14622 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENSSL_UI\" was never defined.
14623 Usually this means the macro was only invoked conditionally." >&5
14624 $as_echo "$as_me: error: conditional \"OPENSSL_UI\" was never defined.
14625 Usually this means the macro was only invoked conditionally." >&2;}
14626 { (exit 1); exit 1; }; }
14627 fi
14628 if test -z "${OPENSSL_UI_TRUE}" && test -z "${OPENSSL_UI_FALSE}"; then
14629 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENSSL_UI\" was never defined.
14630 Usually this means the macro was only invoked conditionally." >&5
14631 $as_echo "$as_me: error: conditional \"OPENSSL_UI\" was never defined.
14632 Usually this means the macro was only invoked conditionally." >&2;}
14633 { (exit 1); exit 1; }; }
14634 fi
14635 if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
14636 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
14637 Usually this means the macro was only invoked conditionally." >&5
14638 $as_echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
14639 Usually this means the macro was only invoked conditionally." >&2;}
14640 { (exit 1); exit 1; }; }
14641 fi
14642 if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
14643 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
14644 Usually this means the macro was only invoked conditionally." >&5
14645 $as_echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
14646 Usually this means the macro was only invoked conditionally." >&2;}
14647 { (exit 1); exit 1; }; }
14648 fi
14649 if test -z "${OPENSSL_UI_TRUE}" && test -z "${OPENSSL_UI_FALSE}"; then
14650 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENSSL_UI\" was never defined.
14651 Usually this means the macro was only invoked conditionally." >&5
14652 $as_echo "$as_me: error: conditional \"OPENSSL_UI\" was never defined.
14653 Usually this means the macro was only invoked conditionally." >&2;}
14654 { (exit 1); exit 1; }; }
14655 fi
14656 if test -z "${TSS_BUILD_HASH_TRUE}" && test -z "${TSS_BUILD_HASH_FALSE}"; then
14657 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_HASH\" was never defined.
14658 Usually this means the macro was only invoked conditionally." >&5
14659 $as_echo "$as_me: error: conditional \"TSS_BUILD_HASH\" was never defined.
14660 Usually this means the macro was only invoked conditionally." >&2;}
14661 { (exit 1); exit 1; }; }
14662 fi
14663 if test -z "${TSS_BUILD_GETSET_TRUE}" && test -z "${TSS_BUILD_GETSET_FALSE}"; then
14664 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_GETSET\" was never defined.
14665 Usually this means the macro was only invoked conditionally." >&5
14666 $as_echo "$as_me: error: conditional \"TSS_BUILD_GETSET\" was never defined.
14667 Usually this means the macro was only invoked conditionally." >&2;}
14668 { (exit 1); exit 1; }; }
14669 fi
14670 if test -z "${TSS_BUILD_RANDOM_TRUE}" && test -z "${TSS_BUILD_RANDOM_FALSE}"; then
14671 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_RANDOM\" was never defined.
14672 Usually this means the macro was only invoked conditionally." >&5
14673 $as_echo "$as_me: error: conditional \"TSS_BUILD_RANDOM\" was never defined.
14674 Usually this means the macro was only invoked conditionally." >&2;}
14675 { (exit 1); exit 1; }; }
14676 fi
14677 if test -z "${TSS_BUILD_CAPS_TRUE}" && test -z "${TSS_BUILD_CAPS_FALSE}"; then
14678 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_CAPS\" was never defined.
14679 Usually this means the macro was only invoked conditionally." >&5
14680 $as_echo "$as_me: error: conditional \"TSS_BUILD_CAPS\" was never defined.
14681 Usually this means the macro was only invoked conditionally." >&2;}
14682 { (exit 1); exit 1; }; }
14683 fi
14684 if test -z "${TSS_BUILD_CAPS_TPM_TRUE}" && test -z "${TSS_BUILD_CAPS_TPM_FALSE}"; then
14685 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_CAPS_TPM\" was never defined.
14686 Usually this means the macro was only invoked conditionally." >&5
14687 $as_echo "$as_me: error: conditional \"TSS_BUILD_CAPS_TPM\" was never defined.
14688 Usually this means the macro was only invoked conditionally." >&2;}
14689 { (exit 1); exit 1; }; }
14690 fi
14691 if test -z "${TSS_BUILD_POLICY_TRUE}" && test -z "${TSS_BUILD_POLICY_FALSE}"; then
14692 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_POLICY\" was never defined.
14693 Usually this means the macro was only invoked conditionally." >&5
14694 $as_echo "$as_me: error: conditional \"TSS_BUILD_POLICY\" was never defined.
14695 Usually this means the macro was only invoked conditionally." >&2;}
14696 { (exit 1); exit 1; }; }
14697 fi
14698 if test -z "${TSS_BUILD_DIR_TRUE}" && test -z "${TSS_BUILD_DIR_FALSE}"; then
14699 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_DIR\" was never defined.
14700 Usually this means the macro was only invoked conditionally." >&5
14701 $as_echo "$as_me: error: conditional \"TSS_BUILD_DIR\" was never defined.
14702 Usually this means the macro was only invoked conditionally." >&2;}
14703 { (exit 1); exit 1; }; }
14704 fi
14705 if test -z "${TSS_BUILD_PCR_EVENTS_TRUE}" && test -z "${TSS_BUILD_PCR_EVENTS_FALSE}"; then
14706 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_PCR_EVENTS\" was never defined.
14707 Usually this means the macro was only invoked conditionally." >&5
14708 $as_echo "$as_me: error: conditional \"TSS_BUILD_PCR_EVENTS\" was never defined.
14709 Usually this means the macro was only invoked conditionally." >&2;}
14710 { (exit 1); exit 1; }; }
14711 fi
14712 if test -z "${TSS_BUILD_SIGN_TRUE}" && test -z "${TSS_BUILD_SIGN_FALSE}"; then
14713 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_SIGN\" was never defined.
14714 Usually this means the macro was only invoked conditionally." >&5
14715 $as_echo "$as_me: error: conditional \"TSS_BUILD_SIGN\" was never defined.
14716 Usually this means the macro was only invoked conditionally." >&2;}
14717 { (exit 1); exit 1; }; }
14718 fi
14719 if test -z "${TSS_BUILD_QUOTE_TRUE}" && test -z "${TSS_BUILD_QUOTE_FALSE}"; then
14720 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_QUOTE\" was never defined.
14721 Usually this means the macro was only invoked conditionally." >&5
14722 $as_echo "$as_me: error: conditional \"TSS_BUILD_QUOTE\" was never defined.
14723 Usually this means the macro was only invoked conditionally." >&2;}
14724 { (exit 1); exit 1; }; }
14725 fi
14726 if test -z "${TSS_BUILD_PCR_COMP_TRUE}" && test -z "${TSS_BUILD_PCR_COMP_FALSE}"; then
14727 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_PCR_COMP\" was never defined.
14728 Usually this means the macro was only invoked conditionally." >&5
14729 $as_echo "$as_me: error: conditional \"TSS_BUILD_PCR_COMP\" was never defined.
14730 Usually this means the macro was only invoked conditionally." >&2;}
14731 { (exit 1); exit 1; }; }
14732 fi
14733 if test -z "${TSS_BUILD_SEAL_TRUE}" && test -z "${TSS_BUILD_SEAL_FALSE}"; then
14734 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_SEAL\" was never defined.
14735 Usually this means the macro was only invoked conditionally." >&5
14736 $as_echo "$as_me: error: conditional \"TSS_BUILD_SEAL\" was never defined.
14737 Usually this means the macro was only invoked conditionally." >&2;}
14738 { (exit 1); exit 1; }; }
14739 fi
14740 if test -z "${TSS_BUILD_CHANGEAUTH_TRUE}" && test -z "${TSS_BUILD_CHANGEAUTH_FALSE}"; then
14741 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_CHANGEAUTH\" was never defined.
14742 Usually this means the macro was only invoked conditionally." >&5
14743 $as_echo "$as_me: error: conditional \"TSS_BUILD_CHANGEAUTH\" was never defined.
14744 Usually this means the macro was only invoked conditionally." >&2;}
14745 { (exit 1); exit 1; }; }
14746 fi
14747 if test -z "${TSS_BUILD_BIND_TRUE}" && test -z "${TSS_BUILD_BIND_FALSE}"; then
14748 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_BIND\" was never defined.
14749 Usually this means the macro was only invoked conditionally." >&5
14750 $as_echo "$as_me: error: conditional \"TSS_BUILD_BIND\" was never defined.
14751 Usually this means the macro was only invoked conditionally." >&2;}
14752 { (exit 1); exit 1; }; }
14753 fi
14754 if test -z "${TSS_BUILD_OWN_TRUE}" && test -z "${TSS_BUILD_OWN_FALSE}"; then
14755 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_OWN\" was never defined.
14756 Usually this means the macro was only invoked conditionally." >&5
14757 $as_echo "$as_me: error: conditional \"TSS_BUILD_OWN\" was never defined.
14758 Usually this means the macro was only invoked conditionally." >&2;}
14759 { (exit 1); exit 1; }; }
14760 fi
14761 if test -z "${TSS_BUILD_EK_TRUE}" && test -z "${TSS_BUILD_EK_FALSE}"; then
14762 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_EK\" was never defined.
14763 Usually this means the macro was only invoked conditionally." >&5
14764 $as_echo "$as_me: error: conditional \"TSS_BUILD_EK\" was never defined.
14765 Usually this means the macro was only invoked conditionally." >&2;}
14766 { (exit 1); exit 1; }; }
14767 fi
14768 if test -z "${TSS_BUILD_PS_TRUE}" && test -z "${TSS_BUILD_PS_FALSE}"; then
14769 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_PS\" was never defined.
14770 Usually this means the macro was only invoked conditionally." >&5
14771 $as_echo "$as_me: error: conditional \"TSS_BUILD_PS\" was never defined.
14772 Usually this means the macro was only invoked conditionally." >&2;}
14773 { (exit 1); exit 1; }; }
14774 fi
14775 if test -z "${TSS_BUILD_ADMIN_TRUE}" && test -z "${TSS_BUILD_ADMIN_FALSE}"; then
14776 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_ADMIN\" was never defined.
14777 Usually this means the macro was only invoked conditionally." >&5
14778 $as_echo "$as_me: error: conditional \"TSS_BUILD_ADMIN\" was never defined.
14779 Usually this means the macro was only invoked conditionally." >&2;}
14780 { (exit 1); exit 1; }; }
14781 fi
14782 if test -z "${TSS_BUILD_AIK_TRUE}" && test -z "${TSS_BUILD_AIK_FALSE}"; then
14783 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_AIK\" was never defined.
14784 Usually this means the macro was only invoked conditionally." >&5
14785 $as_echo "$as_me: error: conditional \"TSS_BUILD_AIK\" was never defined.
14786 Usually this means the macro was only invoked conditionally." >&2;}
14787 { (exit 1); exit 1; }; }
14788 fi
14789 if test -z "${TSS_BUILD_CERTIFY_TRUE}" && test -z "${TSS_BUILD_CERTIFY_FALSE}"; then
14790 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_CERTIFY\" was never defined.
14791 Usually this means the macro was only invoked conditionally." >&5
14792 $as_echo "$as_me: error: conditional \"TSS_BUILD_CERTIFY\" was never defined.
14793 Usually this means the macro was only invoked conditionally." >&2;}
14794 { (exit 1); exit 1; }; }
14795 fi
14796 if test -z "${TSS_BUILD_MAINT_TRUE}" && test -z "${TSS_BUILD_MAINT_FALSE}"; then
14797 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_MAINT\" was never defined.
14798 Usually this means the macro was only invoked conditionally." >&5
14799 $as_echo "$as_me: error: conditional \"TSS_BUILD_MAINT\" was never defined.
14800 Usually this means the macro was only invoked conditionally." >&2;}
14801 { (exit 1); exit 1; }; }
14802 fi
14803 if test -z "${TSS_BUILD_MIGRATION_TRUE}" && test -z "${TSS_BUILD_MIGRATION_FALSE}"; then
14804 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_MIGRATION\" was never defined.
14805 Usually this means the macro was only invoked conditionally." >&5
14806 $as_echo "$as_me: error: conditional \"TSS_BUILD_MIGRATION\" was never defined.
14807 Usually this means the macro was only invoked conditionally." >&2;}
14808 { (exit 1); exit 1; }; }
14809 fi
14810 if test -z "${TSS_BUILD_KEY_TRUE}" && test -z "${TSS_BUILD_KEY_FALSE}"; then
14811 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_KEY\" was never defined.
14812 Usually this means the macro was only invoked conditionally." >&5
14813 $as_echo "$as_me: error: conditional \"TSS_BUILD_KEY\" was never defined.
14814 Usually this means the macro was only invoked conditionally." >&2;}
14815 { (exit 1); exit 1; }; }
14816 fi
14817 if test -z "${TSS_BUILD_PCR_EXTEND_TRUE}" && test -z "${TSS_BUILD_PCR_EXTEND_FALSE}"; then
14818 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_PCR_EXTEND\" was never defined.
14819 Usually this means the macro was only invoked conditionally." >&5
14820 $as_echo "$as_me: error: conditional \"TSS_BUILD_PCR_EXTEND\" was never defined.
14821 Usually this means the macro was only invoked conditionally." >&2;}
14822 { (exit 1); exit 1; }; }
14823 fi
14824 if test -z "${TSS_BUILD_SELFTEST_TRUE}" && test -z "${TSS_BUILD_SELFTEST_FALSE}"; then
14825 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_SELFTEST\" was never defined.
14826 Usually this means the macro was only invoked conditionally." >&5
14827 $as_echo "$as_me: error: conditional \"TSS_BUILD_SELFTEST\" was never defined.
14828 Usually this means the macro was only invoked conditionally." >&2;}
14829 { (exit 1); exit 1; }; }
14830 fi
14831 if test -z "${TSS_BUILD_TSS12_TRUE}" && test -z "${TSS_BUILD_TSS12_FALSE}"; then
14832 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_TSS12\" was never defined.
14833 Usually this means the macro was only invoked conditionally." >&5
14834 $as_echo "$as_me: error: conditional \"TSS_BUILD_TSS12\" was never defined.
14835 Usually this means the macro was only invoked conditionally." >&2;}
14836 { (exit 1); exit 1; }; }
14837 fi
14838 if test -z "${TSS_BUILD_DAA_TRUE}" && test -z "${TSS_BUILD_DAA_FALSE}"; then
14839 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_DAA\" was never defined.
14840 Usually this means the macro was only invoked conditionally." >&5
14841 $as_echo "$as_me: error: conditional \"TSS_BUILD_DAA\" was never defined.
14842 Usually this means the macro was only invoked conditionally." >&2;}
14843 { (exit 1); exit 1; }; }
14844 fi
14845 if test -z "${TSS_BUILD_PCR_COMP12_TRUE}" && test -z "${TSS_BUILD_PCR_COMP12_FALSE}"; then
14846 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_PCR_COMP12\" was never defined.
14847 Usually this means the macro was only invoked conditionally." >&5
14848 $as_echo "$as_me: error: conditional \"TSS_BUILD_PCR_COMP12\" was never defined.
14849 Usually this means the macro was only invoked conditionally." >&2;}
14850 { (exit 1); exit 1; }; }
14851 fi
14852 if test -z "${TSS_BUILD_COUNTER_TRUE}" && test -z "${TSS_BUILD_COUNTER_FALSE}"; then
14853 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_COUNTER\" was never defined.
14854 Usually this means the macro was only invoked conditionally." >&5
14855 $as_echo "$as_me: error: conditional \"TSS_BUILD_COUNTER\" was never defined.
14856 Usually this means the macro was only invoked conditionally." >&2;}
14857 { (exit 1); exit 1; }; }
14858 fi
14859 if test -z "${TSS_BUILD_TICK_TRUE}" && test -z "${TSS_BUILD_TICK_FALSE}"; then
14860 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_TICK\" was never defined.
14861 Usually this means the macro was only invoked conditionally." >&5
14862 $as_echo "$as_me: error: conditional \"TSS_BUILD_TICK\" was never defined.
14863 Usually this means the macro was only invoked conditionally." >&2;}
14864 { (exit 1); exit 1; }; }
14865 fi
14866 if test -z "${TSS_BUILD_TRANSPORT_TRUE}" && test -z "${TSS_BUILD_TRANSPORT_FALSE}"; then
14867 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_TRANSPORT\" was never defined.
14868 Usually this means the macro was only invoked conditionally." >&5
14869 $as_echo "$as_me: error: conditional \"TSS_BUILD_TRANSPORT\" was never defined.
14870 Usually this means the macro was only invoked conditionally." >&2;}
14871 { (exit 1); exit 1; }; }
14872 fi
14873 if test -z "${TSS_BUILD_ASN1_TRUE}" && test -z "${TSS_BUILD_ASN1_FALSE}"; then
14874 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_ASN1\" was never defined.
14875 Usually this means the macro was only invoked conditionally." >&5
14876 $as_echo "$as_me: error: conditional \"TSS_BUILD_ASN1\" was never defined.
14877 Usually this means the macro was only invoked conditionally." >&2;}
14878 { (exit 1); exit 1; }; }
14879 fi
14880 if test -z "${TSS_BUILD_NV_TRUE}" && test -z "${TSS_BUILD_NV_FALSE}"; then
14881 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_NV\" was never defined.
14882 Usually this means the macro was only invoked conditionally." >&5
14883 $as_echo "$as_me: error: conditional \"TSS_BUILD_NV\" was never defined.
14884 Usually this means the macro was only invoked conditionally." >&2;}
14885 { (exit 1); exit 1; }; }
14886 fi
14887 if test -z "${TSS_BUILD_AUDIT_TRUE}" && test -z "${TSS_BUILD_AUDIT_FALSE}"; then
14888 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_AUDIT\" was never defined.
14889 Usually this means the macro was only invoked conditionally." >&5
14890 $as_echo "$as_me: error: conditional \"TSS_BUILD_AUDIT\" was never defined.
14891 Usually this means the macro was only invoked conditionally." >&2;}
14892 { (exit 1); exit 1; }; }
14893 fi
14894 if test -z "${TSS_BUILD_SEALX_TRUE}" && test -z "${TSS_BUILD_SEALX_FALSE}"; then
14895 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_SEALX\" was never defined.
14896 Usually this means the macro was only invoked conditionally." >&5
14897 $as_echo "$as_me: error: conditional \"TSS_BUILD_SEALX\" was never defined.
14898 Usually this means the macro was only invoked conditionally." >&2;}
14899 { (exit 1); exit 1; }; }
14900 fi
14901 if test -z "${TSS_BUILD_DELEGATION_TRUE}" && test -z "${TSS_BUILD_DELEGATION_FALSE}"; then
14902 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_DELEGATION\" was never defined.
14903 Usually this means the macro was only invoked conditionally." >&5
14904 $as_echo "$as_me: error: conditional \"TSS_BUILD_DELEGATION\" was never defined.
14905 Usually this means the macro was only invoked conditionally." >&2;}
14906 { (exit 1); exit 1; }; }
14907 fi
14908 if test -z "${TSS_BUILD_QUOTE2_TRUE}" && test -z "${TSS_BUILD_QUOTE2_FALSE}"; then
14909 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_QUOTE2\" was never defined.
14910 Usually this means the macro was only invoked conditionally." >&5
14911 $as_echo "$as_me: error: conditional \"TSS_BUILD_QUOTE2\" was never defined.
14912 Usually this means the macro was only invoked conditionally." >&2;}
14913 { (exit 1); exit 1; }; }
14914 fi
14915 if test -z "${TSS_BUILD_CMK_TRUE}" && test -z "${TSS_BUILD_CMK_FALSE}"; then
14916 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_CMK\" was never defined.
14917 Usually this means the macro was only invoked conditionally." >&5
14918 $as_echo "$as_me: error: conditional \"TSS_BUILD_CMK\" was never defined.
14919 Usually this means the macro was only invoked conditionally." >&2;}
14920 { (exit 1); exit 1; }; }
14921 fi
14922 if test -z "${TSS_BUILD_TSS12_TRUE}" && test -z "${TSS_BUILD_TSS12_FALSE}"; then
14923 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_TSS12\" was never defined.
14924 Usually this means the macro was only invoked conditionally." >&5
14925 $as_echo "$as_me: error: conditional \"TSS_BUILD_TSS12\" was never defined.
14926 Usually this means the macro was only invoked conditionally." >&2;}
14927 { (exit 1); exit 1; }; }
14928 fi
14929 if test -z "${TSS_BUILD_DAA_TRUE}" && test -z "${TSS_BUILD_DAA_FALSE}"; then
14930 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_DAA\" was never defined.
14931 Usually this means the macro was only invoked conditionally." >&5
14932 $as_echo "$as_me: error: conditional \"TSS_BUILD_DAA\" was never defined.
14933 Usually this means the macro was only invoked conditionally." >&2;}
14934 { (exit 1); exit 1; }; }
14935 fi
14936 if test -z "${TSS_BUILD_PCR_COMP12_TRUE}" && test -z "${TSS_BUILD_PCR_COMP12_FALSE}"; then
14937 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_PCR_COMP12\" was never defined.
14938 Usually this means the macro was only invoked conditionally." >&5
14939 $as_echo "$as_me: error: conditional \"TSS_BUILD_PCR_COMP12\" was never defined.
14940 Usually this means the macro was only invoked conditionally." >&2;}
14941 { (exit 1); exit 1; }; }
14942 fi
14943 if test -z "${TSS_BUILD_COUNTER_TRUE}" && test -z "${TSS_BUILD_COUNTER_FALSE}"; then
14944 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_COUNTER\" was never defined.
14945 Usually this means the macro was only invoked conditionally." >&5
14946 $as_echo "$as_me: error: conditional \"TSS_BUILD_COUNTER\" was never defined.
14947 Usually this means the macro was only invoked conditionally." >&2;}
14948 { (exit 1); exit 1; }; }
14949 fi
14950 if test -z "${TSS_BUILD_TICK_TRUE}" && test -z "${TSS_BUILD_TICK_FALSE}"; then
14951 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_TICK\" was never defined.
14952 Usually this means the macro was only invoked conditionally." >&5
14953 $as_echo "$as_me: error: conditional \"TSS_BUILD_TICK\" was never defined.
14954 Usually this means the macro was only invoked conditionally." >&2;}
14955 { (exit 1); exit 1; }; }
14956 fi
14957 if test -z "${TSS_BUILD_TRANSPORT_TRUE}" && test -z "${TSS_BUILD_TRANSPORT_FALSE}"; then
14958 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_TRANSPORT\" was never defined.
14959 Usually this means the macro was only invoked conditionally." >&5
14960 $as_echo "$as_me: error: conditional \"TSS_BUILD_TRANSPORT\" was never defined.
14961 Usually this means the macro was only invoked conditionally." >&2;}
14962 { (exit 1); exit 1; }; }
14963 fi
14964 if test -z "${TSS_BUILD_ASN1_TRUE}" && test -z "${TSS_BUILD_ASN1_FALSE}"; then
14965 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_ASN1\" was never defined.
14966 Usually this means the macro was only invoked conditionally." >&5
14967 $as_echo "$as_me: error: conditional \"TSS_BUILD_ASN1\" was never defined.
14968 Usually this means the macro was only invoked conditionally." >&2;}
14969 { (exit 1); exit 1; }; }
14970 fi
14971 if test -z "${TSS_BUILD_NV_TRUE}" && test -z "${TSS_BUILD_NV_FALSE}"; then
14972 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_NV\" was never defined.
14973 Usually this means the macro was only invoked conditionally." >&5
14974 $as_echo "$as_me: error: conditional \"TSS_BUILD_NV\" was never defined.
14975 Usually this means the macro was only invoked conditionally." >&2;}
14976 { (exit 1); exit 1; }; }
14977 fi
14978 if test -z "${TSS_BUILD_AUDIT_TRUE}" && test -z "${TSS_BUILD_AUDIT_FALSE}"; then
14979 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_AUDIT\" was never defined.
14980 Usually this means the macro was only invoked conditionally." >&5
14981 $as_echo "$as_me: error: conditional \"TSS_BUILD_AUDIT\" was never defined.
14982 Usually this means the macro was only invoked conditionally." >&2;}
14983 { (exit 1); exit 1; }; }
14984 fi
14985 if test -z "${TSS_BUILD_SEALX_TRUE}" && test -z "${TSS_BUILD_SEALX_FALSE}"; then
14986 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_SEALX\" was never defined.
14987 Usually this means the macro was only invoked conditionally." >&5
14988 $as_echo "$as_me: error: conditional \"TSS_BUILD_SEALX\" was never defined.
14989 Usually this means the macro was only invoked conditionally." >&2;}
14990 { (exit 1); exit 1; }; }
14991 fi
14992 if test -z "${TSS_BUILD_DELEGATION_TRUE}" && test -z "${TSS_BUILD_DELEGATION_FALSE}"; then
14993 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_DELEGATION\" was never defined.
14994 Usually this means the macro was only invoked conditionally." >&5
14995 $as_echo "$as_me: error: conditional \"TSS_BUILD_DELEGATION\" was never defined.
14996 Usually this means the macro was only invoked conditionally." >&2;}
14997 { (exit 1); exit 1; }; }
14998 fi
14999 if test -z "${TSS_BUILD_QUOTE2_TRUE}" && test -z "${TSS_BUILD_QUOTE2_FALSE}"; then
15000 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_QUOTE2\" was never defined.
15001 Usually this means the macro was only invoked conditionally." >&5
15002 $as_echo "$as_me: error: conditional \"TSS_BUILD_QUOTE2\" was never defined.
15003 Usually this means the macro was only invoked conditionally." >&2;}
15004 { (exit 1); exit 1; }; }
15005 fi
15006 if test -z "${TSS_BUILD_CMK_TRUE}" && test -z "${TSS_BUILD_CMK_FALSE}"; then
15007 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_CMK\" was never defined.
15008 Usually this means the macro was only invoked conditionally." >&5
15009 $as_echo "$as_me: error: conditional \"TSS_BUILD_CMK\" was never defined.
15010 Usually this means the macro was only invoked conditionally." >&2;}
15011 { (exit 1); exit 1; }; }
15012 fi
15013 if test -z "${TSS_BUILD_NV_LIST_TRUE}" && test -z "${TSS_BUILD_NV_LIST_FALSE}"; then
15014 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_NV_LIST\" was never defined.
15015 Usually this means the macro was only invoked conditionally." >&5
15016 $as_echo "$as_me: error: conditional \"TSS_BUILD_NV_LIST\" was never defined.
15017 Usually this means the macro was only invoked conditionally." >&2;}
15018 { (exit 1); exit 1; }; }
15019 fi
15020 if test -z "${TSS_BUILD_NV_SUPPORT_TRUE}" && test -z "${TSS_BUILD_NV_SUPPORT_FALSE}"; then
15021 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_NV_SUPPORT\" was never defined.
15022 Usually this means the macro was only invoked conditionally." >&5
15023 $as_echo "$as_me: error: conditional \"TSS_BUILD_NV_SUPPORT\" was never defined.
15024 Usually this means the macro was only invoked conditionally." >&2;}
15025 { (exit 1); exit 1; }; }
15026 fi
15027 if test -z "${TSS_BUILD_GET_FLAGS_TRUE}" && test -z "${TSS_BUILD_GET_FLAGS_FALSE}"; then
15028 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_GET_FLAGS\" was never defined.
15029 Usually this means the macro was only invoked conditionally." >&5
15030 $as_echo "$as_me: error: conditional \"TSS_BUILD_GET_FLAGS\" was never defined.
15031 Usually this means the macro was only invoked conditionally." >&2;}
15032 { (exit 1); exit 1; }; }
15033 fi
15034 if test -z "${TSS_BUILD_PCRS_LIST_TRUE}" && test -z "${TSS_BUILD_PCRS_LIST_FALSE}"; then
15035 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_PCRS_LIST\" was never defined.
15036 Usually this means the macro was only invoked conditionally." >&5
15037 $as_echo "$as_me: error: conditional \"TSS_BUILD_PCRS_LIST\" was never defined.
15038 Usually this means the macro was only invoked conditionally." >&2;}
15039 { (exit 1); exit 1; }; }
15040 fi
15041 if test -z "${TSS_BUILD_HASH_LIST_TRUE}" && test -z "${TSS_BUILD_HASH_LIST_FALSE}"; then
15042 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_HASH_LIST\" was never defined.
15043 Usually this means the macro was only invoked conditionally." >&5
15044 $as_echo "$as_me: error: conditional \"TSS_BUILD_HASH_LIST\" was never defined.
15045 Usually this means the macro was only invoked conditionally." >&2;}
15046 { (exit 1); exit 1; }; }
15047 fi
15048 if test -z "${TSS_BUILD_ENCDATA_LIST_TRUE}" && test -z "${TSS_BUILD_ENCDATA_LIST_FALSE}"; then
15049 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_ENCDATA_LIST\" was never defined.
15050 Usually this means the macro was only invoked conditionally." >&5
15051 $as_echo "$as_me: error: conditional \"TSS_BUILD_ENCDATA_LIST\" was never defined.
15052 Usually this means the macro was only invoked conditionally." >&2;}
15053 { (exit 1); exit 1; }; }
15054 fi
15055 if test -z "${TSS_BUILD_RSAKEY_LIST_TRUE}" && test -z "${TSS_BUILD_RSAKEY_LIST_FALSE}"; then
15056 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_RSAKEY_LIST\" was never defined.
15057 Usually this means the macro was only invoked conditionally." >&5
15058 $as_echo "$as_me: error: conditional \"TSS_BUILD_RSAKEY_LIST\" was never defined.
15059 Usually this means the macro was only invoked conditionally." >&2;}
15060 { (exit 1); exit 1; }; }
15061 fi
15062 if test -z "${TSS_BUILD_AUTH_TRUE}" && test -z "${TSS_BUILD_AUTH_FALSE}"; then
15063 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_AUTH\" was never defined.
15064 Usually this means the macro was only invoked conditionally." >&5
15065 $as_echo "$as_me: error: conditional \"TSS_BUILD_AUTH\" was never defined.
15066 Usually this means the macro was only invoked conditionally." >&2;}
15067 { (exit 1); exit 1; }; }
15068 fi
15069 if test -z "${TSS_BUILD_ASYM_CRYPTO_TRUE}" && test -z "${TSS_BUILD_ASYM_CRYPTO_FALSE}"; then
15070 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_ASYM_CRYPTO\" was never defined.
15071 Usually this means the macro was only invoked conditionally." >&5
15072 $as_echo "$as_me: error: conditional \"TSS_BUILD_ASYM_CRYPTO\" was never defined.
15073 Usually this means the macro was only invoked conditionally." >&2;}
15074 { (exit 1); exit 1; }; }
15075 fi
15076 if test -z "${TSS_BUILD_SYM_CRYPTO_TRUE}" && test -z "${TSS_BUILD_SYM_CRYPTO_FALSE}"; then
15077 { { $as_echo "$as_me:$LINENO: error: conditional \"TSS_BUILD_SYM_CRYPTO\" was never defined.
15078 Usually this means the macro was only invoked conditionally." >&5
15079 $as_echo "$as_me: error: conditional \"TSS_BUILD_SYM_CRYPTO\" was never defined.
15080 Usually this means the macro was only invoked conditionally." >&2;}
15081 { (exit 1); exit 1; }; }
15082 fi
15083 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15084 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15085 Usually this means the macro was only invoked conditionally." >&5
15086 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15087 Usually this means the macro was only invoked conditionally." >&2;}
15088 { (exit 1); exit 1; }; }
15089 fi
15090
15091
15092 : ${CONFIG_STATUS=./config.status}
15093 ac_write_fail=0
15094 ac_clean_files_save=$ac_clean_files
15095 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15096 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15097 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15098 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15099 #! $SHELL
15100 # Generated by $as_me.
15101 # Run this file to recreate the current configuration.
15102 # Compiler output produced by configure, useful for debugging
15103 # configure, is in config.log if it exists.
15104
15105 debug=false
15106 ac_cs_recheck=false
15107 ac_cs_silent=false
15108 SHELL=\${CONFIG_SHELL-$SHELL}
15109 _ACEOF
15110
15111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15112 ## --------------------- ##
15113 ## M4sh Initialization. ##
15114 ## --------------------- ##
15115
15116 # Be more Bourne compatible
15117 DUALCASE=1; export DUALCASE # for MKS sh
15118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15119 emulate sh
15120 NULLCMD=:
15121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15122 # is contrary to our usage. Disable this feature.
15123 alias -g '${1+"$@"}'='"$@"'
15124 setopt NO_GLOB_SUBST
15125 else
15126 case `(set -o) 2>/dev/null` in
15127 *posix*) set -o posix ;;
15128 esac
15129
15130 fi
15131
15132
15133
15134
15135 # PATH needs CR
15136 # Avoid depending upon Character Ranges.
15137 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15138 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15139 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15140 as_cr_digits='0123456789'
15141 as_cr_alnum=$as_cr_Letters$as_cr_digits
15142
15143 as_nl='
15144 '
15145 export as_nl
15146 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15147 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15148 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15149 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15150 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15151 as_echo='printf %s\n'
15152 as_echo_n='printf %s'
15153 else
15154 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15155 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15156 as_echo_n='/usr/ucb/echo -n'
15157 else
15158 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15159 as_echo_n_body='eval
15160 arg=$1;
15161 case $arg in
15162 *"$as_nl"*)
15163 expr "X$arg" : "X\\(.*\\)$as_nl";
15164 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15165 esac;
15166 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15167 '
15168 export as_echo_n_body
15169 as_echo_n='sh -c $as_echo_n_body as_echo'
15170 fi
15171 export as_echo_body
15172 as_echo='sh -c $as_echo_body as_echo'
15173 fi
15174
15175 # The user is always right.
15176 if test "${PATH_SEPARATOR+set}" != set; then
15177 PATH_SEPARATOR=:
15178 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15179 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15180 PATH_SEPARATOR=';'
15181 }
15182 fi
15183
15184 # Support unset when possible.
15185 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15186 as_unset=unset
15187 else
15188 as_unset=false
15189 fi
15190
15191
15192 # IFS
15193 # We need space, tab and new line, in precisely that order. Quoting is
15194 # there to prevent editors from complaining about space-tab.
15195 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15196 # splitting by setting IFS to empty value.)
15197 IFS=" "" $as_nl"
15198
15199 # Find who we are. Look in the path if we contain no directory separator.
15200 case $0 in
15201 *[\\/]* ) as_myself=$0 ;;
15202 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15203 for as_dir in $PATH
15204 do
15205 IFS=$as_save_IFS
15206 test -z "$as_dir" && as_dir=.
15207 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15208 done
15209 IFS=$as_save_IFS
15210
15211 ;;
15212 esac
15213 # We did not find ourselves, most probably we were run as `sh COMMAND'
15214 # in which case we are not to be found in the path.
15215 if test "x$as_myself" = x; then
15216 as_myself=$0
15217 fi
15218 if test ! -f "$as_myself"; then
15219 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15220 { (exit 1); exit 1; }
15221 fi
15222
15223 # Work around bugs in pre-3.0 UWIN ksh.
15224 for as_var in ENV MAIL MAILPATH
15225 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15226 done
15227 PS1='$ '
15228 PS2='> '
15229 PS4='+ '
15230
15231 # NLS nuisances.
15232 LC_ALL=C
15233 export LC_ALL
15234 LANGUAGE=C
15235 export LANGUAGE
15236
15237 # Required to use basename.
15238 if expr a : '\(a\)' >/dev/null 2>&1 &&
15239 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15240 as_expr=expr
15241 else
15242 as_expr=false
15243 fi
15244
15245 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15246 as_basename=basename
15247 else
15248 as_basename=false
15249 fi
15250
15251
15252 # Name of the executable.
15253 as_me=`$as_basename -- "$0" ||
15254 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15255 X"$0" : 'X\(//\)$' \| \
15256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15257 $as_echo X/"$0" |
15258 sed '/^.*\/\([^/][^/]*\)\/*$/{
15259 s//\1/
15260 q
15261 }
15262 /^X\/\(\/\/\)$/{
15263 s//\1/
15264 q
15265 }
15266 /^X\/\(\/\).*/{
15267 s//\1/
15268 q
15269 }
15270 s/.*/./; q'`
15271
15272 # CDPATH.
15273 $as_unset CDPATH
15274
15275
15276
15277 as_lineno_1=$LINENO
15278 as_lineno_2=$LINENO
15279 test "x$as_lineno_1" != "x$as_lineno_2" &&
15280 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15281
15282 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15283 # uniformly replaced by the line number. The first 'sed' inserts a
15284 # line-number line after each line using $LINENO; the second 'sed'
15285 # does the real work. The second script uses 'N' to pair each
15286 # line-number line with the line containing $LINENO, and appends
15287 # trailing '-' during substitution so that $LINENO is not a special
15288 # case at line end.
15289 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15290 # scripts with optimization help from Paolo Bonzini. Blame Lee
15291 # E. McMahon (1931-1989) for sed's syntax. :-)
15292 sed -n '
15293 p
15294 /[$]LINENO/=
15295 ' <$as_myself |
15296 sed '
15297 s/[$]LINENO.*/&-/
15298 t lineno
15299 b
15300 :lineno
15301 N
15302 :loop
15303 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15304 t loop
15305 s/-\n.*//
15306 ' >$as_me.lineno &&
15307 chmod +x "$as_me.lineno" ||
15308 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15309 { (exit 1); exit 1; }; }
15310
15311 # Don't try to exec as it changes $[0], causing all sort of problems
15312 # (the dirname of $[0] is not the place where we might find the
15313 # original and so on. Autoconf is especially sensitive to this).
15314 . "./$as_me.lineno"
15315 # Exit status is that of the last command.
15316 exit
15317 }
15318
15319
15320 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15321 as_dirname=dirname
15322 else
15323 as_dirname=false
15324 fi
15325
15326 ECHO_C= ECHO_N= ECHO_T=
15327 case `echo -n x` in
15328 -n*)
15329 case `echo 'x\c'` in
15330 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15331 *) ECHO_C='\c';;
15332 esac;;
15333 *)
15334 ECHO_N='-n';;
15335 esac
15336 if expr a : '\(a\)' >/dev/null 2>&1 &&
15337 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15338 as_expr=expr
15339 else
15340 as_expr=false
15341 fi
15342
15343 rm -f conf$$ conf$$.exe conf$$.file
15344 if test -d conf$$.dir; then
15345 rm -f conf$$.dir/conf$$.file
15346 else
15347 rm -f conf$$.dir
15348 mkdir conf$$.dir 2>/dev/null
15349 fi
15350 if (echo >conf$$.file) 2>/dev/null; then
15351 if ln -s conf$$.file conf$$ 2>/dev/null; then
15352 as_ln_s='ln -s'
15353 # ... but there are two gotchas:
15354 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15355 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15356 # In both cases, we have to default to `cp -p'.
15357 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15358 as_ln_s='cp -p'
15359 elif ln conf$$.file conf$$ 2>/dev/null; then
15360 as_ln_s=ln
15361 else
15362 as_ln_s='cp -p'
15363 fi
15364 else
15365 as_ln_s='cp -p'
15366 fi
15367 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15368 rmdir conf$$.dir 2>/dev/null
15369
15370 if mkdir -p . 2>/dev/null; then
15371 as_mkdir_p=:
15372 else
15373 test -d ./-p && rmdir ./-p
15374 as_mkdir_p=false
15375 fi
15376
15377 if test -x / >/dev/null 2>&1; then
15378 as_test_x='test -x'
15379 else
15380 if ls -dL / >/dev/null 2>&1; then
15381 as_ls_L_option=L
15382 else
15383 as_ls_L_option=
15384 fi
15385 as_test_x='
15386 eval sh -c '\''
15387 if test -d "$1"; then
15388 test -d "$1/.";
15389 else
15390 case $1 in
15391 -*)set "./$1";;
15392 esac;
15393 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15394 ???[sx]*):;;*)false;;esac;fi
15395 '\'' sh
15396 '
15397 fi
15398 as_executable_p=$as_test_x
15399
15400 # Sed expression to map a string onto a valid CPP name.
15401 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15402
15403 # Sed expression to map a string onto a valid variable name.
15404 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15405
15406
15407 exec 6>&1
15408
15409 # Save the log message, to keep $[0] and so on meaningful, and to
15410 # report actual input values of CONFIG_FILES etc. instead of their
15411 # values after options handling.
15412 ac_log="
15413 This file was extended by trousers $as_me 0.3.14, which was
15414 generated by GNU Autoconf 2.63. Invocation command line was
15415
15416 CONFIG_FILES = $CONFIG_FILES
15417 CONFIG_HEADERS = $CONFIG_HEADERS
15418 CONFIG_LINKS = $CONFIG_LINKS
15419 CONFIG_COMMANDS = $CONFIG_COMMANDS
15420 $ $0 $@
15421
15422 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15423 "
15424
15425 _ACEOF
15426
15427 case $ac_config_files in *"
15428 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15429 esac
15430
15431
15432
15433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15434 # Files that config.status was made for.
15435 config_files="$ac_config_files"
15436 config_commands="$ac_config_commands"
15437
15438 _ACEOF
15439
15440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15441 ac_cs_usage="\
15442 \`$as_me' instantiates files from templates according to the
15443 current configuration.
15444
15445 Usage: $0 [OPTION]... [FILE]...
15446
15447 -h, --help print this help, then exit
15448 -V, --version print version number and configuration settings, then exit
15449 -q, --quiet, --silent
15450 do not print progress messages
15451 -d, --debug don't remove temporary files
15452 --recheck update $as_me by reconfiguring in the same conditions
15453 --file=FILE[:TEMPLATE]
15454 instantiate the configuration file FILE
15455
15456 Configuration files:
15457 $config_files
15458
15459 Configuration commands:
15460 $config_commands
15461
15462 Report bugs to <bug-autoconf (at] gnu.org>."
15463
15464 _ACEOF
15465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15466 ac_cs_version="\\
15467 trousers config.status 0.3.14
15468 configured by $0, generated by GNU Autoconf 2.63,
15469 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15470
15471 Copyright (C) 2008 Free Software Foundation, Inc.
15472 This config.status script is free software; the Free Software Foundation
15473 gives unlimited permission to copy, distribute and modify it."
15474
15475 ac_pwd='$ac_pwd'
15476 srcdir='$srcdir'
15477 INSTALL='$INSTALL'
15478 MKDIR_P='$MKDIR_P'
15479 AWK='$AWK'
15480 test -n "\$AWK" || AWK=awk
15481 _ACEOF
15482
15483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15484 # The default lists apply if the user does not specify any file.
15485 ac_need_defaults=:
15486 while test $# != 0
15487 do
15488 case $1 in
15489 --*=*)
15490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15492 ac_shift=:
15493 ;;
15494 *)
15495 ac_option=$1
15496 ac_optarg=$2
15497 ac_shift=shift
15498 ;;
15499 esac
15500
15501 case $ac_option in
15502 # Handling of the options.
15503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15504 ac_cs_recheck=: ;;
15505 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15506 $as_echo "$ac_cs_version"; exit ;;
15507 --debug | --debu | --deb | --de | --d | -d )
15508 debug=: ;;
15509 --file | --fil | --fi | --f )
15510 $ac_shift
15511 case $ac_optarg in
15512 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15513 esac
15514 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15515 ac_need_defaults=false;;
15516 --he | --h | --help | --hel | -h )
15517 $as_echo "$ac_cs_usage"; exit ;;
15518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15520 ac_cs_silent=: ;;
15521
15522 # This is an error.
15523 -*) { $as_echo "$as_me: error: unrecognized option: $1
15524 Try \`$0 --help' for more information." >&2
15525 { (exit 1); exit 1; }; } ;;
15526
15527 *) ac_config_targets="$ac_config_targets $1"
15528 ac_need_defaults=false ;;
15529
15530 esac
15531 shift
15532 done
15533
15534 ac_configure_extra_args=
15535
15536 if $ac_cs_silent; then
15537 exec 6>/dev/null
15538 ac_configure_extra_args="$ac_configure_extra_args --silent"
15539 fi
15540
15541 _ACEOF
15542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15543 if \$ac_cs_recheck; then
15544 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15545 shift
15546 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15547 CONFIG_SHELL='$SHELL'
15548 export CONFIG_SHELL
15549 exec "\$@"
15550 fi
15551
15552 _ACEOF
15553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554 exec 5>>config.log
15555 {
15556 echo
15557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15558 ## Running $as_me. ##
15559 _ASBOX
15560 $as_echo "$ac_log"
15561 } >&5
15562
15563 _ACEOF
15564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15565 #
15566 # INIT-COMMANDS
15567 #
15568 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15569
15570
15571 # The HP-UX ksh and POSIX shell print the target directory to stdout
15572 # if CDPATH is set.
15573 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15574
15575 sed_quote_subst='$sed_quote_subst'
15576 double_quote_subst='$double_quote_subst'
15577 delay_variable_subst='$delay_variable_subst'
15578 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15579 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15580 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15581 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15582 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15583 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15584 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15585 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15586 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15587 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15588 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15589 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15590 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15591 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15592 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15593 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15594 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15595 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15596 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15597 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15598 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15599 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15600 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15601 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15602 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15603 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15604 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15605 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15606 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15607 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15608 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15609 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15610 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15611 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15612 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15613 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15614 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15615 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15616 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15617 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15618 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15619 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15620 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15621 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15622 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"`'
15623 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"`'
15624 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15625 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15626 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15627 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15628 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15629 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15630 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15631 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15632 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15633 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15634 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15635 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15636 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15637 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15638 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15639 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15640 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15641 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15642 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15643 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15644 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15645 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15646 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15647 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15648 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15649 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15650 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15651 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15652 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15653 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15654 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15655 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15656 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15657 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15658 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15659 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15660 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15661 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15662 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15663 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15664 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15665 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15666 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15667 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15668 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15669 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15670 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15671 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15672 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15673 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15674 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15675 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15676 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15677 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15678 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15679 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15680 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15681 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15682 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15683 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15684 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15685 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15686 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15687 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15688 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15689 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15690 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15691 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15692 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15693 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15694 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15695 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15696
15697 LTCC='$LTCC'
15698 LTCFLAGS='$LTCFLAGS'
15699 compiler='$compiler_DEFAULT'
15700
15701 # Quote evaled strings.
15702 for var in SED \
15703 GREP \
15704 EGREP \
15705 FGREP \
15706 LD \
15707 NM \
15708 LN_S \
15709 lt_SP2NL \
15710 lt_NL2SP \
15711 reload_flag \
15712 OBJDUMP \
15713 deplibs_check_method \
15714 file_magic_cmd \
15715 AR \
15716 AR_FLAGS \
15717 STRIP \
15718 RANLIB \
15719 CC \
15720 CFLAGS \
15721 compiler \
15722 lt_cv_sys_global_symbol_pipe \
15723 lt_cv_sys_global_symbol_to_cdecl \
15724 lt_cv_sys_global_symbol_to_c_name_address \
15725 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15726 SHELL \
15727 ECHO \
15728 lt_prog_compiler_no_builtin_flag \
15729 lt_prog_compiler_wl \
15730 lt_prog_compiler_pic \
15731 lt_prog_compiler_static \
15732 lt_cv_prog_compiler_c_o \
15733 need_locks \
15734 DSYMUTIL \
15735 NMEDIT \
15736 LIPO \
15737 OTOOL \
15738 OTOOL64 \
15739 shrext_cmds \
15740 export_dynamic_flag_spec \
15741 whole_archive_flag_spec \
15742 compiler_needs_object \
15743 with_gnu_ld \
15744 allow_undefined_flag \
15745 no_undefined_flag \
15746 hardcode_libdir_flag_spec \
15747 hardcode_libdir_flag_spec_ld \
15748 hardcode_libdir_separator \
15749 fix_srcfile_path \
15750 exclude_expsyms \
15751 include_expsyms \
15752 file_list_spec \
15753 variables_saved_for_relink \
15754 libname_spec \
15755 library_names_spec \
15756 soname_spec \
15757 finish_eval \
15758 old_striplib \
15759 striplib; do
15760 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15761 *[\\\\\\\`\\"\\\$]*)
15762 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15763 ;;
15764 *)
15765 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15766 ;;
15767 esac
15768 done
15769
15770 # Double-quote double-evaled strings.
15771 for var in reload_cmds \
15772 old_postinstall_cmds \
15773 old_postuninstall_cmds \
15774 old_archive_cmds \
15775 extract_expsyms_cmds \
15776 old_archive_from_new_cmds \
15777 old_archive_from_expsyms_cmds \
15778 archive_cmds \
15779 archive_expsym_cmds \
15780 module_cmds \
15781 module_expsym_cmds \
15782 export_symbols_cmds \
15783 prelink_cmds \
15784 postinstall_cmds \
15785 postuninstall_cmds \
15786 finish_cmds \
15787 sys_lib_search_path_spec \
15788 sys_lib_dlsearch_path_spec; do
15789 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15790 *[\\\\\\\`\\"\\\$]*)
15791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15792 ;;
15793 *)
15794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15795 ;;
15796 esac
15797 done
15798
15799 # Fix-up fallback echo if it was mangled by the above quoting rules.
15800 case \$lt_ECHO in
15801 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15802 ;;
15803 esac
15804
15805 ac_aux_dir='$ac_aux_dir'
15806 xsi_shell='$xsi_shell'
15807 lt_shell_append='$lt_shell_append'
15808
15809 # See if we are running on zsh, and set the options which allow our
15810 # commands through without removal of \ escapes INIT.
15811 if test -n "\${ZSH_VERSION+set}" ; then
15812 setopt NO_GLOB_SUBST
15813 fi
15814
15815
15816 PACKAGE='$PACKAGE'
15817 VERSION='$VERSION'
15818 TIMESTAMP='$TIMESTAMP'
15819 RM='$RM'
15820 ofile='$ofile'
15821
15822
15823
15824
15825 _ACEOF
15826
15827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15828
15829 # Handling of arguments.
15830 for ac_config_target in $ac_config_targets
15831 do
15832 case $ac_config_target in
15833 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15834 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15835 "dist/tcsd.conf") CONFIG_FILES="$CONFIG_FILES dist/tcsd.conf" ;;
15836 "dist/fedora/trousers.spec") CONFIG_FILES="$CONFIG_FILES dist/fedora/trousers.spec" ;;
15837 "dist/trousers.spec") CONFIG_FILES="$CONFIG_FILES dist/trousers.spec" ;;
15838 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15839 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15840 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
15841 "src/tcs/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcs/Makefile" ;;
15842 "src/tddl/Makefile") CONFIG_FILES="$CONFIG_FILES src/tddl/Makefile" ;;
15843 "src/tspi/Makefile") CONFIG_FILES="$CONFIG_FILES src/tspi/Makefile" ;;
15844 "src/trspi/Makefile") CONFIG_FILES="$CONFIG_FILES src/trspi/Makefile" ;;
15845 "src/tcsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcsd/Makefile" ;;
15846 "man/man8/tcsd.8") CONFIG_FILES="$CONFIG_FILES man/man8/tcsd.8" ;;
15847 "man/man5/tcsd.conf.5") CONFIG_FILES="$CONFIG_FILES man/man5/tcsd.conf.5" ;;
15848 "dist/Makefile") CONFIG_FILES="$CONFIG_FILES dist/Makefile" ;;
15849 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15850 "man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
15851 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
15852 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
15853
15854 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15855 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15856 { (exit 1); exit 1; }; };;
15857 esac
15858 done
15859
15860
15861 # If the user did not use the arguments to specify the items to instantiate,
15862 # then the envvar interface is used. Set only those that are not.
15863 # We use the long form for the default assignment because of an extremely
15864 # bizarre bug on SunOS 4.1.3.
15865 if $ac_need_defaults; then
15866 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15867 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15868 fi
15869
15870 # Have a temporary directory for convenience. Make it in the build tree
15871 # simply because there is no reason against having it here, and in addition,
15872 # creating and moving files from /tmp can sometimes cause problems.
15873 # Hook for its removal unless debugging.
15874 # Note that there is a small window in which the directory will not be cleaned:
15875 # after its creation but before its name has been assigned to `$tmp'.
15876 $debug ||
15877 {
15878 tmp=
15879 trap 'exit_status=$?
15880 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15881 ' 0
15882 trap '{ (exit 1); exit 1; }' 1 2 13 15
15883 }
15884 # Create a (secure) tmp directory for tmp files.
15885
15886 {
15887 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15888 test -n "$tmp" && test -d "$tmp"
15889 } ||
15890 {
15891 tmp=./conf$$-$RANDOM
15892 (umask 077 && mkdir "$tmp")
15893 } ||
15894 {
15895 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15896 { (exit 1); exit 1; }
15897 }
15898
15899 # Set up the scripts for CONFIG_FILES section.
15900 # No need to generate them if there are no CONFIG_FILES.
15901 # This happens for instance with `./config.status config.h'.
15902 if test -n "$CONFIG_FILES"; then
15903
15904
15905 ac_cr='
'
15907 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15908 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15909 ac_cs_awk_cr='\\r'
15910 else
15911 ac_cs_awk_cr=$ac_cr
15912 fi
15913
15914 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15915 _ACEOF
15916
15917
15918 {
15919 echo "cat >conf$$subs.awk <<_ACEOF" &&
15920 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15921 echo "_ACEOF"
15922 } >conf$$subs.sh ||
15923 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15924 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15925 { (exit 1); exit 1; }; }
15926 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15927 ac_delim='%!_!# '
15928 for ac_last_try in false false false false false :; do
15929 . ./conf$$subs.sh ||
15930 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15931 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15932 { (exit 1); exit 1; }; }
15933
15934 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15935 if test $ac_delim_n = $ac_delim_num; then
15936 break
15937 elif $ac_last_try; then
15938 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15939 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15940 { (exit 1); exit 1; }; }
15941 else
15942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15943 fi
15944 done
15945 rm -f conf$$subs.sh
15946
15947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15948 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15949 _ACEOF
15950 sed -n '
15951 h
15952 s/^/S["/; s/!.*/"]=/
15953 p
15954 g
15955 s/^[^!]*!//
15956 :repl
15957 t repl
15958 s/'"$ac_delim"'$//
15959 t delim
15960 :nl
15961 h
15962 s/\(.\{148\}\).*/\1/
15963 t more1
15964 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15965 p
15966 n
15967 b repl
15968 :more1
15969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15970 p
15971 g
15972 s/.\{148\}//
15973 t nl
15974 :delim
15975 h
15976 s/\(.\{148\}\).*/\1/
15977 t more2
15978 s/["\\]/\\&/g; s/^/"/; s/$/"/
15979 p
15980 b
15981 :more2
15982 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15983 p
15984 g
15985 s/.\{148\}//
15986 t delim
15987 ' <conf$$subs.awk | sed '
15988 /^[^""]/{
15989 N
15990 s/\n//
15991 }
15992 ' >>$CONFIG_STATUS || ac_write_fail=1
15993 rm -f conf$$subs.awk
15994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15995 _ACAWK
15996 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15997 for (key in S) S_is_set[key] = 1
15998 FS = ""
15999
16000 }
16001 {
16002 line = $ 0
16003 nfields = split(line, field, "@")
16004 substed = 0
16005 len = length(field[1])
16006 for (i = 2; i < nfields; i++) {
16007 key = field[i]
16008 keylen = length(key)
16009 if (S_is_set[key]) {
16010 value = S[key]
16011 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16012 len += length(value) + length(field[++i])
16013 substed = 1
16014 } else
16015 len += 1 + keylen
16016 }
16017
16018 print line
16019 }
16020
16021 _ACAWK
16022 _ACEOF
16023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16024 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16025 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16026 else
16027 cat
16028 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16029 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16030 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16031 { (exit 1); exit 1; }; }
16032 _ACEOF
16033
16034 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16035 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16036 # trailing colons and then remove the whole line if VPATH becomes empty
16037 # (actually we leave an empty line to preserve line numbers).
16038 if test "x$srcdir" = x.; then
16039 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16040 s/:*\$(srcdir):*/:/
16041 s/:*\${srcdir}:*/:/
16042 s/:*@srcdir@:*/:/
16043 s/^\([^=]*=[ ]*\):*/\1/
16044 s/:*$//
16045 s/^[^=]*=[ ]*$//
16046 }'
16047 fi
16048
16049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16050 fi # test -n "$CONFIG_FILES"
16051
16052
16053 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16054 shift
16055 for ac_tag
16056 do
16057 case $ac_tag in
16058 :[FHLC]) ac_mode=$ac_tag; continue;;
16059 esac
16060 case $ac_mode$ac_tag in
16061 :[FHL]*:*);;
16062 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16063 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16064 { (exit 1); exit 1; }; };;
16065 :[FH]-) ac_tag=-:-;;
16066 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16067 esac
16068 ac_save_IFS=$IFS
16069 IFS=:
16070 set x $ac_tag
16071 IFS=$ac_save_IFS
16072 shift
16073 ac_file=$1
16074 shift
16075
16076 case $ac_mode in
16077 :L) ac_source=$1;;
16078 :[FH])
16079 ac_file_inputs=
16080 for ac_f
16081 do
16082 case $ac_f in
16083 -) ac_f="$tmp/stdin";;
16084 *) # Look for the file first in the build tree, then in the source tree
16085 # (if the path is not absolute). The absolute path cannot be DOS-style,
16086 # because $ac_f cannot contain `:'.
16087 test -f "$ac_f" ||
16088 case $ac_f in
16089 [\\/$]*) false;;
16090 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16091 esac ||
16092 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16093 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16094 { (exit 1); exit 1; }; };;
16095 esac
16096 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16097 ac_file_inputs="$ac_file_inputs '$ac_f'"
16098 done
16099
16100 # Let's still pretend it is `configure' which instantiates (i.e., don't
16101 # use $as_me), people would be surprised to read:
16102 # /* config.h. Generated by config.status. */
16103 configure_input='Generated from '`
16104 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16105 `' by configure.'
16106 if test x"$ac_file" != x-; then
16107 configure_input="$ac_file. $configure_input"
16108 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16109 $as_echo "$as_me: creating $ac_file" >&6;}
16110 fi
16111 # Neutralize special characters interpreted by sed in replacement strings.
16112 case $configure_input in #(
16113 *\&* | *\|* | *\\* )
16114 ac_sed_conf_input=`$as_echo "$configure_input" |
16115 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16116 *) ac_sed_conf_input=$configure_input;;
16117 esac
16118
16119 case $ac_tag in
16120 *:-:* | *:-) cat >"$tmp/stdin" \
16121 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16122 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16123 { (exit 1); exit 1; }; } ;;
16124 esac
16125 ;;
16126 esac
16127
16128 ac_dir=`$as_dirname -- "$ac_file" ||
16129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16130 X"$ac_file" : 'X\(//\)[^/]' \| \
16131 X"$ac_file" : 'X\(//\)$' \| \
16132 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16133 $as_echo X"$ac_file" |
16134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16135 s//\1/
16136 q
16137 }
16138 /^X\(\/\/\)[^/].*/{
16139 s//\1/
16140 q
16141 }
16142 /^X\(\/\/\)$/{
16143 s//\1/
16144 q
16145 }
16146 /^X\(\/\).*/{
16147 s//\1/
16148 q
16149 }
16150 s/.*/./; q'`
16151 { as_dir="$ac_dir"
16152 case $as_dir in #(
16153 -*) as_dir=./$as_dir;;
16154 esac
16155 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16156 as_dirs=
16157 while :; do
16158 case $as_dir in #(
16159 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16160 *) as_qdir=$as_dir;;
16161 esac
16162 as_dirs="'$as_qdir' $as_dirs"
16163 as_dir=`$as_dirname -- "$as_dir" ||
16164 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16165 X"$as_dir" : 'X\(//\)[^/]' \| \
16166 X"$as_dir" : 'X\(//\)$' \| \
16167 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16168 $as_echo X"$as_dir" |
16169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16170 s//\1/
16171 q
16172 }
16173 /^X\(\/\/\)[^/].*/{
16174 s//\1/
16175 q
16176 }
16177 /^X\(\/\/\)$/{
16178 s//\1/
16179 q
16180 }
16181 /^X\(\/\).*/{
16182 s//\1/
16183 q
16184 }
16185 s/.*/./; q'`
16186 test -d "$as_dir" && break
16187 done
16188 test -z "$as_dirs" || eval "mkdir $as_dirs"
16189 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16190 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16191 { (exit 1); exit 1; }; }; }
16192 ac_builddir=.
16193
16194 case "$ac_dir" in
16195 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16196 *)
16197 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16198 # A ".." for each directory in $ac_dir_suffix.
16199 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16200 case $ac_top_builddir_sub in
16201 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16202 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16203 esac ;;
16204 esac
16205 ac_abs_top_builddir=$ac_pwd
16206 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16207 # for backward compatibility:
16208 ac_top_builddir=$ac_top_build_prefix
16209
16210 case $srcdir in
16211 .) # We are building in place.
16212 ac_srcdir=.
16213 ac_top_srcdir=$ac_top_builddir_sub
16214 ac_abs_top_srcdir=$ac_pwd ;;
16215 [\\/]* | ?:[\\/]* ) # Absolute name.
16216 ac_srcdir=$srcdir$ac_dir_suffix;
16217 ac_top_srcdir=$srcdir
16218 ac_abs_top_srcdir=$srcdir ;;
16219 *) # Relative name.
16220 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16221 ac_top_srcdir=$ac_top_build_prefix$srcdir
16222 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16223 esac
16224 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16225
16226
16227 case $ac_mode in
16228 :F)
16229 #
16230 # CONFIG_FILE
16231 #
16232
16233 case $INSTALL in
16234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16235 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16236 esac
16237 ac_MKDIR_P=$MKDIR_P
16238 case $MKDIR_P in
16239 [\\/$]* | ?:[\\/]* ) ;;
16240 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16241 esac
16242 _ACEOF
16243
16244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16245 # If the template does not know about datarootdir, expand it.
16246 # FIXME: This hack should be removed a few years after 2.60.
16247 ac_datarootdir_hack=; ac_datarootdir_seen=
16248
16249 ac_sed_dataroot='
16250 /datarootdir/ {
16251 p
16252 q
16253 }
16254 /@datadir@/p
16255 /@docdir@/p
16256 /@infodir@/p
16257 /@localedir@/p
16258 /@mandir@/p
16259 '
16260 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16261 *datarootdir*) ac_datarootdir_seen=yes;;
16262 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16263 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16264 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16265 _ACEOF
16266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16267 ac_datarootdir_hack='
16268 s&@datadir@&$datadir&g
16269 s&@docdir@&$docdir&g
16270 s&@infodir@&$infodir&g
16271 s&@localedir@&$localedir&g
16272 s&@mandir@&$mandir&g
16273 s&\\\${datarootdir}&$datarootdir&g' ;;
16274 esac
16275 _ACEOF
16276
16277 # Neutralize VPATH when `$srcdir' = `.'.
16278 # Shell code in configure.ac might set extrasub.
16279 # FIXME: do we really want to maintain this feature?
16280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16281 ac_sed_extra="$ac_vpsub
16282 $extrasub
16283 _ACEOF
16284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16285 :t
16286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16287 s|@configure_input@|$ac_sed_conf_input|;t t
16288 s&@top_builddir@&$ac_top_builddir_sub&;t t
16289 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16290 s&@srcdir@&$ac_srcdir&;t t
16291 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16292 s&@top_srcdir@&$ac_top_srcdir&;t t
16293 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16294 s&@builddir@&$ac_builddir&;t t
16295 s&@abs_builddir@&$ac_abs_builddir&;t t
16296 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16297 s&@INSTALL@&$ac_INSTALL&;t t
16298 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16299 $ac_datarootdir_hack
16300 "
16301 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16302 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16303 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16304 { (exit 1); exit 1; }; }
16305
16306 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16307 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16308 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16309 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16310 which seems to be undefined. Please make sure it is defined." >&5
16311 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16312 which seems to be undefined. Please make sure it is defined." >&2;}
16313
16314 rm -f "$tmp/stdin"
16315 case $ac_file in
16316 -) cat "$tmp/out" && rm -f "$tmp/out";;
16317 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16318 esac \
16319 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16320 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16321 { (exit 1); exit 1; }; }
16322 ;;
16323
16324
16325 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16326 $as_echo "$as_me: executing $ac_file commands" >&6;}
16327 ;;
16328 esac
16329
16330
16331 case $ac_file$ac_mode in
16332 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16333 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16334 # are listed without --file. Let's play safe and only enable the eval
16335 # if we detect the quoting.
16336 case $CONFIG_FILES in
16337 *\'*) eval set x "$CONFIG_FILES" ;;
16338 *) set x $CONFIG_FILES ;;
16339 esac
16340 shift
16341 for mf
16342 do
16343 # Strip MF so we end up with the name of the file.
16344 mf=`echo "$mf" | sed -e 's/:.*$//'`
16345 # Check whether this is an Automake generated Makefile or not.
16346 # We used to match only the files named `Makefile.in', but
16347 # some people rename them; so instead we look at the file content.
16348 # Grep'ing the first line is not enough: some people post-process
16349 # each Makefile.in and add a new line on top of each file to say so.
16350 # Grep'ing the whole file is not good either: AIX grep has a line
16351 # limit of 2048, but all sed's we know have understand at least 4000.
16352 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16353 dirpart=`$as_dirname -- "$mf" ||
16354 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16355 X"$mf" : 'X\(//\)[^/]' \| \
16356 X"$mf" : 'X\(//\)$' \| \
16357 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16358 $as_echo X"$mf" |
16359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16360 s//\1/
16361 q
16362 }
16363 /^X\(\/\/\)[^/].*/{
16364 s//\1/
16365 q
16366 }
16367 /^X\(\/\/\)$/{
16368 s//\1/
16369 q
16370 }
16371 /^X\(\/\).*/{
16372 s//\1/
16373 q
16374 }
16375 s/.*/./; q'`
16376 else
16377 continue
16378 fi
16379 # Extract the definition of DEPDIR, am__include, and am__quote
16380 # from the Makefile without running `make'.
16381 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16382 test -z "$DEPDIR" && continue
16383 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16384 test -z "am__include" && continue
16385 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16386 # When using ansi2knr, U may be empty or an underscore; expand it
16387 U=`sed -n 's/^U = //p' < "$mf"`
16388 # Find all dependency output files, they are included files with
16389 # $(DEPDIR) in their names. We invoke sed twice because it is the
16390 # simplest approach to changing $(DEPDIR) to its actual value in the
16391 # expansion.
16392 for file in `sed -n "
16393 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16394 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16395 # Make sure the directory exists.
16396 test -f "$dirpart/$file" && continue
16397 fdir=`$as_dirname -- "$file" ||
16398 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16399 X"$file" : 'X\(//\)[^/]' \| \
16400 X"$file" : 'X\(//\)$' \| \
16401 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16402 $as_echo X"$file" |
16403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16404 s//\1/
16405 q
16406 }
16407 /^X\(\/\/\)[^/].*/{
16408 s//\1/
16409 q
16410 }
16411 /^X\(\/\/\)$/{
16412 s//\1/
16413 q
16414 }
16415 /^X\(\/\).*/{
16416 s//\1/
16417 q
16418 }
16419 s/.*/./; q'`
16420 { as_dir=$dirpart/$fdir
16421 case $as_dir in #(
16422 -*) as_dir=./$as_dir;;
16423 esac
16424 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16425 as_dirs=
16426 while :; do
16427 case $as_dir in #(
16428 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16429 *) as_qdir=$as_dir;;
16430 esac
16431 as_dirs="'$as_qdir' $as_dirs"
16432 as_dir=`$as_dirname -- "$as_dir" ||
16433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16434 X"$as_dir" : 'X\(//\)[^/]' \| \
16435 X"$as_dir" : 'X\(//\)$' \| \
16436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16437 $as_echo X"$as_dir" |
16438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16439 s//\1/
16440 q
16441 }
16442 /^X\(\/\/\)[^/].*/{
16443 s//\1/
16444 q
16445 }
16446 /^X\(\/\/\)$/{
16447 s//\1/
16448 q
16449 }
16450 /^X\(\/\).*/{
16451 s//\1/
16452 q
16453 }
16454 s/.*/./; q'`
16455 test -d "$as_dir" && break
16456 done
16457 test -z "$as_dirs" || eval "mkdir $as_dirs"
16458 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16459 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16460 { (exit 1); exit 1; }; }; }
16461 # echo "creating $dirpart/$file"
16462 echo '# dummy' > "$dirpart/$file"
16463 done
16464 done
16465 }
16466 ;;
16467 "libtool":C)
16468
16469 # See if we are running on zsh, and set the options which allow our
16470 # commands through without removal of \ escapes.
16471 if test -n "${ZSH_VERSION+set}" ; then
16472 setopt NO_GLOB_SUBST
16473 fi
16474
16475 cfgfile="${ofile}T"
16476 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16477 $RM "$cfgfile"
16478
16479 cat <<_LT_EOF >> "$cfgfile"
16480 #! $SHELL
16481
16482 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16483 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16484 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16485 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16486 #
16487 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16488 # 2006, 2007, 2008 Free Software Foundation, Inc.
16489 # Written by Gordon Matzigkeit, 1996
16490 #
16491 # This file is part of GNU Libtool.
16492 #
16493 # GNU Libtool is free software; you can redistribute it and/or
16494 # modify it under the terms of the GNU General Public License as
16495 # published by the Free Software Foundation; either version 2 of
16496 # the License, or (at your option) any later version.
16497 #
16498 # As a special exception to the GNU General Public License,
16499 # if you distribute this file as part of a program or library that
16500 # is built using GNU Libtool, you may include this file under the
16501 # same distribution terms that you use for the rest of that program.
16502 #
16503 # GNU Libtool is distributed in the hope that it will be useful,
16504 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16505 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16506 # GNU General Public License for more details.
16507 #
16508 # You should have received a copy of the GNU General Public License
16509 # along with GNU Libtool; see the file COPYING. If not, a copy
16510 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16511 # obtained by writing to the Free Software Foundation, Inc.,
16512 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16513
16514
16515 # The names of the tagged configurations supported by this script.
16516 available_tags=""
16517
16518 # ### BEGIN LIBTOOL CONFIG
16519
16520 # Whether or not to build static libraries.
16521 build_old_libs=$enable_static
16522
16523 # Which release of libtool.m4 was used?
16524 macro_version=$macro_version
16525 macro_revision=$macro_revision
16526
16527 # Whether or not to build shared libraries.
16528 build_libtool_libs=$enable_shared
16529
16530 # What type of objects to build.
16531 pic_mode=$pic_mode
16532
16533 # Whether or not to optimize for fast installation.
16534 fast_install=$enable_fast_install
16535
16536 # The host system.
16537 host_alias=$host_alias
16538 host=$host
16539 host_os=$host_os
16540
16541 # The build system.
16542 build_alias=$build_alias
16543 build=$build
16544 build_os=$build_os
16545
16546 # A sed program that does not truncate output.
16547 SED=$lt_SED
16548
16549 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16550 Xsed="\$SED -e 1s/^X//"
16551
16552 # A grep program that handles long lines.
16553 GREP=$lt_GREP
16554
16555 # An ERE matcher.
16556 EGREP=$lt_EGREP
16557
16558 # A literal string matcher.
16559 FGREP=$lt_FGREP
16560
16561 # A BSD- or MS-compatible name lister.
16562 NM=$lt_NM
16563
16564 # Whether we need soft or hard links.
16565 LN_S=$lt_LN_S
16566
16567 # What is the maximum length of a command?
16568 max_cmd_len=$max_cmd_len
16569
16570 # Object file suffix (normally "o").
16571 objext=$ac_objext
16572
16573 # Executable file suffix (normally "").
16574 exeext=$exeext
16575
16576 # whether the shell understands "unset".
16577 lt_unset=$lt_unset
16578
16579 # turn spaces into newlines.
16580 SP2NL=$lt_lt_SP2NL
16581
16582 # turn newlines into spaces.
16583 NL2SP=$lt_lt_NL2SP
16584
16585 # How to create reloadable object files.
16586 reload_flag=$lt_reload_flag
16587 reload_cmds=$lt_reload_cmds
16588
16589 # An object symbol dumper.
16590 OBJDUMP=$lt_OBJDUMP
16591
16592 # Method to check whether dependent libraries are shared objects.
16593 deplibs_check_method=$lt_deplibs_check_method
16594
16595 # Command to use when deplibs_check_method == "file_magic".
16596 file_magic_cmd=$lt_file_magic_cmd
16597
16598 # The archiver.
16599 AR=$lt_AR
16600 AR_FLAGS=$lt_AR_FLAGS
16601
16602 # A symbol stripping program.
16603 STRIP=$lt_STRIP
16604
16605 # Commands used to install an old-style archive.
16606 RANLIB=$lt_RANLIB
16607 old_postinstall_cmds=$lt_old_postinstall_cmds
16608 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16609
16610 # A C compiler.
16611 LTCC=$lt_CC
16612
16613 # LTCC compiler flags.
16614 LTCFLAGS=$lt_CFLAGS
16615
16616 # Take the output of nm and produce a listing of raw symbols and C names.
16617 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16618
16619 # Transform the output of nm in a proper C declaration.
16620 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16621
16622 # Transform the output of nm in a C name address pair.
16623 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16624
16625 # Transform the output of nm in a C name address pair when lib prefix is needed.
16626 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16627
16628 # The name of the directory that contains temporary libtool files.
16629 objdir=$objdir
16630
16631 # Shell to use when invoking shell scripts.
16632 SHELL=$lt_SHELL
16633
16634 # An echo program that does not interpret backslashes.
16635 ECHO=$lt_ECHO
16636
16637 # Used to examine libraries when file_magic_cmd begins with "file".
16638 MAGIC_CMD=$MAGIC_CMD
16639
16640 # Must we lock files when doing compilation?
16641 need_locks=$lt_need_locks
16642
16643 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16644 DSYMUTIL=$lt_DSYMUTIL
16645
16646 # Tool to change global to local symbols on Mac OS X.
16647 NMEDIT=$lt_NMEDIT
16648
16649 # Tool to manipulate fat objects and archives on Mac OS X.
16650 LIPO=$lt_LIPO
16651
16652 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16653 OTOOL=$lt_OTOOL
16654
16655 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16656 OTOOL64=$lt_OTOOL64
16657
16658 # Old archive suffix (normally "a").
16659 libext=$libext
16660
16661 # Shared library suffix (normally ".so").
16662 shrext_cmds=$lt_shrext_cmds
16663
16664 # The commands to extract the exported symbol list from a shared archive.
16665 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16666
16667 # Variables whose values should be saved in libtool wrapper scripts and
16668 # restored at link time.
16669 variables_saved_for_relink=$lt_variables_saved_for_relink
16670
16671 # Do we need the "lib" prefix for modules?
16672 need_lib_prefix=$need_lib_prefix
16673
16674 # Do we need a version for libraries?
16675 need_version=$need_version
16676
16677 # Library versioning type.
16678 version_type=$version_type
16679
16680 # Shared library runtime path variable.
16681 runpath_var=$runpath_var
16682
16683 # Shared library path variable.
16684 shlibpath_var=$shlibpath_var
16685
16686 # Is shlibpath searched before the hard-coded library search path?
16687 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16688
16689 # Format of library name prefix.
16690 libname_spec=$lt_libname_spec
16691
16692 # List of archive names. First name is the real one, the rest are links.
16693 # The last name is the one that the linker finds with -lNAME
16694 library_names_spec=$lt_library_names_spec
16695
16696 # The coded name of the library, if different from the real name.
16697 soname_spec=$lt_soname_spec
16698
16699 # Command to use after installation of a shared archive.
16700 postinstall_cmds=$lt_postinstall_cmds
16701
16702 # Command to use after uninstallation of a shared archive.
16703 postuninstall_cmds=$lt_postuninstall_cmds
16704
16705 # Commands used to finish a libtool library installation in a directory.
16706 finish_cmds=$lt_finish_cmds
16707
16708 # As "finish_cmds", except a single script fragment to be evaled but
16709 # not shown.
16710 finish_eval=$lt_finish_eval
16711
16712 # Whether we should hardcode library paths into libraries.
16713 hardcode_into_libs=$hardcode_into_libs
16714
16715 # Compile-time system search path for libraries.
16716 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16717
16718 # Run-time system search path for libraries.
16719 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16720
16721 # Whether dlopen is supported.
16722 dlopen_support=$enable_dlopen
16723
16724 # Whether dlopen of programs is supported.
16725 dlopen_self=$enable_dlopen_self
16726
16727 # Whether dlopen of statically linked programs is supported.
16728 dlopen_self_static=$enable_dlopen_self_static
16729
16730 # Commands to strip libraries.
16731 old_striplib=$lt_old_striplib
16732 striplib=$lt_striplib
16733
16734
16735 # The linker used to build libraries.
16736 LD=$lt_LD
16737
16738 # Commands used to build an old-style archive.
16739 old_archive_cmds=$lt_old_archive_cmds
16740
16741 # A language specific compiler.
16742 CC=$lt_compiler
16743
16744 # Is the compiler the GNU compiler?
16745 with_gcc=$GCC
16746
16747 # Compiler flag to turn off builtin functions.
16748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16749
16750 # How to pass a linker flag through the compiler.
16751 wl=$lt_lt_prog_compiler_wl
16752
16753 # Additional compiler flags for building library objects.
16754 pic_flag=$lt_lt_prog_compiler_pic
16755
16756 # Compiler flag to prevent dynamic linking.
16757 link_static_flag=$lt_lt_prog_compiler_static
16758
16759 # Does compiler simultaneously support -c and -o options?
16760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16761
16762 # Whether or not to add -lc for building shared libraries.
16763 build_libtool_need_lc=$archive_cmds_need_lc
16764
16765 # Whether or not to disallow shared libs when runtime libs are static.
16766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16767
16768 # Compiler flag to allow reflexive dlopens.
16769 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16770
16771 # Compiler flag to generate shared objects directly from archives.
16772 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16773
16774 # Whether the compiler copes with passing no objects directly.
16775 compiler_needs_object=$lt_compiler_needs_object
16776
16777 # Create an old-style archive from a shared archive.
16778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16779
16780 # Create a temporary old-style archive to link instead of a shared archive.
16781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16782
16783 # Commands used to build a shared archive.
16784 archive_cmds=$lt_archive_cmds
16785 archive_expsym_cmds=$lt_archive_expsym_cmds
16786
16787 # Commands used to build a loadable module if different from building
16788 # a shared archive.
16789 module_cmds=$lt_module_cmds
16790 module_expsym_cmds=$lt_module_expsym_cmds
16791
16792 # Whether we are building with GNU ld or not.
16793 with_gnu_ld=$lt_with_gnu_ld
16794
16795 # Flag that allows shared libraries with undefined symbols to be built.
16796 allow_undefined_flag=$lt_allow_undefined_flag
16797
16798 # Flag that enforces no undefined symbols.
16799 no_undefined_flag=$lt_no_undefined_flag
16800
16801 # Flag to hardcode \$libdir into a binary during linking.
16802 # This must work even if \$libdir does not exist
16803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16804
16805 # If ld is used when linking, flag to hardcode \$libdir into a binary
16806 # during linking. This must work even if \$libdir does not exist.
16807 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16808
16809 # Whether we need a single "-rpath" flag with a separated argument.
16810 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16811
16812 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16813 # DIR into the resulting binary.
16814 hardcode_direct=$hardcode_direct
16815
16816 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16817 # DIR into the resulting binary and the resulting library dependency is
16818 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16819 # library is relocated.
16820 hardcode_direct_absolute=$hardcode_direct_absolute
16821
16822 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16823 # into the resulting binary.
16824 hardcode_minus_L=$hardcode_minus_L
16825
16826 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16827 # into the resulting binary.
16828 hardcode_shlibpath_var=$hardcode_shlibpath_var
16829
16830 # Set to "yes" if building a shared library automatically hardcodes DIR
16831 # into the library and all subsequent libraries and executables linked
16832 # against it.
16833 hardcode_automatic=$hardcode_automatic
16834
16835 # Set to yes if linker adds runtime paths of dependent libraries
16836 # to runtime path list.
16837 inherit_rpath=$inherit_rpath
16838
16839 # Whether libtool must link a program against all its dependency libraries.
16840 link_all_deplibs=$link_all_deplibs
16841
16842 # Fix the shell variable \$srcfile for the compiler.
16843 fix_srcfile_path=$lt_fix_srcfile_path
16844
16845 # Set to "yes" if exported symbols are required.
16846 always_export_symbols=$always_export_symbols
16847
16848 # The commands to list exported symbols.
16849 export_symbols_cmds=$lt_export_symbols_cmds
16850
16851 # Symbols that should not be listed in the preloaded symbols.
16852 exclude_expsyms=$lt_exclude_expsyms
16853
16854 # Symbols that must always be exported.
16855 include_expsyms=$lt_include_expsyms
16856
16857 # Commands necessary for linking programs (against libraries) with templates.
16858 prelink_cmds=$lt_prelink_cmds
16859
16860 # Specify filename containing input files.
16861 file_list_spec=$lt_file_list_spec
16862
16863 # How to hardcode a shared library path into an executable.
16864 hardcode_action=$hardcode_action
16865
16866 # ### END LIBTOOL CONFIG
16867
16868 _LT_EOF
16869
16870 case $host_os in
16871 aix3*)
16872 cat <<\_LT_EOF >> "$cfgfile"
16873 # AIX sometimes has problems with the GCC collect2 program. For some
16874 # reason, if we set the COLLECT_NAMES environment variable, the problems
16875 # vanish in a puff of smoke.
16876 if test "X${COLLECT_NAMES+set}" != Xset; then
16877 COLLECT_NAMES=
16878 export COLLECT_NAMES
16879 fi
16880 _LT_EOF
16881 ;;
16882 esac
16883
16884
16885 ltmain="$ac_aux_dir/ltmain.sh"
16886
16887
16888 # We use sed instead of cat because bash on DJGPP gets confused if
16889 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16890 # text mode, it properly converts lines to CR/LF. This bash problem
16891 # is reportedly fixed, but why not run on old versions too?
16892 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16893 || (rm -f "$cfgfile"; exit 1)
16894
16895 case $xsi_shell in
16896 yes)
16897 cat << \_LT_EOF >> "$cfgfile"
16898
16899 # func_dirname file append nondir_replacement
16900 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16901 # otherwise set result to NONDIR_REPLACEMENT.
16902 func_dirname ()
16903 {
16904 case ${1} in
16905 */*) func_dirname_result="${1%/*}${2}" ;;
16906 * ) func_dirname_result="${3}" ;;
16907 esac
16908 }
16909
16910 # func_basename file
16911 func_basename ()
16912 {
16913 func_basename_result="${1##*/}"
16914 }
16915
16916 # func_dirname_and_basename file append nondir_replacement
16917 # perform func_basename and func_dirname in a single function
16918 # call:
16919 # dirname: Compute the dirname of FILE. If nonempty,
16920 # add APPEND to the result, otherwise set result
16921 # to NONDIR_REPLACEMENT.
16922 # value returned in "$func_dirname_result"
16923 # basename: Compute filename of FILE.
16924 # value retuned in "$func_basename_result"
16925 # Implementation must be kept synchronized with func_dirname
16926 # and func_basename. For efficiency, we do not delegate to
16927 # those functions but instead duplicate the functionality here.
16928 func_dirname_and_basename ()
16929 {
16930 case ${1} in
16931 */*) func_dirname_result="${1%/*}${2}" ;;
16932 * ) func_dirname_result="${3}" ;;
16933 esac
16934 func_basename_result="${1##*/}"
16935 }
16936
16937 # func_stripname prefix suffix name
16938 # strip PREFIX and SUFFIX off of NAME.
16939 # PREFIX and SUFFIX must not contain globbing or regex special
16940 # characters, hashes, percent signs, but SUFFIX may contain a leading
16941 # dot (in which case that matches only a dot).
16942 func_stripname ()
16943 {
16944 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16945 # positional parameters, so assign one to ordinary parameter first.
16946 func_stripname_result=${3}
16947 func_stripname_result=${func_stripname_result#"${1}"}
16948 func_stripname_result=${func_stripname_result%"${2}"}
16949 }
16950
16951 # func_opt_split
16952 func_opt_split ()
16953 {
16954 func_opt_split_opt=${1%%=*}
16955 func_opt_split_arg=${1#*=}
16956 }
16957
16958 # func_lo2o object
16959 func_lo2o ()
16960 {
16961 case ${1} in
16962 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16963 *) func_lo2o_result=${1} ;;
16964 esac
16965 }
16966
16967 # func_xform libobj-or-source
16968 func_xform ()
16969 {
16970 func_xform_result=${1%.*}.lo
16971 }
16972
16973 # func_arith arithmetic-term...
16974 func_arith ()
16975 {
16976 func_arith_result=$(( $* ))
16977 }
16978
16979 # func_len string
16980 # STRING may not start with a hyphen.
16981 func_len ()
16982 {
16983 func_len_result=${#1}
16984 }
16985
16986 _LT_EOF
16987 ;;
16988 *) # Bourne compatible functions.
16989 cat << \_LT_EOF >> "$cfgfile"
16990
16991 # func_dirname file append nondir_replacement
16992 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16993 # otherwise set result to NONDIR_REPLACEMENT.
16994 func_dirname ()
16995 {
16996 # Extract subdirectory from the argument.
16997 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16998 if test "X$func_dirname_result" = "X${1}"; then
16999 func_dirname_result="${3}"
17000 else
17001 func_dirname_result="$func_dirname_result${2}"
17002 fi
17003 }
17004
17005 # func_basename file
17006 func_basename ()
17007 {
17008 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17009 }
17010
17011
17012 # func_stripname prefix suffix name
17013 # strip PREFIX and SUFFIX off of NAME.
17014 # PREFIX and SUFFIX must not contain globbing or regex special
17015 # characters, hashes, percent signs, but SUFFIX may contain a leading
17016 # dot (in which case that matches only a dot).
17017 # func_strip_suffix prefix name
17018 func_stripname ()
17019 {
17020 case ${2} in
17021 .*) func_stripname_result=`$ECHO "X${3}" \
17022 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17023 *) func_stripname_result=`$ECHO "X${3}" \
17024 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17025 esac
17026 }
17027
17028 # sed scripts:
17029 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17030 my_sed_long_arg='1s/^-[^=]*=//'
17031
17032 # func_opt_split
17033 func_opt_split ()
17034 {
17035 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17036 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17037 }
17038
17039 # func_lo2o object
17040 func_lo2o ()
17041 {
17042 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17043 }
17044
17045 # func_xform libobj-or-source
17046 func_xform ()
17047 {
17048 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17049 }
17050
17051 # func_arith arithmetic-term...
17052 func_arith ()
17053 {
17054 func_arith_result=`expr "$@"`
17055 }
17056
17057 # func_len string
17058 # STRING may not start with a hyphen.
17059 func_len ()
17060 {
17061 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17062 }
17063
17064 _LT_EOF
17065 esac
17066
17067 case $lt_shell_append in
17068 yes)
17069 cat << \_LT_EOF >> "$cfgfile"
17070
17071 # func_append var value
17072 # Append VALUE to the end of shell variable VAR.
17073 func_append ()
17074 {
17075 eval "$1+=\$2"
17076 }
17077 _LT_EOF
17078 ;;
17079 *)
17080 cat << \_LT_EOF >> "$cfgfile"
17081
17082 # func_append var value
17083 # Append VALUE to the end of shell variable VAR.
17084 func_append ()
17085 {
17086 eval "$1=\$$1\$2"
17087 }
17088
17089 _LT_EOF
17090 ;;
17091 esac
17092
17093
17094 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17095 || (rm -f "$cfgfile"; exit 1)
17096
17097 mv -f "$cfgfile" "$ofile" ||
17098 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17099 chmod +x "$ofile"
17100
17101 ;;
17102
17103 esac
17104 done # for ac_tag
17105
17106
17107 { (exit 0); exit 0; }
17108 _ACEOF
17109 chmod +x $CONFIG_STATUS
17110 ac_clean_files=$ac_clean_files_save
17111
17112 test $ac_write_fail = 0 ||
17113 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17114 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17115 { (exit 1); exit 1; }; }
17116
17117
17118 # configure is writing to config.log, and then calls config.status.
17119 # config.status does its own redirection, appending to config.log.
17120 # Unfortunately, on DOS this fails, as config.log is still kept open
17121 # by configure, so config.status won't be able to write to it; its
17122 # output is simply discarded. So we exec the FD to /dev/null,
17123 # effectively closing config.log, so it can be properly (re)opened and
17124 # appended to by config.status. When coming back to configure, we
17125 # need to make the FD available again.
17126 if test "$no_create" != yes; then
17127 ac_cs_success=:
17128 ac_config_status_args=
17129 test "$silent" = yes &&
17130 ac_config_status_args="$ac_config_status_args --quiet"
17131 exec 5>/dev/null
17132 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17133 exec 5>>config.log
17134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17135 # would make configure fail if this is the last instruction.
17136 $ac_cs_success || { (exit 1); exit 1; }
17137 fi
17138 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17139 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17140 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17141 fi
17142
17143
17144 echo "CFLAGS=$CFLAGS"
17145
17146