Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for coolkey "1.1.0".
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$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 # Zsh 3.x and 4.x performs 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 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582 $*
583 EOF
584 exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='coolkey'
728 PACKAGE_TARNAME='coolkey'
729 PACKAGE_VERSION='"1.1.0"'
730 PACKAGE_STRING='coolkey "1.1.0"'
731 PACKAGE_BUGREPORT=''
732
733 ac_unique_file="src/coolkey/coolkey.cpp"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 build
808 build_cpu
809 build_vendor
810 build_os
811 host
812 host_cpu
813 host_vendor
814 host_os
815 target
816 target_cpu
817 target_vendor
818 target_os
819 INSTALL_PROGRAM
820 INSTALL_SCRIPT
821 INSTALL_DATA
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 install_sh
831 STRIP
832 INSTALL_STRIP_PROGRAM
833 mkdir_p
834 AWK
835 SET_MAKE
836 am__leading_dot
837 AMTAR
838 am__tar
839 am__untar
840 MAINTAINER_MODE_TRUE
841 MAINTAINER_MODE_FALSE
842 MAINT
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 CXX
860 CXXFLAGS
861 ac_ct_CXX
862 CXXDEPMODE
863 am__fastdepCXX_TRUE
864 am__fastdepCXX_FALSE
865 GREP
866 EGREP
867 LN_S
868 ECHO
869 AR
870 RANLIB
871 CPP
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 LIBCKYAPPLET
878 PKG_CONFIG
879 PCSC_CFLAGS
880 PCSC_LIBS
881 NSS_CFLAGS
882 NSS_LIBS
883 ZLIB_CFLAGS
884 ZLIB_LIBS
885 SCARD_LIB_NAME
886 HAVE_PCSC_TRUE
887 HAVE_PCSC_FALSE
888 BUILD_PK11INSTALL_TRUE
889 BUILD_PK11INSTALL_FALSE
890 IS_WINDOWS_TRUE
891 IS_WINDOWS_FALSE
892 LIBOBJS
893 LTLIBOBJS'
894 ac_subst_files=''
895 ac_precious_vars='build_alias
896 host_alias
897 target_alias
898 CC
899 CFLAGS
900 LDFLAGS
901 LIBS
902 CPPFLAGS
903 CXX
904 CXXFLAGS
905 CCC
906 CPP
907 CXXCPP
908 F77
909 FFLAGS
910 PKG_CONFIG
911 PCSC_CFLAGS
912 PCSC_LIBS
913 NSS_CFLAGS
914 NSS_LIBS'
915
916
917 # Initialize some variables set by options.
918 ac_init_help=
919 ac_init_version=false
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
922 cache_file=/dev/null
923 exec_prefix=NONE
924 no_create=
925 no_recursion=
926 prefix=NONE
927 program_prefix=NONE
928 program_suffix=NONE
929 program_transform_name=s,x,x,
930 silent=
931 site=
932 srcdir=
933 verbose=
934 x_includes=NONE
935 x_libraries=NONE
936
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954 infodir='${datarootdir}/info'
955 htmldir='${docdir}'
956 dvidir='${docdir}'
957 pdfdir='${docdir}'
958 psdir='${docdir}'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
962
963 ac_prev=
964 ac_dashdash=
965 for ac_option
966 do
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
970 ac_prev=
971 continue
972 fi
973
974 case $ac_option in
975 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 *) ac_optarg=yes ;;
977 esac
978
979 # Accept the important Cygnus configure options, so we can diagnose typos.
980
981 case $ac_dashdash$ac_option in
982 --)
983 ac_dashdash=yes ;;
984
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 ac_prev=bindir ;;
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 bindir=$ac_optarg ;;
989
990 -build | --build | --buil | --bui | --bu)
991 ac_prev=build_alias ;;
992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993 build_alias=$ac_optarg ;;
994
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000 cache_file=$ac_optarg ;;
1001
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
1004
1005 -datadir | --datadir | --datadi | --datad)
1006 ac_prev=datadir ;;
1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008 datadir=$ac_optarg ;;
1009
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1016
1017 -disable-* | --disable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=no ;;
1025
1026 -docdir | --docdir | --docdi | --doc | --do)
1027 ac_prev=docdir ;;
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1030
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 ac_prev=dvidir ;;
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1035
1036 -enable-* | --enable-*)
1037 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1043 eval enable_$ac_feature=\$ac_optarg ;;
1044
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1053
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1056 with_gas=yes ;;
1057
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1064
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1069
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071 ac_prev=htmldir ;;
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073 | --ht=*)
1074 htmldir=$ac_optarg ;;
1075
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1082
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1084 ac_prev=infodir ;;
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1087
1088 -libdir | --libdir | --libdi | --libd)
1089 ac_prev=libdir ;;
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1092
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1099
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1104
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1111
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113 ac_prev=mandir ;;
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1116
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1119 with_fp=no ;;
1120
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1123 no_create=yes ;;
1124
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 no_recursion=yes ;;
1128
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1137
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139 ac_prev=prefix ;;
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1142
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1149
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1156
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1173
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175 ac_prev=pdfdir ;;
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1178
1179 -psdir | --psdir | --psdi | --psd | --ps)
1180 ac_prev=psdir ;;
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 psdir=$ac_optarg ;;
1183
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1186 silent=yes ;;
1187
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189 ac_prev=sbindir ;;
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191 | --sbi=* | --sb=*)
1192 sbindir=$ac_optarg ;;
1193
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1197 | --sha | --sh)
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202 | --sha=* | --sh=*)
1203 sharedstatedir=$ac_optarg ;;
1204
1205 -site | --site | --sit)
1206 ac_prev=site ;;
1207 -site=* | --site=* | --sit=*)
1208 site=$ac_optarg ;;
1209
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211 ac_prev=srcdir ;;
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1214
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1221
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1226
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 verbose=yes ;;
1229
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1232
1233 -with-* | --with-*)
1234 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 { echo "$as_me: error: invalid package name: $ac_package" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240 eval with_$ac_package=\$ac_optarg ;;
1241
1242 -without-* | --without-*)
1243 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 { echo "$as_me: error: invalid package name: $ac_package" >&2
1247 { (exit 1); exit 1; }; }
1248 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249 eval with_$ac_package=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) { echo "$as_me: error: unrecognized option: $ac_option
1270 Try \`$0 --help' for more information." >&2
1271 { (exit 1); exit 1; }; }
1272 ;;
1273
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1278 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1279 { (exit 1); exit 1; }; }
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289 ;;
1290
1291 esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 { echo "$as_me: error: missing argument to $ac_option" >&2
1297 { (exit 1); exit 1; }; }
1298 fi
1299
1300 # Be sure to have absolute directory names.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1305 do
1306 eval ac_val=\$$ac_var
1307 case $ac_val in
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 esac
1311 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312 { (exit 1); exit 1; }; }
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327 If a cross compiler is detected then cross compile mode will be used." >&2
1328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1330 fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 { echo "$as_me: error: Working directory cannot be determined" >&2
1343 { (exit 1); exit 1; }; }
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 { echo "$as_me: error: pwd does not report name of working directory" >&2
1346 { (exit 1); exit 1; }; }
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$0" ||
1354 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$0" : 'X\(//\)[^/]' \| \
1356 X"$0" : 'X\(//\)$' \| \
1357 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1358 echo X"$0" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)[^/].*/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\).*/{
1372 s//\1/
1373 q
1374 }
1375 s/.*/./; q'`
1376 srcdir=$ac_confdir
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 srcdir=..
1379 fi
1380 else
1381 ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386 { (exit 1); exit 1; }; }
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1391 { (exit 1); exit 1; }; }
1392 pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1409
1410 #
1411 # Report the --help message.
1412 #
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1416 cat <<_ACEOF
1417 \`configure' configures coolkey "1.1.0" to adapt to many kinds of systems.
1418
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1423
1424 Defaults for the options are specified in brackets.
1425
1426 Configuration:
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 [PREFIX]
1442
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1447
1448 For better control, use the options below.
1449
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/coolkey]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1470 _ACEOF
1471
1472 cat <<\_ACEOF
1473
1474 Program names:
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478
1479 System types:
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 --target=TARGET configure for building compilers for TARGET [HOST]
1483 _ACEOF
1484 fi
1485
1486 if test -n "$ac_init_help"; then
1487 case $ac_init_help in
1488 short | recursive ) echo "Configuration of coolkey "1.1.0":";;
1489 esac
1490 cat <<\_ACEOF
1491
1492 Optional Features:
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --enable-maintainer-mode enable make rules and dependencies not useful
1496 (and sometimes confusing) to the casual installer
1497 --enable-debug add debugging code (default=yes)
1498 --disable-dependency-tracking speeds up one-time build
1499 --enable-dependency-tracking do not reject slow dependency extractors
1500 --enable-shared[=PKGS] build shared libraries [default=yes]
1501 --enable-static[=PKGS] build static libraries [default=yes]
1502 --enable-fast-install[=PKGS]
1503 optimize for fast installation [default=yes]
1504 --disable-libtool-lock avoid locking (might break parallel builds)
1505 --enable-pk11install build an installer for legacy user apps(default=no)
1506
1507 Optional Packages:
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1511 --with-pic try to use only PIC/non-PIC objects [default=use
1512 both]
1513 --with-tags[=TAGS] include additional configurations [automatic]
1514
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1525 CPP C preprocessor
1526 CXXCPP C++ preprocessor
1527 F77 Fortran 77 compiler command
1528 FFLAGS Fortran 77 compiler flags
1529 PKG_CONFIG path to pkg-config utility
1530 PCSC_CFLAGS C compiler flags for PCSC, overriding pkg-config
1531 PCSC_LIBS linker flags for PCSC, overriding pkg-config
1532 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
1533 NSS_LIBS linker flags for NSS, overriding pkg-config
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" || continue
1546 ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1588 else
1589 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 fi || ac_status=$?
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1592 done
1593 fi
1594
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597 cat <<\_ACEOF
1598 coolkey configure "1.1.0"
1599 generated by GNU Autoconf 2.61
1600
1601 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1602 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1607 fi
1608 cat >config.log <<_ACEOF
1609 This file contains any messages produced by compilers while
1610 running configure, to aid debugging if configure makes a mistake.
1611
1612 It was created by coolkey $as_me "1.1.0", which was
1613 generated by GNU Autoconf 2.61. Invocation command line was
1614
1615 $ $0 $@
1616
1617 _ACEOF
1618 exec 5>>config.log
1619 {
1620 cat <<_ASUNAME
1621 ## --------- ##
1622 ## Platform. ##
1623 ## --------- ##
1624
1625 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1626 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1627 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1628 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1629 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1630
1631 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1632 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1633
1634 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1635 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1636 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1637 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1638 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1639 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1640 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1641
1642 _ASUNAME
1643
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 echo "PATH: $as_dir"
1650 done
1651 IFS=$as_save_IFS
1652
1653 } >&5
1654
1655 cat >&5 <<_ACEOF
1656
1657
1658 ## ----------- ##
1659 ## Core tests. ##
1660 ## ----------- ##
1661
1662 _ACEOF
1663
1664
1665 # Keep a trace of the command line.
1666 # Strip out --no-create and --no-recursion so they do not pile up.
1667 # Strip out --silent because we don't want to record it for future runs.
1668 # Also quote any args containing shell meta-characters.
1669 # Make two passes to allow for proper duplicate-argument suppression.
1670 ac_configure_args=
1671 ac_configure_args0=
1672 ac_configure_args1=
1673 ac_must_keep_next=false
1674 for ac_pass in 1 2
1675 do
1676 for ac_arg
1677 do
1678 case $ac_arg in
1679 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681 | -silent | --silent | --silen | --sile | --sil)
1682 continue ;;
1683 *\'*)
1684 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1685 esac
1686 case $ac_pass in
1687 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1688 2)
1689 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1690 if test $ac_must_keep_next = true; then
1691 ac_must_keep_next=false # Got value, back to normal.
1692 else
1693 case $ac_arg in
1694 *=* | --config-cache | -C | -disable-* | --disable-* \
1695 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1696 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1697 | -with-* | --with-* | -without-* | --without-* | --x)
1698 case "$ac_configure_args0 " in
1699 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1700 esac
1701 ;;
1702 -* ) ac_must_keep_next=true ;;
1703 esac
1704 fi
1705 ac_configure_args="$ac_configure_args '$ac_arg'"
1706 ;;
1707 esac
1708 done
1709 done
1710 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1711 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1712
1713 # When interrupted or exit'd, cleanup temporary files, and complete
1714 # config.log. We remove comments because anyway the quotes in there
1715 # would cause problems or look ugly.
1716 # WARNING: Use '\'' to represent an apostrophe within the trap.
1717 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1718 trap 'exit_status=$?
1719 # Save into config.log some information that might help in debugging.
1720 {
1721 echo
1722
1723 cat <<\_ASBOX
1724 ## ---------------- ##
1725 ## Cache variables. ##
1726 ## ---------------- ##
1727 _ASBOX
1728 echo
1729 # The following way of writing the cache mishandles newlines in values,
1730 (
1731 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1732 eval ac_val=\$$ac_var
1733 case $ac_val in #(
1734 *${as_nl}*)
1735 case $ac_var in #(
1736 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1737 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1738 esac
1739 case $ac_var in #(
1740 _ | IFS | as_nl) ;; #(
1741 *) $as_unset $ac_var ;;
1742 esac ;;
1743 esac
1744 done
1745 (set) 2>&1 |
1746 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1747 *${as_nl}ac_space=\ *)
1748 sed -n \
1749 "s/'\''/'\''\\\\'\'''\''/g;
1750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1751 ;; #(
1752 *)
1753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1754 ;;
1755 esac |
1756 sort
1757 )
1758 echo
1759
1760 cat <<\_ASBOX
1761 ## ----------------- ##
1762 ## Output variables. ##
1763 ## ----------------- ##
1764 _ASBOX
1765 echo
1766 for ac_var in $ac_subst_vars
1767 do
1768 eval ac_val=\$$ac_var
1769 case $ac_val in
1770 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 esac
1772 echo "$ac_var='\''$ac_val'\''"
1773 done | sort
1774 echo
1775
1776 if test -n "$ac_subst_files"; then
1777 cat <<\_ASBOX
1778 ## ------------------- ##
1779 ## File substitutions. ##
1780 ## ------------------- ##
1781 _ASBOX
1782 echo
1783 for ac_var in $ac_subst_files
1784 do
1785 eval ac_val=\$$ac_var
1786 case $ac_val in
1787 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1788 esac
1789 echo "$ac_var='\''$ac_val'\''"
1790 done | sort
1791 echo
1792 fi
1793
1794 if test -s confdefs.h; then
1795 cat <<\_ASBOX
1796 ## ----------- ##
1797 ## confdefs.h. ##
1798 ## ----------- ##
1799 _ASBOX
1800 echo
1801 cat confdefs.h
1802 echo
1803 fi
1804 test "$ac_signal" != 0 &&
1805 echo "$as_me: caught signal $ac_signal"
1806 echo "$as_me: exit $exit_status"
1807 } >&5
1808 rm -f core *.core core.conftest.* &&
1809 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1810 exit $exit_status
1811 ' 0
1812 for ac_signal in 1 2 13 15; do
1813 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1814 done
1815 ac_signal=0
1816
1817 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1818 rm -f -r conftest* confdefs.h
1819
1820 # Predefined preprocessor variables.
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_NAME "$PACKAGE_NAME"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1834 _ACEOF
1835
1836
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_STRING "$PACKAGE_STRING"
1839 _ACEOF
1840
1841
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1844 _ACEOF
1845
1846
1847 # Let the site file select an alternate cache file if it wants to.
1848 # Prefer explicitly selected file to automatically selected ones.
1849 if test -n "$CONFIG_SITE"; then
1850 set x "$CONFIG_SITE"
1851 elif test "x$prefix" != xNONE; then
1852 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1853 else
1854 set x "$ac_default_prefix/share/config.site" \
1855 "$ac_default_prefix/etc/config.site"
1856 fi
1857 shift
1858 for ac_site_file
1859 do
1860 if test -r "$ac_site_file"; then
1861 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1862 echo "$as_me: loading site script $ac_site_file" >&6;}
1863 sed 's/^/| /' "$ac_site_file" >&5
1864 . "$ac_site_file"
1865 fi
1866 done
1867
1868 if test -r "$cache_file"; then
1869 # Some versions of bash will fail to source /dev/null (special
1870 # files actually), so we avoid doing that.
1871 if test -f "$cache_file"; then
1872 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1873 echo "$as_me: loading cache $cache_file" >&6;}
1874 case $cache_file in
1875 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1876 *) . "./$cache_file";;
1877 esac
1878 fi
1879 else
1880 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1881 echo "$as_me: creating cache $cache_file" >&6;}
1882 >$cache_file
1883 fi
1884
1885 # Check that the precious variables saved in the cache have kept the same
1886 # value.
1887 ac_cache_corrupted=false
1888 for ac_var in $ac_precious_vars; do
1889 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1890 eval ac_new_set=\$ac_env_${ac_var}_set
1891 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1892 eval ac_new_val=\$ac_env_${ac_var}_value
1893 case $ac_old_set,$ac_new_set in
1894 set,)
1895 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1896 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1898 ,set)
1899 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1900 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1902 ,);;
1903 *)
1904 if test "x$ac_old_val" != "x$ac_new_val"; then
1905 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1906 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1907 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1908 echo "$as_me: former value: $ac_old_val" >&2;}
1909 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1910 echo "$as_me: current value: $ac_new_val" >&2;}
1911 ac_cache_corrupted=:
1912 fi;;
1913 esac
1914 # Pass precious variables to config.status.
1915 if test "$ac_new_set" = set; then
1916 case $ac_new_val in
1917 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1918 *) ac_arg=$ac_var=$ac_new_val ;;
1919 esac
1920 case " $ac_configure_args " in
1921 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1922 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1923 esac
1924 fi
1925 done
1926 if $ac_cache_corrupted; then
1927 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1928 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1929 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1930 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1931 { (exit 1); exit 1; }; }
1932 fi
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958 ac_ext=c
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963
1964
1965
1966 ac_aux_dir=
1967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1968 if test -f "$ac_dir/install-sh"; then
1969 ac_aux_dir=$ac_dir
1970 ac_install_sh="$ac_aux_dir/install-sh -c"
1971 break
1972 elif test -f "$ac_dir/install.sh"; then
1973 ac_aux_dir=$ac_dir
1974 ac_install_sh="$ac_aux_dir/install.sh -c"
1975 break
1976 elif test -f "$ac_dir/shtool"; then
1977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/shtool install -c"
1979 break
1980 fi
1981 done
1982 if test -z "$ac_aux_dir"; then
1983 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1984 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1985 { (exit 1); exit 1; }; }
1986 fi
1987
1988 # These three variables are undocumented and unsupported,
1989 # and are intended to be withdrawn in a future Autoconf release.
1990 # They can cause serious problems if a builder's source tree is in a directory
1991 # whose full name contains unusual characters.
1992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1995
1996
1997 # Make sure we can run config.sub.
1998 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1999 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2000 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2001 { (exit 1); exit 1; }; }
2002
2003 { echo "$as_me:$LINENO: checking build system type" >&5
2004 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2005 if test "${ac_cv_build+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008 ac_build_alias=$build_alias
2009 test "x$ac_build_alias" = x &&
2010 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2011 test "x$ac_build_alias" = x &&
2012 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2013 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2014 { (exit 1); exit 1; }; }
2015 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2016 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2017 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2018 { (exit 1); exit 1; }; }
2019
2020 fi
2021 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2022 echo "${ECHO_T}$ac_cv_build" >&6; }
2023 case $ac_cv_build in
2024 *-*-*) ;;
2025 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2026 echo "$as_me: error: invalid value of canonical build" >&2;}
2027 { (exit 1); exit 1; }; };;
2028 esac
2029 build=$ac_cv_build
2030 ac_save_IFS=$IFS; IFS='-'
2031 set x $ac_cv_build
2032 shift
2033 build_cpu=$1
2034 build_vendor=$2
2035 shift; shift
2036 # Remember, the first character of IFS is used to create $*,
2037 # except with old shells:
2038 build_os=$*
2039 IFS=$ac_save_IFS
2040 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2041
2042
2043 { echo "$as_me:$LINENO: checking host system type" >&5
2044 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2045 if test "${ac_cv_host+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 if test "x$host_alias" = x; then
2049 ac_cv_host=$ac_cv_build
2050 else
2051 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2052 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2053 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2054 { (exit 1); exit 1; }; }
2055 fi
2056
2057 fi
2058 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2059 echo "${ECHO_T}$ac_cv_host" >&6; }
2060 case $ac_cv_host in
2061 *-*-*) ;;
2062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2063 echo "$as_me: error: invalid value of canonical host" >&2;}
2064 { (exit 1); exit 1; }; };;
2065 esac
2066 host=$ac_cv_host
2067 ac_save_IFS=$IFS; IFS='-'
2068 set x $ac_cv_host
2069 shift
2070 host_cpu=$1
2071 host_vendor=$2
2072 shift; shift
2073 # Remember, the first character of IFS is used to create $*,
2074 # except with old shells:
2075 host_os=$*
2076 IFS=$ac_save_IFS
2077 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2078
2079
2080 { echo "$as_me:$LINENO: checking target system type" >&5
2081 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2082 if test "${ac_cv_target+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 if test "x$target_alias" = x; then
2086 ac_cv_target=$ac_cv_host
2087 else
2088 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2089 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2091 { (exit 1); exit 1; }; }
2092 fi
2093
2094 fi
2095 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2096 echo "${ECHO_T}$ac_cv_target" >&6; }
2097 case $ac_cv_target in
2098 *-*-*) ;;
2099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2100 echo "$as_me: error: invalid value of canonical target" >&2;}
2101 { (exit 1); exit 1; }; };;
2102 esac
2103 target=$ac_cv_target
2104 ac_save_IFS=$IFS; IFS='-'
2105 set x $ac_cv_target
2106 shift
2107 target_cpu=$1
2108 target_vendor=$2
2109 shift; shift
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2112 target_os=$*
2113 IFS=$ac_save_IFS
2114 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2115
2116
2117 # The aliases save the names the user supplied, while $host etc.
2118 # will get canonicalized.
2119 test -n "$target_alias" &&
2120 test "$program_prefix$program_suffix$program_transform_name" = \
2121 NONENONEs,x,x, &&
2122 program_prefix=${target_alias}-
2123 am__api_version="1.9"
2124 # Find a good install program. We prefer a C program (faster),
2125 # so one script is as good as another. But avoid the broken or
2126 # incompatible versions:
2127 # SysV /etc/install, /usr/sbin/install
2128 # SunOS /usr/etc/install
2129 # IRIX /sbin/install
2130 # AIX /bin/install
2131 # AmigaOS /C/install, which installs bootblocks on floppy discs
2132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135 # OS/2's system install, which has a completely different semantic
2136 # ./install, which can be erroneously created by make from ./install.sh.
2137 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2138 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2139 if test -z "$INSTALL"; then
2140 if test "${ac_cv_path_install+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 # Account for people who put trailing slashes in PATH elements.
2149 case $as_dir/ in
2150 ./ | .// | /cC/* | \
2151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2152 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2153 /usr/ucb/* ) ;;
2154 *)
2155 # OSF1 and SCO ODT 3.0 have their own names for install.
2156 # Don't use installbsd from OSF since it installs stuff as root
2157 # by default.
2158 for ac_prog in ginstall scoinst install; do
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2161 if test $ac_prog = install &&
2162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163 # AIX install. It has an incompatible calling convention.
2164 :
2165 elif test $ac_prog = install &&
2166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167 # program-specific install script used by HP pwplus--don't use.
2168 :
2169 else
2170 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2171 break 3
2172 fi
2173 fi
2174 done
2175 done
2176 ;;
2177 esac
2178 done
2179 IFS=$as_save_IFS
2180
2181
2182 fi
2183 if test "${ac_cv_path_install+set}" = set; then
2184 INSTALL=$ac_cv_path_install
2185 else
2186 # As a last resort, use the slow shell script. Don't cache a
2187 # value for INSTALL within a source directory, because that will
2188 # break other packages using the cache if that directory is
2189 # removed, or if the value is a relative name.
2190 INSTALL=$ac_install_sh
2191 fi
2192 fi
2193 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2194 echo "${ECHO_T}$INSTALL" >&6; }
2195
2196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2197 # It thinks the first close brace ends the variable substitution.
2198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2199
2200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2201
2202 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2203
2204 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2205 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2206 # Just in case
2207 sleep 1
2208 echo timestamp > conftest.file
2209 # Do `set' in a subshell so we don't clobber the current shell's
2210 # arguments. Must try -L first in case configure is actually a
2211 # symlink; some systems play weird games with the mod time of symlinks
2212 # (eg FreeBSD returns the mod time of the symlink's containing
2213 # directory).
2214 if (
2215 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2216 if test "$*" = "X"; then
2217 # -L didn't work.
2218 set X `ls -t $srcdir/configure conftest.file`
2219 fi
2220 rm -f conftest.file
2221 if test "$*" != "X $srcdir/configure conftest.file" \
2222 && test "$*" != "X conftest.file $srcdir/configure"; then
2223
2224 # If neither matched, then we have a broken ls. This can happen
2225 # if, for instance, CONFIG_SHELL is bash and it inherits a
2226 # broken ls alias from the environment. This has actually
2227 # happened. Such a system could not be considered "sane".
2228 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2229 alias in your environment" >&5
2230 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2231 alias in your environment" >&2;}
2232 { (exit 1); exit 1; }; }
2233 fi
2234
2235 test "$2" = conftest.file
2236 )
2237 then
2238 # Ok.
2239 :
2240 else
2241 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2242 Check your system clock" >&5
2243 echo "$as_me: error: newly created file is older than distributed files!
2244 Check your system clock" >&2;}
2245 { (exit 1); exit 1; }; }
2246 fi
2247 { echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6; }
2249 test "$program_prefix" != NONE &&
2250 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2251 # Use a double $ so make ignores it.
2252 test "$program_suffix" != NONE &&
2253 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2254 # Double any \ or $. echo might interpret backslashes.
2255 # By default was `s,x,x', remove it if useless.
2256 cat <<\_ACEOF >conftest.sed
2257 s/[\\$]/&&/g;s/;s,x,x,$//
2258 _ACEOF
2259 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2260 rm -f conftest.sed
2261
2262 # expand $ac_aux_dir to an absolute path
2263 am_aux_dir=`cd $ac_aux_dir && pwd`
2264
2265 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2266 # Use eval to expand $SHELL
2267 if eval "$MISSING --run true"; then
2268 am_missing_run="$MISSING --run "
2269 else
2270 am_missing_run=
2271 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2272 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2273 fi
2274
2275 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2276 # We used to keeping the `.' as first argument, in order to
2277 # allow $(mkdir_p) to be used without argument. As in
2278 # $(mkdir_p) $(somedir)
2279 # where $(somedir) is conditionally defined. However this is wrong
2280 # for two reasons:
2281 # 1. if the package is installed by a user who cannot write `.'
2282 # make install will fail,
2283 # 2. the above comment should most certainly read
2284 # $(mkdir_p) $(DESTDIR)$(somedir)
2285 # so it does not work when $(somedir) is undefined and
2286 # $(DESTDIR) is not.
2287 # To support the latter case, we have to write
2288 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2289 # so the `.' trick is pointless.
2290 mkdir_p='mkdir -p --'
2291 else
2292 # On NextStep and OpenStep, the `mkdir' command does not
2293 # recognize any option. It will interpret all options as
2294 # directories to create, and then abort because `.' already
2295 # exists.
2296 for d in ./-p ./--version;
2297 do
2298 test -d $d && rmdir $d
2299 done
2300 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2301 if test -f "$ac_aux_dir/mkinstalldirs"; then
2302 mkdir_p='$(mkinstalldirs)'
2303 else
2304 mkdir_p='$(install_sh) -d'
2305 fi
2306 fi
2307
2308 for ac_prog in gawk mawk nawk awk
2309 do
2310 # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_AWK+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317 if test -n "$AWK"; then
2318 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_AWK="$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2330 fi
2331 done
2332 done
2333 IFS=$as_save_IFS
2334
2335 fi
2336 fi
2337 AWK=$ac_cv_prog_AWK
2338 if test -n "$AWK"; then
2339 { echo "$as_me:$LINENO: result: $AWK" >&5
2340 echo "${ECHO_T}$AWK" >&6; }
2341 else
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2344 fi
2345
2346
2347 test -n "$AWK" && break
2348 done
2349
2350 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2351 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2352 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2353 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 cat >conftest.make <<\_ACEOF
2357 SHELL = /bin/sh
2358 all:
2359 @echo '@@@%%%=$(MAKE)=@@@%%%'
2360 _ACEOF
2361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2362 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2363 *@@@%%%=?*=@@@%%%*)
2364 eval ac_cv_prog_make_${ac_make}_set=yes;;
2365 *)
2366 eval ac_cv_prog_make_${ac_make}_set=no;;
2367 esac
2368 rm -f conftest.make
2369 fi
2370 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2371 { echo "$as_me:$LINENO: result: yes" >&5
2372 echo "${ECHO_T}yes" >&6; }
2373 SET_MAKE=
2374 else
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2377 SET_MAKE="MAKE=${MAKE-make}"
2378 fi
2379
2380 rm -rf .tst 2>/dev/null
2381 mkdir .tst 2>/dev/null
2382 if test -d .tst; then
2383 am__leading_dot=.
2384 else
2385 am__leading_dot=_
2386 fi
2387 rmdir .tst 2>/dev/null
2388
2389 # test to see if srcdir already configured
2390 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2391 test -f $srcdir/config.status; then
2392 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2393 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2394 { (exit 1); exit 1; }; }
2395 fi
2396
2397 # test whether we have cygpath
2398 if test -z "$CYGPATH_W"; then
2399 if (cygpath --version) >/dev/null 2>/dev/null; then
2400 CYGPATH_W='cygpath -w'
2401 else
2402 CYGPATH_W=echo
2403 fi
2404 fi
2405
2406
2407 # Define the identity of the package.
2408 PACKAGE=coolkey
2409 VERSION="1.1.0"
2410
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE "$PACKAGE"
2414 _ACEOF
2415
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define VERSION "$VERSION"
2419 _ACEOF
2420
2421 # Some tools Automake needs.
2422
2423 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2424
2425
2426 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2427
2428
2429 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2430
2431
2432 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2433
2434
2435 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2436
2437 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2438
2439 # Installed binaries are usually stripped using `strip' when the user
2440 # run `make install-strip'. However `strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the `STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_STRIP+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452 if test -n "$STRIP"; then
2453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474 { echo "$as_me:$LINENO: result: $STRIP" >&5
2475 echo "${ECHO_T}$STRIP" >&6; }
2476 else
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2479 fi
2480
2481
2482 fi
2483 if test -z "$ac_cv_prog_STRIP"; then
2484 ac_ct_STRIP=$STRIP
2485 # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492 if test -n "$ac_ct_STRIP"; then
2493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_ac_ct_STRIP="strip"
2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2505 fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2515 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2516 else
2517 { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2519 fi
2520
2521 if test "x$ac_ct_STRIP" = x; then
2522 STRIP=":"
2523 else
2524 case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet. If you think this
2528 configuration is useful to you, please write to [email protected]." >&5
2529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet. If you think this
2531 configuration is useful to you, please write to [email protected]." >&2;}
2532 ac_tool_warned=yes ;;
2533 esac
2534 STRIP=$ac_ct_STRIP
2535 fi
2536 else
2537 STRIP="$ac_cv_prog_STRIP"
2538 fi
2539
2540 fi
2541 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2542
2543 # We need awk for the "check" target. The system "awk" is bad on
2544 # some platforms.
2545 # Always define AMTAR for backward compatibility.
2546
2547 AMTAR=${AMTAR-"${am_missing_run}tar"}
2548
2549 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2550
2551
2552
2553
2554
2555 ac_config_headers="$ac_config_headers config.h"
2556
2557
2558 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2559 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2560 # Check whether --enable-maintainer-mode was given.
2561 if test "${enable_maintainer_mode+set}" = set; then
2562 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2563 else
2564 USE_MAINTAINER_MODE=no
2565 fi
2566
2567 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2568 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2569
2570
2571 if test $USE_MAINTAINER_MODE = yes; then
2572 MAINTAINER_MODE_TRUE=
2573 MAINTAINER_MODE_FALSE='#'
2574 else
2575 MAINTAINER_MODE_TRUE='#'
2576 MAINTAINER_MODE_FALSE=
2577 fi
2578
2579 MAINT=$MAINTAINER_MODE_TRUE
2580
2581
2582
2583 # Add argument for debuging
2584 # Check whether --enable-debug was given.
2585 if test "${enable_debug+set}" = set; then
2586 enableval=$enable_debug;
2587 fi
2588
2589 if test "$enable_debug" = "no" -o "$enable_debug" = "false"
2590 then
2591 { echo "$as_me:$LINENO: WARNING: Debugging support is completely disabled!" >&5
2592 echo "$as_me: WARNING: Debugging support is completely disabled!" >&2;}
2593 else
2594
2595 cat >>confdefs.h <<\_ACEOF
2596 #define DEBUG 1
2597 _ACEOF
2598
2599 fi
2600
2601
2602 #
2603 # ./config does a poor job of dealing with native OS stuff other than
2604 # unix, detect Windows and mac and do something a little more OS
2605 # friendly
2606 WINDOWS=0
2607 MAC=0
2608 UNIX=0
2609 { echo "$as_me:$LINENO: checking platform type: " >&5
2610 echo $ECHO_N "checking platform type: ... $ECHO_C" >&6; }
2611 case "$host" in
2612 *-*-win*|*-*-cygwin*)
2613 { echo "$as_me:$LINENO: result: Windows" >&5
2614 echo "${ECHO_T}Windows" >&6; }
2615 WINDOWS=1
2616 ZLIB_CFLAGS=-I${ZLIB_INCLUDE}
2617 ZLIB_LIBS=${ZLIB_LIB}/zdll.dll
2618 #OS_FLAGS=`echo $INCLUDE | tr '[[:upper:]]' '[[:lower:]]' | sed -e 's;\\\\;/;g' -e 's;.:;/cygdrive/&/;g' -e 's;:;;g' -e 's;//;/;g' -e 's/;/\" -I\"/g' -e 's;^;-I\";' -e 's;$;\";'`
2619 CPPFLAGS="$CPPFLAGS $OS_FLAGS -DWIN32"
2620 LDFLAGS="$LDFLAGS"
2621 { echo "$as_me:$LINENO: WARNING: changing CPPFLAGS = $CPPFLAGS " >&5
2622 echo "$as_me: WARNING: changing CPPFLAGS = $CPPFLAGS " >&2;};
2623 SCARD_LIB_NAME="winscard.dll"
2624 # override config defaults for windows
2625 CC=cl
2626 CXX=cl
2627 CXXFLAGS="$CXXFLAGS /EHsc"
2628 #
2629 # Sigh, prevents us from overriding it with --libdir= in the config
2630 * line, but we can still override it in the make line.
2631 #
2632 libdir=`cygpath ${WINDIR}/system32`
2633 ;;
2634 *-*-darwin*)
2635 { echo "$as_me:$LINENO: result: MAC" >&5
2636 echo "${ECHO_T}MAC" >&6; }
2637 MAC=1
2638 SCARD_LIB_NAME="PCSC.Framework/PCSC"
2639 PCSC_MSG=yes
2640 PCSC_CFLAGS="-I/System/Library/Frameworks/PCSC.framework/Versions/Current/Headers"
2641 PCSC_LIBS="-Wl,-framework,PCSC"
2642 CFLAGS="-DMAC -I/System/Library/Frameworks/Security.framework/Versions/Current/Headers -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
2643 LDFLAGS="-L/System/Library/Frameworks/Security.framework/Versions/Current/Security -arch ppc -arch i386"
2644 CXXFLAGS="-DMAC -I/System/Library/Frameworks/Security.framework/Versions/Current/Headers -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
2645 ;;
2646 *)
2647 { echo "$as_me:$LINENO: result: UNIX/LINUX" >&5
2648 echo "${ECHO_T}UNIX/LINUX" >&6; }
2649 UNIX=1
2650 # should look it up on the local system
2651 SCARD_LIB_NAME="libpcsclite.so.1"
2652 ;;
2653 esac
2654
2655
2656 # Checks for programs.
2657 ac_ext=c
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 CC=$ac_cv_prog_CC
2691 if test -n "$CC"; then
2692 { echo "$as_me:$LINENO: result: $CC" >&5
2693 echo "${ECHO_T}$CC" >&6; }
2694 else
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2697 fi
2698
2699
2700 fi
2701 if test -z "$ac_cv_prog_CC"; then
2702 ac_ct_CC=$CC
2703 # Extract the first word of "gcc", so it can be a program name with args.
2704 set dummy gcc; ac_word=$2
2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 if test -n "$ac_ct_CC"; then
2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_ac_ct_CC="gcc"
2721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733 echo "${ECHO_T}$ac_ct_CC" >&6; }
2734 else
2735 { echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6; }
2737 fi
2738
2739 if test "x$ac_ct_CC" = x; then
2740 CC=""
2741 else
2742 case $cross_compiling:$ac_tool_warned in
2743 yes:)
2744 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2745 whose name does not start with the host triplet. If you think this
2746 configuration is useful to you, please write to [email protected]." >&5
2747 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2748 whose name does not start with the host triplet. If you think this
2749 configuration is useful to you, please write to [email protected]." >&2;}
2750 ac_tool_warned=yes ;;
2751 esac
2752 CC=$ac_ct_CC
2753 fi
2754 else
2755 CC="$ac_cv_prog_CC"
2756 fi
2757
2758 if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
2760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2761 set dummy ${ac_tool_prefix}cc; ac_word=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 if test -n "$CC"; then
2768 ac_cv_prog_CC="$CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_CC="${ac_tool_prefix}cc"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 CC=$ac_cv_prog_CC
2788 if test -n "$CC"; then
2789 { echo "$as_me:$LINENO: result: $CC" >&5
2790 echo "${ECHO_T}$CC" >&6; }
2791 else
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2794 fi
2795
2796
2797 fi
2798 fi
2799 if test -z "$CC"; then
2800 # Extract the first word of "cc", so it can be a program name with args.
2801 set dummy cc; ac_word=$2
2802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2809 else
2810 ac_prog_rejected=no
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2819 ac_prog_rejected=yes
2820 continue
2821 fi
2822 ac_cv_prog_CC="cc"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 if test $ac_prog_rejected = yes; then
2831 # We found a bogon in the path, so make sure we never use it.
2832 set dummy $ac_cv_prog_CC
2833 shift
2834 if test $# != 0; then
2835 # We chose a different compiler from the bogus one.
2836 # However, it has the same basename, so the bogon will be chosen
2837 # first if we set CC to just the basename; use the full file name.
2838 shift
2839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2840 fi
2841 fi
2842 fi
2843 fi
2844 CC=$ac_cv_prog_CC
2845 if test -n "$CC"; then
2846 { echo "$as_me:$LINENO: result: $CC" >&5
2847 echo "${ECHO_T}$CC" >&6; }
2848 else
2849 { echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6; }
2851 fi
2852
2853
2854 fi
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 for ac_prog in cl.exe
2858 do
2859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_CC+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 CC=$ac_cv_prog_CC
2887 if test -n "$CC"; then
2888 { echo "$as_me:$LINENO: result: $CC" >&5
2889 echo "${ECHO_T}$CC" >&6; }
2890 else
2891 { echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6; }
2893 fi
2894
2895
2896 test -n "$CC" && break
2897 done
2898 fi
2899 if test -z "$CC"; then
2900 ac_ct_CC=$CC
2901 for ac_prog in cl.exe
2902 do
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy $ac_prog; ac_word=$2
2905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 if test -n "$ac_ct_CC"; then
2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_ac_ct_CC="$ac_prog"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2931 if test -n "$ac_ct_CC"; then
2932 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2933 echo "${ECHO_T}$ac_ct_CC" >&6; }
2934 else
2935 { echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6; }
2937 fi
2938
2939
2940 test -n "$ac_ct_CC" && break
2941 done
2942
2943 if test "x$ac_ct_CC" = x; then
2944 CC=""
2945 else
2946 case $cross_compiling:$ac_tool_warned in
2947 yes:)
2948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2949 whose name does not start with the host triplet. If you think this
2950 configuration is useful to you, please write to [email protected]." >&5
2951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2952 whose name does not start with the host triplet. If you think this
2953 configuration is useful to you, please write to [email protected]." >&2;}
2954 ac_tool_warned=yes ;;
2955 esac
2956 CC=$ac_ct_CC
2957 fi
2958 fi
2959
2960 fi
2961
2962
2963 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: no acceptable C compiler found in \$PATH
2966 See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2968
2969 # Provide some information about the compiler.
2970 echo "$as_me:$LINENO: checking for C compiler version" >&5
2971 ac_compiler=`set X $ac_compile; echo $2`
2972 { (ac_try="$ac_compiler --version >&5"
2973 case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compiler --version >&5") 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }
2982 { (ac_try="$ac_compiler -v >&5"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compiler -v >&5") 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }
2992 { (ac_try="$ac_compiler -V >&5"
2993 case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compiler -V >&5") 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }
3002
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009
3010 int
3011 main ()
3012 {
3013
3014 ;
3015 return 0;
3016 }
3017 _ACEOF
3018 ac_clean_files_save=$ac_clean_files
3019 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3020 # Try to create an executable without -o first, disregard a.out.
3021 # It will help us diagnose broken compilers, and finding out an intuition
3022 # of exeext.
3023 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3024 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3025 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3026 #
3027 # List of possible output files, starting from the most likely.
3028 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3029 # only as a last resort. b.out is created by i960 compilers.
3030 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3031 #
3032 # The IRIX 6 linker writes into existing files which may not be
3033 # executable, retaining their permissions. Remove them first so a
3034 # subsequent execution test works.
3035 ac_rmfiles=
3036 for ac_file in $ac_files
3037 do
3038 case $ac_file in
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3041 esac
3042 done
3043 rm -f $ac_rmfiles
3044
3045 if { (ac_try="$ac_link_default"
3046 case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_link_default") 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; then
3055 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3056 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3057 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3058 # so that the user can short-circuit this test for compilers unknown to
3059 # Autoconf.
3060 for ac_file in $ac_files ''
3061 do
3062 test -f "$ac_file" || continue
3063 case $ac_file in
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3065 ;;
3066 [ab].out )
3067 # We found the default executable, but exeext='' is most
3068 # certainly right.
3069 break;;
3070 *.* )
3071 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3072 then :; else
3073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 fi
3075 # We set ac_cv_exeext here because the later test for it is not
3076 # safe: cross compilers may not add the suffix if given an `-o'
3077 # argument, so we may need to know it at that point already.
3078 # Even if this section looks crufty: it has the advantage of
3079 # actually working.
3080 break;;
3081 * )
3082 break;;
3083 esac
3084 done
3085 test "$ac_cv_exeext" = no && ac_cv_exeext=
3086
3087 else
3088 ac_file=''
3089 fi
3090
3091 { echo "$as_me:$LINENO: result: $ac_file" >&5
3092 echo "${ECHO_T}$ac_file" >&6; }
3093 if test -z "$ac_file"; then
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C compiler cannot create executables
3100 See \`config.log' for more details." >&2;}
3101 { (exit 77); exit 77; }; }
3102 fi
3103
3104 ac_exeext=$ac_cv_exeext
3105
3106 # Check that the compiler produces executables we can run. If not, either
3107 # the compiler is broken, or we cross compile.
3108 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3111 # If not cross compiling, check that we can run a simple program.
3112 if test "$cross_compiling" != yes; then
3113 if { ac_try='./$ac_file'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3123 cross_compiling=no
3124 else
3125 if test "$cross_compiling" = maybe; then
3126 cross_compiling=yes
3127 else
3128 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3129 If you meant to cross compile, use \`--host'.
3130 See \`config.log' for more details." >&5
3131 echo "$as_me: error: cannot run C compiled programs.
3132 If you meant to cross compile, use \`--host'.
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3135 fi
3136 fi
3137 fi
3138 { echo "$as_me:$LINENO: result: yes" >&5
3139 echo "${ECHO_T}yes" >&6; }
3140
3141 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3142 ac_clean_files=$ac_clean_files_save
3143 # Check that the compiler produces executables we can run. If not, either
3144 # the compiler is broken, or we cross compile.
3145 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3146 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3147 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3148 echo "${ECHO_T}$cross_compiling" >&6; }
3149
3150 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3151 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3152 if { (ac_try="$ac_link"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_link") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; then
3162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3164 # work properly (i.e., refer to `conftest.exe'), while it won't with
3165 # `rm'.
3166 for ac_file in conftest.exe conftest conftest.*; do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 break;;
3172 * ) break;;
3173 esac
3174 done
3175 else
3176 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3177 See \`config.log' for more details." >&5
3178 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3179 See \`config.log' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3181 fi
3182
3183 rm -f conftest$ac_cv_exeext
3184 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3185 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3186
3187 rm -f conftest.$ac_ext
3188 EXEEXT=$ac_cv_exeext
3189 ac_exeext=$EXEEXT
3190 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3191 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3192 if test "${ac_cv_objext+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h. */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3201
3202 int
3203 main ()
3204 {
3205
3206 ;
3207 return 0;
3208 }
3209 _ACEOF
3210 rm -f conftest.o conftest.obj
3211 if { (ac_try="$ac_compile"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compile") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; then
3221 for ac_file in conftest.o conftest.obj conftest.*; do
3222 test -f "$ac_file" || continue;
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3226 break;;
3227 esac
3228 done
3229 else
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3232
3233 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }
3238 fi
3239
3240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3241 fi
3242 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3243 echo "${ECHO_T}$ac_cv_objext" >&6; }
3244 OBJEXT=$ac_cv_objext
3245 ac_objext=$OBJEXT
3246 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3247 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3248 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 cat >conftest.$ac_ext <<_ACEOF
3252 /* confdefs.h. */
3253 _ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3257
3258 int
3259 main ()
3260 {
3261 #ifndef __GNUC__
3262 choke me
3263 #endif
3264
3265 ;
3266 return 0;
3267 }
3268 _ACEOF
3269 rm -f conftest.$ac_objext
3270 if { (ac_try="$ac_compile"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_compile") 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } && {
3283 test -z "$ac_c_werror_flag" ||
3284 test ! -s conftest.err
3285 } && test -s conftest.$ac_objext; then
3286 ac_compiler_gnu=yes
3287 else
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 ac_compiler_gnu=no
3292 fi
3293
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3296
3297 fi
3298 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3299 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3300 GCC=`test $ac_compiler_gnu = yes && echo yes`
3301 ac_test_CFLAGS=${CFLAGS+set}
3302 ac_save_CFLAGS=$CFLAGS
3303 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3304 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3305 if test "${ac_cv_prog_cc_g+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 ac_save_c_werror_flag=$ac_c_werror_flag
3309 ac_c_werror_flag=yes
3310 ac_cv_prog_cc_g=no
3311 CFLAGS="-g"
3312 cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h. */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3318
3319 int
3320 main ()
3321 {
3322
3323 ;
3324 return 0;
3325 }
3326 _ACEOF
3327 rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_compile") 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } && {
3341 test -z "$ac_c_werror_flag" ||
3342 test ! -s conftest.err
3343 } && test -s conftest.$ac_objext; then
3344 ac_cv_prog_cc_g=yes
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349 CFLAGS=""
3350 cat >conftest.$ac_ext <<_ACEOF
3351 /* confdefs.h. */
3352 _ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3356
3357 int
3358 main ()
3359 {
3360
3361 ;
3362 return 0;
3363 }
3364 _ACEOF
3365 rm -f conftest.$ac_objext
3366 if { (ac_try="$ac_compile"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_compile") 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } && {
3379 test -z "$ac_c_werror_flag" ||
3380 test ! -s conftest.err
3381 } && test -s conftest.$ac_objext; then
3382 :
3383 else
3384 echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 ac_c_werror_flag=$ac_save_c_werror_flag
3388 CFLAGS="-g"
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395
3396 int
3397 main ()
3398 {
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 rm -f conftest.$ac_objext
3405 if { (ac_try="$ac_compile"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_compile") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } && {
3418 test -z "$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3420 } && test -s conftest.$ac_objext; then
3421 ac_cv_prog_cc_g=yes
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426
3427 fi
3428
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 fi
3431
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 fi
3434
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_c_werror_flag=$ac_save_c_werror_flag
3437 fi
3438 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3439 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3440 if test "$ac_test_CFLAGS" = set; then
3441 CFLAGS=$ac_save_CFLAGS
3442 elif test $ac_cv_prog_cc_g = yes; then
3443 if test "$GCC" = yes; then
3444 CFLAGS="-g -O2"
3445 else
3446 CFLAGS="-g"
3447 fi
3448 else
3449 if test "$GCC" = yes; then
3450 CFLAGS="-O2"
3451 else
3452 CFLAGS=
3453 fi
3454 fi
3455 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3456 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3457 if test "${ac_cv_prog_cc_c89+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 ac_cv_prog_cc_c89=no
3461 ac_save_CC=$CC
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #include <stdarg.h>
3469 #include <stdio.h>
3470 #include <sys/types.h>
3471 #include <sys/stat.h>
3472 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3473 struct buf { int x; };
3474 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3475 static char *e (p, i)
3476 char **p;
3477 int i;
3478 {
3479 return p[i];
3480 }
3481 static char *f (char * (*g) (char **, int), char **p, ...)
3482 {
3483 char *s;
3484 va_list v;
3485 va_start (v,p);
3486 s = g (p, va_arg (v,int));
3487 va_end (v);
3488 return s;
3489 }
3490
3491 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3492 function prototypes and stuff, but not '\xHH' hex character constants.
3493 These don't provoke an error unfortunately, instead are silently treated
3494 as 'x'. The following induces an error, until -std is added to get
3495 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3496 array size at least. It's necessary to write '\x00'==0 to get something
3497 that's true only with -std. */
3498 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3499
3500 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3501 inside strings and character constants. */
3502 #define FOO(x) 'x'
3503 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3504
3505 int test (int i, double x);
3506 struct s1 {int (*f) (int a);};
3507 struct s2 {int (*f) (double a);};
3508 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3509 int argc;
3510 char **argv;
3511 int
3512 main ()
3513 {
3514 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3520 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3521 do
3522 CC="$ac_save_CC $ac_arg"
3523 rm -f conftest.$ac_objext
3524 if { (ac_try="$ac_compile"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530 (eval "$ac_compile") 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } && {
3537 test -z "$ac_c_werror_flag" ||
3538 test ! -s conftest.err
3539 } && test -s conftest.$ac_objext; then
3540 ac_cv_prog_cc_c89=$ac_arg
3541 else
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545
3546 fi
3547
3548 rm -f core conftest.err conftest.$ac_objext
3549 test "x$ac_cv_prog_cc_c89" != "xno" && break
3550 done
3551 rm -f conftest.$ac_ext
3552 CC=$ac_save_CC
3553
3554 fi
3555 # AC_CACHE_VAL
3556 case "x$ac_cv_prog_cc_c89" in
3557 x)
3558 { echo "$as_me:$LINENO: result: none needed" >&5
3559 echo "${ECHO_T}none needed" >&6; } ;;
3560 xno)
3561 { echo "$as_me:$LINENO: result: unsupported" >&5
3562 echo "${ECHO_T}unsupported" >&6; } ;;
3563 *)
3564 CC="$CC $ac_cv_prog_cc_c89"
3565 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3566 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3567 esac
3568
3569
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 DEPDIR="${am__leading_dot}deps"
3576
3577 ac_config_commands="$ac_config_commands depfiles"
3578
3579
3580 am_make=${MAKE-make}
3581 cat > confinc << 'END'
3582 am__doit:
3583 @echo done
3584 .PHONY: am__doit
3585 END
3586 # If we don't find an include directive, just comment out the code.
3587 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3588 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3589 am__include="#"
3590 am__quote=
3591 _am_result=none
3592 # First try GNU make style include.
3593 echo "include confinc" > confmf
3594 # We grep out `Entering directory' and `Leaving directory'
3595 # messages which can occur if `w' ends up in MAKEFLAGS.
3596 # In particular we don't look at `^make:' because GNU make might
3597 # be invoked under some other name (usually "gmake"), in which
3598 # case it prints its new name instead of `make'.
3599 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3600 am__include=include
3601 am__quote=
3602 _am_result=GNU
3603 fi
3604 # Now try BSD make style include.
3605 if test "$am__include" = "#"; then
3606 echo '.include "confinc"' > confmf
3607 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3608 am__include=.include
3609 am__quote="\""
3610 _am_result=BSD
3611 fi
3612 fi
3613
3614
3615 { echo "$as_me:$LINENO: result: $_am_result" >&5
3616 echo "${ECHO_T}$_am_result" >&6; }
3617 rm -f confinc confmf
3618
3619 # Check whether --enable-dependency-tracking was given.
3620 if test "${enable_dependency_tracking+set}" = set; then
3621 enableval=$enable_dependency_tracking;
3622 fi
3623
3624 if test "x$enable_dependency_tracking" != xno; then
3625 am_depcomp="$ac_aux_dir/depcomp"
3626 AMDEPBACKSLASH='\'
3627 fi
3628
3629
3630 if test "x$enable_dependency_tracking" != xno; then
3631 AMDEP_TRUE=
3632 AMDEP_FALSE='#'
3633 else
3634 AMDEP_TRUE='#'
3635 AMDEP_FALSE=
3636 fi
3637
3638
3639
3640
3641 depcc="$CC" am_compiler_list=
3642
3643 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3644 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3645 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3649 # We make a subdir and do the tests there. Otherwise we can end up
3650 # making bogus files that we don't know about and never remove. For
3651 # instance it was reported that on HP-UX the gcc test will end up
3652 # making a dummy file named `D' -- because `-MD' means `put the output
3653 # in D'.
3654 mkdir conftest.dir
3655 # Copy depcomp to subdir because otherwise we won't find it if we're
3656 # using a relative directory.
3657 cp "$am_depcomp" conftest.dir
3658 cd conftest.dir
3659 # We will build objects and dependencies in a subdirectory because
3660 # it helps to detect inapplicable dependency modes. For instance
3661 # both Tru64's cc and ICC support -MD to output dependencies as a
3662 # side effect of compilation, but ICC will put the dependencies in
3663 # the current directory while Tru64 will put them in the object
3664 # directory.
3665 mkdir sub
3666
3667 am_cv_CC_dependencies_compiler_type=none
3668 if test "$am_compiler_list" = ""; then
3669 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3670 fi
3671 for depmode in $am_compiler_list; do
3672 # Setup a source with many dependencies, because some compilers
3673 # like to wrap large dependency lists on column 80 (with \), and
3674 # we should not choose a depcomp mode which is confused by this.
3675 #
3676 # We need to recreate these files for each test, as the compiler may
3677 # overwrite some of them when testing with obscure command lines.
3678 # This happens at least with the AIX C compiler.
3679 : > sub/conftest.c
3680 for i in 1 2 3 4 5 6; do
3681 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3682 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3683 # Solaris 8's {/usr,}/bin/sh.
3684 touch sub/conftst$i.h
3685 done
3686 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3687
3688 case $depmode in
3689 nosideeffect)
3690 # after this tag, mechanisms are not by side-effect, so they'll
3691 # only be used when explicitly requested
3692 if test "x$enable_dependency_tracking" = xyes; then
3693 continue
3694 else
3695 break
3696 fi
3697 ;;
3698 none) break ;;
3699 esac
3700 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3701 # mode. It turns out that the SunPro C++ compiler does not properly
3702 # handle `-M -o', and we need to detect this.
3703 if depmode=$depmode \
3704 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3706 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3707 >/dev/null 2>conftest.err &&
3708 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3709 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3710 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3711 # icc doesn't choke on unknown options, it will just issue warnings
3712 # or remarks (even with -Werror). So we grep stderr for any message
3713 # that says an option was ignored or not supported.
3714 # When given -MP, icc 7.0 and 7.1 complain thusly:
3715 # icc: Command line warning: ignoring option '-M'; no argument required
3716 # The diagnosis changed in icc 8.0:
3717 # icc: Command line remark: option '-MP' not supported
3718 if (grep 'ignoring option' conftest.err ||
3719 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3720 am_cv_CC_dependencies_compiler_type=$depmode
3721 break
3722 fi
3723 fi
3724 done
3725
3726 cd ..
3727 rm -rf conftest.dir
3728 else
3729 am_cv_CC_dependencies_compiler_type=none
3730 fi
3731
3732 fi
3733 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3734 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3735 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3736
3737
3738
3739 if
3740 test "x$enable_dependency_tracking" != xno \
3741 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3742 am__fastdepCC_TRUE=
3743 am__fastdepCC_FALSE='#'
3744 else
3745 am__fastdepCC_TRUE='#'
3746 am__fastdepCC_FALSE=
3747 fi
3748
3749
3750 ac_ext=cpp
3751 ac_cpp='$CXXCPP $CPPFLAGS'
3752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3755 if test -z "$CXX"; then
3756 if test -n "$CCC"; then
3757 CXX=$CCC
3758 else
3759 if test -n "$ac_tool_prefix"; then
3760 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3761 do
3762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3766 if test "${ac_cv_prog_CXX+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 if test -n "$CXX"; then
3770 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783 done
3784 done
3785 IFS=$as_save_IFS
3786
3787 fi
3788 fi
3789 CXX=$ac_cv_prog_CXX
3790 if test -n "$CXX"; then
3791 { echo "$as_me:$LINENO: result: $CXX" >&5
3792 echo "${ECHO_T}$CXX" >&6; }
3793 else
3794 { echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6; }
3796 fi
3797
3798
3799 test -n "$CXX" && break
3800 done
3801 fi
3802 if test -z "$CXX"; then
3803 ac_ct_CXX=$CXX
3804 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3805 do
3806 # Extract the first word of "$ac_prog", so it can be a program name with args.
3807 set dummy $ac_prog; ac_word=$2
3808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3810 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 if test -n "$ac_ct_CXX"; then
3814 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3815 else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3818 do
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823 ac_cv_prog_ac_ct_CXX="$ac_prog"
3824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827 done
3828 done
3829 IFS=$as_save_IFS
3830
3831 fi
3832 fi
3833 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3834 if test -n "$ac_ct_CXX"; then
3835 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3836 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3837 else
3838 { echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6; }
3840 fi
3841
3842
3843 test -n "$ac_ct_CXX" && break
3844 done
3845
3846 if test "x$ac_ct_CXX" = x; then
3847 CXX="g++"
3848 else
3849 case $cross_compiling:$ac_tool_warned in
3850 yes:)
3851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3852 whose name does not start with the host triplet. If you think this
3853 configuration is useful to you, please write to [email protected]." >&5
3854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3855 whose name does not start with the host triplet. If you think this
3856 configuration is useful to you, please write to [email protected]." >&2;}
3857 ac_tool_warned=yes ;;
3858 esac
3859 CXX=$ac_ct_CXX
3860 fi
3861 fi
3862
3863 fi
3864 fi
3865 # Provide some information about the compiler.
3866 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3867 ac_compiler=`set X $ac_compile; echo $2`
3868 { (ac_try="$ac_compiler --version >&5"
3869 case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872 esac
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_compiler --version >&5") 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }
3878 { (ac_try="$ac_compiler -v >&5"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compiler -v >&5") 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }
3888 { (ac_try="$ac_compiler -V >&5"
3889 case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892 esac
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894 (eval "$ac_compiler -V >&5") 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }
3898
3899 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3900 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3901 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910
3911 int
3912 main ()
3913 {
3914 #ifndef __GNUC__
3915 choke me
3916 #endif
3917
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 rm -f conftest.$ac_objext
3923 if { (ac_try="$ac_compile"
3924 case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_compile") 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && {
3936 test -z "$ac_cxx_werror_flag" ||
3937 test ! -s conftest.err
3938 } && test -s conftest.$ac_objext; then
3939 ac_compiler_gnu=yes
3940 else
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 ac_compiler_gnu=no
3945 fi
3946
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3949
3950 fi
3951 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3952 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3953 GXX=`test $ac_compiler_gnu = yes && echo yes`
3954 ac_test_CXXFLAGS=${CXXFLAGS+set}
3955 ac_save_CXXFLAGS=$CXXFLAGS
3956 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3957 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3958 if test "${ac_cv_prog_cxx_g+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3962 ac_cxx_werror_flag=yes
3963 ac_cv_prog_cxx_g=no
3964 CXXFLAGS="-g"
3965 cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h. */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3971
3972 int
3973 main ()
3974 {
3975
3976 ;
3977 return 0;
3978 }
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_compile") 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } && {
3994 test -z "$ac_cxx_werror_flag" ||
3995 test ! -s conftest.err
3996 } && test -s conftest.$ac_objext; then
3997 ac_cv_prog_cxx_g=yes
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002 CXXFLAGS=""
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009
4010 int
4011 main ()
4012 {
4013
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 rm -f conftest.$ac_objext
4019 if { (ac_try="$ac_compile"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_compile") 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } && {
4032 test -z "$ac_cxx_werror_flag" ||
4033 test ! -s conftest.err
4034 } && test -s conftest.$ac_objext; then
4035 :
4036 else
4037 echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4041 CXXFLAGS="-g"
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h. */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048
4049 int
4050 main ()
4051 {
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 rm -f conftest.$ac_objext
4058 if { (ac_try="$ac_compile"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_compile") 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && {
4071 test -z "$ac_cxx_werror_flag" ||
4072 test ! -s conftest.err
4073 } && test -s conftest.$ac_objext; then
4074 ac_cv_prog_cxx_g=yes
4075 else
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079
4080 fi
4081
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 fi
4084
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 fi
4087
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4090 fi
4091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4092 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4093 if test "$ac_test_CXXFLAGS" = set; then
4094 CXXFLAGS=$ac_save_CXXFLAGS
4095 elif test $ac_cv_prog_cxx_g = yes; then
4096 if test "$GXX" = yes; then
4097 CXXFLAGS="-g -O2"
4098 else
4099 CXXFLAGS="-g"
4100 fi
4101 else
4102 if test "$GXX" = yes; then
4103 CXXFLAGS="-O2"
4104 else
4105 CXXFLAGS=
4106 fi
4107 fi
4108 ac_ext=c
4109 ac_cpp='$CPP $CPPFLAGS'
4110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113
4114 depcc="$CXX" am_compiler_list=
4115
4116 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4117 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4118 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4122 # We make a subdir and do the tests there. Otherwise we can end up
4123 # making bogus files that we don't know about and never remove. For
4124 # instance it was reported that on HP-UX the gcc test will end up
4125 # making a dummy file named `D' -- because `-MD' means `put the output
4126 # in D'.
4127 mkdir conftest.dir
4128 # Copy depcomp to subdir because otherwise we won't find it if we're
4129 # using a relative directory.
4130 cp "$am_depcomp" conftest.dir
4131 cd conftest.dir
4132 # We will build objects and dependencies in a subdirectory because
4133 # it helps to detect inapplicable dependency modes. For instance
4134 # both Tru64's cc and ICC support -MD to output dependencies as a
4135 # side effect of compilation, but ICC will put the dependencies in
4136 # the current directory while Tru64 will put them in the object
4137 # directory.
4138 mkdir sub
4139
4140 am_cv_CXX_dependencies_compiler_type=none
4141 if test "$am_compiler_list" = ""; then
4142 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4143 fi
4144 for depmode in $am_compiler_list; do
4145 # Setup a source with many dependencies, because some compilers
4146 # like to wrap large dependency lists on column 80 (with \), and
4147 # we should not choose a depcomp mode which is confused by this.
4148 #
4149 # We need to recreate these files for each test, as the compiler may
4150 # overwrite some of them when testing with obscure command lines.
4151 # This happens at least with the AIX C compiler.
4152 : > sub/conftest.c
4153 for i in 1 2 3 4 5 6; do
4154 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4155 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4156 # Solaris 8's {/usr,}/bin/sh.
4157 touch sub/conftst$i.h
4158 done
4159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4160
4161 case $depmode in
4162 nosideeffect)
4163 # after this tag, mechanisms are not by side-effect, so they'll
4164 # only be used when explicitly requested
4165 if test "x$enable_dependency_tracking" = xyes; then
4166 continue
4167 else
4168 break
4169 fi
4170 ;;
4171 none) break ;;
4172 esac
4173 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4174 # mode. It turns out that the SunPro C++ compiler does not properly
4175 # handle `-M -o', and we need to detect this.
4176 if depmode=$depmode \
4177 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4178 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4179 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4180 >/dev/null 2>conftest.err &&
4181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4182 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4184 # icc doesn't choke on unknown options, it will just issue warnings
4185 # or remarks (even with -Werror). So we grep stderr for any message
4186 # that says an option was ignored or not supported.
4187 # When given -MP, icc 7.0 and 7.1 complain thusly:
4188 # icc: Command line warning: ignoring option '-M'; no argument required
4189 # The diagnosis changed in icc 8.0:
4190 # icc: Command line remark: option '-MP' not supported
4191 if (grep 'ignoring option' conftest.err ||
4192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4193 am_cv_CXX_dependencies_compiler_type=$depmode
4194 break
4195 fi
4196 fi
4197 done
4198
4199 cd ..
4200 rm -rf conftest.dir
4201 else
4202 am_cv_CXX_dependencies_compiler_type=none
4203 fi
4204
4205 fi
4206 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4207 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4208 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4209
4210
4211
4212 if
4213 test "x$enable_dependency_tracking" != xno \
4214 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4215 am__fastdepCXX_TRUE=
4216 am__fastdepCXX_FALSE='#'
4217 else
4218 am__fastdepCXX_TRUE='#'
4219 am__fastdepCXX_FALSE=
4220 fi
4221
4222
4223 # Check whether --enable-shared was given.
4224 if test "${enable_shared+set}" = set; then
4225 enableval=$enable_shared; p=${PACKAGE-default}
4226 case $enableval in
4227 yes) enable_shared=yes ;;
4228 no) enable_shared=no ;;
4229 *)
4230 enable_shared=no
4231 # Look at the argument we got. We use all the common list separators.
4232 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4233 for pkg in $enableval; do
4234 IFS="$lt_save_ifs"
4235 if test "X$pkg" = "X$p"; then
4236 enable_shared=yes
4237 fi
4238 done
4239 IFS="$lt_save_ifs"
4240 ;;
4241 esac
4242 else
4243 enable_shared=yes
4244 fi
4245
4246
4247 # Check whether --enable-static was given.
4248 if test "${enable_static+set}" = set; then
4249 enableval=$enable_static; p=${PACKAGE-default}
4250 case $enableval in
4251 yes) enable_static=yes ;;
4252 no) enable_static=no ;;
4253 *)
4254 enable_static=no
4255 # Look at the argument we got. We use all the common list separators.
4256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4257 for pkg in $enableval; do
4258 IFS="$lt_save_ifs"
4259 if test "X$pkg" = "X$p"; then
4260 enable_static=yes
4261 fi
4262 done
4263 IFS="$lt_save_ifs"
4264 ;;
4265 esac
4266 else
4267 enable_static=yes
4268 fi
4269
4270
4271 # Check whether --enable-fast-install was given.
4272 if test "${enable_fast_install+set}" = set; then
4273 enableval=$enable_fast_install; p=${PACKAGE-default}
4274 case $enableval in
4275 yes) enable_fast_install=yes ;;
4276 no) enable_fast_install=no ;;
4277 *)
4278 enable_fast_install=no
4279 # Look at the argument we got. We use all the common list separators.
4280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4281 for pkg in $enableval; do
4282 IFS="$lt_save_ifs"
4283 if test "X$pkg" = "X$p"; then
4284 enable_fast_install=yes
4285 fi
4286 done
4287 IFS="$lt_save_ifs"
4288 ;;
4289 esac
4290 else
4291 enable_fast_install=yes
4292 fi
4293
4294
4295 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4296 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4297 if test "${lt_cv_path_SED+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300 # Loop through the user's path and test for sed and gsed.
4301 # Then use that list of sed's as ones to test for truncation.
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for lt_ac_prog in sed gsed; do
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4310 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4311 fi
4312 done
4313 done
4314 done
4315 lt_ac_max=0
4316 lt_ac_count=0
4317 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4318 # along with /bin/sed that truncates output.
4319 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4320 test ! -f $lt_ac_sed && continue
4321 cat /dev/null > conftest.in
4322 lt_ac_count=0
4323 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4324 # Check for GNU sed and select it if it is found.
4325 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4326 lt_cv_path_SED=$lt_ac_sed
4327 break
4328 fi
4329 while true; do
4330 cat conftest.in conftest.in >conftest.tmp
4331 mv conftest.tmp conftest.in
4332 cp conftest.in conftest.nl
4333 echo >>conftest.nl
4334 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4335 cmp -s conftest.out conftest.nl || break
4336 # 10000 chars as input seems more than enough
4337 test $lt_ac_count -gt 10 && break
4338 lt_ac_count=`expr $lt_ac_count + 1`
4339 if test $lt_ac_count -gt $lt_ac_max; then
4340 lt_ac_max=$lt_ac_count
4341 lt_cv_path_SED=$lt_ac_sed
4342 fi
4343 done
4344 done
4345
4346 fi
4347
4348 SED=$lt_cv_path_SED
4349 { echo "$as_me:$LINENO: result: $SED" >&5
4350 echo "${ECHO_T}$SED" >&6; }
4351
4352 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4353 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4354 if test "${ac_cv_path_GREP+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 # Extract the first word of "grep ggrep" to use in msg output
4358 if test -z "$GREP"; then
4359 set dummy grep ggrep; ac_prog_name=$2
4360 if test "${ac_cv_path_GREP+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363 ac_path_GREP_found=false
4364 # Loop through the user's path and test for each of PROGNAME-LIST
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367 do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_prog in grep ggrep; do
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4373 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4374 # Check for GNU ac_path_GREP and select it if it is found.
4375 # Check for GNU $ac_path_GREP
4376 case `"$ac_path_GREP" --version 2>&1` in
4377 *GNU*)
4378 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4379 *)
4380 ac_count=0
4381 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4382 while :
4383 do
4384 cat "conftest.in" "conftest.in" >"conftest.tmp"
4385 mv "conftest.tmp" "conftest.in"
4386 cp "conftest.in" "conftest.nl"
4387 echo 'GREP' >> "conftest.nl"
4388 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390 ac_count=`expr $ac_count + 1`
4391 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4392 # Best one so far, save it but keep looking for a better one
4393 ac_cv_path_GREP="$ac_path_GREP"
4394 ac_path_GREP_max=$ac_count
4395 fi
4396 # 10*(2^10) chars as input seems more than enough
4397 test $ac_count -gt 10 && break
4398 done
4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 esac
4401
4402
4403 $ac_path_GREP_found && break 3
4404 done
4405 done
4406
4407 done
4408 IFS=$as_save_IFS
4409
4410
4411 fi
4412
4413 GREP="$ac_cv_path_GREP"
4414 if test -z "$GREP"; then
4415 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4416 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4417 { (exit 1); exit 1; }; }
4418 fi
4419
4420 else
4421 ac_cv_path_GREP=$GREP
4422 fi
4423
4424
4425 fi
4426 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4427 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4428 GREP="$ac_cv_path_GREP"
4429
4430
4431 { echo "$as_me:$LINENO: checking for egrep" >&5
4432 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4433 if test "${ac_cv_path_EGREP+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4437 then ac_cv_path_EGREP="$GREP -E"
4438 else
4439 # Extract the first word of "egrep" to use in msg output
4440 if test -z "$EGREP"; then
4441 set dummy egrep; ac_prog_name=$2
4442 if test "${ac_cv_path_EGREP+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
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 echo $ECHO_N "0123456789$ECHO_C" >"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 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
4485 $ac_path_EGREP_found && break 3
4486 done
4487 done
4488
4489 done
4490 IFS=$as_save_IFS
4491
4492
4493 fi
4494
4495 EGREP="$ac_cv_path_EGREP"
4496 if test -z "$EGREP"; then
4497 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4498 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4499 { (exit 1); exit 1; }; }
4500 fi
4501
4502 else
4503 ac_cv_path_EGREP=$EGREP
4504 fi
4505
4506
4507 fi
4508 fi
4509 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4510 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4511 EGREP="$ac_cv_path_EGREP"
4512
4513
4514
4515 # Check whether --with-gnu-ld was given.
4516 if test "${with_gnu_ld+set}" = set; then
4517 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4518 else
4519 with_gnu_ld=no
4520 fi
4521
4522 ac_prog=ld
4523 if test "$GCC" = yes; then
4524 # Check if gcc -print-prog-name=ld gives a path.
4525 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4526 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4527 case $host in
4528 *-*-mingw*)
4529 # gcc leaves a trailing carriage return which upsets mingw
4530 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4531 *)
4532 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4533 esac
4534 case $ac_prog in
4535 # Accept absolute paths.
4536 [\\/]* | ?:[\\/]*)
4537 re_direlt='/[^/][^/]*/\.\./'
4538 # Canonicalize the pathname of ld
4539 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4540 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4541 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4542 done
4543 test -z "$LD" && LD="$ac_prog"
4544 ;;
4545 "")
4546 # If it fails, then pretend we aren't using GCC.
4547 ac_prog=ld
4548 ;;
4549 *)
4550 # If it is relative, then search for the first ld in PATH.
4551 with_gnu_ld=unknown
4552 ;;
4553 esac
4554 elif test "$with_gnu_ld" = yes; then
4555 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4556 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4557 else
4558 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4559 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4560 fi
4561 if test "${lt_cv_path_LD+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 if test -z "$LD"; then
4565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4566 for ac_dir in $PATH; do
4567 IFS="$lt_save_ifs"
4568 test -z "$ac_dir" && ac_dir=.
4569 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4570 lt_cv_path_LD="$ac_dir/$ac_prog"
4571 # Check to see if the program is GNU ld. I'd rather use --version,
4572 # but apparently some variants of GNU ld only accept -v.
4573 # Break only if it was the GNU/non-GNU ld that we prefer.
4574 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4575 *GNU* | *'with BFD'*)
4576 test "$with_gnu_ld" != no && break
4577 ;;
4578 *)
4579 test "$with_gnu_ld" != yes && break
4580 ;;
4581 esac
4582 fi
4583 done
4584 IFS="$lt_save_ifs"
4585 else
4586 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4587 fi
4588 fi
4589
4590 LD="$lt_cv_path_LD"
4591 if test -n "$LD"; then
4592 { echo "$as_me:$LINENO: result: $LD" >&5
4593 echo "${ECHO_T}$LD" >&6; }
4594 else
4595 { echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6; }
4597 fi
4598 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4599 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4600 { (exit 1); exit 1; }; }
4601 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4602 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4603 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4607 case `$LD -v 2>&1 </dev/null` in
4608 *GNU* | *'with BFD'*)
4609 lt_cv_prog_gnu_ld=yes
4610 ;;
4611 *)
4612 lt_cv_prog_gnu_ld=no
4613 ;;
4614 esac
4615 fi
4616 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4617 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4618 with_gnu_ld=$lt_cv_prog_gnu_ld
4619
4620
4621 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4622 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4623 if test "${lt_cv_ld_reload_flag+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 lt_cv_ld_reload_flag='-r'
4627 fi
4628 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4629 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4630 reload_flag=$lt_cv_ld_reload_flag
4631 case $reload_flag in
4632 "" | " "*) ;;
4633 *) reload_flag=" $reload_flag" ;;
4634 esac
4635 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4636 case $host_os in
4637 darwin*)
4638 if test "$GCC" = yes; then
4639 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4640 else
4641 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4642 fi
4643 ;;
4644 esac
4645
4646 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4647 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4648 if test "${lt_cv_path_NM+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651 if test -n "$NM"; then
4652 # Let the user override the test.
4653 lt_cv_path_NM="$NM"
4654 else
4655 lt_nm_to_check="${ac_tool_prefix}nm"
4656 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4657 lt_nm_to_check="$lt_nm_to_check nm"
4658 fi
4659 for lt_tmp_nm in $lt_nm_to_check; do
4660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4661 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4662 IFS="$lt_save_ifs"
4663 test -z "$ac_dir" && ac_dir=.
4664 tmp_nm="$ac_dir/$lt_tmp_nm"
4665 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4666 # Check to see if the nm accepts a BSD-compat flag.
4667 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4668 # nm: unknown option "B" ignored
4669 # Tru64's nm complains that /dev/null is an invalid object file
4670 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4671 */dev/null* | *'Invalid file or object type'*)
4672 lt_cv_path_NM="$tmp_nm -B"
4673 break
4674 ;;
4675 *)
4676 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4677 */dev/null*)
4678 lt_cv_path_NM="$tmp_nm -p"
4679 break
4680 ;;
4681 *)
4682 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4683 continue # so that we can try to find one that supports BSD flags
4684 ;;
4685 esac
4686 ;;
4687 esac
4688 fi
4689 done
4690 IFS="$lt_save_ifs"
4691 done
4692 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4693 fi
4694 fi
4695 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4696 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4697 NM="$lt_cv_path_NM"
4698
4699 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4700 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4701 LN_S=$as_ln_s
4702 if test "$LN_S" = "ln -s"; then
4703 { echo "$as_me:$LINENO: result: yes" >&5
4704 echo "${ECHO_T}yes" >&6; }
4705 else
4706 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4707 echo "${ECHO_T}no, using $LN_S" >&6; }
4708 fi
4709
4710 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4711 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4712 if test "${lt_cv_deplibs_check_method+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 lt_cv_file_magic_cmd='$MAGIC_CMD'
4716 lt_cv_file_magic_test_file=
4717 lt_cv_deplibs_check_method='unknown'
4718 # Need to set the preceding variable on all platforms that support
4719 # interlibrary dependencies.
4720 # 'none' -- dependencies not supported.
4721 # `unknown' -- same as none, but documents that we really don't know.
4722 # 'pass_all' -- all dependencies passed with no checks.
4723 # 'test_compile' -- check by making test program.
4724 # 'file_magic [[regex]]' -- check by looking for files in library path
4725 # which responds to the $file_magic_cmd with a given extended regex.
4726 # If you have `file' or equivalent on your system and you're not sure
4727 # whether `pass_all' will *always* work, you probably want this one.
4728
4729 case $host_os in
4730 aix4* | aix5*)
4731 lt_cv_deplibs_check_method=pass_all
4732 ;;
4733
4734 beos*)
4735 lt_cv_deplibs_check_method=pass_all
4736 ;;
4737
4738 bsdi[45]*)
4739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4740 lt_cv_file_magic_cmd='/usr/bin/file -L'
4741 lt_cv_file_magic_test_file=/shlib/libc.so
4742 ;;
4743
4744 cygwin*)
4745 # func_win32_libid is a shell function defined in ltmain.sh
4746 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4747 lt_cv_file_magic_cmd='func_win32_libid'
4748 ;;
4749
4750 mingw* | pw32*)
4751 # Base MSYS/MinGW do not provide the 'file' command needed by
4752 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4753 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4754 lt_cv_file_magic_cmd='$OBJDUMP -f'
4755 ;;
4756
4757 darwin* | rhapsody*)
4758 lt_cv_deplibs_check_method=pass_all
4759 ;;
4760
4761 freebsd* | kfreebsd*-gnu | dragonfly*)
4762 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4763 case $host_cpu in
4764 i*86 )
4765 # Not sure whether the presence of OpenBSD here was a mistake.
4766 # Let's accept both of them until this is cleared up.
4767 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4768 lt_cv_file_magic_cmd=/usr/bin/file
4769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4770 ;;
4771 esac
4772 else
4773 lt_cv_deplibs_check_method=pass_all
4774 fi
4775 ;;
4776
4777 gnu*)
4778 lt_cv_deplibs_check_method=pass_all
4779 ;;
4780
4781 hpux10.20* | hpux11*)
4782 lt_cv_file_magic_cmd=/usr/bin/file
4783 case $host_cpu in
4784 ia64*)
4785 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4786 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4787 ;;
4788 hppa*64*)
4789 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]'
4790 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4791 ;;
4792 *)
4793 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4794 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4795 ;;
4796 esac
4797 ;;
4798
4799 interix3*)
4800 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4802 ;;
4803
4804 irix5* | irix6* | nonstopux*)
4805 case $LD in
4806 *-32|*"-32 ") libmagic=32-bit;;
4807 *-n32|*"-n32 ") libmagic=N32;;
4808 *-64|*"-64 ") libmagic=64-bit;;
4809 *) libmagic=never-match;;
4810 esac
4811 lt_cv_deplibs_check_method=pass_all
4812 ;;
4813
4814 # This must be Linux ELF.
4815 linux*)
4816 lt_cv_deplibs_check_method=pass_all
4817 ;;
4818
4819 netbsd*)
4820 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4822 else
4823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4824 fi
4825 ;;
4826
4827 newos6*)
4828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4829 lt_cv_file_magic_cmd=/usr/bin/file
4830 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4831 ;;
4832
4833 nto-qnx*)
4834 lt_cv_deplibs_check_method=unknown
4835 ;;
4836
4837 openbsd*)
4838 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4840 else
4841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4842 fi
4843 ;;
4844
4845 osf3* | osf4* | osf5*)
4846 lt_cv_deplibs_check_method=pass_all
4847 ;;
4848
4849 solaris*)
4850 lt_cv_deplibs_check_method=pass_all
4851 ;;
4852
4853 sysv4 | sysv4.3*)
4854 case $host_vendor in
4855 motorola)
4856 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]'
4857 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4858 ;;
4859 ncr)
4860 lt_cv_deplibs_check_method=pass_all
4861 ;;
4862 sequent)
4863 lt_cv_file_magic_cmd='/bin/file'
4864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4865 ;;
4866 sni)
4867 lt_cv_file_magic_cmd='/bin/file'
4868 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4869 lt_cv_file_magic_test_file=/lib/libc.so
4870 ;;
4871 siemens)
4872 lt_cv_deplibs_check_method=pass_all
4873 ;;
4874 pc)
4875 lt_cv_deplibs_check_method=pass_all
4876 ;;
4877 esac
4878 ;;
4879
4880 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4881 lt_cv_deplibs_check_method=pass_all
4882 ;;
4883 esac
4884
4885 fi
4886 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4887 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4888 file_magic_cmd=$lt_cv_file_magic_cmd
4889 deplibs_check_method=$lt_cv_deplibs_check_method
4890 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4891
4892
4893
4894
4895 # If no C compiler was specified, use CC.
4896 LTCC=${LTCC-"$CC"}
4897
4898 # If no C compiler flags were specified, use CFLAGS.
4899 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4900
4901 # Allow CC to be a program name with arguments.
4902 compiler=$CC
4903
4904
4905 # Check whether --enable-libtool-lock was given.
4906 if test "${enable_libtool_lock+set}" = set; then
4907 enableval=$enable_libtool_lock;
4908 fi
4909
4910 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4911
4912 # Some flags need to be propagated to the compiler or linker for good
4913 # libtool support.
4914 case $host in
4915 ia64-*-hpux*)
4916 # Find out which ABI we are using.
4917 echo 'int i;' > conftest.$ac_ext
4918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919 (eval $ac_compile) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; then
4923 case `/usr/bin/file conftest.$ac_objext` in
4924 *ELF-32*)
4925 HPUX_IA64_MODE="32"
4926 ;;
4927 *ELF-64*)
4928 HPUX_IA64_MODE="64"
4929 ;;
4930 esac
4931 fi
4932 rm -rf conftest*
4933 ;;
4934 *-*-irix6*)
4935 # Find out which ABI we are using.
4936 echo '#line 4936 "configure"' > conftest.$ac_ext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938 (eval $ac_compile) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; then
4942 if test "$lt_cv_prog_gnu_ld" = yes; then
4943 case `/usr/bin/file conftest.$ac_objext` in
4944 *32-bit*)
4945 LD="${LD-ld} -melf32bsmip"
4946 ;;
4947 *N32*)
4948 LD="${LD-ld} -melf32bmipn32"
4949 ;;
4950 *64-bit*)
4951 LD="${LD-ld} -melf64bmip"
4952 ;;
4953 esac
4954 else
4955 case `/usr/bin/file conftest.$ac_objext` in
4956 *32-bit*)
4957 LD="${LD-ld} -32"
4958 ;;
4959 *N32*)
4960 LD="${LD-ld} -n32"
4961 ;;
4962 *64-bit*)
4963 LD="${LD-ld} -64"
4964 ;;
4965 esac
4966 fi
4967 fi
4968 rm -rf conftest*
4969 ;;
4970
4971 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4972 # Find out which ABI we are using.
4973 echo 'int i;' > conftest.$ac_ext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; then
4979 case `/usr/bin/file conftest.o` in
4980 *32-bit*)
4981 case $host in
4982 x86_64-*linux*)
4983 LD="${LD-ld} -m elf_i386"
4984 ;;
4985 ppc64-*linux*|powerpc64-*linux*)
4986 LD="${LD-ld} -m elf32ppclinux"
4987 ;;
4988 s390x-*linux*)
4989 LD="${LD-ld} -m elf_s390"
4990 ;;
4991 sparc64-*linux*)
4992 LD="${LD-ld} -m elf32_sparc"
4993 ;;
4994 esac
4995 ;;
4996 *64-bit*)
4997 case $host in
4998 x86_64-*linux*)
4999 LD="${LD-ld} -m elf_x86_64"
5000 ;;
5001 ppc*-*linux*|powerpc*-*linux*)
5002 LD="${LD-ld} -m elf64ppc"
5003 ;;
5004 s390*-*linux*)
5005 LD="${LD-ld} -m elf64_s390"
5006 ;;
5007 sparc*-*linux*)
5008 LD="${LD-ld} -m elf64_sparc"
5009 ;;
5010 esac
5011 ;;
5012 esac
5013 fi
5014 rm -rf conftest*
5015 ;;
5016
5017 *-*-sco3.2v5*)
5018 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5019 SAVE_CFLAGS="$CFLAGS"
5020 CFLAGS="$CFLAGS -belf"
5021 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5022 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5023 if test "${lt_cv_cc_needs_belf+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026 ac_ext=c
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031
5032 cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h. */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038
5039 int
5040 main ()
5041 {
5042
5043 ;
5044 return 0;
5045 }
5046 _ACEOF
5047 rm -f conftest.$ac_objext conftest$ac_exeext
5048 if { (ac_try="$ac_link"
5049 case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052 esac
5053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054 (eval "$ac_link") 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } && {
5061 test -z "$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5063 } && test -s conftest$ac_exeext &&
5064 $as_test_x conftest$ac_exeext; then
5065 lt_cv_cc_needs_belf=yes
5066 else
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5069
5070 lt_cv_cc_needs_belf=no
5071 fi
5072
5073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5074 conftest$ac_exeext conftest.$ac_ext
5075 ac_ext=c
5076 ac_cpp='$CPP $CPPFLAGS'
5077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080
5081 fi
5082 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5083 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5084 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5085 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5086 CFLAGS="$SAVE_CFLAGS"
5087 fi
5088 ;;
5089 sparc*-*solaris*)
5090 # Find out which ABI we are using.
5091 echo 'int i;' > conftest.$ac_ext
5092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093 (eval $ac_compile) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; then
5097 case `/usr/bin/file conftest.o` in
5098 *64-bit*)
5099 case $lt_cv_prog_gnu_ld in
5100 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5101 *) LD="${LD-ld} -64" ;;
5102 esac
5103 ;;
5104 esac
5105 fi
5106 rm -rf conftest*
5107 ;;
5108
5109
5110 esac
5111
5112 need_locks="$enable_libtool_lock"
5113
5114
5115 ac_ext=c
5116 ac_cpp='$CPP $CPPFLAGS'
5117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5121 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5122 # On Suns, sometimes $CPP names a directory.
5123 if test -n "$CPP" && test -d "$CPP"; then
5124 CPP=
5125 fi
5126 if test -z "$CPP"; then
5127 if test "${ac_cv_prog_CPP+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130 # Double quotes because CPP needs to be expanded
5131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5132 do
5133 ac_preproc_ok=false
5134 for ac_c_preproc_warn_flag in '' yes
5135 do
5136 # Use a header file that comes with gcc, so configuring glibc
5137 # with a fresh cross-compiler works.
5138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5139 # <limits.h> exists even on freestanding compilers.
5140 # On the NeXT, cc -E runs the code through the compiler's parser,
5141 # not just through cpp. "Syntax error" is here to catch this case.
5142 cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h. */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 #ifdef __STDC__
5149 # include <limits.h>
5150 #else
5151 # include <assert.h>
5152 #endif
5153 Syntax error
5154 _ACEOF
5155 if { (ac_try="$ac_cpp conftest.$ac_ext"
5156 case "(($ac_try" in
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5159 esac
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null && {
5168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 }; then
5171 :
5172 else
5173 echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176 # Broken: fails on valid input.
5177 continue
5178 fi
5179
5180 rm -f conftest.err conftest.$ac_ext
5181
5182 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how.
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #include <ac_nonexistent.h>
5191 _ACEOF
5192 if { (ac_try="$ac_cpp conftest.$ac_ext"
5193 case "(($ac_try" in
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5196 esac
5197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5199 ac_status=$?
5200 grep -v '^ *+' conftest.er1 >conftest.err
5201 rm -f conftest.er1
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } >/dev/null && {
5205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5206 test ! -s conftest.err
5207 }; then
5208 # Broken: success on invalid input.
5209 continue
5210 else
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214 # Passes both tests.
5215 ac_preproc_ok=:
5216 break
5217 fi
5218
5219 rm -f conftest.err conftest.$ac_ext
5220
5221 done
5222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5223 rm -f conftest.err conftest.$ac_ext
5224 if $ac_preproc_ok; then
5225 break
5226 fi
5227
5228 done
5229 ac_cv_prog_CPP=$CPP
5230
5231 fi
5232 CPP=$ac_cv_prog_CPP
5233 else
5234 ac_cv_prog_CPP=$CPP
5235 fi
5236 { echo "$as_me:$LINENO: result: $CPP" >&5
5237 echo "${ECHO_T}$CPP" >&6; }
5238 ac_preproc_ok=false
5239 for ac_c_preproc_warn_flag in '' yes
5240 do
5241 # Use a header file that comes with gcc, so configuring glibc
5242 # with a fresh cross-compiler works.
5243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5244 # <limits.h> exists even on freestanding compilers.
5245 # On the NeXT, cc -E runs the code through the compiler's parser,
5246 # not just through cpp. "Syntax error" is here to catch this case.
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 #ifdef __STDC__
5254 # include <limits.h>
5255 #else
5256 # include <assert.h>
5257 #endif
5258 Syntax error
5259 _ACEOF
5260 if { (ac_try="$ac_cpp conftest.$ac_ext"
5261 case "(($ac_try" in
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5264 esac
5265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } >/dev/null && {
5273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5274 test ! -s conftest.err
5275 }; then
5276 :
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 # Broken: fails on valid input.
5282 continue
5283 fi
5284
5285 rm -f conftest.err conftest.$ac_ext
5286
5287 # OK, works on sane cases. Now check whether nonexistent headers
5288 # can be detected and how.
5289 cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h. */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 #include <ac_nonexistent.h>
5296 _ACEOF
5297 if { (ac_try="$ac_cpp conftest.$ac_ext"
5298 case "(($ac_try" in
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } >/dev/null && {
5310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5311 test ! -s conftest.err
5312 }; then
5313 # Broken: success on invalid input.
5314 continue
5315 else
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5318
5319 # Passes both tests.
5320 ac_preproc_ok=:
5321 break
5322 fi
5323
5324 rm -f conftest.err conftest.$ac_ext
5325
5326 done
5327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5328 rm -f conftest.err conftest.$ac_ext
5329 if $ac_preproc_ok; then
5330 :
5331 else
5332 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5333 See \`config.log' for more details." >&5
5334 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5335 See \`config.log' for more details." >&2;}
5336 { (exit 1); exit 1; }; }
5337 fi
5338
5339 ac_ext=c
5340 ac_cpp='$CPP $CPPFLAGS'
5341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5344
5345
5346 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5348 if test "${ac_cv_header_stdc+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 #include <stdlib.h>
5358 #include <stdarg.h>
5359 #include <string.h>
5360 #include <float.h>
5361
5362 int
5363 main ()
5364 {
5365
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 rm -f conftest.$ac_objext
5371 if { (ac_try="$ac_compile"
5372 case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375 esac
5376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_compile") 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } && {
5384 test -z "$ac_c_werror_flag" ||
5385 test ! -s conftest.err
5386 } && test -s conftest.$ac_objext; then
5387 ac_cv_header_stdc=yes
5388 else
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5391
5392 ac_cv_header_stdc=no
5393 fi
5394
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396
5397 if test $ac_cv_header_stdc = yes; then
5398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5399 cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h. */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5405 #include <string.h>
5406
5407 _ACEOF
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 $EGREP "memchr" >/dev/null 2>&1; then
5410 :
5411 else
5412 ac_cv_header_stdc=no
5413 fi
5414 rm -f conftest*
5415
5416 fi
5417
5418 if test $ac_cv_header_stdc = yes; then
5419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #include <stdlib.h>
5427
5428 _ACEOF
5429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5430 $EGREP "free" >/dev/null 2>&1; then
5431 :
5432 else
5433 ac_cv_header_stdc=no
5434 fi
5435 rm -f conftest*
5436
5437 fi
5438
5439 if test $ac_cv_header_stdc = yes; then
5440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5441 if test "$cross_compiling" = yes; then
5442 :
5443 else
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 #include <ctype.h>
5451 #include <stdlib.h>
5452 #if ((' ' & 0x0FF) == 0x020)
5453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5455 #else
5456 # define ISLOWER(c) \
5457 (('a' <= (c) && (c) <= 'i') \
5458 || ('j' <= (c) && (c) <= 'r') \
5459 || ('s' <= (c) && (c) <= 'z'))
5460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5461 #endif
5462
5463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5464 int
5465 main ()
5466 {
5467 int i;
5468 for (i = 0; i < 256; i++)
5469 if (XOR (islower (i), ISLOWER (i))
5470 || toupper (i) != TOUPPER (i))
5471 return 2;
5472 return 0;
5473 }
5474 _ACEOF
5475 rm -f conftest$ac_exeext
5476 if { (ac_try="$ac_link"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_link") 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5486 { (case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_try") 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 :
5496 else
5497 echo "$as_me: program exited with status $ac_status" >&5
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 ( exit $ac_status )
5502 ac_cv_header_stdc=no
5503 fi
5504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5505 fi
5506
5507
5508 fi
5509 fi
5510 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5511 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5512 if test $ac_cv_header_stdc = yes; then
5513
5514 cat >>confdefs.h <<\_ACEOF
5515 #define STDC_HEADERS 1
5516 _ACEOF
5517
5518 fi
5519
5520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5531 inttypes.h stdint.h unistd.h
5532 do
5533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 $ac_includes_default
5546
5547 #include <$ac_header>
5548 _ACEOF
5549 rm -f conftest.$ac_objext
5550 if { (ac_try="$ac_compile"
5551 case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554 esac
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_compile") 2>conftest.er1
5557 ac_status=$?
5558 grep -v '^ *+' conftest.er1 >conftest.err
5559 rm -f conftest.er1
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } && {
5563 test -z "$ac_c_werror_flag" ||
5564 test ! -s conftest.err
5565 } && test -s conftest.$ac_objext; then
5566 eval "$as_ac_Header=yes"
5567 else
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5570
5571 eval "$as_ac_Header=no"
5572 fi
5573
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 fi
5576 ac_res=`eval echo '${'$as_ac_Header'}'`
5577 { echo "$as_me:$LINENO: result: $ac_res" >&5
5578 echo "${ECHO_T}$ac_res" >&6; }
5579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5580 cat >>confdefs.h <<_ACEOF
5581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582 _ACEOF
5583
5584 fi
5585
5586 done
5587
5588
5589
5590 for ac_header in dlfcn.h
5591 do
5592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 fi
5599 ac_res=`eval echo '${'$as_ac_Header'}'`
5600 { echo "$as_me:$LINENO: result: $ac_res" >&5
5601 echo "${ECHO_T}$ac_res" >&6; }
5602 else
5603 # Is the header compilable?
5604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5606 cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h. */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 $ac_includes_default
5613 #include <$ac_header>
5614 _ACEOF
5615 rm -f conftest.$ac_objext
5616 if { (ac_try="$ac_compile"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.$ac_objext; then
5632 ac_header_compiler=yes
5633 else
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5636
5637 ac_header_compiler=no
5638 fi
5639
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5642 echo "${ECHO_T}$ac_header_compiler" >&6; }
5643
5644 # Is the header present?
5645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <$ac_header>
5654 _ACEOF
5655 if { (ac_try="$ac_cpp conftest.$ac_ext"
5656 case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } >/dev/null && {
5668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 }; then
5671 ac_header_preproc=yes
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_header_preproc=no
5677 fi
5678
5679 rm -f conftest.err conftest.$ac_ext
5680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5681 echo "${ECHO_T}$ac_header_preproc" >&6; }
5682
5683 # So? What about this header?
5684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5685 yes:no: )
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5690 ac_header_preproc=yes
5691 ;;
5692 no:yes:* )
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5705
5706 ;;
5707 esac
5708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713 eval "$as_ac_Header=\$ac_header_preproc"
5714 fi
5715 ac_res=`eval echo '${'$as_ac_Header'}'`
5716 { echo "$as_me:$LINENO: result: $ac_res" >&5
5717 echo "${ECHO_T}$ac_res" >&6; }
5718
5719 fi
5720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5721 cat >>confdefs.h <<_ACEOF
5722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5723 _ACEOF
5724
5725 fi
5726
5727 done
5728
5729
5730
5731 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5732 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5733 (test "X$CXX" != "Xg++"))) ; then
5734 ac_ext=cpp
5735 ac_cpp='$CXXCPP $CPPFLAGS'
5736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5739 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5740 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5741 if test -z "$CXXCPP"; then
5742 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745 # Double quotes because CXXCPP needs to be expanded
5746 for CXXCPP in "$CXX -E" "/lib/cpp"
5747 do
5748 ac_preproc_ok=false
5749 for ac_cxx_preproc_warn_flag in '' yes
5750 do
5751 # Use a header file that comes with gcc, so configuring glibc
5752 # with a fresh cross-compiler works.
5753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5754 # <limits.h> exists even on freestanding compilers.
5755 # On the NeXT, cc -E runs the code through the compiler's parser,
5756 # not just through cpp. "Syntax error" is here to catch this case.
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 #ifdef __STDC__
5764 # include <limits.h>
5765 #else
5766 # include <assert.h>
5767 #endif
5768 Syntax error
5769 _ACEOF
5770 if { (ac_try="$ac_cpp conftest.$ac_ext"
5771 case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } >/dev/null && {
5783 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5784 test ! -s conftest.err
5785 }; then
5786 :
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791 # Broken: fails on valid input.
5792 continue
5793 fi
5794
5795 rm -f conftest.err conftest.$ac_ext
5796
5797 # OK, works on sane cases. Now check whether nonexistent headers
5798 # can be detected and how.
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <ac_nonexistent.h>
5806 _ACEOF
5807 if { (ac_try="$ac_cpp conftest.$ac_ext"
5808 case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } >/dev/null && {
5820 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5821 test ! -s conftest.err
5822 }; then
5823 # Broken: success on invalid input.
5824 continue
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 # Passes both tests.
5830 ac_preproc_ok=:
5831 break
5832 fi
5833
5834 rm -f conftest.err conftest.$ac_ext
5835
5836 done
5837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838 rm -f conftest.err conftest.$ac_ext
5839 if $ac_preproc_ok; then
5840 break
5841 fi
5842
5843 done
5844 ac_cv_prog_CXXCPP=$CXXCPP
5845
5846 fi
5847 CXXCPP=$ac_cv_prog_CXXCPP
5848 else
5849 ac_cv_prog_CXXCPP=$CXXCPP
5850 fi
5851 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5852 echo "${ECHO_T}$CXXCPP" >&6; }
5853 ac_preproc_ok=false
5854 for ac_cxx_preproc_warn_flag in '' yes
5855 do
5856 # Use a header file that comes with gcc, so configuring glibc
5857 # with a fresh cross-compiler works.
5858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5859 # <limits.h> exists even on freestanding compilers.
5860 # On the NeXT, cc -E runs the code through the compiler's parser,
5861 # not just through cpp. "Syntax error" is here to catch this case.
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 #ifdef __STDC__
5869 # include <limits.h>
5870 #else
5871 # include <assert.h>
5872 #endif
5873 Syntax error
5874 _ACEOF
5875 if { (ac_try="$ac_cpp conftest.$ac_ext"
5876 case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } >/dev/null && {
5888 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5889 test ! -s conftest.err
5890 }; then
5891 :
5892 else
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896 # Broken: fails on valid input.
5897 continue
5898 fi
5899
5900 rm -f conftest.err conftest.$ac_ext
5901
5902 # OK, works on sane cases. Now check whether nonexistent headers
5903 # can be detected and how.
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 #include <ac_nonexistent.h>
5911 _ACEOF
5912 if { (ac_try="$ac_cpp conftest.$ac_ext"
5913 case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } >/dev/null && {
5925 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5926 test ! -s conftest.err
5927 }; then
5928 # Broken: success on invalid input.
5929 continue
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934 # Passes both tests.
5935 ac_preproc_ok=:
5936 break
5937 fi
5938
5939 rm -f conftest.err conftest.$ac_ext
5940
5941 done
5942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5943 rm -f conftest.err conftest.$ac_ext
5944 if $ac_preproc_ok; then
5945 :
5946 else
5947 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5948 See \`config.log' for more details." >&5
5949 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5950 See \`config.log' for more details." >&2;}
5951 { (exit 1); exit 1; }; }
5952 fi
5953
5954 ac_ext=cpp
5955 ac_cpp='$CXXCPP $CPPFLAGS'
5956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5959
5960 fi
5961
5962
5963 ac_ext=f
5964 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5965 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5967 if test -n "$ac_tool_prefix"; then
5968 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5969 do
5970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5974 if test "${ac_cv_prog_F77+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 if test -n "$F77"; then
5978 ac_cv_prog_F77="$F77" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991 done
5992 done
5993 IFS=$as_save_IFS
5994
5995 fi
5996 fi
5997 F77=$ac_cv_prog_F77
5998 if test -n "$F77"; then
5999 { echo "$as_me:$LINENO: result: $F77" >&5
6000 echo "${ECHO_T}$F77" >&6; }
6001 else
6002 { echo "$as_me:$LINENO: result: no" >&5
6003 echo "${ECHO_T}no" >&6; }
6004 fi
6005
6006
6007 test -n "$F77" && break
6008 done
6009 fi
6010 if test -z "$F77"; then
6011 ac_ct_F77=$F77
6012 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6013 do
6014 # Extract the first word of "$ac_prog", so it can be a program name with args.
6015 set dummy $ac_prog; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 if test -n "$ac_ct_F77"; then
6022 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_ac_ct_F77="$ac_prog"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6042 if test -n "$ac_ct_F77"; then
6043 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6044 echo "${ECHO_T}$ac_ct_F77" >&6; }
6045 else
6046 { echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6; }
6048 fi
6049
6050
6051 test -n "$ac_ct_F77" && break
6052 done
6053
6054 if test "x$ac_ct_F77" = x; then
6055 F77=""
6056 else
6057 case $cross_compiling:$ac_tool_warned in
6058 yes:)
6059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6060 whose name does not start with the host triplet. If you think this
6061 configuration is useful to you, please write to [email protected]." >&5
6062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6063 whose name does not start with the host triplet. If you think this
6064 configuration is useful to you, please write to [email protected]." >&2;}
6065 ac_tool_warned=yes ;;
6066 esac
6067 F77=$ac_ct_F77
6068 fi
6069 fi
6070
6071
6072 # Provide some information about the compiler.
6073 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6074 ac_compiler=`set X $ac_compile; echo $2`
6075 { (ac_try="$ac_compiler --version >&5"
6076 case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compiler --version >&5") 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }
6085 { (ac_try="$ac_compiler -v >&5"
6086 case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089 esac
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_compiler -v >&5") 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }
6095 { (ac_try="$ac_compiler -V >&5"
6096 case "(($ac_try" in
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6099 esac
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_compiler -V >&5") 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }
6105 rm -f a.out
6106
6107 # If we don't use `.F' as extension, the preprocessor is not run on the
6108 # input file. (Note that this only needs to work for GNU compilers.)
6109 ac_save_ext=$ac_ext
6110 ac_ext=F
6111 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6112 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6113 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116 cat >conftest.$ac_ext <<_ACEOF
6117 program main
6118 #ifndef __GNUC__
6119 choke me
6120 #endif
6121
6122 end
6123 _ACEOF
6124 rm -f conftest.$ac_objext
6125 if { (ac_try="$ac_compile"
6126 case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129 esac
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_compile") 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_f77_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest.$ac_objext; then
6141 ac_compiler_gnu=yes
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6145
6146 ac_compiler_gnu=no
6147 fi
6148
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6151
6152 fi
6153 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6154 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6155 ac_ext=$ac_save_ext
6156 ac_test_FFLAGS=${FFLAGS+set}
6157 ac_save_FFLAGS=$FFLAGS
6158 FFLAGS=
6159 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6160 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6161 if test "${ac_cv_prog_f77_g+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 FFLAGS=-g
6165 cat >conftest.$ac_ext <<_ACEOF
6166 program main
6167
6168 end
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6172 case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175 esac
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_f77_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
6187 ac_cv_prog_f77_g=yes
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 ac_cv_prog_f77_g=no
6193 fi
6194
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196
6197 fi
6198 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6199 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6200 if test "$ac_test_FFLAGS" = set; then
6201 FFLAGS=$ac_save_FFLAGS
6202 elif test $ac_cv_prog_f77_g = yes; then
6203 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6204 FFLAGS="-g -O2"
6205 else
6206 FFLAGS="-g"
6207 fi
6208 else
6209 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6210 FFLAGS="-O2"
6211 else
6212 FFLAGS=
6213 fi
6214 fi
6215
6216 G77=`test $ac_compiler_gnu = yes && echo yes`
6217 ac_ext=c
6218 ac_cpp='$CPP $CPPFLAGS'
6219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6222
6223
6224
6225 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6226
6227 # find the maximum length of command line arguments
6228 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6229 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6230 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 i=0
6234 teststring="ABCD"
6235
6236 case $build_os in
6237 msdosdjgpp*)
6238 # On DJGPP, this test can blow up pretty badly due to problems in libc
6239 # (any single argument exceeding 2000 bytes causes a buffer overrun
6240 # during glob expansion). Even if it were fixed, the result of this
6241 # check would be larger than it should be.
6242 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6243 ;;
6244
6245 gnu*)
6246 # Under GNU Hurd, this test is not required because there is
6247 # no limit to the length of command line arguments.
6248 # Libtool will interpret -1 as no limit whatsoever
6249 lt_cv_sys_max_cmd_len=-1;
6250 ;;
6251
6252 cygwin* | mingw*)
6253 # On Win9x/ME, this test blows up -- it succeeds, but takes
6254 # about 5 minutes as the teststring grows exponentially.
6255 # Worse, since 9x/ME are not pre-emptively multitasking,
6256 # you end up with a "frozen" computer, even though with patience
6257 # the test eventually succeeds (with a max line length of 256k).
6258 # Instead, let's just punt: use the minimum linelength reported by
6259 # all of the supported platforms: 8192 (on NT/2K/XP).
6260 lt_cv_sys_max_cmd_len=8192;
6261 ;;
6262
6263 amigaos*)
6264 # On AmigaOS with pdksh, this test takes hours, literally.
6265 # So we just punt and use a minimum line length of 8192.
6266 lt_cv_sys_max_cmd_len=8192;
6267 ;;
6268
6269 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6270 # This has been around since 386BSD, at least. Likely further.
6271 if test -x /sbin/sysctl; then
6272 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6273 elif test -x /usr/sbin/sysctl; then
6274 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6275 else
6276 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6277 fi
6278 # And add a safety zone
6279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6281 ;;
6282
6283 interix*)
6284 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6285 lt_cv_sys_max_cmd_len=196608
6286 ;;
6287
6288 osf*)
6289 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6290 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6291 # nice to cause kernel panics so lets avoid the loop below.
6292 # First set a reasonable default.
6293 lt_cv_sys_max_cmd_len=16384
6294 #
6295 if test -x /sbin/sysconfig; then
6296 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6297 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6298 esac
6299 fi
6300 ;;
6301 sco3.2v5*)
6302 lt_cv_sys_max_cmd_len=102400
6303 ;;
6304 sysv5* | sco5v6* | sysv4.2uw2*)
6305 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6306 if test -n "$kargmax"; then
6307 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6308 else
6309 lt_cv_sys_max_cmd_len=32768
6310 fi
6311 ;;
6312 *)
6313 # If test is not a shell built-in, we'll probably end up computing a
6314 # maximum length that is only half of the actual maximum length, but
6315 # we can't tell.
6316 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6317 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6318 = "XX$teststring") >/dev/null 2>&1 &&
6319 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6320 lt_cv_sys_max_cmd_len=$new_result &&
6321 test $i != 17 # 1/2 MB should be enough
6322 do
6323 i=`expr $i + 1`
6324 teststring=$teststring$teststring
6325 done
6326 teststring=
6327 # Add a significant safety factor because C++ compilers can tack on massive
6328 # amounts of additional arguments before passing them to the linker.
6329 # It appears as though 1/2 is a usable value.
6330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6331 ;;
6332 esac
6333
6334 fi
6335
6336 if test -n $lt_cv_sys_max_cmd_len ; then
6337 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6338 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6339 else
6340 { echo "$as_me:$LINENO: result: none" >&5
6341 echo "${ECHO_T}none" >&6; }
6342 fi
6343
6344
6345
6346
6347 # Check for command to grab the raw symbol name followed by C symbol from nm.
6348 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6349 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6350 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353
6354 # These are sane defaults that work on at least a few old systems.
6355 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6356
6357 # Character class describing NM global symbol codes.
6358 symcode='[BCDEGRST]'
6359
6360 # Regexp to match symbols that can be accessed directly from C.
6361 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6362
6363 # Transform an extracted symbol line into a proper C declaration
6364 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6365
6366 # Transform an extracted symbol line into symbol name and symbol address
6367 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6368
6369 # Define system-specific variables.
6370 case $host_os in
6371 aix*)
6372 symcode='[BCDT]'
6373 ;;
6374 cygwin* | mingw* | pw32*)
6375 symcode='[ABCDGISTW]'
6376 ;;
6377 hpux*) # Its linker distinguishes data from code symbols
6378 if test "$host_cpu" = ia64; then
6379 symcode='[ABCDEGRST]'
6380 fi
6381 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6382 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6383 ;;
6384 linux*)
6385 if test "$host_cpu" = ia64; then
6386 symcode='[ABCDGIRSTW]'
6387 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6388 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6389 fi
6390 ;;
6391 irix* | nonstopux*)
6392 symcode='[BCDEGRST]'
6393 ;;
6394 osf*)
6395 symcode='[BCDEGQRST]'
6396 ;;
6397 solaris*)
6398 symcode='[BDRT]'
6399 ;;
6400 sco3.2v5*)
6401 symcode='[DT]'
6402 ;;
6403 sysv4.2uw2*)
6404 symcode='[DT]'
6405 ;;
6406 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6407 symcode='[ABDT]'
6408 ;;
6409 sysv4)
6410 symcode='[DFNSTU]'
6411 ;;
6412 esac
6413
6414 # Handle CRLF in mingw tool chain
6415 opt_cr=
6416 case $build_os in
6417 mingw*)
6418 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6419 ;;
6420 esac
6421
6422 # If we're using GNU nm, then use its standard symbol codes.
6423 case `$NM -V 2>&1` in
6424 *GNU* | *'with BFD'*)
6425 symcode='[ABCDGIRSTW]' ;;
6426 esac
6427
6428 # Try without a prefix undercore, then with it.
6429 for ac_symprfx in "" "_"; do
6430
6431 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6432 symxfrm="\\1 $ac_symprfx\\2 \\2"
6433
6434 # Write the raw and C identifiers.
6435 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6436
6437 # Check to see that the pipe works correctly.
6438 pipe_works=no
6439
6440 rm -f conftest*
6441 cat > conftest.$ac_ext <<EOF
6442 #ifdef __cplusplus
6443 extern "C" {
6444 #endif
6445 char nm_test_var;
6446 void nm_test_func(){}
6447 #ifdef __cplusplus
6448 }
6449 #endif
6450 int main(){nm_test_var='a';nm_test_func();return(0);}
6451 EOF
6452
6453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6454 (eval $ac_compile) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; then
6458 # Now try to grab the symbols.
6459 nlist=conftest.nm
6460 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6461 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && test -s "$nlist"; then
6465 # Try sorting and uniquifying the output.
6466 if sort "$nlist" | uniq > "$nlist"T; then
6467 mv -f "$nlist"T "$nlist"
6468 else
6469 rm -f "$nlist"T
6470 fi
6471
6472 # Make sure that we snagged all the symbols we need.
6473 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6474 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6475 cat <<EOF > conftest.$ac_ext
6476 #ifdef __cplusplus
6477 extern "C" {
6478 #endif
6479
6480 EOF
6481 # Now generate the symbol file.
6482 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6483
6484 cat <<EOF >> conftest.$ac_ext
6485 #if defined (__STDC__) && __STDC__
6486 # define lt_ptr_t void *
6487 #else
6488 # define lt_ptr_t char *
6489 # define const
6490 #endif
6491
6492 /* The mapping between symbol names and symbols. */
6493 const struct {
6494 const char *name;
6495 lt_ptr_t address;
6496 }
6497 lt_preloaded_symbols[] =
6498 {
6499 EOF
6500 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6501 cat <<\EOF >> conftest.$ac_ext
6502 {0, (lt_ptr_t) 0}
6503 };
6504
6505 #ifdef __cplusplus
6506 }
6507 #endif
6508 EOF
6509 # Now try linking the two files.
6510 mv conftest.$ac_objext conftstm.$ac_objext
6511 lt_save_LIBS="$LIBS"
6512 lt_save_CFLAGS="$CFLAGS"
6513 LIBS="conftstm.$ac_objext"
6514 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516 (eval $ac_link) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6520 pipe_works=yes
6521 fi
6522 LIBS="$lt_save_LIBS"
6523 CFLAGS="$lt_save_CFLAGS"
6524 else
6525 echo "cannot find nm_test_func in $nlist" >&5
6526 fi
6527 else
6528 echo "cannot find nm_test_var in $nlist" >&5
6529 fi
6530 else
6531 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6532 fi
6533 else
6534 echo "$progname: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6536 fi
6537 rm -f conftest* conftst*
6538
6539 # Do not use the global_symbol_pipe unless it works.
6540 if test "$pipe_works" = yes; then
6541 break
6542 else
6543 lt_cv_sys_global_symbol_pipe=
6544 fi
6545 done
6546
6547 fi
6548
6549 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6550 lt_cv_sys_global_symbol_to_cdecl=
6551 fi
6552 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6553 { echo "$as_me:$LINENO: result: failed" >&5
6554 echo "${ECHO_T}failed" >&6; }
6555 else
6556 { echo "$as_me:$LINENO: result: ok" >&5
6557 echo "${ECHO_T}ok" >&6; }
6558 fi
6559
6560 { echo "$as_me:$LINENO: checking for objdir" >&5
6561 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6562 if test "${lt_cv_objdir+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565 rm -f .libs 2>/dev/null
6566 mkdir .libs 2>/dev/null
6567 if test -d .libs; then
6568 lt_cv_objdir=.libs
6569 else
6570 # MS-DOS does not allow filenames that begin with a dot.
6571 lt_cv_objdir=_libs
6572 fi
6573 rmdir .libs 2>/dev/null
6574 fi
6575 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6576 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6577 objdir=$lt_cv_objdir
6578
6579
6580
6581
6582
6583 case $host_os in
6584 aix3*)
6585 # AIX sometimes has problems with the GCC collect2 program. For some
6586 # reason, if we set the COLLECT_NAMES environment variable, the problems
6587 # vanish in a puff of smoke.
6588 if test "X${COLLECT_NAMES+set}" != Xset; then
6589 COLLECT_NAMES=
6590 export COLLECT_NAMES
6591 fi
6592 ;;
6593 esac
6594
6595 # Sed substitution that helps us do robust quoting. It backslashifies
6596 # metacharacters that are still active within double-quoted strings.
6597 Xsed='sed -e 1s/^X//'
6598 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6599
6600 # Same as above, but do not quote variable references.
6601 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6602
6603 # Sed substitution to delay expansion of an escaped shell variable in a
6604 # double_quote_subst'ed string.
6605 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6606
6607 # Sed substitution to avoid accidental globbing in evaled expressions
6608 no_glob_subst='s/\*/\\\*/g'
6609
6610 # Constants:
6611 rm="rm -f"
6612
6613 # Global variables:
6614 default_ofile=libtool
6615 can_build_shared=yes
6616
6617 # All known linkers require a `.a' archive for static linking (except MSVC,
6618 # which needs '.lib').
6619 libext=a
6620 ltmain="$ac_aux_dir/ltmain.sh"
6621 ofile="$default_ofile"
6622 with_gnu_ld="$lt_cv_prog_gnu_ld"
6623
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}ar; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_prog_AR+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632 if test -n "$AR"; then
6633 ac_cv_prog_AR="$AR" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_AR="${ac_tool_prefix}ar"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 AR=$ac_cv_prog_AR
6653 if test -n "$AR"; then
6654 { echo "$as_me:$LINENO: result: $AR" >&5
6655 echo "${ECHO_T}$AR" >&6; }
6656 else
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6659 fi
6660
6661
6662 fi
6663 if test -z "$ac_cv_prog_AR"; then
6664 ac_ct_AR=$AR
6665 # Extract the first word of "ar", so it can be a program name with args.
6666 set dummy ar; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672 if test -n "$ac_ct_AR"; then
6673 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_AR="ar"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6693 if test -n "$ac_ct_AR"; then
6694 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6695 echo "${ECHO_T}$ac_ct_AR" >&6; }
6696 else
6697 { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6699 fi
6700
6701 if test "x$ac_ct_AR" = x; then
6702 AR="false"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet. If you think this
6708 configuration is useful to you, please write to [email protected]." >&5
6709 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6710 whose name does not start with the host triplet. If you think this
6711 configuration is useful to you, please write to [email protected]." >&2;}
6712 ac_tool_warned=yes ;;
6713 esac
6714 AR=$ac_ct_AR
6715 fi
6716 else
6717 AR="$ac_cv_prog_AR"
6718 fi
6719
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_prog_RANLIB+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728 if test -n "$RANLIB"; then
6729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 RANLIB=$ac_cv_prog_RANLIB
6749 if test -n "$RANLIB"; then
6750 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6751 echo "${ECHO_T}$RANLIB" >&6; }
6752 else
6753 { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6755 fi
6756
6757
6758 fi
6759 if test -z "$ac_cv_prog_RANLIB"; then
6760 ac_ct_RANLIB=$RANLIB
6761 # Extract the first word of "ranlib", so it can be a program name with args.
6762 set dummy ranlib; ac_word=$2
6763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768 if test -n "$ac_ct_RANLIB"; then
6769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_RANLIB="ranlib"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6789 if test -n "$ac_ct_RANLIB"; then
6790 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6791 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6792 else
6793 { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6795 fi
6796
6797 if test "x$ac_ct_RANLIB" = x; then
6798 RANLIB=":"
6799 else
6800 case $cross_compiling:$ac_tool_warned in
6801 yes:)
6802 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet. If you think this
6804 configuration is useful to you, please write to [email protected]." >&5
6805 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6806 whose name does not start with the host triplet. If you think this
6807 configuration is useful to you, please write to [email protected]." >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810 RANLIB=$ac_ct_RANLIB
6811 fi
6812 else
6813 RANLIB="$ac_cv_prog_RANLIB"
6814 fi
6815
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}strip; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_STRIP+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 if test -n "$STRIP"; then
6825 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 STRIP=$ac_cv_prog_STRIP
6845 if test -n "$STRIP"; then
6846 { echo "$as_me:$LINENO: result: $STRIP" >&5
6847 echo "${ECHO_T}$STRIP" >&6; }
6848 else
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6851 fi
6852
6853
6854 fi
6855 if test -z "$ac_cv_prog_STRIP"; then
6856 ac_ct_STRIP=$STRIP
6857 # Extract the first word of "strip", so it can be a program name with args.
6858 set dummy strip; ac_word=$2
6859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 if test -n "$ac_ct_STRIP"; then
6865 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_prog_ac_ct_STRIP="strip"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6885 if test -n "$ac_ct_STRIP"; then
6886 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6887 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6888 else
6889 { echo "$as_me:$LINENO: result: no" >&5
6890 echo "${ECHO_T}no" >&6; }
6891 fi
6892
6893 if test "x$ac_ct_STRIP" = x; then
6894 STRIP=":"
6895 else
6896 case $cross_compiling:$ac_tool_warned in
6897 yes:)
6898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet. If you think this
6900 configuration is useful to you, please write to [email protected]." >&5
6901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6902 whose name does not start with the host triplet. If you think this
6903 configuration is useful to you, please write to [email protected]." >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906 STRIP=$ac_ct_STRIP
6907 fi
6908 else
6909 STRIP="$ac_cv_prog_STRIP"
6910 fi
6911
6912
6913 old_CC="$CC"
6914 old_CFLAGS="$CFLAGS"
6915
6916 # Set sane defaults for various variables
6917 test -z "$AR" && AR=ar
6918 test -z "$AR_FLAGS" && AR_FLAGS=cru
6919 test -z "$AS" && AS=as
6920 test -z "$CC" && CC=cc
6921 test -z "$LTCC" && LTCC=$CC
6922 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6923 test -z "$DLLTOOL" && DLLTOOL=dlltool
6924 test -z "$LD" && LD=ld
6925 test -z "$LN_S" && LN_S="ln -s"
6926 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6927 test -z "$NM" && NM=nm
6928 test -z "$SED" && SED=sed
6929 test -z "$OBJDUMP" && OBJDUMP=objdump
6930 test -z "$RANLIB" && RANLIB=:
6931 test -z "$STRIP" && STRIP=:
6932 test -z "$ac_objext" && ac_objext=o
6933
6934 # Determine commands to create old-style static archives.
6935 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6936 old_postinstall_cmds='chmod 644 $oldlib'
6937 old_postuninstall_cmds=
6938
6939 if test -n "$RANLIB"; then
6940 case $host_os in
6941 openbsd*)
6942 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6943 ;;
6944 *)
6945 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6946 ;;
6947 esac
6948 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6949 fi
6950
6951 for cc_temp in $compiler""; do
6952 case $cc_temp in
6953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6955 \-*) ;;
6956 *) break;;
6957 esac
6958 done
6959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6960
6961
6962 # Only perform the check for file, if the check method requires it
6963 case $deplibs_check_method in
6964 file_magic*)
6965 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6966 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6967 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6968 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 case $MAGIC_CMD in
6972 [\\/*] | ?:[\\/]*)
6973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6974 ;;
6975 *)
6976 lt_save_MAGIC_CMD="$MAGIC_CMD"
6977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6978 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6979 for ac_dir in $ac_dummy; do
6980 IFS="$lt_save_ifs"
6981 test -z "$ac_dir" && ac_dir=.
6982 if test -f $ac_dir/${ac_tool_prefix}file; then
6983 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6984 if test -n "$file_magic_test_file"; then
6985 case $deplibs_check_method in
6986 "file_magic "*)
6987 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6990 $EGREP "$file_magic_regex" > /dev/null; then
6991 :
6992 else
6993 cat <<EOF 1>&2
6994
6995 *** Warning: the command libtool uses to detect shared libraries,
6996 *** $file_magic_cmd, produces output that libtool cannot recognize.
6997 *** The result is that libtool may fail to recognize shared libraries
6998 *** as such. This will affect the creation of libtool libraries that
6999 *** depend on shared libraries, but programs linked with such libtool
7000 *** libraries will work regardless of this problem. Nevertheless, you
7001 *** may want to report the problem to your system manager and/or to
7002 *** [email protected]
7003
7004 EOF
7005 fi ;;
7006 esac
7007 fi
7008 break
7009 fi
7010 done
7011 IFS="$lt_save_ifs"
7012 MAGIC_CMD="$lt_save_MAGIC_CMD"
7013 ;;
7014 esac
7015 fi
7016
7017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7018 if test -n "$MAGIC_CMD"; then
7019 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7020 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7021 else
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7024 fi
7025
7026 if test -z "$lt_cv_path_MAGIC_CMD"; then
7027 if test -n "$ac_tool_prefix"; then
7028 { echo "$as_me:$LINENO: checking for file" >&5
7029 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7030 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033 case $MAGIC_CMD in
7034 [\\/*] | ?:[\\/]*)
7035 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7036 ;;
7037 *)
7038 lt_save_MAGIC_CMD="$MAGIC_CMD"
7039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7040 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7041 for ac_dir in $ac_dummy; do
7042 IFS="$lt_save_ifs"
7043 test -z "$ac_dir" && ac_dir=.
7044 if test -f $ac_dir/file; then
7045 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7046 if test -n "$file_magic_test_file"; then
7047 case $deplibs_check_method in
7048 "file_magic "*)
7049 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7050 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7051 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7052 $EGREP "$file_magic_regex" > /dev/null; then
7053 :
7054 else
7055 cat <<EOF 1>&2
7056
7057 *** Warning: the command libtool uses to detect shared libraries,
7058 *** $file_magic_cmd, produces output that libtool cannot recognize.
7059 *** The result is that libtool may fail to recognize shared libraries
7060 *** as such. This will affect the creation of libtool libraries that
7061 *** depend on shared libraries, but programs linked with such libtool
7062 *** libraries will work regardless of this problem. Nevertheless, you
7063 *** may want to report the problem to your system manager and/or to
7064 *** [email protected]
7065
7066 EOF
7067 fi ;;
7068 esac
7069 fi
7070 break
7071 fi
7072 done
7073 IFS="$lt_save_ifs"
7074 MAGIC_CMD="$lt_save_MAGIC_CMD"
7075 ;;
7076 esac
7077 fi
7078
7079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7080 if test -n "$MAGIC_CMD"; then
7081 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7082 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7083 else
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7086 fi
7087
7088 else
7089 MAGIC_CMD=:
7090 fi
7091 fi
7092
7093 fi
7094 ;;
7095 esac
7096
7097 enable_dlopen=no
7098 enable_win32_dll=no
7099
7100 # Check whether --enable-libtool-lock was given.
7101 if test "${enable_libtool_lock+set}" = set; then
7102 enableval=$enable_libtool_lock;
7103 fi
7104
7105 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7106
7107
7108 # Check whether --with-pic was given.
7109 if test "${with_pic+set}" = set; then
7110 withval=$with_pic; pic_mode="$withval"
7111 else
7112 pic_mode=default
7113 fi
7114
7115 test -z "$pic_mode" && pic_mode=default
7116
7117 # Use C for the default configuration in the libtool script
7118 tagname=
7119 lt_save_CC="$CC"
7120 ac_ext=c
7121 ac_cpp='$CPP $CPPFLAGS'
7122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125
7126
7127 # Source file extension for C test sources.
7128 ac_ext=c
7129
7130 # Object file extension for compiled C test sources.
7131 objext=o
7132 objext=$objext
7133
7134 # Code to be used in simple compile tests
7135 lt_simple_compile_test_code="int some_variable = 0;\n"
7136
7137 # Code to be used in simple link tests
7138 lt_simple_link_test_code='int main(){return(0);}\n'
7139
7140
7141 # If no C compiler was specified, use CC.
7142 LTCC=${LTCC-"$CC"}
7143
7144 # If no C compiler flags were specified, use CFLAGS.
7145 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7146
7147 # Allow CC to be a program name with arguments.
7148 compiler=$CC
7149
7150
7151 # save warnings/boilerplate of simple test code
7152 ac_outfile=conftest.$ac_objext
7153 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7154 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7155 _lt_compiler_boilerplate=`cat conftest.err`
7156 $rm conftest*
7157
7158 ac_outfile=conftest.$ac_objext
7159 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7160 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7161 _lt_linker_boilerplate=`cat conftest.err`
7162 $rm conftest*
7163
7164
7165
7166 lt_prog_compiler_no_builtin_flag=
7167
7168 if test "$GCC" = yes; then
7169 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7170
7171
7172 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7173 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7174 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177 lt_cv_prog_compiler_rtti_exceptions=no
7178 ac_outfile=conftest.$ac_objext
7179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7180 lt_compiler_flag="-fno-rtti -fno-exceptions"
7181 # Insert the option either (1) after the last *FLAGS variable, or
7182 # (2) before a word containing "conftest.", or (3) at the end.
7183 # Note that $ac_compile itself does not contain backslashes and begins
7184 # with a dollar sign (not a hyphen), so the echo should work correctly.
7185 # The option is referenced via a variable to avoid confusing sed.
7186 lt_compile=`echo "$ac_compile" | $SED \
7187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7189 -e 's:$: $lt_compiler_flag:'`
7190 (eval echo "\"\$as_me:7190: $lt_compile\"" >&5)
7191 (eval "$lt_compile" 2>conftest.err)
7192 ac_status=$?
7193 cat conftest.err >&5
7194 echo "$as_me:7194: \$? = $ac_status" >&5
7195 if (exit $ac_status) && test -s "$ac_outfile"; then
7196 # The compiler can only warn and ignore the option if not recognized
7197 # So say no if there are warnings other than the usual output.
7198 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7201 lt_cv_prog_compiler_rtti_exceptions=yes
7202 fi
7203 fi
7204 $rm conftest*
7205
7206 fi
7207 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7208 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7209
7210 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7211 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7212 else
7213 :
7214 fi
7215
7216 fi
7217
7218 lt_prog_compiler_wl=
7219 lt_prog_compiler_pic=
7220 lt_prog_compiler_static=
7221
7222 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7223 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7224
7225 if test "$GCC" = yes; then
7226 lt_prog_compiler_wl='-Wl,'
7227 lt_prog_compiler_static='-static'
7228
7229 case $host_os in
7230 aix*)
7231 # All AIX code is PIC.
7232 if test "$host_cpu" = ia64; then
7233 # AIX 5 now supports IA64 processor
7234 lt_prog_compiler_static='-Bstatic'
7235 fi
7236 ;;
7237
7238 amigaos*)
7239 # FIXME: we need at least 68020 code to build shared libraries, but
7240 # adding the `-m68020' flag to GCC prevents building anything better,
7241 # like `-m68040'.
7242 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7243 ;;
7244
7245 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7246 # PIC is the default for these OSes.
7247 ;;
7248
7249 mingw* | pw32* | os2*)
7250 # This hack is so that the source file can tell whether it is being
7251 # built for inclusion in a dll (and should export symbols for example).
7252 lt_prog_compiler_pic='-DDLL_EXPORT'
7253 ;;
7254
7255 darwin* | rhapsody*)
7256 # PIC is the default on this platform
7257 # Common symbols not allowed in MH_DYLIB files
7258 lt_prog_compiler_pic='-fno-common'
7259 ;;
7260
7261 interix3*)
7262 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7263 # Instead, we relocate shared libraries at runtime.
7264 ;;
7265
7266 msdosdjgpp*)
7267 # Just because we use GCC doesn't mean we suddenly get shared libraries
7268 # on systems that don't support them.
7269 lt_prog_compiler_can_build_shared=no
7270 enable_shared=no
7271 ;;
7272
7273 sysv4*MP*)
7274 if test -d /usr/nec; then
7275 lt_prog_compiler_pic=-Kconform_pic
7276 fi
7277 ;;
7278
7279 hpux*)
7280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7281 # not for PA HP-UX.
7282 case $host_cpu in
7283 hppa*64*|ia64*)
7284 # +Z the default
7285 ;;
7286 *)
7287 lt_prog_compiler_pic='-fPIC'
7288 ;;
7289 esac
7290 ;;
7291
7292 *)
7293 lt_prog_compiler_pic='-fPIC'
7294 ;;
7295 esac
7296 else
7297 # PORTME Check for flag to pass linker flags through the system compiler.
7298 case $host_os in
7299 aix*)
7300 lt_prog_compiler_wl='-Wl,'
7301 if test "$host_cpu" = ia64; then
7302 # AIX 5 now supports IA64 processor
7303 lt_prog_compiler_static='-Bstatic'
7304 else
7305 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7306 fi
7307 ;;
7308 darwin*)
7309 # PIC is the default on this platform
7310 # Common symbols not allowed in MH_DYLIB files
7311 case $cc_basename in
7312 xlc*)
7313 lt_prog_compiler_pic='-qnocommon'
7314 lt_prog_compiler_wl='-Wl,'
7315 ;;
7316 esac
7317 ;;
7318
7319 mingw* | pw32* | os2*)
7320 # This hack is so that the source file can tell whether it is being
7321 # built for inclusion in a dll (and should export symbols for example).
7322 lt_prog_compiler_pic='-DDLL_EXPORT'
7323 ;;
7324
7325 hpux9* | hpux10* | hpux11*)
7326 lt_prog_compiler_wl='-Wl,'
7327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7328 # not for PA HP-UX.
7329 case $host_cpu in
7330 hppa*64*|ia64*)
7331 # +Z the default
7332 ;;
7333 *)
7334 lt_prog_compiler_pic='+Z'
7335 ;;
7336 esac
7337 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7338 lt_prog_compiler_static='${wl}-a ${wl}archive'
7339 ;;
7340
7341 irix5* | irix6* | nonstopux*)
7342 lt_prog_compiler_wl='-Wl,'
7343 # PIC (with -KPIC) is the default.
7344 lt_prog_compiler_static='-non_shared'
7345 ;;
7346
7347 newsos6)
7348 lt_prog_compiler_pic='-KPIC'
7349 lt_prog_compiler_static='-Bstatic'
7350 ;;
7351
7352 linux*)
7353 case $cc_basename in
7354 icc* | ecc*)
7355 lt_prog_compiler_wl='-Wl,'
7356 lt_prog_compiler_pic='-KPIC'
7357 lt_prog_compiler_static='-static'
7358 ;;
7359 pgcc* | pgf77* | pgf90* | pgf95*)
7360 # Portland Group compilers (*not* the Pentium gcc compiler,
7361 # which looks to be a dead project)
7362 lt_prog_compiler_wl='-Wl,'
7363 lt_prog_compiler_pic='-fpic'
7364 lt_prog_compiler_static='-Bstatic'
7365 ;;
7366 ccc*)
7367 lt_prog_compiler_wl='-Wl,'
7368 # All Alpha code is PIC.
7369 lt_prog_compiler_static='-non_shared'
7370 ;;
7371 esac
7372 ;;
7373
7374 osf3* | osf4* | osf5*)
7375 lt_prog_compiler_wl='-Wl,'
7376 # All OSF/1 code is PIC.
7377 lt_prog_compiler_static='-non_shared'
7378 ;;
7379
7380 solaris*)
7381 lt_prog_compiler_pic='-KPIC'
7382 lt_prog_compiler_static='-Bstatic'
7383 case $cc_basename in
7384 f77* | f90* | f95*)
7385 lt_prog_compiler_wl='-Qoption ld ';;
7386 *)
7387 lt_prog_compiler_wl='-Wl,';;
7388 esac
7389 ;;
7390
7391 sunos4*)
7392 lt_prog_compiler_wl='-Qoption ld '
7393 lt_prog_compiler_pic='-PIC'
7394 lt_prog_compiler_static='-Bstatic'
7395 ;;
7396
7397 sysv4 | sysv4.2uw2* | sysv4.3*)
7398 lt_prog_compiler_wl='-Wl,'
7399 lt_prog_compiler_pic='-KPIC'
7400 lt_prog_compiler_static='-Bstatic'
7401 ;;
7402
7403 sysv4*MP*)
7404 if test -d /usr/nec ;then
7405 lt_prog_compiler_pic='-Kconform_pic'
7406 lt_prog_compiler_static='-Bstatic'
7407 fi
7408 ;;
7409
7410 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7411 lt_prog_compiler_wl='-Wl,'
7412 lt_prog_compiler_pic='-KPIC'
7413 lt_prog_compiler_static='-Bstatic'
7414 ;;
7415
7416 unicos*)
7417 lt_prog_compiler_wl='-Wl,'
7418 lt_prog_compiler_can_build_shared=no
7419 ;;
7420
7421 uts4*)
7422 lt_prog_compiler_pic='-pic'
7423 lt_prog_compiler_static='-Bstatic'
7424 ;;
7425
7426 *)
7427 lt_prog_compiler_can_build_shared=no
7428 ;;
7429 esac
7430 fi
7431
7432 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7433 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7434
7435 #
7436 # Check to make sure the PIC flag actually works.
7437 #
7438 if test -n "$lt_prog_compiler_pic"; then
7439
7440 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7441 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7442 if test "${lt_prog_compiler_pic_works+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445 lt_prog_compiler_pic_works=no
7446 ac_outfile=conftest.$ac_objext
7447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7448 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7449 # Insert the option either (1) after the last *FLAGS variable, or
7450 # (2) before a word containing "conftest.", or (3) at the end.
7451 # Note that $ac_compile itself does not contain backslashes and begins
7452 # with a dollar sign (not a hyphen), so the echo should work correctly.
7453 # The option is referenced via a variable to avoid confusing sed.
7454 lt_compile=`echo "$ac_compile" | $SED \
7455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7457 -e 's:$: $lt_compiler_flag:'`
7458 (eval echo "\"\$as_me:7458: $lt_compile\"" >&5)
7459 (eval "$lt_compile" 2>conftest.err)
7460 ac_status=$?
7461 cat conftest.err >&5
7462 echo "$as_me:7462: \$? = $ac_status" >&5
7463 if (exit $ac_status) && test -s "$ac_outfile"; then
7464 # The compiler can only warn and ignore the option if not recognized
7465 # So say no if there are warnings other than the usual output.
7466 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7469 lt_prog_compiler_pic_works=yes
7470 fi
7471 fi
7472 $rm conftest*
7473
7474 fi
7475 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7476 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7477
7478 if test x"$lt_prog_compiler_pic_works" = xyes; then
7479 case $lt_prog_compiler_pic in
7480 "" | " "*) ;;
7481 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7482 esac
7483 else
7484 lt_prog_compiler_pic=
7485 lt_prog_compiler_can_build_shared=no
7486 fi
7487
7488 fi
7489 case $host_os in
7490 # For platforms which do not support PIC, -DPIC is meaningless:
7491 *djgpp*)
7492 lt_prog_compiler_pic=
7493 ;;
7494 *)
7495 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7496 ;;
7497 esac
7498
7499 #
7500 # Check to make sure the static flag actually works.
7501 #
7502 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7503 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7504 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7505 if test "${lt_prog_compiler_static_works+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508 lt_prog_compiler_static_works=no
7509 save_LDFLAGS="$LDFLAGS"
7510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7511 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7513 # The linker can only warn and ignore the option if not recognized
7514 # So say no if there are warnings
7515 if test -s conftest.err; then
7516 # Append any errors to the config.log.
7517 cat conftest.err 1>&5
7518 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7520 if diff conftest.exp conftest.er2 >/dev/null; then
7521 lt_prog_compiler_static_works=yes
7522 fi
7523 else
7524 lt_prog_compiler_static_works=yes
7525 fi
7526 fi
7527 $rm conftest*
7528 LDFLAGS="$save_LDFLAGS"
7529
7530 fi
7531 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7532 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7533
7534 if test x"$lt_prog_compiler_static_works" = xyes; then
7535 :
7536 else
7537 lt_prog_compiler_static=
7538 fi
7539
7540
7541 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7542 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7543 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546 lt_cv_prog_compiler_c_o=no
7547 $rm -r conftest 2>/dev/null
7548 mkdir conftest
7549 cd conftest
7550 mkdir out
7551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7552
7553 lt_compiler_flag="-o out/conftest2.$ac_objext"
7554 # Insert the option either (1) after the last *FLAGS variable, or
7555 # (2) before a word containing "conftest.", or (3) at the end.
7556 # Note that $ac_compile itself does not contain backslashes and begins
7557 # with a dollar sign (not a hyphen), so the echo should work correctly.
7558 lt_compile=`echo "$ac_compile" | $SED \
7559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7561 -e 's:$: $lt_compiler_flag:'`
7562 (eval echo "\"\$as_me:7562: $lt_compile\"" >&5)
7563 (eval "$lt_compile" 2>out/conftest.err)
7564 ac_status=$?
7565 cat out/conftest.err >&5
7566 echo "$as_me:7566: \$? = $ac_status" >&5
7567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7568 then
7569 # The compiler can only warn and ignore the option if not recognized
7570 # So say no if there are warnings
7571 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7574 lt_cv_prog_compiler_c_o=yes
7575 fi
7576 fi
7577 chmod u+w . 2>&5
7578 $rm conftest*
7579 # SGI C++ compiler will create directory out/ii_files/ for
7580 # template instantiation
7581 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7582 $rm out/* && rmdir out
7583 cd ..
7584 rmdir conftest
7585 $rm conftest*
7586
7587 fi
7588 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7589 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7590
7591
7592 hard_links="nottested"
7593 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7594 # do not overwrite the value of need_locks provided by the user
7595 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7596 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7597 hard_links=yes
7598 $rm conftest*
7599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7600 touch conftest.a
7601 ln conftest.a conftest.b 2>&5 || hard_links=no
7602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7603 { echo "$as_me:$LINENO: result: $hard_links" >&5
7604 echo "${ECHO_T}$hard_links" >&6; }
7605 if test "$hard_links" = no; then
7606 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7607 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7608 need_locks=warn
7609 fi
7610 else
7611 need_locks=no
7612 fi
7613
7614 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7616
7617 runpath_var=
7618 allow_undefined_flag=
7619 enable_shared_with_static_runtimes=no
7620 archive_cmds=
7621 archive_expsym_cmds=
7622 old_archive_From_new_cmds=
7623 old_archive_from_expsyms_cmds=
7624 export_dynamic_flag_spec=
7625 whole_archive_flag_spec=
7626 thread_safe_flag_spec=
7627 hardcode_libdir_flag_spec=
7628 hardcode_libdir_flag_spec_ld=
7629 hardcode_libdir_separator=
7630 hardcode_direct=no
7631 hardcode_minus_L=no
7632 hardcode_shlibpath_var=unsupported
7633 link_all_deplibs=unknown
7634 hardcode_automatic=no
7635 module_cmds=
7636 module_expsym_cmds=
7637 always_export_symbols=no
7638 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7639 # include_expsyms should be a list of space-separated symbols to be *always*
7640 # included in the symbol list
7641 include_expsyms=
7642 # exclude_expsyms can be an extended regexp of symbols to exclude
7643 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7644 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7645 # as well as any symbol that contains `d'.
7646 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7647 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7648 # platforms (ab)use it in PIC code, but their linkers get confused if
7649 # the symbol is explicitly referenced. Since portable code cannot
7650 # rely on this symbol name, it's probably fine to never include it in
7651 # preloaded symbol tables.
7652 extract_expsyms_cmds=
7653 # Just being paranoid about ensuring that cc_basename is set.
7654 for cc_temp in $compiler""; do
7655 case $cc_temp in
7656 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7657 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7658 \-*) ;;
7659 *) break;;
7660 esac
7661 done
7662 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7663
7664 case $host_os in
7665 cygwin* | mingw* | pw32*)
7666 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7667 # When not using gcc, we currently assume that we are using
7668 # Microsoft Visual C++.
7669 if test "$GCC" != yes; then
7670 with_gnu_ld=no
7671 fi
7672 ;;
7673 interix*)
7674 # we just hope/assume this is gcc and not c89 (= MSVC++)
7675 with_gnu_ld=yes
7676 ;;
7677 openbsd*)
7678 with_gnu_ld=no
7679 ;;
7680 esac
7681
7682 ld_shlibs=yes
7683 if test "$with_gnu_ld" = yes; then
7684 # If archive_cmds runs LD, not CC, wlarc should be empty
7685 wlarc='${wl}'
7686
7687 # Set some defaults for GNU ld with shared library support. These
7688 # are reset later if shared libraries are not supported. Putting them
7689 # here allows them to be overridden if necessary.
7690 runpath_var=LD_RUN_PATH
7691 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7692 export_dynamic_flag_spec='${wl}--export-dynamic'
7693 # ancient GNU ld didn't support --whole-archive et. al.
7694 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7695 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7696 else
7697 whole_archive_flag_spec=
7698 fi
7699 supports_anon_versioning=no
7700 case `$LD -v 2>/dev/null` in
7701 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7702 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7703 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7704 *\ 2.11.*) ;; # other 2.11 versions
7705 *) supports_anon_versioning=yes ;;
7706 esac
7707
7708 # See if GNU ld supports shared libraries.
7709 case $host_os in
7710 aix3* | aix4* | aix5*)
7711 # On AIX/PPC, the GNU linker is very broken
7712 if test "$host_cpu" != ia64; then
7713 ld_shlibs=no
7714 cat <<EOF 1>&2
7715
7716 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7717 *** to be unable to reliably create shared libraries on AIX.
7718 *** Therefore, libtool is disabling shared libraries support. If you
7719 *** really care for shared libraries, you may want to modify your PATH
7720 *** so that a non-GNU linker is found, and then restart.
7721
7722 EOF
7723 fi
7724 ;;
7725
7726 amigaos*)
7727 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)'
7728 hardcode_libdir_flag_spec='-L$libdir'
7729 hardcode_minus_L=yes
7730
7731 # Samuel A. Falvo II <[email protected]> reports
7732 # that the semantics of dynamic libraries on AmigaOS, at least up
7733 # to version 4, is to share data among multiple programs linked
7734 # with the same dynamic library. Since this doesn't match the
7735 # behavior of shared libraries on other platforms, we can't use
7736 # them.
7737 ld_shlibs=no
7738 ;;
7739
7740 beos*)
7741 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7742 allow_undefined_flag=unsupported
7743 # Joseph Beckenbach <[email protected]> says some releases of gcc
7744 # support --undefined. This deserves some investigation. FIXME
7745 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7746 else
7747 ld_shlibs=no
7748 fi
7749 ;;
7750
7751 cygwin* | mingw* | pw32*)
7752 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7753 # as there is no search path for DLLs.
7754 hardcode_libdir_flag_spec='-L$libdir'
7755 allow_undefined_flag=unsupported
7756 always_export_symbols=no
7757 enable_shared_with_static_runtimes=yes
7758 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7759
7760 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7762 # If the export-symbols file already is a .def file (1st line
7763 # is EXPORTS), use it as is; otherwise, prepend...
7764 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7765 cp $export_symbols $output_objdir/$soname.def;
7766 else
7767 echo EXPORTS > $output_objdir/$soname.def;
7768 cat $export_symbols >> $output_objdir/$soname.def;
7769 fi~
7770 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7771 else
7772 ld_shlibs=no
7773 fi
7774 ;;
7775
7776 interix3*)
7777 hardcode_direct=no
7778 hardcode_shlibpath_var=no
7779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7780 export_dynamic_flag_spec='${wl}-E'
7781 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7782 # Instead, shared libraries are loaded at an image base (0x10000000 by
7783 # default) and relocated if they conflict, which is a slow very memory
7784 # consuming and fragmenting process. To avoid this, we pick a random,
7785 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7786 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7787 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7788 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'
7789 ;;
7790
7791 linux*)
7792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7793 tmp_addflag=
7794 case $cc_basename,$host_cpu in
7795 pgcc*) # Portland Group C compiler
7796 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'
7797 tmp_addflag=' $pic_flag'
7798 ;;
7799 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7800 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'
7801 tmp_addflag=' $pic_flag -Mnomain' ;;
7802 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7803 tmp_addflag=' -i_dynamic' ;;
7804 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7805 tmp_addflag=' -i_dynamic -nofor_main' ;;
7806 ifc* | ifort*) # Intel Fortran compiler
7807 tmp_addflag=' -nofor_main' ;;
7808 esac
7809 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7810
7811 if test $supports_anon_versioning = yes; then
7812 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7813 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7814 $echo "local: *; };" >> $output_objdir/$libname.ver~
7815 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7816 fi
7817 else
7818 ld_shlibs=no
7819 fi
7820 ;;
7821
7822 netbsd*)
7823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7824 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7825 wlarc=
7826 else
7827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7829 fi
7830 ;;
7831
7832 solaris*)
7833 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7834 ld_shlibs=no
7835 cat <<EOF 1>&2
7836
7837 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7838 *** create shared libraries on Solaris systems. Therefore, libtool
7839 *** is disabling shared libraries support. We urge you to upgrade GNU
7840 *** binutils to release 2.9.1 or newer. Another option is to modify
7841 *** your PATH or compiler configuration so that the native linker is
7842 *** used, and then restart.
7843
7844 EOF
7845 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7847 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7848 else
7849 ld_shlibs=no
7850 fi
7851 ;;
7852
7853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7854 case `$LD -v 2>&1` in
7855 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7856 ld_shlibs=no
7857 cat <<_LT_EOF 1>&2
7858
7859 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7860 *** reliably create shared libraries on SCO systems. Therefore, libtool
7861 *** is disabling shared libraries support. We urge you to upgrade GNU
7862 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7863 *** your PATH or compiler configuration so that the native linker is
7864 *** used, and then restart.
7865
7866 _LT_EOF
7867 ;;
7868 *)
7869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7870 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7872 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7873 else
7874 ld_shlibs=no
7875 fi
7876 ;;
7877 esac
7878 ;;
7879
7880 sunos4*)
7881 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7882 wlarc=
7883 hardcode_direct=yes
7884 hardcode_shlibpath_var=no
7885 ;;
7886
7887 *)
7888 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7891 else
7892 ld_shlibs=no
7893 fi
7894 ;;
7895 esac
7896
7897 if test "$ld_shlibs" = no; then
7898 runpath_var=
7899 hardcode_libdir_flag_spec=
7900 export_dynamic_flag_spec=
7901 whole_archive_flag_spec=
7902 fi
7903 else
7904 # PORTME fill in a description of your system's linker (not GNU ld)
7905 case $host_os in
7906 aix3*)
7907 allow_undefined_flag=unsupported
7908 always_export_symbols=yes
7909 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'
7910 # Note: this linker hardcodes the directories in LIBPATH if there
7911 # are no directories specified by -L.
7912 hardcode_minus_L=yes
7913 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7914 # Neither direct hardcoding nor static linking is supported with a
7915 # broken collect2.
7916 hardcode_direct=unsupported
7917 fi
7918 ;;
7919
7920 aix4* | aix5*)
7921 if test "$host_cpu" = ia64; then
7922 # On IA64, the linker does run time linking by default, so we don't
7923 # have to do anything special.
7924 aix_use_runtimelinking=no
7925 exp_sym_flag='-Bexport'
7926 no_entry_flag=""
7927 else
7928 # If we're using GNU nm, then we don't want the "-C" option.
7929 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7930 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7931 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'
7932 else
7933 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'
7934 fi
7935 aix_use_runtimelinking=no
7936
7937 # Test if we are trying to use run time linking or normal
7938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7939 # need to do runtime linking.
7940 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7941 for ld_flag in $LDFLAGS; do
7942 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7943 aix_use_runtimelinking=yes
7944 break
7945 fi
7946 done
7947 ;;
7948 esac
7949
7950 exp_sym_flag='-bexport'
7951 no_entry_flag='-bnoentry'
7952 fi
7953
7954 # When large executables or shared objects are built, AIX ld can
7955 # have problems creating the table of contents. If linking a library
7956 # or program results in "error TOC overflow" add -mminimal-toc to
7957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7959
7960 archive_cmds=''
7961 hardcode_direct=yes
7962 hardcode_libdir_separator=':'
7963 link_all_deplibs=yes
7964
7965 if test "$GCC" = yes; then
7966 case $host_os in aix4.[012]|aix4.[012].*)
7967 # We only want to do this on AIX 4.2 and lower, the check
7968 # below for broken collect2 doesn't work under 4.3+
7969 collect2name=`${CC} -print-prog-name=collect2`
7970 if test -f "$collect2name" && \
7971 strings "$collect2name" | grep resolve_lib_name >/dev/null
7972 then
7973 # We have reworked collect2
7974 hardcode_direct=yes
7975 else
7976 # We have old collect2
7977 hardcode_direct=unsupported
7978 # It fails to find uninstalled libraries when the uninstalled
7979 # path is not listed in the libpath. Setting hardcode_minus_L
7980 # to unsupported forces relinking
7981 hardcode_minus_L=yes
7982 hardcode_libdir_flag_spec='-L$libdir'
7983 hardcode_libdir_separator=
7984 fi
7985 ;;
7986 esac
7987 shared_flag='-shared'
7988 if test "$aix_use_runtimelinking" = yes; then
7989 shared_flag="$shared_flag "'${wl}-G'
7990 fi
7991 else
7992 # not using gcc
7993 if test "$host_cpu" = ia64; then
7994 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7995 # chokes on -Wl,-G. The following line is correct:
7996 shared_flag='-G'
7997 else
7998 if test "$aix_use_runtimelinking" = yes; then
7999 shared_flag='${wl}-G'
8000 else
8001 shared_flag='${wl}-bM:SRE'
8002 fi
8003 fi
8004 fi
8005
8006 # It seems that -bexpall does not export symbols beginning with
8007 # underscore (_), so it is better to generate a list of symbols to export.
8008 always_export_symbols=yes
8009 if test "$aix_use_runtimelinking" = yes; then
8010 # Warning - without using the other runtime loading flags (-brtl),
8011 # -berok will link without error, but may produce a broken library.
8012 allow_undefined_flag='-berok'
8013 # Determine the default libpath from the value encoded in an empty executable.
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020
8021 int
8022 main ()
8023 {
8024
8025 ;
8026 return 0;
8027 }
8028 _ACEOF
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (ac_try="$ac_link"
8031 case "(($ac_try" in
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8034 esac
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_link") 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest$ac_exeext &&
8046 $as_test_x conftest$ac_exeext; then
8047
8048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8049 }'`
8050 # Check for a 64-bit object if we didn't find anything.
8051 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8052 }'`; fi
8053 else
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057
8058 fi
8059
8060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8061 conftest$ac_exeext conftest.$ac_ext
8062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8063
8064 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8065 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8066 else
8067 if test "$host_cpu" = ia64; then
8068 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8069 allow_undefined_flag="-z nodefs"
8070 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"
8071 else
8072 # Determine the default libpath from the value encoded in an empty executable.
8073 cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h. */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8079
8080 int
8081 main ()
8082 {
8083
8084 ;
8085 return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (ac_try="$ac_link"
8090 case "(($ac_try" in
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8093 esac
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_link") 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest$ac_exeext &&
8105 $as_test_x conftest$ac_exeext; then
8106
8107 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8108 }'`
8109 # Check for a 64-bit object if we didn't find anything.
8110 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8111 }'`; fi
8112 else
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8115
8116
8117 fi
8118
8119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8120 conftest$ac_exeext conftest.$ac_ext
8121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8122
8123 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8124 # Warning - without using the other run time loading flags,
8125 # -berok will link without error, but may produce a broken library.
8126 no_undefined_flag=' ${wl}-bernotok'
8127 allow_undefined_flag=' ${wl}-berok'
8128 # Exported symbols can be pulled into shared objects from archives
8129 whole_archive_flag_spec='$convenience'
8130 archive_cmds_need_lc=yes
8131 # This is similar to how AIX traditionally builds its shared libraries.
8132 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'
8133 fi
8134 fi
8135 ;;
8136
8137 amigaos*)
8138 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)'
8139 hardcode_libdir_flag_spec='-L$libdir'
8140 hardcode_minus_L=yes
8141 # see comment about different semantics on the GNU ld section
8142 ld_shlibs=no
8143 ;;
8144
8145 bsdi[45]*)
8146 export_dynamic_flag_spec=-rdynamic
8147 ;;
8148
8149 cygwin* | mingw* | pw32*)
8150 # When not using gcc, we currently assume that we are using
8151 # Microsoft Visual C++.
8152 # hardcode_libdir_flag_spec is actually meaningless, as there is
8153 # no search path for DLLs.
8154 hardcode_libdir_flag_spec=' '
8155 allow_undefined_flag=unsupported
8156 # Tell ltmain to make .lib files, not .a files.
8157 libext=lib
8158 # Tell ltmain to make .dll files, not .so files.
8159 shrext=".dll"
8160 # FIXME: Setting linknames here is a bad hack.
8161 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8162 # The linker will automatically build a .lib file if we build a DLL.
8163 old_archive_From_new_cmds='true'
8164 # FIXME: Should let the user specify the lib program.
8165 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8166 fix_srcfile_path='`cygpath -w "$srcfile"`'
8167 enable_shared_with_static_runtimes=yes
8168 ;;
8169
8170 darwin* | rhapsody*)
8171 case $host_os in
8172 rhapsody* | darwin1.[012])
8173 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8174 ;;
8175 *) # Darwin 1.3 on
8176 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8177 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8178 else
8179 case ${MACOSX_DEPLOYMENT_TARGET} in
8180 10.[012])
8181 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8182 ;;
8183 10.*)
8184 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8185 ;;
8186 esac
8187 fi
8188 ;;
8189 esac
8190 archive_cmds_need_lc=no
8191 hardcode_direct=no
8192 hardcode_automatic=yes
8193 hardcode_shlibpath_var=unsupported
8194 whole_archive_flag_spec=''
8195 link_all_deplibs=yes
8196 if test "$GCC" = yes ; then
8197 output_verbose_link_cmd='echo'
8198 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8199 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8200 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8201 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8202 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8203 else
8204 case $cc_basename in
8205 xlc*)
8206 output_verbose_link_cmd='echo'
8207 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8208 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8209 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8210 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8211 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8212 ;;
8213 *)
8214 ld_shlibs=no
8215 ;;
8216 esac
8217 fi
8218 ;;
8219
8220 dgux*)
8221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8222 hardcode_libdir_flag_spec='-L$libdir'
8223 hardcode_shlibpath_var=no
8224 ;;
8225
8226 freebsd1*)
8227 ld_shlibs=no
8228 ;;
8229
8230 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8231 # support. Future versions do this automatically, but an explicit c++rt0.o
8232 # does not break anything, and helps significantly (at the cost of a little
8233 # extra space).
8234 freebsd2.2*)
8235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8236 hardcode_libdir_flag_spec='-R$libdir'
8237 hardcode_direct=yes
8238 hardcode_shlibpath_var=no
8239 ;;
8240
8241 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8242 freebsd2*)
8243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8244 hardcode_direct=yes
8245 hardcode_minus_L=yes
8246 hardcode_shlibpath_var=no
8247 ;;
8248
8249 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8250 freebsd* | kfreebsd*-gnu | dragonfly*)
8251 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8252 hardcode_libdir_flag_spec='-R$libdir'
8253 hardcode_direct=yes
8254 hardcode_shlibpath_var=no
8255 ;;
8256
8257 hpux9*)
8258 if test "$GCC" = yes; then
8259 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'
8260 else
8261 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'
8262 fi
8263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8264 hardcode_libdir_separator=:
8265 hardcode_direct=yes
8266
8267 # hardcode_minus_L: Not really in the search PATH,
8268 # but as the default location of the library.
8269 hardcode_minus_L=yes
8270 export_dynamic_flag_spec='${wl}-E'
8271 ;;
8272
8273 hpux10*)
8274 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8275 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8276 else
8277 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8278 fi
8279 if test "$with_gnu_ld" = no; then
8280 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8281 hardcode_libdir_separator=:
8282
8283 hardcode_direct=yes
8284 export_dynamic_flag_spec='${wl}-E'
8285
8286 # hardcode_minus_L: Not really in the search PATH,
8287 # but as the default location of the library.
8288 hardcode_minus_L=yes
8289 fi
8290 ;;
8291
8292 hpux11*)
8293 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8294 case $host_cpu in
8295 hppa*64*)
8296 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8297 ;;
8298 ia64*)
8299 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8300 ;;
8301 *)
8302 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8303 ;;
8304 esac
8305 else
8306 case $host_cpu in
8307 hppa*64*)
8308 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8309 ;;
8310 ia64*)
8311 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8312 ;;
8313 *)
8314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8315 ;;
8316 esac
8317 fi
8318 if test "$with_gnu_ld" = no; then
8319 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8320 hardcode_libdir_separator=:
8321
8322 case $host_cpu in
8323 hppa*64*|ia64*)
8324 hardcode_libdir_flag_spec_ld='+b $libdir'
8325 hardcode_direct=no
8326 hardcode_shlibpath_var=no
8327 ;;
8328 *)
8329 hardcode_direct=yes
8330 export_dynamic_flag_spec='${wl}-E'
8331
8332 # hardcode_minus_L: Not really in the search PATH,
8333 # but as the default location of the library.
8334 hardcode_minus_L=yes
8335 ;;
8336 esac
8337 fi
8338 ;;
8339
8340 irix5* | irix6* | nonstopux*)
8341 if test "$GCC" = yes; then
8342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8343 else
8344 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8345 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8346 fi
8347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8348 hardcode_libdir_separator=:
8349 link_all_deplibs=yes
8350 ;;
8351
8352 netbsd*)
8353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8355 else
8356 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8357 fi
8358 hardcode_libdir_flag_spec='-R$libdir'
8359 hardcode_direct=yes
8360 hardcode_shlibpath_var=no
8361 ;;
8362
8363 newsos6)
8364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8365 hardcode_direct=yes
8366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8367 hardcode_libdir_separator=:
8368 hardcode_shlibpath_var=no
8369 ;;
8370
8371 openbsd*)
8372 hardcode_direct=yes
8373 hardcode_shlibpath_var=no
8374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8376 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8377 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8378 export_dynamic_flag_spec='${wl}-E'
8379 else
8380 case $host_os in
8381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8383 hardcode_libdir_flag_spec='-R$libdir'
8384 ;;
8385 *)
8386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8387 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8388 ;;
8389 esac
8390 fi
8391 ;;
8392
8393 os2*)
8394 hardcode_libdir_flag_spec='-L$libdir'
8395 hardcode_minus_L=yes
8396 allow_undefined_flag=unsupported
8397 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'
8398 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8399 ;;
8400
8401 osf3*)
8402 if test "$GCC" = yes; then
8403 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8404 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8405 else
8406 allow_undefined_flag=' -expect_unresolved \*'
8407 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8408 fi
8409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8410 hardcode_libdir_separator=:
8411 ;;
8412
8413 osf4* | osf5*) # as osf3* with the addition of -msym flag
8414 if test "$GCC" = yes; then
8415 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8416 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8418 else
8419 allow_undefined_flag=' -expect_unresolved \*'
8420 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8421 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8422 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8423
8424 # Both c and cxx compiler support -rpath directly
8425 hardcode_libdir_flag_spec='-rpath $libdir'
8426 fi
8427 hardcode_libdir_separator=:
8428 ;;
8429
8430 solaris*)
8431 no_undefined_flag=' -z text'
8432 if test "$GCC" = yes; then
8433 wlarc='${wl}'
8434 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8435 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8436 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8437 else
8438 wlarc=''
8439 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8440 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8441 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8442 fi
8443 hardcode_libdir_flag_spec='-R$libdir'
8444 hardcode_shlibpath_var=no
8445 case $host_os in
8446 solaris2.[0-5] | solaris2.[0-5].*) ;;
8447 *)
8448 # The compiler driver will combine linker options so we
8449 # cannot just pass the convience library names through
8450 # without $wl, iff we do not link with $LD.
8451 # Luckily, gcc supports the same syntax we need for Sun Studio.
8452 # Supported since Solaris 2.6 (maybe 2.5.1?)
8453 case $wlarc in
8454 '')
8455 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8456 *)
8457 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8458 esac ;;
8459 esac
8460 link_all_deplibs=yes
8461 ;;
8462
8463 sunos4*)
8464 if test "x$host_vendor" = xsequent; then
8465 # Use $CC to link under sequent, because it throws in some extra .o
8466 # files that make .init and .fini sections work.
8467 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8468 else
8469 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8470 fi
8471 hardcode_libdir_flag_spec='-L$libdir'
8472 hardcode_direct=yes
8473 hardcode_minus_L=yes
8474 hardcode_shlibpath_var=no
8475 ;;
8476
8477 sysv4)
8478 case $host_vendor in
8479 sni)
8480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8481 hardcode_direct=yes # is this really true???
8482 ;;
8483 siemens)
8484 ## LD is ld it makes a PLAMLIB
8485 ## CC just makes a GrossModule.
8486 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8487 reload_cmds='$CC -r -o $output$reload_objs'
8488 hardcode_direct=no
8489 ;;
8490 motorola)
8491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8492 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8493 ;;
8494 esac
8495 runpath_var='LD_RUN_PATH'
8496 hardcode_shlibpath_var=no
8497 ;;
8498
8499 sysv4.3*)
8500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501 hardcode_shlibpath_var=no
8502 export_dynamic_flag_spec='-Bexport'
8503 ;;
8504
8505 sysv4*MP*)
8506 if test -d /usr/nec; then
8507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508 hardcode_shlibpath_var=no
8509 runpath_var=LD_RUN_PATH
8510 hardcode_runpath_var=yes
8511 ld_shlibs=yes
8512 fi
8513 ;;
8514
8515 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8516 no_undefined_flag='${wl}-z,text'
8517 archive_cmds_need_lc=no
8518 hardcode_shlibpath_var=no
8519 runpath_var='LD_RUN_PATH'
8520
8521 if test "$GCC" = yes; then
8522 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8523 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8524 else
8525 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8526 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8527 fi
8528 ;;
8529
8530 sysv5* | sco3.2v5* | sco5v6*)
8531 # Note: We can NOT use -z defs as we might desire, because we do not
8532 # link with -lc, and that would cause any symbols used from libc to
8533 # always be unresolved, which means just about no library would
8534 # ever link correctly. If we're not using GNU ld we use -z text
8535 # though, which does catch some bad symbols but isn't as heavy-handed
8536 # as -z defs.
8537 no_undefined_flag='${wl}-z,text'
8538 allow_undefined_flag='${wl}-z,nodefs'
8539 archive_cmds_need_lc=no
8540 hardcode_shlibpath_var=no
8541 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8542 hardcode_libdir_separator=':'
8543 link_all_deplibs=yes
8544 export_dynamic_flag_spec='${wl}-Bexport'
8545 runpath_var='LD_RUN_PATH'
8546
8547 if test "$GCC" = yes; then
8548 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8549 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8550 else
8551 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8552 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8553 fi
8554 ;;
8555
8556 uts4*)
8557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8558 hardcode_libdir_flag_spec='-L$libdir'
8559 hardcode_shlibpath_var=no
8560 ;;
8561
8562 *)
8563 ld_shlibs=no
8564 ;;
8565 esac
8566 fi
8567
8568 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8569 echo "${ECHO_T}$ld_shlibs" >&6; }
8570 test "$ld_shlibs" = no && can_build_shared=no
8571
8572 #
8573 # Do we need to explicitly link libc?
8574 #
8575 case "x$archive_cmds_need_lc" in
8576 x|xyes)
8577 # Assume -lc should be added
8578 archive_cmds_need_lc=yes
8579
8580 if test "$enable_shared" = yes && test "$GCC" = yes; then
8581 case $archive_cmds in
8582 *'~'*)
8583 # FIXME: we may have to deal with multi-command sequences.
8584 ;;
8585 '$CC '*)
8586 # Test whether the compiler implicitly links with -lc since on some
8587 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8588 # to ld, don't add -lc before -lgcc.
8589 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8590 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8591 $rm conftest*
8592 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8593
8594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8595 (eval $ac_compile) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } 2>conftest.err; then
8599 soname=conftest
8600 lib=conftest
8601 libobjs=conftest.$ac_objext
8602 deplibs=
8603 wl=$lt_prog_compiler_wl
8604 pic_flag=$lt_prog_compiler_pic
8605 compiler_flags=-v
8606 linker_flags=-v
8607 verstring=
8608 output_objdir=.
8609 libname=conftest
8610 lt_save_allow_undefined_flag=$allow_undefined_flag
8611 allow_undefined_flag=
8612 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8613 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }
8617 then
8618 archive_cmds_need_lc=no
8619 else
8620 archive_cmds_need_lc=yes
8621 fi
8622 allow_undefined_flag=$lt_save_allow_undefined_flag
8623 else
8624 cat conftest.err 1>&5
8625 fi
8626 $rm conftest*
8627 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8628 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8629 ;;
8630 esac
8631 fi
8632 ;;
8633 esac
8634
8635 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8636 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8637 library_names_spec=
8638 libname_spec='lib$name'
8639 soname_spec=
8640 shrext=".so"
8641 postinstall_cmds=
8642 postuninstall_cmds=
8643 finish_cmds=
8644 finish_eval=
8645 shlibpath_var=
8646 shlibpath_overrides_runpath=unknown
8647 version_type=none
8648 dynamic_linker="$host_os ld.so"
8649 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8650 if test "$GCC" = yes; then
8651 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8652 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8653 # if the path contains ";" then we assume it to be the separator
8654 # otherwise default to the standard path separator (i.e. ":") - it is
8655 # assumed that no part of a normal pathname contains ";" but that should
8656 # okay in the real world where ";" in dirpaths is itself problematic.
8657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8658 else
8659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8660 fi
8661 else
8662 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8663 fi
8664 need_lib_prefix=unknown
8665 hardcode_into_libs=no
8666
8667 # when you set need_version to no, make sure it does not cause -set_version
8668 # flags to be left without arguments
8669 need_version=unknown
8670
8671 case $host_os in
8672 aix3*)
8673 version_type=linux
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8675 shlibpath_var=LIBPATH
8676
8677 # AIX 3 has no versioning support, so we append a major version to the name.
8678 soname_spec='${libname}${release}${shared_ext}$major'
8679 ;;
8680
8681 aix4* | aix5*)
8682 version_type=linux
8683 need_lib_prefix=no
8684 need_version=no
8685 hardcode_into_libs=yes
8686 if test "$host_cpu" = ia64; then
8687 # AIX 5 supports IA64
8688 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8689 shlibpath_var=LD_LIBRARY_PATH
8690 else
8691 # With GCC up to 2.95.x, collect2 would create an import file
8692 # for dependence libraries. The import file would start with
8693 # the line `#! .'. This would cause the generated library to
8694 # depend on `.', always an invalid library. This was fixed in
8695 # development snapshots of GCC prior to 3.0.
8696 case $host_os in
8697 aix4 | aix4.[01] | aix4.[01].*)
8698 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8699 echo ' yes '
8700 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8701 :
8702 else
8703 can_build_shared=no
8704 fi
8705 ;;
8706 esac
8707 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8708 # soname into executable. Probably we can add versioning support to
8709 # collect2, so additional links can be useful in future.
8710 if test "$aix_use_runtimelinking" = yes; then
8711 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8712 # instead of lib<name>.a to let people know that these are not
8713 # typical AIX shared libraries.
8714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8715 else
8716 # We preserve .a as extension for shared libraries through AIX4.2
8717 # and later when we are not doing run time linking.
8718 library_names_spec='${libname}${release}.a $libname.a'
8719 soname_spec='${libname}${release}${shared_ext}$major'
8720 fi
8721 shlibpath_var=LIBPATH
8722 fi
8723 ;;
8724
8725 amigaos*)
8726 library_names_spec='$libname.ixlibrary $libname.a'
8727 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8728 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'
8729 ;;
8730
8731 beos*)
8732 library_names_spec='${libname}${shared_ext}'
8733 dynamic_linker="$host_os ld.so"
8734 shlibpath_var=LIBRARY_PATH
8735 ;;
8736
8737 bsdi[45]*)
8738 version_type=linux
8739 need_version=no
8740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8741 soname_spec='${libname}${release}${shared_ext}$major'
8742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8743 shlibpath_var=LD_LIBRARY_PATH
8744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8746 # the default ld.so.conf also contains /usr/contrib/lib and
8747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8748 # libtool to hard-code these into programs
8749 ;;
8750
8751 cygwin* | mingw* | pw32*)
8752 version_type=windows
8753 shrext=".dll"
8754 need_version=no
8755 need_lib_prefix=no
8756
8757 case $GCC,$host_os in
8758 yes,cygwin* | yes,mingw* | yes,pw32*)
8759 library_names_spec='$libname.dll.a'
8760 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8761 postinstall_cmds='base_file=`basename \${file}`~
8762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8763 dldir=$destdir/`dirname \$dlpath`~
8764 test -d \$dldir || mkdir -p \$dldir~
8765 $install_prog $dir/$dlname \$dldir/$dlname~
8766 chmod a+x \$dldir/$dlname'
8767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8768 dlpath=$dir/\$dldll~
8769 $rm \$dlpath'
8770 shlibpath_overrides_runpath=yes
8771
8772 case $host_os in
8773 cygwin*)
8774 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8776 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8777 ;;
8778 mingw*)
8779 # MinGW DLLs use traditional 'lib' prefix
8780 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8781 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8782 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8783 # It is most probably a Windows format PATH printed by
8784 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8785 # path with ; separators, and with drive letters. We can handle the
8786 # drive letters (cygwin fileutils understands them), so leave them,
8787 # especially as we might pass files found there to a mingw objdump,
8788 # which wouldn't understand a cygwinified path. Ahh.
8789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8790 else
8791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8792 fi
8793 ;;
8794 pw32*)
8795 # pw32 DLLs use 'pw' prefix rather than 'lib'
8796 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8797 ;;
8798 esac
8799 ;;
8800
8801 *)
8802 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8803 ;;
8804 esac
8805 dynamic_linker='Win32 ld.exe'
8806 # FIXME: first we should search . and the directory the executable is in
8807 shlibpath_var=PATH
8808 ;;
8809
8810 darwin* | rhapsody*)
8811 dynamic_linker="$host_os dyld"
8812 version_type=darwin
8813 need_lib_prefix=no
8814 need_version=no
8815 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8816 soname_spec='${libname}${release}${major}$shared_ext'
8817 shlibpath_overrides_runpath=yes
8818 shlibpath_var=DYLD_LIBRARY_PATH
8819 shrext='`test .$module = .yes && echo .so || echo .dylib`'
8820 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8821 if test "$GCC" = yes; then
8822 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8823 else
8824 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8825 fi
8826 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8827 ;;
8828
8829 dgux*)
8830 version_type=linux
8831 need_lib_prefix=no
8832 need_version=no
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8834 soname_spec='${libname}${release}${shared_ext}$major'
8835 shlibpath_var=LD_LIBRARY_PATH
8836 ;;
8837
8838 freebsd1*)
8839 dynamic_linker=no
8840 ;;
8841
8842 kfreebsd*-gnu)
8843 version_type=linux
8844 need_lib_prefix=no
8845 need_version=no
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 shlibpath_var=LD_LIBRARY_PATH
8849 shlibpath_overrides_runpath=no
8850 hardcode_into_libs=yes
8851 dynamic_linker='GNU ld.so'
8852 ;;
8853
8854 freebsd* | dragonfly*)
8855 # DragonFly does not have aout. When/if they implement a new
8856 # versioning mechanism, adjust this.
8857 if test -x /usr/bin/objformat; then
8858 objformat=`/usr/bin/objformat`
8859 else
8860 case $host_os in
8861 freebsd[123]*) objformat=aout ;;
8862 *) objformat=elf ;;
8863 esac
8864 fi
8865 version_type=freebsd-$objformat
8866 case $version_type in
8867 freebsd-elf*)
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8869 need_version=no
8870 need_lib_prefix=no
8871 ;;
8872 freebsd-*)
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8874 need_version=yes
8875 ;;
8876 esac
8877 shlibpath_var=LD_LIBRARY_PATH
8878 case $host_os in
8879 freebsd2*)
8880 shlibpath_overrides_runpath=yes
8881 ;;
8882 freebsd3.[01]* | freebsdelf3.[01]*)
8883 shlibpath_overrides_runpath=yes
8884 hardcode_into_libs=yes
8885 ;;
8886 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8887 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8888 shlibpath_overrides_runpath=no
8889 hardcode_into_libs=yes
8890 ;;
8891 freebsd*) # from 4.6 on
8892 shlibpath_overrides_runpath=yes
8893 hardcode_into_libs=yes
8894 ;;
8895 esac
8896 ;;
8897
8898 gnu*)
8899 version_type=linux
8900 need_lib_prefix=no
8901 need_version=no
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 shlibpath_var=LD_LIBRARY_PATH
8905 hardcode_into_libs=yes
8906 ;;
8907
8908 hpux9* | hpux10* | hpux11*)
8909 # Give a soname corresponding to the major version so that dld.sl refuses to
8910 # link against other versions.
8911 version_type=sunos
8912 need_lib_prefix=no
8913 need_version=no
8914 case $host_cpu in
8915 ia64*)
8916 shrext='.so'
8917 hardcode_into_libs=yes
8918 dynamic_linker="$host_os dld.so"
8919 shlibpath_var=LD_LIBRARY_PATH
8920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 if test "X$HPUX_IA64_MODE" = X32; then
8924 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8925 else
8926 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8927 fi
8928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8929 ;;
8930 hppa*64*)
8931 shrext='.sl'
8932 hardcode_into_libs=yes
8933 dynamic_linker="$host_os dld.sl"
8934 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8940 ;;
8941 *)
8942 shrext='.sl'
8943 dynamic_linker="$host_os dld.sl"
8944 shlibpath_var=SHLIB_PATH
8945 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 ;;
8949 esac
8950 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8951 postinstall_cmds='chmod 555 $lib'
8952 ;;
8953
8954 interix3*)
8955 version_type=linux
8956 need_lib_prefix=no
8957 need_version=no
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8961 shlibpath_var=LD_LIBRARY_PATH
8962 shlibpath_overrides_runpath=no
8963 hardcode_into_libs=yes
8964 ;;
8965
8966 irix5* | irix6* | nonstopux*)
8967 case $host_os in
8968 nonstopux*) version_type=nonstopux ;;
8969 *)
8970 if test "$lt_cv_prog_gnu_ld" = yes; then
8971 version_type=linux
8972 else
8973 version_type=irix
8974 fi ;;
8975 esac
8976 need_lib_prefix=no
8977 need_version=no
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8980 case $host_os in
8981 irix5* | nonstopux*)
8982 libsuff= shlibsuff=
8983 ;;
8984 *)
8985 case $LD in # libtool.m4 will add one of these switches to LD
8986 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8987 libsuff= shlibsuff= libmagic=32-bit;;
8988 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8989 libsuff=32 shlibsuff=N32 libmagic=N32;;
8990 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8991 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8992 *) libsuff= shlibsuff= libmagic=never-match;;
8993 esac
8994 ;;
8995 esac
8996 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8997 shlibpath_overrides_runpath=no
8998 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8999 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9000 hardcode_into_libs=yes
9001 ;;
9002
9003 # No shared lib support for Linux oldld, aout, or coff.
9004 linux*oldld* | linux*aout* | linux*coff*)
9005 dynamic_linker=no
9006 ;;
9007
9008 # This must be Linux ELF.
9009 linux*)
9010 version_type=linux
9011 need_lib_prefix=no
9012 need_version=no
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=no
9018 # This implies no fast_install, which is unacceptable.
9019 # Some rework will be needed to allow for fast_install
9020 # before this can be enabled.
9021 hardcode_into_libs=yes
9022
9023 # find out which ABI we are using
9024 libsuff=
9025 case "$host_cpu" in
9026 x86_64*|s390x*|powerpc64*)
9027 echo '#line 9027 "configure"' > conftest.$ac_ext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9029 (eval $ac_compile) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; then
9033 case `/usr/bin/file conftest.$ac_objext` in
9034 *64-bit*)
9035 libsuff=64
9036 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9037 ;;
9038 esac
9039 fi
9040 rm -rf conftest*
9041 ;;
9042 esac
9043
9044 # Append ld.so.conf contents to the search path
9045 if test -f /etc/ld.so.conf; then
9046 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9047 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9048 fi
9049
9050 # We used to test for /lib/ld.so.1 and disable shared libraries on
9051 # powerpc, because MkLinux only supported shared libraries with the
9052 # GNU dynamic linker. Since this was broken with cross compilers,
9053 # most powerpc-linux boxes support dynamic linking these days and
9054 # people can always --disable-shared, the test was removed, and we
9055 # assume the GNU/Linux dynamic linker is in use.
9056 dynamic_linker='GNU/Linux ld.so'
9057 ;;
9058
9059 knetbsd*-gnu)
9060 version_type=linux
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=no
9067 hardcode_into_libs=yes
9068 dynamic_linker='GNU ld.so'
9069 ;;
9070
9071 netbsd*)
9072 version_type=sunos
9073 need_lib_prefix=no
9074 need_version=no
9075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9078 dynamic_linker='NetBSD (a.out) ld.so'
9079 else
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 dynamic_linker='NetBSD ld.elf_so'
9083 fi
9084 shlibpath_var=LD_LIBRARY_PATH
9085 shlibpath_overrides_runpath=yes
9086 hardcode_into_libs=yes
9087 ;;
9088
9089 newsos6)
9090 version_type=linux
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=yes
9094 ;;
9095
9096 nto-qnx*)
9097 version_type=linux
9098 need_lib_prefix=no
9099 need_version=no
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 shlibpath_overrides_runpath=yes
9104 ;;
9105
9106 openbsd*)
9107 version_type=sunos
9108 sys_lib_dlsearch_path_spec="/usr/lib"
9109 need_lib_prefix=no
9110 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9111 case $host_os in
9112 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9113 *) need_version=no ;;
9114 esac
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9119 case $host_os in
9120 openbsd2.[89] | openbsd2.[89].*)
9121 shlibpath_overrides_runpath=no
9122 ;;
9123 *)
9124 shlibpath_overrides_runpath=yes
9125 ;;
9126 esac
9127 else
9128 shlibpath_overrides_runpath=yes
9129 fi
9130 ;;
9131
9132 os2*)
9133 libname_spec='$name'
9134 shrext=".dll"
9135 need_lib_prefix=no
9136 library_names_spec='$libname${shared_ext} $libname.a'
9137 dynamic_linker='OS/2 ld.exe'
9138 shlibpath_var=LIBPATH
9139 ;;
9140
9141 osf3* | osf4* | osf5*)
9142 version_type=osf
9143 need_lib_prefix=no
9144 need_version=no
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9149 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9150 ;;
9151
9152 solaris*)
9153 version_type=linux
9154 need_lib_prefix=no
9155 need_version=no
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 shlibpath_overrides_runpath=yes
9160 hardcode_into_libs=yes
9161 # ldd complains unless libraries are executable
9162 postinstall_cmds='chmod +x $lib'
9163 ;;
9164
9165 sunos4*)
9166 version_type=sunos
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 shlibpath_overrides_runpath=yes
9171 if test "$with_gnu_ld" = yes; then
9172 need_lib_prefix=no
9173 fi
9174 need_version=yes
9175 ;;
9176
9177 sysv4 | sysv4.3*)
9178 version_type=linux
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 soname_spec='${libname}${release}${shared_ext}$major'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 case $host_vendor in
9183 sni)
9184 shlibpath_overrides_runpath=no
9185 need_lib_prefix=no
9186 export_dynamic_flag_spec='${wl}-Blargedynsym'
9187 runpath_var=LD_RUN_PATH
9188 ;;
9189 siemens)
9190 need_lib_prefix=no
9191 ;;
9192 motorola)
9193 need_lib_prefix=no
9194 need_version=no
9195 shlibpath_overrides_runpath=no
9196 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9197 ;;
9198 esac
9199 ;;
9200
9201 sysv4*MP*)
9202 if test -d /usr/nec ;then
9203 version_type=linux
9204 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9205 soname_spec='$libname${shared_ext}.$major'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 fi
9208 ;;
9209
9210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9211 version_type=freebsd-elf
9212 need_lib_prefix=no
9213 need_version=no
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 hardcode_into_libs=yes
9218 if test "$with_gnu_ld" = yes; then
9219 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9220 shlibpath_overrides_runpath=no
9221 else
9222 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9223 shlibpath_overrides_runpath=yes
9224 case $host_os in
9225 sco3.2v5*)
9226 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9227 ;;
9228 esac
9229 fi
9230 sys_lib_dlsearch_path_spec='/usr/lib'
9231 ;;
9232
9233 uts4*)
9234 version_type=linux
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9237 shlibpath_var=LD_LIBRARY_PATH
9238 ;;
9239
9240 *)
9241 dynamic_linker=no
9242 ;;
9243 esac
9244 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9245 echo "${ECHO_T}$dynamic_linker" >&6; }
9246 test "$dynamic_linker" = no && can_build_shared=no
9247
9248 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9249 if test "$GCC" = yes; then
9250 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9251 fi
9252
9253 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9254 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9255 hardcode_action=
9256 if test -n "$hardcode_libdir_flag_spec" || \
9257 test -n "$runpath_var" || \
9258 test "X$hardcode_automatic" = "Xyes" ; then
9259
9260 # We can hardcode non-existant directories.
9261 if test "$hardcode_direct" != no &&
9262 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9263 # have to relink, otherwise we might link with an installed library
9264 # when we should be linking with a yet-to-be-installed one
9265 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9266 test "$hardcode_minus_L" != no; then
9267 # Linking always hardcodes the temporary library directory.
9268 hardcode_action=relink
9269 else
9270 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9271 hardcode_action=immediate
9272 fi
9273 else
9274 # We cannot hardcode anything, or else we can only hardcode existing
9275 # directories.
9276 hardcode_action=unsupported
9277 fi
9278 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9279 echo "${ECHO_T}$hardcode_action" >&6; }
9280
9281 if test "$hardcode_action" = relink; then
9282 # Fast installation is not supported
9283 enable_fast_install=no
9284 elif test "$shlibpath_overrides_runpath" = yes ||
9285 test "$enable_shared" = no; then
9286 # Fast installation is not necessary
9287 enable_fast_install=needless
9288 fi
9289
9290 striplib=
9291 old_striplib=
9292 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9293 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9294 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9295 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9296 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9297 { echo "$as_me:$LINENO: result: yes" >&5
9298 echo "${ECHO_T}yes" >&6; }
9299 else
9300 # FIXME - insert some real tests, host_os isn't really good enough
9301 case $host_os in
9302 darwin*)
9303 if test -n "$STRIP" ; then
9304 striplib="$STRIP -x"
9305 { echo "$as_me:$LINENO: result: yes" >&5
9306 echo "${ECHO_T}yes" >&6; }
9307 else
9308 { echo "$as_me:$LINENO: result: no" >&5
9309 echo "${ECHO_T}no" >&6; }
9310 fi
9311 ;;
9312 *)
9313 { echo "$as_me:$LINENO: result: no" >&5
9314 echo "${ECHO_T}no" >&6; }
9315 ;;
9316 esac
9317 fi
9318
9319 if test "x$enable_dlopen" != xyes; then
9320 enable_dlopen=unknown
9321 enable_dlopen_self=unknown
9322 enable_dlopen_self_static=unknown
9323 else
9324 lt_cv_dlopen=no
9325 lt_cv_dlopen_libs=
9326
9327 case $host_os in
9328 beos*)
9329 lt_cv_dlopen="load_add_on"
9330 lt_cv_dlopen_libs=
9331 lt_cv_dlopen_self=yes
9332 ;;
9333
9334 mingw* | pw32*)
9335 lt_cv_dlopen="LoadLibrary"
9336 lt_cv_dlopen_libs=
9337 ;;
9338
9339 cygwin*)
9340 lt_cv_dlopen="dlopen"
9341 lt_cv_dlopen_libs=
9342 ;;
9343
9344 darwin*)
9345 # if libdl is installed we need to link against it
9346 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9347 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9348 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351 ac_check_lib_save_LIBS=$LIBS
9352 LIBS="-ldl $LIBS"
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359
9360 /* Override any GCC internal prototype to avoid an error.
9361 Use char because int might match the return type of a GCC
9362 builtin and then its argument prototype would still apply. */
9363 #ifdef __cplusplus
9364 extern "C"
9365 #endif
9366 char dlopen ();
9367 int
9368 main ()
9369 {
9370 return dlopen ();
9371 ;
9372 return 0;
9373 }
9374 _ACEOF
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (ac_try="$ac_link"
9377 case "(($ac_try" in
9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379 *) ac_try_echo=$ac_try;;
9380 esac
9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382 (eval "$ac_link") 2>conftest.er1
9383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && {
9389 test -z "$ac_c_werror_flag" ||
9390 test ! -s conftest.err
9391 } && test -s conftest$ac_exeext &&
9392 $as_test_x conftest$ac_exeext; then
9393 ac_cv_lib_dl_dlopen=yes
9394 else
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9397
9398 ac_cv_lib_dl_dlopen=no
9399 fi
9400
9401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9402 conftest$ac_exeext conftest.$ac_ext
9403 LIBS=$ac_check_lib_save_LIBS
9404 fi
9405 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9407 if test $ac_cv_lib_dl_dlopen = yes; then
9408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9409 else
9410
9411 lt_cv_dlopen="dyld"
9412 lt_cv_dlopen_libs=
9413 lt_cv_dlopen_self=yes
9414
9415 fi
9416
9417 ;;
9418
9419 *)
9420 { echo "$as_me:$LINENO: checking for shl_load" >&5
9421 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9422 if test "${ac_cv_func_shl_load+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9433 #define shl_load innocuous_shl_load
9434
9435 /* System header to define __stub macros and hopefully few prototypes,
9436 which can conflict with char shl_load (); below.
9437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9438 <limits.h> exists even on freestanding compilers. */
9439
9440 #ifdef __STDC__
9441 # include <limits.h>
9442 #else
9443 # include <assert.h>
9444 #endif
9445
9446 #undef shl_load
9447
9448 /* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 char shl_load ();
9455 /* The GNU C library defines this for functions which it implements
9456 to always fail with ENOSYS. Some functions are actually named
9457 something starting with __ and the normal name is an alias. */
9458 #if defined __stub_shl_load || defined __stub___shl_load
9459 choke me
9460 #endif
9461
9462 int
9463 main ()
9464 {
9465 return shl_load ();
9466 ;
9467 return 0;
9468 }
9469 _ACEOF
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (ac_try="$ac_link"
9472 case "(($ac_try" in
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9475 esac
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_link") 2>conftest.er1
9478 ac_status=$?
9479 grep -v '^ *+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest$ac_exeext &&
9487 $as_test_x conftest$ac_exeext; then
9488 ac_cv_func_shl_load=yes
9489 else
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493 ac_cv_func_shl_load=no
9494 fi
9495
9496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9497 conftest$ac_exeext conftest.$ac_ext
9498 fi
9499 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9500 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9501 if test $ac_cv_func_shl_load = yes; then
9502 lt_cv_dlopen="shl_load"
9503 else
9504 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9505 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9506 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509 ac_check_lib_save_LIBS=$LIBS
9510 LIBS="-ldld $LIBS"
9511 cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h. */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9517
9518 /* Override any GCC internal prototype to avoid an error.
9519 Use char because int might match the return type of a GCC
9520 builtin and then its argument prototype would still apply. */
9521 #ifdef __cplusplus
9522 extern "C"
9523 #endif
9524 char shl_load ();
9525 int
9526 main ()
9527 {
9528 return shl_load ();
9529 ;
9530 return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9535 case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9538 esac
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_link") 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest$ac_exeext &&
9550 $as_test_x conftest$ac_exeext; then
9551 ac_cv_lib_dld_shl_load=yes
9552 else
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9555
9556 ac_cv_lib_dld_shl_load=no
9557 fi
9558
9559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9560 conftest$ac_exeext conftest.$ac_ext
9561 LIBS=$ac_check_lib_save_LIBS
9562 fi
9563 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9564 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9565 if test $ac_cv_lib_dld_shl_load = yes; then
9566 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9567 else
9568 { echo "$as_me:$LINENO: checking for dlopen" >&5
9569 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9570 if test "${ac_cv_func_dlopen+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 else
9573 cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h. */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9581 #define dlopen innocuous_dlopen
9582
9583 /* System header to define __stub macros and hopefully few prototypes,
9584 which can conflict with char dlopen (); below.
9585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9586 <limits.h> exists even on freestanding compilers. */
9587
9588 #ifdef __STDC__
9589 # include <limits.h>
9590 #else
9591 # include <assert.h>
9592 #endif
9593
9594 #undef dlopen
9595
9596 /* Override any GCC internal prototype to avoid an error.
9597 Use char because int might match the return type of a GCC
9598 builtin and then its argument prototype would still apply. */
9599 #ifdef __cplusplus
9600 extern "C"
9601 #endif
9602 char dlopen ();
9603 /* The GNU C library defines this for functions which it implements
9604 to always fail with ENOSYS. Some functions are actually named
9605 something starting with __ and the normal name is an alias. */
9606 #if defined __stub_dlopen || defined __stub___dlopen
9607 choke me
9608 #endif
9609
9610 int
9611 main ()
9612 {
9613 return dlopen ();
9614 ;
9615 return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9620 case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_link") 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest$ac_exeext &&
9635 $as_test_x conftest$ac_exeext; then
9636 ac_cv_func_dlopen=yes
9637 else
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9640
9641 ac_cv_func_dlopen=no
9642 fi
9643
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645 conftest$ac_exeext conftest.$ac_ext
9646 fi
9647 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9648 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9649 if test $ac_cv_func_dlopen = yes; then
9650 lt_cv_dlopen="dlopen"
9651 else
9652 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9653 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657 ac_check_lib_save_LIBS=$LIBS
9658 LIBS="-ldl $LIBS"
9659 cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h. */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665
9666 /* Override any GCC internal prototype to avoid an error.
9667 Use char because int might match the return type of a GCC
9668 builtin and then its argument prototype would still apply. */
9669 #ifdef __cplusplus
9670 extern "C"
9671 #endif
9672 char dlopen ();
9673 int
9674 main ()
9675 {
9676 return dlopen ();
9677 ;
9678 return 0;
9679 }
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9683 case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9699 ac_cv_lib_dl_dlopen=yes
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 ac_cv_lib_dl_dlopen=no
9705 fi
9706
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708 conftest$ac_exeext conftest.$ac_ext
9709 LIBS=$ac_check_lib_save_LIBS
9710 fi
9711 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9712 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9713 if test $ac_cv_lib_dl_dlopen = yes; then
9714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9715 else
9716 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9717 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9718 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721 ac_check_lib_save_LIBS=$LIBS
9722 LIBS="-lsvld $LIBS"
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729
9730 /* Override any GCC internal prototype to avoid an error.
9731 Use char because int might match the return type of a GCC
9732 builtin and then its argument prototype would still apply. */
9733 #ifdef __cplusplus
9734 extern "C"
9735 #endif
9736 char dlopen ();
9737 int
9738 main ()
9739 {
9740 return dlopen ();
9741 ;
9742 return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9747 case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_link") 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && {
9759 test -z "$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9761 } && test -s conftest$ac_exeext &&
9762 $as_test_x conftest$ac_exeext; then
9763 ac_cv_lib_svld_dlopen=yes
9764 else
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768 ac_cv_lib_svld_dlopen=no
9769 fi
9770
9771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9772 conftest$ac_exeext conftest.$ac_ext
9773 LIBS=$ac_check_lib_save_LIBS
9774 fi
9775 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9776 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9777 if test $ac_cv_lib_svld_dlopen = yes; then
9778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9779 else
9780 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9781 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9782 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785 ac_check_lib_save_LIBS=$LIBS
9786 LIBS="-ldld $LIBS"
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793
9794 /* Override any GCC internal prototype to avoid an error.
9795 Use char because int might match the return type of a GCC
9796 builtin and then its argument prototype would still apply. */
9797 #ifdef __cplusplus
9798 extern "C"
9799 #endif
9800 char dld_link ();
9801 int
9802 main ()
9803 {
9804 return dld_link ();
9805 ;
9806 return 0;
9807 }
9808 _ACEOF
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9811 case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_link") 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && {
9823 test -z "$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 } && test -s conftest$ac_exeext &&
9826 $as_test_x conftest$ac_exeext; then
9827 ac_cv_lib_dld_dld_link=yes
9828 else
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9831
9832 ac_cv_lib_dld_dld_link=no
9833 fi
9834
9835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9836 conftest$ac_exeext conftest.$ac_ext
9837 LIBS=$ac_check_lib_save_LIBS
9838 fi
9839 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9840 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9841 if test $ac_cv_lib_dld_dld_link = yes; then
9842 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9843 fi
9844
9845
9846 fi
9847
9848
9849 fi
9850
9851
9852 fi
9853
9854
9855 fi
9856
9857
9858 fi
9859
9860 ;;
9861 esac
9862
9863 if test "x$lt_cv_dlopen" != xno; then
9864 enable_dlopen=yes
9865 else
9866 enable_dlopen=no
9867 fi
9868
9869 case $lt_cv_dlopen in
9870 dlopen)
9871 save_CPPFLAGS="$CPPFLAGS"
9872 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9873
9874 save_LDFLAGS="$LDFLAGS"
9875 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9876
9877 save_LIBS="$LIBS"
9878 LIBS="$lt_cv_dlopen_libs $LIBS"
9879
9880 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9881 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9882 if test "${lt_cv_dlopen_self+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885 if test "$cross_compiling" = yes; then :
9886 lt_cv_dlopen_self=cross
9887 else
9888 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9889 lt_status=$lt_dlunknown
9890 cat > conftest.$ac_ext <<EOF
9891 #line 9891 "configure"
9892 #include "confdefs.h"
9893
9894 #if HAVE_DLFCN_H
9895 #include <dlfcn.h>
9896 #endif
9897
9898 #include <stdio.h>
9899
9900 #ifdef RTLD_GLOBAL
9901 # define LT_DLGLOBAL RTLD_GLOBAL
9902 #else
9903 # ifdef DL_GLOBAL
9904 # define LT_DLGLOBAL DL_GLOBAL
9905 # else
9906 # define LT_DLGLOBAL 0
9907 # endif
9908 #endif
9909
9910 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9911 find out it does not work in some platform. */
9912 #ifndef LT_DLLAZY_OR_NOW
9913 # ifdef RTLD_LAZY
9914 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9915 # else
9916 # ifdef DL_LAZY
9917 # define LT_DLLAZY_OR_NOW DL_LAZY
9918 # else
9919 # ifdef RTLD_NOW
9920 # define LT_DLLAZY_OR_NOW RTLD_NOW
9921 # else
9922 # ifdef DL_NOW
9923 # define LT_DLLAZY_OR_NOW DL_NOW
9924 # else
9925 # define LT_DLLAZY_OR_NOW 0
9926 # endif
9927 # endif
9928 # endif
9929 # endif
9930 #endif
9931
9932 #ifdef __cplusplus
9933 extern "C" void exit (int);
9934 #endif
9935
9936 void fnord() { int i=42;}
9937 int main ()
9938 {
9939 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9940 int status = $lt_dlunknown;
9941
9942 if (self)
9943 {
9944 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9945 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9946 /* dlclose (self); */
9947 }
9948 else
9949 puts (dlerror ());
9950
9951 exit (status);
9952 }
9953 EOF
9954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9955 (eval $ac_link) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9959 (./conftest; exit; ) >&5 2>/dev/null
9960 lt_status=$?
9961 case x$lt_status in
9962 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9963 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9964 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9965 esac
9966 else :
9967 # compilation failed
9968 lt_cv_dlopen_self=no
9969 fi
9970 fi
9971 rm -fr conftest*
9972
9973
9974 fi
9975 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9976 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9977
9978 if test "x$lt_cv_dlopen_self" = xyes; then
9979 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9980 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9981 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9982 if test "${lt_cv_dlopen_self_static+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985 if test "$cross_compiling" = yes; then :
9986 lt_cv_dlopen_self_static=cross
9987 else
9988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9989 lt_status=$lt_dlunknown
9990 cat > conftest.$ac_ext <<EOF
9991 #line 9991 "configure"
9992 #include "confdefs.h"
9993
9994 #if HAVE_DLFCN_H
9995 #include <dlfcn.h>
9996 #endif
9997
9998 #include <stdio.h>
9999
10000 #ifdef RTLD_GLOBAL
10001 # define LT_DLGLOBAL RTLD_GLOBAL
10002 #else
10003 # ifdef DL_GLOBAL
10004 # define LT_DLGLOBAL DL_GLOBAL
10005 # else
10006 # define LT_DLGLOBAL 0
10007 # endif
10008 #endif
10009
10010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10011 find out it does not work in some platform. */
10012 #ifndef LT_DLLAZY_OR_NOW
10013 # ifdef RTLD_LAZY
10014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10015 # else
10016 # ifdef DL_LAZY
10017 # define LT_DLLAZY_OR_NOW DL_LAZY
10018 # else
10019 # ifdef RTLD_NOW
10020 # define LT_DLLAZY_OR_NOW RTLD_NOW
10021 # else
10022 # ifdef DL_NOW
10023 # define LT_DLLAZY_OR_NOW DL_NOW
10024 # else
10025 # define LT_DLLAZY_OR_NOW 0
10026 # endif
10027 # endif
10028 # endif
10029 # endif
10030 #endif
10031
10032 #ifdef __cplusplus
10033 extern "C" void exit (int);
10034 #endif
10035
10036 void fnord() { int i=42;}
10037 int main ()
10038 {
10039 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10040 int status = $lt_dlunknown;
10041
10042 if (self)
10043 {
10044 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10045 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10046 /* dlclose (self); */
10047 }
10048 else
10049 puts (dlerror ());
10050
10051 exit (status);
10052 }
10053 EOF
10054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055 (eval $ac_link) 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10059 (./conftest; exit; ) >&5 2>/dev/null
10060 lt_status=$?
10061 case x$lt_status in
10062 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10063 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10064 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10065 esac
10066 else :
10067 # compilation failed
10068 lt_cv_dlopen_self_static=no
10069 fi
10070 fi
10071 rm -fr conftest*
10072
10073
10074 fi
10075 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10076 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10077 fi
10078
10079 CPPFLAGS="$save_CPPFLAGS"
10080 LDFLAGS="$save_LDFLAGS"
10081 LIBS="$save_LIBS"
10082 ;;
10083 esac
10084
10085 case $lt_cv_dlopen_self in
10086 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10087 *) enable_dlopen_self=unknown ;;
10088 esac
10089
10090 case $lt_cv_dlopen_self_static in
10091 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10092 *) enable_dlopen_self_static=unknown ;;
10093 esac
10094 fi
10095
10096
10097 # Report which library types will actually be built
10098 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10099 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10100 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10101 echo "${ECHO_T}$can_build_shared" >&6; }
10102
10103 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10104 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10105 test "$can_build_shared" = "no" && enable_shared=no
10106
10107 # On AIX, shared libraries and static libraries use the same namespace, and
10108 # are all built from PIC.
10109 case $host_os in
10110 aix3*)
10111 test "$enable_shared" = yes && enable_static=no
10112 if test -n "$RANLIB"; then
10113 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10114 postinstall_cmds='$RANLIB $lib'
10115 fi
10116 ;;
10117
10118 aix4* | aix5*)
10119 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10120 test "$enable_shared" = yes && enable_static=no
10121 fi
10122 ;;
10123 esac
10124 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10125 echo "${ECHO_T}$enable_shared" >&6; }
10126
10127 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10128 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10129 # Make sure either enable_shared or enable_static is yes.
10130 test "$enable_shared" = yes || enable_static=yes
10131 { echo "$as_me:$LINENO: result: $enable_static" >&5
10132 echo "${ECHO_T}$enable_static" >&6; }
10133
10134 # The else clause should only fire when bootstrapping the
10135 # libtool distribution, otherwise you forgot to ship ltmain.sh
10136 # with your package, and you will get complaints that there are
10137 # no rules to generate ltmain.sh.
10138 if test -f "$ltmain"; then
10139 # See if we are running on zsh, and set the options which allow our commands through
10140 # without removal of \ escapes.
10141 if test -n "${ZSH_VERSION+set}" ; then
10142 setopt NO_GLOB_SUBST
10143 fi
10144 # Now quote all the things that may contain metacharacters while being
10145 # careful not to overquote the AC_SUBSTed values. We take copies of the
10146 # variables and quote the copies for generation of the libtool script.
10147 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10148 SED SHELL STRIP \
10149 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10150 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10151 deplibs_check_method reload_flag reload_cmds need_locks \
10152 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10153 lt_cv_sys_global_symbol_to_c_name_address \
10154 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10155 old_postinstall_cmds old_postuninstall_cmds \
10156 compiler \
10157 CC \
10158 LD \
10159 lt_prog_compiler_wl \
10160 lt_prog_compiler_pic \
10161 lt_prog_compiler_static \
10162 lt_prog_compiler_no_builtin_flag \
10163 export_dynamic_flag_spec \
10164 thread_safe_flag_spec \
10165 whole_archive_flag_spec \
10166 enable_shared_with_static_runtimes \
10167 old_archive_cmds \
10168 old_archive_from_new_cmds \
10169 predep_objects \
10170 postdep_objects \
10171 predeps \
10172 postdeps \
10173 compiler_lib_search_path \
10174 archive_cmds \
10175 archive_expsym_cmds \
10176 postinstall_cmds \
10177 postuninstall_cmds \
10178 old_archive_from_expsyms_cmds \
10179 allow_undefined_flag \
10180 no_undefined_flag \
10181 export_symbols_cmds \
10182 hardcode_libdir_flag_spec \
10183 hardcode_libdir_flag_spec_ld \
10184 hardcode_libdir_separator \
10185 hardcode_automatic \
10186 module_cmds \
10187 module_expsym_cmds \
10188 lt_cv_prog_compiler_c_o \
10189 exclude_expsyms \
10190 include_expsyms; do
10191
10192 case $var in
10193 old_archive_cmds | \
10194 old_archive_from_new_cmds | \
10195 archive_cmds | \
10196 archive_expsym_cmds | \
10197 module_cmds | \
10198 module_expsym_cmds | \
10199 old_archive_from_expsyms_cmds | \
10200 export_symbols_cmds | \
10201 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10202 postinstall_cmds | postuninstall_cmds | \
10203 old_postinstall_cmds | old_postuninstall_cmds | \
10204 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10205 # Double-quote double-evaled strings.
10206 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10207 ;;
10208 *)
10209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10210 ;;
10211 esac
10212 done
10213
10214 case $lt_echo in
10215 *'\$0 --fallback-echo"')
10216 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10217 ;;
10218 esac
10219
10220 cfgfile="${ofile}T"
10221 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10222 $rm -f "$cfgfile"
10223 { echo "$as_me:$LINENO: creating $ofile" >&5
10224 echo "$as_me: creating $ofile" >&6;}
10225
10226 cat <<__EOF__ >> "$cfgfile"
10227 #! $SHELL
10228
10229 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10230 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10231 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10232 #
10233 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10234 # Free Software Foundation, Inc.
10235 #
10236 # This file is part of GNU Libtool:
10237 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10238 #
10239 # This program is free software; you can redistribute it and/or modify
10240 # it under the terms of the GNU General Public License as published by
10241 # the Free Software Foundation; either version 2 of the License, or
10242 # (at your option) any later version.
10243 #
10244 # This program is distributed in the hope that it will be useful, but
10245 # WITHOUT ANY WARRANTY; without even the implied warranty of
10246 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10247 # General Public License for more details.
10248 #
10249 # You should have received a copy of the GNU General Public License
10250 # along with this program; if not, write to the Free Software
10251 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10252 #
10253 # As a special exception to the GNU General Public License, if you
10254 # distribute this file as part of a program that contains a
10255 # configuration script generated by Autoconf, you may include it under
10256 # the same distribution terms that you use for the rest of that program.
10257
10258 # A sed program that does not truncate output.
10259 SED=$lt_SED
10260
10261 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10262 Xsed="$SED -e 1s/^X//"
10263
10264 # The HP-UX ksh and POSIX shell print the target directory to stdout
10265 # if CDPATH is set.
10266 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10267
10268 # The names of the tagged configurations supported by this script.
10269 available_tags=
10270
10271 # ### BEGIN LIBTOOL CONFIG
10272
10273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10274
10275 # Shell to use when invoking shell scripts.
10276 SHELL=$lt_SHELL
10277
10278 # Whether or not to build shared libraries.
10279 build_libtool_libs=$enable_shared
10280
10281 # Whether or not to build static libraries.
10282 build_old_libs=$enable_static
10283
10284 # Whether or not to add -lc for building shared libraries.
10285 build_libtool_need_lc=$archive_cmds_need_lc
10286
10287 # Whether or not to disallow shared libs when runtime libs are static
10288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10289
10290 # Whether or not to optimize for fast installation.
10291 fast_install=$enable_fast_install
10292
10293 # The host system.
10294 host_alias=$host_alias
10295 host=$host
10296 host_os=$host_os
10297
10298 # The build system.
10299 build_alias=$build_alias
10300 build=$build
10301 build_os=$build_os
10302
10303 # An echo program that does not interpret backslashes.
10304 echo=$lt_echo
10305
10306 # The archiver.
10307 AR=$lt_AR
10308 AR_FLAGS=$lt_AR_FLAGS
10309
10310 # A C compiler.
10311 LTCC=$lt_LTCC
10312
10313 # LTCC compiler flags.
10314 LTCFLAGS=$lt_LTCFLAGS
10315
10316 # A language-specific compiler.
10317 CC=$lt_compiler
10318
10319 # Is the compiler the GNU C compiler?
10320 with_gcc=$GCC
10321
10322 # An ERE matcher.
10323 EGREP=$lt_EGREP
10324
10325 # The linker used to build libraries.
10326 LD=$lt_LD
10327
10328 # Whether we need hard or soft links.
10329 LN_S=$lt_LN_S
10330
10331 # A BSD-compatible nm program.
10332 NM=$lt_NM
10333
10334 # A symbol stripping program
10335 STRIP=$lt_STRIP
10336
10337 # Used to examine libraries when file_magic_cmd begins "file"
10338 MAGIC_CMD=$MAGIC_CMD
10339
10340 # Used on cygwin: DLL creation program.
10341 DLLTOOL="$DLLTOOL"
10342
10343 # Used on cygwin: object dumper.
10344 OBJDUMP="$OBJDUMP"
10345
10346 # Used on cygwin: assembler.
10347 AS="$AS"
10348
10349 # The name of the directory that contains temporary libtool files.
10350 objdir=$objdir
10351
10352 # How to create reloadable object files.
10353 reload_flag=$lt_reload_flag
10354 reload_cmds=$lt_reload_cmds
10355
10356 # How to pass a linker flag through the compiler.
10357 wl=$lt_lt_prog_compiler_wl
10358
10359 # Object file suffix (normally "o").
10360 objext="$ac_objext"
10361
10362 # Old archive suffix (normally "a").
10363 libext="$libext"
10364
10365 # Shared library suffix (normally ".so").
10366 shrext='$shrext'
10367
10368 # Executable file suffix (normally "").
10369 exeext="$exeext"
10370
10371 # Additional compiler flags for building library objects.
10372 pic_flag=$lt_lt_prog_compiler_pic
10373 pic_mode=$pic_mode
10374
10375 # What is the maximum length of a command?
10376 max_cmd_len=$lt_cv_sys_max_cmd_len
10377
10378 # Does compiler simultaneously support -c and -o options?
10379 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10380
10381 # Must we lock files when doing compilation?
10382 need_locks=$lt_need_locks
10383
10384 # Do we need the lib prefix for modules?
10385 need_lib_prefix=$need_lib_prefix
10386
10387 # Do we need a version for libraries?
10388 need_version=$need_version
10389
10390 # Whether dlopen is supported.
10391 dlopen_support=$enable_dlopen
10392
10393 # Whether dlopen of programs is supported.
10394 dlopen_self=$enable_dlopen_self
10395
10396 # Whether dlopen of statically linked programs is supported.
10397 dlopen_self_static=$enable_dlopen_self_static
10398
10399 # Compiler flag to prevent dynamic linking.
10400 link_static_flag=$lt_lt_prog_compiler_static
10401
10402 # Compiler flag to turn off builtin functions.
10403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10404
10405 # Compiler flag to allow reflexive dlopens.
10406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10407
10408 # Compiler flag to generate shared objects directly from archives.
10409 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10410
10411 # Compiler flag to generate thread-safe objects.
10412 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10413
10414 # Library versioning type.
10415 version_type=$version_type
10416
10417 # Format of library name prefix.
10418 libname_spec=$lt_libname_spec
10419
10420 # List of archive names. First name is the real one, the rest are links.
10421 # The last name is the one that the linker finds with -lNAME.
10422 library_names_spec=$lt_library_names_spec
10423
10424 # The coded name of the library, if different from the real name.
10425 soname_spec=$lt_soname_spec
10426
10427 # Commands used to build and install an old-style archive.
10428 RANLIB=$lt_RANLIB
10429 old_archive_cmds=$lt_old_archive_cmds
10430 old_postinstall_cmds=$lt_old_postinstall_cmds
10431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10432
10433 # Create an old-style archive from a shared archive.
10434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10435
10436 # Create a temporary old-style archive to link instead of a shared archive.
10437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10438
10439 # Commands used to build and install a shared archive.
10440 archive_cmds=$lt_archive_cmds
10441 archive_expsym_cmds=$lt_archive_expsym_cmds
10442 postinstall_cmds=$lt_postinstall_cmds
10443 postuninstall_cmds=$lt_postuninstall_cmds
10444
10445 # Commands used to build a loadable module (assumed same as above if empty)
10446 module_cmds=$lt_module_cmds
10447 module_expsym_cmds=$lt_module_expsym_cmds
10448
10449 # Commands to strip libraries.
10450 old_striplib=$lt_old_striplib
10451 striplib=$lt_striplib
10452
10453 # Dependencies to place before the objects being linked to create a
10454 # shared library.
10455 predep_objects=$lt_predep_objects
10456
10457 # Dependencies to place after the objects being linked to create a
10458 # shared library.
10459 postdep_objects=$lt_postdep_objects
10460
10461 # Dependencies to place before the objects being linked to create a
10462 # shared library.
10463 predeps=$lt_predeps
10464
10465 # Dependencies to place after the objects being linked to create a
10466 # shared library.
10467 postdeps=$lt_postdeps
10468
10469 # The library search path used internally by the compiler when linking
10470 # a shared library.
10471 compiler_lib_search_path=$lt_compiler_lib_search_path
10472
10473 # Method to check whether dependent libraries are shared objects.
10474 deplibs_check_method=$lt_deplibs_check_method
10475
10476 # Command to use when deplibs_check_method == file_magic.
10477 file_magic_cmd=$lt_file_magic_cmd
10478
10479 # Flag that allows shared libraries with undefined symbols to be built.
10480 allow_undefined_flag=$lt_allow_undefined_flag
10481
10482 # Flag that forces no undefined symbols.
10483 no_undefined_flag=$lt_no_undefined_flag
10484
10485 # Commands used to finish a libtool library installation in a directory.
10486 finish_cmds=$lt_finish_cmds
10487
10488 # Same as above, but a single script fragment to be evaled but not shown.
10489 finish_eval=$lt_finish_eval
10490
10491 # Take the output of nm and produce a listing of raw symbols and C names.
10492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10493
10494 # Transform the output of nm in a proper C declaration
10495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10496
10497 # Transform the output of nm in a C name address pair
10498 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10499
10500 # This is the shared library runtime path variable.
10501 runpath_var=$runpath_var
10502
10503 # This is the shared library path variable.
10504 shlibpath_var=$shlibpath_var
10505
10506 # Is shlibpath searched before the hard-coded library search path?
10507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10508
10509 # How to hardcode a shared library path into an executable.
10510 hardcode_action=$hardcode_action
10511
10512 # Whether we should hardcode library paths into libraries.
10513 hardcode_into_libs=$hardcode_into_libs
10514
10515 # Flag to hardcode \$libdir into a binary during linking.
10516 # This must work even if \$libdir does not exist.
10517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10518
10519 # If ld is used when linking, flag to hardcode \$libdir into
10520 # a binary during linking. This must work even if \$libdir does
10521 # not exist.
10522 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10523
10524 # Whether we need a single -rpath flag with a separated argument.
10525 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10526
10527 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10528 # resulting binary.
10529 hardcode_direct=$hardcode_direct
10530
10531 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10532 # resulting binary.
10533 hardcode_minus_L=$hardcode_minus_L
10534
10535 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10536 # the resulting binary.
10537 hardcode_shlibpath_var=$hardcode_shlibpath_var
10538
10539 # Set to yes if building a shared library automatically hardcodes DIR into the library
10540 # and all subsequent libraries and executables linked against it.
10541 hardcode_automatic=$hardcode_automatic
10542
10543 # Variables whose values should be saved in libtool wrapper scripts and
10544 # restored at relink time.
10545 variables_saved_for_relink="$variables_saved_for_relink"
10546
10547 # Whether libtool must link a program against all its dependency libraries.
10548 link_all_deplibs=$link_all_deplibs
10549
10550 # Compile-time system search path for libraries
10551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10552
10553 # Run-time system search path for libraries
10554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10555
10556 # Fix the shell variable \$srcfile for the compiler.
10557 fix_srcfile_path="$fix_srcfile_path"
10558
10559 # Set to yes if exported symbols are required.
10560 always_export_symbols=$always_export_symbols
10561
10562 # The commands to list exported symbols.
10563 export_symbols_cmds=$lt_export_symbols_cmds
10564
10565 # The commands to extract the exported symbol list from a shared archive.
10566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10567
10568 # Symbols that should not be listed in the preloaded symbols.
10569 exclude_expsyms=$lt_exclude_expsyms
10570
10571 # Symbols that must always be exported.
10572 include_expsyms=$lt_include_expsyms
10573
10574 # ### END LIBTOOL CONFIG
10575
10576 __EOF__
10577
10578
10579 case $host_os in
10580 aix3*)
10581 cat <<\EOF >> "$cfgfile"
10582
10583 # AIX sometimes has problems with the GCC collect2 program. For some
10584 # reason, if we set the COLLECT_NAMES environment variable, the problems
10585 # vanish in a puff of smoke.
10586 if test "X${COLLECT_NAMES+set}" != Xset; then
10587 COLLECT_NAMES=
10588 export COLLECT_NAMES
10589 fi
10590 EOF
10591 ;;
10592 esac
10593
10594 # We use sed instead of cat because bash on DJGPP gets confused if
10595 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10596 # text mode, it properly converts lines to CR/LF. This bash problem
10597 # is reportedly fixed, but why not run on old versions too?
10598 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10599
10600 mv -f "$cfgfile" "$ofile" || \
10601 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10602 chmod +x "$ofile"
10603
10604 else
10605 # If there is no Makefile yet, we rely on a make rule to execute
10606 # `config.status --recheck' to rerun these tests and create the
10607 # libtool script then.
10608 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10609 if test -f "$ltmain_in"; then
10610 test -f Makefile && make "$ltmain"
10611 fi
10612 fi
10613
10614
10615 ac_ext=c
10616 ac_cpp='$CPP $CPPFLAGS'
10617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10620
10621 CC="$lt_save_CC"
10622
10623
10624 # Check whether --with-tags was given.
10625 if test "${with_tags+set}" = set; then
10626 withval=$with_tags; tagnames="$withval"
10627 fi
10628
10629
10630 if test -f "$ltmain" && test -n "$tagnames"; then
10631 if test ! -f "${ofile}"; then
10632 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10633 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10634 fi
10635
10636 if test -z "$LTCC"; then
10637 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10638 if test -z "$LTCC"; then
10639 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10640 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10641 else
10642 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10643 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10644 fi
10645 fi
10646 if test -z "$LTCFLAGS"; then
10647 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10648 fi
10649
10650 # Extract list of available tagged configurations in $ofile.
10651 # Note that this assumes the entire list is on one line.
10652 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10653
10654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10655 for tagname in $tagnames; do
10656 IFS="$lt_save_ifs"
10657 # Check whether tagname contains only valid characters
10658 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10659 "") ;;
10660 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10661 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10662 { (exit 1); exit 1; }; }
10663 ;;
10664 esac
10665
10666 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10667 then
10668 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10669 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10670 { (exit 1); exit 1; }; }
10671 fi
10672
10673 # Update the list of available tags.
10674 if test -n "$tagname"; then
10675 echo appending configuration tag \"$tagname\" to $ofile
10676
10677 case $tagname in
10678 CXX)
10679 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10680 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10681 (test "X$CXX" != "Xg++"))) ; then
10682 ac_ext=cpp
10683 ac_cpp='$CXXCPP $CPPFLAGS'
10684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10687
10688
10689
10690
10691 archive_cmds_need_lc_CXX=no
10692 allow_undefined_flag_CXX=
10693 always_export_symbols_CXX=no
10694 archive_expsym_cmds_CXX=
10695 export_dynamic_flag_spec_CXX=
10696 hardcode_direct_CXX=no
10697 hardcode_libdir_flag_spec_CXX=
10698 hardcode_libdir_flag_spec_ld_CXX=
10699 hardcode_libdir_separator_CXX=
10700 hardcode_minus_L_CXX=no
10701 hardcode_shlibpath_var_CXX=unsupported
10702 hardcode_automatic_CXX=no
10703 module_cmds_CXX=
10704 module_expsym_cmds_CXX=
10705 link_all_deplibs_CXX=unknown
10706 old_archive_cmds_CXX=$old_archive_cmds
10707 no_undefined_flag_CXX=
10708 whole_archive_flag_spec_CXX=
10709 enable_shared_with_static_runtimes_CXX=no
10710
10711 # Dependencies to place before and after the object being linked:
10712 predep_objects_CXX=
10713 postdep_objects_CXX=
10714 predeps_CXX=
10715 postdeps_CXX=
10716 compiler_lib_search_path_CXX=
10717
10718 # Source file extension for C++ test sources.
10719 ac_ext=cpp
10720
10721 # Object file extension for compiled C++ test sources.
10722 objext=o
10723 objext_CXX=$objext
10724
10725 # Code to be used in simple compile tests
10726 lt_simple_compile_test_code="int some_variable = 0;\n"
10727
10728 # Code to be used in simple link tests
10729 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10730
10731 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10732
10733 # If no C compiler was specified, use CC.
10734 LTCC=${LTCC-"$CC"}
10735
10736 # If no C compiler flags were specified, use CFLAGS.
10737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10738
10739 # Allow CC to be a program name with arguments.
10740 compiler=$CC
10741
10742
10743 # save warnings/boilerplate of simple test code
10744 ac_outfile=conftest.$ac_objext
10745 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10746 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10747 _lt_compiler_boilerplate=`cat conftest.err`
10748 $rm conftest*
10749
10750 ac_outfile=conftest.$ac_objext
10751 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10752 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10753 _lt_linker_boilerplate=`cat conftest.err`
10754 $rm conftest*
10755
10756
10757 # Allow CC to be a program name with arguments.
10758 lt_save_CC=$CC
10759 lt_save_LD=$LD
10760 lt_save_GCC=$GCC
10761 GCC=$GXX
10762 lt_save_with_gnu_ld=$with_gnu_ld
10763 lt_save_path_LD=$lt_cv_path_LD
10764 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10765 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10766 else
10767 $as_unset lt_cv_prog_gnu_ld
10768 fi
10769 if test -n "${lt_cv_path_LDCXX+set}"; then
10770 lt_cv_path_LD=$lt_cv_path_LDCXX
10771 else
10772 $as_unset lt_cv_path_LD
10773 fi
10774 test -z "${LDCXX+set}" || LD=$LDCXX
10775 CC=${CXX-"c++"}
10776 compiler=$CC
10777 compiler_CXX=$CC
10778 for cc_temp in $compiler""; do
10779 case $cc_temp in
10780 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10781 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10782 \-*) ;;
10783 *) break;;
10784 esac
10785 done
10786 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10787
10788
10789 # We don't want -fno-exception wen compiling C++ code, so set the
10790 # no_builtin_flag separately
10791 if test "$GXX" = yes; then
10792 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10793 else
10794 lt_prog_compiler_no_builtin_flag_CXX=
10795 fi
10796
10797 if test "$GXX" = yes; then
10798 # Set up default GNU C++ configuration
10799
10800
10801 # Check whether --with-gnu-ld was given.
10802 if test "${with_gnu_ld+set}" = set; then
10803 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10804 else
10805 with_gnu_ld=no
10806 fi
10807
10808 ac_prog=ld
10809 if test "$GCC" = yes; then
10810 # Check if gcc -print-prog-name=ld gives a path.
10811 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10812 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10813 case $host in
10814 *-*-mingw*)
10815 # gcc leaves a trailing carriage return which upsets mingw
10816 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10817 *)
10818 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10819 esac
10820 case $ac_prog in
10821 # Accept absolute paths.
10822 [\\/]* | ?:[\\/]*)
10823 re_direlt='/[^/][^/]*/\.\./'
10824 # Canonicalize the pathname of ld
10825 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10826 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10827 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10828 done
10829 test -z "$LD" && LD="$ac_prog"
10830 ;;
10831 "")
10832 # If it fails, then pretend we aren't using GCC.
10833 ac_prog=ld
10834 ;;
10835 *)
10836 # If it is relative, then search for the first ld in PATH.
10837 with_gnu_ld=unknown
10838 ;;
10839 esac
10840 elif test "$with_gnu_ld" = yes; then
10841 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10842 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10843 else
10844 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10845 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10846 fi
10847 if test "${lt_cv_path_LD+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850 if test -z "$LD"; then
10851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10852 for ac_dir in $PATH; do
10853 IFS="$lt_save_ifs"
10854 test -z "$ac_dir" && ac_dir=.
10855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10856 lt_cv_path_LD="$ac_dir/$ac_prog"
10857 # Check to see if the program is GNU ld. I'd rather use --version,
10858 # but apparently some variants of GNU ld only accept -v.
10859 # Break only if it was the GNU/non-GNU ld that we prefer.
10860 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10861 *GNU* | *'with BFD'*)
10862 test "$with_gnu_ld" != no && break
10863 ;;
10864 *)
10865 test "$with_gnu_ld" != yes && break
10866 ;;
10867 esac
10868 fi
10869 done
10870 IFS="$lt_save_ifs"
10871 else
10872 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10873 fi
10874 fi
10875
10876 LD="$lt_cv_path_LD"
10877 if test -n "$LD"; then
10878 { echo "$as_me:$LINENO: result: $LD" >&5
10879 echo "${ECHO_T}$LD" >&6; }
10880 else
10881 { echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6; }
10883 fi
10884 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10885 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10886 { (exit 1); exit 1; }; }
10887 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10888 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10889 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10893 case `$LD -v 2>&1 </dev/null` in
10894 *GNU* | *'with BFD'*)
10895 lt_cv_prog_gnu_ld=yes
10896 ;;
10897 *)
10898 lt_cv_prog_gnu_ld=no
10899 ;;
10900 esac
10901 fi
10902 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10903 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10904 with_gnu_ld=$lt_cv_prog_gnu_ld
10905
10906
10907
10908 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10909 # archiving commands below assume that GNU ld is being used.
10910 if test "$with_gnu_ld" = yes; then
10911 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10912 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10913
10914 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10915 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10916
10917 # If archive_cmds runs LD, not CC, wlarc should be empty
10918 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10919 # investigate it a little bit more. (MM)
10920 wlarc='${wl}'
10921
10922 # ancient GNU ld didn't support --whole-archive et. al.
10923 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10924 grep 'no-whole-archive' > /dev/null; then
10925 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10926 else
10927 whole_archive_flag_spec_CXX=
10928 fi
10929 else
10930 with_gnu_ld=no
10931 wlarc=
10932
10933 # A generic and very simple default shared library creation
10934 # command for GNU C++ for the case where it uses the native
10935 # linker, instead of GNU ld. If possible, this setting should
10936 # overridden to take advantage of the native linker features on
10937 # the platform it is being used on.
10938 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10939 fi
10940
10941 # Commands to make compiler produce verbose output that lists
10942 # what "hidden" libraries, object files and flags are used when
10943 # linking a shared library.
10944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10945
10946 else
10947 GXX=no
10948 with_gnu_ld=no
10949 wlarc=
10950 fi
10951
10952 # PORTME: fill in a description of your system's C++ link characteristics
10953 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10954 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10955 ld_shlibs_CXX=yes
10956 case $host_os in
10957 aix3*)
10958 # FIXME: insert proper C++ library support
10959 ld_shlibs_CXX=no
10960 ;;
10961 aix4* | aix5*)
10962 if test "$host_cpu" = ia64; then
10963 # On IA64, the linker does run time linking by default, so we don't
10964 # have to do anything special.
10965 aix_use_runtimelinking=no
10966 exp_sym_flag='-Bexport'
10967 no_entry_flag=""
10968 else
10969 aix_use_runtimelinking=no
10970
10971 # Test if we are trying to use run time linking or normal
10972 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10973 # need to do runtime linking.
10974 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10975 for ld_flag in $LDFLAGS; do
10976 case $ld_flag in
10977 *-brtl*)
10978 aix_use_runtimelinking=yes
10979 break
10980 ;;
10981 esac
10982 done
10983 ;;
10984 esac
10985
10986 exp_sym_flag='-bexport'
10987 no_entry_flag='-bnoentry'
10988 fi
10989
10990 # When large executables or shared objects are built, AIX ld can
10991 # have problems creating the table of contents. If linking a library
10992 # or program results in "error TOC overflow" add -mminimal-toc to
10993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10995
10996 archive_cmds_CXX=''
10997 hardcode_direct_CXX=yes
10998 hardcode_libdir_separator_CXX=':'
10999 link_all_deplibs_CXX=yes
11000
11001 if test "$GXX" = yes; then
11002 case $host_os in aix4.[012]|aix4.[012].*)
11003 # We only want to do this on AIX 4.2 and lower, the check
11004 # below for broken collect2 doesn't work under 4.3+
11005 collect2name=`${CC} -print-prog-name=collect2`
11006 if test -f "$collect2name" && \
11007 strings "$collect2name" | grep resolve_lib_name >/dev/null
11008 then
11009 # We have reworked collect2
11010 hardcode_direct_CXX=yes
11011 else
11012 # We have old collect2
11013 hardcode_direct_CXX=unsupported
11014 # It fails to find uninstalled libraries when the uninstalled
11015 # path is not listed in the libpath. Setting hardcode_minus_L
11016 # to unsupported forces relinking
11017 hardcode_minus_L_CXX=yes
11018 hardcode_libdir_flag_spec_CXX='-L$libdir'
11019 hardcode_libdir_separator_CXX=
11020 fi
11021 ;;
11022 esac
11023 shared_flag='-shared'
11024 if test "$aix_use_runtimelinking" = yes; then
11025 shared_flag="$shared_flag "'${wl}-G'
11026 fi
11027 else
11028 # not using gcc
11029 if test "$host_cpu" = ia64; then
11030 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11031 # chokes on -Wl,-G. The following line is correct:
11032 shared_flag='-G'
11033 else
11034 if test "$aix_use_runtimelinking" = yes; then
11035 shared_flag='${wl}-G'
11036 else
11037 shared_flag='${wl}-bM:SRE'
11038 fi
11039 fi
11040 fi
11041
11042 # It seems that -bexpall does not export symbols beginning with
11043 # underscore (_), so it is better to generate a list of symbols to export.
11044 always_export_symbols_CXX=yes
11045 if test "$aix_use_runtimelinking" = yes; then
11046 # Warning - without using the other runtime loading flags (-brtl),
11047 # -berok will link without error, but may produce a broken library.
11048 allow_undefined_flag_CXX='-berok'
11049 # Determine the default libpath from the value encoded in an empty executable.
11050 cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h. */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056
11057 int
11058 main ()
11059 {
11060
11061 ;
11062 return 0;
11063 }
11064 _ACEOF
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (ac_try="$ac_link"
11067 case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11070 esac
11071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072 (eval "$ac_link") 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && {
11079 test -z "$ac_cxx_werror_flag" ||
11080 test ! -s conftest.err
11081 } && test -s conftest$ac_exeext &&
11082 $as_test_x conftest$ac_exeext; then
11083
11084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11085 }'`
11086 # Check for a 64-bit object if we didn't find anything.
11087 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11088 }'`; fi
11089 else
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11092
11093
11094 fi
11095
11096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11097 conftest$ac_exeext conftest.$ac_ext
11098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11099
11100 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11101
11102 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11103 else
11104 if test "$host_cpu" = ia64; then
11105 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11106 allow_undefined_flag_CXX="-z nodefs"
11107 archive_expsym_cmds_CXX="\$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"
11108 else
11109 # Determine the default libpath from the value encoded in an empty executable.
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h. */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116
11117 int
11118 main ()
11119 {
11120
11121 ;
11122 return 0;
11123 }
11124 _ACEOF
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (ac_try="$ac_link"
11127 case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130 esac
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_link") 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && {
11139 test -z "$ac_cxx_werror_flag" ||
11140 test ! -s conftest.err
11141 } && test -s conftest$ac_exeext &&
11142 $as_test_x conftest$ac_exeext; then
11143
11144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11145 }'`
11146 # Check for a 64-bit object if we didn't find anything.
11147 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11148 }'`; fi
11149 else
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11152
11153
11154 fi
11155
11156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11157 conftest$ac_exeext conftest.$ac_ext
11158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11159
11160 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11161 # Warning - without using the other run time loading flags,
11162 # -berok will link without error, but may produce a broken library.
11163 no_undefined_flag_CXX=' ${wl}-bernotok'
11164 allow_undefined_flag_CXX=' ${wl}-berok'
11165 # Exported symbols can be pulled into shared objects from archives
11166 whole_archive_flag_spec_CXX='$convenience'
11167 archive_cmds_need_lc_CXX=yes
11168 # This is similar to how AIX traditionally builds its shared libraries.
11169 archive_expsym_cmds_CXX="\$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'
11170 fi
11171 fi
11172 ;;
11173
11174 beos*)
11175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11176 allow_undefined_flag_CXX=unsupported
11177 # Joseph Beckenbach <[email protected]> says some releases of gcc
11178 # support --undefined. This deserves some investigation. FIXME
11179 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11180 else
11181 ld_shlibs_CXX=no
11182 fi
11183 ;;
11184
11185 chorus*)
11186 case $cc_basename in
11187 *)
11188 # FIXME: insert proper C++ library support
11189 ld_shlibs_CXX=no
11190 ;;
11191 esac
11192 ;;
11193
11194 cygwin* | mingw* | pw32*)
11195 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11196 # as there is no search path for DLLs.
11197 hardcode_libdir_flag_spec_CXX='-L$libdir'
11198 allow_undefined_flag_CXX=unsupported
11199 always_export_symbols_CXX=no
11200 enable_shared_with_static_runtimes_CXX=yes
11201
11202 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11203 archive_cmds_CXX='$CC -LD -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker'
11204 # If the export-symbols file already is a .def file (1st line
11205 # is EXPORTS), use it as is; otherwise, prepend...
11206 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11207 cp $export_symbols $output_objdir/$soname.def;
11208 else
11209 echo EXPORTS > $output_objdir/$soname.def;
11210 cat $export_symbols >> $output_objdir/$soname.def;
11211 fi~
11212
11213 $CC -LD -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker '
11214 else
11215 ld_shlibs_CXX=no
11216 fi
11217 ;;
11218 darwin* | rhapsody*)
11219 case $host_os in
11220 rhapsody* | darwin1.[012])
11221 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11222 ;;
11223 *) # Darwin 1.3 on
11224 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11225 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11226 else
11227 case ${MACOSX_DEPLOYMENT_TARGET} in
11228 10.[012])
11229 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11230 ;;
11231 10.*)
11232 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11233 ;;
11234 esac
11235 fi
11236 ;;
11237 esac
11238 archive_cmds_need_lc_CXX=no
11239 hardcode_direct_CXX=no
11240 hardcode_automatic_CXX=yes
11241 hardcode_shlibpath_var_CXX=unsupported
11242 whole_archive_flag_spec_CXX=''
11243 link_all_deplibs_CXX=yes
11244
11245 if test "$GXX" = yes ; then
11246 lt_int_apple_cc_single_mod=no
11247 output_verbose_link_cmd='echo'
11248 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11249 lt_int_apple_cc_single_mod=yes
11250 fi
11251 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11252 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11253 else
11254 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11255 fi
11256 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11258 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11259 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11260 else
11261 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11262 fi
11263 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11264 else
11265 case $cc_basename in
11266 xlc*)
11267 output_verbose_link_cmd='echo'
11268 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11269 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11270 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11271 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11272 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11273 ;;
11274 *)
11275 ld_shlibs_CXX=no
11276 ;;
11277 esac
11278 fi
11279 ;;
11280
11281 dgux*)
11282 case $cc_basename in
11283 ec++*)
11284 # FIXME: insert proper C++ library support
11285 ld_shlibs_CXX=no
11286 ;;
11287 ghcx*)
11288 # Green Hills C++ Compiler
11289 # FIXME: insert proper C++ library support
11290 ld_shlibs_CXX=no
11291 ;;
11292 *)
11293 # FIXME: insert proper C++ library support
11294 ld_shlibs_CXX=no
11295 ;;
11296 esac
11297 ;;
11298 freebsd[12]*)
11299 # C++ shared libraries reported to be fairly broken before switch to ELF
11300 ld_shlibs_CXX=no
11301 ;;
11302 freebsd-elf*)
11303 archive_cmds_need_lc_CXX=no
11304 ;;
11305 freebsd* | kfreebsd*-gnu | dragonfly*)
11306 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11307 # conventions
11308 ld_shlibs_CXX=yes
11309 ;;
11310 gnu*)
11311 ;;
11312 hpux9*)
11313 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11314 hardcode_libdir_separator_CXX=:
11315 export_dynamic_flag_spec_CXX='${wl}-E'
11316 hardcode_direct_CXX=yes
11317 hardcode_minus_L_CXX=yes # Not in the search PATH,
11318 # but as the default
11319 # location of the library.
11320
11321 case $cc_basename in
11322 CC*)
11323 # FIXME: insert proper C++ library support
11324 ld_shlibs_CXX=no
11325 ;;
11326 aCC*)
11327 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11328 # Commands to make compiler produce verbose output that lists
11329 # what "hidden" libraries, object files and flags are used when
11330 # linking a shared library.
11331 #
11332 # There doesn't appear to be a way to prevent this compiler from
11333 # explicitly linking system object files so we need to strip them
11334 # from the output so that they don't get included in the library
11335 # dependencies.
11336 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11337 ;;
11338 *)
11339 if test "$GXX" = yes; then
11340 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11341 else
11342 # FIXME: insert proper C++ library support
11343 ld_shlibs_CXX=no
11344 fi
11345 ;;
11346 esac
11347 ;;
11348 hpux10*|hpux11*)
11349 if test $with_gnu_ld = no; then
11350 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11351 hardcode_libdir_separator_CXX=:
11352
11353 case $host_cpu in
11354 hppa*64*|ia64*)
11355 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11356 ;;
11357 *)
11358 export_dynamic_flag_spec_CXX='${wl}-E'
11359 ;;
11360 esac
11361 fi
11362 case $host_cpu in
11363 hppa*64*|ia64*)
11364 hardcode_direct_CXX=no
11365 hardcode_shlibpath_var_CXX=no
11366 ;;
11367 *)
11368 hardcode_direct_CXX=yes
11369 hardcode_minus_L_CXX=yes # Not in the search PATH,
11370 # but as the default
11371 # location of the library.
11372 ;;
11373 esac
11374
11375 case $cc_basename in
11376 CC*)
11377 # FIXME: insert proper C++ library support
11378 ld_shlibs_CXX=no
11379 ;;
11380 aCC*)
11381 case $host_cpu in
11382 hppa*64*)
11383 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11384 ;;
11385 ia64*)
11386 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11387 ;;
11388 *)
11389 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11390 ;;
11391 esac
11392 # Commands to make compiler produce verbose output that lists
11393 # what "hidden" libraries, object files and flags are used when
11394 # linking a shared library.
11395 #
11396 # There doesn't appear to be a way to prevent this compiler from
11397 # explicitly linking system object files so we need to strip them
11398 # from the output so that they don't get included in the library
11399 # dependencies.
11400 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11401 ;;
11402 *)
11403 if test "$GXX" = yes; then
11404 if test $with_gnu_ld = no; then
11405 case $host_cpu in
11406 hppa*64*)
11407 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11408 ;;
11409 ia64*)
11410 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11411 ;;
11412 *)
11413 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11414 ;;
11415 esac
11416 fi
11417 else
11418 # FIXME: insert proper C++ library support
11419 ld_shlibs_CXX=no
11420 fi
11421 ;;
11422 esac
11423 ;;
11424 interix3*)
11425 hardcode_direct_CXX=no
11426 hardcode_shlibpath_var_CXX=no
11427 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11428 export_dynamic_flag_spec_CXX='${wl}-E'
11429 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11430 # Instead, shared libraries are loaded at an image base (0x10000000 by
11431 # default) and relocated if they conflict, which is a slow very memory
11432 # consuming and fragmenting process. To avoid this, we pick a random,
11433 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11434 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11435 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11436 archive_expsym_cmds_CXX='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'
11437 ;;
11438 irix5* | irix6*)
11439 case $cc_basename in
11440 CC*)
11441 # SGI C++
11442 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11443
11444 # Archives containing C++ object files must be created using
11445 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11446 # necessary to make sure instantiated templates are included
11447 # in the archive.
11448 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11449 ;;
11450 *)
11451 if test "$GXX" = yes; then
11452 if test "$with_gnu_ld" = no; then
11453 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11454 else
11455 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11456 fi
11457 fi
11458 link_all_deplibs_CXX=yes
11459 ;;
11460 esac
11461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11462 hardcode_libdir_separator_CXX=:
11463 ;;
11464 linux*)
11465 case $cc_basename in
11466 KCC*)
11467 # Kuck and Associates, Inc. (KAI) C++ Compiler
11468
11469 # KCC will only create a shared library if the output file
11470 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11471 # to its proper name (with version) after linking.
11472 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11473 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11474 # Commands to make compiler produce verbose output that lists
11475 # what "hidden" libraries, object files and flags are used when
11476 # linking a shared library.
11477 #
11478 # There doesn't appear to be a way to prevent this compiler from
11479 # explicitly linking system object files so we need to strip them
11480 # from the output so that they don't get included in the library
11481 # dependencies.
11482 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11483
11484 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11486
11487 # Archives containing C++ object files must be created using
11488 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11489 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11490 ;;
11491 icpc*)
11492 # Intel C++
11493 with_gnu_ld=yes
11494 # version 8.0 and above of icpc choke on multiply defined symbols
11495 # if we add $predep_objects and $postdep_objects, however 7.1 and
11496 # earlier do not add the objects themselves.
11497 case `$CC -V 2>&1` in
11498 *"Version 7."*)
11499 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11500 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11501 ;;
11502 *) # Version 8.0 or newer
11503 tmp_idyn=
11504 case $host_cpu in
11505 ia64*) tmp_idyn=' -i_dynamic';;
11506 esac
11507 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11508 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11509 ;;
11510 esac
11511 archive_cmds_need_lc_CXX=no
11512 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11513 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11514 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11515 ;;
11516 pgCC*)
11517 # Portland Group C++ compiler
11518 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11519 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11520
11521 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11522 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11523 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11524 ;;
11525 cxx*)
11526 # Compaq C++
11527 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11528 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11529
11530 runpath_var=LD_RUN_PATH
11531 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11532 hardcode_libdir_separator_CXX=:
11533
11534 # Commands to make compiler produce verbose output that lists
11535 # what "hidden" libraries, object files and flags are used when
11536 # linking a shared library.
11537 #
11538 # There doesn't appear to be a way to prevent this compiler from
11539 # explicitly linking system object files so we need to strip them
11540 # from the output so that they don't get included in the library
11541 # dependencies.
11542 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11543 ;;
11544 esac
11545 ;;
11546 lynxos*)
11547 # FIXME: insert proper C++ library support
11548 ld_shlibs_CXX=no
11549 ;;
11550 m88k*)
11551 # FIXME: insert proper C++ library support
11552 ld_shlibs_CXX=no
11553 ;;
11554 mvs*)
11555 case $cc_basename in
11556 cxx*)
11557 # FIXME: insert proper C++ library support
11558 ld_shlibs_CXX=no
11559 ;;
11560 *)
11561 # FIXME: insert proper C++ library support
11562 ld_shlibs_CXX=no
11563 ;;
11564 esac
11565 ;;
11566 netbsd*)
11567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11568 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11569 wlarc=
11570 hardcode_libdir_flag_spec_CXX='-R$libdir'
11571 hardcode_direct_CXX=yes
11572 hardcode_shlibpath_var_CXX=no
11573 fi
11574 # Workaround some broken pre-1.5 toolchains
11575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11576 ;;
11577 openbsd2*)
11578 # C++ shared libraries are fairly broken
11579 ld_shlibs_CXX=no
11580 ;;
11581 openbsd*)
11582 hardcode_direct_CXX=yes
11583 hardcode_shlibpath_var_CXX=no
11584 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11587 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11588 export_dynamic_flag_spec_CXX='${wl}-E'
11589 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11590 fi
11591 output_verbose_link_cmd='echo'
11592 ;;
11593 osf3*)
11594 case $cc_basename in
11595 KCC*)
11596 # Kuck and Associates, Inc. (KAI) C++ Compiler
11597
11598 # KCC will only create a shared library if the output file
11599 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11600 # to its proper name (with version) after linking.
11601 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11602
11603 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11604 hardcode_libdir_separator_CXX=:
11605
11606 # Archives containing C++ object files must be created using
11607 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11608 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11609
11610 ;;
11611 RCC*)
11612 # Rational C++ 2.4.1
11613 # FIXME: insert proper C++ library support
11614 ld_shlibs_CXX=no
11615 ;;
11616 cxx*)
11617 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11618 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11619
11620 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11621 hardcode_libdir_separator_CXX=:
11622
11623 # Commands to make compiler produce verbose output that lists
11624 # what "hidden" libraries, object files and flags are used when
11625 # linking a shared library.
11626 #
11627 # There doesn't appear to be a way to prevent this compiler from
11628 # explicitly linking system object files so we need to strip them
11629 # from the output so that they don't get included in the library
11630 # dependencies.
11631 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11632 ;;
11633 *)
11634 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11635 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11636 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11637
11638 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11639 hardcode_libdir_separator_CXX=:
11640
11641 # Commands to make compiler produce verbose output that lists
11642 # what "hidden" libraries, object files and flags are used when
11643 # linking a shared library.
11644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11645
11646 else
11647 # FIXME: insert proper C++ library support
11648 ld_shlibs_CXX=no
11649 fi
11650 ;;
11651 esac
11652 ;;
11653 osf4* | osf5*)
11654 case $cc_basename in
11655 KCC*)
11656 # Kuck and Associates, Inc. (KAI) C++ Compiler
11657
11658 # KCC will only create a shared library if the output file
11659 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11660 # to its proper name (with version) after linking.
11661 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11662
11663 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11664 hardcode_libdir_separator_CXX=:
11665
11666 # Archives containing C++ object files must be created using
11667 # the KAI C++ compiler.
11668 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11669 ;;
11670 RCC*)
11671 # Rational C++ 2.4.1
11672 # FIXME: insert proper C++ library support
11673 ld_shlibs_CXX=no
11674 ;;
11675 cxx*)
11676 allow_undefined_flag_CXX=' -expect_unresolved \*'
11677 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11678 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11679 echo "-hidden">> $lib.exp~
11680 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11681 $rm $lib.exp'
11682
11683 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11684 hardcode_libdir_separator_CXX=:
11685
11686 # Commands to make compiler produce verbose output that lists
11687 # what "hidden" libraries, object files and flags are used when
11688 # linking a shared library.
11689 #
11690 # There doesn't appear to be a way to prevent this compiler from
11691 # explicitly linking system object files so we need to strip them
11692 # from the output so that they don't get included in the library
11693 # dependencies.
11694 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11695 ;;
11696 *)
11697 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11698 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11699 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11700
11701 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11702 hardcode_libdir_separator_CXX=:
11703
11704 # Commands to make compiler produce verbose output that lists
11705 # what "hidden" libraries, object files and flags are used when
11706 # linking a shared library.
11707 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11708
11709 else
11710 # FIXME: insert proper C++ library support
11711 ld_shlibs_CXX=no
11712 fi
11713 ;;
11714 esac
11715 ;;
11716 psos*)
11717 # FIXME: insert proper C++ library support
11718 ld_shlibs_CXX=no
11719 ;;
11720 sunos4*)
11721 case $cc_basename in
11722 CC*)
11723 # Sun C++ 4.x
11724 # FIXME: insert proper C++ library support
11725 ld_shlibs_CXX=no
11726 ;;
11727 lcc*)
11728 # Lucid
11729 # FIXME: insert proper C++ library support
11730 ld_shlibs_CXX=no
11731 ;;
11732 *)
11733 # FIXME: insert proper C++ library support
11734 ld_shlibs_CXX=no
11735 ;;
11736 esac
11737 ;;
11738 solaris*)
11739 case $cc_basename in
11740 CC*)
11741 # Sun C++ 4.2, 5.x and Centerline C++
11742 archive_cmds_need_lc_CXX=yes
11743 no_undefined_flag_CXX=' -zdefs'
11744 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11745 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11746 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11747
11748 hardcode_libdir_flag_spec_CXX='-R$libdir'
11749 hardcode_shlibpath_var_CXX=no
11750 case $host_os in
11751 solaris2.[0-5] | solaris2.[0-5].*) ;;
11752 *)
11753 # The C++ compiler is used as linker so we must use $wl
11754 # flag to pass the commands to the underlying system
11755 # linker. We must also pass each convience library through
11756 # to the system linker between allextract/defaultextract.
11757 # The C++ compiler will combine linker options so we
11758 # cannot just pass the convience library names through
11759 # without $wl.
11760 # Supported since Solaris 2.6 (maybe 2.5.1?)
11761 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11762 ;;
11763 esac
11764 link_all_deplibs_CXX=yes
11765
11766 output_verbose_link_cmd='echo'
11767
11768 # Archives containing C++ object files must be created using
11769 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11770 # necessary to make sure instantiated templates are included
11771 # in the archive.
11772 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11773 ;;
11774 gcx*)
11775 # Green Hills C++ Compiler
11776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11777
11778 # The C++ compiler must be used to create the archive.
11779 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11780 ;;
11781 *)
11782 # GNU C++ compiler with Solaris linker
11783 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11784 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11785 if $CC --version | grep -v '^2\.7' > /dev/null; then
11786 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11787 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11788 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11789
11790 # Commands to make compiler produce verbose output that lists
11791 # what "hidden" libraries, object files and flags are used when
11792 # linking a shared library.
11793 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11794 else
11795 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11796 # platform.
11797 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11798 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11799 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11800
11801 # Commands to make compiler produce verbose output that lists
11802 # what "hidden" libraries, object files and flags are used when
11803 # linking a shared library.
11804 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11805 fi
11806
11807 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11808 fi
11809 ;;
11810 esac
11811 ;;
11812 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11813 no_undefined_flag_CXX='${wl}-z,text'
11814 archive_cmds_need_lc_CXX=no
11815 hardcode_shlibpath_var_CXX=no
11816 runpath_var='LD_RUN_PATH'
11817
11818 case $cc_basename in
11819 CC*)
11820 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11821 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11822 ;;
11823 *)
11824 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11825 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11826 ;;
11827 esac
11828 ;;
11829 sysv5* | sco3.2v5* | sco5v6*)
11830 # Note: We can NOT use -z defs as we might desire, because we do not
11831 # link with -lc, and that would cause any symbols used from libc to
11832 # always be unresolved, which means just about no library would
11833 # ever link correctly. If we're not using GNU ld we use -z text
11834 # though, which does catch some bad symbols but isn't as heavy-handed
11835 # as -z defs.
11836 # For security reasons, it is highly recommended that you always
11837 # use absolute paths for naming shared libraries, and exclude the
11838 # DT_RUNPATH tag from executables and libraries. But doing so
11839 # requires that you compile everything twice, which is a pain.
11840 # So that behaviour is only enabled if SCOABSPATH is set to a
11841 # non-empty value in the environment. Most likely only useful for
11842 # creating official distributions of packages.
11843 # This is a hack until libtool officially supports absolute path
11844 # names for shared libraries.
11845 no_undefined_flag_CXX='${wl}-z,text'
11846 allow_undefined_flag_CXX='${wl}-z,nodefs'
11847 archive_cmds_need_lc_CXX=no
11848 hardcode_shlibpath_var_CXX=no
11849 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11850 hardcode_libdir_separator_CXX=':'
11851 link_all_deplibs_CXX=yes
11852 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11853 runpath_var='LD_RUN_PATH'
11854
11855 case $cc_basename in
11856 CC*)
11857 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11858 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11859 ;;
11860 *)
11861 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11862 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11863 ;;
11864 esac
11865 ;;
11866 tandem*)
11867 case $cc_basename in
11868 NCC*)
11869 # NonStop-UX NCC 3.20
11870 # FIXME: insert proper C++ library support
11871 ld_shlibs_CXX=no
11872 ;;
11873 *)
11874 # FIXME: insert proper C++ library support
11875 ld_shlibs_CXX=no
11876 ;;
11877 esac
11878 ;;
11879 vxworks*)
11880 # FIXME: insert proper C++ library support
11881 ld_shlibs_CXX=no
11882 ;;
11883 *)
11884 # FIXME: insert proper C++ library support
11885 ld_shlibs_CXX=no
11886 ;;
11887 esac
11888 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11889 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11890 test "$ld_shlibs_CXX" = no && can_build_shared=no
11891
11892 GCC_CXX="$GXX"
11893 LD_CXX="$LD"
11894
11895
11896 cat > conftest.$ac_ext <<EOF
11897 class Foo
11898 {
11899 public:
11900 Foo (void) { a = 0; }
11901 private:
11902 int a;
11903 };
11904 EOF
11905
11906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11907 (eval $ac_compile) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; then
11911 # Parse the compiler output and extract the necessary
11912 # objects, libraries and library flags.
11913
11914 # Sentinel used to keep track of whether or not we are before
11915 # the conftest object file.
11916 pre_test_object_deps_done=no
11917
11918 # The `*' in the case matches for architectures that use `case' in
11919 # $output_verbose_cmd can trigger glob expansion during the loop
11920 # eval without this substitution.
11921 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11922
11923 for p in `eval $output_verbose_link_cmd`; do
11924 case $p in
11925
11926 -L* | -R* | -l*)
11927 # Some compilers place space between "-{L,R}" and the path.
11928 # Remove the space.
11929 if test $p = "-L" \
11930 || test $p = "-R"; then
11931 prev=$p
11932 continue
11933 else
11934 prev=
11935 fi
11936
11937 if test "$pre_test_object_deps_done" = no; then
11938 case $p in
11939 -L* | -R*)
11940 # Internal compiler library paths should come after those
11941 # provided the user. The postdeps already come after the
11942 # user supplied libs so there is no need to process them.
11943 if test -z "$compiler_lib_search_path_CXX"; then
11944 compiler_lib_search_path_CXX="${prev}${p}"
11945 else
11946 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11947 fi
11948 ;;
11949 # The "-l" case would never come before the object being
11950 # linked, so don't bother handling this case.
11951 esac
11952 else
11953 if test -z "$postdeps_CXX"; then
11954 postdeps_CXX="${prev}${p}"
11955 else
11956 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11957 fi
11958 fi
11959 ;;
11960
11961 *.$objext)
11962 # This assumes that the test object file only shows up
11963 # once in the compiler output.
11964 if test "$p" = "conftest.$objext"; then
11965 pre_test_object_deps_done=yes
11966 continue
11967 fi
11968
11969 if test "$pre_test_object_deps_done" = no; then
11970 if test -z "$predep_objects_CXX"; then
11971 predep_objects_CXX="$p"
11972 else
11973 predep_objects_CXX="$predep_objects_CXX $p"
11974 fi
11975 else
11976 if test -z "$postdep_objects_CXX"; then
11977 postdep_objects_CXX="$p"
11978 else
11979 postdep_objects_CXX="$postdep_objects_CXX $p"
11980 fi
11981 fi
11982 ;;
11983
11984 *) ;; # Ignore the rest.
11985
11986 esac
11987 done
11988
11989 # Clean up.
11990 rm -f a.out a.exe
11991 else
11992 echo "libtool.m4: error: problem compiling CXX test program"
11993 fi
11994
11995 $rm -f confest.$objext
11996
11997 # PORTME: override above test on systems where it is broken
11998 case $host_os in
11999 interix3*)
12000 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12001 # hack all around it, let's just trust "g++" to DTRT.
12002 predep_objects_CXX=
12003 postdep_objects_CXX=
12004 postdeps_CXX=
12005 ;;
12006
12007 solaris*)
12008 case $cc_basename in
12009 CC*)
12010 # Adding this requires a known-good setup of shared libraries for
12011 # Sun compiler versions before 5.6, else PIC objects from an old
12012 # archive will be linked into the output, leading to subtle bugs.
12013 postdeps_CXX='-lCstd -lCrun'
12014 ;;
12015 esac
12016 ;;
12017 esac
12018
12019
12020 case " $postdeps_CXX " in
12021 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12022 esac
12023
12024 lt_prog_compiler_wl_CXX=
12025 lt_prog_compiler_pic_CXX=
12026 lt_prog_compiler_static_CXX=
12027
12028 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12029 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12030
12031 # C++ specific cases for pic, static, wl, etc.
12032 if test "$GXX" = yes; then
12033 lt_prog_compiler_wl_CXX='-Wl,'
12034 lt_prog_compiler_static_CXX='-static'
12035
12036 case $host_os in
12037 aix*)
12038 # All AIX code is PIC.
12039 if test "$host_cpu" = ia64; then
12040 # AIX 5 now supports IA64 processor
12041 lt_prog_compiler_static_CXX='-Bstatic'
12042 fi
12043 ;;
12044 amigaos*)
12045 # FIXME: we need at least 68020 code to build shared libraries, but
12046 # adding the `-m68020' flag to GCC prevents building anything better,
12047 # like `-m68040'.
12048 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12049 ;;
12050 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12051 # PIC is the default for these OSes.
12052 ;;
12053 mingw* | os2* | pw32*)
12054 # This hack is so that the source file can tell whether it is being
12055 # built for inclusion in a dll (and should export symbols for example).
12056 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12057 ;;
12058 darwin* | rhapsody*)
12059 # PIC is the default on this platform
12060 # Common symbols not allowed in MH_DYLIB files
12061 lt_prog_compiler_pic_CXX='-fno-common'
12062 ;;
12063 *djgpp*)
12064 # DJGPP does not support shared libraries at all
12065 lt_prog_compiler_pic_CXX=
12066 ;;
12067 interix3*)
12068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12069 # Instead, we relocate shared libraries at runtime.
12070 ;;
12071 sysv4*MP*)
12072 if test -d /usr/nec; then
12073 lt_prog_compiler_pic_CXX=-Kconform_pic
12074 fi
12075 ;;
12076 hpux*)
12077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12078 # not for PA HP-UX.
12079 case $host_cpu in
12080 hppa*64*|ia64*)
12081 ;;
12082 *)
12083 lt_prog_compiler_pic_CXX='-fPIC'
12084 ;;
12085 esac
12086 ;;
12087 *)
12088 lt_prog_compiler_pic_CXX='-fPIC'
12089 ;;
12090 esac
12091 else
12092 case $host_os in
12093 aix4* | aix5*)
12094 # All AIX code is PIC.
12095 if test "$host_cpu" = ia64; then
12096 # AIX 5 now supports IA64 processor
12097 lt_prog_compiler_static_CXX='-Bstatic'
12098 else
12099 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12100 fi
12101 ;;
12102 chorus*)
12103 case $cc_basename in
12104 cxch68*)
12105 # Green Hills C++ Compiler
12106 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12107 ;;
12108 esac
12109 ;;
12110 darwin*)
12111 # PIC is the default on this platform
12112 # Common symbols not allowed in MH_DYLIB files
12113 case $cc_basename in
12114 xlc*)
12115 lt_prog_compiler_pic_CXX='-qnocommon'
12116 lt_prog_compiler_wl_CXX='-Wl,'
12117 ;;
12118 esac
12119 ;;
12120 dgux*)
12121 case $cc_basename in
12122 ec++*)
12123 lt_prog_compiler_pic_CXX='-KPIC'
12124 ;;
12125 ghcx*)
12126 # Green Hills C++ Compiler
12127 lt_prog_compiler_pic_CXX='-pic'
12128 ;;
12129 *)
12130 ;;
12131 esac
12132 ;;
12133 freebsd* | kfreebsd*-gnu | dragonfly*)
12134 # FreeBSD uses GNU C++
12135 ;;
12136 hpux9* | hpux10* | hpux11*)
12137 case $cc_basename in
12138 CC*)
12139 lt_prog_compiler_wl_CXX='-Wl,'
12140 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12141 if test "$host_cpu" != ia64; then
12142 lt_prog_compiler_pic_CXX='+Z'
12143 fi
12144 ;;
12145 aCC*)
12146 lt_prog_compiler_wl_CXX='-Wl,'
12147 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12148 case $host_cpu in
12149 hppa*64*|ia64*)
12150 # +Z the default
12151 ;;
12152 *)
12153 lt_prog_compiler_pic_CXX='+Z'
12154 ;;
12155 esac
12156 ;;
12157 *)
12158 ;;
12159 esac
12160 ;;
12161 interix*)
12162 # This is c89, which is MS Visual C++ (no shared libs)
12163 # Anyone wants to do a port?
12164 ;;
12165 irix5* | irix6* | nonstopux*)
12166 case $cc_basename in
12167 CC*)
12168 lt_prog_compiler_wl_CXX='-Wl,'
12169 lt_prog_compiler_static_CXX='-non_shared'
12170 # CC pic flag -KPIC is the default.
12171 ;;
12172 *)
12173 ;;
12174 esac
12175 ;;
12176 linux*)
12177 case $cc_basename in
12178 KCC*)
12179 # KAI C++ Compiler
12180 lt_prog_compiler_wl_CXX='--backend -Wl,'
12181 lt_prog_compiler_pic_CXX='-fPIC'
12182 ;;
12183 icpc* | ecpc*)
12184 # Intel C++
12185 lt_prog_compiler_wl_CXX='-Wl,'
12186 lt_prog_compiler_pic_CXX='-KPIC'
12187 lt_prog_compiler_static_CXX='-static'
12188 ;;
12189 pgCC*)
12190 # Portland Group C++ compiler.
12191 lt_prog_compiler_wl_CXX='-Wl,'
12192 lt_prog_compiler_pic_CXX='-fpic'
12193 lt_prog_compiler_static_CXX='-Bstatic'
12194 ;;
12195 cxx*)
12196 # Compaq C++
12197 # Make sure the PIC flag is empty. It appears that all Alpha
12198 # Linux and Compaq Tru64 Unix objects are PIC.
12199 lt_prog_compiler_pic_CXX=
12200 lt_prog_compiler_static_CXX='-non_shared'
12201 ;;
12202 *)
12203 ;;
12204 esac
12205 ;;
12206 lynxos*)
12207 ;;
12208 m88k*)
12209 ;;
12210 mvs*)
12211 case $cc_basename in
12212 cxx*)
12213 lt_prog_compiler_pic_CXX='-W c,exportall'
12214 ;;
12215 *)
12216 ;;
12217 esac
12218 ;;
12219 netbsd*)
12220 ;;
12221 osf3* | osf4* | osf5*)
12222 case $cc_basename in
12223 KCC*)
12224 lt_prog_compiler_wl_CXX='--backend -Wl,'
12225 ;;
12226 RCC*)
12227 # Rational C++ 2.4.1
12228 lt_prog_compiler_pic_CXX='-pic'
12229 ;;
12230 cxx*)
12231 # Digital/Compaq C++
12232 lt_prog_compiler_wl_CXX='-Wl,'
12233 # Make sure the PIC flag is empty. It appears that all Alpha
12234 # Linux and Compaq Tru64 Unix objects are PIC.
12235 lt_prog_compiler_pic_CXX=
12236 lt_prog_compiler_static_CXX='-non_shared'
12237 ;;
12238 *)
12239 ;;
12240 esac
12241 ;;
12242 psos*)
12243 ;;
12244 solaris*)
12245 case $cc_basename in
12246 CC*)
12247 # Sun C++ 4.2, 5.x and Centerline C++
12248 lt_prog_compiler_pic_CXX='-KPIC'
12249 lt_prog_compiler_static_CXX='-Bstatic'
12250 lt_prog_compiler_wl_CXX='-Qoption ld '
12251 ;;
12252 gcx*)
12253 # Green Hills C++ Compiler
12254 lt_prog_compiler_pic_CXX='-PIC'
12255 ;;
12256 *)
12257 ;;
12258 esac
12259 ;;
12260 sunos4*)
12261 case $cc_basename in
12262 CC*)
12263 # Sun C++ 4.x
12264 lt_prog_compiler_pic_CXX='-pic'
12265 lt_prog_compiler_static_CXX='-Bstatic'
12266 ;;
12267 lcc*)
12268 # Lucid
12269 lt_prog_compiler_pic_CXX='-pic'
12270 ;;
12271 *)
12272 ;;
12273 esac
12274 ;;
12275 tandem*)
12276 case $cc_basename in
12277 NCC*)
12278 # NonStop-UX NCC 3.20
12279 lt_prog_compiler_pic_CXX='-KPIC'
12280 ;;
12281 *)
12282 ;;
12283 esac
12284 ;;
12285 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12286 case $cc_basename in
12287 CC*)
12288 lt_prog_compiler_wl_CXX='-Wl,'
12289 lt_prog_compiler_pic_CXX='-KPIC'
12290 lt_prog_compiler_static_CXX='-Bstatic'
12291 ;;
12292 esac
12293 ;;
12294 vxworks*)
12295 ;;
12296 *)
12297 lt_prog_compiler_can_build_shared_CXX=no
12298 ;;
12299 esac
12300 fi
12301
12302 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12303 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12304
12305 #
12306 # Check to make sure the PIC flag actually works.
12307 #
12308 if test -n "$lt_prog_compiler_pic_CXX"; then
12309
12310 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12311 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12312 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315 lt_prog_compiler_pic_works_CXX=no
12316 ac_outfile=conftest.$ac_objext
12317 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12318 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12319 # Insert the option either (1) after the last *FLAGS variable, or
12320 # (2) before a word containing "conftest.", or (3) at the end.
12321 # Note that $ac_compile itself does not contain backslashes and begins
12322 # with a dollar sign (not a hyphen), so the echo should work correctly.
12323 # The option is referenced via a variable to avoid confusing sed.
12324 lt_compile=`echo "$ac_compile" | $SED \
12325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12327 -e 's:$: $lt_compiler_flag:'`
12328 (eval echo "\"\$as_me:12328: $lt_compile\"" >&5)
12329 (eval "$lt_compile" 2>conftest.err)
12330 ac_status=$?
12331 cat conftest.err >&5
12332 echo "$as_me:12332: \$? = $ac_status" >&5
12333 if (exit $ac_status) && test -s "$ac_outfile"; then
12334 # The compiler can only warn and ignore the option if not recognized
12335 # So say no if there are warnings other than the usual output.
12336 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12339 lt_prog_compiler_pic_works_CXX=yes
12340 fi
12341 fi
12342 $rm conftest*
12343
12344 fi
12345 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12346 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12347
12348 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12349 case $lt_prog_compiler_pic_CXX in
12350 "" | " "*) ;;
12351 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12352 esac
12353 else
12354 lt_prog_compiler_pic_CXX=
12355 lt_prog_compiler_can_build_shared_CXX=no
12356 fi
12357
12358 fi
12359 case $host_os in
12360 # For platforms which do not support PIC, -DPIC is meaningless:
12361 *djgpp*)
12362 lt_prog_compiler_pic_CXX=
12363 ;;
12364 *)
12365 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12366 ;;
12367 esac
12368
12369 #
12370 # Check to make sure the static flag actually works.
12371 #
12372 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12373 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12374 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12375 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378 lt_prog_compiler_static_works_CXX=no
12379 save_LDFLAGS="$LDFLAGS"
12380 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12381 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12383 # The linker can only warn and ignore the option if not recognized
12384 # So say no if there are warnings
12385 if test -s conftest.err; then
12386 # Append any errors to the config.log.
12387 cat conftest.err 1>&5
12388 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12390 if diff conftest.exp conftest.er2 >/dev/null; then
12391 lt_prog_compiler_static_works_CXX=yes
12392 fi
12393 else
12394 lt_prog_compiler_static_works_CXX=yes
12395 fi
12396 fi
12397 $rm conftest*
12398 LDFLAGS="$save_LDFLAGS"
12399
12400 fi
12401 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12402 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12403
12404 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12405 :
12406 else
12407 lt_prog_compiler_static_CXX=
12408 fi
12409
12410
12411 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12412 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12413 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416 lt_cv_prog_compiler_c_o_CXX=no
12417 $rm -r conftest 2>/dev/null
12418 mkdir conftest
12419 cd conftest
12420 mkdir out
12421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12422
12423 lt_compiler_flag="-o out/conftest2.$ac_objext"
12424 # Insert the option either (1) after the last *FLAGS variable, or
12425 # (2) before a word containing "conftest.", or (3) at the end.
12426 # Note that $ac_compile itself does not contain backslashes and begins
12427 # with a dollar sign (not a hyphen), so the echo should work correctly.
12428 lt_compile=`echo "$ac_compile" | $SED \
12429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12431 -e 's:$: $lt_compiler_flag:'`
12432 (eval echo "\"\$as_me:12432: $lt_compile\"" >&5)
12433 (eval "$lt_compile" 2>out/conftest.err)
12434 ac_status=$?
12435 cat out/conftest.err >&5
12436 echo "$as_me:12436: \$? = $ac_status" >&5
12437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12438 then
12439 # The compiler can only warn and ignore the option if not recognized
12440 # So say no if there are warnings
12441 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12444 lt_cv_prog_compiler_c_o_CXX=yes
12445 fi
12446 fi
12447 chmod u+w . 2>&5
12448 $rm conftest*
12449 # SGI C++ compiler will create directory out/ii_files/ for
12450 # template instantiation
12451 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12452 $rm out/* && rmdir out
12453 cd ..
12454 rmdir conftest
12455 $rm conftest*
12456
12457 fi
12458 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12459 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12460
12461
12462 hard_links="nottested"
12463 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12464 # do not overwrite the value of need_locks provided by the user
12465 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12466 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12467 hard_links=yes
12468 $rm conftest*
12469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12470 touch conftest.a
12471 ln conftest.a conftest.b 2>&5 || hard_links=no
12472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12473 { echo "$as_me:$LINENO: result: $hard_links" >&5
12474 echo "${ECHO_T}$hard_links" >&6; }
12475 if test "$hard_links" = no; then
12476 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12477 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12478 need_locks=warn
12479 fi
12480 else
12481 need_locks=no
12482 fi
12483
12484 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12485 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12486
12487 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12488 case $host_os in
12489 aix4* | aix5*)
12490 # If we're using GNU nm, then we don't want the "-C" option.
12491 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12492 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12493 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12494 else
12495 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12496 fi
12497 ;;
12498 pw32*)
12499 export_symbols_cmds_CXX="$ltdll_cmds"
12500 ;;
12501 cygwin* | mingw*)
12502 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12503 ;;
12504 *)
12505 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12506 ;;
12507 esac
12508
12509 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12510 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12511 test "$ld_shlibs_CXX" = no && can_build_shared=no
12512
12513 #
12514 # Do we need to explicitly link libc?
12515 #
12516 case "x$archive_cmds_need_lc_CXX" in
12517 x|xyes)
12518 # Assume -lc should be added
12519 archive_cmds_need_lc_CXX=yes
12520
12521 if test "$enable_shared" = yes && test "$GCC" = yes; then
12522 case $archive_cmds_CXX in
12523 *'~'*)
12524 # FIXME: we may have to deal with multi-command sequences.
12525 ;;
12526 '$CC '*)
12527 # Test whether the compiler implicitly links with -lc since on some
12528 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12529 # to ld, don't add -lc before -lgcc.
12530 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12531 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12532 $rm conftest*
12533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12534
12535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12536 (eval $ac_compile) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } 2>conftest.err; then
12540 soname=conftest
12541 lib=conftest
12542 libobjs=conftest.$ac_objext
12543 deplibs=
12544 wl=$lt_prog_compiler_wl_CXX
12545 pic_flag=$lt_prog_compiler_pic_CXX
12546 compiler_flags=-v
12547 linker_flags=-v
12548 verstring=
12549 output_objdir=.
12550 libname=conftest
12551 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12552 allow_undefined_flag_CXX=
12553 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12554 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }
12558 then
12559 archive_cmds_need_lc_CXX=no
12560 else
12561 archive_cmds_need_lc_CXX=yes
12562 fi
12563 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12564 else
12565 cat conftest.err 1>&5
12566 fi
12567 $rm conftest*
12568 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12569 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12570 ;;
12571 esac
12572 fi
12573 ;;
12574 esac
12575
12576 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12577 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12578 library_names_spec=
12579 libname_spec='lib$name'
12580 soname_spec=
12581 shrext=".so"
12582 postinstall_cmds=
12583 postuninstall_cmds=
12584 finish_cmds=
12585 finish_eval=
12586 shlibpath_var=
12587 shlibpath_overrides_runpath=unknown
12588 version_type=none
12589 dynamic_linker="$host_os ld.so"
12590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12591 if test "$GCC" = yes; then
12592 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12593 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12594 # if the path contains ";" then we assume it to be the separator
12595 # otherwise default to the standard path separator (i.e. ":") - it is
12596 # assumed that no part of a normal pathname contains ";" but that should
12597 # okay in the real world where ";" in dirpaths is itself problematic.
12598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12599 else
12600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12601 fi
12602 else
12603 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12604 fi
12605 need_lib_prefix=unknown
12606 hardcode_into_libs=no
12607
12608 # when you set need_version to no, make sure it does not cause -set_version
12609 # flags to be left without arguments
12610 need_version=unknown
12611
12612 case $host_os in
12613 aix3*)
12614 version_type=linux
12615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12616 shlibpath_var=LIBPATH
12617
12618 # AIX 3 has no versioning support, so we append a major version to the name.
12619 soname_spec='${libname}${release}${shared_ext}$major'
12620 ;;
12621
12622 aix4* | aix5*)
12623 version_type=linux
12624 need_lib_prefix=no
12625 need_version=no
12626 hardcode_into_libs=yes
12627 if test "$host_cpu" = ia64; then
12628 # AIX 5 supports IA64
12629 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12630 shlibpath_var=LD_LIBRARY_PATH
12631 else
12632 # With GCC up to 2.95.x, collect2 would create an import file
12633 # for dependence libraries. The import file would start with
12634 # the line `#! .'. This would cause the generated library to
12635 # depend on `.', always an invalid library. This was fixed in
12636 # development snapshots of GCC prior to 3.0.
12637 case $host_os in
12638 aix4 | aix4.[01] | aix4.[01].*)
12639 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12640 echo ' yes '
12641 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12642 :
12643 else
12644 can_build_shared=no
12645 fi
12646 ;;
12647 esac
12648 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12649 # soname into executable. Probably we can add versioning support to
12650 # collect2, so additional links can be useful in future.
12651 if test "$aix_use_runtimelinking" = yes; then
12652 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12653 # instead of lib<name>.a to let people know that these are not
12654 # typical AIX shared libraries.
12655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656 else
12657 # We preserve .a as extension for shared libraries through AIX4.2
12658 # and later when we are not doing run time linking.
12659 library_names_spec='${libname}${release}.a $libname.a'
12660 soname_spec='${libname}${release}${shared_ext}$major'
12661 fi
12662 shlibpath_var=LIBPATH
12663 fi
12664 ;;
12665
12666 amigaos*)
12667 library_names_spec='$libname.ixlibrary $libname.a'
12668 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12669 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'
12670 ;;
12671
12672 beos*)
12673 library_names_spec='${libname}${shared_ext}'
12674 dynamic_linker="$host_os ld.so"
12675 shlibpath_var=LIBRARY_PATH
12676 ;;
12677
12678 bsdi[45]*)
12679 version_type=linux
12680 need_version=no
12681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12682 soname_spec='${libname}${release}${shared_ext}$major'
12683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12684 shlibpath_var=LD_LIBRARY_PATH
12685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12687 # the default ld.so.conf also contains /usr/contrib/lib and
12688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12689 # libtool to hard-code these into programs
12690 ;;
12691
12692 cygwin* | mingw* | pw32*)
12693 version_type=windows
12694 shrext=".dll"
12695 need_version=no
12696 need_lib_prefix=no
12697
12698 case $GCC,$host_os in
12699 yes,cygwin* | yes,mingw* | yes,pw32*)
12700 library_names_spec='$libname.dll.a'
12701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12702 postinstall_cmds='base_file=`basename \${file}`~
12703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12704 dldir=$destdir/`dirname \$dlpath`~
12705 test -d \$dldir || mkdir -p \$dldir~
12706 $install_prog $dir/$dlname \$dldir/$dlname~
12707 chmod a+x \$dldir/$dlname'
12708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12709 dlpath=$dir/\$dldll~
12710 $rm \$dlpath'
12711 shlibpath_overrides_runpath=yes
12712
12713 case $host_os in
12714 cygwin*)
12715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12716 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12717 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12718 ;;
12719 mingw*)
12720 # MinGW DLLs use traditional 'lib' prefix
12721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12723 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12724 # It is most probably a Windows format PATH printed by
12725 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12726 # path with ; separators, and with drive letters. We can handle the
12727 # drive letters (cygwin fileutils understands them), so leave them,
12728 # especially as we might pass files found there to a mingw objdump,
12729 # which wouldn't understand a cygwinified path. Ahh.
12730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12731 else
12732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12733 fi
12734 ;;
12735 pw32*)
12736 # pw32 DLLs use 'pw' prefix rather than 'lib'
12737 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12738 ;;
12739 esac
12740 ;;
12741
12742 *)
12743 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12744 ;;
12745 esac
12746 dynamic_linker='Win32 ld.exe'
12747 # FIXME: first we should search . and the directory the executable is in
12748 shlibpath_var=PATH
12749 ;;
12750
12751 darwin* | rhapsody*)
12752 dynamic_linker="$host_os dyld"
12753 version_type=darwin
12754 need_lib_prefix=no
12755 need_version=no
12756 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12757 soname_spec='${libname}${release}${major}$shared_ext'
12758 shlibpath_overrides_runpath=yes
12759 shlibpath_var=DYLD_LIBRARY_PATH
12760 shrext='`test .$module = .yes && echo .so || echo .dylib`'
12761 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12762 if test "$GCC" = yes; then
12763 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12764 else
12765 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12766 fi
12767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12768 ;;
12769
12770 dgux*)
12771 version_type=linux
12772 need_lib_prefix=no
12773 need_version=no
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12775 soname_spec='${libname}${release}${shared_ext}$major'
12776 shlibpath_var=LD_LIBRARY_PATH
12777 ;;
12778
12779 freebsd1*)
12780 dynamic_linker=no
12781 ;;
12782
12783 kfreebsd*-gnu)
12784 version_type=linux
12785 need_lib_prefix=no
12786 need_version=no
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12788 soname_spec='${libname}${release}${shared_ext}$major'
12789 shlibpath_var=LD_LIBRARY_PATH
12790 shlibpath_overrides_runpath=no
12791 hardcode_into_libs=yes
12792 dynamic_linker='GNU ld.so'
12793 ;;
12794
12795 freebsd* | dragonfly*)
12796 # DragonFly does not have aout. When/if they implement a new
12797 # versioning mechanism, adjust this.
12798 if test -x /usr/bin/objformat; then
12799 objformat=`/usr/bin/objformat`
12800 else
12801 case $host_os in
12802 freebsd[123]*) objformat=aout ;;
12803 *) objformat=elf ;;
12804 esac
12805 fi
12806 version_type=freebsd-$objformat
12807 case $version_type in
12808 freebsd-elf*)
12809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12810 need_version=no
12811 need_lib_prefix=no
12812 ;;
12813 freebsd-*)
12814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12815 need_version=yes
12816 ;;
12817 esac
12818 shlibpath_var=LD_LIBRARY_PATH
12819 case $host_os in
12820 freebsd2*)
12821 shlibpath_overrides_runpath=yes
12822 ;;
12823 freebsd3.[01]* | freebsdelf3.[01]*)
12824 shlibpath_overrides_runpath=yes
12825 hardcode_into_libs=yes
12826 ;;
12827 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12828 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12829 shlibpath_overrides_runpath=no
12830 hardcode_into_libs=yes
12831 ;;
12832 freebsd*) # from 4.6 on
12833 shlibpath_overrides_runpath=yes
12834 hardcode_into_libs=yes
12835 ;;
12836 esac
12837 ;;
12838
12839 gnu*)
12840 version_type=linux
12841 need_lib_prefix=no
12842 need_version=no
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12844 soname_spec='${libname}${release}${shared_ext}$major'
12845 shlibpath_var=LD_LIBRARY_PATH
12846 hardcode_into_libs=yes
12847 ;;
12848
12849 hpux9* | hpux10* | hpux11*)
12850 # Give a soname corresponding to the major version so that dld.sl refuses to
12851 # link against other versions.
12852 version_type=sunos
12853 need_lib_prefix=no
12854 need_version=no
12855 case $host_cpu in
12856 ia64*)
12857 shrext='.so'
12858 hardcode_into_libs=yes
12859 dynamic_linker="$host_os dld.so"
12860 shlibpath_var=LD_LIBRARY_PATH
12861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12863 soname_spec='${libname}${release}${shared_ext}$major'
12864 if test "X$HPUX_IA64_MODE" = X32; then
12865 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12866 else
12867 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12868 fi
12869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12870 ;;
12871 hppa*64*)
12872 shrext='.sl'
12873 hardcode_into_libs=yes
12874 dynamic_linker="$host_os dld.sl"
12875 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12878 soname_spec='${libname}${release}${shared_ext}$major'
12879 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12881 ;;
12882 *)
12883 shrext='.sl'
12884 dynamic_linker="$host_os dld.sl"
12885 shlibpath_var=SHLIB_PATH
12886 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 ;;
12890 esac
12891 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12892 postinstall_cmds='chmod 555 $lib'
12893 ;;
12894
12895 interix3*)
12896 version_type=linux
12897 need_lib_prefix=no
12898 need_version=no
12899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12900 soname_spec='${libname}${release}${shared_ext}$major'
12901 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12902 shlibpath_var=LD_LIBRARY_PATH
12903 shlibpath_overrides_runpath=no
12904 hardcode_into_libs=yes
12905 ;;
12906
12907 irix5* | irix6* | nonstopux*)
12908 case $host_os in
12909 nonstopux*) version_type=nonstopux ;;
12910 *)
12911 if test "$lt_cv_prog_gnu_ld" = yes; then
12912 version_type=linux
12913 else
12914 version_type=irix
12915 fi ;;
12916 esac
12917 need_lib_prefix=no
12918 need_version=no
12919 soname_spec='${libname}${release}${shared_ext}$major'
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12921 case $host_os in
12922 irix5* | nonstopux*)
12923 libsuff= shlibsuff=
12924 ;;
12925 *)
12926 case $LD in # libtool.m4 will add one of these switches to LD
12927 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12928 libsuff= shlibsuff= libmagic=32-bit;;
12929 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12930 libsuff=32 shlibsuff=N32 libmagic=N32;;
12931 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12932 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12933 *) libsuff= shlibsuff= libmagic=never-match;;
12934 esac
12935 ;;
12936 esac
12937 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12938 shlibpath_overrides_runpath=no
12939 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12940 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12941 hardcode_into_libs=yes
12942 ;;
12943
12944 # No shared lib support for Linux oldld, aout, or coff.
12945 linux*oldld* | linux*aout* | linux*coff*)
12946 dynamic_linker=no
12947 ;;
12948
12949 # This must be Linux ELF.
12950 linux*)
12951 version_type=linux
12952 need_lib_prefix=no
12953 need_version=no
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955 soname_spec='${libname}${release}${shared_ext}$major'
12956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12957 shlibpath_var=LD_LIBRARY_PATH
12958 shlibpath_overrides_runpath=no
12959 # This implies no fast_install, which is unacceptable.
12960 # Some rework will be needed to allow for fast_install
12961 # before this can be enabled.
12962 hardcode_into_libs=yes
12963
12964 # find out which ABI we are using
12965 libsuff=
12966 case "$host_cpu" in
12967 x86_64*|s390x*|powerpc64*)
12968 echo '#line 12968 "configure"' > conftest.$ac_ext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970 (eval $ac_compile) 2>&5
12971 ac_status=$?
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; then
12974 case `/usr/bin/file conftest.$ac_objext` in
12975 *64-bit*)
12976 libsuff=64
12977 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12978 ;;
12979 esac
12980 fi
12981 rm -rf conftest*
12982 ;;
12983 esac
12984
12985 # Append ld.so.conf contents to the search path
12986 if test -f /etc/ld.so.conf; then
12987 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12988 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12989 fi
12990
12991 # We used to test for /lib/ld.so.1 and disable shared libraries on
12992 # powerpc, because MkLinux only supported shared libraries with the
12993 # GNU dynamic linker. Since this was broken with cross compilers,
12994 # most powerpc-linux boxes support dynamic linking these days and
12995 # people can always --disable-shared, the test was removed, and we
12996 # assume the GNU/Linux dynamic linker is in use.
12997 dynamic_linker='GNU/Linux ld.so'
12998 ;;
12999
13000 knetbsd*-gnu)
13001 version_type=linux
13002 need_lib_prefix=no
13003 need_version=no
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath=no
13008 hardcode_into_libs=yes
13009 dynamic_linker='GNU ld.so'
13010 ;;
13011
13012 netbsd*)
13013 version_type=sunos
13014 need_lib_prefix=no
13015 need_version=no
13016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13019 dynamic_linker='NetBSD (a.out) ld.so'
13020 else
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13022 soname_spec='${libname}${release}${shared_ext}$major'
13023 dynamic_linker='NetBSD ld.elf_so'
13024 fi
13025 shlibpath_var=LD_LIBRARY_PATH
13026 shlibpath_overrides_runpath=yes
13027 hardcode_into_libs=yes
13028 ;;
13029
13030 newsos6)
13031 version_type=linux
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 shlibpath_overrides_runpath=yes
13035 ;;
13036
13037 nto-qnx*)
13038 version_type=linux
13039 need_lib_prefix=no
13040 need_version=no
13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13042 soname_spec='${libname}${release}${shared_ext}$major'
13043 shlibpath_var=LD_LIBRARY_PATH
13044 shlibpath_overrides_runpath=yes
13045 ;;
13046
13047 openbsd*)
13048 version_type=sunos
13049 sys_lib_dlsearch_path_spec="/usr/lib"
13050 need_lib_prefix=no
13051 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13052 case $host_os in
13053 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13054 *) need_version=no ;;
13055 esac
13056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13058 shlibpath_var=LD_LIBRARY_PATH
13059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13060 case $host_os in
13061 openbsd2.[89] | openbsd2.[89].*)
13062 shlibpath_overrides_runpath=no
13063 ;;
13064 *)
13065 shlibpath_overrides_runpath=yes
13066 ;;
13067 esac
13068 else
13069 shlibpath_overrides_runpath=yes
13070 fi
13071 ;;
13072
13073 os2*)
13074 libname_spec='$name'
13075 shrext=".dll"
13076 need_lib_prefix=no
13077 library_names_spec='$libname${shared_ext} $libname.a'
13078 dynamic_linker='OS/2 ld.exe'
13079 shlibpath_var=LIBPATH
13080 ;;
13081
13082 osf3* | osf4* | osf5*)
13083 version_type=osf
13084 need_lib_prefix=no
13085 need_version=no
13086 soname_spec='${libname}${release}${shared_ext}$major'
13087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13088 shlibpath_var=LD_LIBRARY_PATH
13089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13091 ;;
13092
13093 solaris*)
13094 version_type=linux
13095 need_lib_prefix=no
13096 need_version=no
13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13098 soname_spec='${libname}${release}${shared_ext}$major'
13099 shlibpath_var=LD_LIBRARY_PATH
13100 shlibpath_overrides_runpath=yes
13101 hardcode_into_libs=yes
13102 # ldd complains unless libraries are executable
13103 postinstall_cmds='chmod +x $lib'
13104 ;;
13105
13106 sunos4*)
13107 version_type=sunos
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13109 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13110 shlibpath_var=LD_LIBRARY_PATH
13111 shlibpath_overrides_runpath=yes
13112 if test "$with_gnu_ld" = yes; then
13113 need_lib_prefix=no
13114 fi
13115 need_version=yes
13116 ;;
13117
13118 sysv4 | sysv4.3*)
13119 version_type=linux
13120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13121 soname_spec='${libname}${release}${shared_ext}$major'
13122 shlibpath_var=LD_LIBRARY_PATH
13123 case $host_vendor in
13124 sni)
13125 shlibpath_overrides_runpath=no
13126 need_lib_prefix=no
13127 export_dynamic_flag_spec='${wl}-Blargedynsym'
13128 runpath_var=LD_RUN_PATH
13129 ;;
13130 siemens)
13131 need_lib_prefix=no
13132 ;;
13133 motorola)
13134 need_lib_prefix=no
13135 need_version=no
13136 shlibpath_overrides_runpath=no
13137 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13138 ;;
13139 esac
13140 ;;
13141
13142 sysv4*MP*)
13143 if test -d /usr/nec ;then
13144 version_type=linux
13145 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13146 soname_spec='$libname${shared_ext}.$major'
13147 shlibpath_var=LD_LIBRARY_PATH
13148 fi
13149 ;;
13150
13151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13152 version_type=freebsd-elf
13153 need_lib_prefix=no
13154 need_version=no
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13156 soname_spec='${libname}${release}${shared_ext}$major'
13157 shlibpath_var=LD_LIBRARY_PATH
13158 hardcode_into_libs=yes
13159 if test "$with_gnu_ld" = yes; then
13160 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13161 shlibpath_overrides_runpath=no
13162 else
13163 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13164 shlibpath_overrides_runpath=yes
13165 case $host_os in
13166 sco3.2v5*)
13167 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13168 ;;
13169 esac
13170 fi
13171 sys_lib_dlsearch_path_spec='/usr/lib'
13172 ;;
13173
13174 uts4*)
13175 version_type=linux
13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177 soname_spec='${libname}${release}${shared_ext}$major'
13178 shlibpath_var=LD_LIBRARY_PATH
13179 ;;
13180
13181 *)
13182 dynamic_linker=no
13183 ;;
13184 esac
13185 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13186 echo "${ECHO_T}$dynamic_linker" >&6; }
13187 test "$dynamic_linker" = no && can_build_shared=no
13188
13189 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13190 if test "$GCC" = yes; then
13191 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13192 fi
13193
13194 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13195 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13196 hardcode_action_CXX=
13197 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13198 test -n "$runpath_var_CXX" || \
13199 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13200
13201 # We can hardcode non-existant directories.
13202 if test "$hardcode_direct_CXX" != no &&
13203 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13204 # have to relink, otherwise we might link with an installed library
13205 # when we should be linking with a yet-to-be-installed one
13206 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13207 test "$hardcode_minus_L_CXX" != no; then
13208 # Linking always hardcodes the temporary library directory.
13209 hardcode_action_CXX=relink
13210 else
13211 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13212 hardcode_action_CXX=immediate
13213 fi
13214 else
13215 # We cannot hardcode anything, or else we can only hardcode existing
13216 # directories.
13217 hardcode_action_CXX=unsupported
13218 fi
13219 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13220 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13221
13222 if test "$hardcode_action_CXX" = relink; then
13223 # Fast installation is not supported
13224 enable_fast_install=no
13225 elif test "$shlibpath_overrides_runpath" = yes ||
13226 test "$enable_shared" = no; then
13227 # Fast installation is not necessary
13228 enable_fast_install=needless
13229 fi
13230
13231
13232 # The else clause should only fire when bootstrapping the
13233 # libtool distribution, otherwise you forgot to ship ltmain.sh
13234 # with your package, and you will get complaints that there are
13235 # no rules to generate ltmain.sh.
13236 if test -f "$ltmain"; then
13237 # See if we are running on zsh, and set the options which allow our commands through
13238 # without removal of \ escapes.
13239 if test -n "${ZSH_VERSION+set}" ; then
13240 setopt NO_GLOB_SUBST
13241 fi
13242 # Now quote all the things that may contain metacharacters while being
13243 # careful not to overquote the AC_SUBSTed values. We take copies of the
13244 # variables and quote the copies for generation of the libtool script.
13245 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13246 SED SHELL STRIP \
13247 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13248 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13249 deplibs_check_method reload_flag reload_cmds need_locks \
13250 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13251 lt_cv_sys_global_symbol_to_c_name_address \
13252 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13253 old_postinstall_cmds old_postuninstall_cmds \
13254 compiler_CXX \
13255 CC_CXX \
13256 LD_CXX \
13257 lt_prog_compiler_wl_CXX \
13258 lt_prog_compiler_pic_CXX \
13259 lt_prog_compiler_static_CXX \
13260 lt_prog_compiler_no_builtin_flag_CXX \
13261 export_dynamic_flag_spec_CXX \
13262 thread_safe_flag_spec_CXX \
13263 whole_archive_flag_spec_CXX \
13264 enable_shared_with_static_runtimes_CXX \
13265 old_archive_cmds_CXX \
13266 old_archive_from_new_cmds_CXX \
13267 predep_objects_CXX \
13268 postdep_objects_CXX \
13269 predeps_CXX \
13270 postdeps_CXX \
13271 compiler_lib_search_path_CXX \
13272 archive_cmds_CXX \
13273 archive_expsym_cmds_CXX \
13274 postinstall_cmds_CXX \
13275 postuninstall_cmds_CXX \
13276 old_archive_from_expsyms_cmds_CXX \
13277 allow_undefined_flag_CXX \
13278 no_undefined_flag_CXX \
13279 export_symbols_cmds_CXX \
13280 hardcode_libdir_flag_spec_CXX \
13281 hardcode_libdir_flag_spec_ld_CXX \
13282 hardcode_libdir_separator_CXX \
13283 hardcode_automatic_CXX \
13284 module_cmds_CXX \
13285 module_expsym_cmds_CXX \
13286 lt_cv_prog_compiler_c_o_CXX \
13287 exclude_expsyms_CXX \
13288 include_expsyms_CXX; do
13289
13290 case $var in
13291 old_archive_cmds_CXX | \
13292 old_archive_from_new_cmds_CXX | \
13293 archive_cmds_CXX | \
13294 archive_expsym_cmds_CXX | \
13295 module_cmds_CXX | \
13296 module_expsym_cmds_CXX | \
13297 old_archive_from_expsyms_cmds_CXX | \
13298 export_symbols_cmds_CXX | \
13299 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13300 postinstall_cmds | postuninstall_cmds | \
13301 old_postinstall_cmds | old_postuninstall_cmds | \
13302 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13303 # Double-quote double-evaled strings.
13304 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13305 ;;
13306 *)
13307 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13308 ;;
13309 esac
13310 done
13311
13312 case $lt_echo in
13313 *'\$0 --fallback-echo"')
13314 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13315 ;;
13316 esac
13317
13318 cfgfile="$ofile"
13319
13320 cat <<__EOF__ >> "$cfgfile"
13321 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13322
13323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13324
13325 # Shell to use when invoking shell scripts.
13326 SHELL=$lt_SHELL
13327
13328 # Whether or not to build shared libraries.
13329 build_libtool_libs=$enable_shared
13330
13331 # Whether or not to build static libraries.
13332 build_old_libs=$enable_static
13333
13334 # Whether or not to add -lc for building shared libraries.
13335 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13336
13337 # Whether or not to disallow shared libs when runtime libs are static
13338 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13339
13340 # Whether or not to optimize for fast installation.
13341 fast_install=$enable_fast_install
13342
13343 # The host system.
13344 host_alias=$host_alias
13345 host=$host
13346 host_os=$host_os
13347
13348 # The build system.
13349 build_alias=$build_alias
13350 build=$build
13351 build_os=$build_os
13352
13353 # An echo program that does not interpret backslashes.
13354 echo=$lt_echo
13355
13356 # The archiver.
13357 AR=$lt_AR
13358 AR_FLAGS=$lt_AR_FLAGS
13359
13360 # A C compiler.
13361 LTCC=$lt_LTCC
13362
13363 # LTCC compiler flags.
13364 LTCFLAGS=$lt_LTCFLAGS
13365
13366 # A language-specific compiler.
13367 CC=$lt_compiler_CXX
13368
13369 # Is the compiler the GNU C compiler?
13370 with_gcc=$GCC_CXX
13371
13372 # An ERE matcher.
13373 EGREP=$lt_EGREP
13374
13375 # The linker used to build libraries.
13376 LD=$lt_LD_CXX
13377
13378 # Whether we need hard or soft links.
13379 LN_S=$lt_LN_S
13380
13381 # A BSD-compatible nm program.
13382 NM=$lt_NM
13383
13384 # A symbol stripping program
13385 STRIP=$lt_STRIP
13386
13387 # Used to examine libraries when file_magic_cmd begins "file"
13388 MAGIC_CMD=$MAGIC_CMD
13389
13390 # Used on cygwin: DLL creation program.
13391 DLLTOOL="$DLLTOOL"
13392
13393 # Used on cygwin: object dumper.
13394 OBJDUMP="$OBJDUMP"
13395
13396 # Used on cygwin: assembler.
13397 AS="$AS"
13398
13399 # The name of the directory that contains temporary libtool files.
13400 objdir=$objdir
13401
13402 # How to create reloadable object files.
13403 reload_flag=$lt_reload_flag
13404 reload_cmds=$lt_reload_cmds
13405
13406 # How to pass a linker flag through the compiler.
13407 wl=$lt_lt_prog_compiler_wl_CXX
13408
13409 # Object file suffix (normally "o").
13410 objext="$ac_objext"
13411
13412 # Old archive suffix (normally "a").
13413 libext="$libext"
13414
13415 # Shared library suffix (normally ".so").
13416 shrext='$shrext'
13417
13418 # Executable file suffix (normally "").
13419 exeext="$exeext"
13420
13421 # Additional compiler flags for building library objects.
13422 pic_flag=$lt_lt_prog_compiler_pic_CXX
13423 pic_mode=$pic_mode
13424
13425 # What is the maximum length of a command?
13426 max_cmd_len=$lt_cv_sys_max_cmd_len
13427
13428 # Does compiler simultaneously support -c and -o options?
13429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13430
13431 # Must we lock files when doing compilation?
13432 need_locks=$lt_need_locks
13433
13434 # Do we need the lib prefix for modules?
13435 need_lib_prefix=$need_lib_prefix
13436
13437 # Do we need a version for libraries?
13438 need_version=$need_version
13439
13440 # Whether dlopen is supported.
13441 dlopen_support=$enable_dlopen
13442
13443 # Whether dlopen of programs is supported.
13444 dlopen_self=$enable_dlopen_self
13445
13446 # Whether dlopen of statically linked programs is supported.
13447 dlopen_self_static=$enable_dlopen_self_static
13448
13449 # Compiler flag to prevent dynamic linking.
13450 link_static_flag=$lt_lt_prog_compiler_static_CXX
13451
13452 # Compiler flag to turn off builtin functions.
13453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13454
13455 # Compiler flag to allow reflexive dlopens.
13456 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13457
13458 # Compiler flag to generate shared objects directly from archives.
13459 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13460
13461 # Compiler flag to generate thread-safe objects.
13462 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13463
13464 # Library versioning type.
13465 version_type=$version_type
13466
13467 # Format of library name prefix.
13468 libname_spec=$lt_libname_spec
13469
13470 # List of archive names. First name is the real one, the rest are links.
13471 # The last name is the one that the linker finds with -lNAME.
13472 library_names_spec=$lt_library_names_spec
13473
13474 # The coded name of the library, if different from the real name.
13475 soname_spec=$lt_soname_spec
13476
13477 # Commands used to build and install an old-style archive.
13478 RANLIB=$lt_RANLIB
13479 old_archive_cmds=$lt_old_archive_cmds_CXX
13480 old_postinstall_cmds=$lt_old_postinstall_cmds
13481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13482
13483 # Create an old-style archive from a shared archive.
13484 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13485
13486 # Create a temporary old-style archive to link instead of a shared archive.
13487 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13488
13489 # Commands used to build and install a shared archive.
13490 archive_cmds=$lt_archive_cmds_CXX
13491 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13492 postinstall_cmds=$lt_postinstall_cmds
13493 postuninstall_cmds=$lt_postuninstall_cmds
13494
13495 # Commands used to build a loadable module (assumed same as above if empty)
13496 module_cmds=$lt_module_cmds_CXX
13497 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13498
13499 # Commands to strip libraries.
13500 old_striplib=$lt_old_striplib
13501 striplib=$lt_striplib
13502
13503 # Dependencies to place before the objects being linked to create a
13504 # shared library.
13505 predep_objects=$lt_predep_objects_CXX
13506
13507 # Dependencies to place after the objects being linked to create a
13508 # shared library.
13509 postdep_objects=$lt_postdep_objects_CXX
13510
13511 # Dependencies to place before the objects being linked to create a
13512 # shared library.
13513 predeps=$lt_predeps_CXX
13514
13515 # Dependencies to place after the objects being linked to create a
13516 # shared library.
13517 postdeps=$lt_postdeps_CXX
13518
13519 # The library search path used internally by the compiler when linking
13520 # a shared library.
13521 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13522
13523 # Method to check whether dependent libraries are shared objects.
13524 deplibs_check_method=$lt_deplibs_check_method
13525
13526 # Command to use when deplibs_check_method == file_magic.
13527 file_magic_cmd=$lt_file_magic_cmd
13528
13529 # Flag that allows shared libraries with undefined symbols to be built.
13530 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13531
13532 # Flag that forces no undefined symbols.
13533 no_undefined_flag=$lt_no_undefined_flag_CXX
13534
13535 # Commands used to finish a libtool library installation in a directory.
13536 finish_cmds=$lt_finish_cmds
13537
13538 # Same as above, but a single script fragment to be evaled but not shown.
13539 finish_eval=$lt_finish_eval
13540
13541 # Take the output of nm and produce a listing of raw symbols and C names.
13542 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13543
13544 # Transform the output of nm in a proper C declaration
13545 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13546
13547 # Transform the output of nm in a C name address pair
13548 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13549
13550 # This is the shared library runtime path variable.
13551 runpath_var=$runpath_var
13552
13553 # This is the shared library path variable.
13554 shlibpath_var=$shlibpath_var
13555
13556 # Is shlibpath searched before the hard-coded library search path?
13557 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13558
13559 # How to hardcode a shared library path into an executable.
13560 hardcode_action=$hardcode_action_CXX
13561
13562 # Whether we should hardcode library paths into libraries.
13563 hardcode_into_libs=$hardcode_into_libs
13564
13565 # Flag to hardcode \$libdir into a binary during linking.
13566 # This must work even if \$libdir does not exist.
13567 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13568
13569 # If ld is used when linking, flag to hardcode \$libdir into
13570 # a binary during linking. This must work even if \$libdir does
13571 # not exist.
13572 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13573
13574 # Whether we need a single -rpath flag with a separated argument.
13575 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13576
13577 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13578 # resulting binary.
13579 hardcode_direct=$hardcode_direct_CXX
13580
13581 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13582 # resulting binary.
13583 hardcode_minus_L=$hardcode_minus_L_CXX
13584
13585 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13586 # the resulting binary.
13587 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13588
13589 # Set to yes if building a shared library automatically hardcodes DIR into the library
13590 # and all subsequent libraries and executables linked against it.
13591 hardcode_automatic=$hardcode_automatic_CXX
13592
13593 # Variables whose values should be saved in libtool wrapper scripts and
13594 # restored at relink time.
13595 variables_saved_for_relink="$variables_saved_for_relink"
13596
13597 # Whether libtool must link a program against all its dependency libraries.
13598 link_all_deplibs=$link_all_deplibs_CXX
13599
13600 # Compile-time system search path for libraries
13601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13602
13603 # Run-time system search path for libraries
13604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13605
13606 # Fix the shell variable \$srcfile for the compiler.
13607 fix_srcfile_path="$fix_srcfile_path_CXX"
13608
13609 # Set to yes if exported symbols are required.
13610 always_export_symbols=$always_export_symbols_CXX
13611
13612 # The commands to list exported symbols.
13613 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13614
13615 # The commands to extract the exported symbol list from a shared archive.
13616 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13617
13618 # Symbols that should not be listed in the preloaded symbols.
13619 exclude_expsyms=$lt_exclude_expsyms_CXX
13620
13621 # Symbols that must always be exported.
13622 include_expsyms=$lt_include_expsyms_CXX
13623
13624 # ### END LIBTOOL TAG CONFIG: $tagname
13625
13626 __EOF__
13627
13628
13629 else
13630 # If there is no Makefile yet, we rely on a make rule to execute
13631 # `config.status --recheck' to rerun these tests and create the
13632 # libtool script then.
13633 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13634 if test -f "$ltmain_in"; then
13635 test -f Makefile && make "$ltmain"
13636 fi
13637 fi
13638
13639
13640 ac_ext=c
13641 ac_cpp='$CPP $CPPFLAGS'
13642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13645
13646 CC=$lt_save_CC
13647 LDCXX=$LD
13648 LD=$lt_save_LD
13649 GCC=$lt_save_GCC
13650 with_gnu_ldcxx=$with_gnu_ld
13651 with_gnu_ld=$lt_save_with_gnu_ld
13652 lt_cv_path_LDCXX=$lt_cv_path_LD
13653 lt_cv_path_LD=$lt_save_path_LD
13654 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13655 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13656
13657 else
13658 tagname=""
13659 fi
13660 ;;
13661
13662 F77)
13663 if test -n "$F77" && test "X$F77" != "Xno"; then
13664
13665 ac_ext=f
13666 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13667 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13668 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13669
13670
13671 archive_cmds_need_lc_F77=no
13672 allow_undefined_flag_F77=
13673 always_export_symbols_F77=no
13674 archive_expsym_cmds_F77=
13675 export_dynamic_flag_spec_F77=
13676 hardcode_direct_F77=no
13677 hardcode_libdir_flag_spec_F77=
13678 hardcode_libdir_flag_spec_ld_F77=
13679 hardcode_libdir_separator_F77=
13680 hardcode_minus_L_F77=no
13681 hardcode_automatic_F77=no
13682 module_cmds_F77=
13683 module_expsym_cmds_F77=
13684 link_all_deplibs_F77=unknown
13685 old_archive_cmds_F77=$old_archive_cmds
13686 no_undefined_flag_F77=
13687 whole_archive_flag_spec_F77=
13688 enable_shared_with_static_runtimes_F77=no
13689
13690 # Source file extension for f77 test sources.
13691 ac_ext=f
13692
13693 # Object file extension for compiled f77 test sources.
13694 objext=o
13695 objext_F77=$objext
13696
13697 # Code to be used in simple compile tests
13698 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13699
13700 # Code to be used in simple link tests
13701 lt_simple_link_test_code=" program t\n end\n"
13702
13703 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13704
13705 # If no C compiler was specified, use CC.
13706 LTCC=${LTCC-"$CC"}
13707
13708 # If no C compiler flags were specified, use CFLAGS.
13709 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13710
13711 # Allow CC to be a program name with arguments.
13712 compiler=$CC
13713
13714
13715 # save warnings/boilerplate of simple test code
13716 ac_outfile=conftest.$ac_objext
13717 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13718 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13719 _lt_compiler_boilerplate=`cat conftest.err`
13720 $rm conftest*
13721
13722 ac_outfile=conftest.$ac_objext
13723 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13724 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13725 _lt_linker_boilerplate=`cat conftest.err`
13726 $rm conftest*
13727
13728
13729 # Allow CC to be a program name with arguments.
13730 lt_save_CC="$CC"
13731 CC=${F77-"f77"}
13732 compiler=$CC
13733 compiler_F77=$CC
13734 for cc_temp in $compiler""; do
13735 case $cc_temp in
13736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13738 \-*) ;;
13739 *) break;;
13740 esac
13741 done
13742 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13743
13744
13745 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13746 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13747 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13748 echo "${ECHO_T}$can_build_shared" >&6; }
13749
13750 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13751 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13752 test "$can_build_shared" = "no" && enable_shared=no
13753
13754 # On AIX, shared libraries and static libraries use the same namespace, and
13755 # are all built from PIC.
13756 case $host_os in
13757 aix3*)
13758 test "$enable_shared" = yes && enable_static=no
13759 if test -n "$RANLIB"; then
13760 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13761 postinstall_cmds='$RANLIB $lib'
13762 fi
13763 ;;
13764 aix4* | aix5*)
13765 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13766 test "$enable_shared" = yes && enable_static=no
13767 fi
13768 ;;
13769 esac
13770 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13771 echo "${ECHO_T}$enable_shared" >&6; }
13772
13773 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13774 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13775 # Make sure either enable_shared or enable_static is yes.
13776 test "$enable_shared" = yes || enable_static=yes
13777 { echo "$as_me:$LINENO: result: $enable_static" >&5
13778 echo "${ECHO_T}$enable_static" >&6; }
13779
13780 GCC_F77="$G77"
13781 LD_F77="$LD"
13782
13783 lt_prog_compiler_wl_F77=
13784 lt_prog_compiler_pic_F77=
13785 lt_prog_compiler_static_F77=
13786
13787 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13788 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13789
13790 if test "$GCC" = yes; then
13791 lt_prog_compiler_wl_F77='-Wl,'
13792 lt_prog_compiler_static_F77='-static'
13793
13794 case $host_os in
13795 aix*)
13796 # All AIX code is PIC.
13797 if test "$host_cpu" = ia64; then
13798 # AIX 5 now supports IA64 processor
13799 lt_prog_compiler_static_F77='-Bstatic'
13800 fi
13801 ;;
13802
13803 amigaos*)
13804 # FIXME: we need at least 68020 code to build shared libraries, but
13805 # adding the `-m68020' flag to GCC prevents building anything better,
13806 # like `-m68040'.
13807 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13808 ;;
13809
13810 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13811 # PIC is the default for these OSes.
13812 ;;
13813
13814 mingw* | pw32* | os2*)
13815 # This hack is so that the source file can tell whether it is being
13816 # built for inclusion in a dll (and should export symbols for example).
13817 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13818 ;;
13819
13820 darwin* | rhapsody*)
13821 # PIC is the default on this platform
13822 # Common symbols not allowed in MH_DYLIB files
13823 lt_prog_compiler_pic_F77='-fno-common'
13824 ;;
13825
13826 interix3*)
13827 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13828 # Instead, we relocate shared libraries at runtime.
13829 ;;
13830
13831 msdosdjgpp*)
13832 # Just because we use GCC doesn't mean we suddenly get shared libraries
13833 # on systems that don't support them.
13834 lt_prog_compiler_can_build_shared_F77=no
13835 enable_shared=no
13836 ;;
13837
13838 sysv4*MP*)
13839 if test -d /usr/nec; then
13840 lt_prog_compiler_pic_F77=-Kconform_pic
13841 fi
13842 ;;
13843
13844 hpux*)
13845 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13846 # not for PA HP-UX.
13847 case $host_cpu in
13848 hppa*64*|ia64*)
13849 # +Z the default
13850 ;;
13851 *)
13852 lt_prog_compiler_pic_F77='-fPIC'
13853 ;;
13854 esac
13855 ;;
13856
13857 *)
13858 lt_prog_compiler_pic_F77='-fPIC'
13859 ;;
13860 esac
13861 else
13862 # PORTME Check for flag to pass linker flags through the system compiler.
13863 case $host_os in
13864 aix*)
13865 lt_prog_compiler_wl_F77='-Wl,'
13866 if test "$host_cpu" = ia64; then
13867 # AIX 5 now supports IA64 processor
13868 lt_prog_compiler_static_F77='-Bstatic'
13869 else
13870 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13871 fi
13872 ;;
13873 darwin*)
13874 # PIC is the default on this platform
13875 # Common symbols not allowed in MH_DYLIB files
13876 case $cc_basename in
13877 xlc*)
13878 lt_prog_compiler_pic_F77='-qnocommon'
13879 lt_prog_compiler_wl_F77='-Wl,'
13880 ;;
13881 esac
13882 ;;
13883
13884 mingw* | pw32* | os2*)
13885 # This hack is so that the source file can tell whether it is being
13886 # built for inclusion in a dll (and should export symbols for example).
13887 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13888 ;;
13889
13890 hpux9* | hpux10* | hpux11*)
13891 lt_prog_compiler_wl_F77='-Wl,'
13892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13893 # not for PA HP-UX.
13894 case $host_cpu in
13895 hppa*64*|ia64*)
13896 # +Z the default
13897 ;;
13898 *)
13899 lt_prog_compiler_pic_F77='+Z'
13900 ;;
13901 esac
13902 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13903 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13904 ;;
13905
13906 irix5* | irix6* | nonstopux*)
13907 lt_prog_compiler_wl_F77='-Wl,'
13908 # PIC (with -KPIC) is the default.
13909 lt_prog_compiler_static_F77='-non_shared'
13910 ;;
13911
13912 newsos6)
13913 lt_prog_compiler_pic_F77='-KPIC'
13914 lt_prog_compiler_static_F77='-Bstatic'
13915 ;;
13916
13917 linux*)
13918 case $cc_basename in
13919 icc* | ecc*)
13920 lt_prog_compiler_wl_F77='-Wl,'
13921 lt_prog_compiler_pic_F77='-KPIC'
13922 lt_prog_compiler_static_F77='-static'
13923 ;;
13924 pgcc* | pgf77* | pgf90* | pgf95*)
13925 # Portland Group compilers (*not* the Pentium gcc compiler,
13926 # which looks to be a dead project)
13927 lt_prog_compiler_wl_F77='-Wl,'
13928 lt_prog_compiler_pic_F77='-fpic'
13929 lt_prog_compiler_static_F77='-Bstatic'
13930 ;;
13931 ccc*)
13932 lt_prog_compiler_wl_F77='-Wl,'
13933 # All Alpha code is PIC.
13934 lt_prog_compiler_static_F77='-non_shared'
13935 ;;
13936 esac
13937 ;;
13938
13939 osf3* | osf4* | osf5*)
13940 lt_prog_compiler_wl_F77='-Wl,'
13941 # All OSF/1 code is PIC.
13942 lt_prog_compiler_static_F77='-non_shared'
13943 ;;
13944
13945 solaris*)
13946 lt_prog_compiler_pic_F77='-KPIC'
13947 lt_prog_compiler_static_F77='-Bstatic'
13948 case $cc_basename in
13949 f77* | f90* | f95*)
13950 lt_prog_compiler_wl_F77='-Qoption ld ';;
13951 *)
13952 lt_prog_compiler_wl_F77='-Wl,';;
13953 esac
13954 ;;
13955
13956 sunos4*)
13957 lt_prog_compiler_wl_F77='-Qoption ld '
13958 lt_prog_compiler_pic_F77='-PIC'
13959 lt_prog_compiler_static_F77='-Bstatic'
13960 ;;
13961
13962 sysv4 | sysv4.2uw2* | sysv4.3*)
13963 lt_prog_compiler_wl_F77='-Wl,'
13964 lt_prog_compiler_pic_F77='-KPIC'
13965 lt_prog_compiler_static_F77='-Bstatic'
13966 ;;
13967
13968 sysv4*MP*)
13969 if test -d /usr/nec ;then
13970 lt_prog_compiler_pic_F77='-Kconform_pic'
13971 lt_prog_compiler_static_F77='-Bstatic'
13972 fi
13973 ;;
13974
13975 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13976 lt_prog_compiler_wl_F77='-Wl,'
13977 lt_prog_compiler_pic_F77='-KPIC'
13978 lt_prog_compiler_static_F77='-Bstatic'
13979 ;;
13980
13981 unicos*)
13982 lt_prog_compiler_wl_F77='-Wl,'
13983 lt_prog_compiler_can_build_shared_F77=no
13984 ;;
13985
13986 uts4*)
13987 lt_prog_compiler_pic_F77='-pic'
13988 lt_prog_compiler_static_F77='-Bstatic'
13989 ;;
13990
13991 *)
13992 lt_prog_compiler_can_build_shared_F77=no
13993 ;;
13994 esac
13995 fi
13996
13997 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13998 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13999
14000 #
14001 # Check to make sure the PIC flag actually works.
14002 #
14003 if test -n "$lt_prog_compiler_pic_F77"; then
14004
14005 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14006 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14007 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010 lt_prog_compiler_pic_works_F77=no
14011 ac_outfile=conftest.$ac_objext
14012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14013 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14014 # Insert the option either (1) after the last *FLAGS variable, or
14015 # (2) before a word containing "conftest.", or (3) at the end.
14016 # Note that $ac_compile itself does not contain backslashes and begins
14017 # with a dollar sign (not a hyphen), so the echo should work correctly.
14018 # The option is referenced via a variable to avoid confusing sed.
14019 lt_compile=`echo "$ac_compile" | $SED \
14020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14022 -e 's:$: $lt_compiler_flag:'`
14023 (eval echo "\"\$as_me:14023: $lt_compile\"" >&5)
14024 (eval "$lt_compile" 2>conftest.err)
14025 ac_status=$?
14026 cat conftest.err >&5
14027 echo "$as_me:14027: \$? = $ac_status" >&5
14028 if (exit $ac_status) && test -s "$ac_outfile"; then
14029 # The compiler can only warn and ignore the option if not recognized
14030 # So say no if there are warnings other than the usual output.
14031 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14033 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14034 lt_prog_compiler_pic_works_F77=yes
14035 fi
14036 fi
14037 $rm conftest*
14038
14039 fi
14040 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14041 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14042
14043 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14044 case $lt_prog_compiler_pic_F77 in
14045 "" | " "*) ;;
14046 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14047 esac
14048 else
14049 lt_prog_compiler_pic_F77=
14050 lt_prog_compiler_can_build_shared_F77=no
14051 fi
14052
14053 fi
14054 case $host_os in
14055 # For platforms which do not support PIC, -DPIC is meaningless:
14056 *djgpp*)
14057 lt_prog_compiler_pic_F77=
14058 ;;
14059 *)
14060 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14061 ;;
14062 esac
14063
14064 #
14065 # Check to make sure the static flag actually works.
14066 #
14067 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14068 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14069 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14070 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073 lt_prog_compiler_static_works_F77=no
14074 save_LDFLAGS="$LDFLAGS"
14075 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14076 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14077 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14078 # The linker can only warn and ignore the option if not recognized
14079 # So say no if there are warnings
14080 if test -s conftest.err; then
14081 # Append any errors to the config.log.
14082 cat conftest.err 1>&5
14083 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14085 if diff conftest.exp conftest.er2 >/dev/null; then
14086 lt_prog_compiler_static_works_F77=yes
14087 fi
14088 else
14089 lt_prog_compiler_static_works_F77=yes
14090 fi
14091 fi
14092 $rm conftest*
14093 LDFLAGS="$save_LDFLAGS"
14094
14095 fi
14096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14097 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14098
14099 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14100 :
14101 else
14102 lt_prog_compiler_static_F77=
14103 fi
14104
14105
14106 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14107 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14108 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111 lt_cv_prog_compiler_c_o_F77=no
14112 $rm -r conftest 2>/dev/null
14113 mkdir conftest
14114 cd conftest
14115 mkdir out
14116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14117
14118 lt_compiler_flag="-o out/conftest2.$ac_objext"
14119 # Insert the option either (1) after the last *FLAGS variable, or
14120 # (2) before a word containing "conftest.", or (3) at the end.
14121 # Note that $ac_compile itself does not contain backslashes and begins
14122 # with a dollar sign (not a hyphen), so the echo should work correctly.
14123 lt_compile=`echo "$ac_compile" | $SED \
14124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14126 -e 's:$: $lt_compiler_flag:'`
14127 (eval echo "\"\$as_me:14127: $lt_compile\"" >&5)
14128 (eval "$lt_compile" 2>out/conftest.err)
14129 ac_status=$?
14130 cat out/conftest.err >&5
14131 echo "$as_me:14131: \$? = $ac_status" >&5
14132 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14133 then
14134 # The compiler can only warn and ignore the option if not recognized
14135 # So say no if there are warnings
14136 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14137 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14138 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14139 lt_cv_prog_compiler_c_o_F77=yes
14140 fi
14141 fi
14142 chmod u+w . 2>&5
14143 $rm conftest*
14144 # SGI C++ compiler will create directory out/ii_files/ for
14145 # template instantiation
14146 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14147 $rm out/* && rmdir out
14148 cd ..
14149 rmdir conftest
14150 $rm conftest*
14151
14152 fi
14153 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14154 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14155
14156
14157 hard_links="nottested"
14158 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14159 # do not overwrite the value of need_locks provided by the user
14160 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14161 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14162 hard_links=yes
14163 $rm conftest*
14164 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14165 touch conftest.a
14166 ln conftest.a conftest.b 2>&5 || hard_links=no
14167 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14168 { echo "$as_me:$LINENO: result: $hard_links" >&5
14169 echo "${ECHO_T}$hard_links" >&6; }
14170 if test "$hard_links" = no; then
14171 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14172 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14173 need_locks=warn
14174 fi
14175 else
14176 need_locks=no
14177 fi
14178
14179 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14180 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14181
14182 runpath_var=
14183 allow_undefined_flag_F77=
14184 enable_shared_with_static_runtimes_F77=no
14185 archive_cmds_F77=
14186 archive_expsym_cmds_F77=
14187 old_archive_From_new_cmds_F77=
14188 old_archive_from_expsyms_cmds_F77=
14189 export_dynamic_flag_spec_F77=
14190 whole_archive_flag_spec_F77=
14191 thread_safe_flag_spec_F77=
14192 hardcode_libdir_flag_spec_F77=
14193 hardcode_libdir_flag_spec_ld_F77=
14194 hardcode_libdir_separator_F77=
14195 hardcode_direct_F77=no
14196 hardcode_minus_L_F77=no
14197 hardcode_shlibpath_var_F77=unsupported
14198 link_all_deplibs_F77=unknown
14199 hardcode_automatic_F77=no
14200 module_cmds_F77=
14201 module_expsym_cmds_F77=
14202 always_export_symbols_F77=no
14203 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14204 # include_expsyms should be a list of space-separated symbols to be *always*
14205 # included in the symbol list
14206 include_expsyms_F77=
14207 # exclude_expsyms can be an extended regexp of symbols to exclude
14208 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14209 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14210 # as well as any symbol that contains `d'.
14211 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14212 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14213 # platforms (ab)use it in PIC code, but their linkers get confused if
14214 # the symbol is explicitly referenced. Since portable code cannot
14215 # rely on this symbol name, it's probably fine to never include it in
14216 # preloaded symbol tables.
14217 extract_expsyms_cmds=
14218 # Just being paranoid about ensuring that cc_basename is set.
14219 for cc_temp in $compiler""; do
14220 case $cc_temp in
14221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14223 \-*) ;;
14224 *) break;;
14225 esac
14226 done
14227 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14228
14229 case $host_os in
14230 cygwin* | mingw* | pw32*)
14231 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14232 # When not using gcc, we currently assume that we are using
14233 # Microsoft Visual C++.
14234 if test "$GCC" != yes; then
14235 with_gnu_ld=no
14236 fi
14237 ;;
14238 interix*)
14239 # we just hope/assume this is gcc and not c89 (= MSVC++)
14240 with_gnu_ld=yes
14241 ;;
14242 openbsd*)
14243 with_gnu_ld=no
14244 ;;
14245 esac
14246
14247 ld_shlibs_F77=yes
14248 if test "$with_gnu_ld" = yes; then
14249 # If archive_cmds runs LD, not CC, wlarc should be empty
14250 wlarc='${wl}'
14251
14252 # Set some defaults for GNU ld with shared library support. These
14253 # are reset later if shared libraries are not supported. Putting them
14254 # here allows them to be overridden if necessary.
14255 runpath_var=LD_RUN_PATH
14256 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14257 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14258 # ancient GNU ld didn't support --whole-archive et. al.
14259 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14260 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14261 else
14262 whole_archive_flag_spec_F77=
14263 fi
14264 supports_anon_versioning=no
14265 case `$LD -v 2>/dev/null` in
14266 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14267 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14268 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14269 *\ 2.11.*) ;; # other 2.11 versions
14270 *) supports_anon_versioning=yes ;;
14271 esac
14272
14273 # See if GNU ld supports shared libraries.
14274 case $host_os in
14275 aix3* | aix4* | aix5*)
14276 # On AIX/PPC, the GNU linker is very broken
14277 if test "$host_cpu" != ia64; then
14278 ld_shlibs_F77=no
14279 cat <<EOF 1>&2
14280
14281 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14282 *** to be unable to reliably create shared libraries on AIX.
14283 *** Therefore, libtool is disabling shared libraries support. If you
14284 *** really care for shared libraries, you may want to modify your PATH
14285 *** so that a non-GNU linker is found, and then restart.
14286
14287 EOF
14288 fi
14289 ;;
14290
14291 amigaos*)
14292 archive_cmds_F77='$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)'
14293 hardcode_libdir_flag_spec_F77='-L$libdir'
14294 hardcode_minus_L_F77=yes
14295
14296 # Samuel A. Falvo II <[email protected]> reports
14297 # that the semantics of dynamic libraries on AmigaOS, at least up
14298 # to version 4, is to share data among multiple programs linked
14299 # with the same dynamic library. Since this doesn't match the
14300 # behavior of shared libraries on other platforms, we can't use
14301 # them.
14302 ld_shlibs_F77=no
14303 ;;
14304
14305 beos*)
14306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14307 allow_undefined_flag_F77=unsupported
14308 # Joseph Beckenbach <[email protected]> says some releases of gcc
14309 # support --undefined. This deserves some investigation. FIXME
14310 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14311 else
14312 ld_shlibs_F77=no
14313 fi
14314 ;;
14315
14316 cygwin* | mingw* | pw32*)
14317 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14318 # as there is no search path for DLLs.
14319 hardcode_libdir_flag_spec_F77='-L$libdir'
14320 allow_undefined_flag_F77=unsupported
14321 always_export_symbols_F77=no
14322 enable_shared_with_static_runtimes_F77=yes
14323 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14324
14325 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14326 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14327 # If the export-symbols file already is a .def file (1st line
14328 # is EXPORTS), use it as is; otherwise, prepend...
14329 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14330 cp $export_symbols $output_objdir/$soname.def;
14331 else
14332 echo EXPORTS > $output_objdir/$soname.def;
14333 cat $export_symbols >> $output_objdir/$soname.def;
14334 fi~
14335 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14336 else
14337 ld_shlibs_F77=no
14338 fi
14339 ;;
14340
14341 interix3*)
14342 hardcode_direct_F77=no
14343 hardcode_shlibpath_var_F77=no
14344 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14345 export_dynamic_flag_spec_F77='${wl}-E'
14346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14347 # Instead, shared libraries are loaded at an image base (0x10000000 by
14348 # default) and relocated if they conflict, which is a slow very memory
14349 # consuming and fragmenting process. To avoid this, we pick a random,
14350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14351 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14352 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14353 archive_expsym_cmds_F77='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'
14354 ;;
14355
14356 linux*)
14357 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14358 tmp_addflag=
14359 case $cc_basename,$host_cpu in
14360 pgcc*) # Portland Group C compiler
14361 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14362 tmp_addflag=' $pic_flag'
14363 ;;
14364 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14365 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14366 tmp_addflag=' $pic_flag -Mnomain' ;;
14367 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14368 tmp_addflag=' -i_dynamic' ;;
14369 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14370 tmp_addflag=' -i_dynamic -nofor_main' ;;
14371 ifc* | ifort*) # Intel Fortran compiler
14372 tmp_addflag=' -nofor_main' ;;
14373 esac
14374 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14375
14376 if test $supports_anon_versioning = yes; then
14377 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14378 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14379 $echo "local: *; };" >> $output_objdir/$libname.ver~
14380 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14381 fi
14382 else
14383 ld_shlibs_F77=no
14384 fi
14385 ;;
14386
14387 netbsd*)
14388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14389 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14390 wlarc=
14391 else
14392 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14393 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14394 fi
14395 ;;
14396
14397 solaris*)
14398 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14399 ld_shlibs_F77=no
14400 cat <<EOF 1>&2
14401
14402 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14403 *** create shared libraries on Solaris systems. Therefore, libtool
14404 *** is disabling shared libraries support. We urge you to upgrade GNU
14405 *** binutils to release 2.9.1 or newer. Another option is to modify
14406 *** your PATH or compiler configuration so that the native linker is
14407 *** used, and then restart.
14408
14409 EOF
14410 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14411 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14412 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14413 else
14414 ld_shlibs_F77=no
14415 fi
14416 ;;
14417
14418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14419 case `$LD -v 2>&1` in
14420 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14421 ld_shlibs_F77=no
14422 cat <<_LT_EOF 1>&2
14423
14424 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14425 *** reliably create shared libraries on SCO systems. Therefore, libtool
14426 *** is disabling shared libraries support. We urge you to upgrade GNU
14427 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14428 *** your PATH or compiler configuration so that the native linker is
14429 *** used, and then restart.
14430
14431 _LT_EOF
14432 ;;
14433 *)
14434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14435 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14436 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14437 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14438 else
14439 ld_shlibs_F77=no
14440 fi
14441 ;;
14442 esac
14443 ;;
14444
14445 sunos4*)
14446 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14447 wlarc=
14448 hardcode_direct_F77=yes
14449 hardcode_shlibpath_var_F77=no
14450 ;;
14451
14452 *)
14453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14454 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14455 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14456 else
14457 ld_shlibs_F77=no
14458 fi
14459 ;;
14460 esac
14461
14462 if test "$ld_shlibs_F77" = no; then
14463 runpath_var=
14464 hardcode_libdir_flag_spec_F77=
14465 export_dynamic_flag_spec_F77=
14466 whole_archive_flag_spec_F77=
14467 fi
14468 else
14469 # PORTME fill in a description of your system's linker (not GNU ld)
14470 case $host_os in
14471 aix3*)
14472 allow_undefined_flag_F77=unsupported
14473 always_export_symbols_F77=yes
14474 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14475 # Note: this linker hardcodes the directories in LIBPATH if there
14476 # are no directories specified by -L.
14477 hardcode_minus_L_F77=yes
14478 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14479 # Neither direct hardcoding nor static linking is supported with a
14480 # broken collect2.
14481 hardcode_direct_F77=unsupported
14482 fi
14483 ;;
14484
14485 aix4* | aix5*)
14486 if test "$host_cpu" = ia64; then
14487 # On IA64, the linker does run time linking by default, so we don't
14488 # have to do anything special.
14489 aix_use_runtimelinking=no
14490 exp_sym_flag='-Bexport'
14491 no_entry_flag=""
14492 else
14493 # If we're using GNU nm, then we don't want the "-C" option.
14494 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14495 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14496 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14497 else
14498 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14499 fi
14500 aix_use_runtimelinking=no
14501
14502 # Test if we are trying to use run time linking or normal
14503 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14504 # need to do runtime linking.
14505 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14506 for ld_flag in $LDFLAGS; do
14507 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14508 aix_use_runtimelinking=yes
14509 break
14510 fi
14511 done
14512 ;;
14513 esac
14514
14515 exp_sym_flag='-bexport'
14516 no_entry_flag='-bnoentry'
14517 fi
14518
14519 # When large executables or shared objects are built, AIX ld can
14520 # have problems creating the table of contents. If linking a library
14521 # or program results in "error TOC overflow" add -mminimal-toc to
14522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14524
14525 archive_cmds_F77=''
14526 hardcode_direct_F77=yes
14527 hardcode_libdir_separator_F77=':'
14528 link_all_deplibs_F77=yes
14529
14530 if test "$GCC" = yes; then
14531 case $host_os in aix4.[012]|aix4.[012].*)
14532 # We only want to do this on AIX 4.2 and lower, the check
14533 # below for broken collect2 doesn't work under 4.3+
14534 collect2name=`${CC} -print-prog-name=collect2`
14535 if test -f "$collect2name" && \
14536 strings "$collect2name" | grep resolve_lib_name >/dev/null
14537 then
14538 # We have reworked collect2
14539 hardcode_direct_F77=yes
14540 else
14541 # We have old collect2
14542 hardcode_direct_F77=unsupported
14543 # It fails to find uninstalled libraries when the uninstalled
14544 # path is not listed in the libpath. Setting hardcode_minus_L
14545 # to unsupported forces relinking
14546 hardcode_minus_L_F77=yes
14547 hardcode_libdir_flag_spec_F77='-L$libdir'
14548 hardcode_libdir_separator_F77=
14549 fi
14550 ;;
14551 esac
14552 shared_flag='-shared'
14553 if test "$aix_use_runtimelinking" = yes; then
14554 shared_flag="$shared_flag "'${wl}-G'
14555 fi
14556 else
14557 # not using gcc
14558 if test "$host_cpu" = ia64; then
14559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14560 # chokes on -Wl,-G. The following line is correct:
14561 shared_flag='-G'
14562 else
14563 if test "$aix_use_runtimelinking" = yes; then
14564 shared_flag='${wl}-G'
14565 else
14566 shared_flag='${wl}-bM:SRE'
14567 fi
14568 fi
14569 fi
14570
14571 # It seems that -bexpall does not export symbols beginning with
14572 # underscore (_), so it is better to generate a list of symbols to export.
14573 always_export_symbols_F77=yes
14574 if test "$aix_use_runtimelinking" = yes; then
14575 # Warning - without using the other runtime loading flags (-brtl),
14576 # -berok will link without error, but may produce a broken library.
14577 allow_undefined_flag_F77='-berok'
14578 # Determine the default libpath from the value encoded in an empty executable.
14579 cat >conftest.$ac_ext <<_ACEOF
14580 program main
14581
14582 end
14583 _ACEOF
14584 rm -f conftest.$ac_objext conftest$ac_exeext
14585 if { (ac_try="$ac_link"
14586 case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14589 esac
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_link") 2>conftest.er1
14592 ac_status=$?
14593 grep -v '^ *+' conftest.er1 >conftest.err
14594 rm -f conftest.er1
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } && {
14598 test -z "$ac_f77_werror_flag" ||
14599 test ! -s conftest.err
14600 } && test -s conftest$ac_exeext &&
14601 $as_test_x conftest$ac_exeext; then
14602
14603 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14604 }'`
14605 # Check for a 64-bit object if we didn't find anything.
14606 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14607 }'`; fi
14608 else
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14611
14612
14613 fi
14614
14615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14616 conftest$ac_exeext conftest.$ac_ext
14617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14618
14619 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14620 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14621 else
14622 if test "$host_cpu" = ia64; then
14623 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14624 allow_undefined_flag_F77="-z nodefs"
14625 archive_expsym_cmds_F77="\$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"
14626 else
14627 # Determine the default libpath from the value encoded in an empty executable.
14628 cat >conftest.$ac_ext <<_ACEOF
14629 program main
14630
14631 end
14632 _ACEOF
14633 rm -f conftest.$ac_objext conftest$ac_exeext
14634 if { (ac_try="$ac_link"
14635 case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638 esac
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_link") 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } && {
14647 test -z "$ac_f77_werror_flag" ||
14648 test ! -s conftest.err
14649 } && test -s conftest$ac_exeext &&
14650 $as_test_x conftest$ac_exeext; then
14651
14652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14653 }'`
14654 # Check for a 64-bit object if we didn't find anything.
14655 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14656 }'`; fi
14657 else
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14660
14661
14662 fi
14663
14664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14665 conftest$ac_exeext conftest.$ac_ext
14666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14667
14668 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14669 # Warning - without using the other run time loading flags,
14670 # -berok will link without error, but may produce a broken library.
14671 no_undefined_flag_F77=' ${wl}-bernotok'
14672 allow_undefined_flag_F77=' ${wl}-berok'
14673 # Exported symbols can be pulled into shared objects from archives
14674 whole_archive_flag_spec_F77='$convenience'
14675 archive_cmds_need_lc_F77=yes
14676 # This is similar to how AIX traditionally builds its shared libraries.
14677 archive_expsym_cmds_F77="\$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'
14678 fi
14679 fi
14680 ;;
14681
14682 amigaos*)
14683 archive_cmds_F77='$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)'
14684 hardcode_libdir_flag_spec_F77='-L$libdir'
14685 hardcode_minus_L_F77=yes
14686 # see comment about different semantics on the GNU ld section
14687 ld_shlibs_F77=no
14688 ;;
14689
14690 bsdi[45]*)
14691 export_dynamic_flag_spec_F77=-rdynamic
14692 ;;
14693
14694 cygwin* | mingw* | pw32*)
14695 # When not using gcc, we currently assume that we are using
14696 # Microsoft Visual C++.
14697 # hardcode_libdir_flag_spec is actually meaningless, as there is
14698 # no search path for DLLs.
14699 hardcode_libdir_flag_spec_F77=' '
14700 allow_undefined_flag_F77=unsupported
14701 # Tell ltmain to make .lib files, not .a files.
14702 libext=lib
14703 # Tell ltmain to make .dll files, not .so files.
14704 shrext=".dll"
14705 # FIXME: Setting linknames here is a bad hack.
14706 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14707 # The linker will automatically build a .lib file if we build a DLL.
14708 old_archive_From_new_cmds_F77='true'
14709 # FIXME: Should let the user specify the lib program.
14710 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14711 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14712 enable_shared_with_static_runtimes_F77=yes
14713 ;;
14714
14715 darwin* | rhapsody*)
14716 case $host_os in
14717 rhapsody* | darwin1.[012])
14718 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14719 ;;
14720 *) # Darwin 1.3 on
14721 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14722 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14723 else
14724 case ${MACOSX_DEPLOYMENT_TARGET} in
14725 10.[012])
14726 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14727 ;;
14728 10.*)
14729 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14730 ;;
14731 esac
14732 fi
14733 ;;
14734 esac
14735 archive_cmds_need_lc_F77=no
14736 hardcode_direct_F77=no
14737 hardcode_automatic_F77=yes
14738 hardcode_shlibpath_var_F77=unsupported
14739 whole_archive_flag_spec_F77=''
14740 link_all_deplibs_F77=yes
14741 if test "$GCC" = yes ; then
14742 output_verbose_link_cmd='echo'
14743 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14744 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14745 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14746 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14747 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14748 else
14749 case $cc_basename in
14750 xlc*)
14751 output_verbose_link_cmd='echo'
14752 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14753 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14754 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14755 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14756 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14757 ;;
14758 *)
14759 ld_shlibs_F77=no
14760 ;;
14761 esac
14762 fi
14763 ;;
14764
14765 dgux*)
14766 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14767 hardcode_libdir_flag_spec_F77='-L$libdir'
14768 hardcode_shlibpath_var_F77=no
14769 ;;
14770
14771 freebsd1*)
14772 ld_shlibs_F77=no
14773 ;;
14774
14775 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14776 # support. Future versions do this automatically, but an explicit c++rt0.o
14777 # does not break anything, and helps significantly (at the cost of a little
14778 # extra space).
14779 freebsd2.2*)
14780 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14781 hardcode_libdir_flag_spec_F77='-R$libdir'
14782 hardcode_direct_F77=yes
14783 hardcode_shlibpath_var_F77=no
14784 ;;
14785
14786 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14787 freebsd2*)
14788 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14789 hardcode_direct_F77=yes
14790 hardcode_minus_L_F77=yes
14791 hardcode_shlibpath_var_F77=no
14792 ;;
14793
14794 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14795 freebsd* | kfreebsd*-gnu | dragonfly*)
14796 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14797 hardcode_libdir_flag_spec_F77='-R$libdir'
14798 hardcode_direct_F77=yes
14799 hardcode_shlibpath_var_F77=no
14800 ;;
14801
14802 hpux9*)
14803 if test "$GCC" = yes; then
14804 archive_cmds_F77='$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'
14805 else
14806 archive_cmds_F77='$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'
14807 fi
14808 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14809 hardcode_libdir_separator_F77=:
14810 hardcode_direct_F77=yes
14811
14812 # hardcode_minus_L: Not really in the search PATH,
14813 # but as the default location of the library.
14814 hardcode_minus_L_F77=yes
14815 export_dynamic_flag_spec_F77='${wl}-E'
14816 ;;
14817
14818 hpux10*)
14819 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14820 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14821 else
14822 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14823 fi
14824 if test "$with_gnu_ld" = no; then
14825 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14826 hardcode_libdir_separator_F77=:
14827
14828 hardcode_direct_F77=yes
14829 export_dynamic_flag_spec_F77='${wl}-E'
14830
14831 # hardcode_minus_L: Not really in the search PATH,
14832 # but as the default location of the library.
14833 hardcode_minus_L_F77=yes
14834 fi
14835 ;;
14836
14837 hpux11*)
14838 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14839 case $host_cpu in
14840 hppa*64*)
14841 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14842 ;;
14843 ia64*)
14844 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14845 ;;
14846 *)
14847 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14848 ;;
14849 esac
14850 else
14851 case $host_cpu in
14852 hppa*64*)
14853 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14854 ;;
14855 ia64*)
14856 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14857 ;;
14858 *)
14859 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14860 ;;
14861 esac
14862 fi
14863 if test "$with_gnu_ld" = no; then
14864 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14865 hardcode_libdir_separator_F77=:
14866
14867 case $host_cpu in
14868 hppa*64*|ia64*)
14869 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14870 hardcode_direct_F77=no
14871 hardcode_shlibpath_var_F77=no
14872 ;;
14873 *)
14874 hardcode_direct_F77=yes
14875 export_dynamic_flag_spec_F77='${wl}-E'
14876
14877 # hardcode_minus_L: Not really in the search PATH,
14878 # but as the default location of the library.
14879 hardcode_minus_L_F77=yes
14880 ;;
14881 esac
14882 fi
14883 ;;
14884
14885 irix5* | irix6* | nonstopux*)
14886 if test "$GCC" = yes; then
14887 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14888 else
14889 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14890 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14891 fi
14892 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14893 hardcode_libdir_separator_F77=:
14894 link_all_deplibs_F77=yes
14895 ;;
14896
14897 netbsd*)
14898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14899 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14900 else
14901 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14902 fi
14903 hardcode_libdir_flag_spec_F77='-R$libdir'
14904 hardcode_direct_F77=yes
14905 hardcode_shlibpath_var_F77=no
14906 ;;
14907
14908 newsos6)
14909 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14910 hardcode_direct_F77=yes
14911 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14912 hardcode_libdir_separator_F77=:
14913 hardcode_shlibpath_var_F77=no
14914 ;;
14915
14916 openbsd*)
14917 hardcode_direct_F77=yes
14918 hardcode_shlibpath_var_F77=no
14919 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14920 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14921 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14922 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14923 export_dynamic_flag_spec_F77='${wl}-E'
14924 else
14925 case $host_os in
14926 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14927 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14928 hardcode_libdir_flag_spec_F77='-R$libdir'
14929 ;;
14930 *)
14931 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14932 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14933 ;;
14934 esac
14935 fi
14936 ;;
14937
14938 os2*)
14939 hardcode_libdir_flag_spec_F77='-L$libdir'
14940 hardcode_minus_L_F77=yes
14941 allow_undefined_flag_F77=unsupported
14942 archive_cmds_F77='$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'
14943 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14944 ;;
14945
14946 osf3*)
14947 if test "$GCC" = yes; then
14948 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14949 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14950 else
14951 allow_undefined_flag_F77=' -expect_unresolved \*'
14952 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14953 fi
14954 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14955 hardcode_libdir_separator_F77=:
14956 ;;
14957
14958 osf4* | osf5*) # as osf3* with the addition of -msym flag
14959 if test "$GCC" = yes; then
14960 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14961 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14962 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14963 else
14964 allow_undefined_flag_F77=' -expect_unresolved \*'
14965 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14966 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14967 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14968
14969 # Both c and cxx compiler support -rpath directly
14970 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14971 fi
14972 hardcode_libdir_separator_F77=:
14973 ;;
14974
14975 solaris*)
14976 no_undefined_flag_F77=' -z text'
14977 if test "$GCC" = yes; then
14978 wlarc='${wl}'
14979 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14980 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14981 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14982 else
14983 wlarc=''
14984 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14985 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14986 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14987 fi
14988 hardcode_libdir_flag_spec_F77='-R$libdir'
14989 hardcode_shlibpath_var_F77=no
14990 case $host_os in
14991 solaris2.[0-5] | solaris2.[0-5].*) ;;
14992 *)
14993 # The compiler driver will combine linker options so we
14994 # cannot just pass the convience library names through
14995 # without $wl, iff we do not link with $LD.
14996 # Luckily, gcc supports the same syntax we need for Sun Studio.
14997 # Supported since Solaris 2.6 (maybe 2.5.1?)
14998 case $wlarc in
14999 '')
15000 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15001 *)
15002 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15003 esac ;;
15004 esac
15005 link_all_deplibs_F77=yes
15006 ;;
15007
15008 sunos4*)
15009 if test "x$host_vendor" = xsequent; then
15010 # Use $CC to link under sequent, because it throws in some extra .o
15011 # files that make .init and .fini sections work.
15012 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15013 else
15014 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15015 fi
15016 hardcode_libdir_flag_spec_F77='-L$libdir'
15017 hardcode_direct_F77=yes
15018 hardcode_minus_L_F77=yes
15019 hardcode_shlibpath_var_F77=no
15020 ;;
15021
15022 sysv4)
15023 case $host_vendor in
15024 sni)
15025 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15026 hardcode_direct_F77=yes # is this really true???
15027 ;;
15028 siemens)
15029 ## LD is ld it makes a PLAMLIB
15030 ## CC just makes a GrossModule.
15031 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15032 reload_cmds_F77='$CC -r -o $output$reload_objs'
15033 hardcode_direct_F77=no
15034 ;;
15035 motorola)
15036 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15037 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15038 ;;
15039 esac
15040 runpath_var='LD_RUN_PATH'
15041 hardcode_shlibpath_var_F77=no
15042 ;;
15043
15044 sysv4.3*)
15045 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046 hardcode_shlibpath_var_F77=no
15047 export_dynamic_flag_spec_F77='-Bexport'
15048 ;;
15049
15050 sysv4*MP*)
15051 if test -d /usr/nec; then
15052 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15053 hardcode_shlibpath_var_F77=no
15054 runpath_var=LD_RUN_PATH
15055 hardcode_runpath_var=yes
15056 ld_shlibs_F77=yes
15057 fi
15058 ;;
15059
15060 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15061 no_undefined_flag_F77='${wl}-z,text'
15062 archive_cmds_need_lc_F77=no
15063 hardcode_shlibpath_var_F77=no
15064 runpath_var='LD_RUN_PATH'
15065
15066 if test "$GCC" = yes; then
15067 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15068 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15069 else
15070 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15071 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15072 fi
15073 ;;
15074
15075 sysv5* | sco3.2v5* | sco5v6*)
15076 # Note: We can NOT use -z defs as we might desire, because we do not
15077 # link with -lc, and that would cause any symbols used from libc to
15078 # always be unresolved, which means just about no library would
15079 # ever link correctly. If we're not using GNU ld we use -z text
15080 # though, which does catch some bad symbols but isn't as heavy-handed
15081 # as -z defs.
15082 no_undefined_flag_F77='${wl}-z,text'
15083 allow_undefined_flag_F77='${wl}-z,nodefs'
15084 archive_cmds_need_lc_F77=no
15085 hardcode_shlibpath_var_F77=no
15086 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15087 hardcode_libdir_separator_F77=':'
15088 link_all_deplibs_F77=yes
15089 export_dynamic_flag_spec_F77='${wl}-Bexport'
15090 runpath_var='LD_RUN_PATH'
15091
15092 if test "$GCC" = yes; then
15093 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15094 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15095 else
15096 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15097 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15098 fi
15099 ;;
15100
15101 uts4*)
15102 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15103 hardcode_libdir_flag_spec_F77='-L$libdir'
15104 hardcode_shlibpath_var_F77=no
15105 ;;
15106
15107 *)
15108 ld_shlibs_F77=no
15109 ;;
15110 esac
15111 fi
15112
15113 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15114 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15115 test "$ld_shlibs_F77" = no && can_build_shared=no
15116
15117 #
15118 # Do we need to explicitly link libc?
15119 #
15120 case "x$archive_cmds_need_lc_F77" in
15121 x|xyes)
15122 # Assume -lc should be added
15123 archive_cmds_need_lc_F77=yes
15124
15125 if test "$enable_shared" = yes && test "$GCC" = yes; then
15126 case $archive_cmds_F77 in
15127 *'~'*)
15128 # FIXME: we may have to deal with multi-command sequences.
15129 ;;
15130 '$CC '*)
15131 # Test whether the compiler implicitly links with -lc since on some
15132 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15133 # to ld, don't add -lc before -lgcc.
15134 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15135 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15136 $rm conftest*
15137 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15138
15139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15140 (eval $ac_compile) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } 2>conftest.err; then
15144 soname=conftest
15145 lib=conftest
15146 libobjs=conftest.$ac_objext
15147 deplibs=
15148 wl=$lt_prog_compiler_wl_F77
15149 pic_flag=$lt_prog_compiler_pic_F77
15150 compiler_flags=-v
15151 linker_flags=-v
15152 verstring=
15153 output_objdir=.
15154 libname=conftest
15155 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15156 allow_undefined_flag_F77=
15157 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15158 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15159 ac_status=$?
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }
15162 then
15163 archive_cmds_need_lc_F77=no
15164 else
15165 archive_cmds_need_lc_F77=yes
15166 fi
15167 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15168 else
15169 cat conftest.err 1>&5
15170 fi
15171 $rm conftest*
15172 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15173 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15174 ;;
15175 esac
15176 fi
15177 ;;
15178 esac
15179
15180 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15181 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15182 library_names_spec=
15183 libname_spec='lib$name'
15184 soname_spec=
15185 shrext=".so"
15186 postinstall_cmds=
15187 postuninstall_cmds=
15188 finish_cmds=
15189 finish_eval=
15190 shlibpath_var=
15191 shlibpath_overrides_runpath=unknown
15192 version_type=none
15193 dynamic_linker="$host_os ld.so"
15194 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15195 if test "$GCC" = yes; then
15196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15197 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15198 # if the path contains ";" then we assume it to be the separator
15199 # otherwise default to the standard path separator (i.e. ":") - it is
15200 # assumed that no part of a normal pathname contains ";" but that should
15201 # okay in the real world where ";" in dirpaths is itself problematic.
15202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15203 else
15204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15205 fi
15206 else
15207 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15208 fi
15209 need_lib_prefix=unknown
15210 hardcode_into_libs=no
15211
15212 # when you set need_version to no, make sure it does not cause -set_version
15213 # flags to be left without arguments
15214 need_version=unknown
15215
15216 case $host_os in
15217 aix3*)
15218 version_type=linux
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15220 shlibpath_var=LIBPATH
15221
15222 # AIX 3 has no versioning support, so we append a major version to the name.
15223 soname_spec='${libname}${release}${shared_ext}$major'
15224 ;;
15225
15226 aix4* | aix5*)
15227 version_type=linux
15228 need_lib_prefix=no
15229 need_version=no
15230 hardcode_into_libs=yes
15231 if test "$host_cpu" = ia64; then
15232 # AIX 5 supports IA64
15233 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15234 shlibpath_var=LD_LIBRARY_PATH
15235 else
15236 # With GCC up to 2.95.x, collect2 would create an import file
15237 # for dependence libraries. The import file would start with
15238 # the line `#! .'. This would cause the generated library to
15239 # depend on `.', always an invalid library. This was fixed in
15240 # development snapshots of GCC prior to 3.0.
15241 case $host_os in
15242 aix4 | aix4.[01] | aix4.[01].*)
15243 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15244 echo ' yes '
15245 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15246 :
15247 else
15248 can_build_shared=no
15249 fi
15250 ;;
15251 esac
15252 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15253 # soname into executable. Probably we can add versioning support to
15254 # collect2, so additional links can be useful in future.
15255 if test "$aix_use_runtimelinking" = yes; then
15256 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15257 # instead of lib<name>.a to let people know that these are not
15258 # typical AIX shared libraries.
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260 else
15261 # We preserve .a as extension for shared libraries through AIX4.2
15262 # and later when we are not doing run time linking.
15263 library_names_spec='${libname}${release}.a $libname.a'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 fi
15266 shlibpath_var=LIBPATH
15267 fi
15268 ;;
15269
15270 amigaos*)
15271 library_names_spec='$libname.ixlibrary $libname.a'
15272 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15273 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'
15274 ;;
15275
15276 beos*)
15277 library_names_spec='${libname}${shared_ext}'
15278 dynamic_linker="$host_os ld.so"
15279 shlibpath_var=LIBRARY_PATH
15280 ;;
15281
15282 bsdi[45]*)
15283 version_type=linux
15284 need_version=no
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15286 soname_spec='${libname}${release}${shared_ext}$major'
15287 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15288 shlibpath_var=LD_LIBRARY_PATH
15289 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15290 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15291 # the default ld.so.conf also contains /usr/contrib/lib and
15292 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15293 # libtool to hard-code these into programs
15294 ;;
15295
15296 cygwin* | mingw* | pw32*)
15297 version_type=windows
15298 shrext=".dll"
15299 need_version=no
15300 need_lib_prefix=no
15301
15302 case $GCC,$host_os in
15303 yes,cygwin* | yes,mingw* | yes,pw32*)
15304 library_names_spec='$libname.dll.a'
15305 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15306 postinstall_cmds='base_file=`basename \${file}`~
15307 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15308 dldir=$destdir/`dirname \$dlpath`~
15309 test -d \$dldir || mkdir -p \$dldir~
15310 $install_prog $dir/$dlname \$dldir/$dlname~
15311 chmod a+x \$dldir/$dlname'
15312 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15313 dlpath=$dir/\$dldll~
15314 $rm \$dlpath'
15315 shlibpath_overrides_runpath=yes
15316
15317 case $host_os in
15318 cygwin*)
15319 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15320 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15321 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15322 ;;
15323 mingw*)
15324 # MinGW DLLs use traditional 'lib' prefix
15325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15326 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15327 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15328 # It is most probably a Windows format PATH printed by
15329 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15330 # path with ; separators, and with drive letters. We can handle the
15331 # drive letters (cygwin fileutils understands them), so leave them,
15332 # especially as we might pass files found there to a mingw objdump,
15333 # which wouldn't understand a cygwinified path. Ahh.
15334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15335 else
15336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15337 fi
15338 ;;
15339 pw32*)
15340 # pw32 DLLs use 'pw' prefix rather than 'lib'
15341 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15342 ;;
15343 esac
15344 ;;
15345
15346 *)
15347 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15348 ;;
15349 esac
15350 dynamic_linker='Win32 ld.exe'
15351 # FIXME: first we should search . and the directory the executable is in
15352 shlibpath_var=PATH
15353 ;;
15354
15355 darwin* | rhapsody*)
15356 dynamic_linker="$host_os dyld"
15357 version_type=darwin
15358 need_lib_prefix=no
15359 need_version=no
15360 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15361 soname_spec='${libname}${release}${major}$shared_ext'
15362 shlibpath_overrides_runpath=yes
15363 shlibpath_var=DYLD_LIBRARY_PATH
15364 shrext='`test .$module = .yes && echo .so || echo .dylib`'
15365 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15366 if test "$GCC" = yes; then
15367 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15368 else
15369 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15370 fi
15371 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15372 ;;
15373
15374 dgux*)
15375 version_type=linux
15376 need_lib_prefix=no
15377 need_version=no
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 shlibpath_var=LD_LIBRARY_PATH
15381 ;;
15382
15383 freebsd1*)
15384 dynamic_linker=no
15385 ;;
15386
15387 kfreebsd*-gnu)
15388 version_type=linux
15389 need_lib_prefix=no
15390 need_version=no
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 shlibpath_var=LD_LIBRARY_PATH
15394 shlibpath_overrides_runpath=no
15395 hardcode_into_libs=yes
15396 dynamic_linker='GNU ld.so'
15397 ;;
15398
15399 freebsd* | dragonfly*)
15400 # DragonFly does not have aout. When/if they implement a new
15401 # versioning mechanism, adjust this.
15402 if test -x /usr/bin/objformat; then
15403 objformat=`/usr/bin/objformat`
15404 else
15405 case $host_os in
15406 freebsd[123]*) objformat=aout ;;
15407 *) objformat=elf ;;
15408 esac
15409 fi
15410 version_type=freebsd-$objformat
15411 case $version_type in
15412 freebsd-elf*)
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15414 need_version=no
15415 need_lib_prefix=no
15416 ;;
15417 freebsd-*)
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15419 need_version=yes
15420 ;;
15421 esac
15422 shlibpath_var=LD_LIBRARY_PATH
15423 case $host_os in
15424 freebsd2*)
15425 shlibpath_overrides_runpath=yes
15426 ;;
15427 freebsd3.[01]* | freebsdelf3.[01]*)
15428 shlibpath_overrides_runpath=yes
15429 hardcode_into_libs=yes
15430 ;;
15431 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15432 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15433 shlibpath_overrides_runpath=no
15434 hardcode_into_libs=yes
15435 ;;
15436 freebsd*) # from 4.6 on
15437 shlibpath_overrides_runpath=yes
15438 hardcode_into_libs=yes
15439 ;;
15440 esac
15441 ;;
15442
15443 gnu*)
15444 version_type=linux
15445 need_lib_prefix=no
15446 need_version=no
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 shlibpath_var=LD_LIBRARY_PATH
15450 hardcode_into_libs=yes
15451 ;;
15452
15453 hpux9* | hpux10* | hpux11*)
15454 # Give a soname corresponding to the major version so that dld.sl refuses to
15455 # link against other versions.
15456 version_type=sunos
15457 need_lib_prefix=no
15458 need_version=no
15459 case $host_cpu in
15460 ia64*)
15461 shrext='.so'
15462 hardcode_into_libs=yes
15463 dynamic_linker="$host_os dld.so"
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467 soname_spec='${libname}${release}${shared_ext}$major'
15468 if test "X$HPUX_IA64_MODE" = X32; then
15469 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15470 else
15471 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15472 fi
15473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15474 ;;
15475 hppa*64*)
15476 shrext='.sl'
15477 hardcode_into_libs=yes
15478 dynamic_linker="$host_os dld.sl"
15479 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15485 ;;
15486 *)
15487 shrext='.sl'
15488 dynamic_linker="$host_os dld.sl"
15489 shlibpath_var=SHLIB_PATH
15490 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 ;;
15494 esac
15495 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15496 postinstall_cmds='chmod 555 $lib'
15497 ;;
15498
15499 interix3*)
15500 version_type=linux
15501 need_lib_prefix=no
15502 need_version=no
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15506 shlibpath_var=LD_LIBRARY_PATH
15507 shlibpath_overrides_runpath=no
15508 hardcode_into_libs=yes
15509 ;;
15510
15511 irix5* | irix6* | nonstopux*)
15512 case $host_os in
15513 nonstopux*) version_type=nonstopux ;;
15514 *)
15515 if test "$lt_cv_prog_gnu_ld" = yes; then
15516 version_type=linux
15517 else
15518 version_type=irix
15519 fi ;;
15520 esac
15521 need_lib_prefix=no
15522 need_version=no
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15525 case $host_os in
15526 irix5* | nonstopux*)
15527 libsuff= shlibsuff=
15528 ;;
15529 *)
15530 case $LD in # libtool.m4 will add one of these switches to LD
15531 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15532 libsuff= shlibsuff= libmagic=32-bit;;
15533 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15534 libsuff=32 shlibsuff=N32 libmagic=N32;;
15535 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15536 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15537 *) libsuff= shlibsuff= libmagic=never-match;;
15538 esac
15539 ;;
15540 esac
15541 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15542 shlibpath_overrides_runpath=no
15543 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15544 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15545 hardcode_into_libs=yes
15546 ;;
15547
15548 # No shared lib support for Linux oldld, aout, or coff.
15549 linux*oldld* | linux*aout* | linux*coff*)
15550 dynamic_linker=no
15551 ;;
15552
15553 # This must be Linux ELF.
15554 linux*)
15555 version_type=linux
15556 need_lib_prefix=no
15557 need_version=no
15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15559 soname_spec='${libname}${release}${shared_ext}$major'
15560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=no
15563 # This implies no fast_install, which is unacceptable.
15564 # Some rework will be needed to allow for fast_install
15565 # before this can be enabled.
15566 hardcode_into_libs=yes
15567
15568 # find out which ABI we are using
15569 libsuff=
15570 case "$host_cpu" in
15571 x86_64*|s390x*|powerpc64*)
15572 echo '#line 15572 "configure"' > conftest.$ac_ext
15573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15574 (eval $ac_compile) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; then
15578 case `/usr/bin/file conftest.$ac_objext` in
15579 *64-bit*)
15580 libsuff=64
15581 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15582 ;;
15583 esac
15584 fi
15585 rm -rf conftest*
15586 ;;
15587 esac
15588
15589 # Append ld.so.conf contents to the search path
15590 if test -f /etc/ld.so.conf; then
15591 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15592 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15593 fi
15594
15595 # We used to test for /lib/ld.so.1 and disable shared libraries on
15596 # powerpc, because MkLinux only supported shared libraries with the
15597 # GNU dynamic linker. Since this was broken with cross compilers,
15598 # most powerpc-linux boxes support dynamic linking these days and
15599 # people can always --disable-shared, the test was removed, and we
15600 # assume the GNU/Linux dynamic linker is in use.
15601 dynamic_linker='GNU/Linux ld.so'
15602 ;;
15603
15604 knetbsd*-gnu)
15605 version_type=linux
15606 need_lib_prefix=no
15607 need_version=no
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 shlibpath_var=LD_LIBRARY_PATH
15611 shlibpath_overrides_runpath=no
15612 hardcode_into_libs=yes
15613 dynamic_linker='GNU ld.so'
15614 ;;
15615
15616 netbsd*)
15617 version_type=sunos
15618 need_lib_prefix=no
15619 need_version=no
15620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15623 dynamic_linker='NetBSD (a.out) ld.so'
15624 else
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 dynamic_linker='NetBSD ld.elf_so'
15628 fi
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=yes
15631 hardcode_into_libs=yes
15632 ;;
15633
15634 newsos6)
15635 version_type=linux
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637 shlibpath_var=LD_LIBRARY_PATH
15638 shlibpath_overrides_runpath=yes
15639 ;;
15640
15641 nto-qnx*)
15642 version_type=linux
15643 need_lib_prefix=no
15644 need_version=no
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath=yes
15649 ;;
15650
15651 openbsd*)
15652 version_type=sunos
15653 sys_lib_dlsearch_path_spec="/usr/lib"
15654 need_lib_prefix=no
15655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15656 case $host_os in
15657 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15658 *) need_version=no ;;
15659 esac
15660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15662 shlibpath_var=LD_LIBRARY_PATH
15663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15664 case $host_os in
15665 openbsd2.[89] | openbsd2.[89].*)
15666 shlibpath_overrides_runpath=no
15667 ;;
15668 *)
15669 shlibpath_overrides_runpath=yes
15670 ;;
15671 esac
15672 else
15673 shlibpath_overrides_runpath=yes
15674 fi
15675 ;;
15676
15677 os2*)
15678 libname_spec='$name'
15679 shrext=".dll"
15680 need_lib_prefix=no
15681 library_names_spec='$libname${shared_ext} $libname.a'
15682 dynamic_linker='OS/2 ld.exe'
15683 shlibpath_var=LIBPATH
15684 ;;
15685
15686 osf3* | osf4* | osf5*)
15687 version_type=osf
15688 need_lib_prefix=no
15689 need_version=no
15690 soname_spec='${libname}${release}${shared_ext}$major'
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15695 ;;
15696
15697 solaris*)
15698 version_type=linux
15699 need_lib_prefix=no
15700 need_version=no
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15702 soname_spec='${libname}${release}${shared_ext}$major'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes
15705 hardcode_into_libs=yes
15706 # ldd complains unless libraries are executable
15707 postinstall_cmds='chmod +x $lib'
15708 ;;
15709
15710 sunos4*)
15711 version_type=sunos
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 shlibpath_overrides_runpath=yes
15716 if test "$with_gnu_ld" = yes; then
15717 need_lib_prefix=no
15718 fi
15719 need_version=yes
15720 ;;
15721
15722 sysv4 | sysv4.3*)
15723 version_type=linux
15724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15725 soname_spec='${libname}${release}${shared_ext}$major'
15726 shlibpath_var=LD_LIBRARY_PATH
15727 case $host_vendor in
15728 sni)
15729 shlibpath_overrides_runpath=no
15730 need_lib_prefix=no
15731 export_dynamic_flag_spec='${wl}-Blargedynsym'
15732 runpath_var=LD_RUN_PATH
15733 ;;
15734 siemens)
15735 need_lib_prefix=no
15736 ;;
15737 motorola)
15738 need_lib_prefix=no
15739 need_version=no
15740 shlibpath_overrides_runpath=no
15741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15742 ;;
15743 esac
15744 ;;
15745
15746 sysv4*MP*)
15747 if test -d /usr/nec ;then
15748 version_type=linux
15749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15750 soname_spec='$libname${shared_ext}.$major'
15751 shlibpath_var=LD_LIBRARY_PATH
15752 fi
15753 ;;
15754
15755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15756 version_type=freebsd-elf
15757 need_lib_prefix=no
15758 need_version=no
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 hardcode_into_libs=yes
15763 if test "$with_gnu_ld" = yes; then
15764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15765 shlibpath_overrides_runpath=no
15766 else
15767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15768 shlibpath_overrides_runpath=yes
15769 case $host_os in
15770 sco3.2v5*)
15771 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15772 ;;
15773 esac
15774 fi
15775 sys_lib_dlsearch_path_spec='/usr/lib'
15776 ;;
15777
15778 uts4*)
15779 version_type=linux
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781 soname_spec='${libname}${release}${shared_ext}$major'
15782 shlibpath_var=LD_LIBRARY_PATH
15783 ;;
15784
15785 *)
15786 dynamic_linker=no
15787 ;;
15788 esac
15789 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15790 echo "${ECHO_T}$dynamic_linker" >&6; }
15791 test "$dynamic_linker" = no && can_build_shared=no
15792
15793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15794 if test "$GCC" = yes; then
15795 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15796 fi
15797
15798 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15799 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15800 hardcode_action_F77=
15801 if test -n "$hardcode_libdir_flag_spec_F77" || \
15802 test -n "$runpath_var_F77" || \
15803 test "X$hardcode_automatic_F77" = "Xyes" ; then
15804
15805 # We can hardcode non-existant directories.
15806 if test "$hardcode_direct_F77" != no &&
15807 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15808 # have to relink, otherwise we might link with an installed library
15809 # when we should be linking with a yet-to-be-installed one
15810 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15811 test "$hardcode_minus_L_F77" != no; then
15812 # Linking always hardcodes the temporary library directory.
15813 hardcode_action_F77=relink
15814 else
15815 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15816 hardcode_action_F77=immediate
15817 fi
15818 else
15819 # We cannot hardcode anything, or else we can only hardcode existing
15820 # directories.
15821 hardcode_action_F77=unsupported
15822 fi
15823 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15824 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15825
15826 if test "$hardcode_action_F77" = relink; then
15827 # Fast installation is not supported
15828 enable_fast_install=no
15829 elif test "$shlibpath_overrides_runpath" = yes ||
15830 test "$enable_shared" = no; then
15831 # Fast installation is not necessary
15832 enable_fast_install=needless
15833 fi
15834
15835
15836 # The else clause should only fire when bootstrapping the
15837 # libtool distribution, otherwise you forgot to ship ltmain.sh
15838 # with your package, and you will get complaints that there are
15839 # no rules to generate ltmain.sh.
15840 if test -f "$ltmain"; then
15841 # See if we are running on zsh, and set the options which allow our commands through
15842 # without removal of \ escapes.
15843 if test -n "${ZSH_VERSION+set}" ; then
15844 setopt NO_GLOB_SUBST
15845 fi
15846 # Now quote all the things that may contain metacharacters while being
15847 # careful not to overquote the AC_SUBSTed values. We take copies of the
15848 # variables and quote the copies for generation of the libtool script.
15849 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15850 SED SHELL STRIP \
15851 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15852 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15853 deplibs_check_method reload_flag reload_cmds need_locks \
15854 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15855 lt_cv_sys_global_symbol_to_c_name_address \
15856 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15857 old_postinstall_cmds old_postuninstall_cmds \
15858 compiler_F77 \
15859 CC_F77 \
15860 LD_F77 \
15861 lt_prog_compiler_wl_F77 \
15862 lt_prog_compiler_pic_F77 \
15863 lt_prog_compiler_static_F77 \
15864 lt_prog_compiler_no_builtin_flag_F77 \
15865 export_dynamic_flag_spec_F77 \
15866 thread_safe_flag_spec_F77 \
15867 whole_archive_flag_spec_F77 \
15868 enable_shared_with_static_runtimes_F77 \
15869 old_archive_cmds_F77 \
15870 old_archive_from_new_cmds_F77 \
15871 predep_objects_F77 \
15872 postdep_objects_F77 \
15873 predeps_F77 \
15874 postdeps_F77 \
15875 compiler_lib_search_path_F77 \
15876 archive_cmds_F77 \
15877 archive_expsym_cmds_F77 \
15878 postinstall_cmds_F77 \
15879 postuninstall_cmds_F77 \
15880 old_archive_from_expsyms_cmds_F77 \
15881 allow_undefined_flag_F77 \
15882 no_undefined_flag_F77 \
15883 export_symbols_cmds_F77 \
15884 hardcode_libdir_flag_spec_F77 \
15885 hardcode_libdir_flag_spec_ld_F77 \
15886 hardcode_libdir_separator_F77 \
15887 hardcode_automatic_F77 \
15888 module_cmds_F77 \
15889 module_expsym_cmds_F77 \
15890 lt_cv_prog_compiler_c_o_F77 \
15891 exclude_expsyms_F77 \
15892 include_expsyms_F77; do
15893
15894 case $var in
15895 old_archive_cmds_F77 | \
15896 old_archive_from_new_cmds_F77 | \
15897 archive_cmds_F77 | \
15898 archive_expsym_cmds_F77 | \
15899 module_cmds_F77 | \
15900 module_expsym_cmds_F77 | \
15901 old_archive_from_expsyms_cmds_F77 | \
15902 export_symbols_cmds_F77 | \
15903 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15904 postinstall_cmds | postuninstall_cmds | \
15905 old_postinstall_cmds | old_postuninstall_cmds | \
15906 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15907 # Double-quote double-evaled strings.
15908 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15909 ;;
15910 *)
15911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15912 ;;
15913 esac
15914 done
15915
15916 case $lt_echo in
15917 *'\$0 --fallback-echo"')
15918 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15919 ;;
15920 esac
15921
15922 cfgfile="$ofile"
15923
15924 cat <<__EOF__ >> "$cfgfile"
15925 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15926
15927 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15928
15929 # Shell to use when invoking shell scripts.
15930 SHELL=$lt_SHELL
15931
15932 # Whether or not to build shared libraries.
15933 build_libtool_libs=$enable_shared
15934
15935 # Whether or not to build static libraries.
15936 build_old_libs=$enable_static
15937
15938 # Whether or not to add -lc for building shared libraries.
15939 build_libtool_need_lc=$archive_cmds_need_lc_F77
15940
15941 # Whether or not to disallow shared libs when runtime libs are static
15942 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15943
15944 # Whether or not to optimize for fast installation.
15945 fast_install=$enable_fast_install
15946
15947 # The host system.
15948 host_alias=$host_alias
15949 host=$host
15950 host_os=$host_os
15951
15952 # The build system.
15953 build_alias=$build_alias
15954 build=$build
15955 build_os=$build_os
15956
15957 # An echo program that does not interpret backslashes.
15958 echo=$lt_echo
15959
15960 # The archiver.
15961 AR=$lt_AR
15962 AR_FLAGS=$lt_AR_FLAGS
15963
15964 # A C compiler.
15965 LTCC=$lt_LTCC
15966
15967 # LTCC compiler flags.
15968 LTCFLAGS=$lt_LTCFLAGS
15969
15970 # A language-specific compiler.
15971 CC=$lt_compiler_F77
15972
15973 # Is the compiler the GNU C compiler?
15974 with_gcc=$GCC_F77
15975
15976 # An ERE matcher.
15977 EGREP=$lt_EGREP
15978
15979 # The linker used to build libraries.
15980 LD=$lt_LD_F77
15981
15982 # Whether we need hard or soft links.
15983 LN_S=$lt_LN_S
15984
15985 # A BSD-compatible nm program.
15986 NM=$lt_NM
15987
15988 # A symbol stripping program
15989 STRIP=$lt_STRIP
15990
15991 # Used to examine libraries when file_magic_cmd begins "file"
15992 MAGIC_CMD=$MAGIC_CMD
15993
15994 # Used on cygwin: DLL creation program.
15995 DLLTOOL="$DLLTOOL"
15996
15997 # Used on cygwin: object dumper.
15998 OBJDUMP="$OBJDUMP"
15999
16000 # Used on cygwin: assembler.
16001 AS="$AS"
16002
16003 # The name of the directory that contains temporary libtool files.
16004 objdir=$objdir
16005
16006 # How to create reloadable object files.
16007 reload_flag=$lt_reload_flag
16008 reload_cmds=$lt_reload_cmds
16009
16010 # How to pass a linker flag through the compiler.
16011 wl=$lt_lt_prog_compiler_wl_F77
16012
16013 # Object file suffix (normally "o").
16014 objext="$ac_objext"
16015
16016 # Old archive suffix (normally "a").
16017 libext="$libext"
16018
16019 # Shared library suffix (normally ".so").
16020 shrext='$shrext'
16021
16022 # Executable file suffix (normally "").
16023 exeext="$exeext"
16024
16025 # Additional compiler flags for building library objects.
16026 pic_flag=$lt_lt_prog_compiler_pic_F77
16027 pic_mode=$pic_mode
16028
16029 # What is the maximum length of a command?
16030 max_cmd_len=$lt_cv_sys_max_cmd_len
16031
16032 # Does compiler simultaneously support -c and -o options?
16033 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16034
16035 # Must we lock files when doing compilation?
16036 need_locks=$lt_need_locks
16037
16038 # Do we need the lib prefix for modules?
16039 need_lib_prefix=$need_lib_prefix
16040
16041 # Do we need a version for libraries?
16042 need_version=$need_version
16043
16044 # Whether dlopen is supported.
16045 dlopen_support=$enable_dlopen
16046
16047 # Whether dlopen of programs is supported.
16048 dlopen_self=$enable_dlopen_self
16049
16050 # Whether dlopen of statically linked programs is supported.
16051 dlopen_self_static=$enable_dlopen_self_static
16052
16053 # Compiler flag to prevent dynamic linking.
16054 link_static_flag=$lt_lt_prog_compiler_static_F77
16055
16056 # Compiler flag to turn off builtin functions.
16057 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16058
16059 # Compiler flag to allow reflexive dlopens.
16060 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16061
16062 # Compiler flag to generate shared objects directly from archives.
16063 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16064
16065 # Compiler flag to generate thread-safe objects.
16066 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16067
16068 # Library versioning type.
16069 version_type=$version_type
16070
16071 # Format of library name prefix.
16072 libname_spec=$lt_libname_spec
16073
16074 # List of archive names. First name is the real one, the rest are links.
16075 # The last name is the one that the linker finds with -lNAME.
16076 library_names_spec=$lt_library_names_spec
16077
16078 # The coded name of the library, if different from the real name.
16079 soname_spec=$lt_soname_spec
16080
16081 # Commands used to build and install an old-style archive.
16082 RANLIB=$lt_RANLIB
16083 old_archive_cmds=$lt_old_archive_cmds_F77
16084 old_postinstall_cmds=$lt_old_postinstall_cmds
16085 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16086
16087 # Create an old-style archive from a shared archive.
16088 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16089
16090 # Create a temporary old-style archive to link instead of a shared archive.
16091 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16092
16093 # Commands used to build and install a shared archive.
16094 archive_cmds=$lt_archive_cmds_F77
16095 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16096 postinstall_cmds=$lt_postinstall_cmds
16097 postuninstall_cmds=$lt_postuninstall_cmds
16098
16099 # Commands used to build a loadable module (assumed same as above if empty)
16100 module_cmds=$lt_module_cmds_F77
16101 module_expsym_cmds=$lt_module_expsym_cmds_F77
16102
16103 # Commands to strip libraries.
16104 old_striplib=$lt_old_striplib
16105 striplib=$lt_striplib
16106
16107 # Dependencies to place before the objects being linked to create a
16108 # shared library.
16109 predep_objects=$lt_predep_objects_F77
16110
16111 # Dependencies to place after the objects being linked to create a
16112 # shared library.
16113 postdep_objects=$lt_postdep_objects_F77
16114
16115 # Dependencies to place before the objects being linked to create a
16116 # shared library.
16117 predeps=$lt_predeps_F77
16118
16119 # Dependencies to place after the objects being linked to create a
16120 # shared library.
16121 postdeps=$lt_postdeps_F77
16122
16123 # The library search path used internally by the compiler when linking
16124 # a shared library.
16125 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16126
16127 # Method to check whether dependent libraries are shared objects.
16128 deplibs_check_method=$lt_deplibs_check_method
16129
16130 # Command to use when deplibs_check_method == file_magic.
16131 file_magic_cmd=$lt_file_magic_cmd
16132
16133 # Flag that allows shared libraries with undefined symbols to be built.
16134 allow_undefined_flag=$lt_allow_undefined_flag_F77
16135
16136 # Flag that forces no undefined symbols.
16137 no_undefined_flag=$lt_no_undefined_flag_F77
16138
16139 # Commands used to finish a libtool library installation in a directory.
16140 finish_cmds=$lt_finish_cmds
16141
16142 # Same as above, but a single script fragment to be evaled but not shown.
16143 finish_eval=$lt_finish_eval
16144
16145 # Take the output of nm and produce a listing of raw symbols and C names.
16146 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16147
16148 # Transform the output of nm in a proper C declaration
16149 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16150
16151 # Transform the output of nm in a C name address pair
16152 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16153
16154 # This is the shared library runtime path variable.
16155 runpath_var=$runpath_var
16156
16157 # This is the shared library path variable.
16158 shlibpath_var=$shlibpath_var
16159
16160 # Is shlibpath searched before the hard-coded library search path?
16161 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16162
16163 # How to hardcode a shared library path into an executable.
16164 hardcode_action=$hardcode_action_F77
16165
16166 # Whether we should hardcode library paths into libraries.
16167 hardcode_into_libs=$hardcode_into_libs
16168
16169 # Flag to hardcode \$libdir into a binary during linking.
16170 # This must work even if \$libdir does not exist.
16171 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16172
16173 # If ld is used when linking, flag to hardcode \$libdir into
16174 # a binary during linking. This must work even if \$libdir does
16175 # not exist.
16176 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16177
16178 # Whether we need a single -rpath flag with a separated argument.
16179 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16180
16181 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16182 # resulting binary.
16183 hardcode_direct=$hardcode_direct_F77
16184
16185 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16186 # resulting binary.
16187 hardcode_minus_L=$hardcode_minus_L_F77
16188
16189 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16190 # the resulting binary.
16191 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16192
16193 # Set to yes if building a shared library automatically hardcodes DIR into the library
16194 # and all subsequent libraries and executables linked against it.
16195 hardcode_automatic=$hardcode_automatic_F77
16196
16197 # Variables whose values should be saved in libtool wrapper scripts and
16198 # restored at relink time.
16199 variables_saved_for_relink="$variables_saved_for_relink"
16200
16201 # Whether libtool must link a program against all its dependency libraries.
16202 link_all_deplibs=$link_all_deplibs_F77
16203
16204 # Compile-time system search path for libraries
16205 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16206
16207 # Run-time system search path for libraries
16208 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16209
16210 # Fix the shell variable \$srcfile for the compiler.
16211 fix_srcfile_path="$fix_srcfile_path_F77"
16212
16213 # Set to yes if exported symbols are required.
16214 always_export_symbols=$always_export_symbols_F77
16215
16216 # The commands to list exported symbols.
16217 export_symbols_cmds=$lt_export_symbols_cmds_F77
16218
16219 # The commands to extract the exported symbol list from a shared archive.
16220 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16221
16222 # Symbols that should not be listed in the preloaded symbols.
16223 exclude_expsyms=$lt_exclude_expsyms_F77
16224
16225 # Symbols that must always be exported.
16226 include_expsyms=$lt_include_expsyms_F77
16227
16228 # ### END LIBTOOL TAG CONFIG: $tagname
16229
16230 __EOF__
16231
16232
16233 else
16234 # If there is no Makefile yet, we rely on a make rule to execute
16235 # `config.status --recheck' to rerun these tests and create the
16236 # libtool script then.
16237 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16238 if test -f "$ltmain_in"; then
16239 test -f Makefile && make "$ltmain"
16240 fi
16241 fi
16242
16243
16244 ac_ext=c
16245 ac_cpp='$CPP $CPPFLAGS'
16246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16249
16250 CC="$lt_save_CC"
16251
16252 else
16253 tagname=""
16254 fi
16255 ;;
16256
16257 GCJ)
16258 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16259
16260
16261 # Source file extension for Java test sources.
16262 ac_ext=java
16263
16264 # Object file extension for compiled Java test sources.
16265 objext=o
16266 objext_GCJ=$objext
16267
16268 # Code to be used in simple compile tests
16269 lt_simple_compile_test_code="class foo {}\n"
16270
16271 # Code to be used in simple link tests
16272 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16273
16274 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16275
16276 # If no C compiler was specified, use CC.
16277 LTCC=${LTCC-"$CC"}
16278
16279 # If no C compiler flags were specified, use CFLAGS.
16280 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16281
16282 # Allow CC to be a program name with arguments.
16283 compiler=$CC
16284
16285
16286 # save warnings/boilerplate of simple test code
16287 ac_outfile=conftest.$ac_objext
16288 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16289 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16290 _lt_compiler_boilerplate=`cat conftest.err`
16291 $rm conftest*
16292
16293 ac_outfile=conftest.$ac_objext
16294 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16295 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16296 _lt_linker_boilerplate=`cat conftest.err`
16297 $rm conftest*
16298
16299
16300 # Allow CC to be a program name with arguments.
16301 lt_save_CC="$CC"
16302 CC=${GCJ-"gcj"}
16303 compiler=$CC
16304 compiler_GCJ=$CC
16305 for cc_temp in $compiler""; do
16306 case $cc_temp in
16307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16309 \-*) ;;
16310 *) break;;
16311 esac
16312 done
16313 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16314
16315
16316 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16317 archive_cmds_need_lc_GCJ=no
16318
16319 old_archive_cmds_GCJ=$old_archive_cmds
16320
16321
16322 lt_prog_compiler_no_builtin_flag_GCJ=
16323
16324 if test "$GCC" = yes; then
16325 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16326
16327
16328 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16329 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16330 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333 lt_cv_prog_compiler_rtti_exceptions=no
16334 ac_outfile=conftest.$ac_objext
16335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16336 lt_compiler_flag="-fno-rtti -fno-exceptions"
16337 # Insert the option either (1) after the last *FLAGS variable, or
16338 # (2) before a word containing "conftest.", or (3) at the end.
16339 # Note that $ac_compile itself does not contain backslashes and begins
16340 # with a dollar sign (not a hyphen), so the echo should work correctly.
16341 # The option is referenced via a variable to avoid confusing sed.
16342 lt_compile=`echo "$ac_compile" | $SED \
16343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16345 -e 's:$: $lt_compiler_flag:'`
16346 (eval echo "\"\$as_me:16346: $lt_compile\"" >&5)
16347 (eval "$lt_compile" 2>conftest.err)
16348 ac_status=$?
16349 cat conftest.err >&5
16350 echo "$as_me:16350: \$? = $ac_status" >&5
16351 if (exit $ac_status) && test -s "$ac_outfile"; then
16352 # The compiler can only warn and ignore the option if not recognized
16353 # So say no if there are warnings other than the usual output.
16354 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16357 lt_cv_prog_compiler_rtti_exceptions=yes
16358 fi
16359 fi
16360 $rm conftest*
16361
16362 fi
16363 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16364 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16365
16366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16367 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16368 else
16369 :
16370 fi
16371
16372 fi
16373
16374 lt_prog_compiler_wl_GCJ=
16375 lt_prog_compiler_pic_GCJ=
16376 lt_prog_compiler_static_GCJ=
16377
16378 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16379 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16380
16381 if test "$GCC" = yes; then
16382 lt_prog_compiler_wl_GCJ='-Wl,'
16383 lt_prog_compiler_static_GCJ='-static'
16384
16385 case $host_os in
16386 aix*)
16387 # All AIX code is PIC.
16388 if test "$host_cpu" = ia64; then
16389 # AIX 5 now supports IA64 processor
16390 lt_prog_compiler_static_GCJ='-Bstatic'
16391 fi
16392 ;;
16393
16394 amigaos*)
16395 # FIXME: we need at least 68020 code to build shared libraries, but
16396 # adding the `-m68020' flag to GCC prevents building anything better,
16397 # like `-m68040'.
16398 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16399 ;;
16400
16401 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16402 # PIC is the default for these OSes.
16403 ;;
16404
16405 mingw* | pw32* | os2*)
16406 # This hack is so that the source file can tell whether it is being
16407 # built for inclusion in a dll (and should export symbols for example).
16408 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16409 ;;
16410
16411 darwin* | rhapsody*)
16412 # PIC is the default on this platform
16413 # Common symbols not allowed in MH_DYLIB files
16414 lt_prog_compiler_pic_GCJ='-fno-common'
16415 ;;
16416
16417 interix3*)
16418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16419 # Instead, we relocate shared libraries at runtime.
16420 ;;
16421
16422 msdosdjgpp*)
16423 # Just because we use GCC doesn't mean we suddenly get shared libraries
16424 # on systems that don't support them.
16425 lt_prog_compiler_can_build_shared_GCJ=no
16426 enable_shared=no
16427 ;;
16428
16429 sysv4*MP*)
16430 if test -d /usr/nec; then
16431 lt_prog_compiler_pic_GCJ=-Kconform_pic
16432 fi
16433 ;;
16434
16435 hpux*)
16436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16437 # not for PA HP-UX.
16438 case $host_cpu in
16439 hppa*64*|ia64*)
16440 # +Z the default
16441 ;;
16442 *)
16443 lt_prog_compiler_pic_GCJ='-fPIC'
16444 ;;
16445 esac
16446 ;;
16447
16448 *)
16449 lt_prog_compiler_pic_GCJ='-fPIC'
16450 ;;
16451 esac
16452 else
16453 # PORTME Check for flag to pass linker flags through the system compiler.
16454 case $host_os in
16455 aix*)
16456 lt_prog_compiler_wl_GCJ='-Wl,'
16457 if test "$host_cpu" = ia64; then
16458 # AIX 5 now supports IA64 processor
16459 lt_prog_compiler_static_GCJ='-Bstatic'
16460 else
16461 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16462 fi
16463 ;;
16464 darwin*)
16465 # PIC is the default on this platform
16466 # Common symbols not allowed in MH_DYLIB files
16467 case $cc_basename in
16468 xlc*)
16469 lt_prog_compiler_pic_GCJ='-qnocommon'
16470 lt_prog_compiler_wl_GCJ='-Wl,'
16471 ;;
16472 esac
16473 ;;
16474
16475 mingw* | pw32* | os2*)
16476 # This hack is so that the source file can tell whether it is being
16477 # built for inclusion in a dll (and should export symbols for example).
16478 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16479 ;;
16480
16481 hpux9* | hpux10* | hpux11*)
16482 lt_prog_compiler_wl_GCJ='-Wl,'
16483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16484 # not for PA HP-UX.
16485 case $host_cpu in
16486 hppa*64*|ia64*)
16487 # +Z the default
16488 ;;
16489 *)
16490 lt_prog_compiler_pic_GCJ='+Z'
16491 ;;
16492 esac
16493 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16494 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16495 ;;
16496
16497 irix5* | irix6* | nonstopux*)
16498 lt_prog_compiler_wl_GCJ='-Wl,'
16499 # PIC (with -KPIC) is the default.
16500 lt_prog_compiler_static_GCJ='-non_shared'
16501 ;;
16502
16503 newsos6)
16504 lt_prog_compiler_pic_GCJ='-KPIC'
16505 lt_prog_compiler_static_GCJ='-Bstatic'
16506 ;;
16507
16508 linux*)
16509 case $cc_basename in
16510 icc* | ecc*)
16511 lt_prog_compiler_wl_GCJ='-Wl,'
16512 lt_prog_compiler_pic_GCJ='-KPIC'
16513 lt_prog_compiler_static_GCJ='-static'
16514 ;;
16515 pgcc* | pgf77* | pgf90* | pgf95*)
16516 # Portland Group compilers (*not* the Pentium gcc compiler,
16517 # which looks to be a dead project)
16518 lt_prog_compiler_wl_GCJ='-Wl,'
16519 lt_prog_compiler_pic_GCJ='-fpic'
16520 lt_prog_compiler_static_GCJ='-Bstatic'
16521 ;;
16522 ccc*)
16523 lt_prog_compiler_wl_GCJ='-Wl,'
16524 # All Alpha code is PIC.
16525 lt_prog_compiler_static_GCJ='-non_shared'
16526 ;;
16527 esac
16528 ;;
16529
16530 osf3* | osf4* | osf5*)
16531 lt_prog_compiler_wl_GCJ='-Wl,'
16532 # All OSF/1 code is PIC.
16533 lt_prog_compiler_static_GCJ='-non_shared'
16534 ;;
16535
16536 solaris*)
16537 lt_prog_compiler_pic_GCJ='-KPIC'
16538 lt_prog_compiler_static_GCJ='-Bstatic'
16539 case $cc_basename in
16540 f77* | f90* | f95*)
16541 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16542 *)
16543 lt_prog_compiler_wl_GCJ='-Wl,';;
16544 esac
16545 ;;
16546
16547 sunos4*)
16548 lt_prog_compiler_wl_GCJ='-Qoption ld '
16549 lt_prog_compiler_pic_GCJ='-PIC'
16550 lt_prog_compiler_static_GCJ='-Bstatic'
16551 ;;
16552
16553 sysv4 | sysv4.2uw2* | sysv4.3*)
16554 lt_prog_compiler_wl_GCJ='-Wl,'
16555 lt_prog_compiler_pic_GCJ='-KPIC'
16556 lt_prog_compiler_static_GCJ='-Bstatic'
16557 ;;
16558
16559 sysv4*MP*)
16560 if test -d /usr/nec ;then
16561 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16562 lt_prog_compiler_static_GCJ='-Bstatic'
16563 fi
16564 ;;
16565
16566 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16567 lt_prog_compiler_wl_GCJ='-Wl,'
16568 lt_prog_compiler_pic_GCJ='-KPIC'
16569 lt_prog_compiler_static_GCJ='-Bstatic'
16570 ;;
16571
16572 unicos*)
16573 lt_prog_compiler_wl_GCJ='-Wl,'
16574 lt_prog_compiler_can_build_shared_GCJ=no
16575 ;;
16576
16577 uts4*)
16578 lt_prog_compiler_pic_GCJ='-pic'
16579 lt_prog_compiler_static_GCJ='-Bstatic'
16580 ;;
16581
16582 *)
16583 lt_prog_compiler_can_build_shared_GCJ=no
16584 ;;
16585 esac
16586 fi
16587
16588 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16589 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16590
16591 #
16592 # Check to make sure the PIC flag actually works.
16593 #
16594 if test -n "$lt_prog_compiler_pic_GCJ"; then
16595
16596 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16597 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16598 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 else
16601 lt_prog_compiler_pic_works_GCJ=no
16602 ac_outfile=conftest.$ac_objext
16603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16604 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16605 # Insert the option either (1) after the last *FLAGS variable, or
16606 # (2) before a word containing "conftest.", or (3) at the end.
16607 # Note that $ac_compile itself does not contain backslashes and begins
16608 # with a dollar sign (not a hyphen), so the echo should work correctly.
16609 # The option is referenced via a variable to avoid confusing sed.
16610 lt_compile=`echo "$ac_compile" | $SED \
16611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16613 -e 's:$: $lt_compiler_flag:'`
16614 (eval echo "\"\$as_me:16614: $lt_compile\"" >&5)
16615 (eval "$lt_compile" 2>conftest.err)
16616 ac_status=$?
16617 cat conftest.err >&5
16618 echo "$as_me:16618: \$? = $ac_status" >&5
16619 if (exit $ac_status) && test -s "$ac_outfile"; then
16620 # The compiler can only warn and ignore the option if not recognized
16621 # So say no if there are warnings other than the usual output.
16622 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16625 lt_prog_compiler_pic_works_GCJ=yes
16626 fi
16627 fi
16628 $rm conftest*
16629
16630 fi
16631 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16632 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16633
16634 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16635 case $lt_prog_compiler_pic_GCJ in
16636 "" | " "*) ;;
16637 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16638 esac
16639 else
16640 lt_prog_compiler_pic_GCJ=
16641 lt_prog_compiler_can_build_shared_GCJ=no
16642 fi
16643
16644 fi
16645 case $host_os in
16646 # For platforms which do not support PIC, -DPIC is meaningless:
16647 *djgpp*)
16648 lt_prog_compiler_pic_GCJ=
16649 ;;
16650 *)
16651 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16652 ;;
16653 esac
16654
16655 #
16656 # Check to make sure the static flag actually works.
16657 #
16658 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16659 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16660 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16661 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 else
16664 lt_prog_compiler_static_works_GCJ=no
16665 save_LDFLAGS="$LDFLAGS"
16666 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16667 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16668 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16669 # The linker can only warn and ignore the option if not recognized
16670 # So say no if there are warnings
16671 if test -s conftest.err; then
16672 # Append any errors to the config.log.
16673 cat conftest.err 1>&5
16674 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16676 if diff conftest.exp conftest.er2 >/dev/null; then
16677 lt_prog_compiler_static_works_GCJ=yes
16678 fi
16679 else
16680 lt_prog_compiler_static_works_GCJ=yes
16681 fi
16682 fi
16683 $rm conftest*
16684 LDFLAGS="$save_LDFLAGS"
16685
16686 fi
16687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16688 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16689
16690 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16691 :
16692 else
16693 lt_prog_compiler_static_GCJ=
16694 fi
16695
16696
16697 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16698 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16699 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702 lt_cv_prog_compiler_c_o_GCJ=no
16703 $rm -r conftest 2>/dev/null
16704 mkdir conftest
16705 cd conftest
16706 mkdir out
16707 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16708
16709 lt_compiler_flag="-o out/conftest2.$ac_objext"
16710 # Insert the option either (1) after the last *FLAGS variable, or
16711 # (2) before a word containing "conftest.", or (3) at the end.
16712 # Note that $ac_compile itself does not contain backslashes and begins
16713 # with a dollar sign (not a hyphen), so the echo should work correctly.
16714 lt_compile=`echo "$ac_compile" | $SED \
16715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16717 -e 's:$: $lt_compiler_flag:'`
16718 (eval echo "\"\$as_me:16718: $lt_compile\"" >&5)
16719 (eval "$lt_compile" 2>out/conftest.err)
16720 ac_status=$?
16721 cat out/conftest.err >&5
16722 echo "$as_me:16722: \$? = $ac_status" >&5
16723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16724 then
16725 # The compiler can only warn and ignore the option if not recognized
16726 # So say no if there are warnings
16727 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16730 lt_cv_prog_compiler_c_o_GCJ=yes
16731 fi
16732 fi
16733 chmod u+w . 2>&5
16734 $rm conftest*
16735 # SGI C++ compiler will create directory out/ii_files/ for
16736 # template instantiation
16737 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16738 $rm out/* && rmdir out
16739 cd ..
16740 rmdir conftest
16741 $rm conftest*
16742
16743 fi
16744 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16745 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16746
16747
16748 hard_links="nottested"
16749 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16750 # do not overwrite the value of need_locks provided by the user
16751 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16752 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16753 hard_links=yes
16754 $rm conftest*
16755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16756 touch conftest.a
16757 ln conftest.a conftest.b 2>&5 || hard_links=no
16758 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16759 { echo "$as_me:$LINENO: result: $hard_links" >&5
16760 echo "${ECHO_T}$hard_links" >&6; }
16761 if test "$hard_links" = no; then
16762 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16763 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16764 need_locks=warn
16765 fi
16766 else
16767 need_locks=no
16768 fi
16769
16770 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16771 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16772
16773 runpath_var=
16774 allow_undefined_flag_GCJ=
16775 enable_shared_with_static_runtimes_GCJ=no
16776 archive_cmds_GCJ=
16777 archive_expsym_cmds_GCJ=
16778 old_archive_From_new_cmds_GCJ=
16779 old_archive_from_expsyms_cmds_GCJ=
16780 export_dynamic_flag_spec_GCJ=
16781 whole_archive_flag_spec_GCJ=
16782 thread_safe_flag_spec_GCJ=
16783 hardcode_libdir_flag_spec_GCJ=
16784 hardcode_libdir_flag_spec_ld_GCJ=
16785 hardcode_libdir_separator_GCJ=
16786 hardcode_direct_GCJ=no
16787 hardcode_minus_L_GCJ=no
16788 hardcode_shlibpath_var_GCJ=unsupported
16789 link_all_deplibs_GCJ=unknown
16790 hardcode_automatic_GCJ=no
16791 module_cmds_GCJ=
16792 module_expsym_cmds_GCJ=
16793 always_export_symbols_GCJ=no
16794 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16795 # include_expsyms should be a list of space-separated symbols to be *always*
16796 # included in the symbol list
16797 include_expsyms_GCJ=
16798 # exclude_expsyms can be an extended regexp of symbols to exclude
16799 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16800 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16801 # as well as any symbol that contains `d'.
16802 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16803 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16804 # platforms (ab)use it in PIC code, but their linkers get confused if
16805 # the symbol is explicitly referenced. Since portable code cannot
16806 # rely on this symbol name, it's probably fine to never include it in
16807 # preloaded symbol tables.
16808 extract_expsyms_cmds=
16809 # Just being paranoid about ensuring that cc_basename is set.
16810 for cc_temp in $compiler""; do
16811 case $cc_temp in
16812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16814 \-*) ;;
16815 *) break;;
16816 esac
16817 done
16818 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16819
16820 case $host_os in
16821 cygwin* | mingw* | pw32*)
16822 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16823 # When not using gcc, we currently assume that we are using
16824 # Microsoft Visual C++.
16825 if test "$GCC" != yes; then
16826 with_gnu_ld=no
16827 fi
16828 ;;
16829 interix*)
16830 # we just hope/assume this is gcc and not c89 (= MSVC++)
16831 with_gnu_ld=yes
16832 ;;
16833 openbsd*)
16834 with_gnu_ld=no
16835 ;;
16836 esac
16837
16838 ld_shlibs_GCJ=yes
16839 if test "$with_gnu_ld" = yes; then
16840 # If archive_cmds runs LD, not CC, wlarc should be empty
16841 wlarc='${wl}'
16842
16843 # Set some defaults for GNU ld with shared library support. These
16844 # are reset later if shared libraries are not supported. Putting them
16845 # here allows them to be overridden if necessary.
16846 runpath_var=LD_RUN_PATH
16847 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16848 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16849 # ancient GNU ld didn't support --whole-archive et. al.
16850 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16851 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16852 else
16853 whole_archive_flag_spec_GCJ=
16854 fi
16855 supports_anon_versioning=no
16856 case `$LD -v 2>/dev/null` in
16857 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16858 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16859 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16860 *\ 2.11.*) ;; # other 2.11 versions
16861 *) supports_anon_versioning=yes ;;
16862 esac
16863
16864 # See if GNU ld supports shared libraries.
16865 case $host_os in
16866 aix3* | aix4* | aix5*)
16867 # On AIX/PPC, the GNU linker is very broken
16868 if test "$host_cpu" != ia64; then
16869 ld_shlibs_GCJ=no
16870 cat <<EOF 1>&2
16871
16872 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16873 *** to be unable to reliably create shared libraries on AIX.
16874 *** Therefore, libtool is disabling shared libraries support. If you
16875 *** really care for shared libraries, you may want to modify your PATH
16876 *** so that a non-GNU linker is found, and then restart.
16877
16878 EOF
16879 fi
16880 ;;
16881
16882 amigaos*)
16883 archive_cmds_GCJ='$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)'
16884 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16885 hardcode_minus_L_GCJ=yes
16886
16887 # Samuel A. Falvo II <[email protected]> reports
16888 # that the semantics of dynamic libraries on AmigaOS, at least up
16889 # to version 4, is to share data among multiple programs linked
16890 # with the same dynamic library. Since this doesn't match the
16891 # behavior of shared libraries on other platforms, we can't use
16892 # them.
16893 ld_shlibs_GCJ=no
16894 ;;
16895
16896 beos*)
16897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16898 allow_undefined_flag_GCJ=unsupported
16899 # Joseph Beckenbach <[email protected]> says some releases of gcc
16900 # support --undefined. This deserves some investigation. FIXME
16901 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16902 else
16903 ld_shlibs_GCJ=no
16904 fi
16905 ;;
16906
16907 cygwin* | mingw* | pw32*)
16908 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16909 # as there is no search path for DLLs.
16910 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16911 allow_undefined_flag_GCJ=unsupported
16912 always_export_symbols_GCJ=no
16913 enable_shared_with_static_runtimes_GCJ=yes
16914 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16915
16916 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16917 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16918 # If the export-symbols file already is a .def file (1st line
16919 # is EXPORTS), use it as is; otherwise, prepend...
16920 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16921 cp $export_symbols $output_objdir/$soname.def;
16922 else
16923 echo EXPORTS > $output_objdir/$soname.def;
16924 cat $export_symbols >> $output_objdir/$soname.def;
16925 fi~
16926 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16927 else
16928 ld_shlibs_GCJ=no
16929 fi
16930 ;;
16931
16932 interix3*)
16933 hardcode_direct_GCJ=no
16934 hardcode_shlibpath_var_GCJ=no
16935 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16936 export_dynamic_flag_spec_GCJ='${wl}-E'
16937 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16938 # Instead, shared libraries are loaded at an image base (0x10000000 by
16939 # default) and relocated if they conflict, which is a slow very memory
16940 # consuming and fragmenting process. To avoid this, we pick a random,
16941 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16942 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16943 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16944 archive_expsym_cmds_GCJ='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'
16945 ;;
16946
16947 linux*)
16948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16949 tmp_addflag=
16950 case $cc_basename,$host_cpu in
16951 pgcc*) # Portland Group C compiler
16952 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16953 tmp_addflag=' $pic_flag'
16954 ;;
16955 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16956 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16957 tmp_addflag=' $pic_flag -Mnomain' ;;
16958 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16959 tmp_addflag=' -i_dynamic' ;;
16960 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16961 tmp_addflag=' -i_dynamic -nofor_main' ;;
16962 ifc* | ifort*) # Intel Fortran compiler
16963 tmp_addflag=' -nofor_main' ;;
16964 esac
16965 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16966
16967 if test $supports_anon_versioning = yes; then
16968 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16970 $echo "local: *; };" >> $output_objdir/$libname.ver~
16971 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16972 fi
16973 else
16974 ld_shlibs_GCJ=no
16975 fi
16976 ;;
16977
16978 netbsd*)
16979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16980 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16981 wlarc=
16982 else
16983 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16984 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16985 fi
16986 ;;
16987
16988 solaris*)
16989 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16990 ld_shlibs_GCJ=no
16991 cat <<EOF 1>&2
16992
16993 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16994 *** create shared libraries on Solaris systems. Therefore, libtool
16995 *** is disabling shared libraries support. We urge you to upgrade GNU
16996 *** binutils to release 2.9.1 or newer. Another option is to modify
16997 *** your PATH or compiler configuration so that the native linker is
16998 *** used, and then restart.
16999
17000 EOF
17001 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17002 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17003 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17004 else
17005 ld_shlibs_GCJ=no
17006 fi
17007 ;;
17008
17009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17010 case `$LD -v 2>&1` in
17011 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17012 ld_shlibs_GCJ=no
17013 cat <<_LT_EOF 1>&2
17014
17015 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17016 *** reliably create shared libraries on SCO systems. Therefore, libtool
17017 *** is disabling shared libraries support. We urge you to upgrade GNU
17018 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17019 *** your PATH or compiler configuration so that the native linker is
17020 *** used, and then restart.
17021
17022 _LT_EOF
17023 ;;
17024 *)
17025 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17026 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17027 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17028 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17029 else
17030 ld_shlibs_GCJ=no
17031 fi
17032 ;;
17033 esac
17034 ;;
17035
17036 sunos4*)
17037 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17038 wlarc=
17039 hardcode_direct_GCJ=yes
17040 hardcode_shlibpath_var_GCJ=no
17041 ;;
17042
17043 *)
17044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17045 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17046 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17047 else
17048 ld_shlibs_GCJ=no
17049 fi
17050 ;;
17051 esac
17052
17053 if test "$ld_shlibs_GCJ" = no; then
17054 runpath_var=
17055 hardcode_libdir_flag_spec_GCJ=
17056 export_dynamic_flag_spec_GCJ=
17057 whole_archive_flag_spec_GCJ=
17058 fi
17059 else
17060 # PORTME fill in a description of your system's linker (not GNU ld)
17061 case $host_os in
17062 aix3*)
17063 allow_undefined_flag_GCJ=unsupported
17064 always_export_symbols_GCJ=yes
17065 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17066 # Note: this linker hardcodes the directories in LIBPATH if there
17067 # are no directories specified by -L.
17068 hardcode_minus_L_GCJ=yes
17069 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17070 # Neither direct hardcoding nor static linking is supported with a
17071 # broken collect2.
17072 hardcode_direct_GCJ=unsupported
17073 fi
17074 ;;
17075
17076 aix4* | aix5*)
17077 if test "$host_cpu" = ia64; then
17078 # On IA64, the linker does run time linking by default, so we don't
17079 # have to do anything special.
17080 aix_use_runtimelinking=no
17081 exp_sym_flag='-Bexport'
17082 no_entry_flag=""
17083 else
17084 # If we're using GNU nm, then we don't want the "-C" option.
17085 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17086 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17087 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17088 else
17089 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17090 fi
17091 aix_use_runtimelinking=no
17092
17093 # Test if we are trying to use run time linking or normal
17094 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17095 # need to do runtime linking.
17096 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17097 for ld_flag in $LDFLAGS; do
17098 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17099 aix_use_runtimelinking=yes
17100 break
17101 fi
17102 done
17103 ;;
17104 esac
17105
17106 exp_sym_flag='-bexport'
17107 no_entry_flag='-bnoentry'
17108 fi
17109
17110 # When large executables or shared objects are built, AIX ld can
17111 # have problems creating the table of contents. If linking a library
17112 # or program results in "error TOC overflow" add -mminimal-toc to
17113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17115
17116 archive_cmds_GCJ=''
17117 hardcode_direct_GCJ=yes
17118 hardcode_libdir_separator_GCJ=':'
17119 link_all_deplibs_GCJ=yes
17120
17121 if test "$GCC" = yes; then
17122 case $host_os in aix4.[012]|aix4.[012].*)
17123 # We only want to do this on AIX 4.2 and lower, the check
17124 # below for broken collect2 doesn't work under 4.3+
17125 collect2name=`${CC} -print-prog-name=collect2`
17126 if test -f "$collect2name" && \
17127 strings "$collect2name" | grep resolve_lib_name >/dev/null
17128 then
17129 # We have reworked collect2
17130 hardcode_direct_GCJ=yes
17131 else
17132 # We have old collect2
17133 hardcode_direct_GCJ=unsupported
17134 # It fails to find uninstalled libraries when the uninstalled
17135 # path is not listed in the libpath. Setting hardcode_minus_L
17136 # to unsupported forces relinking
17137 hardcode_minus_L_GCJ=yes
17138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17139 hardcode_libdir_separator_GCJ=
17140 fi
17141 ;;
17142 esac
17143 shared_flag='-shared'
17144 if test "$aix_use_runtimelinking" = yes; then
17145 shared_flag="$shared_flag "'${wl}-G'
17146 fi
17147 else
17148 # not using gcc
17149 if test "$host_cpu" = ia64; then
17150 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17151 # chokes on -Wl,-G. The following line is correct:
17152 shared_flag='-G'
17153 else
17154 if test "$aix_use_runtimelinking" = yes; then
17155 shared_flag='${wl}-G'
17156 else
17157 shared_flag='${wl}-bM:SRE'
17158 fi
17159 fi
17160 fi
17161
17162 # It seems that -bexpall does not export symbols beginning with
17163 # underscore (_), so it is better to generate a list of symbols to export.
17164 always_export_symbols_GCJ=yes
17165 if test "$aix_use_runtimelinking" = yes; then
17166 # Warning - without using the other runtime loading flags (-brtl),
17167 # -berok will link without error, but may produce a broken library.
17168 allow_undefined_flag_GCJ='-berok'
17169 # Determine the default libpath from the value encoded in an empty executable.
17170 cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h. */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176
17177 int
17178 main ()
17179 {
17180
17181 ;
17182 return 0;
17183 }
17184 _ACEOF
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (ac_try="$ac_link"
17187 case "(($ac_try" in
17188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17189 *) ac_try_echo=$ac_try;;
17190 esac
17191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17192 (eval "$ac_link") 2>conftest.er1
17193 ac_status=$?
17194 grep -v '^ *+' conftest.er1 >conftest.err
17195 rm -f conftest.er1
17196 cat conftest.err >&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } && {
17199 test -z "$ac_c_werror_flag" ||
17200 test ! -s conftest.err
17201 } && test -s conftest$ac_exeext &&
17202 $as_test_x conftest$ac_exeext; then
17203
17204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17205 }'`
17206 # Check for a 64-bit object if we didn't find anything.
17207 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17208 }'`; fi
17209 else
17210 echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17212
17213
17214 fi
17215
17216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17217 conftest$ac_exeext conftest.$ac_ext
17218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17219
17220 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17221 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17222 else
17223 if test "$host_cpu" = ia64; then
17224 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17225 allow_undefined_flag_GCJ="-z nodefs"
17226 archive_expsym_cmds_GCJ="\$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"
17227 else
17228 # Determine the default libpath from the value encoded in an empty executable.
17229 cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h. */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235
17236 int
17237 main ()
17238 {
17239
17240 ;
17241 return 0;
17242 }
17243 _ACEOF
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (ac_try="$ac_link"
17246 case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_link") 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } && {
17258 test -z "$ac_c_werror_flag" ||
17259 test ! -s conftest.err
17260 } && test -s conftest$ac_exeext &&
17261 $as_test_x conftest$ac_exeext; then
17262
17263 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17264 }'`
17265 # Check for a 64-bit object if we didn't find anything.
17266 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17267 }'`; fi
17268 else
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272
17273 fi
17274
17275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17276 conftest$ac_exeext conftest.$ac_ext
17277 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17278
17279 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17280 # Warning - without using the other run time loading flags,
17281 # -berok will link without error, but may produce a broken library.
17282 no_undefined_flag_GCJ=' ${wl}-bernotok'
17283 allow_undefined_flag_GCJ=' ${wl}-berok'
17284 # Exported symbols can be pulled into shared objects from archives
17285 whole_archive_flag_spec_GCJ='$convenience'
17286 archive_cmds_need_lc_GCJ=yes
17287 # This is similar to how AIX traditionally builds its shared libraries.
17288 archive_expsym_cmds_GCJ="\$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'
17289 fi
17290 fi
17291 ;;
17292
17293 amigaos*)
17294 archive_cmds_GCJ='$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)'
17295 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17296 hardcode_minus_L_GCJ=yes
17297 # see comment about different semantics on the GNU ld section
17298 ld_shlibs_GCJ=no
17299 ;;
17300
17301 bsdi[45]*)
17302 export_dynamic_flag_spec_GCJ=-rdynamic
17303 ;;
17304
17305 cygwin* | mingw* | pw32*)
17306 # When not using gcc, we currently assume that we are using
17307 # Microsoft Visual C++.
17308 # hardcode_libdir_flag_spec is actually meaningless, as there is
17309 # no search path for DLLs.
17310 hardcode_libdir_flag_spec_GCJ=' '
17311 allow_undefined_flag_GCJ=unsupported
17312 # Tell ltmain to make .lib files, not .a files.
17313 libext=lib
17314 # Tell ltmain to make .dll files, not .so files.
17315 shrext=".dll"
17316 # FIXME: Setting linknames here is a bad hack.
17317 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17318 # The linker will automatically build a .lib file if we build a DLL.
17319 old_archive_From_new_cmds_GCJ='true'
17320 # FIXME: Should let the user specify the lib program.
17321 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17322 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17323 enable_shared_with_static_runtimes_GCJ=yes
17324 ;;
17325
17326 darwin* | rhapsody*)
17327 case $host_os in
17328 rhapsody* | darwin1.[012])
17329 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17330 ;;
17331 *) # Darwin 1.3 on
17332 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17333 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17334 else
17335 case ${MACOSX_DEPLOYMENT_TARGET} in
17336 10.[012])
17337 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17338 ;;
17339 10.*)
17340 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17341 ;;
17342 esac
17343 fi
17344 ;;
17345 esac
17346 archive_cmds_need_lc_GCJ=no
17347 hardcode_direct_GCJ=no
17348 hardcode_automatic_GCJ=yes
17349 hardcode_shlibpath_var_GCJ=unsupported
17350 whole_archive_flag_spec_GCJ=''
17351 link_all_deplibs_GCJ=yes
17352 if test "$GCC" = yes ; then
17353 output_verbose_link_cmd='echo'
17354 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17355 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17356 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17357 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17358 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17359 else
17360 case $cc_basename in
17361 xlc*)
17362 output_verbose_link_cmd='echo'
17363 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17364 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17366 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17367 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17368 ;;
17369 *)
17370 ld_shlibs_GCJ=no
17371 ;;
17372 esac
17373 fi
17374 ;;
17375
17376 dgux*)
17377 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17378 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17379 hardcode_shlibpath_var_GCJ=no
17380 ;;
17381
17382 freebsd1*)
17383 ld_shlibs_GCJ=no
17384 ;;
17385
17386 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17387 # support. Future versions do this automatically, but an explicit c++rt0.o
17388 # does not break anything, and helps significantly (at the cost of a little
17389 # extra space).
17390 freebsd2.2*)
17391 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17392 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17393 hardcode_direct_GCJ=yes
17394 hardcode_shlibpath_var_GCJ=no
17395 ;;
17396
17397 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17398 freebsd2*)
17399 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17400 hardcode_direct_GCJ=yes
17401 hardcode_minus_L_GCJ=yes
17402 hardcode_shlibpath_var_GCJ=no
17403 ;;
17404
17405 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17406 freebsd* | kfreebsd*-gnu | dragonfly*)
17407 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17408 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17409 hardcode_direct_GCJ=yes
17410 hardcode_shlibpath_var_GCJ=no
17411 ;;
17412
17413 hpux9*)
17414 if test "$GCC" = yes; then
17415 archive_cmds_GCJ='$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'
17416 else
17417 archive_cmds_GCJ='$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'
17418 fi
17419 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17420 hardcode_libdir_separator_GCJ=:
17421 hardcode_direct_GCJ=yes
17422
17423 # hardcode_minus_L: Not really in the search PATH,
17424 # but as the default location of the library.
17425 hardcode_minus_L_GCJ=yes
17426 export_dynamic_flag_spec_GCJ='${wl}-E'
17427 ;;
17428
17429 hpux10*)
17430 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17431 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17432 else
17433 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17434 fi
17435 if test "$with_gnu_ld" = no; then
17436 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17437 hardcode_libdir_separator_GCJ=:
17438
17439 hardcode_direct_GCJ=yes
17440 export_dynamic_flag_spec_GCJ='${wl}-E'
17441
17442 # hardcode_minus_L: Not really in the search PATH,
17443 # but as the default location of the library.
17444 hardcode_minus_L_GCJ=yes
17445 fi
17446 ;;
17447
17448 hpux11*)
17449 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17450 case $host_cpu in
17451 hppa*64*)
17452 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17453 ;;
17454 ia64*)
17455 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17456 ;;
17457 *)
17458 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17459 ;;
17460 esac
17461 else
17462 case $host_cpu in
17463 hppa*64*)
17464 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17465 ;;
17466 ia64*)
17467 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17468 ;;
17469 *)
17470 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17471 ;;
17472 esac
17473 fi
17474 if test "$with_gnu_ld" = no; then
17475 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17476 hardcode_libdir_separator_GCJ=:
17477
17478 case $host_cpu in
17479 hppa*64*|ia64*)
17480 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17481 hardcode_direct_GCJ=no
17482 hardcode_shlibpath_var_GCJ=no
17483 ;;
17484 *)
17485 hardcode_direct_GCJ=yes
17486 export_dynamic_flag_spec_GCJ='${wl}-E'
17487
17488 # hardcode_minus_L: Not really in the search PATH,
17489 # but as the default location of the library.
17490 hardcode_minus_L_GCJ=yes
17491 ;;
17492 esac
17493 fi
17494 ;;
17495
17496 irix5* | irix6* | nonstopux*)
17497 if test "$GCC" = yes; then
17498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17499 else
17500 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17501 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17502 fi
17503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17504 hardcode_libdir_separator_GCJ=:
17505 link_all_deplibs_GCJ=yes
17506 ;;
17507
17508 netbsd*)
17509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17510 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17511 else
17512 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17513 fi
17514 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17515 hardcode_direct_GCJ=yes
17516 hardcode_shlibpath_var_GCJ=no
17517 ;;
17518
17519 newsos6)
17520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17521 hardcode_direct_GCJ=yes
17522 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17523 hardcode_libdir_separator_GCJ=:
17524 hardcode_shlibpath_var_GCJ=no
17525 ;;
17526
17527 openbsd*)
17528 hardcode_direct_GCJ=yes
17529 hardcode_shlibpath_var_GCJ=no
17530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17531 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17532 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17533 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17534 export_dynamic_flag_spec_GCJ='${wl}-E'
17535 else
17536 case $host_os in
17537 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17538 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17539 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17540 ;;
17541 *)
17542 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17544 ;;
17545 esac
17546 fi
17547 ;;
17548
17549 os2*)
17550 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17551 hardcode_minus_L_GCJ=yes
17552 allow_undefined_flag_GCJ=unsupported
17553 archive_cmds_GCJ='$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'
17554 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17555 ;;
17556
17557 osf3*)
17558 if test "$GCC" = yes; then
17559 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17560 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17561 else
17562 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17563 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17564 fi
17565 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17566 hardcode_libdir_separator_GCJ=:
17567 ;;
17568
17569 osf4* | osf5*) # as osf3* with the addition of -msym flag
17570 if test "$GCC" = yes; then
17571 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17572 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17573 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17574 else
17575 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17576 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17577 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17578 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17579
17580 # Both c and cxx compiler support -rpath directly
17581 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17582 fi
17583 hardcode_libdir_separator_GCJ=:
17584 ;;
17585
17586 solaris*)
17587 no_undefined_flag_GCJ=' -z text'
17588 if test "$GCC" = yes; then
17589 wlarc='${wl}'
17590 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17591 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17592 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17593 else
17594 wlarc=''
17595 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17596 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17597 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17598 fi
17599 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17600 hardcode_shlibpath_var_GCJ=no
17601 case $host_os in
17602 solaris2.[0-5] | solaris2.[0-5].*) ;;
17603 *)
17604 # The compiler driver will combine linker options so we
17605 # cannot just pass the convience library names through
17606 # without $wl, iff we do not link with $LD.
17607 # Luckily, gcc supports the same syntax we need for Sun Studio.
17608 # Supported since Solaris 2.6 (maybe 2.5.1?)
17609 case $wlarc in
17610 '')
17611 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17612 *)
17613 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17614 esac ;;
17615 esac
17616 link_all_deplibs_GCJ=yes
17617 ;;
17618
17619 sunos4*)
17620 if test "x$host_vendor" = xsequent; then
17621 # Use $CC to link under sequent, because it throws in some extra .o
17622 # files that make .init and .fini sections work.
17623 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17624 else
17625 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17626 fi
17627 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17628 hardcode_direct_GCJ=yes
17629 hardcode_minus_L_GCJ=yes
17630 hardcode_shlibpath_var_GCJ=no
17631 ;;
17632
17633 sysv4)
17634 case $host_vendor in
17635 sni)
17636 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17637 hardcode_direct_GCJ=yes # is this really true???
17638 ;;
17639 siemens)
17640 ## LD is ld it makes a PLAMLIB
17641 ## CC just makes a GrossModule.
17642 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17643 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17644 hardcode_direct_GCJ=no
17645 ;;
17646 motorola)
17647 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17648 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17649 ;;
17650 esac
17651 runpath_var='LD_RUN_PATH'
17652 hardcode_shlibpath_var_GCJ=no
17653 ;;
17654
17655 sysv4.3*)
17656 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17657 hardcode_shlibpath_var_GCJ=no
17658 export_dynamic_flag_spec_GCJ='-Bexport'
17659 ;;
17660
17661 sysv4*MP*)
17662 if test -d /usr/nec; then
17663 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17664 hardcode_shlibpath_var_GCJ=no
17665 runpath_var=LD_RUN_PATH
17666 hardcode_runpath_var=yes
17667 ld_shlibs_GCJ=yes
17668 fi
17669 ;;
17670
17671 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17672 no_undefined_flag_GCJ='${wl}-z,text'
17673 archive_cmds_need_lc_GCJ=no
17674 hardcode_shlibpath_var_GCJ=no
17675 runpath_var='LD_RUN_PATH'
17676
17677 if test "$GCC" = yes; then
17678 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17679 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17680 else
17681 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17682 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17683 fi
17684 ;;
17685
17686 sysv5* | sco3.2v5* | sco5v6*)
17687 # Note: We can NOT use -z defs as we might desire, because we do not
17688 # link with -lc, and that would cause any symbols used from libc to
17689 # always be unresolved, which means just about no library would
17690 # ever link correctly. If we're not using GNU ld we use -z text
17691 # though, which does catch some bad symbols but isn't as heavy-handed
17692 # as -z defs.
17693 no_undefined_flag_GCJ='${wl}-z,text'
17694 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17695 archive_cmds_need_lc_GCJ=no
17696 hardcode_shlibpath_var_GCJ=no
17697 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17698 hardcode_libdir_separator_GCJ=':'
17699 link_all_deplibs_GCJ=yes
17700 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17701 runpath_var='LD_RUN_PATH'
17702
17703 if test "$GCC" = yes; then
17704 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17705 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17706 else
17707 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17708 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17709 fi
17710 ;;
17711
17712 uts4*)
17713 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17714 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17715 hardcode_shlibpath_var_GCJ=no
17716 ;;
17717
17718 *)
17719 ld_shlibs_GCJ=no
17720 ;;
17721 esac
17722 fi
17723
17724 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17725 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17726 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17727
17728 #
17729 # Do we need to explicitly link libc?
17730 #
17731 case "x$archive_cmds_need_lc_GCJ" in
17732 x|xyes)
17733 # Assume -lc should be added
17734 archive_cmds_need_lc_GCJ=yes
17735
17736 if test "$enable_shared" = yes && test "$GCC" = yes; then
17737 case $archive_cmds_GCJ in
17738 *'~'*)
17739 # FIXME: we may have to deal with multi-command sequences.
17740 ;;
17741 '$CC '*)
17742 # Test whether the compiler implicitly links with -lc since on some
17743 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17744 # to ld, don't add -lc before -lgcc.
17745 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17746 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17747 $rm conftest*
17748 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17749
17750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17751 (eval $ac_compile) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } 2>conftest.err; then
17755 soname=conftest
17756 lib=conftest
17757 libobjs=conftest.$ac_objext
17758 deplibs=
17759 wl=$lt_prog_compiler_wl_GCJ
17760 pic_flag=$lt_prog_compiler_pic_GCJ
17761 compiler_flags=-v
17762 linker_flags=-v
17763 verstring=
17764 output_objdir=.
17765 libname=conftest
17766 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17767 allow_undefined_flag_GCJ=
17768 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17769 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }
17773 then
17774 archive_cmds_need_lc_GCJ=no
17775 else
17776 archive_cmds_need_lc_GCJ=yes
17777 fi
17778 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17779 else
17780 cat conftest.err 1>&5
17781 fi
17782 $rm conftest*
17783 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17784 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17785 ;;
17786 esac
17787 fi
17788 ;;
17789 esac
17790
17791 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17792 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17793 library_names_spec=
17794 libname_spec='lib$name'
17795 soname_spec=
17796 shrext=".so"
17797 postinstall_cmds=
17798 postuninstall_cmds=
17799 finish_cmds=
17800 finish_eval=
17801 shlibpath_var=
17802 shlibpath_overrides_runpath=unknown
17803 version_type=none
17804 dynamic_linker="$host_os ld.so"
17805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17806 if test "$GCC" = yes; then
17807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17808 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17809 # if the path contains ";" then we assume it to be the separator
17810 # otherwise default to the standard path separator (i.e. ":") - it is
17811 # assumed that no part of a normal pathname contains ";" but that should
17812 # okay in the real world where ";" in dirpaths is itself problematic.
17813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17814 else
17815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17816 fi
17817 else
17818 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17819 fi
17820 need_lib_prefix=unknown
17821 hardcode_into_libs=no
17822
17823 # when you set need_version to no, make sure it does not cause -set_version
17824 # flags to be left without arguments
17825 need_version=unknown
17826
17827 case $host_os in
17828 aix3*)
17829 version_type=linux
17830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17831 shlibpath_var=LIBPATH
17832
17833 # AIX 3 has no versioning support, so we append a major version to the name.
17834 soname_spec='${libname}${release}${shared_ext}$major'
17835 ;;
17836
17837 aix4* | aix5*)
17838 version_type=linux
17839 need_lib_prefix=no
17840 need_version=no
17841 hardcode_into_libs=yes
17842 if test "$host_cpu" = ia64; then
17843 # AIX 5 supports IA64
17844 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17845 shlibpath_var=LD_LIBRARY_PATH
17846 else
17847 # With GCC up to 2.95.x, collect2 would create an import file
17848 # for dependence libraries. The import file would start with
17849 # the line `#! .'. This would cause the generated library to
17850 # depend on `.', always an invalid library. This was fixed in
17851 # development snapshots of GCC prior to 3.0.
17852 case $host_os in
17853 aix4 | aix4.[01] | aix4.[01].*)
17854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17855 echo ' yes '
17856 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17857 :
17858 else
17859 can_build_shared=no
17860 fi
17861 ;;
17862 esac
17863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17864 # soname into executable. Probably we can add versioning support to
17865 # collect2, so additional links can be useful in future.
17866 if test "$aix_use_runtimelinking" = yes; then
17867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17868 # instead of lib<name>.a to let people know that these are not
17869 # typical AIX shared libraries.
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871 else
17872 # We preserve .a as extension for shared libraries through AIX4.2
17873 # and later when we are not doing run time linking.
17874 library_names_spec='${libname}${release}.a $libname.a'
17875 soname_spec='${libname}${release}${shared_ext}$major'
17876 fi
17877 shlibpath_var=LIBPATH
17878 fi
17879 ;;
17880
17881 amigaos*)
17882 library_names_spec='$libname.ixlibrary $libname.a'
17883 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17884 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'
17885 ;;
17886
17887 beos*)
17888 library_names_spec='${libname}${shared_ext}'
17889 dynamic_linker="$host_os ld.so"
17890 shlibpath_var=LIBRARY_PATH
17891 ;;
17892
17893 bsdi[45]*)
17894 version_type=linux
17895 need_version=no
17896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17897 soname_spec='${libname}${release}${shared_ext}$major'
17898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17899 shlibpath_var=LD_LIBRARY_PATH
17900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17902 # the default ld.so.conf also contains /usr/contrib/lib and
17903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17904 # libtool to hard-code these into programs
17905 ;;
17906
17907 cygwin* | mingw* | pw32*)
17908 version_type=windows
17909 shrext=".dll"
17910 need_version=no
17911 need_lib_prefix=no
17912
17913 case $GCC,$host_os in
17914 yes,cygwin* | yes,mingw* | yes,pw32*)
17915 library_names_spec='$libname.dll.a'
17916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17917 postinstall_cmds='base_file=`basename \${file}`~
17918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17919 dldir=$destdir/`dirname \$dlpath`~
17920 test -d \$dldir || mkdir -p \$dldir~
17921 $install_prog $dir/$dlname \$dldir/$dlname~
17922 chmod a+x \$dldir/$dlname'
17923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17924 dlpath=$dir/\$dldll~
17925 $rm \$dlpath'
17926 shlibpath_overrides_runpath=yes
17927
17928 case $host_os in
17929 cygwin*)
17930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17932 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17933 ;;
17934 mingw*)
17935 # MinGW DLLs use traditional 'lib' prefix
17936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17938 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17939 # It is most probably a Windows format PATH printed by
17940 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17941 # path with ; separators, and with drive letters. We can handle the
17942 # drive letters (cygwin fileutils understands them), so leave them,
17943 # especially as we might pass files found there to a mingw objdump,
17944 # which wouldn't understand a cygwinified path. Ahh.
17945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17946 else
17947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17948 fi
17949 ;;
17950 pw32*)
17951 # pw32 DLLs use 'pw' prefix rather than 'lib'
17952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17953 ;;
17954 esac
17955 ;;
17956
17957 *)
17958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17959 ;;
17960 esac
17961 dynamic_linker='Win32 ld.exe'
17962 # FIXME: first we should search . and the directory the executable is in
17963 shlibpath_var=PATH
17964 ;;
17965
17966 darwin* | rhapsody*)
17967 dynamic_linker="$host_os dyld"
17968 version_type=darwin
17969 need_lib_prefix=no
17970 need_version=no
17971 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17972 soname_spec='${libname}${release}${major}$shared_ext'
17973 shlibpath_overrides_runpath=yes
17974 shlibpath_var=DYLD_LIBRARY_PATH
17975 shrext='`test .$module = .yes && echo .so || echo .dylib`'
17976 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17977 if test "$GCC" = yes; then
17978 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17979 else
17980 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17981 fi
17982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17983 ;;
17984
17985 dgux*)
17986 version_type=linux
17987 need_lib_prefix=no
17988 need_version=no
17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17990 soname_spec='${libname}${release}${shared_ext}$major'
17991 shlibpath_var=LD_LIBRARY_PATH
17992 ;;
17993
17994 freebsd1*)
17995 dynamic_linker=no
17996 ;;
17997
17998 kfreebsd*-gnu)
17999 version_type=linux
18000 need_lib_prefix=no
18001 need_version=no
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 shlibpath_var=LD_LIBRARY_PATH
18005 shlibpath_overrides_runpath=no
18006 hardcode_into_libs=yes
18007 dynamic_linker='GNU ld.so'
18008 ;;
18009
18010 freebsd* | dragonfly*)
18011 # DragonFly does not have aout. When/if they implement a new
18012 # versioning mechanism, adjust this.
18013 if test -x /usr/bin/objformat; then
18014 objformat=`/usr/bin/objformat`
18015 else
18016 case $host_os in
18017 freebsd[123]*) objformat=aout ;;
18018 *) objformat=elf ;;
18019 esac
18020 fi
18021 version_type=freebsd-$objformat
18022 case $version_type in
18023 freebsd-elf*)
18024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18025 need_version=no
18026 need_lib_prefix=no
18027 ;;
18028 freebsd-*)
18029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18030 need_version=yes
18031 ;;
18032 esac
18033 shlibpath_var=LD_LIBRARY_PATH
18034 case $host_os in
18035 freebsd2*)
18036 shlibpath_overrides_runpath=yes
18037 ;;
18038 freebsd3.[01]* | freebsdelf3.[01]*)
18039 shlibpath_overrides_runpath=yes
18040 hardcode_into_libs=yes
18041 ;;
18042 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18043 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18044 shlibpath_overrides_runpath=no
18045 hardcode_into_libs=yes
18046 ;;
18047 freebsd*) # from 4.6 on
18048 shlibpath_overrides_runpath=yes
18049 hardcode_into_libs=yes
18050 ;;
18051 esac
18052 ;;
18053
18054 gnu*)
18055 version_type=linux
18056 need_lib_prefix=no
18057 need_version=no
18058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18059 soname_spec='${libname}${release}${shared_ext}$major'
18060 shlibpath_var=LD_LIBRARY_PATH
18061 hardcode_into_libs=yes
18062 ;;
18063
18064 hpux9* | hpux10* | hpux11*)
18065 # Give a soname corresponding to the major version so that dld.sl refuses to
18066 # link against other versions.
18067 version_type=sunos
18068 need_lib_prefix=no
18069 need_version=no
18070 case $host_cpu in
18071 ia64*)
18072 shrext='.so'
18073 hardcode_into_libs=yes
18074 dynamic_linker="$host_os dld.so"
18075 shlibpath_var=LD_LIBRARY_PATH
18076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18078 soname_spec='${libname}${release}${shared_ext}$major'
18079 if test "X$HPUX_IA64_MODE" = X32; then
18080 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18081 else
18082 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18083 fi
18084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18085 ;;
18086 hppa*64*)
18087 shrext='.sl'
18088 hardcode_into_libs=yes
18089 dynamic_linker="$host_os dld.sl"
18090 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18093 soname_spec='${libname}${release}${shared_ext}$major'
18094 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18096 ;;
18097 *)
18098 shrext='.sl'
18099 dynamic_linker="$host_os dld.sl"
18100 shlibpath_var=SHLIB_PATH
18101 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18103 soname_spec='${libname}${release}${shared_ext}$major'
18104 ;;
18105 esac
18106 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18107 postinstall_cmds='chmod 555 $lib'
18108 ;;
18109
18110 interix3*)
18111 version_type=linux
18112 need_lib_prefix=no
18113 need_version=no
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18115 soname_spec='${libname}${release}${shared_ext}$major'
18116 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18117 shlibpath_var=LD_LIBRARY_PATH
18118 shlibpath_overrides_runpath=no
18119 hardcode_into_libs=yes
18120 ;;
18121
18122 irix5* | irix6* | nonstopux*)
18123 case $host_os in
18124 nonstopux*) version_type=nonstopux ;;
18125 *)
18126 if test "$lt_cv_prog_gnu_ld" = yes; then
18127 version_type=linux
18128 else
18129 version_type=irix
18130 fi ;;
18131 esac
18132 need_lib_prefix=no
18133 need_version=no
18134 soname_spec='${libname}${release}${shared_ext}$major'
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18136 case $host_os in
18137 irix5* | nonstopux*)
18138 libsuff= shlibsuff=
18139 ;;
18140 *)
18141 case $LD in # libtool.m4 will add one of these switches to LD
18142 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18143 libsuff= shlibsuff= libmagic=32-bit;;
18144 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18145 libsuff=32 shlibsuff=N32 libmagic=N32;;
18146 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18147 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18148 *) libsuff= shlibsuff= libmagic=never-match;;
18149 esac
18150 ;;
18151 esac
18152 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18153 shlibpath_overrides_runpath=no
18154 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18155 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18156 hardcode_into_libs=yes
18157 ;;
18158
18159 # No shared lib support for Linux oldld, aout, or coff.
18160 linux*oldld* | linux*aout* | linux*coff*)
18161 dynamic_linker=no
18162 ;;
18163
18164 # This must be Linux ELF.
18165 linux*)
18166 version_type=linux
18167 need_lib_prefix=no
18168 need_version=no
18169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18170 soname_spec='${libname}${release}${shared_ext}$major'
18171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18172 shlibpath_var=LD_LIBRARY_PATH
18173 shlibpath_overrides_runpath=no
18174 # This implies no fast_install, which is unacceptable.
18175 # Some rework will be needed to allow for fast_install
18176 # before this can be enabled.
18177 hardcode_into_libs=yes
18178
18179 # find out which ABI we are using
18180 libsuff=
18181 case "$host_cpu" in
18182 x86_64*|s390x*|powerpc64*)
18183 echo '#line 18183 "configure"' > conftest.$ac_ext
18184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18185 (eval $ac_compile) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; then
18189 case `/usr/bin/file conftest.$ac_objext` in
18190 *64-bit*)
18191 libsuff=64
18192 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18193 ;;
18194 esac
18195 fi
18196 rm -rf conftest*
18197 ;;
18198 esac
18199
18200 # Append ld.so.conf contents to the search path
18201 if test -f /etc/ld.so.conf; then
18202 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18203 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18204 fi
18205
18206 # We used to test for /lib/ld.so.1 and disable shared libraries on
18207 # powerpc, because MkLinux only supported shared libraries with the
18208 # GNU dynamic linker. Since this was broken with cross compilers,
18209 # most powerpc-linux boxes support dynamic linking these days and
18210 # people can always --disable-shared, the test was removed, and we
18211 # assume the GNU/Linux dynamic linker is in use.
18212 dynamic_linker='GNU/Linux ld.so'
18213 ;;
18214
18215 knetbsd*-gnu)
18216 version_type=linux
18217 need_lib_prefix=no
18218 need_version=no
18219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18220 soname_spec='${libname}${release}${shared_ext}$major'
18221 shlibpath_var=LD_LIBRARY_PATH
18222 shlibpath_overrides_runpath=no
18223 hardcode_into_libs=yes
18224 dynamic_linker='GNU ld.so'
18225 ;;
18226
18227 netbsd*)
18228 version_type=sunos
18229 need_lib_prefix=no
18230 need_version=no
18231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18234 dynamic_linker='NetBSD (a.out) ld.so'
18235 else
18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18237 soname_spec='${libname}${release}${shared_ext}$major'
18238 dynamic_linker='NetBSD ld.elf_so'
18239 fi
18240 shlibpath_var=LD_LIBRARY_PATH
18241 shlibpath_overrides_runpath=yes
18242 hardcode_into_libs=yes
18243 ;;
18244
18245 newsos6)
18246 version_type=linux
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248 shlibpath_var=LD_LIBRARY_PATH
18249 shlibpath_overrides_runpath=yes
18250 ;;
18251
18252 nto-qnx*)
18253 version_type=linux
18254 need_lib_prefix=no
18255 need_version=no
18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18257 soname_spec='${libname}${release}${shared_ext}$major'
18258 shlibpath_var=LD_LIBRARY_PATH
18259 shlibpath_overrides_runpath=yes
18260 ;;
18261
18262 openbsd*)
18263 version_type=sunos
18264 sys_lib_dlsearch_path_spec="/usr/lib"
18265 need_lib_prefix=no
18266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18267 case $host_os in
18268 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18269 *) need_version=no ;;
18270 esac
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18273 shlibpath_var=LD_LIBRARY_PATH
18274 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18275 case $host_os in
18276 openbsd2.[89] | openbsd2.[89].*)
18277 shlibpath_overrides_runpath=no
18278 ;;
18279 *)
18280 shlibpath_overrides_runpath=yes
18281 ;;
18282 esac
18283 else
18284 shlibpath_overrides_runpath=yes
18285 fi
18286 ;;
18287
18288 os2*)
18289 libname_spec='$name'
18290 shrext=".dll"
18291 need_lib_prefix=no
18292 library_names_spec='$libname${shared_ext} $libname.a'
18293 dynamic_linker='OS/2 ld.exe'
18294 shlibpath_var=LIBPATH
18295 ;;
18296
18297 osf3* | osf4* | osf5*)
18298 version_type=osf
18299 need_lib_prefix=no
18300 need_version=no
18301 soname_spec='${libname}${release}${shared_ext}$major'
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18303 shlibpath_var=LD_LIBRARY_PATH
18304 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18305 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18306 ;;
18307
18308 solaris*)
18309 version_type=linux
18310 need_lib_prefix=no
18311 need_version=no
18312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18313 soname_spec='${libname}${release}${shared_ext}$major'
18314 shlibpath_var=LD_LIBRARY_PATH
18315 shlibpath_overrides_runpath=yes
18316 hardcode_into_libs=yes
18317 # ldd complains unless libraries are executable
18318 postinstall_cmds='chmod +x $lib'
18319 ;;
18320
18321 sunos4*)
18322 version_type=sunos
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18324 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18325 shlibpath_var=LD_LIBRARY_PATH
18326 shlibpath_overrides_runpath=yes
18327 if test "$with_gnu_ld" = yes; then
18328 need_lib_prefix=no
18329 fi
18330 need_version=yes
18331 ;;
18332
18333 sysv4 | sysv4.3*)
18334 version_type=linux
18335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18336 soname_spec='${libname}${release}${shared_ext}$major'
18337 shlibpath_var=LD_LIBRARY_PATH
18338 case $host_vendor in
18339 sni)
18340 shlibpath_overrides_runpath=no
18341 need_lib_prefix=no
18342 export_dynamic_flag_spec='${wl}-Blargedynsym'
18343 runpath_var=LD_RUN_PATH
18344 ;;
18345 siemens)
18346 need_lib_prefix=no
18347 ;;
18348 motorola)
18349 need_lib_prefix=no
18350 need_version=no
18351 shlibpath_overrides_runpath=no
18352 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18353 ;;
18354 esac
18355 ;;
18356
18357 sysv4*MP*)
18358 if test -d /usr/nec ;then
18359 version_type=linux
18360 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18361 soname_spec='$libname${shared_ext}.$major'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 fi
18364 ;;
18365
18366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18367 version_type=freebsd-elf
18368 need_lib_prefix=no
18369 need_version=no
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18371 soname_spec='${libname}${release}${shared_ext}$major'
18372 shlibpath_var=LD_LIBRARY_PATH
18373 hardcode_into_libs=yes
18374 if test "$with_gnu_ld" = yes; then
18375 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18376 shlibpath_overrides_runpath=no
18377 else
18378 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18379 shlibpath_overrides_runpath=yes
18380 case $host_os in
18381 sco3.2v5*)
18382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18383 ;;
18384 esac
18385 fi
18386 sys_lib_dlsearch_path_spec='/usr/lib'
18387 ;;
18388
18389 uts4*)
18390 version_type=linux
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392 soname_spec='${libname}${release}${shared_ext}$major'
18393 shlibpath_var=LD_LIBRARY_PATH
18394 ;;
18395
18396 *)
18397 dynamic_linker=no
18398 ;;
18399 esac
18400 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18401 echo "${ECHO_T}$dynamic_linker" >&6; }
18402 test "$dynamic_linker" = no && can_build_shared=no
18403
18404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18405 if test "$GCC" = yes; then
18406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18407 fi
18408
18409 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18410 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18411 hardcode_action_GCJ=
18412 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18413 test -n "$runpath_var_GCJ" || \
18414 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18415
18416 # We can hardcode non-existant directories.
18417 if test "$hardcode_direct_GCJ" != no &&
18418 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18419 # have to relink, otherwise we might link with an installed library
18420 # when we should be linking with a yet-to-be-installed one
18421 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18422 test "$hardcode_minus_L_GCJ" != no; then
18423 # Linking always hardcodes the temporary library directory.
18424 hardcode_action_GCJ=relink
18425 else
18426 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18427 hardcode_action_GCJ=immediate
18428 fi
18429 else
18430 # We cannot hardcode anything, or else we can only hardcode existing
18431 # directories.
18432 hardcode_action_GCJ=unsupported
18433 fi
18434 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18435 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18436
18437 if test "$hardcode_action_GCJ" = relink; then
18438 # Fast installation is not supported
18439 enable_fast_install=no
18440 elif test "$shlibpath_overrides_runpath" = yes ||
18441 test "$enable_shared" = no; then
18442 # Fast installation is not necessary
18443 enable_fast_install=needless
18444 fi
18445
18446
18447 # The else clause should only fire when bootstrapping the
18448 # libtool distribution, otherwise you forgot to ship ltmain.sh
18449 # with your package, and you will get complaints that there are
18450 # no rules to generate ltmain.sh.
18451 if test -f "$ltmain"; then
18452 # See if we are running on zsh, and set the options which allow our commands through
18453 # without removal of \ escapes.
18454 if test -n "${ZSH_VERSION+set}" ; then
18455 setopt NO_GLOB_SUBST
18456 fi
18457 # Now quote all the things that may contain metacharacters while being
18458 # careful not to overquote the AC_SUBSTed values. We take copies of the
18459 # variables and quote the copies for generation of the libtool script.
18460 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18461 SED SHELL STRIP \
18462 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18463 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18464 deplibs_check_method reload_flag reload_cmds need_locks \
18465 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18466 lt_cv_sys_global_symbol_to_c_name_address \
18467 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18468 old_postinstall_cmds old_postuninstall_cmds \
18469 compiler_GCJ \
18470 CC_GCJ \
18471 LD_GCJ \
18472 lt_prog_compiler_wl_GCJ \
18473 lt_prog_compiler_pic_GCJ \
18474 lt_prog_compiler_static_GCJ \
18475 lt_prog_compiler_no_builtin_flag_GCJ \
18476 export_dynamic_flag_spec_GCJ \
18477 thread_safe_flag_spec_GCJ \
18478 whole_archive_flag_spec_GCJ \
18479 enable_shared_with_static_runtimes_GCJ \
18480 old_archive_cmds_GCJ \
18481 old_archive_from_new_cmds_GCJ \
18482 predep_objects_GCJ \
18483 postdep_objects_GCJ \
18484 predeps_GCJ \
18485 postdeps_GCJ \
18486 compiler_lib_search_path_GCJ \
18487 archive_cmds_GCJ \
18488 archive_expsym_cmds_GCJ \
18489 postinstall_cmds_GCJ \
18490 postuninstall_cmds_GCJ \
18491 old_archive_from_expsyms_cmds_GCJ \
18492 allow_undefined_flag_GCJ \
18493 no_undefined_flag_GCJ \
18494 export_symbols_cmds_GCJ \
18495 hardcode_libdir_flag_spec_GCJ \
18496 hardcode_libdir_flag_spec_ld_GCJ \
18497 hardcode_libdir_separator_GCJ \
18498 hardcode_automatic_GCJ \
18499 module_cmds_GCJ \
18500 module_expsym_cmds_GCJ \
18501 lt_cv_prog_compiler_c_o_GCJ \
18502 exclude_expsyms_GCJ \
18503 include_expsyms_GCJ; do
18504
18505 case $var in
18506 old_archive_cmds_GCJ | \
18507 old_archive_from_new_cmds_GCJ | \
18508 archive_cmds_GCJ | \
18509 archive_expsym_cmds_GCJ | \
18510 module_cmds_GCJ | \
18511 module_expsym_cmds_GCJ | \
18512 old_archive_from_expsyms_cmds_GCJ | \
18513 export_symbols_cmds_GCJ | \
18514 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18515 postinstall_cmds | postuninstall_cmds | \
18516 old_postinstall_cmds | old_postuninstall_cmds | \
18517 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18518 # Double-quote double-evaled strings.
18519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18520 ;;
18521 *)
18522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18523 ;;
18524 esac
18525 done
18526
18527 case $lt_echo in
18528 *'\$0 --fallback-echo"')
18529 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18530 ;;
18531 esac
18532
18533 cfgfile="$ofile"
18534
18535 cat <<__EOF__ >> "$cfgfile"
18536 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18537
18538 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18539
18540 # Shell to use when invoking shell scripts.
18541 SHELL=$lt_SHELL
18542
18543 # Whether or not to build shared libraries.
18544 build_libtool_libs=$enable_shared
18545
18546 # Whether or not to build static libraries.
18547 build_old_libs=$enable_static
18548
18549 # Whether or not to add -lc for building shared libraries.
18550 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18551
18552 # Whether or not to disallow shared libs when runtime libs are static
18553 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18554
18555 # Whether or not to optimize for fast installation.
18556 fast_install=$enable_fast_install
18557
18558 # The host system.
18559 host_alias=$host_alias
18560 host=$host
18561 host_os=$host_os
18562
18563 # The build system.
18564 build_alias=$build_alias
18565 build=$build
18566 build_os=$build_os
18567
18568 # An echo program that does not interpret backslashes.
18569 echo=$lt_echo
18570
18571 # The archiver.
18572 AR=$lt_AR
18573 AR_FLAGS=$lt_AR_FLAGS
18574
18575 # A C compiler.
18576 LTCC=$lt_LTCC
18577
18578 # LTCC compiler flags.
18579 LTCFLAGS=$lt_LTCFLAGS
18580
18581 # A language-specific compiler.
18582 CC=$lt_compiler_GCJ
18583
18584 # Is the compiler the GNU C compiler?
18585 with_gcc=$GCC_GCJ
18586
18587 # An ERE matcher.
18588 EGREP=$lt_EGREP
18589
18590 # The linker used to build libraries.
18591 LD=$lt_LD_GCJ
18592
18593 # Whether we need hard or soft links.
18594 LN_S=$lt_LN_S
18595
18596 # A BSD-compatible nm program.
18597 NM=$lt_NM
18598
18599 # A symbol stripping program
18600 STRIP=$lt_STRIP
18601
18602 # Used to examine libraries when file_magic_cmd begins "file"
18603 MAGIC_CMD=$MAGIC_CMD
18604
18605 # Used on cygwin: DLL creation program.
18606 DLLTOOL="$DLLTOOL"
18607
18608 # Used on cygwin: object dumper.
18609 OBJDUMP="$OBJDUMP"
18610
18611 # Used on cygwin: assembler.
18612 AS="$AS"
18613
18614 # The name of the directory that contains temporary libtool files.
18615 objdir=$objdir
18616
18617 # How to create reloadable object files.
18618 reload_flag=$lt_reload_flag
18619 reload_cmds=$lt_reload_cmds
18620
18621 # How to pass a linker flag through the compiler.
18622 wl=$lt_lt_prog_compiler_wl_GCJ
18623
18624 # Object file suffix (normally "o").
18625 objext="$ac_objext"
18626
18627 # Old archive suffix (normally "a").
18628 libext="$libext"
18629
18630 # Shared library suffix (normally ".so").
18631 shrext='$shrext'
18632
18633 # Executable file suffix (normally "").
18634 exeext="$exeext"
18635
18636 # Additional compiler flags for building library objects.
18637 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18638 pic_mode=$pic_mode
18639
18640 # What is the maximum length of a command?
18641 max_cmd_len=$lt_cv_sys_max_cmd_len
18642
18643 # Does compiler simultaneously support -c and -o options?
18644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18645
18646 # Must we lock files when doing compilation?
18647 need_locks=$lt_need_locks
18648
18649 # Do we need the lib prefix for modules?
18650 need_lib_prefix=$need_lib_prefix
18651
18652 # Do we need a version for libraries?
18653 need_version=$need_version
18654
18655 # Whether dlopen is supported.
18656 dlopen_support=$enable_dlopen
18657
18658 # Whether dlopen of programs is supported.
18659 dlopen_self=$enable_dlopen_self
18660
18661 # Whether dlopen of statically linked programs is supported.
18662 dlopen_self_static=$enable_dlopen_self_static
18663
18664 # Compiler flag to prevent dynamic linking.
18665 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18666
18667 # Compiler flag to turn off builtin functions.
18668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18669
18670 # Compiler flag to allow reflexive dlopens.
18671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18672
18673 # Compiler flag to generate shared objects directly from archives.
18674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18675
18676 # Compiler flag to generate thread-safe objects.
18677 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18678
18679 # Library versioning type.
18680 version_type=$version_type
18681
18682 # Format of library name prefix.
18683 libname_spec=$lt_libname_spec
18684
18685 # List of archive names. First name is the real one, the rest are links.
18686 # The last name is the one that the linker finds with -lNAME.
18687 library_names_spec=$lt_library_names_spec
18688
18689 # The coded name of the library, if different from the real name.
18690 soname_spec=$lt_soname_spec
18691
18692 # Commands used to build and install an old-style archive.
18693 RANLIB=$lt_RANLIB
18694 old_archive_cmds=$lt_old_archive_cmds_GCJ
18695 old_postinstall_cmds=$lt_old_postinstall_cmds
18696 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18697
18698 # Create an old-style archive from a shared archive.
18699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18700
18701 # Create a temporary old-style archive to link instead of a shared archive.
18702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18703
18704 # Commands used to build and install a shared archive.
18705 archive_cmds=$lt_archive_cmds_GCJ
18706 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18707 postinstall_cmds=$lt_postinstall_cmds
18708 postuninstall_cmds=$lt_postuninstall_cmds
18709
18710 # Commands used to build a loadable module (assumed same as above if empty)
18711 module_cmds=$lt_module_cmds_GCJ
18712 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18713
18714 # Commands to strip libraries.
18715 old_striplib=$lt_old_striplib
18716 striplib=$lt_striplib
18717
18718 # Dependencies to place before the objects being linked to create a
18719 # shared library.
18720 predep_objects=$lt_predep_objects_GCJ
18721
18722 # Dependencies to place after the objects being linked to create a
18723 # shared library.
18724 postdep_objects=$lt_postdep_objects_GCJ
18725
18726 # Dependencies to place before the objects being linked to create a
18727 # shared library.
18728 predeps=$lt_predeps_GCJ
18729
18730 # Dependencies to place after the objects being linked to create a
18731 # shared library.
18732 postdeps=$lt_postdeps_GCJ
18733
18734 # The library search path used internally by the compiler when linking
18735 # a shared library.
18736 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18737
18738 # Method to check whether dependent libraries are shared objects.
18739 deplibs_check_method=$lt_deplibs_check_method
18740
18741 # Command to use when deplibs_check_method == file_magic.
18742 file_magic_cmd=$lt_file_magic_cmd
18743
18744 # Flag that allows shared libraries with undefined symbols to be built.
18745 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18746
18747 # Flag that forces no undefined symbols.
18748 no_undefined_flag=$lt_no_undefined_flag_GCJ
18749
18750 # Commands used to finish a libtool library installation in a directory.
18751 finish_cmds=$lt_finish_cmds
18752
18753 # Same as above, but a single script fragment to be evaled but not shown.
18754 finish_eval=$lt_finish_eval
18755
18756 # Take the output of nm and produce a listing of raw symbols and C names.
18757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18758
18759 # Transform the output of nm in a proper C declaration
18760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18761
18762 # Transform the output of nm in a C name address pair
18763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18764
18765 # This is the shared library runtime path variable.
18766 runpath_var=$runpath_var
18767
18768 # This is the shared library path variable.
18769 shlibpath_var=$shlibpath_var
18770
18771 # Is shlibpath searched before the hard-coded library search path?
18772 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18773
18774 # How to hardcode a shared library path into an executable.
18775 hardcode_action=$hardcode_action_GCJ
18776
18777 # Whether we should hardcode library paths into libraries.
18778 hardcode_into_libs=$hardcode_into_libs
18779
18780 # Flag to hardcode \$libdir into a binary during linking.
18781 # This must work even if \$libdir does not exist.
18782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18783
18784 # If ld is used when linking, flag to hardcode \$libdir into
18785 # a binary during linking. This must work even if \$libdir does
18786 # not exist.
18787 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18788
18789 # Whether we need a single -rpath flag with a separated argument.
18790 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18791
18792 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18793 # resulting binary.
18794 hardcode_direct=$hardcode_direct_GCJ
18795
18796 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18797 # resulting binary.
18798 hardcode_minus_L=$hardcode_minus_L_GCJ
18799
18800 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18801 # the resulting binary.
18802 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18803
18804 # Set to yes if building a shared library automatically hardcodes DIR into the library
18805 # and all subsequent libraries and executables linked against it.
18806 hardcode_automatic=$hardcode_automatic_GCJ
18807
18808 # Variables whose values should be saved in libtool wrapper scripts and
18809 # restored at relink time.
18810 variables_saved_for_relink="$variables_saved_for_relink"
18811
18812 # Whether libtool must link a program against all its dependency libraries.
18813 link_all_deplibs=$link_all_deplibs_GCJ
18814
18815 # Compile-time system search path for libraries
18816 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18817
18818 # Run-time system search path for libraries
18819 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18820
18821 # Fix the shell variable \$srcfile for the compiler.
18822 fix_srcfile_path="$fix_srcfile_path_GCJ"
18823
18824 # Set to yes if exported symbols are required.
18825 always_export_symbols=$always_export_symbols_GCJ
18826
18827 # The commands to list exported symbols.
18828 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18829
18830 # The commands to extract the exported symbol list from a shared archive.
18831 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18832
18833 # Symbols that should not be listed in the preloaded symbols.
18834 exclude_expsyms=$lt_exclude_expsyms_GCJ
18835
18836 # Symbols that must always be exported.
18837 include_expsyms=$lt_include_expsyms_GCJ
18838
18839 # ### END LIBTOOL TAG CONFIG: $tagname
18840
18841 __EOF__
18842
18843
18844 else
18845 # If there is no Makefile yet, we rely on a make rule to execute
18846 # `config.status --recheck' to rerun these tests and create the
18847 # libtool script then.
18848 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18849 if test -f "$ltmain_in"; then
18850 test -f Makefile && make "$ltmain"
18851 fi
18852 fi
18853
18854
18855 ac_ext=c
18856 ac_cpp='$CPP $CPPFLAGS'
18857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18860
18861 CC="$lt_save_CC"
18862
18863 else
18864 tagname=""
18865 fi
18866 ;;
18867
18868 RC)
18869
18870
18871 # Source file extension for RC test sources.
18872 ac_ext=rc
18873
18874 # Object file extension for compiled RC test sources.
18875 objext=o
18876 objext_RC=$objext
18877
18878 # Code to be used in simple compile tests
18879 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18880
18881 # Code to be used in simple link tests
18882 lt_simple_link_test_code="$lt_simple_compile_test_code"
18883
18884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18885
18886 # If no C compiler was specified, use CC.
18887 LTCC=${LTCC-"$CC"}
18888
18889 # If no C compiler flags were specified, use CFLAGS.
18890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18891
18892 # Allow CC to be a program name with arguments.
18893 compiler=$CC
18894
18895
18896 # save warnings/boilerplate of simple test code
18897 ac_outfile=conftest.$ac_objext
18898 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18899 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18900 _lt_compiler_boilerplate=`cat conftest.err`
18901 $rm conftest*
18902
18903 ac_outfile=conftest.$ac_objext
18904 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18905 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18906 _lt_linker_boilerplate=`cat conftest.err`
18907 $rm conftest*
18908
18909
18910 # Allow CC to be a program name with arguments.
18911 lt_save_CC="$CC"
18912 CC=${RC-"windres"}
18913 compiler=$CC
18914 compiler_RC=$CC
18915 for cc_temp in $compiler""; do
18916 case $cc_temp in
18917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18919 \-*) ;;
18920 *) break;;
18921 esac
18922 done
18923 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18924
18925 lt_cv_prog_compiler_c_o_RC=yes
18926
18927 # The else clause should only fire when bootstrapping the
18928 # libtool distribution, otherwise you forgot to ship ltmain.sh
18929 # with your package, and you will get complaints that there are
18930 # no rules to generate ltmain.sh.
18931 if test -f "$ltmain"; then
18932 # See if we are running on zsh, and set the options which allow our commands through
18933 # without removal of \ escapes.
18934 if test -n "${ZSH_VERSION+set}" ; then
18935 setopt NO_GLOB_SUBST
18936 fi
18937 # Now quote all the things that may contain metacharacters while being
18938 # careful not to overquote the AC_SUBSTed values. We take copies of the
18939 # variables and quote the copies for generation of the libtool script.
18940 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18941 SED SHELL STRIP \
18942 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18943 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18944 deplibs_check_method reload_flag reload_cmds need_locks \
18945 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18946 lt_cv_sys_global_symbol_to_c_name_address \
18947 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18948 old_postinstall_cmds old_postuninstall_cmds \
18949 compiler_RC \
18950 CC_RC \
18951 LD_RC \
18952 lt_prog_compiler_wl_RC \
18953 lt_prog_compiler_pic_RC \
18954 lt_prog_compiler_static_RC \
18955 lt_prog_compiler_no_builtin_flag_RC \
18956 export_dynamic_flag_spec_RC \
18957 thread_safe_flag_spec_RC \
18958 whole_archive_flag_spec_RC \
18959 enable_shared_with_static_runtimes_RC \
18960 old_archive_cmds_RC \
18961 old_archive_from_new_cmds_RC \
18962 predep_objects_RC \
18963 postdep_objects_RC \
18964 predeps_RC \
18965 postdeps_RC \
18966 compiler_lib_search_path_RC \
18967 archive_cmds_RC \
18968 archive_expsym_cmds_RC \
18969 postinstall_cmds_RC \
18970 postuninstall_cmds_RC \
18971 old_archive_from_expsyms_cmds_RC \
18972 allow_undefined_flag_RC \
18973 no_undefined_flag_RC \
18974 export_symbols_cmds_RC \
18975 hardcode_libdir_flag_spec_RC \
18976 hardcode_libdir_flag_spec_ld_RC \
18977 hardcode_libdir_separator_RC \
18978 hardcode_automatic_RC \
18979 module_cmds_RC \
18980 module_expsym_cmds_RC \
18981 lt_cv_prog_compiler_c_o_RC \
18982 exclude_expsyms_RC \
18983 include_expsyms_RC; do
18984
18985 case $var in
18986 old_archive_cmds_RC | \
18987 old_archive_from_new_cmds_RC | \
18988 archive_cmds_RC | \
18989 archive_expsym_cmds_RC | \
18990 module_cmds_RC | \
18991 module_expsym_cmds_RC | \
18992 old_archive_from_expsyms_cmds_RC | \
18993 export_symbols_cmds_RC | \
18994 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18995 postinstall_cmds | postuninstall_cmds | \
18996 old_postinstall_cmds | old_postuninstall_cmds | \
18997 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18998 # Double-quote double-evaled strings.
18999 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19000 ;;
19001 *)
19002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19003 ;;
19004 esac
19005 done
19006
19007 case $lt_echo in
19008 *'\$0 --fallback-echo"')
19009 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19010 ;;
19011 esac
19012
19013 cfgfile="$ofile"
19014
19015 cat <<__EOF__ >> "$cfgfile"
19016 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19017
19018 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19019
19020 # Shell to use when invoking shell scripts.
19021 SHELL=$lt_SHELL
19022
19023 # Whether or not to build shared libraries.
19024 build_libtool_libs=$enable_shared
19025
19026 # Whether or not to build static libraries.
19027 build_old_libs=$enable_static
19028
19029 # Whether or not to add -lc for building shared libraries.
19030 build_libtool_need_lc=$archive_cmds_need_lc_RC
19031
19032 # Whether or not to disallow shared libs when runtime libs are static
19033 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19034
19035 # Whether or not to optimize for fast installation.
19036 fast_install=$enable_fast_install
19037
19038 # The host system.
19039 host_alias=$host_alias
19040 host=$host
19041 host_os=$host_os
19042
19043 # The build system.
19044 build_alias=$build_alias
19045 build=$build
19046 build_os=$build_os
19047
19048 # An echo program that does not interpret backslashes.
19049 echo=$lt_echo
19050
19051 # The archiver.
19052 AR=$lt_AR
19053 AR_FLAGS=$lt_AR_FLAGS
19054
19055 # A C compiler.
19056 LTCC=$lt_LTCC
19057
19058 # LTCC compiler flags.
19059 LTCFLAGS=$lt_LTCFLAGS
19060
19061 # A language-specific compiler.
19062 CC=$lt_compiler_RC
19063
19064 # Is the compiler the GNU C compiler?
19065 with_gcc=$GCC_RC
19066
19067 # An ERE matcher.
19068 EGREP=$lt_EGREP
19069
19070 # The linker used to build libraries.
19071 LD=$lt_LD_RC
19072
19073 # Whether we need hard or soft links.
19074 LN_S=$lt_LN_S
19075
19076 # A BSD-compatible nm program.
19077 NM=$lt_NM
19078
19079 # A symbol stripping program
19080 STRIP=$lt_STRIP
19081
19082 # Used to examine libraries when file_magic_cmd begins "file"
19083 MAGIC_CMD=$MAGIC_CMD
19084
19085 # Used on cygwin: DLL creation program.
19086 DLLTOOL="$DLLTOOL"
19087
19088 # Used on cygwin: object dumper.
19089 OBJDUMP="$OBJDUMP"
19090
19091 # Used on cygwin: assembler.
19092 AS="$AS"
19093
19094 # The name of the directory that contains temporary libtool files.
19095 objdir=$objdir
19096
19097 # How to create reloadable object files.
19098 reload_flag=$lt_reload_flag
19099 reload_cmds=$lt_reload_cmds
19100
19101 # How to pass a linker flag through the compiler.
19102 wl=$lt_lt_prog_compiler_wl_RC
19103
19104 # Object file suffix (normally "o").
19105 objext="$ac_objext"
19106
19107 # Old archive suffix (normally "a").
19108 libext="$libext"
19109
19110 # Shared library suffix (normally ".so").
19111 shrext='$shrext'
19112
19113 # Executable file suffix (normally "").
19114 exeext="$exeext"
19115
19116 # Additional compiler flags for building library objects.
19117 pic_flag=$lt_lt_prog_compiler_pic_RC
19118 pic_mode=$pic_mode
19119
19120 # What is the maximum length of a command?
19121 max_cmd_len=$lt_cv_sys_max_cmd_len
19122
19123 # Does compiler simultaneously support -c and -o options?
19124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19125
19126 # Must we lock files when doing compilation?
19127 need_locks=$lt_need_locks
19128
19129 # Do we need the lib prefix for modules?
19130 need_lib_prefix=$need_lib_prefix
19131
19132 # Do we need a version for libraries?
19133 need_version=$need_version
19134
19135 # Whether dlopen is supported.
19136 dlopen_support=$enable_dlopen
19137
19138 # Whether dlopen of programs is supported.
19139 dlopen_self=$enable_dlopen_self
19140
19141 # Whether dlopen of statically linked programs is supported.
19142 dlopen_self_static=$enable_dlopen_self_static
19143
19144 # Compiler flag to prevent dynamic linking.
19145 link_static_flag=$lt_lt_prog_compiler_static_RC
19146
19147 # Compiler flag to turn off builtin functions.
19148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19149
19150 # Compiler flag to allow reflexive dlopens.
19151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19152
19153 # Compiler flag to generate shared objects directly from archives.
19154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19155
19156 # Compiler flag to generate thread-safe objects.
19157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19158
19159 # Library versioning type.
19160 version_type=$version_type
19161
19162 # Format of library name prefix.
19163 libname_spec=$lt_libname_spec
19164
19165 # List of archive names. First name is the real one, the rest are links.
19166 # The last name is the one that the linker finds with -lNAME.
19167 library_names_spec=$lt_library_names_spec
19168
19169 # The coded name of the library, if different from the real name.
19170 soname_spec=$lt_soname_spec
19171
19172 # Commands used to build and install an old-style archive.
19173 RANLIB=$lt_RANLIB
19174 old_archive_cmds=$lt_old_archive_cmds_RC
19175 old_postinstall_cmds=$lt_old_postinstall_cmds
19176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19177
19178 # Create an old-style archive from a shared archive.
19179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19180
19181 # Create a temporary old-style archive to link instead of a shared archive.
19182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19183
19184 # Commands used to build and install a shared archive.
19185 archive_cmds=$lt_archive_cmds_RC
19186 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19187 postinstall_cmds=$lt_postinstall_cmds
19188 postuninstall_cmds=$lt_postuninstall_cmds
19189
19190 # Commands used to build a loadable module (assumed same as above if empty)
19191 module_cmds=$lt_module_cmds_RC
19192 module_expsym_cmds=$lt_module_expsym_cmds_RC
19193
19194 # Commands to strip libraries.
19195 old_striplib=$lt_old_striplib
19196 striplib=$lt_striplib
19197
19198 # Dependencies to place before the objects being linked to create a
19199 # shared library.
19200 predep_objects=$lt_predep_objects_RC
19201
19202 # Dependencies to place after the objects being linked to create a
19203 # shared library.
19204 postdep_objects=$lt_postdep_objects_RC
19205
19206 # Dependencies to place before the objects being linked to create a
19207 # shared library.
19208 predeps=$lt_predeps_RC
19209
19210 # Dependencies to place after the objects being linked to create a
19211 # shared library.
19212 postdeps=$lt_postdeps_RC
19213
19214 # The library search path used internally by the compiler when linking
19215 # a shared library.
19216 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19217
19218 # Method to check whether dependent libraries are shared objects.
19219 deplibs_check_method=$lt_deplibs_check_method
19220
19221 # Command to use when deplibs_check_method == file_magic.
19222 file_magic_cmd=$lt_file_magic_cmd
19223
19224 # Flag that allows shared libraries with undefined symbols to be built.
19225 allow_undefined_flag=$lt_allow_undefined_flag_RC
19226
19227 # Flag that forces no undefined symbols.
19228 no_undefined_flag=$lt_no_undefined_flag_RC
19229
19230 # Commands used to finish a libtool library installation in a directory.
19231 finish_cmds=$lt_finish_cmds
19232
19233 # Same as above, but a single script fragment to be evaled but not shown.
19234 finish_eval=$lt_finish_eval
19235
19236 # Take the output of nm and produce a listing of raw symbols and C names.
19237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19238
19239 # Transform the output of nm in a proper C declaration
19240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19241
19242 # Transform the output of nm in a C name address pair
19243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19244
19245 # This is the shared library runtime path variable.
19246 runpath_var=$runpath_var
19247
19248 # This is the shared library path variable.
19249 shlibpath_var=$shlibpath_var
19250
19251 # Is shlibpath searched before the hard-coded library search path?
19252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19253
19254 # How to hardcode a shared library path into an executable.
19255 hardcode_action=$hardcode_action_RC
19256
19257 # Whether we should hardcode library paths into libraries.
19258 hardcode_into_libs=$hardcode_into_libs
19259
19260 # Flag to hardcode \$libdir into a binary during linking.
19261 # This must work even if \$libdir does not exist.
19262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19263
19264 # If ld is used when linking, flag to hardcode \$libdir into
19265 # a binary during linking. This must work even if \$libdir does
19266 # not exist.
19267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19268
19269 # Whether we need a single -rpath flag with a separated argument.
19270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19271
19272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19273 # resulting binary.
19274 hardcode_direct=$hardcode_direct_RC
19275
19276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19277 # resulting binary.
19278 hardcode_minus_L=$hardcode_minus_L_RC
19279
19280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19281 # the resulting binary.
19282 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19283
19284 # Set to yes if building a shared library automatically hardcodes DIR into the library
19285 # and all subsequent libraries and executables linked against it.
19286 hardcode_automatic=$hardcode_automatic_RC
19287
19288 # Variables whose values should be saved in libtool wrapper scripts and
19289 # restored at relink time.
19290 variables_saved_for_relink="$variables_saved_for_relink"
19291
19292 # Whether libtool must link a program against all its dependency libraries.
19293 link_all_deplibs=$link_all_deplibs_RC
19294
19295 # Compile-time system search path for libraries
19296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19297
19298 # Run-time system search path for libraries
19299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19300
19301 # Fix the shell variable \$srcfile for the compiler.
19302 fix_srcfile_path="$fix_srcfile_path_RC"
19303
19304 # Set to yes if exported symbols are required.
19305 always_export_symbols=$always_export_symbols_RC
19306
19307 # The commands to list exported symbols.
19308 export_symbols_cmds=$lt_export_symbols_cmds_RC
19309
19310 # The commands to extract the exported symbol list from a shared archive.
19311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19312
19313 # Symbols that should not be listed in the preloaded symbols.
19314 exclude_expsyms=$lt_exclude_expsyms_RC
19315
19316 # Symbols that must always be exported.
19317 include_expsyms=$lt_include_expsyms_RC
19318
19319 # ### END LIBTOOL TAG CONFIG: $tagname
19320
19321 __EOF__
19322
19323
19324 else
19325 # If there is no Makefile yet, we rely on a make rule to execute
19326 # `config.status --recheck' to rerun these tests and create the
19327 # libtool script then.
19328 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19329 if test -f "$ltmain_in"; then
19330 test -f Makefile && make "$ltmain"
19331 fi
19332 fi
19333
19334
19335 ac_ext=c
19336 ac_cpp='$CPP $CPPFLAGS'
19337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19340
19341 CC="$lt_save_CC"
19342
19343 ;;
19344
19345 *)
19346 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19347 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19348 { (exit 1); exit 1; }; }
19349 ;;
19350 esac
19351
19352 # Append the new tag name to the list of available tags.
19353 if test -n "$tagname" ; then
19354 available_tags="$available_tags $tagname"
19355 fi
19356 fi
19357 done
19358 IFS="$lt_save_ifs"
19359
19360 # Now substitute the updated list of available tags.
19361 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19362 mv "${ofile}T" "$ofile"
19363 chmod +x "$ofile"
19364 else
19365 rm -f "${ofile}T"
19366 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19367 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19368 { (exit 1); exit 1; }; }
19369 fi
19370 fi
19371
19372
19373
19374 # This can be used to rebuild libtool when needed
19375 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19376
19377 # Always use our own libtool.
19378 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19379
19380 # Prevent multiple expansion
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401 # Find a good install program. We prefer a C program (faster),
19402 # so one script is as good as another. But avoid the broken or
19403 # incompatible versions:
19404 # SysV /etc/install, /usr/sbin/install
19405 # SunOS /usr/etc/install
19406 # IRIX /sbin/install
19407 # AIX /bin/install
19408 # AmigaOS /C/install, which installs bootblocks on floppy discs
19409 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19412 # OS/2's system install, which has a completely different semantic
19413 # ./install, which can be erroneously created by make from ./install.sh.
19414 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19415 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19416 if test -z "$INSTALL"; then
19417 if test "${ac_cv_path_install+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19421 for as_dir in $PATH
19422 do
19423 IFS=$as_save_IFS
19424 test -z "$as_dir" && as_dir=.
19425 # Account for people who put trailing slashes in PATH elements.
19426 case $as_dir/ in
19427 ./ | .// | /cC/* | \
19428 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19429 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19430 /usr/ucb/* ) ;;
19431 *)
19432 # OSF1 and SCO ODT 3.0 have their own names for install.
19433 # Don't use installbsd from OSF since it installs stuff as root
19434 # by default.
19435 for ac_prog in ginstall scoinst install; do
19436 for ac_exec_ext in '' $ac_executable_extensions; do
19437 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19438 if test $ac_prog = install &&
19439 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19440 # AIX install. It has an incompatible calling convention.
19441 :
19442 elif test $ac_prog = install &&
19443 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19444 # program-specific install script used by HP pwplus--don't use.
19445 :
19446 else
19447 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19448 break 3
19449 fi
19450 fi
19451 done
19452 done
19453 ;;
19454 esac
19455 done
19456 IFS=$as_save_IFS
19457
19458
19459 fi
19460 if test "${ac_cv_path_install+set}" = set; then
19461 INSTALL=$ac_cv_path_install
19462 else
19463 # As a last resort, use the slow shell script. Don't cache a
19464 # value for INSTALL within a source directory, because that will
19465 # break other packages using the cache if that directory is
19466 # removed, or if the value is a relative name.
19467 INSTALL=$ac_install_sh
19468 fi
19469 fi
19470 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19471 echo "${ECHO_T}$INSTALL" >&6; }
19472
19473 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19474 # It thinks the first close brace ends the variable substitution.
19475 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19476
19477 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19478
19479 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19480
19481 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
19482 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
19483 LN_S=$as_ln_s
19484 if test "$LN_S" = "ln -s"; then
19485 { echo "$as_me:$LINENO: result: yes" >&5
19486 echo "${ECHO_T}yes" >&6; }
19487 else
19488 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19489 echo "${ECHO_T}no, using $LN_S" >&6; }
19490 fi
19491
19492
19493 # Checks for libraries.
19494 if test $WINDOWS -ne 1; then
19495
19496 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
19497 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
19498 if test "${ac_cv_lib_z_uncompress+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 else
19501 ac_check_lib_save_LIBS=$LIBS
19502 LIBS="-lz $LIBS"
19503 cat >conftest.$ac_ext <<_ACEOF
19504 /* confdefs.h. */
19505 _ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h. */
19509
19510 /* Override any GCC internal prototype to avoid an error.
19511 Use char because int might match the return type of a GCC
19512 builtin and then its argument prototype would still apply. */
19513 #ifdef __cplusplus
19514 extern "C"
19515 #endif
19516 char uncompress ();
19517 int
19518 main ()
19519 {
19520 return uncompress ();
19521 ;
19522 return 0;
19523 }
19524 _ACEOF
19525 rm -f conftest.$ac_objext conftest$ac_exeext
19526 if { (ac_try="$ac_link"
19527 case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_link") 2>conftest.er1
19533 ac_status=$?
19534 grep -v '^ *+' conftest.er1 >conftest.err
19535 rm -f conftest.er1
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } && {
19539 test -z "$ac_c_werror_flag" ||
19540 test ! -s conftest.err
19541 } && test -s conftest$ac_exeext &&
19542 $as_test_x conftest$ac_exeext; then
19543 ac_cv_lib_z_uncompress=yes
19544 else
19545 echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19547
19548 ac_cv_lib_z_uncompress=no
19549 fi
19550
19551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19552 conftest$ac_exeext conftest.$ac_ext
19553 LIBS=$ac_check_lib_save_LIBS
19554 fi
19555 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
19556 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
19557 if test $ac_cv_lib_z_uncompress = yes; then
19558 cat >>confdefs.h <<_ACEOF
19559 #define HAVE_LIBZ 1
19560 _ACEOF
19561
19562 LIBS="-lz $LIBS"
19563
19564 else
19565 { { echo "$as_me:$LINENO: error: could not locate libz compression library" >&5
19566 echo "$as_me: error: could not locate libz compression library" >&2;}
19567 { (exit 1); exit 1; }; }
19568 fi
19569
19570
19571 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19572 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19573 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576 ac_check_lib_save_LIBS=$LIBS
19577 LIBS="-ldl $LIBS"
19578 cat >conftest.$ac_ext <<_ACEOF
19579 /* confdefs.h. */
19580 _ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584
19585 /* Override any GCC internal prototype to avoid an error.
19586 Use char because int might match the return type of a GCC
19587 builtin and then its argument prototype would still apply. */
19588 #ifdef __cplusplus
19589 extern "C"
19590 #endif
19591 char dlopen ();
19592 int
19593 main ()
19594 {
19595 return dlopen ();
19596 ;
19597 return 0;
19598 }
19599 _ACEOF
19600 rm -f conftest.$ac_objext conftest$ac_exeext
19601 if { (ac_try="$ac_link"
19602 case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605 esac
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_link") 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } && {
19614 test -z "$ac_c_werror_flag" ||
19615 test ! -s conftest.err
19616 } && test -s conftest$ac_exeext &&
19617 $as_test_x conftest$ac_exeext; then
19618 ac_cv_lib_dl_dlopen=yes
19619 else
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 ac_cv_lib_dl_dlopen=no
19624 fi
19625
19626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19627 conftest$ac_exeext conftest.$ac_ext
19628 LIBS=$ac_check_lib_save_LIBS
19629 fi
19630 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19631 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19632 if test $ac_cv_lib_dl_dlopen = yes; then
19633 cat >>confdefs.h <<_ACEOF
19634 #define HAVE_LIBDL 1
19635 _ACEOF
19636
19637 LIBS="-ldl $LIBS"
19638
19639 else
19640 { { echo "$as_me:$LINENO: error: could not locate dynamic library services library" >&5
19641 echo "$as_me: error: could not locate dynamic library services library" >&2;}
19642 { (exit 1); exit 1; }; }
19643 fi
19644
19645 fi
19646
19647 # add our compiled static libraries
19648
19649 LIBCKYAPPLET="\${top_builddir}/src/libckyapplet/libckyapplet.la"
19650
19651
19652
19653 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19654 if test -n "$ac_tool_prefix"; then
19655 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19656 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19659 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19661 else
19662 case $PKG_CONFIG in
19663 [\\/]* | ?:[\\/]*)
19664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19665 ;;
19666 *)
19667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19668 for as_dir in $PATH
19669 do
19670 IFS=$as_save_IFS
19671 test -z "$as_dir" && as_dir=.
19672 for ac_exec_ext in '' $ac_executable_extensions; do
19673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19674 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19676 break 2
19677 fi
19678 done
19679 done
19680 IFS=$as_save_IFS
19681
19682 ;;
19683 esac
19684 fi
19685 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19686 if test -n "$PKG_CONFIG"; then
19687 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19688 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19689 else
19690 { echo "$as_me:$LINENO: result: no" >&5
19691 echo "${ECHO_T}no" >&6; }
19692 fi
19693
19694
19695 fi
19696 if test -z "$ac_cv_path_PKG_CONFIG"; then
19697 ac_pt_PKG_CONFIG=$PKG_CONFIG
19698 # Extract the first word of "pkg-config", so it can be a program name with args.
19699 set dummy pkg-config; ac_word=$2
19700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19702 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19704 else
19705 case $ac_pt_PKG_CONFIG in
19706 [\\/]* | ?:[\\/]*)
19707 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19708 ;;
19709 *)
19710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19711 for as_dir in $PATH
19712 do
19713 IFS=$as_save_IFS
19714 test -z "$as_dir" && as_dir=.
19715 for ac_exec_ext in '' $ac_executable_extensions; do
19716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19717 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19719 break 2
19720 fi
19721 done
19722 done
19723 IFS=$as_save_IFS
19724
19725 ;;
19726 esac
19727 fi
19728 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19729 if test -n "$ac_pt_PKG_CONFIG"; then
19730 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19731 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19732 else
19733 { echo "$as_me:$LINENO: result: no" >&5
19734 echo "${ECHO_T}no" >&6; }
19735 fi
19736
19737 if test "x$ac_pt_PKG_CONFIG" = x; then
19738 PKG_CONFIG=""
19739 else
19740 case $cross_compiling:$ac_tool_warned in
19741 yes:)
19742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19743 whose name does not start with the host triplet. If you think this
19744 configuration is useful to you, please write to [email protected]." >&5
19745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19746 whose name does not start with the host triplet. If you think this
19747 configuration is useful to you, please write to [email protected]." >&2;}
19748 ac_tool_warned=yes ;;
19749 esac
19750 PKG_CONFIG=$ac_pt_PKG_CONFIG
19751 fi
19752 else
19753 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19754 fi
19755
19756 fi
19757 if test -n "$PKG_CONFIG"; then
19758 _pkg_min_version=0.9.0
19759 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19760 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19761 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19762 { echo "$as_me:$LINENO: result: yes" >&5
19763 echo "${ECHO_T}yes" >&6; }
19764 else
19765 { echo "$as_me:$LINENO: result: no" >&5
19766 echo "${ECHO_T}no" >&6; }
19767 PKG_CONFIG=""
19768 fi
19769
19770 fi
19771
19772 pkg_failed=no
19773 { echo "$as_me:$LINENO: checking for PCSC" >&5
19774 echo $ECHO_N "checking for PCSC... $ECHO_C" >&6; }
19775
19776 if test -n "$PKG_CONFIG"; then
19777 if test -n "$PCSC_CFLAGS"; then
19778 pkg_cv_PCSC_CFLAGS="$PCSC_CFLAGS"
19779 else
19780 if test -n "$PKG_CONFIG" && \
19781 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcsclite\"") >&5
19782 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; then
19786 pkg_cv_PCSC_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite" 2>/dev/null`
19787 else
19788 pkg_failed=yes
19789 fi
19790 fi
19791 else
19792 pkg_failed=untried
19793 fi
19794 if test -n "$PKG_CONFIG"; then
19795 if test -n "$PCSC_LIBS"; then
19796 pkg_cv_PCSC_LIBS="$PCSC_LIBS"
19797 else
19798 if test -n "$PKG_CONFIG" && \
19799 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcsclite\"") >&5
19800 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; then
19804 pkg_cv_PCSC_LIBS=`$PKG_CONFIG --libs "libpcsclite" 2>/dev/null`
19805 else
19806 pkg_failed=yes
19807 fi
19808 fi
19809 else
19810 pkg_failed=untried
19811 fi
19812
19813
19814
19815 if test $pkg_failed = yes; then
19816
19817 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19818 _pkg_short_errors_supported=yes
19819 else
19820 _pkg_short_errors_supported=no
19821 fi
19822 if test $_pkg_short_errors_supported = yes; then
19823 PCSC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcsclite"`
19824 else
19825 PCSC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcsclite"`
19826 fi
19827 # Put the nasty error message in config.log where it belongs
19828 echo "$PCSC_PKG_ERRORS" >&5
19829
19830 if $UNIX -eq 1 ; then
19831 { { echo "$as_me:$LINENO: error: could not find pcsc-lite libraries" >&5
19832 echo "$as_me: error: could not find pcsc-lite libraries" >&2;}
19833 { (exit 1); exit 1; }; }
19834 else
19835 { echo "$as_me:$LINENO: WARNING: pcsc-lite not found" >&5
19836 echo "$as_me: WARNING: pcsc-lite not found" >&2;}
19837 fi
19838
19839 elif test $pkg_failed = untried; then
19840 if $UNIX -eq 1 ; then
19841 { { echo "$as_me:$LINENO: error: could not find pcsc-lite libraries" >&5
19842 echo "$as_me: error: could not find pcsc-lite libraries" >&2;}
19843 { (exit 1); exit 1; }; }
19844 else
19845 { echo "$as_me:$LINENO: WARNING: pcsc-lite not found" >&5
19846 echo "$as_me: WARNING: pcsc-lite not found" >&2;}
19847 fi
19848
19849 else
19850 PCSC_CFLAGS=$pkg_cv_PCSC_CFLAGS
19851 PCSC_LIBS=$pkg_cv_PCSC_LIBS
19852 { echo "$as_me:$LINENO: result: yes" >&5
19853 echo "${ECHO_T}yes" >&6; }
19854 true
19855 fi
19856
19857 # Add argument for pk11install
19858 # Check whether --enable-pk11install was given.
19859 if test "${enable_pk11install+set}" = set; then
19860 enableval=$enable_pk11install;
19861 fi
19862
19863 if test "$enable_pk11install" = "yes" -o "$enable_pk11install" = "true"
19864 then
19865 if test $WINDOWS -ne 1; then
19866
19867 pkg_failed=no
19868 { echo "$as_me:$LINENO: checking for NSS" >&5
19869 echo $ECHO_N "checking for NSS... $ECHO_C" >&6; }
19870
19871 if test -n "$PKG_CONFIG"; then
19872 if test -n "$NSS_CFLAGS"; then
19873 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
19874 else
19875 if test -n "$PKG_CONFIG" && \
19876 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss\"") >&5
19877 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; then
19881 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
19882 else
19883 pkg_failed=yes
19884 fi
19885 fi
19886 else
19887 pkg_failed=untried
19888 fi
19889 if test -n "$PKG_CONFIG"; then
19890 if test -n "$NSS_LIBS"; then
19891 pkg_cv_NSS_LIBS="$NSS_LIBS"
19892 else
19893 if test -n "$PKG_CONFIG" && \
19894 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss\"") >&5
19895 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; then
19899 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
19900 else
19901 pkg_failed=yes
19902 fi
19903 fi
19904 else
19905 pkg_failed=untried
19906 fi
19907
19908
19909
19910 if test $pkg_failed = yes; then
19911
19912 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19913 _pkg_short_errors_supported=yes
19914 else
19915 _pkg_short_errors_supported=no
19916 fi
19917 if test $_pkg_short_errors_supported = yes; then
19918 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nss"`
19919 else
19920 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nss"`
19921 fi
19922 # Put the nasty error message in config.log where it belongs
19923 echo "$NSS_PKG_ERRORS" >&5
19924
19925 { { echo "$as_me:$LINENO: error: could not find NSS Crypto libraries" >&5
19926 echo "$as_me: error: could not find NSS Crypto libraries" >&2;}
19927 { (exit 1); exit 1; }; }
19928 elif test $pkg_failed = untried; then
19929 { { echo "$as_me:$LINENO: error: could not find NSS Crypto libraries" >&5
19930 echo "$as_me: error: could not find NSS Crypto libraries" >&2;}
19931 { (exit 1); exit 1; }; }
19932 else
19933 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
19934 NSS_LIBS=$pkg_cv_NSS_LIBS
19935 { echo "$as_me:$LINENO: result: yes" >&5
19936 echo "${ECHO_T}yes" >&6; }
19937 true
19938 fi
19939 fi
19940 enable_pk11install = "yes"
19941 else
19942 enable_pk11install = "no"
19943 { echo "$as_me:$LINENO: WARNING: skipping pk11install" >&5
19944 echo "$as_me: WARNING: skipping pk11install" >&2;}
19945 fi
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955 if test x$with_pcsclite = xyes; then
19956 HAVE_PCSC_TRUE=
19957 HAVE_PCSC_FALSE='#'
19958 else
19959 HAVE_PCSC_TRUE='#'
19960 HAVE_PCSC_FALSE=
19961 fi
19962
19963
19964
19965 if test x$enable_pk11install = xyes; then
19966 BUILD_PK11INSTALL_TRUE=
19967 BUILD_PK11INSTALL_FALSE='#'
19968 else
19969 BUILD_PK11INSTALL_TRUE='#'
19970 BUILD_PK11INSTALL_FALSE=
19971 fi
19972
19973
19974
19975 if test $WINDOWS -eq 1; then
19976 IS_WINDOWS_TRUE=
19977 IS_WINDOWS_FALSE='#'
19978 else
19979 IS_WINDOWS_TRUE='#'
19980 IS_WINDOWS_FALSE=
19981 fi
19982
19983
19984
19985 cat >>confdefs.h <<\_ACEOF
19986 #define DEBUG 1
19987 _ACEOF
19988
19989 # Checks for header files.
19990 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19991 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19992 if test "${ac_cv_header_stdc+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995 cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h. */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001 #include <stdlib.h>
20002 #include <stdarg.h>
20003 #include <string.h>
20004 #include <float.h>
20005
20006 int
20007 main ()
20008 {
20009
20010 ;
20011 return 0;
20012 }
20013 _ACEOF
20014 rm -f conftest.$ac_objext
20015 if { (ac_try="$ac_compile"
20016 case "(($ac_try" in
20017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20019 esac
20020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20021 (eval "$ac_compile") 2>conftest.er1
20022 ac_status=$?
20023 grep -v '^ *+' conftest.er1 >conftest.err
20024 rm -f conftest.er1
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } && {
20028 test -z "$ac_c_werror_flag" ||
20029 test ! -s conftest.err
20030 } && test -s conftest.$ac_objext; then
20031 ac_cv_header_stdc=yes
20032 else
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036 ac_cv_header_stdc=no
20037 fi
20038
20039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20040
20041 if test $ac_cv_header_stdc = yes; then
20042 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20043 cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h. */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 #include <string.h>
20050
20051 _ACEOF
20052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20053 $EGREP "memchr" >/dev/null 2>&1; then
20054 :
20055 else
20056 ac_cv_header_stdc=no
20057 fi
20058 rm -f conftest*
20059
20060 fi
20061
20062 if test $ac_cv_header_stdc = yes; then
20063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20064 cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h. */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20070 #include <stdlib.h>
20071
20072 _ACEOF
20073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20074 $EGREP "free" >/dev/null 2>&1; then
20075 :
20076 else
20077 ac_cv_header_stdc=no
20078 fi
20079 rm -f conftest*
20080
20081 fi
20082
20083 if test $ac_cv_header_stdc = yes; then
20084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20085 if test "$cross_compiling" = yes; then
20086 :
20087 else
20088 cat >conftest.$ac_ext <<_ACEOF
20089 /* confdefs.h. */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20094 #include <ctype.h>
20095 #include <stdlib.h>
20096 #if ((' ' & 0x0FF) == 0x020)
20097 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20098 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20099 #else
20100 # define ISLOWER(c) \
20101 (('a' <= (c) && (c) <= 'i') \
20102 || ('j' <= (c) && (c) <= 'r') \
20103 || ('s' <= (c) && (c) <= 'z'))
20104 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20105 #endif
20106
20107 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20108 int
20109 main ()
20110 {
20111 int i;
20112 for (i = 0; i < 256; i++)
20113 if (XOR (islower (i), ISLOWER (i))
20114 || toupper (i) != TOUPPER (i))
20115 return 2;
20116 return 0;
20117 }
20118 _ACEOF
20119 rm -f conftest$ac_exeext
20120 if { (ac_try="$ac_link"
20121 case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20124 esac
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_link") 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20130 { (case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20133 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_try") 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 :
20140 else
20141 echo "$as_me: program exited with status $ac_status" >&5
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20144
20145 ( exit $ac_status )
20146 ac_cv_header_stdc=no
20147 fi
20148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20149 fi
20150
20151
20152 fi
20153 fi
20154 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20155 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20156 if test $ac_cv_header_stdc = yes; then
20157
20158 cat >>confdefs.h <<\_ACEOF
20159 #define STDC_HEADERS 1
20160 _ACEOF
20161
20162 fi
20163
20164
20165
20166
20167
20168 for ac_header in string.h syslog.h fcntl.h unistd.h
20169 do
20170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 fi
20177 ac_res=`eval echo '${'$as_ac_Header'}'`
20178 { echo "$as_me:$LINENO: result: $ac_res" >&5
20179 echo "${ECHO_T}$ac_res" >&6; }
20180 else
20181 # Is the header compilable?
20182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h. */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 $ac_includes_default
20191 #include <$ac_header>
20192 _ACEOF
20193 rm -f conftest.$ac_objext
20194 if { (ac_try="$ac_compile"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_compile") 2>conftest.er1
20201 ac_status=$?
20202 grep -v '^ *+' conftest.er1 >conftest.err
20203 rm -f conftest.er1
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } && {
20207 test -z "$ac_c_werror_flag" ||
20208 test ! -s conftest.err
20209 } && test -s conftest.$ac_objext; then
20210 ac_header_compiler=yes
20211 else
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 ac_header_compiler=no
20216 fi
20217
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20220 echo "${ECHO_T}$ac_header_compiler" >&6; }
20221
20222 # Is the header present?
20223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h. */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 #include <$ac_header>
20232 _ACEOF
20233 if { (ac_try="$ac_cpp conftest.$ac_ext"
20234 case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20240 ac_status=$?
20241 grep -v '^ *+' conftest.er1 >conftest.err
20242 rm -f conftest.er1
20243 cat conftest.err >&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } >/dev/null && {
20246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20247 test ! -s conftest.err
20248 }; then
20249 ac_header_preproc=yes
20250 else
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254 ac_header_preproc=no
20255 fi
20256
20257 rm -f conftest.err conftest.$ac_ext
20258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20259 echo "${ECHO_T}$ac_header_preproc" >&6; }
20260
20261 # So? What about this header?
20262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20263 yes:no: )
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20268 ac_header_preproc=yes
20269 ;;
20270 no:yes:* )
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20283
20284 ;;
20285 esac
20286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291 eval "$as_ac_Header=\$ac_header_preproc"
20292 fi
20293 ac_res=`eval echo '${'$as_ac_Header'}'`
20294 { echo "$as_me:$LINENO: result: $ac_res" >&5
20295 echo "${ECHO_T}$ac_res" >&6; }
20296
20297 fi
20298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20299 cat >>confdefs.h <<_ACEOF
20300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20301 _ACEOF
20302
20303 fi
20304
20305 done
20306
20307
20308 for ac_header in zlib.h
20309 do
20310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 fi
20317 ac_res=`eval echo '${'$as_ac_Header'}'`
20318 { echo "$as_me:$LINENO: result: $ac_res" >&5
20319 echo "${ECHO_T}$ac_res" >&6; }
20320 else
20321 # Is the header compilable?
20322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20324 cat >conftest.$ac_ext <<_ACEOF
20325 /* confdefs.h. */
20326 _ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h. */
20330 $ac_includes_default
20331 #include <$ac_header>
20332 _ACEOF
20333 rm -f conftest.$ac_objext
20334 if { (ac_try="$ac_compile"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_compile") 2>conftest.er1
20341 ac_status=$?
20342 grep -v '^ *+' conftest.er1 >conftest.err
20343 rm -f conftest.er1
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest.$ac_objext; then
20350 ac_header_compiler=yes
20351 else
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355 ac_header_compiler=no
20356 fi
20357
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20360 echo "${ECHO_T}$ac_header_compiler" >&6; }
20361
20362 # Is the header present?
20363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h. */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371 #include <$ac_header>
20372 _ACEOF
20373 if { (ac_try="$ac_cpp conftest.$ac_ext"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20380 ac_status=$?
20381 grep -v '^ *+' conftest.er1 >conftest.err
20382 rm -f conftest.er1
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } >/dev/null && {
20386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 }; then
20389 ac_header_preproc=yes
20390 else
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ac_header_preproc=no
20395 fi
20396
20397 rm -f conftest.err conftest.$ac_ext
20398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20399 echo "${ECHO_T}$ac_header_preproc" >&6; }
20400
20401 # So? What about this header?
20402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20403 yes:no: )
20404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20408 ac_header_preproc=yes
20409 ;;
20410 no:yes:* )
20411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20423
20424 ;;
20425 esac
20426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431 eval "$as_ac_Header=\$ac_header_preproc"
20432 fi
20433 ac_res=`eval echo '${'$as_ac_Header'}'`
20434 { echo "$as_me:$LINENO: result: $ac_res" >&5
20435 echo "${ECHO_T}$ac_res" >&6; }
20436
20437 fi
20438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20439 cat >>confdefs.h <<_ACEOF
20440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20441 _ACEOF
20442
20443 fi
20444
20445 done
20446
20447
20448 # Checks for typedefs, structures, and compiler characteristics.
20449 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20450 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20451 if test "${ac_cv_c_const+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20453 else
20454 cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h. */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460
20461 int
20462 main ()
20463 {
20464 /* FIXME: Include the comments suggested by Paul. */
20465 #ifndef __cplusplus
20466 /* Ultrix mips cc rejects this. */
20467 typedef int charset[2];
20468 const charset cs;
20469 /* SunOS 4.1.1 cc rejects this. */
20470 char const *const *pcpcc;
20471 char **ppc;
20472 /* NEC SVR4.0.2 mips cc rejects this. */
20473 struct point {int x, y;};
20474 static struct point const zero = {0,0};
20475 /* AIX XL C 1.02.0.0 rejects this.
20476 It does not let you subtract one const X* pointer from another in
20477 an arm of an if-expression whose if-part is not a constant
20478 expression */
20479 const char *g = "string";
20480 pcpcc = &g + (g ? g-g : 0);
20481 /* HPUX 7.0 cc rejects these. */
20482 ++pcpcc;
20483 ppc = (char**) pcpcc;
20484 pcpcc = (char const *const *) ppc;
20485 { /* SCO 3.2v4 cc rejects this. */
20486 char *t;
20487 char const *s = 0 ? (char *) 0 : (char const *) 0;
20488
20489 *t++ = 0;
20490 if (s) return 0;
20491 }
20492 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20493 int x[] = {25, 17};
20494 const int *foo = &x[0];
20495 ++foo;
20496 }
20497 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20498 typedef const int *iptr;
20499 iptr p = 0;
20500 ++p;
20501 }
20502 { /* AIX XL C 1.02.0.0 rejects this saying
20503 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20504 struct s { int j; const int *ap[3]; };
20505 struct s *b; b->j = 5;
20506 }
20507 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20508 const int foo = 10;
20509 if (!foo) return 0;
20510 }
20511 return !cs[0] && !zero.x;
20512 #endif
20513
20514 ;
20515 return 0;
20516 }
20517 _ACEOF
20518 rm -f conftest.$ac_objext
20519 if { (ac_try="$ac_compile"
20520 case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20523 esac
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_compile") 2>conftest.er1
20526 ac_status=$?
20527 grep -v '^ *+' conftest.er1 >conftest.err
20528 rm -f conftest.er1
20529 cat conftest.err >&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } && {
20532 test -z "$ac_c_werror_flag" ||
20533 test ! -s conftest.err
20534 } && test -s conftest.$ac_objext; then
20535 ac_cv_c_const=yes
20536 else
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20539
20540 ac_cv_c_const=no
20541 fi
20542
20543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 fi
20545 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20546 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20547 if test $ac_cv_c_const = no; then
20548
20549 cat >>confdefs.h <<\_ACEOF
20550 #define const
20551 _ACEOF
20552
20553 fi
20554
20555 { echo "$as_me:$LINENO: checking for size_t" >&5
20556 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20557 if test "${ac_cv_type_size_t+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20560 cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h. */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20566 $ac_includes_default
20567 typedef size_t ac__type_new_;
20568 int
20569 main ()
20570 {
20571 if ((ac__type_new_ *) 0)
20572 return 0;
20573 if (sizeof (ac__type_new_))
20574 return 0;
20575 ;
20576 return 0;
20577 }
20578 _ACEOF
20579 rm -f conftest.$ac_objext
20580 if { (ac_try="$ac_compile"
20581 case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20584 esac
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_compile") 2>conftest.er1
20587 ac_status=$?
20588 grep -v '^ *+' conftest.er1 >conftest.err
20589 rm -f conftest.er1
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } && {
20593 test -z "$ac_c_werror_flag" ||
20594 test ! -s conftest.err
20595 } && test -s conftest.$ac_objext; then
20596 ac_cv_type_size_t=yes
20597 else
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601 ac_cv_type_size_t=no
20602 fi
20603
20604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20605 fi
20606 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20607 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20608 if test $ac_cv_type_size_t = yes; then
20609 :
20610 else
20611
20612 cat >>confdefs.h <<_ACEOF
20613 #define size_t unsigned int
20614 _ACEOF
20615
20616 fi
20617
20618
20619 # Checks for library functions.
20620
20621 for ac_header in stdlib.h
20622 do
20623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 fi
20630 ac_res=`eval echo '${'$as_ac_Header'}'`
20631 { echo "$as_me:$LINENO: result: $ac_res" >&5
20632 echo "${ECHO_T}$ac_res" >&6; }
20633 else
20634 # Is the header compilable?
20635 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20637 cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h. */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h. */
20643 $ac_includes_default
20644 #include <$ac_header>
20645 _ACEOF
20646 rm -f conftest.$ac_objext
20647 if { (ac_try="$ac_compile"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_compile") 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } && {
20660 test -z "$ac_c_werror_flag" ||
20661 test ! -s conftest.err
20662 } && test -s conftest.$ac_objext; then
20663 ac_header_compiler=yes
20664 else
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668 ac_header_compiler=no
20669 fi
20670
20671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20673 echo "${ECHO_T}$ac_header_compiler" >&6; }
20674
20675 # Is the header present?
20676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h. */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 #include <$ac_header>
20685 _ACEOF
20686 if { (ac_try="$ac_cpp conftest.$ac_ext"
20687 case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20690 esac
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20693 ac_status=$?
20694 grep -v '^ *+' conftest.er1 >conftest.err
20695 rm -f conftest.er1
20696 cat conftest.err >&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); } >/dev/null && {
20699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20700 test ! -s conftest.err
20701 }; then
20702 ac_header_preproc=yes
20703 else
20704 echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20706
20707 ac_header_preproc=no
20708 fi
20709
20710 rm -f conftest.err conftest.$ac_ext
20711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20712 echo "${ECHO_T}$ac_header_preproc" >&6; }
20713
20714 # So? What about this header?
20715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20716 yes:no: )
20717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20721 ac_header_preproc=yes
20722 ;;
20723 no:yes:* )
20724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20736
20737 ;;
20738 esac
20739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20742 echo $ECHO_N "(cached) $ECHO_C" >&6
20743 else
20744 eval "$as_ac_Header=\$ac_header_preproc"
20745 fi
20746 ac_res=`eval echo '${'$as_ac_Header'}'`
20747 { echo "$as_me:$LINENO: result: $ac_res" >&5
20748 echo "${ECHO_T}$ac_res" >&6; }
20749
20750 fi
20751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20752 cat >>confdefs.h <<_ACEOF
20753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20754 _ACEOF
20755
20756 fi
20757
20758 done
20759
20760 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20761 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
20762 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765 if test "$cross_compiling" = yes; then
20766 ac_cv_func_malloc_0_nonnull=no
20767 else
20768 cat >conftest.$ac_ext <<_ACEOF
20769 /* confdefs.h. */
20770 _ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20774 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
20775 # include <stdlib.h>
20776 #else
20777 char *malloc ();
20778 #endif
20779
20780 int
20781 main ()
20782 {
20783 return ! malloc (0);
20784 ;
20785 return 0;
20786 }
20787 _ACEOF
20788 rm -f conftest$ac_exeext
20789 if { (ac_try="$ac_link"
20790 case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_link") 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20799 { (case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20808 ac_cv_func_malloc_0_nonnull=yes
20809 else
20810 echo "$as_me: program exited with status $ac_status" >&5
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814 ( exit $ac_status )
20815 ac_cv_func_malloc_0_nonnull=no
20816 fi
20817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20818 fi
20819
20820
20821 fi
20822 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20823 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
20824 if test $ac_cv_func_malloc_0_nonnull = yes; then
20825
20826 cat >>confdefs.h <<\_ACEOF
20827 #define HAVE_MALLOC 1
20828 _ACEOF
20829
20830 else
20831 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_MALLOC 0
20833 _ACEOF
20834
20835 case " $LIBOBJS " in
20836 *" malloc.$ac_objext "* ) ;;
20837 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20838 ;;
20839 esac
20840
20841
20842 cat >>confdefs.h <<\_ACEOF
20843 #define malloc rpl_malloc
20844 _ACEOF
20845
20846 fi
20847
20848
20849
20850
20851 for ac_header in stdlib.h
20852 do
20853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 fi
20860 ac_res=`eval echo '${'$as_ac_Header'}'`
20861 { echo "$as_me:$LINENO: result: $ac_res" >&5
20862 echo "${ECHO_T}$ac_res" >&6; }
20863 else
20864 # Is the header compilable?
20865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20874 #include <$ac_header>
20875 _ACEOF
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20881 esac
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_compile") 2>conftest.er1
20884 ac_status=$?
20885 grep -v '^ *+' conftest.er1 >conftest.err
20886 rm -f conftest.er1
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && {
20890 test -z "$ac_c_werror_flag" ||
20891 test ! -s conftest.err
20892 } && test -s conftest.$ac_objext; then
20893 ac_header_compiler=yes
20894 else
20895 echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20897
20898 ac_header_compiler=no
20899 fi
20900
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20903 echo "${ECHO_T}$ac_header_compiler" >&6; }
20904
20905 # Is the header present?
20906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h. */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914 #include <$ac_header>
20915 _ACEOF
20916 if { (ac_try="$ac_cpp conftest.$ac_ext"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20923 ac_status=$?
20924 grep -v '^ *+' conftest.er1 >conftest.err
20925 rm -f conftest.er1
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } >/dev/null && {
20929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20931 }; then
20932 ac_header_preproc=yes
20933 else
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937 ac_header_preproc=no
20938 fi
20939
20940 rm -f conftest.err conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20942 echo "${ECHO_T}$ac_header_preproc" >&6; }
20943
20944 # So? What about this header?
20945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20946 yes:no: )
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20951 ac_header_preproc=yes
20952 ;;
20953 no:yes:* )
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20966
20967 ;;
20968 esac
20969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20973 else
20974 eval "$as_ac_Header=\$ac_header_preproc"
20975 fi
20976 ac_res=`eval echo '${'$as_ac_Header'}'`
20977 { echo "$as_me:$LINENO: result: $ac_res" >&5
20978 echo "${ECHO_T}$ac_res" >&6; }
20979
20980 fi
20981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20982 cat >>confdefs.h <<_ACEOF
20983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20984 _ACEOF
20985
20986 fi
20987
20988 done
20989
20990 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
20991 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
20992 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20994 else
20995 if test "$cross_compiling" = yes; then
20996 ac_cv_func_realloc_0_nonnull=no
20997 else
20998 cat >conftest.$ac_ext <<_ACEOF
20999 /* confdefs.h. */
21000 _ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21004 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21005 # include <stdlib.h>
21006 #else
21007 char *realloc ();
21008 #endif
21009
21010 int
21011 main ()
21012 {
21013 return ! realloc (0, 0);
21014 ;
21015 return 0;
21016 }
21017 _ACEOF
21018 rm -f conftest$ac_exeext
21019 if { (ac_try="$ac_link"
21020 case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_link") 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21029 { (case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_try") 2>&5
21035 ac_status=$?
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; }; then
21038 ac_cv_func_realloc_0_nonnull=yes
21039 else
21040 echo "$as_me: program exited with status $ac_status" >&5
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 ( exit $ac_status )
21045 ac_cv_func_realloc_0_nonnull=no
21046 fi
21047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21048 fi
21049
21050
21051 fi
21052 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21053 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
21054 if test $ac_cv_func_realloc_0_nonnull = yes; then
21055
21056 cat >>confdefs.h <<\_ACEOF
21057 #define HAVE_REALLOC 1
21058 _ACEOF
21059
21060 else
21061 cat >>confdefs.h <<\_ACEOF
21062 #define HAVE_REALLOC 0
21063 _ACEOF
21064
21065 case " $LIBOBJS " in
21066 *" realloc.$ac_objext "* ) ;;
21067 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
21068 ;;
21069 esac
21070
21071
21072 cat >>confdefs.h <<\_ACEOF
21073 #define realloc rpl_realloc
21074 _ACEOF
21075
21076 fi
21077
21078
21079
21080 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21081 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
21082 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21084 else
21085 rm -f conftest.sym conftest.file
21086 echo >conftest.file
21087 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21088 if test "$cross_compiling" = yes; then
21089 ac_cv_func_lstat_dereferences_slashed_symlink=no
21090 else
21091 cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h. */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 $ac_includes_default
21098 int
21099 main ()
21100 {
21101 struct stat sbuf;
21102 /* Linux will dereference the symlink and fail.
21103 That is better in the sense that it means we will not
21104 have to compile and use the lstat wrapper. */
21105 return lstat ("conftest.sym/", &sbuf) == 0;
21106 ;
21107 return 0;
21108 }
21109 _ACEOF
21110 rm -f conftest$ac_exeext
21111 if { (ac_try="$ac_link"
21112 case "(($ac_try" in
21113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21114 *) ac_try_echo=$ac_try;;
21115 esac
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117 (eval "$ac_link") 2>&5
21118 ac_status=$?
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21121 { (case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_try") 2>&5
21127 ac_status=$?
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; }; then
21130 ac_cv_func_lstat_dereferences_slashed_symlink=yes
21131 else
21132 echo "$as_me: program exited with status $ac_status" >&5
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21135
21136 ( exit $ac_status )
21137 ac_cv_func_lstat_dereferences_slashed_symlink=no
21138 fi
21139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21140 fi
21141
21142
21143 else
21144 # If the `ln -s' command failed, then we probably don't even
21145 # have an lstat function.
21146 ac_cv_func_lstat_dereferences_slashed_symlink=no
21147 fi
21148 rm -f conftest.sym conftest.file
21149
21150 fi
21151 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21152 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
21153
21154 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21155
21156 cat >>confdefs.h <<_ACEOF
21157 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21158 _ACEOF
21159
21160
21161 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21162 case " $LIBOBJS " in
21163 *" lstat.$ac_objext "* ) ;;
21164 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
21165 ;;
21166 esac
21167
21168 fi
21169
21170 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
21171 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
21172 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175 if test "$cross_compiling" = yes; then
21176 ac_cv_func_stat_empty_string_bug=yes
21177 else
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 $ac_includes_default
21185 int
21186 main ()
21187 {
21188 struct stat sbuf;
21189 return stat ("", &sbuf) == 0;
21190 ;
21191 return 0;
21192 }
21193 _ACEOF
21194 rm -f conftest$ac_exeext
21195 if { (ac_try="$ac_link"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21199 esac
21200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_link") 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21205 { (case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21208 esac
21209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210 (eval "$ac_try") 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
21214 ac_cv_func_stat_empty_string_bug=no
21215 else
21216 echo "$as_me: program exited with status $ac_status" >&5
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21219
21220 ( exit $ac_status )
21221 ac_cv_func_stat_empty_string_bug=yes
21222 fi
21223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21224 fi
21225
21226
21227 fi
21228 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
21229 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
21230 if test $ac_cv_func_stat_empty_string_bug = yes; then
21231 case " $LIBOBJS " in
21232 *" stat.$ac_objext "* ) ;;
21233 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
21234 ;;
21235 esac
21236
21237
21238 cat >>confdefs.h <<_ACEOF
21239 #define HAVE_STAT_EMPTY_STRING_BUG 1
21240 _ACEOF
21241
21242 fi
21243
21244
21245 for ac_func in vprintf
21246 do
21247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 else
21253 cat >conftest.$ac_ext <<_ACEOF
21254 /* confdefs.h. */
21255 _ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h. */
21259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21261 #define $ac_func innocuous_$ac_func
21262
21263 /* System header to define __stub macros and hopefully few prototypes,
21264 which can conflict with char $ac_func (); below.
21265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21266 <limits.h> exists even on freestanding compilers. */
21267
21268 #ifdef __STDC__
21269 # include <limits.h>
21270 #else
21271 # include <assert.h>
21272 #endif
21273
21274 #undef $ac_func
21275
21276 /* Override any GCC internal prototype to avoid an error.
21277 Use char because int might match the return type of a GCC
21278 builtin and then its argument prototype would still apply. */
21279 #ifdef __cplusplus
21280 extern "C"
21281 #endif
21282 char $ac_func ();
21283 /* The GNU C library defines this for functions which it implements
21284 to always fail with ENOSYS. Some functions are actually named
21285 something starting with __ and the normal name is an alias. */
21286 #if defined __stub_$ac_func || defined __stub___$ac_func
21287 choke me
21288 #endif
21289
21290 int
21291 main ()
21292 {
21293 return $ac_func ();
21294 ;
21295 return 0;
21296 }
21297 _ACEOF
21298 rm -f conftest.$ac_objext conftest$ac_exeext
21299 if { (ac_try="$ac_link"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_link") 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest$ac_exeext &&
21315 $as_test_x conftest$ac_exeext; then
21316 eval "$as_ac_var=yes"
21317 else
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321 eval "$as_ac_var=no"
21322 fi
21323
21324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21325 conftest$ac_exeext conftest.$ac_ext
21326 fi
21327 ac_res=`eval echo '${'$as_ac_var'}'`
21328 { echo "$as_me:$LINENO: result: $ac_res" >&5
21329 echo "${ECHO_T}$ac_res" >&6; }
21330 if test `eval echo '${'$as_ac_var'}'` = yes; then
21331 cat >>confdefs.h <<_ACEOF
21332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21333 _ACEOF
21334
21335 { echo "$as_me:$LINENO: checking for _doprnt" >&5
21336 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
21337 if test "${ac_cv_func__doprnt+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 else
21340 cat >conftest.$ac_ext <<_ACEOF
21341 /* confdefs.h. */
21342 _ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21348 #define _doprnt innocuous__doprnt
21349
21350 /* System header to define __stub macros and hopefully few prototypes,
21351 which can conflict with char _doprnt (); below.
21352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21353 <limits.h> exists even on freestanding compilers. */
21354
21355 #ifdef __STDC__
21356 # include <limits.h>
21357 #else
21358 # include <assert.h>
21359 #endif
21360
21361 #undef _doprnt
21362
21363 /* Override any GCC internal prototype to avoid an error.
21364 Use char because int might match the return type of a GCC
21365 builtin and then its argument prototype would still apply. */
21366 #ifdef __cplusplus
21367 extern "C"
21368 #endif
21369 char _doprnt ();
21370 /* The GNU C library defines this for functions which it implements
21371 to always fail with ENOSYS. Some functions are actually named
21372 something starting with __ and the normal name is an alias. */
21373 #if defined __stub__doprnt || defined __stub____doprnt
21374 choke me
21375 #endif
21376
21377 int
21378 main ()
21379 {
21380 return _doprnt ();
21381 ;
21382 return 0;
21383 }
21384 _ACEOF
21385 rm -f conftest.$ac_objext conftest$ac_exeext
21386 if { (ac_try="$ac_link"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21390 esac
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_link") 2>conftest.er1
21393 ac_status=$?
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } && {
21399 test -z "$ac_c_werror_flag" ||
21400 test ! -s conftest.err
21401 } && test -s conftest$ac_exeext &&
21402 $as_test_x conftest$ac_exeext; then
21403 ac_cv_func__doprnt=yes
21404 else
21405 echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21407
21408 ac_cv_func__doprnt=no
21409 fi
21410
21411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21412 conftest$ac_exeext conftest.$ac_ext
21413 fi
21414 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21415 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
21416 if test $ac_cv_func__doprnt = yes; then
21417
21418 cat >>confdefs.h <<\_ACEOF
21419 #define HAVE_DOPRNT 1
21420 _ACEOF
21421
21422 fi
21423
21424 fi
21425 done
21426
21427
21428
21429
21430
21431 for ac_func in memset strdup strerror
21432 do
21433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 else
21439 cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h. */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21447 #define $ac_func innocuous_$ac_func
21448
21449 /* System header to define __stub macros and hopefully few prototypes,
21450 which can conflict with char $ac_func (); below.
21451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21452 <limits.h> exists even on freestanding compilers. */
21453
21454 #ifdef __STDC__
21455 # include <limits.h>
21456 #else
21457 # include <assert.h>
21458 #endif
21459
21460 #undef $ac_func
21461
21462 /* Override any GCC internal prototype to avoid an error.
21463 Use char because int might match the return type of a GCC
21464 builtin and then its argument prototype would still apply. */
21465 #ifdef __cplusplus
21466 extern "C"
21467 #endif
21468 char $ac_func ();
21469 /* The GNU C library defines this for functions which it implements
21470 to always fail with ENOSYS. Some functions are actually named
21471 something starting with __ and the normal name is an alias. */
21472 #if defined __stub_$ac_func || defined __stub___$ac_func
21473 choke me
21474 #endif
21475
21476 int
21477 main ()
21478 {
21479 return $ac_func ();
21480 ;
21481 return 0;
21482 }
21483 _ACEOF
21484 rm -f conftest.$ac_objext conftest$ac_exeext
21485 if { (ac_try="$ac_link"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_link") 2>conftest.er1
21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } && {
21498 test -z "$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 } && test -s conftest$ac_exeext &&
21501 $as_test_x conftest$ac_exeext; then
21502 eval "$as_ac_var=yes"
21503 else
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 eval "$as_ac_var=no"
21508 fi
21509
21510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21511 conftest$ac_exeext conftest.$ac_ext
21512 fi
21513 ac_res=`eval echo '${'$as_ac_var'}'`
21514 { echo "$as_me:$LINENO: result: $ac_res" >&5
21515 echo "${ECHO_T}$ac_res" >&6; }
21516 if test `eval echo '${'$as_ac_var'}'` = yes; then
21517 cat >>confdefs.h <<_ACEOF
21518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21519 _ACEOF
21520
21521 fi
21522 done
21523
21524
21525
21526 ac_config_files="$ac_config_files Makefile src/libckyapplet/Makefile src/libckyapplet/libckyapplet.pc src/coolkey/Makefile src/install/Makefile"
21527
21528 cat >confcache <<\_ACEOF
21529 # This file is a shell script that caches the results of configure
21530 # tests run on this system so they can be shared between configure
21531 # scripts and configure runs, see configure's option --config-cache.
21532 # It is not useful on other systems. If it contains results you don't
21533 # want to keep, you may remove or edit it.
21534 #
21535 # config.status only pays attention to the cache file if you give it
21536 # the --recheck option to rerun configure.
21537 #
21538 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21539 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21540 # following values.
21541
21542 _ACEOF
21543
21544 # The following way of writing the cache mishandles newlines in values,
21545 # but we know of no workaround that is simple, portable, and efficient.
21546 # So, we kill variables containing newlines.
21547 # Ultrix sh set writes to stderr and can't be redirected directly,
21548 # and sets the high bit in the cache file unless we assign to the vars.
21549 (
21550 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21551 eval ac_val=\$$ac_var
21552 case $ac_val in #(
21553 *${as_nl}*)
21554 case $ac_var in #(
21555 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21556 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21557 esac
21558 case $ac_var in #(
21559 _ | IFS | as_nl) ;; #(
21560 *) $as_unset $ac_var ;;
21561 esac ;;
21562 esac
21563 done
21564
21565 (set) 2>&1 |
21566 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21567 *${as_nl}ac_space=\ *)
21568 # `set' does not quote correctly, so add quotes (double-quote
21569 # substitution turns \\\\ into \\, and sed turns \\ into \).
21570 sed -n \
21571 "s/'/'\\\\''/g;
21572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21573 ;; #(
21574 *)
21575 # `set' quotes correctly as required by POSIX, so do not add quotes.
21576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21577 ;;
21578 esac |
21579 sort
21580 ) |
21581 sed '
21582 /^ac_cv_env_/b end
21583 t clear
21584 :clear
21585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21586 t end
21587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21588 :end' >>confcache
21589 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21590 if test -w "$cache_file"; then
21591 test "x$cache_file" != "x/dev/null" &&
21592 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21593 echo "$as_me: updating cache $cache_file" >&6;}
21594 cat confcache >$cache_file
21595 else
21596 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21597 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21598 fi
21599 fi
21600 rm -f confcache
21601
21602 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21603 # Let make expand exec_prefix.
21604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21605
21606 DEFS=-DHAVE_CONFIG_H
21607
21608 ac_libobjs=
21609 ac_ltlibobjs=
21610 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21611 # 1. Remove the extension, and $U if already installed.
21612 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21613 ac_i=`echo "$ac_i" | sed "$ac_script"`
21614 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21615 # will be set to the directory where LIBOBJS objects are built.
21616 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21617 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21618 done
21619 LIBOBJS=$ac_libobjs
21620
21621 LTLIBOBJS=$ac_ltlibobjs
21622
21623
21624 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21625 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21626 Usually this means the macro was only invoked conditionally." >&5
21627 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21628 Usually this means the macro was only invoked conditionally." >&2;}
21629 { (exit 1); exit 1; }; }
21630 fi
21631 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21632 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21633 Usually this means the macro was only invoked conditionally." >&5
21634 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21635 Usually this means the macro was only invoked conditionally." >&2;}
21636 { (exit 1); exit 1; }; }
21637 fi
21638 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21639 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21640 Usually this means the macro was only invoked conditionally." >&5
21641 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21642 Usually this means the macro was only invoked conditionally." >&2;}
21643 { (exit 1); exit 1; }; }
21644 fi
21645 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21646 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21647 Usually this means the macro was only invoked conditionally." >&5
21648 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21649 Usually this means the macro was only invoked conditionally." >&2;}
21650 { (exit 1); exit 1; }; }
21651 fi
21652 if test -z "${HAVE_PCSC_TRUE}" && test -z "${HAVE_PCSC_FALSE}"; then
21653 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PCSC\" was never defined.
21654 Usually this means the macro was only invoked conditionally." >&5
21655 echo "$as_me: error: conditional \"HAVE_PCSC\" was never defined.
21656 Usually this means the macro was only invoked conditionally." >&2;}
21657 { (exit 1); exit 1; }; }
21658 fi
21659 if test -z "${BUILD_PK11INSTALL_TRUE}" && test -z "${BUILD_PK11INSTALL_FALSE}"; then
21660 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PK11INSTALL\" was never defined.
21661 Usually this means the macro was only invoked conditionally." >&5
21662 echo "$as_me: error: conditional \"BUILD_PK11INSTALL\" was never defined.
21663 Usually this means the macro was only invoked conditionally." >&2;}
21664 { (exit 1); exit 1; }; }
21665 fi
21666 if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
21667 { { echo "$as_me:$LINENO: error: conditional \"IS_WINDOWS\" was never defined.
21668 Usually this means the macro was only invoked conditionally." >&5
21669 echo "$as_me: error: conditional \"IS_WINDOWS\" was never defined.
21670 Usually this means the macro was only invoked conditionally." >&2;}
21671 { (exit 1); exit 1; }; }
21672 fi
21673
21674 : ${CONFIG_STATUS=./config.status}
21675 ac_clean_files_save=$ac_clean_files
21676 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21677 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21678 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21679 cat >$CONFIG_STATUS <<_ACEOF
21680 #! $SHELL
21681 # Generated by $as_me.
21682 # Run this file to recreate the current configuration.
21683 # Compiler output produced by configure, useful for debugging
21684 # configure, is in config.log if it exists.
21685
21686 debug=false
21687 ac_cs_recheck=false
21688 ac_cs_silent=false
21689 SHELL=\${CONFIG_SHELL-$SHELL}
21690 _ACEOF
21691
21692 cat >>$CONFIG_STATUS <<\_ACEOF
21693 ## --------------------- ##
21694 ## M4sh Initialization. ##
21695 ## --------------------- ##
21696
21697 # Be more Bourne compatible
21698 DUALCASE=1; export DUALCASE # for MKS sh
21699 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21700 emulate sh
21701 NULLCMD=:
21702 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21703 # is contrary to our usage. Disable this feature.
21704 alias -g '${1+"$@"}'='"$@"'
21705 setopt NO_GLOB_SUBST
21706 else
21707 case `(set -o) 2>/dev/null` in
21708 *posix*) set -o posix ;;
21709 esac
21710
21711 fi
21712
21713
21714
21715
21716 # PATH needs CR
21717 # Avoid depending upon Character Ranges.
21718 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21719 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21720 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21721 as_cr_digits='0123456789'
21722 as_cr_alnum=$as_cr_Letters$as_cr_digits
21723
21724 # The user is always right.
21725 if test "${PATH_SEPARATOR+set}" != set; then
21726 echo "#! /bin/sh" >conf$$.sh
21727 echo "exit 0" >>conf$$.sh
21728 chmod +x conf$$.sh
21729 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21730 PATH_SEPARATOR=';'
21731 else
21732 PATH_SEPARATOR=:
21733 fi
21734 rm -f conf$$.sh
21735 fi
21736
21737 # Support unset when possible.
21738 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21739 as_unset=unset
21740 else
21741 as_unset=false
21742 fi
21743
21744
21745 # IFS
21746 # We need space, tab and new line, in precisely that order. Quoting is
21747 # there to prevent editors from complaining about space-tab.
21748 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21749 # splitting by setting IFS to empty value.)
21750 as_nl='
21751 '
21752 IFS=" "" $as_nl"
21753
21754 # Find who we are. Look in the path if we contain no directory separator.
21755 case $0 in
21756 *[\\/]* ) as_myself=$0 ;;
21757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21758 for as_dir in $PATH
21759 do
21760 IFS=$as_save_IFS
21761 test -z "$as_dir" && as_dir=.
21762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21763 done
21764 IFS=$as_save_IFS
21765
21766 ;;
21767 esac
21768 # We did not find ourselves, most probably we were run as `sh COMMAND'
21769 # in which case we are not to be found in the path.
21770 if test "x$as_myself" = x; then
21771 as_myself=$0
21772 fi
21773 if test ! -f "$as_myself"; then
21774 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21775 { (exit 1); exit 1; }
21776 fi
21777
21778 # Work around bugs in pre-3.0 UWIN ksh.
21779 for as_var in ENV MAIL MAILPATH
21780 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21781 done
21782 PS1='$ '
21783 PS2='> '
21784 PS4='+ '
21785
21786 # NLS nuisances.
21787 for as_var in \
21788 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21789 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21790 LC_TELEPHONE LC_TIME
21791 do
21792 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21793 eval $as_var=C; export $as_var
21794 else
21795 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21796 fi
21797 done
21798
21799 # Required to use basename.
21800 if expr a : '\(a\)' >/dev/null 2>&1 &&
21801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21802 as_expr=expr
21803 else
21804 as_expr=false
21805 fi
21806
21807 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21808 as_basename=basename
21809 else
21810 as_basename=false
21811 fi
21812
21813
21814 # Name of the executable.
21815 as_me=`$as_basename -- "$0" ||
21816 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21817 X"$0" : 'X\(//\)$' \| \
21818 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21819 echo X/"$0" |
21820 sed '/^.*\/\([^/][^/]*\)\/*$/{
21821 s//\1/
21822 q
21823 }
21824 /^X\/\(\/\/\)$/{
21825 s//\1/
21826 q
21827 }
21828 /^X\/\(\/\).*/{
21829 s//\1/
21830 q
21831 }
21832 s/.*/./; q'`
21833
21834 # CDPATH.
21835 $as_unset CDPATH
21836
21837
21838
21839 as_lineno_1=$LINENO
21840 as_lineno_2=$LINENO
21841 test "x$as_lineno_1" != "x$as_lineno_2" &&
21842 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21843
21844 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21845 # uniformly replaced by the line number. The first 'sed' inserts a
21846 # line-number line after each line using $LINENO; the second 'sed'
21847 # does the real work. The second script uses 'N' to pair each
21848 # line-number line with the line containing $LINENO, and appends
21849 # trailing '-' during substitution so that $LINENO is not a special
21850 # case at line end.
21851 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21852 # scripts with optimization help from Paolo Bonzini. Blame Lee
21853 # E. McMahon (1931-1989) for sed's syntax. :-)
21854 sed -n '
21855 p
21856 /[$]LINENO/=
21857 ' <$as_myself |
21858 sed '
21859 s/[$]LINENO.*/&-/
21860 t lineno
21861 b
21862 :lineno
21863 N
21864 :loop
21865 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21866 t loop
21867 s/-\n.*//
21868 ' >$as_me.lineno &&
21869 chmod +x "$as_me.lineno" ||
21870 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21871 { (exit 1); exit 1; }; }
21872
21873 # Don't try to exec as it changes $[0], causing all sort of problems
21874 # (the dirname of $[0] is not the place where we might find the
21875 # original and so on. Autoconf is especially sensitive to this).
21876 . "./$as_me.lineno"
21877 # Exit status is that of the last command.
21878 exit
21879 }
21880
21881
21882 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21883 as_dirname=dirname
21884 else
21885 as_dirname=false
21886 fi
21887
21888 ECHO_C= ECHO_N= ECHO_T=
21889 case `echo -n x` in
21890 -n*)
21891 case `echo 'x\c'` in
21892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21893 *) ECHO_C='\c';;
21894 esac;;
21895 *)
21896 ECHO_N='-n';;
21897 esac
21898
21899 if expr a : '\(a\)' >/dev/null 2>&1 &&
21900 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21901 as_expr=expr
21902 else
21903 as_expr=false
21904 fi
21905
21906 rm -f conf$$ conf$$.exe conf$$.file
21907 if test -d conf$$.dir; then
21908 rm -f conf$$.dir/conf$$.file
21909 else
21910 rm -f conf$$.dir
21911 mkdir conf$$.dir
21912 fi
21913 echo >conf$$.file
21914 if ln -s conf$$.file conf$$ 2>/dev/null; then
21915 as_ln_s='ln -s'
21916 # ... but there are two gotchas:
21917 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21918 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21919 # In both cases, we have to default to `cp -p'.
21920 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21921 as_ln_s='cp -p'
21922 elif ln conf$$.file conf$$ 2>/dev/null; then
21923 as_ln_s=ln
21924 else
21925 as_ln_s='cp -p'
21926 fi
21927 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21928 rmdir conf$$.dir 2>/dev/null
21929
21930 if mkdir -p . 2>/dev/null; then
21931 as_mkdir_p=:
21932 else
21933 test -d ./-p && rmdir ./-p
21934 as_mkdir_p=false
21935 fi
21936
21937 if test -x / >/dev/null 2>&1; then
21938 as_test_x='test -x'
21939 else
21940 if ls -dL / >/dev/null 2>&1; then
21941 as_ls_L_option=L
21942 else
21943 as_ls_L_option=
21944 fi
21945 as_test_x='
21946 eval sh -c '\''
21947 if test -d "$1"; then
21948 test -d "$1/.";
21949 else
21950 case $1 in
21951 -*)set "./$1";;
21952 esac;
21953 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21954 ???[sx]*):;;*)false;;esac;fi
21955 '\'' sh
21956 '
21957 fi
21958 as_executable_p=$as_test_x
21959
21960 # Sed expression to map a string onto a valid CPP name.
21961 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21962
21963 # Sed expression to map a string onto a valid variable name.
21964 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21965
21966
21967 exec 6>&1
21968
21969 # Save the log message, to keep $[0] and so on meaningful, and to
21970 # report actual input values of CONFIG_FILES etc. instead of their
21971 # values after options handling.
21972 ac_log="
21973 This file was extended by coolkey $as_me "1.1.0", which was
21974 generated by GNU Autoconf 2.61. Invocation command line was
21975
21976 CONFIG_FILES = $CONFIG_FILES
21977 CONFIG_HEADERS = $CONFIG_HEADERS
21978 CONFIG_LINKS = $CONFIG_LINKS
21979 CONFIG_COMMANDS = $CONFIG_COMMANDS
21980 $ $0 $@
21981
21982 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21983 "
21984
21985 _ACEOF
21986
21987 cat >>$CONFIG_STATUS <<_ACEOF
21988 # Files that config.status was made for.
21989 config_files="$ac_config_files"
21990 config_headers="$ac_config_headers"
21991 config_commands="$ac_config_commands"
21992
21993 _ACEOF
21994
21995 cat >>$CONFIG_STATUS <<\_ACEOF
21996 ac_cs_usage="\
21997 \`$as_me' instantiates files from templates according to the
21998 current configuration.
21999
22000 Usage: $0 [OPTIONS] [FILE]...
22001
22002 -h, --help print this help, then exit
22003 -V, --version print version number and configuration settings, then exit
22004 -q, --quiet do not print progress messages
22005 -d, --debug don't remove temporary files
22006 --recheck update $as_me by reconfiguring in the same conditions
22007 --file=FILE[:TEMPLATE]
22008 instantiate the configuration file FILE
22009 --header=FILE[:TEMPLATE]
22010 instantiate the configuration header FILE
22011
22012 Configuration files:
22013 $config_files
22014
22015 Configuration headers:
22016 $config_headers
22017
22018 Configuration commands:
22019 $config_commands
22020
22021 Report bugs to <[email protected]>."
22022
22023 _ACEOF
22024 cat >>$CONFIG_STATUS <<_ACEOF
22025 ac_cs_version="\\
22026 coolkey config.status "1.1.0"
22027 configured by $0, generated by GNU Autoconf 2.61,
22028 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22029
22030 Copyright (C) 2006 Free Software Foundation, Inc.
22031 This config.status script is free software; the Free Software Foundation
22032 gives unlimited permission to copy, distribute and modify it."
22033
22034 ac_pwd='$ac_pwd'
22035 srcdir='$srcdir'
22036 INSTALL='$INSTALL'
22037 _ACEOF
22038
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22040 # If no file are specified by the user, then we need to provide default
22041 # value. By we need to know if files were specified by the user.
22042 ac_need_defaults=:
22043 while test $# != 0
22044 do
22045 case $1 in
22046 --*=*)
22047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22048 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22049 ac_shift=:
22050 ;;
22051 *)
22052 ac_option=$1
22053 ac_optarg=$2
22054 ac_shift=shift
22055 ;;
22056 esac
22057
22058 case $ac_option in
22059 # Handling of the options.
22060 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22061 ac_cs_recheck=: ;;
22062 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22063 echo "$ac_cs_version"; exit ;;
22064 --debug | --debu | --deb | --de | --d | -d )
22065 debug=: ;;
22066 --file | --fil | --fi | --f )
22067 $ac_shift
22068 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22069 ac_need_defaults=false;;
22070 --header | --heade | --head | --hea )
22071 $ac_shift
22072 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22073 ac_need_defaults=false;;
22074 --he | --h)
22075 # Conflict between --help and --header
22076 { echo "$as_me: error: ambiguous option: $1
22077 Try \`$0 --help' for more information." >&2
22078 { (exit 1); exit 1; }; };;
22079 --help | --hel | -h )
22080 echo "$ac_cs_usage"; exit ;;
22081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22082 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22083 ac_cs_silent=: ;;
22084
22085 # This is an error.
22086 -*) { echo "$as_me: error: unrecognized option: $1
22087 Try \`$0 --help' for more information." >&2
22088 { (exit 1); exit 1; }; } ;;
22089
22090 *) ac_config_targets="$ac_config_targets $1"
22091 ac_need_defaults=false ;;
22092
22093 esac
22094 shift
22095 done
22096
22097 ac_configure_extra_args=
22098
22099 if $ac_cs_silent; then
22100 exec 6>/dev/null
22101 ac_configure_extra_args="$ac_configure_extra_args --silent"
22102 fi
22103
22104 _ACEOF
22105 cat >>$CONFIG_STATUS <<_ACEOF
22106 if \$ac_cs_recheck; then
22107 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22108 CONFIG_SHELL=$SHELL
22109 export CONFIG_SHELL
22110 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22111 fi
22112
22113 _ACEOF
22114 cat >>$CONFIG_STATUS <<\_ACEOF
22115 exec 5>>config.log
22116 {
22117 echo
22118 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22119 ## Running $as_me. ##
22120 _ASBOX
22121 echo "$ac_log"
22122 } >&5
22123
22124 _ACEOF
22125 cat >>$CONFIG_STATUS <<_ACEOF
22126 #
22127 # INIT-COMMANDS
22128 #
22129 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22130
22131 _ACEOF
22132
22133 cat >>$CONFIG_STATUS <<\_ACEOF
22134
22135 # Handling of arguments.
22136 for ac_config_target in $ac_config_targets
22137 do
22138 case $ac_config_target in
22139 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22140 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22141 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22142 "src/libckyapplet/Makefile") CONFIG_FILES="$CONFIG_FILES src/libckyapplet/Makefile" ;;
22143 "src/libckyapplet/libckyapplet.pc") CONFIG_FILES="$CONFIG_FILES src/libckyapplet/libckyapplet.pc" ;;
22144 "src/coolkey/Makefile") CONFIG_FILES="$CONFIG_FILES src/coolkey/Makefile" ;;
22145 "src/install/Makefile") CONFIG_FILES="$CONFIG_FILES src/install/Makefile" ;;
22146
22147 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22148 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22149 { (exit 1); exit 1; }; };;
22150 esac
22151 done
22152
22153
22154 # If the user did not use the arguments to specify the items to instantiate,
22155 # then the envvar interface is used. Set only those that are not.
22156 # We use the long form for the default assignment because of an extremely
22157 # bizarre bug on SunOS 4.1.3.
22158 if $ac_need_defaults; then
22159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22161 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22162 fi
22163
22164 # Have a temporary directory for convenience. Make it in the build tree
22165 # simply because there is no reason against having it here, and in addition,
22166 # creating and moving files from /tmp can sometimes cause problems.
22167 # Hook for its removal unless debugging.
22168 # Note that there is a small window in which the directory will not be cleaned:
22169 # after its creation but before its name has been assigned to `$tmp'.
22170 $debug ||
22171 {
22172 tmp=
22173 trap 'exit_status=$?
22174 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22175 ' 0
22176 trap '{ (exit 1); exit 1; }' 1 2 13 15
22177 }
22178 # Create a (secure) tmp directory for tmp files.
22179
22180 {
22181 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22182 test -n "$tmp" && test -d "$tmp"
22183 } ||
22184 {
22185 tmp=./conf$$-$RANDOM
22186 (umask 077 && mkdir "$tmp")
22187 } ||
22188 {
22189 echo "$me: cannot create a temporary directory in ." >&2
22190 { (exit 1); exit 1; }
22191 }
22192
22193 #
22194 # Set up the sed scripts for CONFIG_FILES section.
22195 #
22196
22197 # No need to generate the scripts if there are no CONFIG_FILES.
22198 # This happens for instance when ./config.status config.h
22199 if test -n "$CONFIG_FILES"; then
22200
22201 _ACEOF
22202
22203
22204
22205 ac_delim='%!_!# '
22206 for ac_last_try in false false false false false :; do
22207 cat >conf$$subs.sed <<_ACEOF
22208 SHELL!$SHELL$ac_delim
22209 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22210 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22211 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22212 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22213 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22214 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22215 exec_prefix!$exec_prefix$ac_delim
22216 prefix!$prefix$ac_delim
22217 program_transform_name!$program_transform_name$ac_delim
22218 bindir!$bindir$ac_delim
22219 sbindir!$sbindir$ac_delim
22220 libexecdir!$libexecdir$ac_delim
22221 datarootdir!$datarootdir$ac_delim
22222 datadir!$datadir$ac_delim
22223 sysconfdir!$sysconfdir$ac_delim
22224 sharedstatedir!$sharedstatedir$ac_delim
22225 localstatedir!$localstatedir$ac_delim
22226 includedir!$includedir$ac_delim
22227 oldincludedir!$oldincludedir$ac_delim
22228 docdir!$docdir$ac_delim
22229 infodir!$infodir$ac_delim
22230 htmldir!$htmldir$ac_delim
22231 dvidir!$dvidir$ac_delim
22232 pdfdir!$pdfdir$ac_delim
22233 psdir!$psdir$ac_delim
22234 libdir!$libdir$ac_delim
22235 localedir!$localedir$ac_delim
22236 mandir!$mandir$ac_delim
22237 DEFS!$DEFS$ac_delim
22238 ECHO_C!$ECHO_C$ac_delim
22239 ECHO_N!$ECHO_N$ac_delim
22240 ECHO_T!$ECHO_T$ac_delim
22241 LIBS!$LIBS$ac_delim
22242 build_alias!$build_alias$ac_delim
22243 host_alias!$host_alias$ac_delim
22244 target_alias!$target_alias$ac_delim
22245 build!$build$ac_delim
22246 build_cpu!$build_cpu$ac_delim
22247 build_vendor!$build_vendor$ac_delim
22248 build_os!$build_os$ac_delim
22249 host!$host$ac_delim
22250 host_cpu!$host_cpu$ac_delim
22251 host_vendor!$host_vendor$ac_delim
22252 host_os!$host_os$ac_delim
22253 target!$target$ac_delim
22254 target_cpu!$target_cpu$ac_delim
22255 target_vendor!$target_vendor$ac_delim
22256 target_os!$target_os$ac_delim
22257 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22258 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22259 INSTALL_DATA!$INSTALL_DATA$ac_delim
22260 CYGPATH_W!$CYGPATH_W$ac_delim
22261 PACKAGE!$PACKAGE$ac_delim
22262 VERSION!$VERSION$ac_delim
22263 ACLOCAL!$ACLOCAL$ac_delim
22264 AUTOCONF!$AUTOCONF$ac_delim
22265 AUTOMAKE!$AUTOMAKE$ac_delim
22266 AUTOHEADER!$AUTOHEADER$ac_delim
22267 MAKEINFO!$MAKEINFO$ac_delim
22268 install_sh!$install_sh$ac_delim
22269 STRIP!$STRIP$ac_delim
22270 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22271 mkdir_p!$mkdir_p$ac_delim
22272 AWK!$AWK$ac_delim
22273 SET_MAKE!$SET_MAKE$ac_delim
22274 am__leading_dot!$am__leading_dot$ac_delim
22275 AMTAR!$AMTAR$ac_delim
22276 am__tar!$am__tar$ac_delim
22277 am__untar!$am__untar$ac_delim
22278 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22279 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22280 MAINT!$MAINT$ac_delim
22281 CC!$CC$ac_delim
22282 CFLAGS!$CFLAGS$ac_delim
22283 LDFLAGS!$LDFLAGS$ac_delim
22284 CPPFLAGS!$CPPFLAGS$ac_delim
22285 ac_ct_CC!$ac_ct_CC$ac_delim
22286 EXEEXT!$EXEEXT$ac_delim
22287 OBJEXT!$OBJEXT$ac_delim
22288 DEPDIR!$DEPDIR$ac_delim
22289 am__include!$am__include$ac_delim
22290 am__quote!$am__quote$ac_delim
22291 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22292 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22293 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22294 CCDEPMODE!$CCDEPMODE$ac_delim
22295 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22296 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22297 CXX!$CXX$ac_delim
22298 CXXFLAGS!$CXXFLAGS$ac_delim
22299 ac_ct_CXX!$ac_ct_CXX$ac_delim
22300 CXXDEPMODE!$CXXDEPMODE$ac_delim
22301 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22302 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22303 GREP!$GREP$ac_delim
22304 EGREP!$EGREP$ac_delim
22305 _ACEOF
22306
22307 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22308 break
22309 elif $ac_last_try; then
22310 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22311 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22312 { (exit 1); exit 1; }; }
22313 else
22314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22315 fi
22316 done
22317
22318 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22319 if test -n "$ac_eof"; then
22320 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22321 ac_eof=`expr $ac_eof + 1`
22322 fi
22323
22324 cat >>$CONFIG_STATUS <<_ACEOF
22325 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22327 _ACEOF
22328 sed '
22329 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22330 s/^/s,@/; s/!/@,|#_!!_#|/
22331 :n
22332 t n
22333 s/'"$ac_delim"'$/,g/; t
22334 s/$/\\/; p
22335 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22336 ' >>$CONFIG_STATUS <conf$$subs.sed
22337 rm -f conf$$subs.sed
22338 cat >>$CONFIG_STATUS <<_ACEOF
22339 CEOF$ac_eof
22340 _ACEOF
22341
22342
22343 ac_delim='%!_!# '
22344 for ac_last_try in false false false false false :; do
22345 cat >conf$$subs.sed <<_ACEOF
22346 LN_S!$LN_S$ac_delim
22347 ECHO!$ECHO$ac_delim
22348 AR!$AR$ac_delim
22349 RANLIB!$RANLIB$ac_delim
22350 CPP!$CPP$ac_delim
22351 CXXCPP!$CXXCPP$ac_delim
22352 F77!$F77$ac_delim
22353 FFLAGS!$FFLAGS$ac_delim
22354 ac_ct_F77!$ac_ct_F77$ac_delim
22355 LIBTOOL!$LIBTOOL$ac_delim
22356 LIBCKYAPPLET!$LIBCKYAPPLET$ac_delim
22357 PKG_CONFIG!$PKG_CONFIG$ac_delim
22358 PCSC_CFLAGS!$PCSC_CFLAGS$ac_delim
22359 PCSC_LIBS!$PCSC_LIBS$ac_delim
22360 NSS_CFLAGS!$NSS_CFLAGS$ac_delim
22361 NSS_LIBS!$NSS_LIBS$ac_delim
22362 ZLIB_CFLAGS!$ZLIB_CFLAGS$ac_delim
22363 ZLIB_LIBS!$ZLIB_LIBS$ac_delim
22364 SCARD_LIB_NAME!$SCARD_LIB_NAME$ac_delim
22365 HAVE_PCSC_TRUE!$HAVE_PCSC_TRUE$ac_delim
22366 HAVE_PCSC_FALSE!$HAVE_PCSC_FALSE$ac_delim
22367 BUILD_PK11INSTALL_TRUE!$BUILD_PK11INSTALL_TRUE$ac_delim
22368 BUILD_PK11INSTALL_FALSE!$BUILD_PK11INSTALL_FALSE$ac_delim
22369 IS_WINDOWS_TRUE!$IS_WINDOWS_TRUE$ac_delim
22370 IS_WINDOWS_FALSE!$IS_WINDOWS_FALSE$ac_delim
22371 LIBOBJS!$LIBOBJS$ac_delim
22372 LTLIBOBJS!$LTLIBOBJS$ac_delim
22373 _ACEOF
22374
22375 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
22376 break
22377 elif $ac_last_try; then
22378 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22380 { (exit 1); exit 1; }; }
22381 else
22382 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22383 fi
22384 done
22385
22386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22387 if test -n "$ac_eof"; then
22388 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22389 ac_eof=`expr $ac_eof + 1`
22390 fi
22391
22392 cat >>$CONFIG_STATUS <<_ACEOF
22393 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22395 _ACEOF
22396 sed '
22397 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22398 s/^/s,@/; s/!/@,|#_!!_#|/
22399 :n
22400 t n
22401 s/'"$ac_delim"'$/,g/; t
22402 s/$/\\/; p
22403 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22404 ' >>$CONFIG_STATUS <conf$$subs.sed
22405 rm -f conf$$subs.sed
22406 cat >>$CONFIG_STATUS <<_ACEOF
22407 :end
22408 s/|#_!!_#|//g
22409 CEOF$ac_eof
22410 _ACEOF
22411
22412
22413 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22414 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22415 # trailing colons and then remove the whole line if VPATH becomes empty
22416 # (actually we leave an empty line to preserve line numbers).
22417 if test "x$srcdir" = x.; then
22418 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22419 s/:*\$(srcdir):*/:/
22420 s/:*\${srcdir}:*/:/
22421 s/:*@srcdir@:*/:/
22422 s/^\([^=]*=[ ]*\):*/\1/
22423 s/:*$//
22424 s/^[^=]*=[ ]*$//
22425 }'
22426 fi
22427
22428 cat >>$CONFIG_STATUS <<\_ACEOF
22429 fi # test -n "$CONFIG_FILES"
22430
22431
22432 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22433 do
22434 case $ac_tag in
22435 :[FHLC]) ac_mode=$ac_tag; continue;;
22436 esac
22437 case $ac_mode$ac_tag in
22438 :[FHL]*:*);;
22439 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22440 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22441 { (exit 1); exit 1; }; };;
22442 :[FH]-) ac_tag=-:-;;
22443 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22444 esac
22445 ac_save_IFS=$IFS
22446 IFS=:
22447 set x $ac_tag
22448 IFS=$ac_save_IFS
22449 shift
22450 ac_file=$1
22451 shift
22452
22453 case $ac_mode in
22454 :L) ac_source=$1;;
22455 :[FH])
22456 ac_file_inputs=
22457 for ac_f
22458 do
22459 case $ac_f in
22460 -) ac_f="$tmp/stdin";;
22461 *) # Look for the file first in the build tree, then in the source tree
22462 # (if the path is not absolute). The absolute path cannot be DOS-style,
22463 # because $ac_f cannot contain `:'.
22464 test -f "$ac_f" ||
22465 case $ac_f in
22466 [\\/$]*) false;;
22467 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22468 esac ||
22469 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22470 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22471 { (exit 1); exit 1; }; };;
22472 esac
22473 ac_file_inputs="$ac_file_inputs $ac_f"
22474 done
22475
22476 # Let's still pretend it is `configure' which instantiates (i.e., don't
22477 # use $as_me), people would be surprised to read:
22478 # /* config.h. Generated by config.status. */
22479 configure_input="Generated from "`IFS=:
22480 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22481 if test x"$ac_file" != x-; then
22482 configure_input="$ac_file. $configure_input"
22483 { echo "$as_me:$LINENO: creating $ac_file" >&5
22484 echo "$as_me: creating $ac_file" >&6;}
22485 fi
22486
22487 case $ac_tag in
22488 *:-:* | *:-) cat >"$tmp/stdin";;
22489 esac
22490 ;;
22491 esac
22492
22493 ac_dir=`$as_dirname -- "$ac_file" ||
22494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22495 X"$ac_file" : 'X\(//\)[^/]' \| \
22496 X"$ac_file" : 'X\(//\)$' \| \
22497 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22498 echo X"$ac_file" |
22499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22500 s//\1/
22501 q
22502 }
22503 /^X\(\/\/\)[^/].*/{
22504 s//\1/
22505 q
22506 }
22507 /^X\(\/\/\)$/{
22508 s//\1/
22509 q
22510 }
22511 /^X\(\/\).*/{
22512 s//\1/
22513 q
22514 }
22515 s/.*/./; q'`
22516 { as_dir="$ac_dir"
22517 case $as_dir in #(
22518 -*) as_dir=./$as_dir;;
22519 esac
22520 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22521 as_dirs=
22522 while :; do
22523 case $as_dir in #(
22524 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22525 *) as_qdir=$as_dir;;
22526 esac
22527 as_dirs="'$as_qdir' $as_dirs"
22528 as_dir=`$as_dirname -- "$as_dir" ||
22529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22530 X"$as_dir" : 'X\(//\)[^/]' \| \
22531 X"$as_dir" : 'X\(//\)$' \| \
22532 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22533 echo X"$as_dir" |
22534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22535 s//\1/
22536 q
22537 }
22538 /^X\(\/\/\)[^/].*/{
22539 s//\1/
22540 q
22541 }
22542 /^X\(\/\/\)$/{
22543 s//\1/
22544 q
22545 }
22546 /^X\(\/\).*/{
22547 s//\1/
22548 q
22549 }
22550 s/.*/./; q'`
22551 test -d "$as_dir" && break
22552 done
22553 test -z "$as_dirs" || eval "mkdir $as_dirs"
22554 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22555 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22556 { (exit 1); exit 1; }; }; }
22557 ac_builddir=.
22558
22559 case "$ac_dir" in
22560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22561 *)
22562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22563 # A ".." for each directory in $ac_dir_suffix.
22564 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22565 case $ac_top_builddir_sub in
22566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22568 esac ;;
22569 esac
22570 ac_abs_top_builddir=$ac_pwd
22571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22572 # for backward compatibility:
22573 ac_top_builddir=$ac_top_build_prefix
22574
22575 case $srcdir in
22576 .) # We are building in place.
22577 ac_srcdir=.
22578 ac_top_srcdir=$ac_top_builddir_sub
22579 ac_abs_top_srcdir=$ac_pwd ;;
22580 [\\/]* | ?:[\\/]* ) # Absolute name.
22581 ac_srcdir=$srcdir$ac_dir_suffix;
22582 ac_top_srcdir=$srcdir
22583 ac_abs_top_srcdir=$srcdir ;;
22584 *) # Relative name.
22585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22586 ac_top_srcdir=$ac_top_build_prefix$srcdir
22587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22588 esac
22589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22590
22591
22592 case $ac_mode in
22593 :F)
22594 #
22595 # CONFIG_FILE
22596 #
22597
22598 case $INSTALL in
22599 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22600 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22601 esac
22602 _ACEOF
22603
22604 cat >>$CONFIG_STATUS <<\_ACEOF
22605 # If the template does not know about datarootdir, expand it.
22606 # FIXME: This hack should be removed a few years after 2.60.
22607 ac_datarootdir_hack=; ac_datarootdir_seen=
22608
22609 case `sed -n '/datarootdir/ {
22610 p
22611 q
22612 }
22613 /@datadir@/p
22614 /@docdir@/p
22615 /@infodir@/p
22616 /@localedir@/p
22617 /@mandir@/p
22618 ' $ac_file_inputs` in
22619 *datarootdir*) ac_datarootdir_seen=yes;;
22620 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22621 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22622 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22623 _ACEOF
22624 cat >>$CONFIG_STATUS <<_ACEOF
22625 ac_datarootdir_hack='
22626 s&@datadir@&$datadir&g
22627 s&@docdir@&$docdir&g
22628 s&@infodir@&$infodir&g
22629 s&@localedir@&$localedir&g
22630 s&@mandir@&$mandir&g
22631 s&\\\${datarootdir}&$datarootdir&g' ;;
22632 esac
22633 _ACEOF
22634
22635 # Neutralize VPATH when `$srcdir' = `.'.
22636 # Shell code in configure.ac might set extrasub.
22637 # FIXME: do we really want to maintain this feature?
22638 cat >>$CONFIG_STATUS <<_ACEOF
22639 sed "$ac_vpsub
22640 $extrasub
22641 _ACEOF
22642 cat >>$CONFIG_STATUS <<\_ACEOF
22643 :t
22644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22645 s&@configure_input@&$configure_input&;t t
22646 s&@top_builddir@&$ac_top_builddir_sub&;t t
22647 s&@srcdir@&$ac_srcdir&;t t
22648 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22649 s&@top_srcdir@&$ac_top_srcdir&;t t
22650 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22651 s&@builddir@&$ac_builddir&;t t
22652 s&@abs_builddir@&$ac_abs_builddir&;t t
22653 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22654 s&@INSTALL@&$ac_INSTALL&;t t
22655 $ac_datarootdir_hack
22656 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22657
22658 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22659 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22660 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22661 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22662 which seems to be undefined. Please make sure it is defined." >&5
22663 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22664 which seems to be undefined. Please make sure it is defined." >&2;}
22665
22666 rm -f "$tmp/stdin"
22667 case $ac_file in
22668 -) cat "$tmp/out"; rm -f "$tmp/out";;
22669 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22670 esac
22671 ;;
22672 :H)
22673 #
22674 # CONFIG_HEADER
22675 #
22676 _ACEOF
22677
22678 # Transform confdefs.h into a sed script `conftest.defines', that
22679 # substitutes the proper values into config.h.in to produce config.h.
22680 rm -f conftest.defines conftest.tail
22681 # First, append a space to every undef/define line, to ease matching.
22682 echo 's/$/ /' >conftest.defines
22683 # Then, protect against being on the right side of a sed subst, or in
22684 # an unquoted here document, in config.status. If some macros were
22685 # called several times there might be several #defines for the same
22686 # symbol, which is useless. But do not sort them, since the last
22687 # AC_DEFINE must be honored.
22688 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22689 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22690 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22691 # PARAMS is the parameter list in the macro definition--in most cases, it's
22692 # just an empty string.
22693 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22694 ac_dB='\\)[ (].*,\\1define\\2'
22695 ac_dC=' '
22696 ac_dD=' ,'
22697
22698 uniq confdefs.h |
22699 sed -n '
22700 t rset
22701 :rset
22702 s/^[ ]*#[ ]*define[ ][ ]*//
22703 t ok
22704 d
22705 :ok
22706 s/[\\&,]/\\&/g
22707 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22708 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22709 ' >>conftest.defines
22710
22711 # Remove the space that was appended to ease matching.
22712 # Then replace #undef with comments. This is necessary, for
22713 # example, in the case of _POSIX_SOURCE, which is predefined and required
22714 # on some systems where configure will not decide to define it.
22715 # (The regexp can be short, since the line contains either #define or #undef.)
22716 echo 's/ $//
22717 s,^[ #]*u.*,/* & */,' >>conftest.defines
22718
22719 # Break up conftest.defines:
22720 ac_max_sed_lines=50
22721
22722 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22723 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22724 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22725 # et cetera.
22726 ac_in='$ac_file_inputs'
22727 ac_out='"$tmp/out1"'
22728 ac_nxt='"$tmp/out2"'
22729
22730 while :
22731 do
22732 # Write a here document:
22733 cat >>$CONFIG_STATUS <<_ACEOF
22734 # First, check the format of the line:
22735 cat >"\$tmp/defines.sed" <<\\CEOF
22736 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22737 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22738 b
22739 :def
22740 _ACEOF
22741 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22742 echo 'CEOF
22743 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22744 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22745 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22746 grep . conftest.tail >/dev/null || break
22747 rm -f conftest.defines
22748 mv conftest.tail conftest.defines
22749 done
22750 rm -f conftest.defines conftest.tail
22751
22752 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22753 cat >>$CONFIG_STATUS <<\_ACEOF
22754 if test x"$ac_file" != x-; then
22755 echo "/* $configure_input */" >"$tmp/config.h"
22756 cat "$ac_result" >>"$tmp/config.h"
22757 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22758 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22759 echo "$as_me: $ac_file is unchanged" >&6;}
22760 else
22761 rm -f $ac_file
22762 mv "$tmp/config.h" $ac_file
22763 fi
22764 else
22765 echo "/* $configure_input */"
22766 cat "$ac_result"
22767 fi
22768 rm -f "$tmp/out12"
22769 # Compute $ac_file's index in $config_headers.
22770 _am_stamp_count=1
22771 for _am_header in $config_headers :; do
22772 case $_am_header in
22773 $ac_file | $ac_file:* )
22774 break ;;
22775 * )
22776 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22777 esac
22778 done
22779 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22780 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22781 X$ac_file : 'X\(//\)[^/]' \| \
22782 X$ac_file : 'X\(//\)$' \| \
22783 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22784 echo X$ac_file |
22785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22786 s//\1/
22787 q
22788 }
22789 /^X\(\/\/\)[^/].*/{
22790 s//\1/
22791 q
22792 }
22793 /^X\(\/\/\)$/{
22794 s//\1/
22795 q
22796 }
22797 /^X\(\/\).*/{
22798 s//\1/
22799 q
22800 }
22801 s/.*/./; q'`/stamp-h$_am_stamp_count
22802 ;;
22803
22804 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22805 echo "$as_me: executing $ac_file commands" >&6;}
22806 ;;
22807 esac
22808
22809
22810 case $ac_file$ac_mode in
22811 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22812 # Strip MF so we end up with the name of the file.
22813 mf=`echo "$mf" | sed -e 's/:.*$//'`
22814 # Check whether this is an Automake generated Makefile or not.
22815 # We used to match only the files named `Makefile.in', but
22816 # some people rename them; so instead we look at the file content.
22817 # Grep'ing the first line is not enough: some people post-process
22818 # each Makefile.in and add a new line on top of each file to say so.
22819 # So let's grep whole file.
22820 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22821 dirpart=`$as_dirname -- "$mf" ||
22822 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22823 X"$mf" : 'X\(//\)[^/]' \| \
22824 X"$mf" : 'X\(//\)$' \| \
22825 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22826 echo X"$mf" |
22827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22828 s//\1/
22829 q
22830 }
22831 /^X\(\/\/\)[^/].*/{
22832 s//\1/
22833 q
22834 }
22835 /^X\(\/\/\)$/{
22836 s//\1/
22837 q
22838 }
22839 /^X\(\/\).*/{
22840 s//\1/
22841 q
22842 }
22843 s/.*/./; q'`
22844 else
22845 continue
22846 fi
22847 # Extract the definition of DEPDIR, am__include, and am__quote
22848 # from the Makefile without running `make'.
22849 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22850 test -z "$DEPDIR" && continue
22851 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22852 test -z "am__include" && continue
22853 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22854 # When using ansi2knr, U may be empty or an underscore; expand it
22855 U=`sed -n 's/^U = //p' < "$mf"`
22856 # Find all dependency output files, they are included files with
22857 # $(DEPDIR) in their names. We invoke sed twice because it is the
22858 # simplest approach to changing $(DEPDIR) to its actual value in the
22859 # expansion.
22860 for file in `sed -n "
22861 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22862 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22863 # Make sure the directory exists.
22864 test -f "$dirpart/$file" && continue
22865 fdir=`$as_dirname -- "$file" ||
22866 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22867 X"$file" : 'X\(//\)[^/]' \| \
22868 X"$file" : 'X\(//\)$' \| \
22869 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22870 echo X"$file" |
22871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22872 s//\1/
22873 q
22874 }
22875 /^X\(\/\/\)[^/].*/{
22876 s//\1/
22877 q
22878 }
22879 /^X\(\/\/\)$/{
22880 s//\1/
22881 q
22882 }
22883 /^X\(\/\).*/{
22884 s//\1/
22885 q
22886 }
22887 s/.*/./; q'`
22888 { as_dir=$dirpart/$fdir
22889 case $as_dir in #(
22890 -*) as_dir=./$as_dir;;
22891 esac
22892 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22893 as_dirs=
22894 while :; do
22895 case $as_dir in #(
22896 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22897 *) as_qdir=$as_dir;;
22898 esac
22899 as_dirs="'$as_qdir' $as_dirs"
22900 as_dir=`$as_dirname -- "$as_dir" ||
22901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22902 X"$as_dir" : 'X\(//\)[^/]' \| \
22903 X"$as_dir" : 'X\(//\)$' \| \
22904 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22905 echo X"$as_dir" |
22906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22907 s//\1/
22908 q
22909 }
22910 /^X\(\/\/\)[^/].*/{
22911 s//\1/
22912 q
22913 }
22914 /^X\(\/\/\)$/{
22915 s//\1/
22916 q
22917 }
22918 /^X\(\/\).*/{
22919 s//\1/
22920 q
22921 }
22922 s/.*/./; q'`
22923 test -d "$as_dir" && break
22924 done
22925 test -z "$as_dirs" || eval "mkdir $as_dirs"
22926 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22927 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22928 { (exit 1); exit 1; }; }; }
22929 # echo "creating $dirpart/$file"
22930 echo '# dummy' > "$dirpart/$file"
22931 done
22932 done
22933 ;;
22934
22935 esac
22936 done # for ac_tag
22937
22938
22939 { (exit 0); exit 0; }
22940 _ACEOF
22941 chmod +x $CONFIG_STATUS
22942 ac_clean_files=$ac_clean_files_save
22943
22944
22945 # configure is writing to config.log, and then calls config.status.
22946 # config.status does its own redirection, appending to config.log.
22947 # Unfortunately, on DOS this fails, as config.log is still kept open
22948 # by configure, so config.status won't be able to write to it; its
22949 # output is simply discarded. So we exec the FD to /dev/null,
22950 # effectively closing config.log, so it can be properly (re)opened and
22951 # appended to by config.status. When coming back to configure, we
22952 # need to make the FD available again.
22953 if test "$no_create" != yes; then
22954 ac_cs_success=:
22955 ac_config_status_args=
22956 test "$silent" = yes &&
22957 ac_config_status_args="$ac_config_status_args --quiet"
22958 exec 5>/dev/null
22959 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22960 exec 5>>config.log
22961 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22962 # would make configure fail if this is the last instruction.
22963 $ac_cs_success || { (exit 1); exit 1; }
22964 fi
22965