Import Debian package 0.61.0-1+lenny1
[hcoop/debian/courier-authlib.git] / libhmac / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libhmac 1.00.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='libhmac'
730 PACKAGE_TARNAME='libhmac'
731 PACKAGE_VERSION='1.00'
732 PACKAGE_STRING='libhmac 1.00'
733 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735 ac_unique_file="hmac.h"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 LN_S
832 CC
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
839 DEPDIR
840 am__include
841 am__quote
842 AMDEP_TRUE
843 AMDEP_FALSE
844 AMDEPBACKSLASH
845 CCDEPMODE
846 am__fastdepCC_TRUE
847 am__fastdepCC_FALSE
848 build
849 build_cpu
850 build_vendor
851 build_os
852 host
853 host_cpu
854 host_vendor
855 host_os
856 SED
857 GREP
858 EGREP
859 ECHO
860 AR
861 RANLIB
862 CPP
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 hashlibs
875 TESTPROGS
876 LIBOBJS
877 LTLIBOBJS'
878 ac_subst_files=''
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
882 CC
883 CFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
887 CPP
888 CXX
889 CXXFLAGS
890 CCC
891 CXXCPP
892 F77
893 FFLAGS'
894
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
915
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
951 fi
952
953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
968
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
983
984 -datadir | --datadir | --datadi | --datad)
985 ac_prev=datadir ;;
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
987 datadir=$ac_optarg ;;
988
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
996 -disable-* | --disable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_$ac_feature=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
1220
1221 -without-* | --without-*)
1222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=no ;;
1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 ;;
1269
1270 esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1277 fi
1278
1279 # Be sure to have absolute directory names.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284 do
1285 eval ac_val=\$$ac_var
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
1333 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337 echo X"$0" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359 else
1360 ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365 { (exit 1); exit 1; }; }
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1370 { (exit 1); exit 1; }; }
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures libhmac 1.00 to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libhmac]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of libhmac 1.00:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470 Optional Features:
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480
1481 Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-pic try to use only PIC/non-PIC objects [default=use
1486 both]
1487 --with-tags[=TAGS] include additional configurations [automatic]
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CPP C preprocessor
1498 CXX C++ compiler command
1499 CXXFLAGS C++ compiler flags
1500 CXXCPP C++ preprocessor
1501 F77 Fortran 77 compiler command
1502 FFLAGS Fortran 77 compiler flags
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <courier-users@lists.sourceforge.net>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" || continue
1516 ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535 .) # We are building in place.
1536 ac_srcdir=.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 libhmac configure 1.00
1569 generated by GNU Autoconf 2.61
1570
1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576 exit
1577 fi
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1581
1582 It was created by libhmac $as_me 1.00, which was
1583 generated by GNU Autoconf 2.61. Invocation command line was
1584
1585 $ $0 $@
1586
1587 _ACEOF
1588 exec 5>>config.log
1589 {
1590 cat <<_ASUNAME
1591 ## --------- ##
1592 ## Platform. ##
1593 ## --------- ##
1594
1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600
1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1603
1604 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1605 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1608 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1609 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1610 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611
1612 _ASUNAME
1613
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1620 done
1621 IFS=$as_save_IFS
1622
1623 } >&5
1624
1625 cat >&5 <<_ACEOF
1626
1627
1628 ## ----------- ##
1629 ## Core tests. ##
1630 ## ----------- ##
1631
1632 _ACEOF
1633
1634
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_configure_args=
1641 ac_configure_args0=
1642 ac_configure_args1=
1643 ac_must_keep_next=false
1644 for ac_pass in 1 2
1645 do
1646 for ac_arg
1647 do
1648 case $ac_arg in
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1652 continue ;;
1653 *\'*)
1654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 esac
1656 case $ac_pass in
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658 2)
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1662 else
1663 case $ac_arg in
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 esac
1671 ;;
1672 -* ) ac_must_keep_next=true ;;
1673 esac
1674 fi
1675 ac_configure_args="$ac_configure_args '$ac_arg'"
1676 ;;
1677 esac
1678 done
1679 done
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log. We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1690 {
1691 echo
1692
1693 cat <<\_ASBOX
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1697 _ASBOX
1698 echo
1699 # The following way of writing the cache mishandles newlines in values,
1700 (
1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702 eval ac_val=\$$ac_var
1703 case $ac_val in #(
1704 *${as_nl}*)
1705 case $ac_var in #(
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 esac
1709 case $ac_var in #(
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1712 esac ;;
1713 esac
1714 done
1715 (set) 2>&1 |
1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1718 sed -n \
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 ;; #(
1722 *)
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724 ;;
1725 esac |
1726 sort
1727 )
1728 echo
1729
1730 cat <<\_ASBOX
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1734 _ASBOX
1735 echo
1736 for ac_var in $ac_subst_vars
1737 do
1738 eval ac_val=\$$ac_var
1739 case $ac_val in
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 esac
1742 echo "$ac_var='\''$ac_val'\''"
1743 done | sort
1744 echo
1745
1746 if test -n "$ac_subst_files"; then
1747 cat <<\_ASBOX
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1751 _ASBOX
1752 echo
1753 for ac_var in $ac_subst_files
1754 do
1755 eval ac_val=\$$ac_var
1756 case $ac_val in
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 esac
1759 echo "$ac_var='\''$ac_val'\''"
1760 done | sort
1761 echo
1762 fi
1763
1764 if test -s confdefs.h; then
1765 cat <<\_ASBOX
1766 ## ----------- ##
1767 ## confdefs.h. ##
1768 ## ----------- ##
1769 _ASBOX
1770 echo
1771 cat confdefs.h
1772 echo
1773 fi
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1777 } >&5
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 exit $exit_status
1781 ' 0
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 done
1785 ac_signal=0
1786
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1789
1790 # Predefined preprocessor variables.
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 _ACEOF
1815
1816
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1823 else
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
1826 fi
1827 shift
1828 for ac_site_file
1829 do
1830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1834 . "$ac_site_file"
1835 fi
1836 done
1837
1838 if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1844 case $cache_file in
1845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
1847 esac
1848 fi
1849 else
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1852 >$cache_file
1853 fi
1854
1855 # Check that the precious variables saved in the cache have kept the same
1856 # value.
1857 ac_cache_corrupted=false
1858 for ac_var in $ac_precious_vars; do
1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860 eval ac_new_set=\$ac_env_${ac_var}_set
1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862 eval ac_new_val=\$ac_env_${ac_var}_value
1863 case $ac_old_set,$ac_new_set in
1864 set,)
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1868 ,set)
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1872 ,);;
1873 *)
1874 if test "x$ac_old_val" != "x$ac_new_val"; then
1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1878 echo "$as_me: former value: $ac_old_val" >&2;}
1879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1880 echo "$as_me: current value: $ac_new_val" >&2;}
1881 ac_cache_corrupted=:
1882 fi;;
1883 esac
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1886 case $ac_new_val in
1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888 *) ac_arg=$ac_var=$ac_new_val ;;
1889 esac
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 esac
1894 fi
1895 done
1896 if $ac_cache_corrupted; then
1897 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901 { (exit 1); exit 1; }; }
1902 fi
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928 ac_ext=c
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933
1934
1935
1936 >confdefs.h # Kill PACKAGE_ macros
1937
1938
1939 am__api_version='1.10'
1940
1941 ac_aux_dir=
1942 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1943 if test -f "$ac_dir/install-sh"; then
1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 break
1947 elif test -f "$ac_dir/install.sh"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 break
1951 elif test -f "$ac_dir/shtool"; then
1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 break
1955 fi
1956 done
1957 if test -z "$ac_aux_dir"; then
1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1960 { (exit 1); exit 1; }; }
1961 fi
1962
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970
1971
1972 # Find a good install program. We prefer a C program (faster),
1973 # so one script is as good as another. But avoid the broken or
1974 # incompatible versions:
1975 # SysV /etc/install, /usr/sbin/install
1976 # SunOS /usr/etc/install
1977 # IRIX /sbin/install
1978 # AIX /bin/install
1979 # AmigaOS /C/install, which installs bootblocks on floppy discs
1980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1983 # OS/2's system install, which has a completely different semantic
1984 # ./install, which can be erroneously created by make from ./install.sh.
1985 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1987 if test -z "$INSTALL"; then
1988 if test "${ac_cv_path_install+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1997 case $as_dir/ in
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2001 /usr/ucb/* ) ;;
2002 *)
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2005 # by default.
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2012 :
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2016 :
2017 else
2018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2019 break 3
2020 fi
2021 fi
2022 done
2023 done
2024 ;;
2025 esac
2026 done
2027 IFS=$as_save_IFS
2028
2029
2030 fi
2031 if test "${ac_cv_path_install+set}" = set; then
2032 INSTALL=$ac_cv_path_install
2033 else
2034 # As a last resort, use the slow shell script. Don't cache a
2035 # value for INSTALL within a source directory, because that will
2036 # break other packages using the cache if that directory is
2037 # removed, or if the value is a relative name.
2038 INSTALL=$ac_install_sh
2039 fi
2040 fi
2041 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2042 echo "${ECHO_T}$INSTALL" >&6; }
2043
2044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2045 # It thinks the first close brace ends the variable substitution.
2046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2047
2048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2049
2050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2051
2052 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2053 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2054 # Just in case
2055 sleep 1
2056 echo timestamp > conftest.file
2057 # Do `set' in a subshell so we don't clobber the current shell's
2058 # arguments. Must try -L first in case configure is actually a
2059 # symlink; some systems play weird games with the mod time of symlinks
2060 # (eg FreeBSD returns the mod time of the symlink's containing
2061 # directory).
2062 if (
2063 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2064 if test "$*" = "X"; then
2065 # -L didn't work.
2066 set X `ls -t $srcdir/configure conftest.file`
2067 fi
2068 rm -f conftest.file
2069 if test "$*" != "X $srcdir/configure conftest.file" \
2070 && test "$*" != "X conftest.file $srcdir/configure"; then
2071
2072 # If neither matched, then we have a broken ls. This can happen
2073 # if, for instance, CONFIG_SHELL is bash and it inherits a
2074 # broken ls alias from the environment. This has actually
2075 # happened. Such a system could not be considered "sane".
2076 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2077 alias in your environment" >&5
2078 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&2;}
2080 { (exit 1); exit 1; }; }
2081 fi
2082
2083 test "$2" = conftest.file
2084 )
2085 then
2086 # Ok.
2087 :
2088 else
2089 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2090 Check your system clock" >&5
2091 echo "$as_me: error: newly created file is older than distributed files!
2092 Check your system clock" >&2;}
2093 { (exit 1); exit 1; }; }
2094 fi
2095 { echo "$as_me:$LINENO: result: yes" >&5
2096 echo "${ECHO_T}yes" >&6; }
2097 test "$program_prefix" != NONE &&
2098 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2099 # Use a double $ so make ignores it.
2100 test "$program_suffix" != NONE &&
2101 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2102 # Double any \ or $. echo might interpret backslashes.
2103 # By default was `s,x,x', remove it if useless.
2104 cat <<\_ACEOF >conftest.sed
2105 s/[\\$]/&&/g;s/;s,x,x,$//
2106 _ACEOF
2107 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2108 rm -f conftest.sed
2109
2110 # expand $ac_aux_dir to an absolute path
2111 am_aux_dir=`cd $ac_aux_dir && pwd`
2112
2113 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2114 # Use eval to expand $SHELL
2115 if eval "$MISSING --run true"; then
2116 am_missing_run="$MISSING --run "
2117 else
2118 am_missing_run=
2119 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2120 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2121 fi
2122
2123 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2124 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2125 if test -z "$MKDIR_P"; then
2126 if test "${ac_cv_path_mkdir+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2131 do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 for ac_prog in mkdir gmkdir; do
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2137 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2138 'mkdir (GNU coreutils) '* | \
2139 'mkdir (coreutils) '* | \
2140 'mkdir (fileutils) '4.1*)
2141 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2142 break 3;;
2143 esac
2144 done
2145 done
2146 done
2147 IFS=$as_save_IFS
2148
2149 fi
2150
2151 if test "${ac_cv_path_mkdir+set}" = set; then
2152 MKDIR_P="$ac_cv_path_mkdir -p"
2153 else
2154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for MKDIR_P within a source directory, because that will
2156 # break other packages using the cache if that directory is
2157 # removed, or if the value is a relative name.
2158 test -d ./--version && rmdir ./--version
2159 MKDIR_P="$ac_install_sh -d"
2160 fi
2161 fi
2162 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2163 echo "${ECHO_T}$MKDIR_P" >&6; }
2164
2165 mkdir_p="$MKDIR_P"
2166 case $mkdir_p in
2167 [\\/$]* | ?:[\\/]*) ;;
2168 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2169 esac
2170
2171 for ac_prog in gawk mawk nawk awk
2172 do
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_AWK+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 if test -n "$AWK"; then
2181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190 ac_cv_prog_AWK="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2193 fi
2194 done
2195 done
2196 IFS=$as_save_IFS
2197
2198 fi
2199 fi
2200 AWK=$ac_cv_prog_AWK
2201 if test -n "$AWK"; then
2202 { echo "$as_me:$LINENO: result: $AWK" >&5
2203 echo "${ECHO_T}$AWK" >&6; }
2204 else
2205 { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2207 fi
2208
2209
2210 test -n "$AWK" && break
2211 done
2212
2213 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2214 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2215 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2216 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 cat >conftest.make <<\_ACEOF
2220 SHELL = /bin/sh
2221 all:
2222 @echo '@@@%%%=$(MAKE)=@@@%%%'
2223 _ACEOF
2224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2225 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2226 *@@@%%%=?*=@@@%%%*)
2227 eval ac_cv_prog_make_${ac_make}_set=yes;;
2228 *)
2229 eval ac_cv_prog_make_${ac_make}_set=no;;
2230 esac
2231 rm -f conftest.make
2232 fi
2233 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6; }
2236 SET_MAKE=
2237 else
2238 { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2240 SET_MAKE="MAKE=${MAKE-make}"
2241 fi
2242
2243 rm -rf .tst 2>/dev/null
2244 mkdir .tst 2>/dev/null
2245 if test -d .tst; then
2246 am__leading_dot=.
2247 else
2248 am__leading_dot=_
2249 fi
2250 rmdir .tst 2>/dev/null
2251
2252 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2253 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2254 # is not polluted with repeated "-I."
2255 am__isrc=' -I$(srcdir)'
2256 # test to see if srcdir already configured
2257 if test -f $srcdir/config.status; then
2258 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2259 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2260 { (exit 1); exit 1; }; }
2261 fi
2262 fi
2263
2264 # test whether we have cygpath
2265 if test -z "$CYGPATH_W"; then
2266 if (cygpath --version) >/dev/null 2>/dev/null; then
2267 CYGPATH_W='cygpath -w'
2268 else
2269 CYGPATH_W=echo
2270 fi
2271 fi
2272
2273
2274 # Define the identity of the package.
2275 PACKAGE='libhmac'
2276 VERSION='1.00'
2277
2278
2279 # Some tools Automake needs.
2280
2281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2282
2283
2284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2285
2286
2287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2288
2289
2290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2291
2292
2293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2294
2295 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2296
2297 # Installed binaries are usually stripped using `strip' when the user
2298 # run `make install-strip'. However `strip' might not be the right
2299 # tool to use in cross-compilation environments, therefore Automake
2300 # will honor the `STRIP' environment variable to overrule this program.
2301 if test "$cross_compiling" != no; then
2302 if test -n "$ac_tool_prefix"; then
2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304 set dummy ${ac_tool_prefix}strip; ac_word=$2
2305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2307 if test "${ac_cv_prog_STRIP+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 if test -n "$STRIP"; then
2311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324 done
2325 done
2326 IFS=$as_save_IFS
2327
2328 fi
2329 fi
2330 STRIP=$ac_cv_prog_STRIP
2331 if test -n "$STRIP"; then
2332 { echo "$as_me:$LINENO: result: $STRIP" >&5
2333 echo "${ECHO_T}$STRIP" >&6; }
2334 else
2335 { echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6; }
2337 fi
2338
2339
2340 fi
2341 if test -z "$ac_cv_prog_STRIP"; then
2342 ac_ct_STRIP=$STRIP
2343 # Extract the first word of "strip", so it can be a program name with args.
2344 set dummy strip; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350 if test -n "$ac_ct_STRIP"; then
2351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_ac_ct_STRIP="strip"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 break 2
2363 fi
2364 done
2365 done
2366 IFS=$as_save_IFS
2367
2368 fi
2369 fi
2370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2371 if test -n "$ac_ct_STRIP"; then
2372 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2374 else
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2377 fi
2378
2379 if test "x$ac_ct_STRIP" = x; then
2380 STRIP=":"
2381 else
2382 case $cross_compiling:$ac_tool_warned in
2383 yes:)
2384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385 whose name does not start with the host triplet. If you think this
2386 configuration is useful to you, please write to autoconf@gnu.org." >&5
2387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet. If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390 ac_tool_warned=yes ;;
2391 esac
2392 STRIP=$ac_ct_STRIP
2393 fi
2394 else
2395 STRIP="$ac_cv_prog_STRIP"
2396 fi
2397
2398 fi
2399 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2400
2401 # We need awk for the "check" target. The system "awk" is bad on
2402 # some platforms.
2403 # Always define AMTAR for backward compatibility.
2404
2405 AMTAR=${AMTAR-"${am_missing_run}tar"}
2406
2407 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2408
2409
2410
2411
2412
2413
2414
2415 ac_config_headers="$ac_config_headers config.h"
2416
2417
2418 for ac_prog in gawk mawk nawk awk
2419 do
2420 # Extract the first word of "$ac_prog", so it can be a program name with args.
2421 set dummy $ac_prog; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_AWK+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 if test -n "$AWK"; then
2428 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_AWK="$ac_prog"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2440 fi
2441 done
2442 done
2443 IFS=$as_save_IFS
2444
2445 fi
2446 fi
2447 AWK=$ac_cv_prog_AWK
2448 if test -n "$AWK"; then
2449 { echo "$as_me:$LINENO: result: $AWK" >&5
2450 echo "${ECHO_T}$AWK" >&6; }
2451 else
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2454 fi
2455
2456
2457 test -n "$AWK" && break
2458 done
2459
2460 # Find a good install program. We prefer a C program (faster),
2461 # so one script is as good as another. But avoid the broken or
2462 # incompatible versions:
2463 # SysV /etc/install, /usr/sbin/install
2464 # SunOS /usr/etc/install
2465 # IRIX /sbin/install
2466 # AIX /bin/install
2467 # AmigaOS /C/install, which installs bootblocks on floppy discs
2468 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2469 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2470 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2471 # OS/2's system install, which has a completely different semantic
2472 # ./install, which can be erroneously created by make from ./install.sh.
2473 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2474 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2475 if test -z "$INSTALL"; then
2476 if test "${ac_cv_path_install+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 # Account for people who put trailing slashes in PATH elements.
2485 case $as_dir/ in
2486 ./ | .// | /cC/* | \
2487 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2488 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2489 /usr/ucb/* ) ;;
2490 *)
2491 # OSF1 and SCO ODT 3.0 have their own names for install.
2492 # Don't use installbsd from OSF since it installs stuff as root
2493 # by default.
2494 for ac_prog in ginstall scoinst install; do
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2497 if test $ac_prog = install &&
2498 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499 # AIX install. It has an incompatible calling convention.
2500 :
2501 elif test $ac_prog = install &&
2502 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2503 # program-specific install script used by HP pwplus--don't use.
2504 :
2505 else
2506 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2507 break 3
2508 fi
2509 fi
2510 done
2511 done
2512 ;;
2513 esac
2514 done
2515 IFS=$as_save_IFS
2516
2517
2518 fi
2519 if test "${ac_cv_path_install+set}" = set; then
2520 INSTALL=$ac_cv_path_install
2521 else
2522 # As a last resort, use the slow shell script. Don't cache a
2523 # value for INSTALL within a source directory, because that will
2524 # break other packages using the cache if that directory is
2525 # removed, or if the value is a relative name.
2526 INSTALL=$ac_install_sh
2527 fi
2528 fi
2529 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2530 echo "${ECHO_T}$INSTALL" >&6; }
2531
2532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2533 # It thinks the first close brace ends the variable substitution.
2534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2535
2536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2537
2538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2539
2540 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2541 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2542 LN_S=$as_ln_s
2543 if test "$LN_S" = "ln -s"; then
2544 { echo "$as_me:$LINENO: result: yes" >&5
2545 echo "${ECHO_T}yes" >&6; }
2546 else
2547 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2548 echo "${ECHO_T}no, using $LN_S" >&6; }
2549 fi
2550
2551 ac_ext=c
2552 ac_cpp='$CPP $CPPFLAGS'
2553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2558 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2577 fi
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583 fi
2584 CC=$ac_cv_prog_CC
2585 if test -n "$CC"; then
2586 { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2588 else
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2591 fi
2592
2593
2594 fi
2595 if test -z "$ac_cv_prog_CC"; then
2596 ac_ct_CC=$CC
2597 # Extract the first word of "gcc", so it can be a program name with args.
2598 set dummy gcc; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604 if test -n "$ac_ct_CC"; then
2605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_ac_ct_CC="gcc"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 fi
2623 fi
2624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625 if test -n "$ac_ct_CC"; then
2626 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2627 echo "${ECHO_T}$ac_ct_CC" >&6; }
2628 else
2629 { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2631 fi
2632
2633 if test "x$ac_ct_CC" = x; then
2634 CC=""
2635 else
2636 case $cross_compiling:$ac_tool_warned in
2637 yes:)
2638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2639 whose name does not start with the host triplet. If you think this
2640 configuration is useful to you, please write to autoconf@gnu.org." >&5
2641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet. If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2644 ac_tool_warned=yes ;;
2645 esac
2646 CC=$ac_ct_CC
2647 fi
2648 else
2649 CC="$ac_cv_prog_CC"
2650 fi
2651
2652 if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
2654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2655 set dummy ${ac_tool_prefix}cc; ac_word=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_CC="${ac_tool_prefix}cc"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 CC=$ac_cv_prog_CC
2682 if test -n "$CC"; then
2683 { echo "$as_me:$LINENO: result: $CC" >&5
2684 echo "${ECHO_T}$CC" >&6; }
2685 else
2686 { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2688 fi
2689
2690
2691 fi
2692 fi
2693 if test -z "$CC"; then
2694 # Extract the first word of "cc", so it can be a program name with args.
2695 set dummy cc; ac_word=$2
2696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703 else
2704 ac_prog_rejected=no
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2713 ac_prog_rejected=yes
2714 continue
2715 fi
2716 ac_cv_prog_CC="cc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 if test $ac_prog_rejected = yes; then
2725 # We found a bogon in the path, so make sure we never use it.
2726 set dummy $ac_cv_prog_CC
2727 shift
2728 if test $# != 0; then
2729 # We chose a different compiler from the bogus one.
2730 # However, it has the same basename, so the bogon will be chosen
2731 # first if we set CC to just the basename; use the full file name.
2732 shift
2733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2734 fi
2735 fi
2736 fi
2737 fi
2738 CC=$ac_cv_prog_CC
2739 if test -n "$CC"; then
2740 { echo "$as_me:$LINENO: result: $CC" >&5
2741 echo "${ECHO_T}$CC" >&6; }
2742 else
2743 { echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6; }
2745 fi
2746
2747
2748 fi
2749 if test -z "$CC"; then
2750 if test -n "$ac_tool_prefix"; then
2751 for ac_prog in cl.exe
2752 do
2753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2757 if test "${ac_cv_prog_CC+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774 done
2775 done
2776 IFS=$as_save_IFS
2777
2778 fi
2779 fi
2780 CC=$ac_cv_prog_CC
2781 if test -n "$CC"; then
2782 { echo "$as_me:$LINENO: result: $CC" >&5
2783 echo "${ECHO_T}$CC" >&6; }
2784 else
2785 { echo "$as_me:$LINENO: result: no" >&5
2786 echo "${ECHO_T}no" >&6; }
2787 fi
2788
2789
2790 test -n "$CC" && break
2791 done
2792 fi
2793 if test -z "$CC"; then
2794 ac_ct_CC=$CC
2795 for ac_prog in cl.exe
2796 do
2797 # Extract the first word of "$ac_prog", so it can be a program name with args.
2798 set dummy $ac_prog; ac_word=$2
2799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804 if test -n "$ac_ct_CC"; then
2805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806 else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_ac_ct_CC="$ac_prog"
2815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 break 2
2817 fi
2818 done
2819 done
2820 IFS=$as_save_IFS
2821
2822 fi
2823 fi
2824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825 if test -n "$ac_ct_CC"; then
2826 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2827 echo "${ECHO_T}$ac_ct_CC" >&6; }
2828 else
2829 { echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6; }
2831 fi
2832
2833
2834 test -n "$ac_ct_CC" && break
2835 done
2836
2837 if test "x$ac_ct_CC" = x; then
2838 CC=""
2839 else
2840 case $cross_compiling:$ac_tool_warned in
2841 yes:)
2842 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2843 whose name does not start with the host triplet. If you think this
2844 configuration is useful to you, please write to autoconf@gnu.org." >&5
2845 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2846 whose name does not start with the host triplet. If you think this
2847 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2848 ac_tool_warned=yes ;;
2849 esac
2850 CC=$ac_ct_CC
2851 fi
2852 fi
2853
2854 fi
2855
2856
2857 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: no acceptable C compiler found in \$PATH
2860 See \`config.log' for more details." >&2;}
2861 { (exit 1); exit 1; }; }
2862
2863 # Provide some information about the compiler.
2864 echo "$as_me:$LINENO: checking for C compiler version" >&5
2865 ac_compiler=`set X $ac_compile; echo $2`
2866 { (ac_try="$ac_compiler --version >&5"
2867 case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870 esac
2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_compiler --version >&5") 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876 { (ac_try="$ac_compiler -v >&5"
2877 case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler -v >&5") 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886 { (ac_try="$ac_compiler -V >&5"
2887 case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -V >&5") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896
2897 cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h. */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2903
2904 int
2905 main ()
2906 {
2907
2908 ;
2909 return 0;
2910 }
2911 _ACEOF
2912 ac_clean_files_save=$ac_clean_files
2913 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2914 # Try to create an executable without -o first, disregard a.out.
2915 # It will help us diagnose broken compilers, and finding out an intuition
2916 # of exeext.
2917 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2918 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2919 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2920 #
2921 # List of possible output files, starting from the most likely.
2922 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2923 # only as a last resort. b.out is created by i960 compilers.
2924 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2925 #
2926 # The IRIX 6 linker writes into existing files which may not be
2927 # executable, retaining their permissions. Remove them first so a
2928 # subsequent execution test works.
2929 ac_rmfiles=
2930 for ac_file in $ac_files
2931 do
2932 case $ac_file in
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2934 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2935 esac
2936 done
2937 rm -f $ac_rmfiles
2938
2939 if { (ac_try="$ac_link_default"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_link_default") 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; then
2949 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2950 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2951 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2952 # so that the user can short-circuit this test for compilers unknown to
2953 # Autoconf.
2954 for ac_file in $ac_files ''
2955 do
2956 test -f "$ac_file" || continue
2957 case $ac_file in
2958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2959 ;;
2960 [ab].out )
2961 # We found the default executable, but exeext='' is most
2962 # certainly right.
2963 break;;
2964 *.* )
2965 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2966 then :; else
2967 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2968 fi
2969 # We set ac_cv_exeext here because the later test for it is not
2970 # safe: cross compilers may not add the suffix if given an `-o'
2971 # argument, so we may need to know it at that point already.
2972 # Even if this section looks crufty: it has the advantage of
2973 # actually working.
2974 break;;
2975 * )
2976 break;;
2977 esac
2978 done
2979 test "$ac_cv_exeext" = no && ac_cv_exeext=
2980
2981 else
2982 ac_file=''
2983 fi
2984
2985 { echo "$as_me:$LINENO: result: $ac_file" >&5
2986 echo "${ECHO_T}$ac_file" >&6; }
2987 if test -z "$ac_file"; then
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2992 See \`config.log' for more details." >&5
2993 echo "$as_me: error: C compiler cannot create executables
2994 See \`config.log' for more details." >&2;}
2995 { (exit 77); exit 77; }; }
2996 fi
2997
2998 ac_exeext=$ac_cv_exeext
2999
3000 # Check that the compiler produces executables we can run. If not, either
3001 # the compiler is broken, or we cross compile.
3002 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3003 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3004 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3005 # If not cross compiling, check that we can run a simple program.
3006 if test "$cross_compiling" != yes; then
3007 if { ac_try='./$ac_file'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_try") 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 cross_compiling=no
3018 else
3019 if test "$cross_compiling" = maybe; then
3020 cross_compiling=yes
3021 else
3022 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3023 If you meant to cross compile, use \`--host'.
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: cannot run C compiled programs.
3026 If you meant to cross compile, use \`--host'.
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }
3029 fi
3030 fi
3031 fi
3032 { echo "$as_me:$LINENO: result: yes" >&5
3033 echo "${ECHO_T}yes" >&6; }
3034
3035 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3036 ac_clean_files=$ac_clean_files_save
3037 # Check that the compiler produces executables we can run. If not, either
3038 # the compiler is broken, or we cross compile.
3039 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3040 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3041 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3042 echo "${ECHO_T}$cross_compiling" >&6; }
3043
3044 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3045 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3046 if { (ac_try="$ac_link"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_link") 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; then
3056 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3057 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3058 # work properly (i.e., refer to `conftest.exe'), while it won't with
3059 # `rm'.
3060 for ac_file in conftest.exe conftest conftest.*; do
3061 test -f "$ac_file" || continue
3062 case $ac_file in
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3064 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065 break;;
3066 * ) break;;
3067 esac
3068 done
3069 else
3070 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3071 See \`config.log' for more details." >&5
3072 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3073 See \`config.log' for more details." >&2;}
3074 { (exit 1); exit 1; }; }
3075 fi
3076
3077 rm -f conftest$ac_cv_exeext
3078 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3079 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3080
3081 rm -f conftest.$ac_ext
3082 EXEEXT=$ac_cv_exeext
3083 ac_exeext=$EXEEXT
3084 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3085 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3086 if test "${ac_cv_objext+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095
3096 int
3097 main ()
3098 {
3099
3100 ;
3101 return 0;
3102 }
3103 _ACEOF
3104 rm -f conftest.o conftest.obj
3105 if { (ac_try="$ac_compile"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; then
3115 for ac_file in conftest.o conftest.obj conftest.*; do
3116 test -f "$ac_file" || continue;
3117 case $ac_file in
3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3119 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3120 break;;
3121 esac
3122 done
3123 else
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3126
3127 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3128 See \`config.log' for more details." >&5
3129 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3130 See \`config.log' for more details." >&2;}
3131 { (exit 1); exit 1; }; }
3132 fi
3133
3134 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135 fi
3136 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3137 echo "${ECHO_T}$ac_cv_objext" >&6; }
3138 OBJEXT=$ac_cv_objext
3139 ac_objext=$OBJEXT
3140 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3141 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3142 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h. */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3151
3152 int
3153 main ()
3154 {
3155 #ifndef __GNUC__
3156 choke me
3157 #endif
3158
3159 ;
3160 return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
3180 ac_compiler_gnu=yes
3181 else
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 ac_compiler_gnu=no
3186 fi
3187
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190
3191 fi
3192 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3194 GCC=`test $ac_compiler_gnu = yes && echo yes`
3195 ac_test_CFLAGS=${CFLAGS+set}
3196 ac_save_CFLAGS=$CFLAGS
3197 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3198 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3199 if test "${ac_cv_prog_cc_g+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 ac_save_c_werror_flag=$ac_c_werror_flag
3203 ac_c_werror_flag=yes
3204 ac_cv_prog_cc_g=no
3205 CFLAGS="-g"
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212
3213 int
3214 main ()
3215 {
3216
3217 ;
3218 return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } && {
3235 test -z "$ac_c_werror_flag" ||
3236 test ! -s conftest.err
3237 } && test -s conftest.$ac_objext; then
3238 ac_cv_prog_cc_g=yes
3239 else
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 CFLAGS=""
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3250
3251 int
3252 main ()
3253 {
3254
3255 ;
3256 return 0;
3257 }
3258 _ACEOF
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && {
3273 test -z "$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3275 } && test -s conftest.$ac_objext; then
3276 :
3277 else
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3282 CFLAGS="-g"
3283 cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h. */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289
3290 int
3291 main ()
3292 {
3293
3294 ;
3295 return 0;
3296 }
3297 _ACEOF
3298 rm -f conftest.$ac_objext
3299 if { (ac_try="$ac_compile"
3300 case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_compile") 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } && {
3312 test -z "$ac_c_werror_flag" ||
3313 test ! -s conftest.err
3314 } && test -s conftest.$ac_objext; then
3315 ac_cv_prog_cc_g=yes
3316 else
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320
3321 fi
3322
3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 fi
3325
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 fi
3328
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_c_werror_flag=$ac_save_c_werror_flag
3331 fi
3332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3334 if test "$ac_test_CFLAGS" = set; then
3335 CFLAGS=$ac_save_CFLAGS
3336 elif test $ac_cv_prog_cc_g = yes; then
3337 if test "$GCC" = yes; then
3338 CFLAGS="-g -O2"
3339 else
3340 CFLAGS="-g"
3341 fi
3342 else
3343 if test "$GCC" = yes; then
3344 CFLAGS="-O2"
3345 else
3346 CFLAGS=
3347 fi
3348 fi
3349 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3350 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3351 if test "${ac_cv_prog_cc_c89+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 ac_cv_prog_cc_c89=no
3355 ac_save_CC=$CC
3356 cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h. */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3362 #include <stdarg.h>
3363 #include <stdio.h>
3364 #include <sys/types.h>
3365 #include <sys/stat.h>
3366 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3367 struct buf { int x; };
3368 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3369 static char *e (p, i)
3370 char **p;
3371 int i;
3372 {
3373 return p[i];
3374 }
3375 static char *f (char * (*g) (char **, int), char **p, ...)
3376 {
3377 char *s;
3378 va_list v;
3379 va_start (v,p);
3380 s = g (p, va_arg (v,int));
3381 va_end (v);
3382 return s;
3383 }
3384
3385 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3386 function prototypes and stuff, but not '\xHH' hex character constants.
3387 These don't provoke an error unfortunately, instead are silently treated
3388 as 'x'. The following induces an error, until -std is added to get
3389 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3390 array size at least. It's necessary to write '\x00'==0 to get something
3391 that's true only with -std. */
3392 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3393
3394 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3395 inside strings and character constants. */
3396 #define FOO(x) 'x'
3397 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3398
3399 int test (int i, double x);
3400 struct s1 {int (*f) (int a);};
3401 struct s2 {int (*f) (double a);};
3402 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3403 int argc;
3404 char **argv;
3405 int
3406 main ()
3407 {
3408 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3414 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3415 do
3416 CC="$ac_save_CC $ac_arg"
3417 rm -f conftest.$ac_objext
3418 if { (ac_try="$ac_compile"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_compile") 2>conftest.er1
3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } && {
3431 test -z "$ac_c_werror_flag" ||
3432 test ! -s conftest.err
3433 } && test -s conftest.$ac_objext; then
3434 ac_cv_prog_cc_c89=$ac_arg
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439
3440 fi
3441
3442 rm -f core conftest.err conftest.$ac_objext
3443 test "x$ac_cv_prog_cc_c89" != "xno" && break
3444 done
3445 rm -f conftest.$ac_ext
3446 CC=$ac_save_CC
3447
3448 fi
3449 # AC_CACHE_VAL
3450 case "x$ac_cv_prog_cc_c89" in
3451 x)
3452 { echo "$as_me:$LINENO: result: none needed" >&5
3453 echo "${ECHO_T}none needed" >&6; } ;;
3454 xno)
3455 { echo "$as_me:$LINENO: result: unsupported" >&5
3456 echo "${ECHO_T}unsupported" >&6; } ;;
3457 *)
3458 CC="$CC $ac_cv_prog_cc_c89"
3459 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3460 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3461 esac
3462
3463
3464 ac_ext=c
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469 DEPDIR="${am__leading_dot}deps"
3470
3471 ac_config_commands="$ac_config_commands depfiles"
3472
3473
3474 am_make=${MAKE-make}
3475 cat > confinc << 'END'
3476 am__doit:
3477 @echo done
3478 .PHONY: am__doit
3479 END
3480 # If we don't find an include directive, just comment out the code.
3481 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3482 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3483 am__include="#"
3484 am__quote=
3485 _am_result=none
3486 # First try GNU make style include.
3487 echo "include confinc" > confmf
3488 # We grep out `Entering directory' and `Leaving directory'
3489 # messages which can occur if `w' ends up in MAKEFLAGS.
3490 # In particular we don't look at `^make:' because GNU make might
3491 # be invoked under some other name (usually "gmake"), in which
3492 # case it prints its new name instead of `make'.
3493 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3494 am__include=include
3495 am__quote=
3496 _am_result=GNU
3497 fi
3498 # Now try BSD make style include.
3499 if test "$am__include" = "#"; then
3500 echo '.include "confinc"' > confmf
3501 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3502 am__include=.include
3503 am__quote="\""
3504 _am_result=BSD
3505 fi
3506 fi
3507
3508
3509 { echo "$as_me:$LINENO: result: $_am_result" >&5
3510 echo "${ECHO_T}$_am_result" >&6; }
3511 rm -f confinc confmf
3512
3513 # Check whether --enable-dependency-tracking was given.
3514 if test "${enable_dependency_tracking+set}" = set; then
3515 enableval=$enable_dependency_tracking;
3516 fi
3517
3518 if test "x$enable_dependency_tracking" != xno; then
3519 am_depcomp="$ac_aux_dir/depcomp"
3520 AMDEPBACKSLASH='\'
3521 fi
3522 if test "x$enable_dependency_tracking" != xno; then
3523 AMDEP_TRUE=
3524 AMDEP_FALSE='#'
3525 else
3526 AMDEP_TRUE='#'
3527 AMDEP_FALSE=
3528 fi
3529
3530
3531
3532 depcc="$CC" am_compiler_list=
3533
3534 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3535 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3536 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3540 # We make a subdir and do the tests there. Otherwise we can end up
3541 # making bogus files that we don't know about and never remove. For
3542 # instance it was reported that on HP-UX the gcc test will end up
3543 # making a dummy file named `D' -- because `-MD' means `put the output
3544 # in D'.
3545 mkdir conftest.dir
3546 # Copy depcomp to subdir because otherwise we won't find it if we're
3547 # using a relative directory.
3548 cp "$am_depcomp" conftest.dir
3549 cd conftest.dir
3550 # We will build objects and dependencies in a subdirectory because
3551 # it helps to detect inapplicable dependency modes. For instance
3552 # both Tru64's cc and ICC support -MD to output dependencies as a
3553 # side effect of compilation, but ICC will put the dependencies in
3554 # the current directory while Tru64 will put them in the object
3555 # directory.
3556 mkdir sub
3557
3558 am_cv_CC_dependencies_compiler_type=none
3559 if test "$am_compiler_list" = ""; then
3560 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3561 fi
3562 for depmode in $am_compiler_list; do
3563 # Setup a source with many dependencies, because some compilers
3564 # like to wrap large dependency lists on column 80 (with \), and
3565 # we should not choose a depcomp mode which is confused by this.
3566 #
3567 # We need to recreate these files for each test, as the compiler may
3568 # overwrite some of them when testing with obscure command lines.
3569 # This happens at least with the AIX C compiler.
3570 : > sub/conftest.c
3571 for i in 1 2 3 4 5 6; do
3572 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3573 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3574 # Solaris 8's {/usr,}/bin/sh.
3575 touch sub/conftst$i.h
3576 done
3577 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3578
3579 case $depmode in
3580 nosideeffect)
3581 # after this tag, mechanisms are not by side-effect, so they'll
3582 # only be used when explicitly requested
3583 if test "x$enable_dependency_tracking" = xyes; then
3584 continue
3585 else
3586 break
3587 fi
3588 ;;
3589 none) break ;;
3590 esac
3591 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3592 # mode. It turns out that the SunPro C++ compiler does not properly
3593 # handle `-M -o', and we need to detect this.
3594 if depmode=$depmode \
3595 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3596 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3597 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3598 >/dev/null 2>conftest.err &&
3599 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3601 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3603 # icc doesn't choke on unknown options, it will just issue warnings
3604 # or remarks (even with -Werror). So we grep stderr for any message
3605 # that says an option was ignored or not supported.
3606 # When given -MP, icc 7.0 and 7.1 complain thusly:
3607 # icc: Command line warning: ignoring option '-M'; no argument required
3608 # The diagnosis changed in icc 8.0:
3609 # icc: Command line remark: option '-MP' not supported
3610 if (grep 'ignoring option' conftest.err ||
3611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3612 am_cv_CC_dependencies_compiler_type=$depmode
3613 break
3614 fi
3615 fi
3616 done
3617
3618 cd ..
3619 rm -rf conftest.dir
3620 else
3621 am_cv_CC_dependencies_compiler_type=none
3622 fi
3623
3624 fi
3625 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3626 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3627 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3628
3629 if
3630 test "x$enable_dependency_tracking" != xno \
3631 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3632 am__fastdepCC_TRUE=
3633 am__fastdepCC_FALSE='#'
3634 else
3635 am__fastdepCC_TRUE='#'
3636 am__fastdepCC_FALSE=
3637 fi
3638
3639
3640 # Check whether --enable-shared was given.
3641 if test "${enable_shared+set}" = set; then
3642 enableval=$enable_shared; p=${PACKAGE-default}
3643 case $enableval in
3644 yes) enable_shared=yes ;;
3645 no) enable_shared=no ;;
3646 *)
3647 enable_shared=no
3648 # Look at the argument we got. We use all the common list separators.
3649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3650 for pkg in $enableval; do
3651 IFS="$lt_save_ifs"
3652 if test "X$pkg" = "X$p"; then
3653 enable_shared=yes
3654 fi
3655 done
3656 IFS="$lt_save_ifs"
3657 ;;
3658 esac
3659 else
3660 enable_shared=yes
3661 fi
3662
3663
3664 # Check whether --enable-static was given.
3665 if test "${enable_static+set}" = set; then
3666 enableval=$enable_static; p=${PACKAGE-default}
3667 case $enableval in
3668 yes) enable_static=yes ;;
3669 no) enable_static=no ;;
3670 *)
3671 enable_static=no
3672 # Look at the argument we got. We use all the common list separators.
3673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3674 for pkg in $enableval; do
3675 IFS="$lt_save_ifs"
3676 if test "X$pkg" = "X$p"; then
3677 enable_static=yes
3678 fi
3679 done
3680 IFS="$lt_save_ifs"
3681 ;;
3682 esac
3683 else
3684 enable_static=yes
3685 fi
3686
3687
3688 # Check whether --enable-fast-install was given.
3689 if test "${enable_fast_install+set}" = set; then
3690 enableval=$enable_fast_install; p=${PACKAGE-default}
3691 case $enableval in
3692 yes) enable_fast_install=yes ;;
3693 no) enable_fast_install=no ;;
3694 *)
3695 enable_fast_install=no
3696 # Look at the argument we got. We use all the common list separators.
3697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3698 for pkg in $enableval; do
3699 IFS="$lt_save_ifs"
3700 if test "X$pkg" = "X$p"; then
3701 enable_fast_install=yes
3702 fi
3703 done
3704 IFS="$lt_save_ifs"
3705 ;;
3706 esac
3707 else
3708 enable_fast_install=yes
3709 fi
3710
3711
3712 # Make sure we can run config.sub.
3713 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3714 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3715 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3716 { (exit 1); exit 1; }; }
3717
3718 { echo "$as_me:$LINENO: checking build system type" >&5
3719 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3720 if test "${ac_cv_build+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 ac_build_alias=$build_alias
3724 test "x$ac_build_alias" = x &&
3725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3726 test "x$ac_build_alias" = x &&
3727 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3728 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3729 { (exit 1); exit 1; }; }
3730 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3731 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3732 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3733 { (exit 1); exit 1; }; }
3734
3735 fi
3736 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3737 echo "${ECHO_T}$ac_cv_build" >&6; }
3738 case $ac_cv_build in
3739 *-*-*) ;;
3740 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3741 echo "$as_me: error: invalid value of canonical build" >&2;}
3742 { (exit 1); exit 1; }; };;
3743 esac
3744 build=$ac_cv_build
3745 ac_save_IFS=$IFS; IFS='-'
3746 set x $ac_cv_build
3747 shift
3748 build_cpu=$1
3749 build_vendor=$2
3750 shift; shift
3751 # Remember, the first character of IFS is used to create $*,
3752 # except with old shells:
3753 build_os=$*
3754 IFS=$ac_save_IFS
3755 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3756
3757
3758 { echo "$as_me:$LINENO: checking host system type" >&5
3759 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3760 if test "${ac_cv_host+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763 if test "x$host_alias" = x; then
3764 ac_cv_host=$ac_cv_build
3765 else
3766 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3767 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3768 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3769 { (exit 1); exit 1; }; }
3770 fi
3771
3772 fi
3773 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3774 echo "${ECHO_T}$ac_cv_host" >&6; }
3775 case $ac_cv_host in
3776 *-*-*) ;;
3777 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3778 echo "$as_me: error: invalid value of canonical host" >&2;}
3779 { (exit 1); exit 1; }; };;
3780 esac
3781 host=$ac_cv_host
3782 ac_save_IFS=$IFS; IFS='-'
3783 set x $ac_cv_host
3784 shift
3785 host_cpu=$1
3786 host_vendor=$2
3787 shift; shift
3788 # Remember, the first character of IFS is used to create $*,
3789 # except with old shells:
3790 host_os=$*
3791 IFS=$ac_save_IFS
3792 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3793
3794
3795 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3796 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3797 if test "${lt_cv_path_SED+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 # Loop through the user's path and test for sed and gsed.
3801 # Then use that list of sed's as ones to test for truncation.
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for lt_ac_prog in sed gsed; do
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3810 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3811 fi
3812 done
3813 done
3814 done
3815 IFS=$as_save_IFS
3816 lt_ac_max=0
3817 lt_ac_count=0
3818 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3819 # along with /bin/sed that truncates output.
3820 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3821 test ! -f $lt_ac_sed && continue
3822 cat /dev/null > conftest.in
3823 lt_ac_count=0
3824 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3825 # Check for GNU sed and select it if it is found.
3826 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3827 lt_cv_path_SED=$lt_ac_sed
3828 break
3829 fi
3830 while true; do
3831 cat conftest.in conftest.in >conftest.tmp
3832 mv conftest.tmp conftest.in
3833 cp conftest.in conftest.nl
3834 echo >>conftest.nl
3835 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3836 cmp -s conftest.out conftest.nl || break
3837 # 10000 chars as input seems more than enough
3838 test $lt_ac_count -gt 10 && break
3839 lt_ac_count=`expr $lt_ac_count + 1`
3840 if test $lt_ac_count -gt $lt_ac_max; then
3841 lt_ac_max=$lt_ac_count
3842 lt_cv_path_SED=$lt_ac_sed
3843 fi
3844 done
3845 done
3846
3847 fi
3848
3849 SED=$lt_cv_path_SED
3850
3851 { echo "$as_me:$LINENO: result: $SED" >&5
3852 echo "${ECHO_T}$SED" >&6; }
3853
3854 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3855 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_GREP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 # Extract the first word of "grep ggrep" to use in msg output
3860 if test -z "$GREP"; then
3861 set dummy grep ggrep; ac_prog_name=$2
3862 if test "${ac_cv_path_GREP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 ac_path_GREP_found=false
3866 # Loop through the user's path and test for each of PROGNAME-LIST
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3869 do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in grep ggrep; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3875 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3876 # Check for GNU ac_path_GREP and select it if it is found.
3877 # Check for GNU $ac_path_GREP
3878 case `"$ac_path_GREP" --version 2>&1` in
3879 *GNU*)
3880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3881 *)
3882 ac_count=0
3883 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3884 while :
3885 do
3886 cat "conftest.in" "conftest.in" >"conftest.tmp"
3887 mv "conftest.tmp" "conftest.in"
3888 cp "conftest.in" "conftest.nl"
3889 echo 'GREP' >> "conftest.nl"
3890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 ac_count=`expr $ac_count + 1`
3893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3894 # Best one so far, save it but keep looking for a better one
3895 ac_cv_path_GREP="$ac_path_GREP"
3896 ac_path_GREP_max=$ac_count
3897 fi
3898 # 10*(2^10) chars as input seems more than enough
3899 test $ac_count -gt 10 && break
3900 done
3901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3902 esac
3903
3904
3905 $ac_path_GREP_found && break 3
3906 done
3907 done
3908
3909 done
3910 IFS=$as_save_IFS
3911
3912
3913 fi
3914
3915 GREP="$ac_cv_path_GREP"
3916 if test -z "$GREP"; then
3917 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3918 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3919 { (exit 1); exit 1; }; }
3920 fi
3921
3922 else
3923 ac_cv_path_GREP=$GREP
3924 fi
3925
3926
3927 fi
3928 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3929 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3930 GREP="$ac_cv_path_GREP"
3931
3932
3933 { echo "$as_me:$LINENO: checking for egrep" >&5
3934 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3935 if test "${ac_cv_path_EGREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3939 then ac_cv_path_EGREP="$GREP -E"
3940 else
3941 # Extract the first word of "egrep" to use in msg output
3942 if test -z "$EGREP"; then
3943 set dummy egrep; ac_prog_name=$2
3944 if test "${ac_cv_path_EGREP+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 ac_path_EGREP_found=false
3948 # Loop through the user's path and test for each of PROGNAME-LIST
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3951 do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_prog in egrep; do
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3957 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3958 # Check for GNU ac_path_EGREP and select it if it is found.
3959 # Check for GNU $ac_path_EGREP
3960 case `"$ac_path_EGREP" --version 2>&1` in
3961 *GNU*)
3962 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3963 *)
3964 ac_count=0
3965 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3966 while :
3967 do
3968 cat "conftest.in" "conftest.in" >"conftest.tmp"
3969 mv "conftest.tmp" "conftest.in"
3970 cp "conftest.in" "conftest.nl"
3971 echo 'EGREP' >> "conftest.nl"
3972 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3974 ac_count=`expr $ac_count + 1`
3975 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3976 # Best one so far, save it but keep looking for a better one
3977 ac_cv_path_EGREP="$ac_path_EGREP"
3978 ac_path_EGREP_max=$ac_count
3979 fi
3980 # 10*(2^10) chars as input seems more than enough
3981 test $ac_count -gt 10 && break
3982 done
3983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3984 esac
3985
3986
3987 $ac_path_EGREP_found && break 3
3988 done
3989 done
3990
3991 done
3992 IFS=$as_save_IFS
3993
3994
3995 fi
3996
3997 EGREP="$ac_cv_path_EGREP"
3998 if test -z "$EGREP"; then
3999 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4000 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4001 { (exit 1); exit 1; }; }
4002 fi
4003
4004 else
4005 ac_cv_path_EGREP=$EGREP
4006 fi
4007
4008
4009 fi
4010 fi
4011 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4012 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4013 EGREP="$ac_cv_path_EGREP"
4014
4015
4016
4017 # Check whether --with-gnu-ld was given.
4018 if test "${with_gnu_ld+set}" = set; then
4019 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4020 else
4021 with_gnu_ld=no
4022 fi
4023
4024 ac_prog=ld
4025 if test "$GCC" = yes; then
4026 # Check if gcc -print-prog-name=ld gives a path.
4027 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4028 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4029 case $host in
4030 *-*-mingw*)
4031 # gcc leaves a trailing carriage return which upsets mingw
4032 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4033 *)
4034 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4035 esac
4036 case $ac_prog in
4037 # Accept absolute paths.
4038 [\\/]* | ?:[\\/]*)
4039 re_direlt='/[^/][^/]*/\.\./'
4040 # Canonicalize the pathname of ld
4041 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4042 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4043 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4044 done
4045 test -z "$LD" && LD="$ac_prog"
4046 ;;
4047 "")
4048 # If it fails, then pretend we aren't using GCC.
4049 ac_prog=ld
4050 ;;
4051 *)
4052 # If it is relative, then search for the first ld in PATH.
4053 with_gnu_ld=unknown
4054 ;;
4055 esac
4056 elif test "$with_gnu_ld" = yes; then
4057 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4058 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4059 else
4060 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4061 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4062 fi
4063 if test "${lt_cv_path_LD+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 if test -z "$LD"; then
4067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4068 for ac_dir in $PATH; do
4069 IFS="$lt_save_ifs"
4070 test -z "$ac_dir" && ac_dir=.
4071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4072 lt_cv_path_LD="$ac_dir/$ac_prog"
4073 # Check to see if the program is GNU ld. I'd rather use --version,
4074 # but apparently some variants of GNU ld only accept -v.
4075 # Break only if it was the GNU/non-GNU ld that we prefer.
4076 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4077 *GNU* | *'with BFD'*)
4078 test "$with_gnu_ld" != no && break
4079 ;;
4080 *)
4081 test "$with_gnu_ld" != yes && break
4082 ;;
4083 esac
4084 fi
4085 done
4086 IFS="$lt_save_ifs"
4087 else
4088 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4089 fi
4090 fi
4091
4092 LD="$lt_cv_path_LD"
4093 if test -n "$LD"; then
4094 { echo "$as_me:$LINENO: result: $LD" >&5
4095 echo "${ECHO_T}$LD" >&6; }
4096 else
4097 { echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6; }
4099 fi
4100 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4101 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4102 { (exit 1); exit 1; }; }
4103 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4104 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4105 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4109 case `$LD -v 2>&1 </dev/null` in
4110 *GNU* | *'with BFD'*)
4111 lt_cv_prog_gnu_ld=yes
4112 ;;
4113 *)
4114 lt_cv_prog_gnu_ld=no
4115 ;;
4116 esac
4117 fi
4118 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4119 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4120 with_gnu_ld=$lt_cv_prog_gnu_ld
4121
4122
4123 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4124 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4125 if test "${lt_cv_ld_reload_flag+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128 lt_cv_ld_reload_flag='-r'
4129 fi
4130 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4131 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4132 reload_flag=$lt_cv_ld_reload_flag
4133 case $reload_flag in
4134 "" | " "*) ;;
4135 *) reload_flag=" $reload_flag" ;;
4136 esac
4137 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4138 case $host_os in
4139 darwin*)
4140 if test "$GCC" = yes; then
4141 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4142 else
4143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4144 fi
4145 ;;
4146 esac
4147
4148 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4149 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4150 if test "${lt_cv_path_NM+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 if test -n "$NM"; then
4154 # Let the user override the test.
4155 lt_cv_path_NM="$NM"
4156 else
4157 lt_nm_to_check="${ac_tool_prefix}nm"
4158 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4159 lt_nm_to_check="$lt_nm_to_check nm"
4160 fi
4161 for lt_tmp_nm in $lt_nm_to_check; do
4162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4163 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4164 IFS="$lt_save_ifs"
4165 test -z "$ac_dir" && ac_dir=.
4166 tmp_nm="$ac_dir/$lt_tmp_nm"
4167 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4168 # Check to see if the nm accepts a BSD-compat flag.
4169 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4170 # nm: unknown option "B" ignored
4171 # Tru64's nm complains that /dev/null is an invalid object file
4172 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4173 */dev/null* | *'Invalid file or object type'*)
4174 lt_cv_path_NM="$tmp_nm -B"
4175 break
4176 ;;
4177 *)
4178 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4179 */dev/null*)
4180 lt_cv_path_NM="$tmp_nm -p"
4181 break
4182 ;;
4183 *)
4184 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4185 continue # so that we can try to find one that supports BSD flags
4186 ;;
4187 esac
4188 ;;
4189 esac
4190 fi
4191 done
4192 IFS="$lt_save_ifs"
4193 done
4194 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4195 fi
4196 fi
4197 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4198 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4199 NM="$lt_cv_path_NM"
4200
4201 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4202 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4203 if test "${lt_cv_deplibs_check_method+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 lt_cv_file_magic_cmd='$MAGIC_CMD'
4207 lt_cv_file_magic_test_file=
4208 lt_cv_deplibs_check_method='unknown'
4209 # Need to set the preceding variable on all platforms that support
4210 # interlibrary dependencies.
4211 # 'none' -- dependencies not supported.
4212 # `unknown' -- same as none, but documents that we really don't know.
4213 # 'pass_all' -- all dependencies passed with no checks.
4214 # 'test_compile' -- check by making test program.
4215 # 'file_magic [[regex]]' -- check by looking for files in library path
4216 # which responds to the $file_magic_cmd with a given extended regex.
4217 # If you have `file' or equivalent on your system and you're not sure
4218 # whether `pass_all' will *always* work, you probably want this one.
4219
4220 case $host_os in
4221 aix4* | aix5*)
4222 lt_cv_deplibs_check_method=pass_all
4223 ;;
4224
4225 beos*)
4226 lt_cv_deplibs_check_method=pass_all
4227 ;;
4228
4229 bsdi[45]*)
4230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4231 lt_cv_file_magic_cmd='/usr/bin/file -L'
4232 lt_cv_file_magic_test_file=/shlib/libc.so
4233 ;;
4234
4235 cygwin*)
4236 # func_win32_libid is a shell function defined in ltmain.sh
4237 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4238 lt_cv_file_magic_cmd='func_win32_libid'
4239 ;;
4240
4241 mingw* | pw32*)
4242 # Base MSYS/MinGW do not provide the 'file' command needed by
4243 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4244 # unless we find 'file', for example because we are cross-compiling.
4245 if ( file / ) >/dev/null 2>&1; then
4246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4247 lt_cv_file_magic_cmd='func_win32_libid'
4248 else
4249 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4250 lt_cv_file_magic_cmd='$OBJDUMP -f'
4251 fi
4252 ;;
4253
4254 darwin* | rhapsody*)
4255 lt_cv_deplibs_check_method=pass_all
4256 ;;
4257
4258 freebsd* | dragonfly*)
4259 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4260 case $host_cpu in
4261 i*86 )
4262 # Not sure whether the presence of OpenBSD here was a mistake.
4263 # Let's accept both of them until this is cleared up.
4264 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4265 lt_cv_file_magic_cmd=/usr/bin/file
4266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4267 ;;
4268 esac
4269 else
4270 lt_cv_deplibs_check_method=pass_all
4271 fi
4272 ;;
4273
4274 gnu*)
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277
4278 hpux10.20* | hpux11*)
4279 lt_cv_file_magic_cmd=/usr/bin/file
4280 case $host_cpu in
4281 ia64*)
4282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4283 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4284 ;;
4285 hppa*64*)
4286 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]'
4287 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4288 ;;
4289 *)
4290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4291 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4292 ;;
4293 esac
4294 ;;
4295
4296 interix[3-9]*)
4297 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4299 ;;
4300
4301 irix5* | irix6* | nonstopux*)
4302 case $LD in
4303 *-32|*"-32 ") libmagic=32-bit;;
4304 *-n32|*"-n32 ") libmagic=N32;;
4305 *-64|*"-64 ") libmagic=64-bit;;
4306 *) libmagic=never-match;;
4307 esac
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
4311 # This must be Linux ELF.
4312 linux* | k*bsd*-gnu)
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315
4316 netbsd*)
4317 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4319 else
4320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4321 fi
4322 ;;
4323
4324 newos6*)
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4326 lt_cv_file_magic_cmd=/usr/bin/file
4327 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4328 ;;
4329
4330 nto-qnx*)
4331 lt_cv_deplibs_check_method=unknown
4332 ;;
4333
4334 openbsd*)
4335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4337 else
4338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4339 fi
4340 ;;
4341
4342 osf3* | osf4* | osf5*)
4343 lt_cv_deplibs_check_method=pass_all
4344 ;;
4345
4346 rdos*)
4347 lt_cv_deplibs_check_method=pass_all
4348 ;;
4349
4350 solaris*)
4351 lt_cv_deplibs_check_method=pass_all
4352 ;;
4353
4354 sysv4 | sysv4.3*)
4355 case $host_vendor in
4356 motorola)
4357 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]'
4358 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4359 ;;
4360 ncr)
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
4363 sequent)
4364 lt_cv_file_magic_cmd='/bin/file'
4365 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4366 ;;
4367 sni)
4368 lt_cv_file_magic_cmd='/bin/file'
4369 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4370 lt_cv_file_magic_test_file=/lib/libc.so
4371 ;;
4372 siemens)
4373 lt_cv_deplibs_check_method=pass_all
4374 ;;
4375 pc)
4376 lt_cv_deplibs_check_method=pass_all
4377 ;;
4378 esac
4379 ;;
4380
4381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4382 lt_cv_deplibs_check_method=pass_all
4383 ;;
4384 esac
4385
4386 fi
4387 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4388 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4389 file_magic_cmd=$lt_cv_file_magic_cmd
4390 deplibs_check_method=$lt_cv_deplibs_check_method
4391 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4392
4393
4394
4395
4396 # If no C compiler was specified, use CC.
4397 LTCC=${LTCC-"$CC"}
4398
4399 # If no C compiler flags were specified, use CFLAGS.
4400 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4401
4402 # Allow CC to be a program name with arguments.
4403 compiler=$CC
4404
4405
4406 # Check whether --enable-libtool-lock was given.
4407 if test "${enable_libtool_lock+set}" = set; then
4408 enableval=$enable_libtool_lock;
4409 fi
4410
4411 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4412
4413 # Some flags need to be propagated to the compiler or linker for good
4414 # libtool support.
4415 case $host in
4416 ia64-*-hpux*)
4417 # Find out which ABI we are using.
4418 echo 'int i;' > conftest.$ac_ext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; then
4424 case `/usr/bin/file conftest.$ac_objext` in
4425 *ELF-32*)
4426 HPUX_IA64_MODE="32"
4427 ;;
4428 *ELF-64*)
4429 HPUX_IA64_MODE="64"
4430 ;;
4431 esac
4432 fi
4433 rm -rf conftest*
4434 ;;
4435 *-*-irix6*)
4436 # Find out which ABI we are using.
4437 echo '#line 4437 "configure"' > conftest.$ac_ext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; then
4443 if test "$lt_cv_prog_gnu_ld" = yes; then
4444 case `/usr/bin/file conftest.$ac_objext` in
4445 *32-bit*)
4446 LD="${LD-ld} -melf32bsmip"
4447 ;;
4448 *N32*)
4449 LD="${LD-ld} -melf32bmipn32"
4450 ;;
4451 *64-bit*)
4452 LD="${LD-ld} -melf64bmip"
4453 ;;
4454 esac
4455 else
4456 case `/usr/bin/file conftest.$ac_objext` in
4457 *32-bit*)
4458 LD="${LD-ld} -32"
4459 ;;
4460 *N32*)
4461 LD="${LD-ld} -n32"
4462 ;;
4463 *64-bit*)
4464 LD="${LD-ld} -64"
4465 ;;
4466 esac
4467 fi
4468 fi
4469 rm -rf conftest*
4470 ;;
4471
4472 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4473 s390*-*linux*|sparc*-*linux*)
4474 # Find out which ABI we are using.
4475 echo 'int i;' > conftest.$ac_ext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4477 (eval $ac_compile) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; then
4481 case `/usr/bin/file conftest.o` in
4482 *32-bit*)
4483 case $host in
4484 x86_64-*kfreebsd*-gnu)
4485 LD="${LD-ld} -m elf_i386_fbsd"
4486 ;;
4487 x86_64-*linux*)
4488 LD="${LD-ld} -m elf_i386"
4489 ;;
4490 ppc64-*linux*|powerpc64-*linux*)
4491 LD="${LD-ld} -m elf32ppclinux"
4492 ;;
4493 s390x-*linux*)
4494 LD="${LD-ld} -m elf_s390"
4495 ;;
4496 sparc64-*linux*)
4497 LD="${LD-ld} -m elf32_sparc"
4498 ;;
4499 esac
4500 ;;
4501 *64-bit*)
4502 libsuff=64
4503 case $host in
4504 x86_64-*kfreebsd*-gnu)
4505 LD="${LD-ld} -m elf_x86_64_fbsd"
4506 ;;
4507 x86_64-*linux*)
4508 LD="${LD-ld} -m elf_x86_64"
4509 ;;
4510 ppc*-*linux*|powerpc*-*linux*)
4511 LD="${LD-ld} -m elf64ppc"
4512 ;;
4513 s390*-*linux*)
4514 LD="${LD-ld} -m elf64_s390"
4515 ;;
4516 sparc*-*linux*)
4517 LD="${LD-ld} -m elf64_sparc"
4518 ;;
4519 esac
4520 ;;
4521 esac
4522 fi
4523 rm -rf conftest*
4524 ;;
4525
4526 *-*-sco3.2v5*)
4527 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4528 SAVE_CFLAGS="$CFLAGS"
4529 CFLAGS="$CFLAGS -belf"
4530 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4531 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4532 if test "${lt_cv_cc_needs_belf+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 ac_ext=c
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540
4541 cat >conftest.$ac_ext <<_ACEOF
4542 /* confdefs.h. */
4543 _ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4547
4548 int
4549 main ()
4550 {
4551
4552 ;
4553 return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext conftest$ac_exeext
4557 if { (ac_try="$ac_link"
4558 case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_link") 2>conftest.er1
4564 ac_status=$?
4565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } && {
4570 test -z "$ac_c_werror_flag" ||
4571 test ! -s conftest.err
4572 } && test -s conftest$ac_exeext &&
4573 $as_test_x conftest$ac_exeext; then
4574 lt_cv_cc_needs_belf=yes
4575 else
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4578
4579 lt_cv_cc_needs_belf=no
4580 fi
4581
4582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4583 conftest$ac_exeext conftest.$ac_ext
4584 ac_ext=c
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589
4590 fi
4591 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4592 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4593 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4594 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4595 CFLAGS="$SAVE_CFLAGS"
4596 fi
4597 ;;
4598 sparc*-*solaris*)
4599 # Find out which ABI we are using.
4600 echo 'int i;' > conftest.$ac_ext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; then
4606 case `/usr/bin/file conftest.o` in
4607 *64-bit*)
4608 case $lt_cv_prog_gnu_ld in
4609 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4610 *) LD="${LD-ld} -64" ;;
4611 esac
4612 ;;
4613 esac
4614 fi
4615 rm -rf conftest*
4616 ;;
4617
4618
4619 esac
4620
4621 need_locks="$enable_libtool_lock"
4622
4623
4624 ac_ext=c
4625 ac_cpp='$CPP $CPPFLAGS'
4626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4629 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4630 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4631 # On Suns, sometimes $CPP names a directory.
4632 if test -n "$CPP" && test -d "$CPP"; then
4633 CPP=
4634 fi
4635 if test -z "$CPP"; then
4636 if test "${ac_cv_prog_CPP+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639 # Double quotes because CPP needs to be expanded
4640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4641 do
4642 ac_preproc_ok=false
4643 for ac_c_preproc_warn_flag in '' yes
4644 do
4645 # Use a header file that comes with gcc, so configuring glibc
4646 # with a fresh cross-compiler works.
4647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648 # <limits.h> exists even on freestanding compilers.
4649 # On the NeXT, cc -E runs the code through the compiler's parser,
4650 # not just through cpp. "Syntax error" is here to catch this case.
4651 cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h. */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 #ifdef __STDC__
4658 # include <limits.h>
4659 #else
4660 # include <assert.h>
4661 #endif
4662 Syntax error
4663 _ACEOF
4664 if { (ac_try="$ac_cpp conftest.$ac_ext"
4665 case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4671 ac_status=$?
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } >/dev/null && {
4677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4678 test ! -s conftest.err
4679 }; then
4680 :
4681 else
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4684
4685 # Broken: fails on valid input.
4686 continue
4687 fi
4688
4689 rm -f conftest.err conftest.$ac_ext
4690
4691 # OK, works on sane cases. Now check whether nonexistent headers
4692 # can be detected and how.
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h. */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 #include <ac_nonexistent.h>
4700 _ACEOF
4701 if { (ac_try="$ac_cpp conftest.$ac_ext"
4702 case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } >/dev/null && {
4714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 }; then
4717 # Broken: success on invalid input.
4718 continue
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 # Passes both tests.
4724 ac_preproc_ok=:
4725 break
4726 fi
4727
4728 rm -f conftest.err conftest.$ac_ext
4729
4730 done
4731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4732 rm -f conftest.err conftest.$ac_ext
4733 if $ac_preproc_ok; then
4734 break
4735 fi
4736
4737 done
4738 ac_cv_prog_CPP=$CPP
4739
4740 fi
4741 CPP=$ac_cv_prog_CPP
4742 else
4743 ac_cv_prog_CPP=$CPP
4744 fi
4745 { echo "$as_me:$LINENO: result: $CPP" >&5
4746 echo "${ECHO_T}$CPP" >&6; }
4747 ac_preproc_ok=false
4748 for ac_c_preproc_warn_flag in '' yes
4749 do
4750 # Use a header file that comes with gcc, so configuring glibc
4751 # with a fresh cross-compiler works.
4752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4753 # <limits.h> exists even on freestanding compilers.
4754 # On the NeXT, cc -E runs the code through the compiler's parser,
4755 # not just through cpp. "Syntax error" is here to catch this case.
4756 cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h. */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 #ifdef __STDC__
4763 # include <limits.h>
4764 #else
4765 # include <assert.h>
4766 #endif
4767 Syntax error
4768 _ACEOF
4769 if { (ac_try="$ac_cpp conftest.$ac_ext"
4770 case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } >/dev/null && {
4782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4784 }; then
4785 :
4786 else
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 # Broken: fails on valid input.
4791 continue
4792 fi
4793
4794 rm -f conftest.err conftest.$ac_ext
4795
4796 # OK, works on sane cases. Now check whether nonexistent headers
4797 # can be detected and how.
4798 cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h. */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 #include <ac_nonexistent.h>
4805 _ACEOF
4806 if { (ac_try="$ac_cpp conftest.$ac_ext"
4807 case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810 esac
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } >/dev/null && {
4819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 }; then
4822 # Broken: success on invalid input.
4823 continue
4824 else
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 # Passes both tests.
4829 ac_preproc_ok=:
4830 break
4831 fi
4832
4833 rm -f conftest.err conftest.$ac_ext
4834
4835 done
4836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837 rm -f conftest.err conftest.$ac_ext
4838 if $ac_preproc_ok; then
4839 :
4840 else
4841 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4842 See \`config.log' for more details." >&5
4843 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4844 See \`config.log' for more details." >&2;}
4845 { (exit 1); exit 1; }; }
4846 fi
4847
4848 ac_ext=c
4849 ac_cpp='$CPP $CPPFLAGS'
4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853
4854
4855 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4856 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4857 if test "${ac_cv_header_stdc+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <stdlib.h>
4867 #include <stdarg.h>
4868 #include <string.h>
4869 #include <float.h>
4870
4871 int
4872 main ()
4873 {
4874
4875 ;
4876 return 0;
4877 }
4878 _ACEOF
4879 rm -f conftest.$ac_objext
4880 if { (ac_try="$ac_compile"
4881 case "(($ac_try" in
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4884 esac
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886 (eval "$ac_compile") 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } && {
4893 test -z "$ac_c_werror_flag" ||
4894 test ! -s conftest.err
4895 } && test -s conftest.$ac_objext; then
4896 ac_cv_header_stdc=yes
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 ac_cv_header_stdc=no
4902 fi
4903
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905
4906 if test $ac_cv_header_stdc = yes; then
4907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <string.h>
4915
4916 _ACEOF
4917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4918 $EGREP "memchr" >/dev/null 2>&1; then
4919 :
4920 else
4921 ac_cv_header_stdc=no
4922 fi
4923 rm -f conftest*
4924
4925 fi
4926
4927 if test $ac_cv_header_stdc = yes; then
4928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4929 cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h. */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935 #include <stdlib.h>
4936
4937 _ACEOF
4938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4939 $EGREP "free" >/dev/null 2>&1; then
4940 :
4941 else
4942 ac_cv_header_stdc=no
4943 fi
4944 rm -f conftest*
4945
4946 fi
4947
4948 if test $ac_cv_header_stdc = yes; then
4949 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4950 if test "$cross_compiling" = yes; then
4951 :
4952 else
4953 cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h. */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #include <ctype.h>
4960 #include <stdlib.h>
4961 #if ((' ' & 0x0FF) == 0x020)
4962 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4963 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4964 #else
4965 # define ISLOWER(c) \
4966 (('a' <= (c) && (c) <= 'i') \
4967 || ('j' <= (c) && (c) <= 'r') \
4968 || ('s' <= (c) && (c) <= 'z'))
4969 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4970 #endif
4971
4972 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4973 int
4974 main ()
4975 {
4976 int i;
4977 for (i = 0; i < 256; i++)
4978 if (XOR (islower (i), ISLOWER (i))
4979 || toupper (i) != TOUPPER (i))
4980 return 2;
4981 return 0;
4982 }
4983 _ACEOF
4984 rm -f conftest$ac_exeext
4985 if { (ac_try="$ac_link"
4986 case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989 esac
4990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_link") 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4995 { (case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998 esac
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_try") 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 :
5005 else
5006 echo "$as_me: program exited with status $ac_status" >&5
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010 ( exit $ac_status )
5011 ac_cv_header_stdc=no
5012 fi
5013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5014 fi
5015
5016
5017 fi
5018 fi
5019 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5020 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5021 if test $ac_cv_header_stdc = yes; then
5022
5023 cat >>confdefs.h <<\_ACEOF
5024 #define STDC_HEADERS 1
5025 _ACEOF
5026
5027 fi
5028
5029 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5040 inttypes.h stdint.h unistd.h
5041 do
5042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 $ac_includes_default
5055
5056 #include <$ac_header>
5057 _ACEOF
5058 rm -f conftest.$ac_objext
5059 if { (ac_try="$ac_compile"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_compile") 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } && {
5072 test -z "$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5074 } && test -s conftest.$ac_objext; then
5075 eval "$as_ac_Header=yes"
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 eval "$as_ac_Header=no"
5081 fi
5082
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 fi
5085 ac_res=`eval echo '${'$as_ac_Header'}'`
5086 { echo "$as_me:$LINENO: result: $ac_res" >&5
5087 echo "${ECHO_T}$ac_res" >&6; }
5088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5089 cat >>confdefs.h <<_ACEOF
5090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5091 _ACEOF
5092
5093 fi
5094
5095 done
5096
5097
5098
5099 for ac_header in dlfcn.h
5100 do
5101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 fi
5108 ac_res=`eval echo '${'$as_ac_Header'}'`
5109 { echo "$as_me:$LINENO: result: $ac_res" >&5
5110 echo "${ECHO_T}$ac_res" >&6; }
5111 else
5112 # Is the header compilable?
5113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5115 cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 $ac_includes_default
5122 #include <$ac_header>
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (ac_try="$ac_compile"
5126 case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_compile") 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } && {
5138 test -z "$ac_c_werror_flag" ||
5139 test ! -s conftest.err
5140 } && test -s conftest.$ac_objext; then
5141 ac_header_compiler=yes
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 ac_header_compiler=no
5147 fi
5148
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5151 echo "${ECHO_T}$ac_header_compiler" >&6; }
5152
5153 # Is the header present?
5154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #include <$ac_header>
5163 _ACEOF
5164 if { (ac_try="$ac_cpp conftest.$ac_ext"
5165 case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null && {
5177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 }; then
5180 ac_header_preproc=yes
5181 else
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5184
5185 ac_header_preproc=no
5186 fi
5187
5188 rm -f conftest.err conftest.$ac_ext
5189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5190 echo "${ECHO_T}$ac_header_preproc" >&6; }
5191
5192 # So? What about this header?
5193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5194 yes:no: )
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5199 ac_header_preproc=yes
5200 ;;
5201 no:yes:* )
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5214 ( cat <<\_ASBOX
5215 ## -------------------------------------------------- ##
5216 ## Report this to courier-users@lists.sourceforge.net ##
5217 ## -------------------------------------------------- ##
5218 _ASBOX
5219 ) | sed "s/^/$as_me: WARNING: /" >&2
5220 ;;
5221 esac
5222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 eval "$as_ac_Header=\$ac_header_preproc"
5228 fi
5229 ac_res=`eval echo '${'$as_ac_Header'}'`
5230 { echo "$as_me:$LINENO: result: $ac_res" >&5
5231 echo "${ECHO_T}$ac_res" >&6; }
5232
5233 fi
5234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5235 cat >>confdefs.h <<_ACEOF
5236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5237 _ACEOF
5238
5239 fi
5240
5241 done
5242
5243 ac_ext=cpp
5244 ac_cpp='$CXXCPP $CPPFLAGS'
5245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5248 if test -z "$CXX"; then
5249 if test -n "$CCC"; then
5250 CXX=$CCC
5251 else
5252 if test -n "$ac_tool_prefix"; then
5253 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5254 do
5255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5259 if test "${ac_cv_prog_CXX+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 if test -n "$CXX"; then
5263 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5275 fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 CXX=$ac_cv_prog_CXX
5283 if test -n "$CXX"; then
5284 { echo "$as_me:$LINENO: result: $CXX" >&5
5285 echo "${ECHO_T}$CXX" >&6; }
5286 else
5287 { echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6; }
5289 fi
5290
5291
5292 test -n "$CXX" && break
5293 done
5294 fi
5295 if test -z "$CXX"; then
5296 ac_ct_CXX=$CXX
5297 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5298 do
5299 # Extract the first word of "$ac_prog", so it can be a program name with args.
5300 set dummy $ac_prog; ac_word=$2
5301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5303 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 if test -n "$ac_ct_CXX"; then
5307 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_prog_ac_ct_CXX="$ac_prog"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320 done
5321 done
5322 IFS=$as_save_IFS
5323
5324 fi
5325 fi
5326 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5327 if test -n "$ac_ct_CXX"; then
5328 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5329 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5330 else
5331 { echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6; }
5333 fi
5334
5335
5336 test -n "$ac_ct_CXX" && break
5337 done
5338
5339 if test "x$ac_ct_CXX" = x; then
5340 CXX="g++"
5341 else
5342 case $cross_compiling:$ac_tool_warned in
5343 yes:)
5344 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5345 whose name does not start with the host triplet. If you think this
5346 configuration is useful to you, please write to autoconf@gnu.org." >&5
5347 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5348 whose name does not start with the host triplet. If you think this
5349 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5350 ac_tool_warned=yes ;;
5351 esac
5352 CXX=$ac_ct_CXX
5353 fi
5354 fi
5355
5356 fi
5357 fi
5358 # Provide some information about the compiler.
5359 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5360 ac_compiler=`set X $ac_compile; echo $2`
5361 { (ac_try="$ac_compiler --version >&5"
5362 case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365 esac
5366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367 (eval "$ac_compiler --version >&5") 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }
5371 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }
5381 { (ac_try="$ac_compiler -V >&5"
5382 case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_compiler -V >&5") 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }
5391
5392 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5393 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5394 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397 cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h. */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5403
5404 int
5405 main ()
5406 {
5407 #ifndef __GNUC__
5408 choke me
5409 #endif
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (ac_try="$ac_compile"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compile") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } && {
5429 test -z "$ac_cxx_werror_flag" ||
5430 test ! -s conftest.err
5431 } && test -s conftest.$ac_objext; then
5432 ac_compiler_gnu=yes
5433 else
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 ac_compiler_gnu=no
5438 fi
5439
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5442
5443 fi
5444 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5445 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5446 GXX=`test $ac_compiler_gnu = yes && echo yes`
5447 ac_test_CXXFLAGS=${CXXFLAGS+set}
5448 ac_save_CXXFLAGS=$CXXFLAGS
5449 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5450 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5451 if test "${ac_cv_prog_cxx_g+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5455 ac_cxx_werror_flag=yes
5456 ac_cv_prog_cxx_g=no
5457 CXXFLAGS="-g"
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464
5465 int
5466 main ()
5467 {
5468
5469 ;
5470 return 0;
5471 }
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && {
5487 test -z "$ac_cxx_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
5490 ac_cv_prog_cxx_g=yes
5491 else
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5494
5495 CXXFLAGS=""
5496 cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h. */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502
5503 int
5504 main ()
5505 {
5506
5507 ;
5508 return 0;
5509 }
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_cxx_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5528 :
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5534 CXXFLAGS="-g"
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541
5542 int
5543 main ()
5544 {
5545
5546 ;
5547 return 0;
5548 }
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (ac_try="$ac_compile"
5552 case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_compile") 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } && {
5564 test -z "$ac_cxx_werror_flag" ||
5565 test ! -s conftest.err
5566 } && test -s conftest.$ac_objext; then
5567 ac_cv_prog_cxx_g=yes
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572
5573 fi
5574
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 fi
5577
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 fi
5580
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5583 fi
5584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5585 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5586 if test "$ac_test_CXXFLAGS" = set; then
5587 CXXFLAGS=$ac_save_CXXFLAGS
5588 elif test $ac_cv_prog_cxx_g = yes; then
5589 if test "$GXX" = yes; then
5590 CXXFLAGS="-g -O2"
5591 else
5592 CXXFLAGS="-g"
5593 fi
5594 else
5595 if test "$GXX" = yes; then
5596 CXXFLAGS="-O2"
5597 else
5598 CXXFLAGS=
5599 fi
5600 fi
5601 ac_ext=cpp
5602 ac_cpp='$CXXCPP $CPPFLAGS'
5603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5606
5607 depcc="$CXX" am_compiler_list=
5608
5609 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5610 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5611 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5615 # We make a subdir and do the tests there. Otherwise we can end up
5616 # making bogus files that we don't know about and never remove. For
5617 # instance it was reported that on HP-UX the gcc test will end up
5618 # making a dummy file named `D' -- because `-MD' means `put the output
5619 # in D'.
5620 mkdir conftest.dir
5621 # Copy depcomp to subdir because otherwise we won't find it if we're
5622 # using a relative directory.
5623 cp "$am_depcomp" conftest.dir
5624 cd conftest.dir
5625 # We will build objects and dependencies in a subdirectory because
5626 # it helps to detect inapplicable dependency modes. For instance
5627 # both Tru64's cc and ICC support -MD to output dependencies as a
5628 # side effect of compilation, but ICC will put the dependencies in
5629 # the current directory while Tru64 will put them in the object
5630 # directory.
5631 mkdir sub
5632
5633 am_cv_CXX_dependencies_compiler_type=none
5634 if test "$am_compiler_list" = ""; then
5635 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5636 fi
5637 for depmode in $am_compiler_list; do
5638 # Setup a source with many dependencies, because some compilers
5639 # like to wrap large dependency lists on column 80 (with \), and
5640 # we should not choose a depcomp mode which is confused by this.
5641 #
5642 # We need to recreate these files for each test, as the compiler may
5643 # overwrite some of them when testing with obscure command lines.
5644 # This happens at least with the AIX C compiler.
5645 : > sub/conftest.c
5646 for i in 1 2 3 4 5 6; do
5647 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5648 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5649 # Solaris 8's {/usr,}/bin/sh.
5650 touch sub/conftst$i.h
5651 done
5652 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5653
5654 case $depmode in
5655 nosideeffect)
5656 # after this tag, mechanisms are not by side-effect, so they'll
5657 # only be used when explicitly requested
5658 if test "x$enable_dependency_tracking" = xyes; then
5659 continue
5660 else
5661 break
5662 fi
5663 ;;
5664 none) break ;;
5665 esac
5666 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5667 # mode. It turns out that the SunPro C++ compiler does not properly
5668 # handle `-M -o', and we need to detect this.
5669 if depmode=$depmode \
5670 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5672 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5673 >/dev/null 2>conftest.err &&
5674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5676 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5678 # icc doesn't choke on unknown options, it will just issue warnings
5679 # or remarks (even with -Werror). So we grep stderr for any message
5680 # that says an option was ignored or not supported.
5681 # When given -MP, icc 7.0 and 7.1 complain thusly:
5682 # icc: Command line warning: ignoring option '-M'; no argument required
5683 # The diagnosis changed in icc 8.0:
5684 # icc: Command line remark: option '-MP' not supported
5685 if (grep 'ignoring option' conftest.err ||
5686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5687 am_cv_CXX_dependencies_compiler_type=$depmode
5688 break
5689 fi
5690 fi
5691 done
5692
5693 cd ..
5694 rm -rf conftest.dir
5695 else
5696 am_cv_CXX_dependencies_compiler_type=none
5697 fi
5698
5699 fi
5700 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5701 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5702 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5703
5704 if
5705 test "x$enable_dependency_tracking" != xno \
5706 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5707 am__fastdepCXX_TRUE=
5708 am__fastdepCXX_FALSE='#'
5709 else
5710 am__fastdepCXX_TRUE='#'
5711 am__fastdepCXX_FALSE=
5712 fi
5713
5714
5715
5716
5717 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5718 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5719 (test "X$CXX" != "Xg++"))) ; then
5720 ac_ext=cpp
5721 ac_cpp='$CXXCPP $CPPFLAGS'
5722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5725 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5726 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5727 if test -z "$CXXCPP"; then
5728 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 # Double quotes because CXXCPP needs to be expanded
5732 for CXXCPP in "$CXX -E" "/lib/cpp"
5733 do
5734 ac_preproc_ok=false
5735 for ac_cxx_preproc_warn_flag in '' yes
5736 do
5737 # Use a header file that comes with gcc, so configuring glibc
5738 # with a fresh cross-compiler works.
5739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5740 # <limits.h> exists even on freestanding compilers.
5741 # On the NeXT, cc -E runs the code through the compiler's parser,
5742 # not just through cpp. "Syntax error" is here to catch this case.
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 #ifdef __STDC__
5750 # include <limits.h>
5751 #else
5752 # include <assert.h>
5753 #endif
5754 Syntax error
5755 _ACEOF
5756 if { (ac_try="$ac_cpp conftest.$ac_ext"
5757 case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } >/dev/null && {
5769 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5770 test ! -s conftest.err
5771 }; then
5772 :
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 # Broken: fails on valid input.
5778 continue
5779 fi
5780
5781 rm -f conftest.err conftest.$ac_ext
5782
5783 # OK, works on sane cases. Now check whether nonexistent headers
5784 # can be detected and how.
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #include <ac_nonexistent.h>
5792 _ACEOF
5793 if { (ac_try="$ac_cpp conftest.$ac_ext"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } >/dev/null && {
5806 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5807 test ! -s conftest.err
5808 }; then
5809 # Broken: success on invalid input.
5810 continue
5811 else
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5814
5815 # Passes both tests.
5816 ac_preproc_ok=:
5817 break
5818 fi
5819
5820 rm -f conftest.err conftest.$ac_ext
5821
5822 done
5823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5824 rm -f conftest.err conftest.$ac_ext
5825 if $ac_preproc_ok; then
5826 break
5827 fi
5828
5829 done
5830 ac_cv_prog_CXXCPP=$CXXCPP
5831
5832 fi
5833 CXXCPP=$ac_cv_prog_CXXCPP
5834 else
5835 ac_cv_prog_CXXCPP=$CXXCPP
5836 fi
5837 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5838 echo "${ECHO_T}$CXXCPP" >&6; }
5839 ac_preproc_ok=false
5840 for ac_cxx_preproc_warn_flag in '' yes
5841 do
5842 # Use a header file that comes with gcc, so configuring glibc
5843 # with a fresh cross-compiler works.
5844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5845 # <limits.h> exists even on freestanding compilers.
5846 # On the NeXT, cc -E runs the code through the compiler's parser,
5847 # not just through cpp. "Syntax error" is here to catch this case.
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #ifdef __STDC__
5855 # include <limits.h>
5856 #else
5857 # include <assert.h>
5858 #endif
5859 Syntax error
5860 _ACEOF
5861 if { (ac_try="$ac_cpp conftest.$ac_ext"
5862 case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } >/dev/null && {
5874 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5875 test ! -s conftest.err
5876 }; then
5877 :
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 # Broken: fails on valid input.
5883 continue
5884 fi
5885
5886 rm -f conftest.err conftest.$ac_ext
5887
5888 # OK, works on sane cases. Now check whether nonexistent headers
5889 # can be detected and how.
5890 cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h. */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #include <ac_nonexistent.h>
5897 _ACEOF
5898 if { (ac_try="$ac_cpp conftest.$ac_ext"
5899 case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5905 ac_status=$?
5906 grep -v '^ *+' conftest.er1 >conftest.err
5907 rm -f conftest.er1
5908 cat conftest.err >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } >/dev/null && {
5911 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5912 test ! -s conftest.err
5913 }; then
5914 # Broken: success on invalid input.
5915 continue
5916 else
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5919
5920 # Passes both tests.
5921 ac_preproc_ok=:
5922 break
5923 fi
5924
5925 rm -f conftest.err conftest.$ac_ext
5926
5927 done
5928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5929 rm -f conftest.err conftest.$ac_ext
5930 if $ac_preproc_ok; then
5931 :
5932 else
5933 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5934 See \`config.log' for more details." >&5
5935 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5936 See \`config.log' for more details." >&2;}
5937 { (exit 1); exit 1; }; }
5938 fi
5939
5940 ac_ext=cpp
5941 ac_cpp='$CXXCPP $CPPFLAGS'
5942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5945
5946 fi
5947
5948
5949 ac_ext=f
5950 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5951 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5953 if test -n "$ac_tool_prefix"; then
5954 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
5955 do
5956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_prog_F77+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963 if test -n "$F77"; then
5964 ac_cv_prog_F77="$F77" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 F77=$ac_cv_prog_F77
5984 if test -n "$F77"; then
5985 { echo "$as_me:$LINENO: result: $F77" >&5
5986 echo "${ECHO_T}$F77" >&6; }
5987 else
5988 { echo "$as_me:$LINENO: result: no" >&5
5989 echo "${ECHO_T}no" >&6; }
5990 fi
5991
5992
5993 test -n "$F77" && break
5994 done
5995 fi
5996 if test -z "$F77"; then
5997 ac_ct_F77=$F77
5998 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
5999 do
6000 # Extract the first word of "$ac_prog", so it can be a program name with args.
6001 set dummy $ac_prog; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 if test -n "$ac_ct_F77"; then
6008 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_ac_ct_F77="$ac_prog"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021 done
6022 done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6028 if test -n "$ac_ct_F77"; then
6029 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6030 echo "${ECHO_T}$ac_ct_F77" >&6; }
6031 else
6032 { echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6; }
6034 fi
6035
6036
6037 test -n "$ac_ct_F77" && break
6038 done
6039
6040 if test "x$ac_ct_F77" = x; then
6041 F77=""
6042 else
6043 case $cross_compiling:$ac_tool_warned in
6044 yes:)
6045 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6046 whose name does not start with the host triplet. If you think this
6047 configuration is useful to you, please write to autoconf@gnu.org." >&5
6048 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6049 whose name does not start with the host triplet. If you think this
6050 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6051 ac_tool_warned=yes ;;
6052 esac
6053 F77=$ac_ct_F77
6054 fi
6055 fi
6056
6057
6058 # Provide some information about the compiler.
6059 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6060 ac_compiler=`set X $ac_compile; echo $2`
6061 { (ac_try="$ac_compiler --version >&5"
6062 case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compiler --version >&5") 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }
6071 { (ac_try="$ac_compiler -v >&5"
6072 case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compiler -v >&5") 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }
6081 { (ac_try="$ac_compiler -V >&5"
6082 case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_compiler -V >&5") 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }
6091 rm -f a.out
6092
6093 # If we don't use `.F' as extension, the preprocessor is not run on the
6094 # input file. (Note that this only needs to work for GNU compilers.)
6095 ac_save_ext=$ac_ext
6096 ac_ext=F
6097 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6098 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6099 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 cat >conftest.$ac_ext <<_ACEOF
6103 program main
6104 #ifndef __GNUC__
6105 choke me
6106 #endif
6107
6108 end
6109 _ACEOF
6110 rm -f conftest.$ac_objext
6111 if { (ac_try="$ac_compile"
6112 case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115 esac
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_compile") 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } && {
6124 test -z "$ac_f77_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest.$ac_objext; then
6127 ac_compiler_gnu=yes
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 ac_compiler_gnu=no
6133 fi
6134
6135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6137
6138 fi
6139 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6140 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6141 ac_ext=$ac_save_ext
6142 ac_test_FFLAGS=${FFLAGS+set}
6143 ac_save_FFLAGS=$FFLAGS
6144 FFLAGS=
6145 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6146 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6147 if test "${ac_cv_prog_f77_g+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150 FFLAGS=-g
6151 cat >conftest.$ac_ext <<_ACEOF
6152 program main
6153
6154 end
6155 _ACEOF
6156 rm -f conftest.$ac_objext
6157 if { (ac_try="$ac_compile"
6158 case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_compile") 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && {
6170 test -z "$ac_f77_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest.$ac_objext; then
6173 ac_cv_prog_f77_g=yes
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6177
6178 ac_cv_prog_f77_g=no
6179 fi
6180
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182
6183 fi
6184 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6185 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6186 if test "$ac_test_FFLAGS" = set; then
6187 FFLAGS=$ac_save_FFLAGS
6188 elif test $ac_cv_prog_f77_g = yes; then
6189 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6190 FFLAGS="-g -O2"
6191 else
6192 FFLAGS="-g"
6193 fi
6194 else
6195 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6196 FFLAGS="-O2"
6197 else
6198 FFLAGS=
6199 fi
6200 fi
6201
6202 G77=`test $ac_compiler_gnu = yes && echo yes`
6203 ac_ext=c
6204 ac_cpp='$CPP $CPPFLAGS'
6205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208
6209
6210
6211 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6212
6213 # find the maximum length of command line arguments
6214 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6215 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6216 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219 i=0
6220 teststring="ABCD"
6221
6222 case $build_os in
6223 msdosdjgpp*)
6224 # On DJGPP, this test can blow up pretty badly due to problems in libc
6225 # (any single argument exceeding 2000 bytes causes a buffer overrun
6226 # during glob expansion). Even if it were fixed, the result of this
6227 # check would be larger than it should be.
6228 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6229 ;;
6230
6231 gnu*)
6232 # Under GNU Hurd, this test is not required because there is
6233 # no limit to the length of command line arguments.
6234 # Libtool will interpret -1 as no limit whatsoever
6235 lt_cv_sys_max_cmd_len=-1;
6236 ;;
6237
6238 cygwin* | mingw*)
6239 # On Win9x/ME, this test blows up -- it succeeds, but takes
6240 # about 5 minutes as the teststring grows exponentially.
6241 # Worse, since 9x/ME are not pre-emptively multitasking,
6242 # you end up with a "frozen" computer, even though with patience
6243 # the test eventually succeeds (with a max line length of 256k).
6244 # Instead, let's just punt: use the minimum linelength reported by
6245 # all of the supported platforms: 8192 (on NT/2K/XP).
6246 lt_cv_sys_max_cmd_len=8192;
6247 ;;
6248
6249 amigaos*)
6250 # On AmigaOS with pdksh, this test takes hours, literally.
6251 # So we just punt and use a minimum line length of 8192.
6252 lt_cv_sys_max_cmd_len=8192;
6253 ;;
6254
6255 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6256 # This has been around since 386BSD, at least. Likely further.
6257 if test -x /sbin/sysctl; then
6258 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6259 elif test -x /usr/sbin/sysctl; then
6260 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6261 else
6262 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6263 fi
6264 # And add a safety zone
6265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6267 ;;
6268
6269 interix*)
6270 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6271 lt_cv_sys_max_cmd_len=196608
6272 ;;
6273
6274 osf*)
6275 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6276 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6277 # nice to cause kernel panics so lets avoid the loop below.
6278 # First set a reasonable default.
6279 lt_cv_sys_max_cmd_len=16384
6280 #
6281 if test -x /sbin/sysconfig; then
6282 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6283 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6284 esac
6285 fi
6286 ;;
6287 sco3.2v5*)
6288 lt_cv_sys_max_cmd_len=102400
6289 ;;
6290 sysv5* | sco5v6* | sysv4.2uw2*)
6291 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6292 if test -n "$kargmax"; then
6293 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6294 else
6295 lt_cv_sys_max_cmd_len=32768
6296 fi
6297 ;;
6298 *)
6299 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6300 if test -n "$lt_cv_sys_max_cmd_len"; then
6301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6303 else
6304 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6305 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6306 = "XX$teststring") >/dev/null 2>&1 &&
6307 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6308 lt_cv_sys_max_cmd_len=$new_result &&
6309 test $i != 17 # 1/2 MB should be enough
6310 do
6311 i=`expr $i + 1`
6312 teststring=$teststring$teststring
6313 done
6314 teststring=
6315 # Add a significant safety factor because C++ compilers can tack on massive
6316 # amounts of additional arguments before passing them to the linker.
6317 # It appears as though 1/2 is a usable value.
6318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6319 fi
6320 ;;
6321 esac
6322
6323 fi
6324
6325 if test -n $lt_cv_sys_max_cmd_len ; then
6326 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6327 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6328 else
6329 { echo "$as_me:$LINENO: result: none" >&5
6330 echo "${ECHO_T}none" >&6; }
6331 fi
6332
6333
6334
6335
6336
6337 # Check for command to grab the raw symbol name followed by C symbol from nm.
6338 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6339 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6340 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343
6344 # These are sane defaults that work on at least a few old systems.
6345 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6346
6347 # Character class describing NM global symbol codes.
6348 symcode='[BCDEGRST]'
6349
6350 # Regexp to match symbols that can be accessed directly from C.
6351 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6352
6353 # Transform an extracted symbol line into a proper C declaration
6354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6355
6356 # Transform an extracted symbol line into symbol name and symbol address
6357 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'"
6358
6359 # Define system-specific variables.
6360 case $host_os in
6361 aix*)
6362 symcode='[BCDT]'
6363 ;;
6364 cygwin* | mingw* | pw32*)
6365 symcode='[ABCDGISTW]'
6366 ;;
6367 hpux*) # Its linker distinguishes data from code symbols
6368 if test "$host_cpu" = ia64; then
6369 symcode='[ABCDEGRST]'
6370 fi
6371 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6372 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'"
6373 ;;
6374 linux* | k*bsd*-gnu)
6375 if test "$host_cpu" = ia64; then
6376 symcode='[ABCDGIRSTW]'
6377 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6378 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'"
6379 fi
6380 ;;
6381 irix* | nonstopux*)
6382 symcode='[BCDEGRST]'
6383 ;;
6384 osf*)
6385 symcode='[BCDEGQRST]'
6386 ;;
6387 solaris*)
6388 symcode='[BDRT]'
6389 ;;
6390 sco3.2v5*)
6391 symcode='[DT]'
6392 ;;
6393 sysv4.2uw2*)
6394 symcode='[DT]'
6395 ;;
6396 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6397 symcode='[ABDT]'
6398 ;;
6399 sysv4)
6400 symcode='[DFNSTU]'
6401 ;;
6402 esac
6403
6404 # Handle CRLF in mingw tool chain
6405 opt_cr=
6406 case $build_os in
6407 mingw*)
6408 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6409 ;;
6410 esac
6411
6412 # If we're using GNU nm, then use its standard symbol codes.
6413 case `$NM -V 2>&1` in
6414 *GNU* | *'with BFD'*)
6415 symcode='[ABCDGIRSTW]' ;;
6416 esac
6417
6418 # Try without a prefix undercore, then with it.
6419 for ac_symprfx in "" "_"; do
6420
6421 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6422 symxfrm="\\1 $ac_symprfx\\2 \\2"
6423
6424 # Write the raw and C identifiers.
6425 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6426
6427 # Check to see that the pipe works correctly.
6428 pipe_works=no
6429
6430 rm -f conftest*
6431 cat > conftest.$ac_ext <<EOF
6432 #ifdef __cplusplus
6433 extern "C" {
6434 #endif
6435 char nm_test_var;
6436 void nm_test_func(){}
6437 #ifdef __cplusplus
6438 }
6439 #endif
6440 int main(){nm_test_var='a';nm_test_func();return(0);}
6441 EOF
6442
6443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6444 (eval $ac_compile) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; then
6448 # Now try to grab the symbols.
6449 nlist=conftest.nm
6450 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6451 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } && test -s "$nlist"; then
6455 # Try sorting and uniquifying the output.
6456 if sort "$nlist" | uniq > "$nlist"T; then
6457 mv -f "$nlist"T "$nlist"
6458 else
6459 rm -f "$nlist"T
6460 fi
6461
6462 # Make sure that we snagged all the symbols we need.
6463 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6464 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6465 cat <<EOF > conftest.$ac_ext
6466 #ifdef __cplusplus
6467 extern "C" {
6468 #endif
6469
6470 EOF
6471 # Now generate the symbol file.
6472 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6473
6474 cat <<EOF >> conftest.$ac_ext
6475 #if defined (__STDC__) && __STDC__
6476 # define lt_ptr_t void *
6477 #else
6478 # define lt_ptr_t char *
6479 # define const
6480 #endif
6481
6482 /* The mapping between symbol names and symbols. */
6483 const struct {
6484 const char *name;
6485 lt_ptr_t address;
6486 }
6487 lt_preloaded_symbols[] =
6488 {
6489 EOF
6490 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6491 cat <<\EOF >> conftest.$ac_ext
6492 {0, (lt_ptr_t) 0}
6493 };
6494
6495 #ifdef __cplusplus
6496 }
6497 #endif
6498 EOF
6499 # Now try linking the two files.
6500 mv conftest.$ac_objext conftstm.$ac_objext
6501 lt_save_LIBS="$LIBS"
6502 lt_save_CFLAGS="$CFLAGS"
6503 LIBS="conftstm.$ac_objext"
6504 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6506 (eval $ac_link) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6510 pipe_works=yes
6511 fi
6512 LIBS="$lt_save_LIBS"
6513 CFLAGS="$lt_save_CFLAGS"
6514 else
6515 echo "cannot find nm_test_func in $nlist" >&5
6516 fi
6517 else
6518 echo "cannot find nm_test_var in $nlist" >&5
6519 fi
6520 else
6521 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6522 fi
6523 else
6524 echo "$progname: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6526 fi
6527 rm -f conftest* conftst*
6528
6529 # Do not use the global_symbol_pipe unless it works.
6530 if test "$pipe_works" = yes; then
6531 break
6532 else
6533 lt_cv_sys_global_symbol_pipe=
6534 fi
6535 done
6536
6537 fi
6538
6539 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6540 lt_cv_sys_global_symbol_to_cdecl=
6541 fi
6542 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6543 { echo "$as_me:$LINENO: result: failed" >&5
6544 echo "${ECHO_T}failed" >&6; }
6545 else
6546 { echo "$as_me:$LINENO: result: ok" >&5
6547 echo "${ECHO_T}ok" >&6; }
6548 fi
6549
6550 { echo "$as_me:$LINENO: checking for objdir" >&5
6551 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6552 if test "${lt_cv_objdir+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 rm -f .libs 2>/dev/null
6556 mkdir .libs 2>/dev/null
6557 if test -d .libs; then
6558 lt_cv_objdir=.libs
6559 else
6560 # MS-DOS does not allow filenames that begin with a dot.
6561 lt_cv_objdir=_libs
6562 fi
6563 rmdir .libs 2>/dev/null
6564 fi
6565 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6566 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6567 objdir=$lt_cv_objdir
6568
6569
6570
6571
6572
6573 case $host_os in
6574 aix3*)
6575 # AIX sometimes has problems with the GCC collect2 program. For some
6576 # reason, if we set the COLLECT_NAMES environment variable, the problems
6577 # vanish in a puff of smoke.
6578 if test "X${COLLECT_NAMES+set}" != Xset; then
6579 COLLECT_NAMES=
6580 export COLLECT_NAMES
6581 fi
6582 ;;
6583 esac
6584
6585 # Sed substitution that helps us do robust quoting. It backslashifies
6586 # metacharacters that are still active within double-quoted strings.
6587 Xsed='sed -e 1s/^X//'
6588 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6589
6590 # Same as above, but do not quote variable references.
6591 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6592
6593 # Sed substitution to delay expansion of an escaped shell variable in a
6594 # double_quote_subst'ed string.
6595 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6596
6597 # Sed substitution to avoid accidental globbing in evaled expressions
6598 no_glob_subst='s/\*/\\\*/g'
6599
6600 # Constants:
6601 rm="rm -f"
6602
6603 # Global variables:
6604 default_ofile=libtool
6605 can_build_shared=yes
6606
6607 # All known linkers require a `.a' archive for static linking (except MSVC,
6608 # which needs '.lib').
6609 libext=a
6610 ltmain="$ac_aux_dir/ltmain.sh"
6611 ofile="$default_ofile"
6612 with_gnu_ld="$lt_cv_prog_gnu_ld"
6613
6614 if test -n "$ac_tool_prefix"; then
6615 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6616 set dummy ${ac_tool_prefix}ar; ac_word=$2
6617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619 if test "${ac_cv_prog_AR+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622 if test -n "$AR"; then
6623 ac_cv_prog_AR="$AR" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_prog_AR="${ac_tool_prefix}ar"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 AR=$ac_cv_prog_AR
6643 if test -n "$AR"; then
6644 { echo "$as_me:$LINENO: result: $AR" >&5
6645 echo "${ECHO_T}$AR" >&6; }
6646 else
6647 { echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6; }
6649 fi
6650
6651
6652 fi
6653 if test -z "$ac_cv_prog_AR"; then
6654 ac_ct_AR=$AR
6655 # Extract the first word of "ar", so it can be a program name with args.
6656 set dummy ar; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 if test -n "$ac_ct_AR"; then
6663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_prog_ac_ct_AR="ar"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676 done
6677 done
6678 IFS=$as_save_IFS
6679
6680 fi
6681 fi
6682 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6683 if test -n "$ac_ct_AR"; then
6684 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6685 echo "${ECHO_T}$ac_ct_AR" >&6; }
6686 else
6687 { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6689 fi
6690
6691 if test "x$ac_ct_AR" = x; then
6692 AR="false"
6693 else
6694 case $cross_compiling:$ac_tool_warned in
6695 yes:)
6696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6697 whose name does not start with the host triplet. If you think this
6698 configuration is useful to you, please write to autoconf@gnu.org." >&5
6699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6700 whose name does not start with the host triplet. If you think this
6701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6702 ac_tool_warned=yes ;;
6703 esac
6704 AR=$ac_ct_AR
6705 fi
6706 else
6707 AR="$ac_cv_prog_AR"
6708 fi
6709
6710 if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6712 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715 if test "${ac_cv_prog_RANLIB+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718 if test -n "$RANLIB"; then
6719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736 fi
6737 fi
6738 RANLIB=$ac_cv_prog_RANLIB
6739 if test -n "$RANLIB"; then
6740 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6741 echo "${ECHO_T}$RANLIB" >&6; }
6742 else
6743 { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6745 fi
6746
6747
6748 fi
6749 if test -z "$ac_cv_prog_RANLIB"; then
6750 ac_ct_RANLIB=$RANLIB
6751 # Extract the first word of "ranlib", so it can be a program name with args.
6752 set dummy ranlib; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 if test -n "$ac_ct_RANLIB"; then
6759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_prog_ac_ct_RANLIB="ranlib"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6779 if test -n "$ac_ct_RANLIB"; then
6780 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6781 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6782 else
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6785 fi
6786
6787 if test "x$ac_ct_RANLIB" = x; then
6788 RANLIB=":"
6789 else
6790 case $cross_compiling:$ac_tool_warned in
6791 yes:)
6792 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6793 whose name does not start with the host triplet. If you think this
6794 configuration is useful to you, please write to autoconf@gnu.org." >&5
6795 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6796 whose name does not start with the host triplet. If you think this
6797 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6798 ac_tool_warned=yes ;;
6799 esac
6800 RANLIB=$ac_ct_RANLIB
6801 fi
6802 else
6803 RANLIB="$ac_cv_prog_RANLIB"
6804 fi
6805
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}strip; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_prog_STRIP+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814 if test -n "$STRIP"; then
6815 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 STRIP=$ac_cv_prog_STRIP
6835 if test -n "$STRIP"; then
6836 { echo "$as_me:$LINENO: result: $STRIP" >&5
6837 echo "${ECHO_T}$STRIP" >&6; }
6838 else
6839 { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6841 fi
6842
6843
6844 fi
6845 if test -z "$ac_cv_prog_STRIP"; then
6846 ac_ct_STRIP=$STRIP
6847 # Extract the first word of "strip", so it can be a program name with args.
6848 set dummy strip; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 if test -n "$ac_ct_STRIP"; then
6855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_ac_ct_STRIP="strip"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6875 if test -n "$ac_ct_STRIP"; then
6876 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6877 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6878 else
6879 { echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6; }
6881 fi
6882
6883 if test "x$ac_ct_STRIP" = x; then
6884 STRIP=":"
6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6889 whose name does not start with the host triplet. If you think this
6890 configuration is useful to you, please write to autoconf@gnu.org." >&5
6891 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6892 whose name does not start with the host triplet. If you think this
6893 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896 STRIP=$ac_ct_STRIP
6897 fi
6898 else
6899 STRIP="$ac_cv_prog_STRIP"
6900 fi
6901
6902
6903 old_CC="$CC"
6904 old_CFLAGS="$CFLAGS"
6905
6906 # Set sane defaults for various variables
6907 test -z "$AR" && AR=ar
6908 test -z "$AR_FLAGS" && AR_FLAGS=cru
6909 test -z "$AS" && AS=as
6910 test -z "$CC" && CC=cc
6911 test -z "$LTCC" && LTCC=$CC
6912 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6913 test -z "$DLLTOOL" && DLLTOOL=dlltool
6914 test -z "$LD" && LD=ld
6915 test -z "$LN_S" && LN_S="ln -s"
6916 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6917 test -z "$NM" && NM=nm
6918 test -z "$SED" && SED=sed
6919 test -z "$OBJDUMP" && OBJDUMP=objdump
6920 test -z "$RANLIB" && RANLIB=:
6921 test -z "$STRIP" && STRIP=:
6922 test -z "$ac_objext" && ac_objext=o
6923
6924 # Determine commands to create old-style static archives.
6925 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6926 old_postinstall_cmds='chmod 644 $oldlib'
6927 old_postuninstall_cmds=
6928
6929 if test -n "$RANLIB"; then
6930 case $host_os in
6931 openbsd*)
6932 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6933 ;;
6934 *)
6935 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6936 ;;
6937 esac
6938 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6939 fi
6940
6941 for cc_temp in $compiler""; do
6942 case $cc_temp in
6943 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6944 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6945 \-*) ;;
6946 *) break;;
6947 esac
6948 done
6949 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6950
6951
6952 # Only perform the check for file, if the check method requires it
6953 case $deplibs_check_method in
6954 file_magic*)
6955 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6956 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6957 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6958 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961 case $MAGIC_CMD in
6962 [\\/*] | ?:[\\/]*)
6963 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6964 ;;
6965 *)
6966 lt_save_MAGIC_CMD="$MAGIC_CMD"
6967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6968 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6969 for ac_dir in $ac_dummy; do
6970 IFS="$lt_save_ifs"
6971 test -z "$ac_dir" && ac_dir=.
6972 if test -f $ac_dir/${ac_tool_prefix}file; then
6973 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6974 if test -n "$file_magic_test_file"; then
6975 case $deplibs_check_method in
6976 "file_magic "*)
6977 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6979 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6980 $EGREP "$file_magic_regex" > /dev/null; then
6981 :
6982 else
6983 cat <<EOF 1>&2
6984
6985 *** Warning: the command libtool uses to detect shared libraries,
6986 *** $file_magic_cmd, produces output that libtool cannot recognize.
6987 *** The result is that libtool may fail to recognize shared libraries
6988 *** as such. This will affect the creation of libtool libraries that
6989 *** depend on shared libraries, but programs linked with such libtool
6990 *** libraries will work regardless of this problem. Nevertheless, you
6991 *** may want to report the problem to your system manager and/or to
6992 *** bug-libtool@gnu.org
6993
6994 EOF
6995 fi ;;
6996 esac
6997 fi
6998 break
6999 fi
7000 done
7001 IFS="$lt_save_ifs"
7002 MAGIC_CMD="$lt_save_MAGIC_CMD"
7003 ;;
7004 esac
7005 fi
7006
7007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7008 if test -n "$MAGIC_CMD"; then
7009 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7010 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7011 else
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7014 fi
7015
7016 if test -z "$lt_cv_path_MAGIC_CMD"; then
7017 if test -n "$ac_tool_prefix"; then
7018 { echo "$as_me:$LINENO: checking for file" >&5
7019 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7020 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023 case $MAGIC_CMD in
7024 [\\/*] | ?:[\\/]*)
7025 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7026 ;;
7027 *)
7028 lt_save_MAGIC_CMD="$MAGIC_CMD"
7029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7030 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7031 for ac_dir in $ac_dummy; do
7032 IFS="$lt_save_ifs"
7033 test -z "$ac_dir" && ac_dir=.
7034 if test -f $ac_dir/file; then
7035 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7036 if test -n "$file_magic_test_file"; then
7037 case $deplibs_check_method in
7038 "file_magic "*)
7039 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7041 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7042 $EGREP "$file_magic_regex" > /dev/null; then
7043 :
7044 else
7045 cat <<EOF 1>&2
7046
7047 *** Warning: the command libtool uses to detect shared libraries,
7048 *** $file_magic_cmd, produces output that libtool cannot recognize.
7049 *** The result is that libtool may fail to recognize shared libraries
7050 *** as such. This will affect the creation of libtool libraries that
7051 *** depend on shared libraries, but programs linked with such libtool
7052 *** libraries will work regardless of this problem. Nevertheless, you
7053 *** may want to report the problem to your system manager and/or to
7054 *** bug-libtool@gnu.org
7055
7056 EOF
7057 fi ;;
7058 esac
7059 fi
7060 break
7061 fi
7062 done
7063 IFS="$lt_save_ifs"
7064 MAGIC_CMD="$lt_save_MAGIC_CMD"
7065 ;;
7066 esac
7067 fi
7068
7069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7070 if test -n "$MAGIC_CMD"; then
7071 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7072 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7073 else
7074 { echo "$as_me:$LINENO: result: no" >&5
7075 echo "${ECHO_T}no" >&6; }
7076 fi
7077
7078 else
7079 MAGIC_CMD=:
7080 fi
7081 fi
7082
7083 fi
7084 ;;
7085 esac
7086
7087 enable_dlopen=no
7088 enable_win32_dll=no
7089
7090 # Check whether --enable-libtool-lock was given.
7091 if test "${enable_libtool_lock+set}" = set; then
7092 enableval=$enable_libtool_lock;
7093 fi
7094
7095 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7096
7097
7098 # Check whether --with-pic was given.
7099 if test "${with_pic+set}" = set; then
7100 withval=$with_pic; pic_mode="$withval"
7101 else
7102 pic_mode=default
7103 fi
7104
7105 test -z "$pic_mode" && pic_mode=default
7106
7107 # Use C for the default configuration in the libtool script
7108 tagname=
7109 lt_save_CC="$CC"
7110 ac_ext=c
7111 ac_cpp='$CPP $CPPFLAGS'
7112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7115
7116
7117 # Source file extension for C test sources.
7118 ac_ext=c
7119
7120 # Object file extension for compiled C test sources.
7121 objext=o
7122 objext=$objext
7123
7124 # Code to be used in simple compile tests
7125 lt_simple_compile_test_code="int some_variable = 0;"
7126
7127 # Code to be used in simple link tests
7128 lt_simple_link_test_code='int main(){return(0);}'
7129
7130
7131 # If no C compiler was specified, use CC.
7132 LTCC=${LTCC-"$CC"}
7133
7134 # If no C compiler flags were specified, use CFLAGS.
7135 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7136
7137 # Allow CC to be a program name with arguments.
7138 compiler=$CC
7139
7140
7141 # save warnings/boilerplate of simple test code
7142 ac_outfile=conftest.$ac_objext
7143 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7144 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7145 _lt_compiler_boilerplate=`cat conftest.err`
7146 $rm conftest*
7147
7148 ac_outfile=conftest.$ac_objext
7149 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7150 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7151 _lt_linker_boilerplate=`cat conftest.err`
7152 $rm conftest*
7153
7154
7155
7156 lt_prog_compiler_no_builtin_flag=
7157
7158 if test "$GCC" = yes; then
7159 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7160
7161
7162 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7163 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7164 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 lt_cv_prog_compiler_rtti_exceptions=no
7168 ac_outfile=conftest.$ac_objext
7169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7170 lt_compiler_flag="-fno-rtti -fno-exceptions"
7171 # Insert the option either (1) after the last *FLAGS variable, or
7172 # (2) before a word containing "conftest.", or (3) at the end.
7173 # Note that $ac_compile itself does not contain backslashes and begins
7174 # with a dollar sign (not a hyphen), so the echo should work correctly.
7175 # The option is referenced via a variable to avoid confusing sed.
7176 lt_compile=`echo "$ac_compile" | $SED \
7177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7179 -e 's:$: $lt_compiler_flag:'`
7180 (eval echo "\"\$as_me:7180: $lt_compile\"" >&5)
7181 (eval "$lt_compile" 2>conftest.err)
7182 ac_status=$?
7183 cat conftest.err >&5
7184 echo "$as_me:7184: \$? = $ac_status" >&5
7185 if (exit $ac_status) && test -s "$ac_outfile"; then
7186 # The compiler can only warn and ignore the option if not recognized
7187 # So say no if there are warnings other than the usual output.
7188 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7190 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7191 lt_cv_prog_compiler_rtti_exceptions=yes
7192 fi
7193 fi
7194 $rm conftest*
7195
7196 fi
7197 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7198 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7199
7200 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7201 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7202 else
7203 :
7204 fi
7205
7206 fi
7207
7208 lt_prog_compiler_wl=
7209 lt_prog_compiler_pic=
7210 lt_prog_compiler_static=
7211
7212 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7213 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7214
7215 if test "$GCC" = yes; then
7216 lt_prog_compiler_wl='-Wl,'
7217 lt_prog_compiler_static='-static'
7218
7219 case $host_os in
7220 aix*)
7221 # All AIX code is PIC.
7222 if test "$host_cpu" = ia64; then
7223 # AIX 5 now supports IA64 processor
7224 lt_prog_compiler_static='-Bstatic'
7225 fi
7226 ;;
7227
7228 amigaos*)
7229 # FIXME: we need at least 68020 code to build shared libraries, but
7230 # adding the `-m68020' flag to GCC prevents building anything better,
7231 # like `-m68040'.
7232 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7233 ;;
7234
7235 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7236 # PIC is the default for these OSes.
7237 ;;
7238
7239 mingw* | cygwin* | pw32* | os2*)
7240 # This hack is so that the source file can tell whether it is being
7241 # built for inclusion in a dll (and should export symbols for example).
7242 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7243 # (--disable-auto-import) libraries
7244 lt_prog_compiler_pic='-DDLL_EXPORT'
7245 ;;
7246
7247 darwin* | rhapsody*)
7248 # PIC is the default on this platform
7249 # Common symbols not allowed in MH_DYLIB files
7250 lt_prog_compiler_pic='-fno-common'
7251 ;;
7252
7253 interix[3-9]*)
7254 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7255 # Instead, we relocate shared libraries at runtime.
7256 ;;
7257
7258 msdosdjgpp*)
7259 # Just because we use GCC doesn't mean we suddenly get shared libraries
7260 # on systems that don't support them.
7261 lt_prog_compiler_can_build_shared=no
7262 enable_shared=no
7263 ;;
7264
7265 sysv4*MP*)
7266 if test -d /usr/nec; then
7267 lt_prog_compiler_pic=-Kconform_pic
7268 fi
7269 ;;
7270
7271 hpux*)
7272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7273 # not for PA HP-UX.
7274 case $host_cpu in
7275 hppa*64*|ia64*)
7276 # +Z the default
7277 ;;
7278 *)
7279 lt_prog_compiler_pic='-fPIC'
7280 ;;
7281 esac
7282 ;;
7283
7284 *)
7285 lt_prog_compiler_pic='-fPIC'
7286 ;;
7287 esac
7288 else
7289 # PORTME Check for flag to pass linker flags through the system compiler.
7290 case $host_os in
7291 aix*)
7292 lt_prog_compiler_wl='-Wl,'
7293 if test "$host_cpu" = ia64; then
7294 # AIX 5 now supports IA64 processor
7295 lt_prog_compiler_static='-Bstatic'
7296 else
7297 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7298 fi
7299 ;;
7300 darwin*)
7301 # PIC is the default on this platform
7302 # Common symbols not allowed in MH_DYLIB files
7303 case $cc_basename in
7304 xlc*)
7305 lt_prog_compiler_pic='-qnocommon'
7306 lt_prog_compiler_wl='-Wl,'
7307 ;;
7308 esac
7309 ;;
7310
7311 mingw* | cygwin* | pw32* | os2*)
7312 # This hack is so that the source file can tell whether it is being
7313 # built for inclusion in a dll (and should export symbols for example).
7314 lt_prog_compiler_pic='-DDLL_EXPORT'
7315 ;;
7316
7317 hpux9* | hpux10* | hpux11*)
7318 lt_prog_compiler_wl='-Wl,'
7319 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7320 # not for PA HP-UX.
7321 case $host_cpu in
7322 hppa*64*|ia64*)
7323 # +Z the default
7324 ;;
7325 *)
7326 lt_prog_compiler_pic='+Z'
7327 ;;
7328 esac
7329 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7330 lt_prog_compiler_static='${wl}-a ${wl}archive'
7331 ;;
7332
7333 irix5* | irix6* | nonstopux*)
7334 lt_prog_compiler_wl='-Wl,'
7335 # PIC (with -KPIC) is the default.
7336 lt_prog_compiler_static='-non_shared'
7337 ;;
7338
7339 newsos6)
7340 lt_prog_compiler_pic='-KPIC'
7341 lt_prog_compiler_static='-Bstatic'
7342 ;;
7343
7344 linux* | k*bsd*-gnu)
7345 case $cc_basename in
7346 icc* | ecc*)
7347 lt_prog_compiler_wl='-Wl,'
7348 lt_prog_compiler_pic='-KPIC'
7349 lt_prog_compiler_static='-static'
7350 ;;
7351 pgcc* | pgf77* | pgf90* | pgf95*)
7352 # Portland Group compilers (*not* the Pentium gcc compiler,
7353 # which looks to be a dead project)
7354 lt_prog_compiler_wl='-Wl,'
7355 lt_prog_compiler_pic='-fpic'
7356 lt_prog_compiler_static='-Bstatic'
7357 ;;
7358 ccc*)
7359 lt_prog_compiler_wl='-Wl,'
7360 # All Alpha code is PIC.
7361 lt_prog_compiler_static='-non_shared'
7362 ;;
7363 *)
7364 case `$CC -V 2>&1 | sed 5q` in
7365 *Sun\ C*)
7366 # Sun C 5.9
7367 lt_prog_compiler_pic='-KPIC'
7368 lt_prog_compiler_static='-Bstatic'
7369 lt_prog_compiler_wl='-Wl,'
7370 ;;
7371 *Sun\ F*)
7372 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7373 lt_prog_compiler_pic='-KPIC'
7374 lt_prog_compiler_static='-Bstatic'
7375 lt_prog_compiler_wl=''
7376 ;;
7377 esac
7378 ;;
7379 esac
7380 ;;
7381
7382 osf3* | osf4* | osf5*)
7383 lt_prog_compiler_wl='-Wl,'
7384 # All OSF/1 code is PIC.
7385 lt_prog_compiler_static='-non_shared'
7386 ;;
7387
7388 rdos*)
7389 lt_prog_compiler_static='-non_shared'
7390 ;;
7391
7392 solaris*)
7393 lt_prog_compiler_pic='-KPIC'
7394 lt_prog_compiler_static='-Bstatic'
7395 case $cc_basename in
7396 f77* | f90* | f95*)
7397 lt_prog_compiler_wl='-Qoption ld ';;
7398 *)
7399 lt_prog_compiler_wl='-Wl,';;
7400 esac
7401 ;;
7402
7403 sunos4*)
7404 lt_prog_compiler_wl='-Qoption ld '
7405 lt_prog_compiler_pic='-PIC'
7406 lt_prog_compiler_static='-Bstatic'
7407 ;;
7408
7409 sysv4 | sysv4.2uw2* | sysv4.3*)
7410 lt_prog_compiler_wl='-Wl,'
7411 lt_prog_compiler_pic='-KPIC'
7412 lt_prog_compiler_static='-Bstatic'
7413 ;;
7414
7415 sysv4*MP*)
7416 if test -d /usr/nec ;then
7417 lt_prog_compiler_pic='-Kconform_pic'
7418 lt_prog_compiler_static='-Bstatic'
7419 fi
7420 ;;
7421
7422 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7423 lt_prog_compiler_wl='-Wl,'
7424 lt_prog_compiler_pic='-KPIC'
7425 lt_prog_compiler_static='-Bstatic'
7426 ;;
7427
7428 unicos*)
7429 lt_prog_compiler_wl='-Wl,'
7430 lt_prog_compiler_can_build_shared=no
7431 ;;
7432
7433 uts4*)
7434 lt_prog_compiler_pic='-pic'
7435 lt_prog_compiler_static='-Bstatic'
7436 ;;
7437
7438 *)
7439 lt_prog_compiler_can_build_shared=no
7440 ;;
7441 esac
7442 fi
7443
7444 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7445 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7446
7447 #
7448 # Check to make sure the PIC flag actually works.
7449 #
7450 if test -n "$lt_prog_compiler_pic"; then
7451
7452 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7453 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7454 if test "${lt_prog_compiler_pic_works+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457 lt_prog_compiler_pic_works=no
7458 ac_outfile=conftest.$ac_objext
7459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7460 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7461 # Insert the option either (1) after the last *FLAGS variable, or
7462 # (2) before a word containing "conftest.", or (3) at the end.
7463 # Note that $ac_compile itself does not contain backslashes and begins
7464 # with a dollar sign (not a hyphen), so the echo should work correctly.
7465 # The option is referenced via a variable to avoid confusing sed.
7466 lt_compile=`echo "$ac_compile" | $SED \
7467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7469 -e 's:$: $lt_compiler_flag:'`
7470 (eval echo "\"\$as_me:7470: $lt_compile\"" >&5)
7471 (eval "$lt_compile" 2>conftest.err)
7472 ac_status=$?
7473 cat conftest.err >&5
7474 echo "$as_me:7474: \$? = $ac_status" >&5
7475 if (exit $ac_status) && test -s "$ac_outfile"; then
7476 # The compiler can only warn and ignore the option if not recognized
7477 # So say no if there are warnings other than the usual output.
7478 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7480 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7481 lt_prog_compiler_pic_works=yes
7482 fi
7483 fi
7484 $rm conftest*
7485
7486 fi
7487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7488 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7489
7490 if test x"$lt_prog_compiler_pic_works" = xyes; then
7491 case $lt_prog_compiler_pic in
7492 "" | " "*) ;;
7493 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7494 esac
7495 else
7496 lt_prog_compiler_pic=
7497 lt_prog_compiler_can_build_shared=no
7498 fi
7499
7500 fi
7501 case $host_os in
7502 # For platforms which do not support PIC, -DPIC is meaningless:
7503 *djgpp*)
7504 lt_prog_compiler_pic=
7505 ;;
7506 *)
7507 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7508 ;;
7509 esac
7510
7511 #
7512 # Check to make sure the static flag actually works.
7513 #
7514 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7515 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7516 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7517 if test "${lt_prog_compiler_static_works+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520 lt_prog_compiler_static_works=no
7521 save_LDFLAGS="$LDFLAGS"
7522 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7523 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7525 # The linker can only warn and ignore the option if not recognized
7526 # So say no if there are warnings
7527 if test -s conftest.err; then
7528 # Append any errors to the config.log.
7529 cat conftest.err 1>&5
7530 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7532 if diff conftest.exp conftest.er2 >/dev/null; then
7533 lt_prog_compiler_static_works=yes
7534 fi
7535 else
7536 lt_prog_compiler_static_works=yes
7537 fi
7538 fi
7539 $rm conftest*
7540 LDFLAGS="$save_LDFLAGS"
7541
7542 fi
7543 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7544 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7545
7546 if test x"$lt_prog_compiler_static_works" = xyes; then
7547 :
7548 else
7549 lt_prog_compiler_static=
7550 fi
7551
7552
7553 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7554 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7555 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 lt_cv_prog_compiler_c_o=no
7559 $rm -r conftest 2>/dev/null
7560 mkdir conftest
7561 cd conftest
7562 mkdir out
7563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7564
7565 lt_compiler_flag="-o out/conftest2.$ac_objext"
7566 # Insert the option either (1) after the last *FLAGS variable, or
7567 # (2) before a word containing "conftest.", or (3) at the end.
7568 # Note that $ac_compile itself does not contain backslashes and begins
7569 # with a dollar sign (not a hyphen), so the echo should work correctly.
7570 lt_compile=`echo "$ac_compile" | $SED \
7571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7573 -e 's:$: $lt_compiler_flag:'`
7574 (eval echo "\"\$as_me:7574: $lt_compile\"" >&5)
7575 (eval "$lt_compile" 2>out/conftest.err)
7576 ac_status=$?
7577 cat out/conftest.err >&5
7578 echo "$as_me:7578: \$? = $ac_status" >&5
7579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7580 then
7581 # The compiler can only warn and ignore the option if not recognized
7582 # So say no if there are warnings
7583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7586 lt_cv_prog_compiler_c_o=yes
7587 fi
7588 fi
7589 chmod u+w . 2>&5
7590 $rm conftest*
7591 # SGI C++ compiler will create directory out/ii_files/ for
7592 # template instantiation
7593 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7594 $rm out/* && rmdir out
7595 cd ..
7596 rmdir conftest
7597 $rm conftest*
7598
7599 fi
7600 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7601 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7602
7603
7604 hard_links="nottested"
7605 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7606 # do not overwrite the value of need_locks provided by the user
7607 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7608 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7609 hard_links=yes
7610 $rm conftest*
7611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7612 touch conftest.a
7613 ln conftest.a conftest.b 2>&5 || hard_links=no
7614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7615 { echo "$as_me:$LINENO: result: $hard_links" >&5
7616 echo "${ECHO_T}$hard_links" >&6; }
7617 if test "$hard_links" = no; then
7618 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7619 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7620 need_locks=warn
7621 fi
7622 else
7623 need_locks=no
7624 fi
7625
7626 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7627 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7628
7629 runpath_var=
7630 allow_undefined_flag=
7631 enable_shared_with_static_runtimes=no
7632 archive_cmds=
7633 archive_expsym_cmds=
7634 old_archive_From_new_cmds=
7635 old_archive_from_expsyms_cmds=
7636 export_dynamic_flag_spec=
7637 whole_archive_flag_spec=
7638 thread_safe_flag_spec=
7639 hardcode_libdir_flag_spec=
7640 hardcode_libdir_flag_spec_ld=
7641 hardcode_libdir_separator=
7642 hardcode_direct=no
7643 hardcode_minus_L=no
7644 hardcode_shlibpath_var=unsupported
7645 link_all_deplibs=unknown
7646 hardcode_automatic=no
7647 module_cmds=
7648 module_expsym_cmds=
7649 always_export_symbols=no
7650 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7651 # include_expsyms should be a list of space-separated symbols to be *always*
7652 # included in the symbol list
7653 include_expsyms=
7654 # exclude_expsyms can be an extended regexp of symbols to exclude
7655 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7656 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7657 # as well as any symbol that contains `d'.
7658 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7660 # platforms (ab)use it in PIC code, but their linkers get confused if
7661 # the symbol is explicitly referenced. Since portable code cannot
7662 # rely on this symbol name, it's probably fine to never include it in
7663 # preloaded symbol tables.
7664 extract_expsyms_cmds=
7665 # Just being paranoid about ensuring that cc_basename is set.
7666 for cc_temp in $compiler""; do
7667 case $cc_temp in
7668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7670 \-*) ;;
7671 *) break;;
7672 esac
7673 done
7674 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7675
7676 case $host_os in
7677 cygwin* | mingw* | pw32*)
7678 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7679 # When not using gcc, we currently assume that we are using
7680 # Microsoft Visual C++.
7681 if test "$GCC" != yes; then
7682 with_gnu_ld=no
7683 fi
7684 ;;
7685 interix*)
7686 # we just hope/assume this is gcc and not c89 (= MSVC++)
7687 with_gnu_ld=yes
7688 ;;
7689 openbsd*)
7690 with_gnu_ld=no
7691 ;;
7692 esac
7693
7694 ld_shlibs=yes
7695 if test "$with_gnu_ld" = yes; then
7696 # If archive_cmds runs LD, not CC, wlarc should be empty
7697 wlarc='${wl}'
7698
7699 # Set some defaults for GNU ld with shared library support. These
7700 # are reset later if shared libraries are not supported. Putting them
7701 # here allows them to be overridden if necessary.
7702 runpath_var=LD_RUN_PATH
7703 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7704 export_dynamic_flag_spec='${wl}--export-dynamic'
7705 # ancient GNU ld didn't support --whole-archive et. al.
7706 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7707 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7708 else
7709 whole_archive_flag_spec=
7710 fi
7711 supports_anon_versioning=no
7712 case `$LD -v 2>/dev/null` in
7713 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7714 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7715 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7716 *\ 2.11.*) ;; # other 2.11 versions
7717 *) supports_anon_versioning=yes ;;
7718 esac
7719
7720 # See if GNU ld supports shared libraries.
7721 case $host_os in
7722 aix3* | aix4* | aix5*)
7723 # On AIX/PPC, the GNU linker is very broken
7724 if test "$host_cpu" != ia64; then
7725 ld_shlibs=no
7726 cat <<EOF 1>&2
7727
7728 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7729 *** to be unable to reliably create shared libraries on AIX.
7730 *** Therefore, libtool is disabling shared libraries support. If you
7731 *** really care for shared libraries, you may want to modify your PATH
7732 *** so that a non-GNU linker is found, and then restart.
7733
7734 EOF
7735 fi
7736 ;;
7737
7738 amigaos*)
7739 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)'
7740 hardcode_libdir_flag_spec='-L$libdir'
7741 hardcode_minus_L=yes
7742
7743 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7744 # that the semantics of dynamic libraries on AmigaOS, at least up
7745 # to version 4, is to share data among multiple programs linked
7746 # with the same dynamic library. Since this doesn't match the
7747 # behavior of shared libraries on other platforms, we can't use
7748 # them.
7749 ld_shlibs=no
7750 ;;
7751
7752 beos*)
7753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7754 allow_undefined_flag=unsupported
7755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7756 # support --undefined. This deserves some investigation. FIXME
7757 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7758 else
7759 ld_shlibs=no
7760 fi
7761 ;;
7762
7763 cygwin* | mingw* | pw32*)
7764 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7765 # as there is no search path for DLLs.
7766 hardcode_libdir_flag_spec='-L$libdir'
7767 allow_undefined_flag=unsupported
7768 always_export_symbols=no
7769 enable_shared_with_static_runtimes=yes
7770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7771
7772 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7774 # If the export-symbols file already is a .def file (1st line
7775 # is EXPORTS), use it as is; otherwise, prepend...
7776 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7777 cp $export_symbols $output_objdir/$soname.def;
7778 else
7779 echo EXPORTS > $output_objdir/$soname.def;
7780 cat $export_symbols >> $output_objdir/$soname.def;
7781 fi~
7782 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7783 else
7784 ld_shlibs=no
7785 fi
7786 ;;
7787
7788 interix[3-9]*)
7789 hardcode_direct=no
7790 hardcode_shlibpath_var=no
7791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7792 export_dynamic_flag_spec='${wl}-E'
7793 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7794 # Instead, shared libraries are loaded at an image base (0x10000000 by
7795 # default) and relocated if they conflict, which is a slow very memory
7796 # consuming and fragmenting process. To avoid this, we pick a random,
7797 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7798 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7799 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7800 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'
7801 ;;
7802
7803 gnu* | linux* | k*bsd*-gnu)
7804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7805 tmp_addflag=
7806 case $cc_basename,$host_cpu in
7807 pgcc*) # Portland Group C compiler
7808 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'
7809 tmp_addflag=' $pic_flag'
7810 ;;
7811 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7812 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'
7813 tmp_addflag=' $pic_flag -Mnomain' ;;
7814 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7815 tmp_addflag=' -i_dynamic' ;;
7816 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7817 tmp_addflag=' -i_dynamic -nofor_main' ;;
7818 ifc* | ifort*) # Intel Fortran compiler
7819 tmp_addflag=' -nofor_main' ;;
7820 esac
7821 case `$CC -V 2>&1 | sed 5q` in
7822 *Sun\ C*) # Sun C 5.9
7823 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7824 tmp_sharedflag='-G' ;;
7825 *Sun\ F*) # Sun Fortran 8.3
7826 tmp_sharedflag='-G' ;;
7827 *)
7828 tmp_sharedflag='-shared' ;;
7829 esac
7830 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7831
7832 if test $supports_anon_versioning = yes; then
7833 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7835 $echo "local: *; };" >> $output_objdir/$libname.ver~
7836 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7837 fi
7838 else
7839 ld_shlibs=no
7840 fi
7841 ;;
7842
7843 netbsd*)
7844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7845 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7846 wlarc=
7847 else
7848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7850 fi
7851 ;;
7852
7853 solaris*)
7854 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7855 ld_shlibs=no
7856 cat <<EOF 1>&2
7857
7858 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7859 *** create shared libraries on Solaris systems. Therefore, libtool
7860 *** is disabling shared libraries support. We urge you to upgrade GNU
7861 *** binutils to release 2.9.1 or newer. Another option is to modify
7862 *** your PATH or compiler configuration so that the native linker is
7863 *** used, and then restart.
7864
7865 EOF
7866 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7868 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7869 else
7870 ld_shlibs=no
7871 fi
7872 ;;
7873
7874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7875 case `$LD -v 2>&1` in
7876 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7877 ld_shlibs=no
7878 cat <<_LT_EOF 1>&2
7879
7880 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7881 *** reliably create shared libraries on SCO systems. Therefore, libtool
7882 *** is disabling shared libraries support. We urge you to upgrade GNU
7883 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7884 *** your PATH or compiler configuration so that the native linker is
7885 *** used, and then restart.
7886
7887 _LT_EOF
7888 ;;
7889 *)
7890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7891 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7894 else
7895 ld_shlibs=no
7896 fi
7897 ;;
7898 esac
7899 ;;
7900
7901 sunos4*)
7902 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7903 wlarc=
7904 hardcode_direct=yes
7905 hardcode_shlibpath_var=no
7906 ;;
7907
7908 *)
7909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7911 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7912 else
7913 ld_shlibs=no
7914 fi
7915 ;;
7916 esac
7917
7918 if test "$ld_shlibs" = no; then
7919 runpath_var=
7920 hardcode_libdir_flag_spec=
7921 export_dynamic_flag_spec=
7922 whole_archive_flag_spec=
7923 fi
7924 else
7925 # PORTME fill in a description of your system's linker (not GNU ld)
7926 case $host_os in
7927 aix3*)
7928 allow_undefined_flag=unsupported
7929 always_export_symbols=yes
7930 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'
7931 # Note: this linker hardcodes the directories in LIBPATH if there
7932 # are no directories specified by -L.
7933 hardcode_minus_L=yes
7934 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7935 # Neither direct hardcoding nor static linking is supported with a
7936 # broken collect2.
7937 hardcode_direct=unsupported
7938 fi
7939 ;;
7940
7941 aix4* | aix5*)
7942 if test "$host_cpu" = ia64; then
7943 # On IA64, the linker does run time linking by default, so we don't
7944 # have to do anything special.
7945 aix_use_runtimelinking=no
7946 exp_sym_flag='-Bexport'
7947 no_entry_flag=""
7948 else
7949 # If we're using GNU nm, then we don't want the "-C" option.
7950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7951 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7952 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'
7953 else
7954 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'
7955 fi
7956 aix_use_runtimelinking=no
7957
7958 # Test if we are trying to use run time linking or normal
7959 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7960 # need to do runtime linking.
7961 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7962 for ld_flag in $LDFLAGS; do
7963 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7964 aix_use_runtimelinking=yes
7965 break
7966 fi
7967 done
7968 ;;
7969 esac
7970
7971 exp_sym_flag='-bexport'
7972 no_entry_flag='-bnoentry'
7973 fi
7974
7975 # When large executables or shared objects are built, AIX ld can
7976 # have problems creating the table of contents. If linking a library
7977 # or program results in "error TOC overflow" add -mminimal-toc to
7978 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7979 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7980
7981 archive_cmds=''
7982 hardcode_direct=yes
7983 hardcode_libdir_separator=':'
7984 link_all_deplibs=yes
7985
7986 if test "$GCC" = yes; then
7987 case $host_os in aix4.[012]|aix4.[012].*)
7988 # We only want to do this on AIX 4.2 and lower, the check
7989 # below for broken collect2 doesn't work under 4.3+
7990 collect2name=`${CC} -print-prog-name=collect2`
7991 if test -f "$collect2name" && \
7992 strings "$collect2name" | grep resolve_lib_name >/dev/null
7993 then
7994 # We have reworked collect2
7995 :
7996 else
7997 # We have old collect2
7998 hardcode_direct=unsupported
7999 # It fails to find uninstalled libraries when the uninstalled
8000 # path is not listed in the libpath. Setting hardcode_minus_L
8001 # to unsupported forces relinking
8002 hardcode_minus_L=yes
8003 hardcode_libdir_flag_spec='-L$libdir'
8004 hardcode_libdir_separator=
8005 fi
8006 ;;
8007 esac
8008 shared_flag='-shared'
8009 if test "$aix_use_runtimelinking" = yes; then
8010 shared_flag="$shared_flag "'${wl}-G'
8011 fi
8012 else
8013 # not using gcc
8014 if test "$host_cpu" = ia64; then
8015 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8016 # chokes on -Wl,-G. The following line is correct:
8017 shared_flag='-G'
8018 else
8019 if test "$aix_use_runtimelinking" = yes; then
8020 shared_flag='${wl}-G'
8021 else
8022 shared_flag='${wl}-bM:SRE'
8023 fi
8024 fi
8025 fi
8026
8027 # It seems that -bexpall does not export symbols beginning with
8028 # underscore (_), so it is better to generate a list of symbols to export.
8029 always_export_symbols=yes
8030 if test "$aix_use_runtimelinking" = yes; then
8031 # Warning - without using the other runtime loading flags (-brtl),
8032 # -berok will link without error, but may produce a broken library.
8033 allow_undefined_flag='-berok'
8034 # Determine the default libpath from the value encoded in an empty executable.
8035 cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h. */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041
8042 int
8043 main ()
8044 {
8045
8046 ;
8047 return 0;
8048 }
8049 _ACEOF
8050 rm -f conftest.$ac_objext conftest$ac_exeext
8051 if { (ac_try="$ac_link"
8052 case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8055 esac
8056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_link") 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && {
8064 test -z "$ac_c_werror_flag" ||
8065 test ! -s conftest.err
8066 } && test -s conftest$ac_exeext &&
8067 $as_test_x conftest$ac_exeext; then
8068
8069 lt_aix_libpath_sed='
8070 /Import File Strings/,/^$/ {
8071 /^0/ {
8072 s/^0 *\(.*\)$/\1/
8073 p
8074 }
8075 }'
8076 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8077 # Check for a 64-bit object if we didn't find anything.
8078 if test -z "$aix_libpath"; then
8079 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8080 fi
8081 else
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085
8086 fi
8087
8088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8089 conftest$ac_exeext conftest.$ac_ext
8090 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8091
8092 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8093 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"
8094 else
8095 if test "$host_cpu" = ia64; then
8096 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8097 allow_undefined_flag="-z nodefs"
8098 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"
8099 else
8100 # Determine the default libpath from the value encoded in an empty executable.
8101 cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h. */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107
8108 int
8109 main ()
8110 {
8111
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest.$ac_objext conftest$ac_exeext
8117 if { (ac_try="$ac_link"
8118 case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_link") 2>conftest.er1
8124 ac_status=$?
8125 grep -v '^ *+' conftest.er1 >conftest.err
8126 rm -f conftest.er1
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
8132 } && test -s conftest$ac_exeext &&
8133 $as_test_x conftest$ac_exeext; then
8134
8135 lt_aix_libpath_sed='
8136 /Import File Strings/,/^$/ {
8137 /^0/ {
8138 s/^0 *\(.*\)$/\1/
8139 p
8140 }
8141 }'
8142 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8143 # Check for a 64-bit object if we didn't find anything.
8144 if test -z "$aix_libpath"; then
8145 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8146 fi
8147 else
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151
8152 fi
8153
8154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8155 conftest$ac_exeext conftest.$ac_ext
8156 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8157
8158 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8159 # Warning - without using the other run time loading flags,
8160 # -berok will link without error, but may produce a broken library.
8161 no_undefined_flag=' ${wl}-bernotok'
8162 allow_undefined_flag=' ${wl}-berok'
8163 # Exported symbols can be pulled into shared objects from archives
8164 whole_archive_flag_spec='$convenience'
8165 archive_cmds_need_lc=yes
8166 # This is similar to how AIX traditionally builds its shared libraries.
8167 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'
8168 fi
8169 fi
8170 ;;
8171
8172 amigaos*)
8173 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)'
8174 hardcode_libdir_flag_spec='-L$libdir'
8175 hardcode_minus_L=yes
8176 # see comment about different semantics on the GNU ld section
8177 ld_shlibs=no
8178 ;;
8179
8180 bsdi[45]*)
8181 export_dynamic_flag_spec=-rdynamic
8182 ;;
8183
8184 cygwin* | mingw* | pw32*)
8185 # When not using gcc, we currently assume that we are using
8186 # Microsoft Visual C++.
8187 # hardcode_libdir_flag_spec is actually meaningless, as there is
8188 # no search path for DLLs.
8189 hardcode_libdir_flag_spec=' '
8190 allow_undefined_flag=unsupported
8191 # Tell ltmain to make .lib files, not .a files.
8192 libext=lib
8193 # Tell ltmain to make .dll files, not .so files.
8194 shrext_cmds=".dll"
8195 # FIXME: Setting linknames here is a bad hack.
8196 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8197 # The linker will automatically build a .lib file if we build a DLL.
8198 old_archive_From_new_cmds='true'
8199 # FIXME: Should let the user specify the lib program.
8200 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8201 fix_srcfile_path='`cygpath -w "$srcfile"`'
8202 enable_shared_with_static_runtimes=yes
8203 ;;
8204
8205 darwin* | rhapsody*)
8206 case $host_os in
8207 rhapsody* | darwin1.[012])
8208 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8209 ;;
8210 *) # Darwin 1.3 on
8211 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8212 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8213 else
8214 case ${MACOSX_DEPLOYMENT_TARGET} in
8215 10.[012])
8216 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8217 ;;
8218 10.*)
8219 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8220 ;;
8221 esac
8222 fi
8223 ;;
8224 esac
8225 archive_cmds_need_lc=no
8226 hardcode_direct=no
8227 hardcode_automatic=yes
8228 hardcode_shlibpath_var=unsupported
8229 whole_archive_flag_spec=''
8230 link_all_deplibs=yes
8231 if test "$GCC" = yes ; then
8232 output_verbose_link_cmd='echo'
8233 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8234 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8235 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8236 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}'
8237 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}'
8238 else
8239 case $cc_basename in
8240 xlc*)
8241 output_verbose_link_cmd='echo'
8242 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8243 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8244 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8245 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8246 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}'
8247 ;;
8248 *)
8249 ld_shlibs=no
8250 ;;
8251 esac
8252 fi
8253 ;;
8254
8255 dgux*)
8256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8257 hardcode_libdir_flag_spec='-L$libdir'
8258 hardcode_shlibpath_var=no
8259 ;;
8260
8261 freebsd1*)
8262 ld_shlibs=no
8263 ;;
8264
8265 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8266 # support. Future versions do this automatically, but an explicit c++rt0.o
8267 # does not break anything, and helps significantly (at the cost of a little
8268 # extra space).
8269 freebsd2.2*)
8270 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8271 hardcode_libdir_flag_spec='-R$libdir'
8272 hardcode_direct=yes
8273 hardcode_shlibpath_var=no
8274 ;;
8275
8276 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8277 freebsd2*)
8278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8279 hardcode_direct=yes
8280 hardcode_minus_L=yes
8281 hardcode_shlibpath_var=no
8282 ;;
8283
8284 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8285 freebsd* | dragonfly*)
8286 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8287 hardcode_libdir_flag_spec='-R$libdir'
8288 hardcode_direct=yes
8289 hardcode_shlibpath_var=no
8290 ;;
8291
8292 hpux9*)
8293 if test "$GCC" = yes; then
8294 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'
8295 else
8296 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'
8297 fi
8298 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8299 hardcode_libdir_separator=:
8300 hardcode_direct=yes
8301
8302 # hardcode_minus_L: Not really in the search PATH,
8303 # but as the default location of the library.
8304 hardcode_minus_L=yes
8305 export_dynamic_flag_spec='${wl}-E'
8306 ;;
8307
8308 hpux10*)
8309 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8310 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8311 else
8312 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8313 fi
8314 if test "$with_gnu_ld" = no; then
8315 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8316 hardcode_libdir_separator=:
8317
8318 hardcode_direct=yes
8319 export_dynamic_flag_spec='${wl}-E'
8320
8321 # hardcode_minus_L: Not really in the search PATH,
8322 # but as the default location of the library.
8323 hardcode_minus_L=yes
8324 fi
8325 ;;
8326
8327 hpux11*)
8328 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8329 case $host_cpu in
8330 hppa*64*)
8331 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8332 ;;
8333 ia64*)
8334 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8335 ;;
8336 *)
8337 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8338 ;;
8339 esac
8340 else
8341 case $host_cpu in
8342 hppa*64*)
8343 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8344 ;;
8345 ia64*)
8346 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8347 ;;
8348 *)
8349 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8350 ;;
8351 esac
8352 fi
8353 if test "$with_gnu_ld" = no; then
8354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8355 hardcode_libdir_separator=:
8356
8357 case $host_cpu in
8358 hppa*64*|ia64*)
8359 hardcode_libdir_flag_spec_ld='+b $libdir'
8360 hardcode_direct=no
8361 hardcode_shlibpath_var=no
8362 ;;
8363 *)
8364 hardcode_direct=yes
8365 export_dynamic_flag_spec='${wl}-E'
8366
8367 # hardcode_minus_L: Not really in the search PATH,
8368 # but as the default location of the library.
8369 hardcode_minus_L=yes
8370 ;;
8371 esac
8372 fi
8373 ;;
8374
8375 irix5* | irix6* | nonstopux*)
8376 if test "$GCC" = yes; then
8377 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'
8378 else
8379 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'
8380 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8381 fi
8382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8383 hardcode_libdir_separator=:
8384 link_all_deplibs=yes
8385 ;;
8386
8387 netbsd*)
8388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8390 else
8391 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8392 fi
8393 hardcode_libdir_flag_spec='-R$libdir'
8394 hardcode_direct=yes
8395 hardcode_shlibpath_var=no
8396 ;;
8397
8398 newsos6)
8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_direct=yes
8401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8402 hardcode_libdir_separator=:
8403 hardcode_shlibpath_var=no
8404 ;;
8405
8406 openbsd*)
8407 if test -f /usr/libexec/ld.so; then
8408 hardcode_direct=yes
8409 hardcode_shlibpath_var=no
8410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8412 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8414 export_dynamic_flag_spec='${wl}-E'
8415 else
8416 case $host_os in
8417 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8419 hardcode_libdir_flag_spec='-R$libdir'
8420 ;;
8421 *)
8422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8424 ;;
8425 esac
8426 fi
8427 else
8428 ld_shlibs=no
8429 fi
8430 ;;
8431
8432 os2*)
8433 hardcode_libdir_flag_spec='-L$libdir'
8434 hardcode_minus_L=yes
8435 allow_undefined_flag=unsupported
8436 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'
8437 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8438 ;;
8439
8440 osf3*)
8441 if test "$GCC" = yes; then
8442 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8443 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'
8444 else
8445 allow_undefined_flag=' -expect_unresolved \*'
8446 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'
8447 fi
8448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8449 hardcode_libdir_separator=:
8450 ;;
8451
8452 osf4* | osf5*) # as osf3* with the addition of -msym flag
8453 if test "$GCC" = yes; then
8454 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8455 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'
8456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8457 else
8458 allow_undefined_flag=' -expect_unresolved \*'
8459 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'
8460 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8461 $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'
8462
8463 # Both c and cxx compiler support -rpath directly
8464 hardcode_libdir_flag_spec='-rpath $libdir'
8465 fi
8466 hardcode_libdir_separator=:
8467 ;;
8468
8469 solaris*)
8470 no_undefined_flag=' -z text'
8471 if test "$GCC" = yes; then
8472 wlarc='${wl}'
8473 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8474 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8475 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8476 else
8477 wlarc=''
8478 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8480 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8481 fi
8482 hardcode_libdir_flag_spec='-R$libdir'
8483 hardcode_shlibpath_var=no
8484 case $host_os in
8485 solaris2.[0-5] | solaris2.[0-5].*) ;;
8486 *)
8487 # The compiler driver will combine and reorder linker options,
8488 # but understands `-z linker_flag'. GCC discards it without `$wl',
8489 # but is careful enough not to reorder.
8490 # Supported since Solaris 2.6 (maybe 2.5.1?)
8491 if test "$GCC" = yes; then
8492 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8493 else
8494 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8495 fi
8496 ;;
8497 esac
8498 link_all_deplibs=yes
8499 ;;
8500
8501 sunos4*)
8502 if test "x$host_vendor" = xsequent; then
8503 # Use $CC to link under sequent, because it throws in some extra .o
8504 # files that make .init and .fini sections work.
8505 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8506 else
8507 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8508 fi
8509 hardcode_libdir_flag_spec='-L$libdir'
8510 hardcode_direct=yes
8511 hardcode_minus_L=yes
8512 hardcode_shlibpath_var=no
8513 ;;
8514
8515 sysv4)
8516 case $host_vendor in
8517 sni)
8518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8519 hardcode_direct=yes # is this really true???
8520 ;;
8521 siemens)
8522 ## LD is ld it makes a PLAMLIB
8523 ## CC just makes a GrossModule.
8524 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8525 reload_cmds='$CC -r -o $output$reload_objs'
8526 hardcode_direct=no
8527 ;;
8528 motorola)
8529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8531 ;;
8532 esac
8533 runpath_var='LD_RUN_PATH'
8534 hardcode_shlibpath_var=no
8535 ;;
8536
8537 sysv4.3*)
8538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8539 hardcode_shlibpath_var=no
8540 export_dynamic_flag_spec='-Bexport'
8541 ;;
8542
8543 sysv4*MP*)
8544 if test -d /usr/nec; then
8545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8546 hardcode_shlibpath_var=no
8547 runpath_var=LD_RUN_PATH
8548 hardcode_runpath_var=yes
8549 ld_shlibs=yes
8550 fi
8551 ;;
8552
8553 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8554 no_undefined_flag='${wl}-z,text'
8555 archive_cmds_need_lc=no
8556 hardcode_shlibpath_var=no
8557 runpath_var='LD_RUN_PATH'
8558
8559 if test "$GCC" = yes; then
8560 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8561 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8562 else
8563 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8564 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8565 fi
8566 ;;
8567
8568 sysv5* | sco3.2v5* | sco5v6*)
8569 # Note: We can NOT use -z defs as we might desire, because we do not
8570 # link with -lc, and that would cause any symbols used from libc to
8571 # always be unresolved, which means just about no library would
8572 # ever link correctly. If we're not using GNU ld we use -z text
8573 # though, which does catch some bad symbols but isn't as heavy-handed
8574 # as -z defs.
8575 no_undefined_flag='${wl}-z,text'
8576 allow_undefined_flag='${wl}-z,nodefs'
8577 archive_cmds_need_lc=no
8578 hardcode_shlibpath_var=no
8579 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8580 hardcode_libdir_separator=':'
8581 link_all_deplibs=yes
8582 export_dynamic_flag_spec='${wl}-Bexport'
8583 runpath_var='LD_RUN_PATH'
8584
8585 if test "$GCC" = yes; then
8586 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8587 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8588 else
8589 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8590 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8591 fi
8592 ;;
8593
8594 uts4*)
8595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8596 hardcode_libdir_flag_spec='-L$libdir'
8597 hardcode_shlibpath_var=no
8598 ;;
8599
8600 *)
8601 ld_shlibs=no
8602 ;;
8603 esac
8604 fi
8605
8606 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8607 echo "${ECHO_T}$ld_shlibs" >&6; }
8608 test "$ld_shlibs" = no && can_build_shared=no
8609
8610 #
8611 # Do we need to explicitly link libc?
8612 #
8613 case "x$archive_cmds_need_lc" in
8614 x|xyes)
8615 # Assume -lc should be added
8616 archive_cmds_need_lc=yes
8617
8618 if test "$enable_shared" = yes && test "$GCC" = yes; then
8619 case $archive_cmds in
8620 *'~'*)
8621 # FIXME: we may have to deal with multi-command sequences.
8622 ;;
8623 '$CC '*)
8624 # Test whether the compiler implicitly links with -lc since on some
8625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8626 # to ld, don't add -lc before -lgcc.
8627 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8628 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8629 $rm conftest*
8630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8631
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } 2>conftest.err; then
8637 soname=conftest
8638 lib=conftest
8639 libobjs=conftest.$ac_objext
8640 deplibs=
8641 wl=$lt_prog_compiler_wl
8642 pic_flag=$lt_prog_compiler_pic
8643 compiler_flags=-v
8644 linker_flags=-v
8645 verstring=
8646 output_objdir=.
8647 libname=conftest
8648 lt_save_allow_undefined_flag=$allow_undefined_flag
8649 allow_undefined_flag=
8650 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8651 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }
8655 then
8656 archive_cmds_need_lc=no
8657 else
8658 archive_cmds_need_lc=yes
8659 fi
8660 allow_undefined_flag=$lt_save_allow_undefined_flag
8661 else
8662 cat conftest.err 1>&5
8663 fi
8664 $rm conftest*
8665 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8666 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8667 ;;
8668 esac
8669 fi
8670 ;;
8671 esac
8672
8673 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8674 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8675 library_names_spec=
8676 libname_spec='lib$name'
8677 soname_spec=
8678 shrext_cmds=".so"
8679 postinstall_cmds=
8680 postuninstall_cmds=
8681 finish_cmds=
8682 finish_eval=
8683 shlibpath_var=
8684 shlibpath_overrides_runpath=unknown
8685 version_type=none
8686 dynamic_linker="$host_os ld.so"
8687 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8688
8689 if test "$GCC" = yes; then
8690 case $host_os in
8691 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8692 *) lt_awk_arg="/^libraries:/" ;;
8693 esac
8694 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8695 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8696 # if the path contains ";" then we assume it to be the separator
8697 # otherwise default to the standard path separator (i.e. ":") - it is
8698 # assumed that no part of a normal pathname contains ";" but that should
8699 # okay in the real world where ";" in dirpaths is itself problematic.
8700 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8701 else
8702 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8703 fi
8704 # Ok, now we have the path, separated by spaces, we can step through it
8705 # and add multilib dir if necessary.
8706 lt_tmp_lt_search_path_spec=
8707 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8708 for lt_sys_path in $lt_search_path_spec; do
8709 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8710 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8711 else
8712 test -d "$lt_sys_path" && \
8713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8714 fi
8715 done
8716 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8717 BEGIN {RS=" "; FS="/|\n";} {
8718 lt_foo="";
8719 lt_count=0;
8720 for (lt_i = NF; lt_i > 0; lt_i--) {
8721 if ($lt_i != "" && $lt_i != ".") {
8722 if ($lt_i == "..") {
8723 lt_count++;
8724 } else {
8725 if (lt_count == 0) {
8726 lt_foo="/" $lt_i lt_foo;
8727 } else {
8728 lt_count--;
8729 }
8730 }
8731 }
8732 }
8733 if (lt_foo != "") { lt_freq[lt_foo]++; }
8734 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8735 }'`
8736 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8737 else
8738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8739 fi
8740 need_lib_prefix=unknown
8741 hardcode_into_libs=no
8742
8743 # when you set need_version to no, make sure it does not cause -set_version
8744 # flags to be left without arguments
8745 need_version=unknown
8746
8747 case $host_os in
8748 aix3*)
8749 version_type=linux
8750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8751 shlibpath_var=LIBPATH
8752
8753 # AIX 3 has no versioning support, so we append a major version to the name.
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 ;;
8756
8757 aix4* | aix5*)
8758 version_type=linux
8759 need_lib_prefix=no
8760 need_version=no
8761 hardcode_into_libs=yes
8762 if test "$host_cpu" = ia64; then
8763 # AIX 5 supports IA64
8764 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8765 shlibpath_var=LD_LIBRARY_PATH
8766 else
8767 # With GCC up to 2.95.x, collect2 would create an import file
8768 # for dependence libraries. The import file would start with
8769 # the line `#! .'. This would cause the generated library to
8770 # depend on `.', always an invalid library. This was fixed in
8771 # development snapshots of GCC prior to 3.0.
8772 case $host_os in
8773 aix4 | aix4.[01] | aix4.[01].*)
8774 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8775 echo ' yes '
8776 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8777 :
8778 else
8779 can_build_shared=no
8780 fi
8781 ;;
8782 esac
8783 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8784 # soname into executable. Probably we can add versioning support to
8785 # collect2, so additional links can be useful in future.
8786 if test "$aix_use_runtimelinking" = yes; then
8787 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8788 # instead of lib<name>.a to let people know that these are not
8789 # typical AIX shared libraries.
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 else
8792 # We preserve .a as extension for shared libraries through AIX4.2
8793 # and later when we are not doing run time linking.
8794 library_names_spec='${libname}${release}.a $libname.a'
8795 soname_spec='${libname}${release}${shared_ext}$major'
8796 fi
8797 shlibpath_var=LIBPATH
8798 fi
8799 ;;
8800
8801 amigaos*)
8802 library_names_spec='$libname.ixlibrary $libname.a'
8803 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8804 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'
8805 ;;
8806
8807 beos*)
8808 library_names_spec='${libname}${shared_ext}'
8809 dynamic_linker="$host_os ld.so"
8810 shlibpath_var=LIBRARY_PATH
8811 ;;
8812
8813 bsdi[45]*)
8814 version_type=linux
8815 need_version=no
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8821 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8822 # the default ld.so.conf also contains /usr/contrib/lib and
8823 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8824 # libtool to hard-code these into programs
8825 ;;
8826
8827 cygwin* | mingw* | pw32*)
8828 version_type=windows
8829 shrext_cmds=".dll"
8830 need_version=no
8831 need_lib_prefix=no
8832
8833 case $GCC,$host_os in
8834 yes,cygwin* | yes,mingw* | yes,pw32*)
8835 library_names_spec='$libname.dll.a'
8836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8837 postinstall_cmds='base_file=`basename \${file}`~
8838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8839 dldir=$destdir/`dirname \$dlpath`~
8840 test -d \$dldir || mkdir -p \$dldir~
8841 $install_prog $dir/$dlname \$dldir/$dlname~
8842 chmod a+x \$dldir/$dlname'
8843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8844 dlpath=$dir/\$dldll~
8845 $rm \$dlpath'
8846 shlibpath_overrides_runpath=yes
8847
8848 case $host_os in
8849 cygwin*)
8850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8851 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8852 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8853 ;;
8854 mingw*)
8855 # MinGW DLLs use traditional 'lib' prefix
8856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8858 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8859 # It is most probably a Windows format PATH printed by
8860 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8861 # path with ; separators, and with drive letters. We can handle the
8862 # drive letters (cygwin fileutils understands them), so leave them,
8863 # especially as we might pass files found there to a mingw objdump,
8864 # which wouldn't understand a cygwinified path. Ahh.
8865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8866 else
8867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8868 fi
8869 ;;
8870 pw32*)
8871 # pw32 DLLs use 'pw' prefix rather than 'lib'
8872 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8873 ;;
8874 esac
8875 ;;
8876
8877 *)
8878 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8879 ;;
8880 esac
8881 dynamic_linker='Win32 ld.exe'
8882 # FIXME: first we should search . and the directory the executable is in
8883 shlibpath_var=PATH
8884 ;;
8885
8886 darwin* | rhapsody*)
8887 dynamic_linker="$host_os dyld"
8888 version_type=darwin
8889 need_lib_prefix=no
8890 need_version=no
8891 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8892 soname_spec='${libname}${release}${major}$shared_ext'
8893 shlibpath_overrides_runpath=yes
8894 shlibpath_var=DYLD_LIBRARY_PATH
8895 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8896
8897 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8899 ;;
8900
8901 dgux*)
8902 version_type=linux
8903 need_lib_prefix=no
8904 need_version=no
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 ;;
8909
8910 freebsd1*)
8911 dynamic_linker=no
8912 ;;
8913
8914 freebsd* | dragonfly*)
8915 # DragonFly does not have aout. When/if they implement a new
8916 # versioning mechanism, adjust this.
8917 if test -x /usr/bin/objformat; then
8918 objformat=`/usr/bin/objformat`
8919 else
8920 case $host_os in
8921 freebsd[123]*) objformat=aout ;;
8922 *) objformat=elf ;;
8923 esac
8924 fi
8925 version_type=freebsd-$objformat
8926 case $version_type in
8927 freebsd-elf*)
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8929 need_version=no
8930 need_lib_prefix=no
8931 ;;
8932 freebsd-*)
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8934 need_version=yes
8935 ;;
8936 esac
8937 shlibpath_var=LD_LIBRARY_PATH
8938 case $host_os in
8939 freebsd2*)
8940 shlibpath_overrides_runpath=yes
8941 ;;
8942 freebsd3.[01]* | freebsdelf3.[01]*)
8943 shlibpath_overrides_runpath=yes
8944 hardcode_into_libs=yes
8945 ;;
8946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8948 shlibpath_overrides_runpath=no
8949 hardcode_into_libs=yes
8950 ;;
8951 *) # from 4.6 on, and DragonFly
8952 shlibpath_overrides_runpath=yes
8953 hardcode_into_libs=yes
8954 ;;
8955 esac
8956 ;;
8957
8958 gnu*)
8959 version_type=linux
8960 need_lib_prefix=no
8961 need_version=no
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 hardcode_into_libs=yes
8966 ;;
8967
8968 hpux9* | hpux10* | hpux11*)
8969 # Give a soname corresponding to the major version so that dld.sl refuses to
8970 # link against other versions.
8971 version_type=sunos
8972 need_lib_prefix=no
8973 need_version=no
8974 case $host_cpu in
8975 ia64*)
8976 shrext_cmds='.so'
8977 hardcode_into_libs=yes
8978 dynamic_linker="$host_os dld.so"
8979 shlibpath_var=LD_LIBRARY_PATH
8980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 if test "X$HPUX_IA64_MODE" = X32; then
8984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8985 else
8986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8987 fi
8988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8989 ;;
8990 hppa*64*)
8991 shrext_cmds='.sl'
8992 hardcode_into_libs=yes
8993 dynamic_linker="$host_os dld.sl"
8994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9000 ;;
9001 *)
9002 shrext_cmds='.sl'
9003 dynamic_linker="$host_os dld.sl"
9004 shlibpath_var=SHLIB_PATH
9005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 ;;
9009 esac
9010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9011 postinstall_cmds='chmod 555 $lib'
9012 ;;
9013
9014 interix[3-9]*)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=no
9023 hardcode_into_libs=yes
9024 ;;
9025
9026 irix5* | irix6* | nonstopux*)
9027 case $host_os in
9028 nonstopux*) version_type=nonstopux ;;
9029 *)
9030 if test "$lt_cv_prog_gnu_ld" = yes; then
9031 version_type=linux
9032 else
9033 version_type=irix
9034 fi ;;
9035 esac
9036 need_lib_prefix=no
9037 need_version=no
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9040 case $host_os in
9041 irix5* | nonstopux*)
9042 libsuff= shlibsuff=
9043 ;;
9044 *)
9045 case $LD in # libtool.m4 will add one of these switches to LD
9046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9047 libsuff= shlibsuff= libmagic=32-bit;;
9048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9049 libsuff=32 shlibsuff=N32 libmagic=N32;;
9050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9051 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9052 *) libsuff= shlibsuff= libmagic=never-match;;
9053 esac
9054 ;;
9055 esac
9056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9057 shlibpath_overrides_runpath=no
9058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9060 hardcode_into_libs=yes
9061 ;;
9062
9063 # No shared lib support for Linux oldld, aout, or coff.
9064 linux*oldld* | linux*aout* | linux*coff*)
9065 dynamic_linker=no
9066 ;;
9067
9068 # This must be Linux ELF.
9069 linux* | k*bsd*-gnu)
9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=no
9078 # This implies no fast_install, which is unacceptable.
9079 # Some rework will be needed to allow for fast_install
9080 # before this can be enabled.
9081 hardcode_into_libs=yes
9082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9084
9085 # Append ld.so.conf contents to the search path
9086 if test -f /etc/ld.so.conf; then
9087 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9088 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9089 fi
9090
9091 # We used to test for /lib/ld.so.1 and disable shared libraries on
9092 # powerpc, because MkLinux only supported shared libraries with the
9093 # GNU dynamic linker. Since this was broken with cross compilers,
9094 # most powerpc-linux boxes support dynamic linking these days and
9095 # people can always --disable-shared, the test was removed, and we
9096 # assume the GNU/Linux dynamic linker is in use.
9097 dynamic_linker='GNU/Linux ld.so'
9098 ;;
9099
9100 netbsd*)
9101 version_type=sunos
9102 need_lib_prefix=no
9103 need_version=no
9104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9107 dynamic_linker='NetBSD (a.out) ld.so'
9108 else
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 dynamic_linker='NetBSD ld.elf_so'
9112 fi
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes
9115 hardcode_into_libs=yes
9116 ;;
9117
9118 newsos6)
9119 version_type=linux
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=yes
9123 ;;
9124
9125 nto-qnx*)
9126 version_type=linux
9127 need_lib_prefix=no
9128 need_version=no
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9133 ;;
9134
9135 openbsd*)
9136 version_type=sunos
9137 sys_lib_dlsearch_path_spec="/usr/lib"
9138 need_lib_prefix=no
9139 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9140 case $host_os in
9141 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9142 *) need_version=no ;;
9143 esac
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9148 case $host_os in
9149 openbsd2.[89] | openbsd2.[89].*)
9150 shlibpath_overrides_runpath=no
9151 ;;
9152 *)
9153 shlibpath_overrides_runpath=yes
9154 ;;
9155 esac
9156 else
9157 shlibpath_overrides_runpath=yes
9158 fi
9159 ;;
9160
9161 os2*)
9162 libname_spec='$name'
9163 shrext_cmds=".dll"
9164 need_lib_prefix=no
9165 library_names_spec='$libname${shared_ext} $libname.a'
9166 dynamic_linker='OS/2 ld.exe'
9167 shlibpath_var=LIBPATH
9168 ;;
9169
9170 osf3* | osf4* | osf5*)
9171 version_type=osf
9172 need_lib_prefix=no
9173 need_version=no
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9178 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9179 ;;
9180
9181 rdos*)
9182 dynamic_linker=no
9183 ;;
9184
9185 solaris*)
9186 version_type=linux
9187 need_lib_prefix=no
9188 need_version=no
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 shlibpath_overrides_runpath=yes
9193 hardcode_into_libs=yes
9194 # ldd complains unless libraries are executable
9195 postinstall_cmds='chmod +x $lib'
9196 ;;
9197
9198 sunos4*)
9199 version_type=sunos
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9201 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=yes
9204 if test "$with_gnu_ld" = yes; then
9205 need_lib_prefix=no
9206 fi
9207 need_version=yes
9208 ;;
9209
9210 sysv4 | sysv4.3*)
9211 version_type=linux
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 case $host_vendor in
9216 sni)
9217 shlibpath_overrides_runpath=no
9218 need_lib_prefix=no
9219 export_dynamic_flag_spec='${wl}-Blargedynsym'
9220 runpath_var=LD_RUN_PATH
9221 ;;
9222 siemens)
9223 need_lib_prefix=no
9224 ;;
9225 motorola)
9226 need_lib_prefix=no
9227 need_version=no
9228 shlibpath_overrides_runpath=no
9229 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9230 ;;
9231 esac
9232 ;;
9233
9234 sysv4*MP*)
9235 if test -d /usr/nec ;then
9236 version_type=linux
9237 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9238 soname_spec='$libname${shared_ext}.$major'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 fi
9241 ;;
9242
9243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9244 version_type=freebsd-elf
9245 need_lib_prefix=no
9246 need_version=no
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 hardcode_into_libs=yes
9251 if test "$with_gnu_ld" = yes; then
9252 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9253 shlibpath_overrides_runpath=no
9254 else
9255 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9256 shlibpath_overrides_runpath=yes
9257 case $host_os in
9258 sco3.2v5*)
9259 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9260 ;;
9261 esac
9262 fi
9263 sys_lib_dlsearch_path_spec='/usr/lib'
9264 ;;
9265
9266 uts4*)
9267 version_type=linux
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 ;;
9272
9273 *)
9274 dynamic_linker=no
9275 ;;
9276 esac
9277 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9278 echo "${ECHO_T}$dynamic_linker" >&6; }
9279 test "$dynamic_linker" = no && can_build_shared=no
9280
9281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9282 if test "$GCC" = yes; then
9283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9284 fi
9285
9286 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9287 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9288 hardcode_action=
9289 if test -n "$hardcode_libdir_flag_spec" || \
9290 test -n "$runpath_var" || \
9291 test "X$hardcode_automatic" = "Xyes" ; then
9292
9293 # We can hardcode non-existant directories.
9294 if test "$hardcode_direct" != no &&
9295 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9296 # have to relink, otherwise we might link with an installed library
9297 # when we should be linking with a yet-to-be-installed one
9298 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9299 test "$hardcode_minus_L" != no; then
9300 # Linking always hardcodes the temporary library directory.
9301 hardcode_action=relink
9302 else
9303 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9304 hardcode_action=immediate
9305 fi
9306 else
9307 # We cannot hardcode anything, or else we can only hardcode existing
9308 # directories.
9309 hardcode_action=unsupported
9310 fi
9311 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9312 echo "${ECHO_T}$hardcode_action" >&6; }
9313
9314 if test "$hardcode_action" = relink; then
9315 # Fast installation is not supported
9316 enable_fast_install=no
9317 elif test "$shlibpath_overrides_runpath" = yes ||
9318 test "$enable_shared" = no; then
9319 # Fast installation is not necessary
9320 enable_fast_install=needless
9321 fi
9322
9323 striplib=
9324 old_striplib=
9325 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9326 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9327 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9328 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9329 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9330 { echo "$as_me:$LINENO: result: yes" >&5
9331 echo "${ECHO_T}yes" >&6; }
9332 else
9333 # FIXME - insert some real tests, host_os isn't really good enough
9334 case $host_os in
9335 darwin*)
9336 if test -n "$STRIP" ; then
9337 striplib="$STRIP -x"
9338 old_striplib="$STRIP -S"
9339 { echo "$as_me:$LINENO: result: yes" >&5
9340 echo "${ECHO_T}yes" >&6; }
9341 else
9342 { echo "$as_me:$LINENO: result: no" >&5
9343 echo "${ECHO_T}no" >&6; }
9344 fi
9345 ;;
9346 *)
9347 { echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6; }
9349 ;;
9350 esac
9351 fi
9352
9353 if test "x$enable_dlopen" != xyes; then
9354 enable_dlopen=unknown
9355 enable_dlopen_self=unknown
9356 enable_dlopen_self_static=unknown
9357 else
9358 lt_cv_dlopen=no
9359 lt_cv_dlopen_libs=
9360
9361 case $host_os in
9362 beos*)
9363 lt_cv_dlopen="load_add_on"
9364 lt_cv_dlopen_libs=
9365 lt_cv_dlopen_self=yes
9366 ;;
9367
9368 mingw* | pw32*)
9369 lt_cv_dlopen="LoadLibrary"
9370 lt_cv_dlopen_libs=
9371 ;;
9372
9373 cygwin*)
9374 lt_cv_dlopen="dlopen"
9375 lt_cv_dlopen_libs=
9376 ;;
9377
9378 darwin*)
9379 # if libdl is installed we need to link against it
9380 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9381 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9382 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385 ac_check_lib_save_LIBS=$LIBS
9386 LIBS="-ldl $LIBS"
9387 cat >conftest.$ac_ext <<_ACEOF
9388 /* confdefs.h. */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h. */
9393
9394 /* Override any GCC internal prototype to avoid an error.
9395 Use char because int might match the return type of a GCC
9396 builtin and then its argument prototype would still apply. */
9397 #ifdef __cplusplus
9398 extern "C"
9399 #endif
9400 char dlopen ();
9401 int
9402 main ()
9403 {
9404 return dlopen ();
9405 ;
9406 return 0;
9407 }
9408 _ACEOF
9409 rm -f conftest.$ac_objext conftest$ac_exeext
9410 if { (ac_try="$ac_link"
9411 case "(($ac_try" in
9412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9413 *) ac_try_echo=$ac_try;;
9414 esac
9415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9416 (eval "$ac_link") 2>conftest.er1
9417 ac_status=$?
9418 grep -v '^ *+' conftest.er1 >conftest.err
9419 rm -f conftest.er1
9420 cat conftest.err >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } && {
9423 test -z "$ac_c_werror_flag" ||
9424 test ! -s conftest.err
9425 } && test -s conftest$ac_exeext &&
9426 $as_test_x conftest$ac_exeext; then
9427 ac_cv_lib_dl_dlopen=yes
9428 else
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_cv_lib_dl_dlopen=no
9433 fi
9434
9435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9436 conftest$ac_exeext conftest.$ac_ext
9437 LIBS=$ac_check_lib_save_LIBS
9438 fi
9439 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9440 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9441 if test $ac_cv_lib_dl_dlopen = yes; then
9442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9443 else
9444
9445 lt_cv_dlopen="dyld"
9446 lt_cv_dlopen_libs=
9447 lt_cv_dlopen_self=yes
9448
9449 fi
9450
9451 ;;
9452
9453 *)
9454 { echo "$as_me:$LINENO: checking for shl_load" >&5
9455 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9456 if test "${ac_cv_func_shl_load+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459 cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h. */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9467 #define shl_load innocuous_shl_load
9468
9469 /* System header to define __stub macros and hopefully few prototypes,
9470 which can conflict with char shl_load (); below.
9471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9472 <limits.h> exists even on freestanding compilers. */
9473
9474 #ifdef __STDC__
9475 # include <limits.h>
9476 #else
9477 # include <assert.h>
9478 #endif
9479
9480 #undef shl_load
9481
9482 /* Override any GCC internal prototype to avoid an error.
9483 Use char because int might match the return type of a GCC
9484 builtin and then its argument prototype would still apply. */
9485 #ifdef __cplusplus
9486 extern "C"
9487 #endif
9488 char shl_load ();
9489 /* The GNU C library defines this for functions which it implements
9490 to always fail with ENOSYS. Some functions are actually named
9491 something starting with __ and the normal name is an alias. */
9492 #if defined __stub_shl_load || defined __stub___shl_load
9493 choke me
9494 #endif
9495
9496 int
9497 main ()
9498 {
9499 return shl_load ();
9500 ;
9501 return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9506 case "(($ac_try" in
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
9512 ac_status=$?
9513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest$ac_exeext &&
9521 $as_test_x conftest$ac_exeext; then
9522 ac_cv_func_shl_load=yes
9523 else
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9526
9527 ac_cv_func_shl_load=no
9528 fi
9529
9530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9531 conftest$ac_exeext conftest.$ac_ext
9532 fi
9533 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9534 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9535 if test $ac_cv_func_shl_load = yes; then
9536 lt_cv_dlopen="shl_load"
9537 else
9538 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9539 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9540 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543 ac_check_lib_save_LIBS=$LIBS
9544 LIBS="-ldld $LIBS"
9545 cat >conftest.$ac_ext <<_ACEOF
9546 /* confdefs.h. */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 char shl_load ();
9559 int
9560 main ()
9561 {
9562 return shl_load ();
9563 ;
9564 return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext conftest$ac_exeext
9568 if { (ac_try="$ac_link"
9569 case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572 esac
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_link") 2>conftest.er1
9575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest$ac_exeext &&
9584 $as_test_x conftest$ac_exeext; then
9585 ac_cv_lib_dld_shl_load=yes
9586 else
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9589
9590 ac_cv_lib_dld_shl_load=no
9591 fi
9592
9593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9594 conftest$ac_exeext conftest.$ac_ext
9595 LIBS=$ac_check_lib_save_LIBS
9596 fi
9597 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9598 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9599 if test $ac_cv_lib_dld_shl_load = yes; then
9600 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9601 else
9602 { echo "$as_me:$LINENO: checking for dlopen" >&5
9603 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9604 if test "${ac_cv_func_dlopen+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9613 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9615 #define dlopen innocuous_dlopen
9616
9617 /* System header to define __stub macros and hopefully few prototypes,
9618 which can conflict with char dlopen (); below.
9619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620 <limits.h> exists even on freestanding compilers. */
9621
9622 #ifdef __STDC__
9623 # include <limits.h>
9624 #else
9625 # include <assert.h>
9626 #endif
9627
9628 #undef dlopen
9629
9630 /* Override any GCC internal prototype to avoid an error.
9631 Use char because int might match the return type of a GCC
9632 builtin and then its argument prototype would still apply. */
9633 #ifdef __cplusplus
9634 extern "C"
9635 #endif
9636 char dlopen ();
9637 /* The GNU C library defines this for functions which it implements
9638 to always fail with ENOSYS. Some functions are actually named
9639 something starting with __ and the normal name is an alias. */
9640 #if defined __stub_dlopen || defined __stub___dlopen
9641 choke me
9642 #endif
9643
9644 int
9645 main ()
9646 {
9647 return dlopen ();
9648 ;
9649 return 0;
9650 }
9651 _ACEOF
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (ac_try="$ac_link"
9654 case "(($ac_try" in
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9657 esac
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_link") 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest$ac_exeext &&
9669 $as_test_x conftest$ac_exeext; then
9670 ac_cv_func_dlopen=yes
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 ac_cv_func_dlopen=no
9676 fi
9677
9678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9679 conftest$ac_exeext conftest.$ac_ext
9680 fi
9681 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9682 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9683 if test $ac_cv_func_dlopen = yes; then
9684 lt_cv_dlopen="dlopen"
9685 else
9686 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9687 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9688 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691 ac_check_lib_save_LIBS=$LIBS
9692 LIBS="-ldl $LIBS"
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h. */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699
9700 /* Override any GCC internal prototype to avoid an error.
9701 Use char because int might match the return type of a GCC
9702 builtin and then its argument prototype would still apply. */
9703 #ifdef __cplusplus
9704 extern "C"
9705 #endif
9706 char dlopen ();
9707 int
9708 main ()
9709 {
9710 return dlopen ();
9711 ;
9712 return 0;
9713 }
9714 _ACEOF
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (ac_try="$ac_link"
9717 case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_link") 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && {
9729 test -z "$ac_c_werror_flag" ||
9730 test ! -s conftest.err
9731 } && test -s conftest$ac_exeext &&
9732 $as_test_x conftest$ac_exeext; then
9733 ac_cv_lib_dl_dlopen=yes
9734 else
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 ac_cv_lib_dl_dlopen=no
9739 fi
9740
9741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9742 conftest$ac_exeext conftest.$ac_ext
9743 LIBS=$ac_check_lib_save_LIBS
9744 fi
9745 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9746 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9747 if test $ac_cv_lib_dl_dlopen = yes; then
9748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9749 else
9750 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9751 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9752 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 ac_check_lib_save_LIBS=$LIBS
9756 LIBS="-lsvld $LIBS"
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h. */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763
9764 /* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9767 #ifdef __cplusplus
9768 extern "C"
9769 #endif
9770 char dlopen ();
9771 int
9772 main ()
9773 {
9774 return dlopen ();
9775 ;
9776 return 0;
9777 }
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (ac_try="$ac_link"
9781 case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_link") 2>conftest.er1
9787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } && {
9793 test -z "$ac_c_werror_flag" ||
9794 test ! -s conftest.err
9795 } && test -s conftest$ac_exeext &&
9796 $as_test_x conftest$ac_exeext; then
9797 ac_cv_lib_svld_dlopen=yes
9798 else
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802 ac_cv_lib_svld_dlopen=no
9803 fi
9804
9805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9806 conftest$ac_exeext conftest.$ac_ext
9807 LIBS=$ac_check_lib_save_LIBS
9808 fi
9809 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9810 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9811 if test $ac_cv_lib_svld_dlopen = yes; then
9812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9813 else
9814 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9815 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9816 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819 ac_check_lib_save_LIBS=$LIBS
9820 LIBS="-ldld $LIBS"
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h. */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827
9828 /* Override any GCC internal prototype to avoid an error.
9829 Use char because int might match the return type of a GCC
9830 builtin and then its argument prototype would still apply. */
9831 #ifdef __cplusplus
9832 extern "C"
9833 #endif
9834 char dld_link ();
9835 int
9836 main ()
9837 {
9838 return dld_link ();
9839 ;
9840 return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9845 case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest$ac_exeext &&
9860 $as_test_x conftest$ac_exeext; then
9861 ac_cv_lib_dld_dld_link=yes
9862 else
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ac_cv_lib_dld_dld_link=no
9867 fi
9868
9869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9870 conftest$ac_exeext conftest.$ac_ext
9871 LIBS=$ac_check_lib_save_LIBS
9872 fi
9873 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9874 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9875 if test $ac_cv_lib_dld_dld_link = yes; then
9876 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9877 fi
9878
9879
9880 fi
9881
9882
9883 fi
9884
9885
9886 fi
9887
9888
9889 fi
9890
9891
9892 fi
9893
9894 ;;
9895 esac
9896
9897 if test "x$lt_cv_dlopen" != xno; then
9898 enable_dlopen=yes
9899 else
9900 enable_dlopen=no
9901 fi
9902
9903 case $lt_cv_dlopen in
9904 dlopen)
9905 save_CPPFLAGS="$CPPFLAGS"
9906 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9907
9908 save_LDFLAGS="$LDFLAGS"
9909 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9910
9911 save_LIBS="$LIBS"
9912 LIBS="$lt_cv_dlopen_libs $LIBS"
9913
9914 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9915 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9916 if test "${lt_cv_dlopen_self+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919 if test "$cross_compiling" = yes; then :
9920 lt_cv_dlopen_self=cross
9921 else
9922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9923 lt_status=$lt_dlunknown
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9925 "configure"
9926 #include "confdefs.h"
9927
9928 #if HAVE_DLFCN_H
9929 #include <dlfcn.h>
9930 #endif
9931
9932 #include <stdio.h>
9933
9934 #ifdef RTLD_GLOBAL
9935 # define LT_DLGLOBAL RTLD_GLOBAL
9936 #else
9937 # ifdef DL_GLOBAL
9938 # define LT_DLGLOBAL DL_GLOBAL
9939 # else
9940 # define LT_DLGLOBAL 0
9941 # endif
9942 #endif
9943
9944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9945 find out it does not work in some platform. */
9946 #ifndef LT_DLLAZY_OR_NOW
9947 # ifdef RTLD_LAZY
9948 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9949 # else
9950 # ifdef DL_LAZY
9951 # define LT_DLLAZY_OR_NOW DL_LAZY
9952 # else
9953 # ifdef RTLD_NOW
9954 # define LT_DLLAZY_OR_NOW RTLD_NOW
9955 # else
9956 # ifdef DL_NOW
9957 # define LT_DLLAZY_OR_NOW DL_NOW
9958 # else
9959 # define LT_DLLAZY_OR_NOW 0
9960 # endif
9961 # endif
9962 # endif
9963 # endif
9964 #endif
9965
9966 #ifdef __cplusplus
9967 extern "C" void exit (int);
9968 #endif
9969
9970 void fnord() { int i=42;}
9971 int main ()
9972 {
9973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9974 int status = $lt_dlunknown;
9975
9976 if (self)
9977 {
9978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9979 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9980 /* dlclose (self); */
9981 }
9982 else
9983 puts (dlerror ());
9984
9985 exit (status);
9986 }
9987 EOF
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9993 (./conftest; exit; ) >&5 2>/dev/null
9994 lt_status=$?
9995 case x$lt_status in
9996 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9997 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9998 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9999 esac
10000 else :
10001 # compilation failed
10002 lt_cv_dlopen_self=no
10003 fi
10004 fi
10005 rm -fr conftest*
10006
10007
10008 fi
10009 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10010 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10011
10012 if test "x$lt_cv_dlopen_self" = xyes; then
10013 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10014 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10015 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10016 if test "${lt_cv_dlopen_self_static+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019 if test "$cross_compiling" = yes; then :
10020 lt_cv_dlopen_self_static=cross
10021 else
10022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10023 lt_status=$lt_dlunknown
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10025 "configure"
10026 #include "confdefs.h"
10027
10028 #if HAVE_DLFCN_H
10029 #include <dlfcn.h>
10030 #endif
10031
10032 #include <stdio.h>
10033
10034 #ifdef RTLD_GLOBAL
10035 # define LT_DLGLOBAL RTLD_GLOBAL
10036 #else
10037 # ifdef DL_GLOBAL
10038 # define LT_DLGLOBAL DL_GLOBAL
10039 # else
10040 # define LT_DLGLOBAL 0
10041 # endif
10042 #endif
10043
10044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10045 find out it does not work in some platform. */
10046 #ifndef LT_DLLAZY_OR_NOW
10047 # ifdef RTLD_LAZY
10048 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10049 # else
10050 # ifdef DL_LAZY
10051 # define LT_DLLAZY_OR_NOW DL_LAZY
10052 # else
10053 # ifdef RTLD_NOW
10054 # define LT_DLLAZY_OR_NOW RTLD_NOW
10055 # else
10056 # ifdef DL_NOW
10057 # define LT_DLLAZY_OR_NOW DL_NOW
10058 # else
10059 # define LT_DLLAZY_OR_NOW 0
10060 # endif
10061 # endif
10062 # endif
10063 # endif
10064 #endif
10065
10066 #ifdef __cplusplus
10067 extern "C" void exit (int);
10068 #endif
10069
10070 void fnord() { int i=42;}
10071 int main ()
10072 {
10073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10074 int status = $lt_dlunknown;
10075
10076 if (self)
10077 {
10078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10079 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10080 /* dlclose (self); */
10081 }
10082 else
10083 puts (dlerror ());
10084
10085 exit (status);
10086 }
10087 EOF
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>&5
10090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10093 (./conftest; exit; ) >&5 2>/dev/null
10094 lt_status=$?
10095 case x$lt_status in
10096 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10097 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10098 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10099 esac
10100 else :
10101 # compilation failed
10102 lt_cv_dlopen_self_static=no
10103 fi
10104 fi
10105 rm -fr conftest*
10106
10107
10108 fi
10109 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10110 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10111 fi
10112
10113 CPPFLAGS="$save_CPPFLAGS"
10114 LDFLAGS="$save_LDFLAGS"
10115 LIBS="$save_LIBS"
10116 ;;
10117 esac
10118
10119 case $lt_cv_dlopen_self in
10120 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10121 *) enable_dlopen_self=unknown ;;
10122 esac
10123
10124 case $lt_cv_dlopen_self_static in
10125 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10126 *) enable_dlopen_self_static=unknown ;;
10127 esac
10128 fi
10129
10130
10131 # Report which library types will actually be built
10132 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10133 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10134 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10135 echo "${ECHO_T}$can_build_shared" >&6; }
10136
10137 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10138 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10139 test "$can_build_shared" = "no" && enable_shared=no
10140
10141 # On AIX, shared libraries and static libraries use the same namespace, and
10142 # are all built from PIC.
10143 case $host_os in
10144 aix3*)
10145 test "$enable_shared" = yes && enable_static=no
10146 if test -n "$RANLIB"; then
10147 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10148 postinstall_cmds='$RANLIB $lib'
10149 fi
10150 ;;
10151
10152 aix4* | aix5*)
10153 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10154 test "$enable_shared" = yes && enable_static=no
10155 fi
10156 ;;
10157 esac
10158 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10159 echo "${ECHO_T}$enable_shared" >&6; }
10160
10161 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10162 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10163 # Make sure either enable_shared or enable_static is yes.
10164 test "$enable_shared" = yes || enable_static=yes
10165 { echo "$as_me:$LINENO: result: $enable_static" >&5
10166 echo "${ECHO_T}$enable_static" >&6; }
10167
10168 # The else clause should only fire when bootstrapping the
10169 # libtool distribution, otherwise you forgot to ship ltmain.sh
10170 # with your package, and you will get complaints that there are
10171 # no rules to generate ltmain.sh.
10172 if test -f "$ltmain"; then
10173 # See if we are running on zsh, and set the options which allow our commands through
10174 # without removal of \ escapes.
10175 if test -n "${ZSH_VERSION+set}" ; then
10176 setopt NO_GLOB_SUBST
10177 fi
10178 # Now quote all the things that may contain metacharacters while being
10179 # careful not to overquote the AC_SUBSTed values. We take copies of the
10180 # variables and quote the copies for generation of the libtool script.
10181 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10182 SED SHELL STRIP \
10183 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10184 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10185 deplibs_check_method reload_flag reload_cmds need_locks \
10186 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10187 lt_cv_sys_global_symbol_to_c_name_address \
10188 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10189 old_postinstall_cmds old_postuninstall_cmds \
10190 compiler \
10191 CC \
10192 LD \
10193 lt_prog_compiler_wl \
10194 lt_prog_compiler_pic \
10195 lt_prog_compiler_static \
10196 lt_prog_compiler_no_builtin_flag \
10197 export_dynamic_flag_spec \
10198 thread_safe_flag_spec \
10199 whole_archive_flag_spec \
10200 enable_shared_with_static_runtimes \
10201 old_archive_cmds \
10202 old_archive_from_new_cmds \
10203 predep_objects \
10204 postdep_objects \
10205 predeps \
10206 postdeps \
10207 compiler_lib_search_path \
10208 archive_cmds \
10209 archive_expsym_cmds \
10210 postinstall_cmds \
10211 postuninstall_cmds \
10212 old_archive_from_expsyms_cmds \
10213 allow_undefined_flag \
10214 no_undefined_flag \
10215 export_symbols_cmds \
10216 hardcode_libdir_flag_spec \
10217 hardcode_libdir_flag_spec_ld \
10218 hardcode_libdir_separator \
10219 hardcode_automatic \
10220 module_cmds \
10221 module_expsym_cmds \
10222 lt_cv_prog_compiler_c_o \
10223 fix_srcfile_path \
10224 exclude_expsyms \
10225 include_expsyms; do
10226
10227 case $var in
10228 old_archive_cmds | \
10229 old_archive_from_new_cmds | \
10230 archive_cmds | \
10231 archive_expsym_cmds | \
10232 module_cmds | \
10233 module_expsym_cmds | \
10234 old_archive_from_expsyms_cmds | \
10235 export_symbols_cmds | \
10236 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10237 postinstall_cmds | postuninstall_cmds | \
10238 old_postinstall_cmds | old_postuninstall_cmds | \
10239 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10240 # Double-quote double-evaled strings.
10241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10242 ;;
10243 *)
10244 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10245 ;;
10246 esac
10247 done
10248
10249 case $lt_echo in
10250 *'\$0 --fallback-echo"')
10251 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10252 ;;
10253 esac
10254
10255 cfgfile="${ofile}T"
10256 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10257 $rm -f "$cfgfile"
10258 { echo "$as_me:$LINENO: creating $ofile" >&5
10259 echo "$as_me: creating $ofile" >&6;}
10260
10261 cat <<__EOF__ >> "$cfgfile"
10262 #! $SHELL
10263
10264 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10265 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10266 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10267 #
10268 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10269 # Free Software Foundation, Inc.
10270 #
10271 # This file is part of GNU Libtool:
10272 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10273 #
10274 # This program is free software; you can redistribute it and/or modify
10275 # it under the terms of the GNU General Public License as published by
10276 # the Free Software Foundation; either version 2 of the License, or
10277 # (at your option) any later version.
10278 #
10279 # This program is distributed in the hope that it will be useful, but
10280 # WITHOUT ANY WARRANTY; without even the implied warranty of
10281 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10282 # General Public License for more details.
10283 #
10284 # You should have received a copy of the GNU General Public License
10285 # along with this program; if not, write to the Free Software
10286 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10287 #
10288 # As a special exception to the GNU General Public License, if you
10289 # distribute this file as part of a program that contains a
10290 # configuration script generated by Autoconf, you may include it under
10291 # the same distribution terms that you use for the rest of that program.
10292
10293 # A sed program that does not truncate output.
10294 SED=$lt_SED
10295
10296 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10297 Xsed="$SED -e 1s/^X//"
10298
10299 # The HP-UX ksh and POSIX shell print the target directory to stdout
10300 # if CDPATH is set.
10301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10302
10303 # The names of the tagged configurations supported by this script.
10304 available_tags=
10305
10306 # ### BEGIN LIBTOOL CONFIG
10307
10308 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10309
10310 # Shell to use when invoking shell scripts.
10311 SHELL=$lt_SHELL
10312
10313 # Whether or not to build shared libraries.
10314 build_libtool_libs=$enable_shared
10315
10316 # Whether or not to build static libraries.
10317 build_old_libs=$enable_static
10318
10319 # Whether or not to add -lc for building shared libraries.
10320 build_libtool_need_lc=$archive_cmds_need_lc
10321
10322 # Whether or not to disallow shared libs when runtime libs are static
10323 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10324
10325 # Whether or not to optimize for fast installation.
10326 fast_install=$enable_fast_install
10327
10328 # The host system.
10329 host_alias=$host_alias
10330 host=$host
10331 host_os=$host_os
10332
10333 # The build system.
10334 build_alias=$build_alias
10335 build=$build
10336 build_os=$build_os
10337
10338 # An echo program that does not interpret backslashes.
10339 echo=$lt_echo
10340
10341 # The archiver.
10342 AR=$lt_AR
10343 AR_FLAGS=$lt_AR_FLAGS
10344
10345 # A C compiler.
10346 LTCC=$lt_LTCC
10347
10348 # LTCC compiler flags.
10349 LTCFLAGS=$lt_LTCFLAGS
10350
10351 # A language-specific compiler.
10352 CC=$lt_compiler
10353
10354 # Is the compiler the GNU C compiler?
10355 with_gcc=$GCC
10356
10357 # An ERE matcher.
10358 EGREP=$lt_EGREP
10359
10360 # The linker used to build libraries.
10361 LD=$lt_LD
10362
10363 # Whether we need hard or soft links.
10364 LN_S=$lt_LN_S
10365
10366 # A BSD-compatible nm program.
10367 NM=$lt_NM
10368
10369 # A symbol stripping program
10370 STRIP=$lt_STRIP
10371
10372 # Used to examine libraries when file_magic_cmd begins "file"
10373 MAGIC_CMD=$MAGIC_CMD
10374
10375 # Used on cygwin: DLL creation program.
10376 DLLTOOL="$DLLTOOL"
10377
10378 # Used on cygwin: object dumper.
10379 OBJDUMP="$OBJDUMP"
10380
10381 # Used on cygwin: assembler.
10382 AS="$AS"
10383
10384 # The name of the directory that contains temporary libtool files.
10385 objdir=$objdir
10386
10387 # How to create reloadable object files.
10388 reload_flag=$lt_reload_flag
10389 reload_cmds=$lt_reload_cmds
10390
10391 # How to pass a linker flag through the compiler.
10392 wl=$lt_lt_prog_compiler_wl
10393
10394 # Object file suffix (normally "o").
10395 objext="$ac_objext"
10396
10397 # Old archive suffix (normally "a").
10398 libext="$libext"
10399
10400 # Shared library suffix (normally ".so").
10401 shrext_cmds='$shrext_cmds'
10402
10403 # Executable file suffix (normally "").
10404 exeext="$exeext"
10405
10406 # Additional compiler flags for building library objects.
10407 pic_flag=$lt_lt_prog_compiler_pic
10408 pic_mode=$pic_mode
10409
10410 # What is the maximum length of a command?
10411 max_cmd_len=$lt_cv_sys_max_cmd_len
10412
10413 # Does compiler simultaneously support -c and -o options?
10414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10415
10416 # Must we lock files when doing compilation?
10417 need_locks=$lt_need_locks
10418
10419 # Do we need the lib prefix for modules?
10420 need_lib_prefix=$need_lib_prefix
10421
10422 # Do we need a version for libraries?
10423 need_version=$need_version
10424
10425 # Whether dlopen is supported.
10426 dlopen_support=$enable_dlopen
10427
10428 # Whether dlopen of programs is supported.
10429 dlopen_self=$enable_dlopen_self
10430
10431 # Whether dlopen of statically linked programs is supported.
10432 dlopen_self_static=$enable_dlopen_self_static
10433
10434 # Compiler flag to prevent dynamic linking.
10435 link_static_flag=$lt_lt_prog_compiler_static
10436
10437 # Compiler flag to turn off builtin functions.
10438 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10439
10440 # Compiler flag to allow reflexive dlopens.
10441 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10442
10443 # Compiler flag to generate shared objects directly from archives.
10444 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10445
10446 # Compiler flag to generate thread-safe objects.
10447 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10448
10449 # Library versioning type.
10450 version_type=$version_type
10451
10452 # Format of library name prefix.
10453 libname_spec=$lt_libname_spec
10454
10455 # List of archive names. First name is the real one, the rest are links.
10456 # The last name is the one that the linker finds with -lNAME.
10457 library_names_spec=$lt_library_names_spec
10458
10459 # The coded name of the library, if different from the real name.
10460 soname_spec=$lt_soname_spec
10461
10462 # Commands used to build and install an old-style archive.
10463 RANLIB=$lt_RANLIB
10464 old_archive_cmds=$lt_old_archive_cmds
10465 old_postinstall_cmds=$lt_old_postinstall_cmds
10466 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10467
10468 # Create an old-style archive from a shared archive.
10469 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10470
10471 # Create a temporary old-style archive to link instead of a shared archive.
10472 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10473
10474 # Commands used to build and install a shared archive.
10475 archive_cmds=$lt_archive_cmds
10476 archive_expsym_cmds=$lt_archive_expsym_cmds
10477 postinstall_cmds=$lt_postinstall_cmds
10478 postuninstall_cmds=$lt_postuninstall_cmds
10479
10480 # Commands used to build a loadable module (assumed same as above if empty)
10481 module_cmds=$lt_module_cmds
10482 module_expsym_cmds=$lt_module_expsym_cmds
10483
10484 # Commands to strip libraries.
10485 old_striplib=$lt_old_striplib
10486 striplib=$lt_striplib
10487
10488 # Dependencies to place before the objects being linked to create a
10489 # shared library.
10490 predep_objects=$lt_predep_objects
10491
10492 # Dependencies to place after the objects being linked to create a
10493 # shared library.
10494 postdep_objects=$lt_postdep_objects
10495
10496 # Dependencies to place before the objects being linked to create a
10497 # shared library.
10498 predeps=$lt_predeps
10499
10500 # Dependencies to place after the objects being linked to create a
10501 # shared library.
10502 postdeps=$lt_postdeps
10503
10504 # The library search path used internally by the compiler when linking
10505 # a shared library.
10506 compiler_lib_search_path=$lt_compiler_lib_search_path
10507
10508 # Method to check whether dependent libraries are shared objects.
10509 deplibs_check_method=$lt_deplibs_check_method
10510
10511 # Command to use when deplibs_check_method == file_magic.
10512 file_magic_cmd=$lt_file_magic_cmd
10513
10514 # Flag that allows shared libraries with undefined symbols to be built.
10515 allow_undefined_flag=$lt_allow_undefined_flag
10516
10517 # Flag that forces no undefined symbols.
10518 no_undefined_flag=$lt_no_undefined_flag
10519
10520 # Commands used to finish a libtool library installation in a directory.
10521 finish_cmds=$lt_finish_cmds
10522
10523 # Same as above, but a single script fragment to be evaled but not shown.
10524 finish_eval=$lt_finish_eval
10525
10526 # Take the output of nm and produce a listing of raw symbols and C names.
10527 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10528
10529 # Transform the output of nm in a proper C declaration
10530 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10531
10532 # Transform the output of nm in a C name address pair
10533 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10534
10535 # This is the shared library runtime path variable.
10536 runpath_var=$runpath_var
10537
10538 # This is the shared library path variable.
10539 shlibpath_var=$shlibpath_var
10540
10541 # Is shlibpath searched before the hard-coded library search path?
10542 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10543
10544 # How to hardcode a shared library path into an executable.
10545 hardcode_action=$hardcode_action
10546
10547 # Whether we should hardcode library paths into libraries.
10548 hardcode_into_libs=$hardcode_into_libs
10549
10550 # Flag to hardcode \$libdir into a binary during linking.
10551 # This must work even if \$libdir does not exist.
10552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10553
10554 # If ld is used when linking, flag to hardcode \$libdir into
10555 # a binary during linking. This must work even if \$libdir does
10556 # not exist.
10557 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10558
10559 # Whether we need a single -rpath flag with a separated argument.
10560 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10561
10562 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10563 # resulting binary.
10564 hardcode_direct=$hardcode_direct
10565
10566 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10567 # resulting binary.
10568 hardcode_minus_L=$hardcode_minus_L
10569
10570 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10571 # the resulting binary.
10572 hardcode_shlibpath_var=$hardcode_shlibpath_var
10573
10574 # Set to yes if building a shared library automatically hardcodes DIR into the library
10575 # and all subsequent libraries and executables linked against it.
10576 hardcode_automatic=$hardcode_automatic
10577
10578 # Variables whose values should be saved in libtool wrapper scripts and
10579 # restored at relink time.
10580 variables_saved_for_relink="$variables_saved_for_relink"
10581
10582 # Whether libtool must link a program against all its dependency libraries.
10583 link_all_deplibs=$link_all_deplibs
10584
10585 # Compile-time system search path for libraries
10586 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10587
10588 # Run-time system search path for libraries
10589 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10590
10591 # Fix the shell variable \$srcfile for the compiler.
10592 fix_srcfile_path=$lt_fix_srcfile_path
10593
10594 # Set to yes if exported symbols are required.
10595 always_export_symbols=$always_export_symbols
10596
10597 # The commands to list exported symbols.
10598 export_symbols_cmds=$lt_export_symbols_cmds
10599
10600 # The commands to extract the exported symbol list from a shared archive.
10601 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10602
10603 # Symbols that should not be listed in the preloaded symbols.
10604 exclude_expsyms=$lt_exclude_expsyms
10605
10606 # Symbols that must always be exported.
10607 include_expsyms=$lt_include_expsyms
10608
10609 # ### END LIBTOOL CONFIG
10610
10611 __EOF__
10612
10613
10614 case $host_os in
10615 aix3*)
10616 cat <<\EOF >> "$cfgfile"
10617
10618 # AIX sometimes has problems with the GCC collect2 program. For some
10619 # reason, if we set the COLLECT_NAMES environment variable, the problems
10620 # vanish in a puff of smoke.
10621 if test "X${COLLECT_NAMES+set}" != Xset; then
10622 COLLECT_NAMES=
10623 export COLLECT_NAMES
10624 fi
10625 EOF
10626 ;;
10627 esac
10628
10629 # We use sed instead of cat because bash on DJGPP gets confused if
10630 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10631 # text mode, it properly converts lines to CR/LF. This bash problem
10632 # is reportedly fixed, but why not run on old versions too?
10633 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10634
10635 mv -f "$cfgfile" "$ofile" || \
10636 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10637 chmod +x "$ofile"
10638
10639 else
10640 # If there is no Makefile yet, we rely on a make rule to execute
10641 # `config.status --recheck' to rerun these tests and create the
10642 # libtool script then.
10643 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10644 if test -f "$ltmain_in"; then
10645 test -f Makefile && make "$ltmain"
10646 fi
10647 fi
10648
10649
10650 ac_ext=c
10651 ac_cpp='$CPP $CPPFLAGS'
10652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10655
10656 CC="$lt_save_CC"
10657
10658
10659 # Check whether --with-tags was given.
10660 if test "${with_tags+set}" = set; then
10661 withval=$with_tags; tagnames="$withval"
10662 fi
10663
10664
10665 if test -f "$ltmain" && test -n "$tagnames"; then
10666 if test ! -f "${ofile}"; then
10667 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10668 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10669 fi
10670
10671 if test -z "$LTCC"; then
10672 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10673 if test -z "$LTCC"; then
10674 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10675 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10676 else
10677 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10678 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10679 fi
10680 fi
10681 if test -z "$LTCFLAGS"; then
10682 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10683 fi
10684
10685 # Extract list of available tagged configurations in $ofile.
10686 # Note that this assumes the entire list is on one line.
10687 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10688
10689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10690 for tagname in $tagnames; do
10691 IFS="$lt_save_ifs"
10692 # Check whether tagname contains only valid characters
10693 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10694 "") ;;
10695 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10696 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10697 { (exit 1); exit 1; }; }
10698 ;;
10699 esac
10700
10701 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10702 then
10703 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10704 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10705 { (exit 1); exit 1; }; }
10706 fi
10707
10708 # Update the list of available tags.
10709 if test -n "$tagname"; then
10710 echo appending configuration tag \"$tagname\" to $ofile
10711
10712 case $tagname in
10713 CXX)
10714 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10715 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10716 (test "X$CXX" != "Xg++"))) ; then
10717 ac_ext=cpp
10718 ac_cpp='$CXXCPP $CPPFLAGS'
10719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10722
10723
10724
10725
10726 archive_cmds_need_lc_CXX=no
10727 allow_undefined_flag_CXX=
10728 always_export_symbols_CXX=no
10729 archive_expsym_cmds_CXX=
10730 export_dynamic_flag_spec_CXX=
10731 hardcode_direct_CXX=no
10732 hardcode_libdir_flag_spec_CXX=
10733 hardcode_libdir_flag_spec_ld_CXX=
10734 hardcode_libdir_separator_CXX=
10735 hardcode_minus_L_CXX=no
10736 hardcode_shlibpath_var_CXX=unsupported
10737 hardcode_automatic_CXX=no
10738 module_cmds_CXX=
10739 module_expsym_cmds_CXX=
10740 link_all_deplibs_CXX=unknown
10741 old_archive_cmds_CXX=$old_archive_cmds
10742 no_undefined_flag_CXX=
10743 whole_archive_flag_spec_CXX=
10744 enable_shared_with_static_runtimes_CXX=no
10745
10746 # Dependencies to place before and after the object being linked:
10747 predep_objects_CXX=
10748 postdep_objects_CXX=
10749 predeps_CXX=
10750 postdeps_CXX=
10751 compiler_lib_search_path_CXX=
10752
10753 # Source file extension for C++ test sources.
10754 ac_ext=cpp
10755
10756 # Object file extension for compiled C++ test sources.
10757 objext=o
10758 objext_CXX=$objext
10759
10760 # Code to be used in simple compile tests
10761 lt_simple_compile_test_code="int some_variable = 0;"
10762
10763 # Code to be used in simple link tests
10764 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10765
10766 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10767
10768 # If no C compiler was specified, use CC.
10769 LTCC=${LTCC-"$CC"}
10770
10771 # If no C compiler flags were specified, use CFLAGS.
10772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10773
10774 # Allow CC to be a program name with arguments.
10775 compiler=$CC
10776
10777
10778 # save warnings/boilerplate of simple test code
10779 ac_outfile=conftest.$ac_objext
10780 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10781 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10782 _lt_compiler_boilerplate=`cat conftest.err`
10783 $rm conftest*
10784
10785 ac_outfile=conftest.$ac_objext
10786 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10787 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10788 _lt_linker_boilerplate=`cat conftest.err`
10789 $rm conftest*
10790
10791
10792 # Allow CC to be a program name with arguments.
10793 lt_save_CC=$CC
10794 lt_save_LD=$LD
10795 lt_save_GCC=$GCC
10796 GCC=$GXX
10797 lt_save_with_gnu_ld=$with_gnu_ld
10798 lt_save_path_LD=$lt_cv_path_LD
10799 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10800 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10801 else
10802 $as_unset lt_cv_prog_gnu_ld
10803 fi
10804 if test -n "${lt_cv_path_LDCXX+set}"; then
10805 lt_cv_path_LD=$lt_cv_path_LDCXX
10806 else
10807 $as_unset lt_cv_path_LD
10808 fi
10809 test -z "${LDCXX+set}" || LD=$LDCXX
10810 CC=${CXX-"c++"}
10811 compiler=$CC
10812 compiler_CXX=$CC
10813 for cc_temp in $compiler""; do
10814 case $cc_temp in
10815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10817 \-*) ;;
10818 *) break;;
10819 esac
10820 done
10821 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10822
10823
10824 # We don't want -fno-exception wen compiling C++ code, so set the
10825 # no_builtin_flag separately
10826 if test "$GXX" = yes; then
10827 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10828 else
10829 lt_prog_compiler_no_builtin_flag_CXX=
10830 fi
10831
10832 if test "$GXX" = yes; then
10833 # Set up default GNU C++ configuration
10834
10835
10836 # Check whether --with-gnu-ld was given.
10837 if test "${with_gnu_ld+set}" = set; then
10838 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10839 else
10840 with_gnu_ld=no
10841 fi
10842
10843 ac_prog=ld
10844 if test "$GCC" = yes; then
10845 # Check if gcc -print-prog-name=ld gives a path.
10846 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10847 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10848 case $host in
10849 *-*-mingw*)
10850 # gcc leaves a trailing carriage return which upsets mingw
10851 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10852 *)
10853 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10854 esac
10855 case $ac_prog in
10856 # Accept absolute paths.
10857 [\\/]* | ?:[\\/]*)
10858 re_direlt='/[^/][^/]*/\.\./'
10859 # Canonicalize the pathname of ld
10860 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10861 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10862 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10863 done
10864 test -z "$LD" && LD="$ac_prog"
10865 ;;
10866 "")
10867 # If it fails, then pretend we aren't using GCC.
10868 ac_prog=ld
10869 ;;
10870 *)
10871 # If it is relative, then search for the first ld in PATH.
10872 with_gnu_ld=unknown
10873 ;;
10874 esac
10875 elif test "$with_gnu_ld" = yes; then
10876 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10877 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10878 else
10879 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10880 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10881 fi
10882 if test "${lt_cv_path_LD+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885 if test -z "$LD"; then
10886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10887 for ac_dir in $PATH; do
10888 IFS="$lt_save_ifs"
10889 test -z "$ac_dir" && ac_dir=.
10890 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10891 lt_cv_path_LD="$ac_dir/$ac_prog"
10892 # Check to see if the program is GNU ld. I'd rather use --version,
10893 # but apparently some variants of GNU ld only accept -v.
10894 # Break only if it was the GNU/non-GNU ld that we prefer.
10895 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10896 *GNU* | *'with BFD'*)
10897 test "$with_gnu_ld" != no && break
10898 ;;
10899 *)
10900 test "$with_gnu_ld" != yes && break
10901 ;;
10902 esac
10903 fi
10904 done
10905 IFS="$lt_save_ifs"
10906 else
10907 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10908 fi
10909 fi
10910
10911 LD="$lt_cv_path_LD"
10912 if test -n "$LD"; then
10913 { echo "$as_me:$LINENO: result: $LD" >&5
10914 echo "${ECHO_T}$LD" >&6; }
10915 else
10916 { echo "$as_me:$LINENO: result: no" >&5
10917 echo "${ECHO_T}no" >&6; }
10918 fi
10919 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10920 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10921 { (exit 1); exit 1; }; }
10922 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10923 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10924 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10928 case `$LD -v 2>&1 </dev/null` in
10929 *GNU* | *'with BFD'*)
10930 lt_cv_prog_gnu_ld=yes
10931 ;;
10932 *)
10933 lt_cv_prog_gnu_ld=no
10934 ;;
10935 esac
10936 fi
10937 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10938 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10939 with_gnu_ld=$lt_cv_prog_gnu_ld
10940
10941
10942
10943 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10944 # archiving commands below assume that GNU ld is being used.
10945 if test "$with_gnu_ld" = yes; then
10946 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10947 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'
10948
10949 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10950 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10951
10952 # If archive_cmds runs LD, not CC, wlarc should be empty
10953 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10954 # investigate it a little bit more. (MM)
10955 wlarc='${wl}'
10956
10957 # ancient GNU ld didn't support --whole-archive et. al.
10958 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10959 grep 'no-whole-archive' > /dev/null; then
10960 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10961 else
10962 whole_archive_flag_spec_CXX=
10963 fi
10964 else
10965 with_gnu_ld=no
10966 wlarc=
10967
10968 # A generic and very simple default shared library creation
10969 # command for GNU C++ for the case where it uses the native
10970 # linker, instead of GNU ld. If possible, this setting should
10971 # overridden to take advantage of the native linker features on
10972 # the platform it is being used on.
10973 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10974 fi
10975
10976 # Commands to make compiler produce verbose output that lists
10977 # what "hidden" libraries, object files and flags are used when
10978 # linking a shared library.
10979 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10980
10981 else
10982 GXX=no
10983 with_gnu_ld=no
10984 wlarc=
10985 fi
10986
10987 # PORTME: fill in a description of your system's C++ link characteristics
10988 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10989 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10990 ld_shlibs_CXX=yes
10991 case $host_os in
10992 aix3*)
10993 # FIXME: insert proper C++ library support
10994 ld_shlibs_CXX=no
10995 ;;
10996 aix4* | aix5*)
10997 if test "$host_cpu" = ia64; then
10998 # On IA64, the linker does run time linking by default, so we don't
10999 # have to do anything special.
11000 aix_use_runtimelinking=no
11001 exp_sym_flag='-Bexport'
11002 no_entry_flag=""
11003 else
11004 aix_use_runtimelinking=no
11005
11006 # Test if we are trying to use run time linking or normal
11007 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11008 # need to do runtime linking.
11009 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11010 for ld_flag in $LDFLAGS; do
11011 case $ld_flag in
11012 *-brtl*)
11013 aix_use_runtimelinking=yes
11014 break
11015 ;;
11016 esac
11017 done
11018 ;;
11019 esac
11020
11021 exp_sym_flag='-bexport'
11022 no_entry_flag='-bnoentry'
11023 fi
11024
11025 # When large executables or shared objects are built, AIX ld can
11026 # have problems creating the table of contents. If linking a library
11027 # or program results in "error TOC overflow" add -mminimal-toc to
11028 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11029 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11030
11031 archive_cmds_CXX=''
11032 hardcode_direct_CXX=yes
11033 hardcode_libdir_separator_CXX=':'
11034 link_all_deplibs_CXX=yes
11035
11036 if test "$GXX" = yes; then
11037 case $host_os in aix4.[012]|aix4.[012].*)
11038 # We only want to do this on AIX 4.2 and lower, the check
11039 # below for broken collect2 doesn't work under 4.3+
11040 collect2name=`${CC} -print-prog-name=collect2`
11041 if test -f "$collect2name" && \
11042 strings "$collect2name" | grep resolve_lib_name >/dev/null
11043 then
11044 # We have reworked collect2
11045 :
11046 else
11047 # We have old collect2
11048 hardcode_direct_CXX=unsupported
11049 # It fails to find uninstalled libraries when the uninstalled
11050 # path is not listed in the libpath. Setting hardcode_minus_L
11051 # to unsupported forces relinking
11052 hardcode_minus_L_CXX=yes
11053 hardcode_libdir_flag_spec_CXX='-L$libdir'
11054 hardcode_libdir_separator_CXX=
11055 fi
11056 ;;
11057 esac
11058 shared_flag='-shared'
11059 if test "$aix_use_runtimelinking" = yes; then
11060 shared_flag="$shared_flag "'${wl}-G'
11061 fi
11062 else
11063 # not using gcc
11064 if test "$host_cpu" = ia64; then
11065 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11066 # chokes on -Wl,-G. The following line is correct:
11067 shared_flag='-G'
11068 else
11069 if test "$aix_use_runtimelinking" = yes; then
11070 shared_flag='${wl}-G'
11071 else
11072 shared_flag='${wl}-bM:SRE'
11073 fi
11074 fi
11075 fi
11076
11077 # It seems that -bexpall does not export symbols beginning with
11078 # underscore (_), so it is better to generate a list of symbols to export.
11079 always_export_symbols_CXX=yes
11080 if test "$aix_use_runtimelinking" = yes; then
11081 # Warning - without using the other runtime loading flags (-brtl),
11082 # -berok will link without error, but may produce a broken library.
11083 allow_undefined_flag_CXX='-berok'
11084 # Determine the default libpath from the value encoded in an empty executable.
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091
11092 int
11093 main ()
11094 {
11095
11096 ;
11097 return 0;
11098 }
11099 _ACEOF
11100 rm -f conftest.$ac_objext conftest$ac_exeext
11101 if { (ac_try="$ac_link"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_link") 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } && {
11114 test -z "$ac_cxx_werror_flag" ||
11115 test ! -s conftest.err
11116 } && test -s conftest$ac_exeext &&
11117 $as_test_x conftest$ac_exeext; then
11118
11119 lt_aix_libpath_sed='
11120 /Import File Strings/,/^$/ {
11121 /^0/ {
11122 s/^0 *\(.*\)$/\1/
11123 p
11124 }
11125 }'
11126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11127 # Check for a 64-bit object if we didn't find anything.
11128 if test -z "$aix_libpath"; then
11129 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11130 fi
11131 else
11132 echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11134
11135
11136 fi
11137
11138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11139 conftest$ac_exeext conftest.$ac_ext
11140 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11141
11142 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11143
11144 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"
11145 else
11146 if test "$host_cpu" = ia64; then
11147 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11148 allow_undefined_flag_CXX="-z nodefs"
11149 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"
11150 else
11151 # Determine the default libpath from the value encoded in an empty executable.
11152 cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h. */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158
11159 int
11160 main ()
11161 {
11162
11163 ;
11164 return 0;
11165 }
11166 _ACEOF
11167 rm -f conftest.$ac_objext conftest$ac_exeext
11168 if { (ac_try="$ac_link"
11169 case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11172 esac
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_link") 2>conftest.er1
11175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } && {
11181 test -z "$ac_cxx_werror_flag" ||
11182 test ! -s conftest.err
11183 } && test -s conftest$ac_exeext &&
11184 $as_test_x conftest$ac_exeext; then
11185
11186 lt_aix_libpath_sed='
11187 /Import File Strings/,/^$/ {
11188 /^0/ {
11189 s/^0 *\(.*\)$/\1/
11190 p
11191 }
11192 }'
11193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11194 # Check for a 64-bit object if we didn't find anything.
11195 if test -z "$aix_libpath"; then
11196 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11197 fi
11198 else
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11201
11202
11203 fi
11204
11205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11206 conftest$ac_exeext conftest.$ac_ext
11207 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11208
11209 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11210 # Warning - without using the other run time loading flags,
11211 # -berok will link without error, but may produce a broken library.
11212 no_undefined_flag_CXX=' ${wl}-bernotok'
11213 allow_undefined_flag_CXX=' ${wl}-berok'
11214 # Exported symbols can be pulled into shared objects from archives
11215 whole_archive_flag_spec_CXX='$convenience'
11216 archive_cmds_need_lc_CXX=yes
11217 # This is similar to how AIX traditionally builds its shared libraries.
11218 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'
11219 fi
11220 fi
11221 ;;
11222
11223 beos*)
11224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11225 allow_undefined_flag_CXX=unsupported
11226 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11227 # support --undefined. This deserves some investigation. FIXME
11228 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11229 else
11230 ld_shlibs_CXX=no
11231 fi
11232 ;;
11233
11234 chorus*)
11235 case $cc_basename in
11236 *)
11237 # FIXME: insert proper C++ library support
11238 ld_shlibs_CXX=no
11239 ;;
11240 esac
11241 ;;
11242
11243 cygwin* | mingw* | pw32*)
11244 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11245 # as there is no search path for DLLs.
11246 hardcode_libdir_flag_spec_CXX='-L$libdir'
11247 allow_undefined_flag_CXX=unsupported
11248 always_export_symbols_CXX=no
11249 enable_shared_with_static_runtimes_CXX=yes
11250
11251 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11252 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11253 # If the export-symbols file already is a .def file (1st line
11254 # is EXPORTS), use it as is; otherwise, prepend...
11255 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11256 cp $export_symbols $output_objdir/$soname.def;
11257 else
11258 echo EXPORTS > $output_objdir/$soname.def;
11259 cat $export_symbols >> $output_objdir/$soname.def;
11260 fi~
11261 $CC -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 $lib'
11262 else
11263 ld_shlibs_CXX=no
11264 fi
11265 ;;
11266 darwin* | rhapsody*)
11267 case $host_os in
11268 rhapsody* | darwin1.[012])
11269 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11270 ;;
11271 *) # Darwin 1.3 on
11272 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11273 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11274 else
11275 case ${MACOSX_DEPLOYMENT_TARGET} in
11276 10.[012])
11277 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11278 ;;
11279 10.*)
11280 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11281 ;;
11282 esac
11283 fi
11284 ;;
11285 esac
11286 archive_cmds_need_lc_CXX=no
11287 hardcode_direct_CXX=no
11288 hardcode_automatic_CXX=yes
11289 hardcode_shlibpath_var_CXX=unsupported
11290 whole_archive_flag_spec_CXX=''
11291 link_all_deplibs_CXX=yes
11292
11293 if test "$GXX" = yes ; then
11294 lt_int_apple_cc_single_mod=no
11295 output_verbose_link_cmd='echo'
11296 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11297 lt_int_apple_cc_single_mod=yes
11298 fi
11299 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11300 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11301 else
11302 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'
11303 fi
11304 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11305 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11306 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11307 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}'
11308 else
11309 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}'
11310 fi
11311 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}'
11312 else
11313 case $cc_basename in
11314 xlc*)
11315 output_verbose_link_cmd='echo'
11316 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11317 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11318 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11319 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11320 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}'
11321 ;;
11322 *)
11323 ld_shlibs_CXX=no
11324 ;;
11325 esac
11326 fi
11327 ;;
11328
11329 dgux*)
11330 case $cc_basename in
11331 ec++*)
11332 # FIXME: insert proper C++ library support
11333 ld_shlibs_CXX=no
11334 ;;
11335 ghcx*)
11336 # Green Hills C++ Compiler
11337 # FIXME: insert proper C++ library support
11338 ld_shlibs_CXX=no
11339 ;;
11340 *)
11341 # FIXME: insert proper C++ library support
11342 ld_shlibs_CXX=no
11343 ;;
11344 esac
11345 ;;
11346 freebsd[12]*)
11347 # C++ shared libraries reported to be fairly broken before switch to ELF
11348 ld_shlibs_CXX=no
11349 ;;
11350 freebsd-elf*)
11351 archive_cmds_need_lc_CXX=no
11352 ;;
11353 freebsd* | dragonfly*)
11354 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11355 # conventions
11356 ld_shlibs_CXX=yes
11357 ;;
11358 gnu*)
11359 ;;
11360 hpux9*)
11361 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11362 hardcode_libdir_separator_CXX=:
11363 export_dynamic_flag_spec_CXX='${wl}-E'
11364 hardcode_direct_CXX=yes
11365 hardcode_minus_L_CXX=yes # Not in the search PATH,
11366 # but as the default
11367 # location of the library.
11368
11369 case $cc_basename in
11370 CC*)
11371 # FIXME: insert proper C++ library support
11372 ld_shlibs_CXX=no
11373 ;;
11374 aCC*)
11375 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'
11376 # Commands to make compiler produce verbose output that lists
11377 # what "hidden" libraries, object files and flags are used when
11378 # linking a shared library.
11379 #
11380 # There doesn't appear to be a way to prevent this compiler from
11381 # explicitly linking system object files so we need to strip them
11382 # from the output so that they don't get included in the library
11383 # dependencies.
11384 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'
11385 ;;
11386 *)
11387 if test "$GXX" = yes; then
11388 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'
11389 else
11390 # FIXME: insert proper C++ library support
11391 ld_shlibs_CXX=no
11392 fi
11393 ;;
11394 esac
11395 ;;
11396 hpux10*|hpux11*)
11397 if test $with_gnu_ld = no; then
11398 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11399 hardcode_libdir_separator_CXX=:
11400
11401 case $host_cpu in
11402 hppa*64*|ia64*) ;;
11403 *)
11404 export_dynamic_flag_spec_CXX='${wl}-E'
11405 ;;
11406 esac
11407 fi
11408 case $host_cpu in
11409 hppa*64*|ia64*)
11410 hardcode_direct_CXX=no
11411 hardcode_shlibpath_var_CXX=no
11412 ;;
11413 *)
11414 hardcode_direct_CXX=yes
11415 hardcode_minus_L_CXX=yes # Not in the search PATH,
11416 # but as the default
11417 # location of the library.
11418 ;;
11419 esac
11420
11421 case $cc_basename in
11422 CC*)
11423 # FIXME: insert proper C++ library support
11424 ld_shlibs_CXX=no
11425 ;;
11426 aCC*)
11427 case $host_cpu in
11428 hppa*64*)
11429 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11430 ;;
11431 ia64*)
11432 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11433 ;;
11434 *)
11435 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11436 ;;
11437 esac
11438 # Commands to make compiler produce verbose output that lists
11439 # what "hidden" libraries, object files and flags are used when
11440 # linking a shared library.
11441 #
11442 # There doesn't appear to be a way to prevent this compiler from
11443 # explicitly linking system object files so we need to strip them
11444 # from the output so that they don't get included in the library
11445 # dependencies.
11446 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'
11447 ;;
11448 *)
11449 if test "$GXX" = yes; then
11450 if test $with_gnu_ld = no; then
11451 case $host_cpu in
11452 hppa*64*)
11453 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11454 ;;
11455 ia64*)
11456 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11457 ;;
11458 *)
11459 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'
11460 ;;
11461 esac
11462 fi
11463 else
11464 # FIXME: insert proper C++ library support
11465 ld_shlibs_CXX=no
11466 fi
11467 ;;
11468 esac
11469 ;;
11470 interix[3-9]*)
11471 hardcode_direct_CXX=no
11472 hardcode_shlibpath_var_CXX=no
11473 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11474 export_dynamic_flag_spec_CXX='${wl}-E'
11475 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11476 # Instead, shared libraries are loaded at an image base (0x10000000 by
11477 # default) and relocated if they conflict, which is a slow very memory
11478 # consuming and fragmenting process. To avoid this, we pick a random,
11479 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11480 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11481 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'
11482 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'
11483 ;;
11484 irix5* | irix6*)
11485 case $cc_basename in
11486 CC*)
11487 # SGI C++
11488 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'
11489
11490 # Archives containing C++ object files must be created using
11491 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11492 # necessary to make sure instantiated templates are included
11493 # in the archive.
11494 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11495 ;;
11496 *)
11497 if test "$GXX" = yes; then
11498 if test "$with_gnu_ld" = no; then
11499 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'
11500 else
11501 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'
11502 fi
11503 fi
11504 link_all_deplibs_CXX=yes
11505 ;;
11506 esac
11507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11508 hardcode_libdir_separator_CXX=:
11509 ;;
11510 linux* | k*bsd*-gnu)
11511 case $cc_basename in
11512 KCC*)
11513 # Kuck and Associates, Inc. (KAI) C++ Compiler
11514
11515 # KCC will only create a shared library if the output file
11516 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11517 # to its proper name (with version) after linking.
11518 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'
11519 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'
11520 # Commands to make compiler produce verbose output that lists
11521 # what "hidden" libraries, object files and flags are used when
11522 # linking a shared library.
11523 #
11524 # There doesn't appear to be a way to prevent this compiler from
11525 # explicitly linking system object files so we need to strip them
11526 # from the output so that they don't get included in the library
11527 # dependencies.
11528 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'
11529
11530 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11531 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11532
11533 # Archives containing C++ object files must be created using
11534 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11535 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11536 ;;
11537 icpc*)
11538 # Intel C++
11539 with_gnu_ld=yes
11540 # version 8.0 and above of icpc choke on multiply defined symbols
11541 # if we add $predep_objects and $postdep_objects, however 7.1 and
11542 # earlier do not add the objects themselves.
11543 case `$CC -V 2>&1` in
11544 *"Version 7."*)
11545 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11546 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'
11547 ;;
11548 *) # Version 8.0 or newer
11549 tmp_idyn=
11550 case $host_cpu in
11551 ia64*) tmp_idyn=' -i_dynamic';;
11552 esac
11553 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11554 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'
11555 ;;
11556 esac
11557 archive_cmds_need_lc_CXX=no
11558 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11559 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11560 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11561 ;;
11562 pgCC*)
11563 # Portland Group C++ compiler
11564 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11565 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'
11566
11567 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11568 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11569 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'
11570 ;;
11571 cxx*)
11572 # Compaq C++
11573 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11574 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'
11575
11576 runpath_var=LD_RUN_PATH
11577 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11578 hardcode_libdir_separator_CXX=:
11579
11580 # Commands to make compiler produce verbose output that lists
11581 # what "hidden" libraries, object files and flags are used when
11582 # linking a shared library.
11583 #
11584 # There doesn't appear to be a way to prevent this compiler from
11585 # explicitly linking system object files so we need to strip them
11586 # from the output so that they don't get included in the library
11587 # dependencies.
11588 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'
11589 ;;
11590 *)
11591 case `$CC -V 2>&1 | sed 5q` in
11592 *Sun\ C*)
11593 # Sun C++ 5.9
11594 no_undefined_flag_CXX=' -zdefs'
11595 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11596 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11597 hardcode_libdir_flag_spec_CXX='-R$libdir'
11598 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11599
11600 # Not sure whether something based on
11601 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11602 # would be better.
11603 output_verbose_link_cmd='echo'
11604
11605 # Archives containing C++ object files must be created using
11606 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11607 # necessary to make sure instantiated templates are included
11608 # in the archive.
11609 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11610 ;;
11611 esac
11612 ;;
11613 esac
11614 ;;
11615 lynxos*)
11616 # FIXME: insert proper C++ library support
11617 ld_shlibs_CXX=no
11618 ;;
11619 m88k*)
11620 # FIXME: insert proper C++ library support
11621 ld_shlibs_CXX=no
11622 ;;
11623 mvs*)
11624 case $cc_basename in
11625 cxx*)
11626 # FIXME: insert proper C++ library support
11627 ld_shlibs_CXX=no
11628 ;;
11629 *)
11630 # FIXME: insert proper C++ library support
11631 ld_shlibs_CXX=no
11632 ;;
11633 esac
11634 ;;
11635 netbsd*)
11636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11637 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11638 wlarc=
11639 hardcode_libdir_flag_spec_CXX='-R$libdir'
11640 hardcode_direct_CXX=yes
11641 hardcode_shlibpath_var_CXX=no
11642 fi
11643 # Workaround some broken pre-1.5 toolchains
11644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11645 ;;
11646 openbsd2*)
11647 # C++ shared libraries are fairly broken
11648 ld_shlibs_CXX=no
11649 ;;
11650 openbsd*)
11651 if test -f /usr/libexec/ld.so; then
11652 hardcode_direct_CXX=yes
11653 hardcode_shlibpath_var_CXX=no
11654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11657 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11658 export_dynamic_flag_spec_CXX='${wl}-E'
11659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11660 fi
11661 output_verbose_link_cmd='echo'
11662 else
11663 ld_shlibs_CXX=no
11664 fi
11665 ;;
11666 osf3*)
11667 case $cc_basename in
11668 KCC*)
11669 # Kuck and Associates, Inc. (KAI) C++ Compiler
11670
11671 # KCC will only create a shared library if the output file
11672 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11673 # to its proper name (with version) after linking.
11674 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'
11675
11676 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11677 hardcode_libdir_separator_CXX=:
11678
11679 # Archives containing C++ object files must be created using
11680 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11681 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11682
11683 ;;
11684 RCC*)
11685 # Rational C++ 2.4.1
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11688 ;;
11689 cxx*)
11690 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11691 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'
11692
11693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11694 hardcode_libdir_separator_CXX=:
11695
11696 # Commands to make compiler produce verbose output that lists
11697 # what "hidden" libraries, object files and flags are used when
11698 # linking a shared library.
11699 #
11700 # There doesn't appear to be a way to prevent this compiler from
11701 # explicitly linking system object files so we need to strip them
11702 # from the output so that they don't get included in the library
11703 # dependencies.
11704 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'
11705 ;;
11706 *)
11707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11709 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'
11710
11711 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11712 hardcode_libdir_separator_CXX=:
11713
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11717 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11718
11719 else
11720 # FIXME: insert proper C++ library support
11721 ld_shlibs_CXX=no
11722 fi
11723 ;;
11724 esac
11725 ;;
11726 osf4* | osf5*)
11727 case $cc_basename in
11728 KCC*)
11729 # Kuck and Associates, Inc. (KAI) C++ Compiler
11730
11731 # KCC will only create a shared library if the output file
11732 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11733 # to its proper name (with version) after linking.
11734 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'
11735
11736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11737 hardcode_libdir_separator_CXX=:
11738
11739 # Archives containing C++ object files must be created using
11740 # the KAI C++ compiler.
11741 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11742 ;;
11743 RCC*)
11744 # Rational C++ 2.4.1
11745 # FIXME: insert proper C++ library support
11746 ld_shlibs_CXX=no
11747 ;;
11748 cxx*)
11749 allow_undefined_flag_CXX=' -expect_unresolved \*'
11750 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'
11751 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11752 echo "-hidden">> $lib.exp~
11753 $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~
11754 $rm $lib.exp'
11755
11756 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11757 hardcode_libdir_separator_CXX=:
11758
11759 # Commands to make compiler produce verbose output that lists
11760 # what "hidden" libraries, object files and flags are used when
11761 # linking a shared library.
11762 #
11763 # There doesn't appear to be a way to prevent this compiler from
11764 # explicitly linking system object files so we need to strip them
11765 # from the output so that they don't get included in the library
11766 # dependencies.
11767 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'
11768 ;;
11769 *)
11770 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11771 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11772 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'
11773
11774 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11775 hardcode_libdir_separator_CXX=:
11776
11777 # Commands to make compiler produce verbose output that lists
11778 # what "hidden" libraries, object files and flags are used when
11779 # linking a shared library.
11780 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11781
11782 else
11783 # FIXME: insert proper C++ library support
11784 ld_shlibs_CXX=no
11785 fi
11786 ;;
11787 esac
11788 ;;
11789 psos*)
11790 # FIXME: insert proper C++ library support
11791 ld_shlibs_CXX=no
11792 ;;
11793 sunos4*)
11794 case $cc_basename in
11795 CC*)
11796 # Sun C++ 4.x
11797 # FIXME: insert proper C++ library support
11798 ld_shlibs_CXX=no
11799 ;;
11800 lcc*)
11801 # Lucid
11802 # FIXME: insert proper C++ library support
11803 ld_shlibs_CXX=no
11804 ;;
11805 *)
11806 # FIXME: insert proper C++ library support
11807 ld_shlibs_CXX=no
11808 ;;
11809 esac
11810 ;;
11811 solaris*)
11812 case $cc_basename in
11813 CC*)
11814 # Sun C++ 4.2, 5.x and Centerline C++
11815 archive_cmds_need_lc_CXX=yes
11816 no_undefined_flag_CXX=' -zdefs'
11817 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11818 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11819 $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'
11820
11821 hardcode_libdir_flag_spec_CXX='-R$libdir'
11822 hardcode_shlibpath_var_CXX=no
11823 case $host_os in
11824 solaris2.[0-5] | solaris2.[0-5].*) ;;
11825 *)
11826 # The compiler driver will combine and reorder linker options,
11827 # but understands `-z linker_flag'.
11828 # Supported since Solaris 2.6 (maybe 2.5.1?)
11829 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11830 ;;
11831 esac
11832 link_all_deplibs_CXX=yes
11833
11834 output_verbose_link_cmd='echo'
11835
11836 # Archives containing C++ object files must be created using
11837 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11838 # necessary to make sure instantiated templates are included
11839 # in the archive.
11840 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11841 ;;
11842 gcx*)
11843 # Green Hills C++ Compiler
11844 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11845
11846 # The C++ compiler must be used to create the archive.
11847 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11848 ;;
11849 *)
11850 # GNU C++ compiler with Solaris linker
11851 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11852 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11853 if $CC --version | grep -v '^2\.7' > /dev/null; then
11854 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11855 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11856 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11857
11858 # Commands to make compiler produce verbose output that lists
11859 # what "hidden" libraries, object files and flags are used when
11860 # linking a shared library.
11861 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11862 else
11863 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11864 # platform.
11865 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11866 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11867 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11868
11869 # Commands to make compiler produce verbose output that lists
11870 # what "hidden" libraries, object files and flags are used when
11871 # linking a shared library.
11872 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11873 fi
11874
11875 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11876 case $host_os in
11877 solaris2.[0-5] | solaris2.[0-5].*) ;;
11878 *)
11879 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11880 ;;
11881 esac
11882 fi
11883 ;;
11884 esac
11885 ;;
11886 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11887 no_undefined_flag_CXX='${wl}-z,text'
11888 archive_cmds_need_lc_CXX=no
11889 hardcode_shlibpath_var_CXX=no
11890 runpath_var='LD_RUN_PATH'
11891
11892 case $cc_basename in
11893 CC*)
11894 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11895 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11896 ;;
11897 *)
11898 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11899 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11900 ;;
11901 esac
11902 ;;
11903 sysv5* | sco3.2v5* | sco5v6*)
11904 # Note: We can NOT use -z defs as we might desire, because we do not
11905 # link with -lc, and that would cause any symbols used from libc to
11906 # always be unresolved, which means just about no library would
11907 # ever link correctly. If we're not using GNU ld we use -z text
11908 # though, which does catch some bad symbols but isn't as heavy-handed
11909 # as -z defs.
11910 # For security reasons, it is highly recommended that you always
11911 # use absolute paths for naming shared libraries, and exclude the
11912 # DT_RUNPATH tag from executables and libraries. But doing so
11913 # requires that you compile everything twice, which is a pain.
11914 # So that behaviour is only enabled if SCOABSPATH is set to a
11915 # non-empty value in the environment. Most likely only useful for
11916 # creating official distributions of packages.
11917 # This is a hack until libtool officially supports absolute path
11918 # names for shared libraries.
11919 no_undefined_flag_CXX='${wl}-z,text'
11920 allow_undefined_flag_CXX='${wl}-z,nodefs'
11921 archive_cmds_need_lc_CXX=no
11922 hardcode_shlibpath_var_CXX=no
11923 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11924 hardcode_libdir_separator_CXX=':'
11925 link_all_deplibs_CXX=yes
11926 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11927 runpath_var='LD_RUN_PATH'
11928
11929 case $cc_basename in
11930 CC*)
11931 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11932 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11933 ;;
11934 *)
11935 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11936 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11937 ;;
11938 esac
11939 ;;
11940 tandem*)
11941 case $cc_basename in
11942 NCC*)
11943 # NonStop-UX NCC 3.20
11944 # FIXME: insert proper C++ library support
11945 ld_shlibs_CXX=no
11946 ;;
11947 *)
11948 # FIXME: insert proper C++ library support
11949 ld_shlibs_CXX=no
11950 ;;
11951 esac
11952 ;;
11953 vxworks*)
11954 # FIXME: insert proper C++ library support
11955 ld_shlibs_CXX=no
11956 ;;
11957 *)
11958 # FIXME: insert proper C++ library support
11959 ld_shlibs_CXX=no
11960 ;;
11961 esac
11962 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11963 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11964 test "$ld_shlibs_CXX" = no && can_build_shared=no
11965
11966 GCC_CXX="$GXX"
11967 LD_CXX="$LD"
11968
11969
11970 cat > conftest.$ac_ext <<EOF
11971 class Foo
11972 {
11973 public:
11974 Foo (void) { a = 0; }
11975 private:
11976 int a;
11977 };
11978 EOF
11979
11980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11981 (eval $ac_compile) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; then
11985 # Parse the compiler output and extract the necessary
11986 # objects, libraries and library flags.
11987
11988 # Sentinel used to keep track of whether or not we are before
11989 # the conftest object file.
11990 pre_test_object_deps_done=no
11991
11992 # The `*' in the case matches for architectures that use `case' in
11993 # $output_verbose_cmd can trigger glob expansion during the loop
11994 # eval without this substitution.
11995 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11996
11997 for p in `eval $output_verbose_link_cmd`; do
11998 case $p in
11999
12000 -L* | -R* | -l*)
12001 # Some compilers place space between "-{L,R}" and the path.
12002 # Remove the space.
12003 if test $p = "-L" \
12004 || test $p = "-R"; then
12005 prev=$p
12006 continue
12007 else
12008 prev=
12009 fi
12010
12011 if test "$pre_test_object_deps_done" = no; then
12012 case $p in
12013 -L* | -R*)
12014 # Internal compiler library paths should come after those
12015 # provided the user. The postdeps already come after the
12016 # user supplied libs so there is no need to process them.
12017 if test -z "$compiler_lib_search_path_CXX"; then
12018 compiler_lib_search_path_CXX="${prev}${p}"
12019 else
12020 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12021 fi
12022 ;;
12023 # The "-l" case would never come before the object being
12024 # linked, so don't bother handling this case.
12025 esac
12026 else
12027 if test -z "$postdeps_CXX"; then
12028 postdeps_CXX="${prev}${p}"
12029 else
12030 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12031 fi
12032 fi
12033 ;;
12034
12035 *.$objext)
12036 # This assumes that the test object file only shows up
12037 # once in the compiler output.
12038 if test "$p" = "conftest.$objext"; then
12039 pre_test_object_deps_done=yes
12040 continue
12041 fi
12042
12043 if test "$pre_test_object_deps_done" = no; then
12044 if test -z "$predep_objects_CXX"; then
12045 predep_objects_CXX="$p"
12046 else
12047 predep_objects_CXX="$predep_objects_CXX $p"
12048 fi
12049 else
12050 if test -z "$postdep_objects_CXX"; then
12051 postdep_objects_CXX="$p"
12052 else
12053 postdep_objects_CXX="$postdep_objects_CXX $p"
12054 fi
12055 fi
12056 ;;
12057
12058 *) ;; # Ignore the rest.
12059
12060 esac
12061 done
12062
12063 # Clean up.
12064 rm -f a.out a.exe
12065 else
12066 echo "libtool.m4: error: problem compiling CXX test program"
12067 fi
12068
12069 $rm -f confest.$objext
12070
12071 # PORTME: override above test on systems where it is broken
12072 case $host_os in
12073 interix[3-9]*)
12074 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12075 # hack all around it, let's just trust "g++" to DTRT.
12076 predep_objects_CXX=
12077 postdep_objects_CXX=
12078 postdeps_CXX=
12079 ;;
12080
12081 linux*)
12082 case `$CC -V 2>&1 | sed 5q` in
12083 *Sun\ C*)
12084 # Sun C++ 5.9
12085 #
12086 # The more standards-conforming stlport4 library is
12087 # incompatible with the Cstd library. Avoid specifying
12088 # it if it's in CXXFLAGS. Ignore libCrun as
12089 # -library=stlport4 depends on it.
12090 case " $CXX $CXXFLAGS " in
12091 *" -library=stlport4 "*)
12092 solaris_use_stlport4=yes
12093 ;;
12094 esac
12095 if test "$solaris_use_stlport4" != yes; then
12096 postdeps_CXX='-library=Cstd -library=Crun'
12097 fi
12098 ;;
12099 esac
12100 ;;
12101
12102 solaris*)
12103 case $cc_basename in
12104 CC*)
12105 # The more standards-conforming stlport4 library is
12106 # incompatible with the Cstd library. Avoid specifying
12107 # it if it's in CXXFLAGS. Ignore libCrun as
12108 # -library=stlport4 depends on it.
12109 case " $CXX $CXXFLAGS " in
12110 *" -library=stlport4 "*)
12111 solaris_use_stlport4=yes
12112 ;;
12113 esac
12114
12115 # Adding this requires a known-good setup of shared libraries for
12116 # Sun compiler versions before 5.6, else PIC objects from an old
12117 # archive will be linked into the output, leading to subtle bugs.
12118 if test "$solaris_use_stlport4" != yes; then
12119 postdeps_CXX='-library=Cstd -library=Crun'
12120 fi
12121 ;;
12122 esac
12123 ;;
12124 esac
12125
12126
12127 case " $postdeps_CXX " in
12128 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12129 esac
12130
12131 lt_prog_compiler_wl_CXX=
12132 lt_prog_compiler_pic_CXX=
12133 lt_prog_compiler_static_CXX=
12134
12135 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12136 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12137
12138 # C++ specific cases for pic, static, wl, etc.
12139 if test "$GXX" = yes; then
12140 lt_prog_compiler_wl_CXX='-Wl,'
12141 lt_prog_compiler_static_CXX='-static'
12142
12143 case $host_os in
12144 aix*)
12145 # All AIX code is PIC.
12146 if test "$host_cpu" = ia64; then
12147 # AIX 5 now supports IA64 processor
12148 lt_prog_compiler_static_CXX='-Bstatic'
12149 fi
12150 ;;
12151 amigaos*)
12152 # FIXME: we need at least 68020 code to build shared libraries, but
12153 # adding the `-m68020' flag to GCC prevents building anything better,
12154 # like `-m68040'.
12155 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12156 ;;
12157 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12158 # PIC is the default for these OSes.
12159 ;;
12160 mingw* | cygwin* | os2* | pw32*)
12161 # This hack is so that the source file can tell whether it is being
12162 # built for inclusion in a dll (and should export symbols for example).
12163 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12164 # (--disable-auto-import) libraries
12165 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12166 ;;
12167 darwin* | rhapsody*)
12168 # PIC is the default on this platform
12169 # Common symbols not allowed in MH_DYLIB files
12170 lt_prog_compiler_pic_CXX='-fno-common'
12171 ;;
12172 *djgpp*)
12173 # DJGPP does not support shared libraries at all
12174 lt_prog_compiler_pic_CXX=
12175 ;;
12176 interix[3-9]*)
12177 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12178 # Instead, we relocate shared libraries at runtime.
12179 ;;
12180 sysv4*MP*)
12181 if test -d /usr/nec; then
12182 lt_prog_compiler_pic_CXX=-Kconform_pic
12183 fi
12184 ;;
12185 hpux*)
12186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12187 # not for PA HP-UX.
12188 case $host_cpu in
12189 hppa*64*|ia64*)
12190 ;;
12191 *)
12192 lt_prog_compiler_pic_CXX='-fPIC'
12193 ;;
12194 esac
12195 ;;
12196 *)
12197 lt_prog_compiler_pic_CXX='-fPIC'
12198 ;;
12199 esac
12200 else
12201 case $host_os in
12202 aix4* | aix5*)
12203 # All AIX code is PIC.
12204 if test "$host_cpu" = ia64; then
12205 # AIX 5 now supports IA64 processor
12206 lt_prog_compiler_static_CXX='-Bstatic'
12207 else
12208 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12209 fi
12210 ;;
12211 chorus*)
12212 case $cc_basename in
12213 cxch68*)
12214 # Green Hills C++ Compiler
12215 # _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"
12216 ;;
12217 esac
12218 ;;
12219 darwin*)
12220 # PIC is the default on this platform
12221 # Common symbols not allowed in MH_DYLIB files
12222 case $cc_basename in
12223 xlc*)
12224 lt_prog_compiler_pic_CXX='-qnocommon'
12225 lt_prog_compiler_wl_CXX='-Wl,'
12226 ;;
12227 esac
12228 ;;
12229 dgux*)
12230 case $cc_basename in
12231 ec++*)
12232 lt_prog_compiler_pic_CXX='-KPIC'
12233 ;;
12234 ghcx*)
12235 # Green Hills C++ Compiler
12236 lt_prog_compiler_pic_CXX='-pic'
12237 ;;
12238 *)
12239 ;;
12240 esac
12241 ;;
12242 freebsd* | dragonfly*)
12243 # FreeBSD uses GNU C++
12244 ;;
12245 hpux9* | hpux10* | hpux11*)
12246 case $cc_basename in
12247 CC*)
12248 lt_prog_compiler_wl_CXX='-Wl,'
12249 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12250 if test "$host_cpu" != ia64; then
12251 lt_prog_compiler_pic_CXX='+Z'
12252 fi
12253 ;;
12254 aCC*)
12255 lt_prog_compiler_wl_CXX='-Wl,'
12256 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12257 case $host_cpu in
12258 hppa*64*|ia64*)
12259 # +Z the default
12260 ;;
12261 *)
12262 lt_prog_compiler_pic_CXX='+Z'
12263 ;;
12264 esac
12265 ;;
12266 *)
12267 ;;
12268 esac
12269 ;;
12270 interix*)
12271 # This is c89, which is MS Visual C++ (no shared libs)
12272 # Anyone wants to do a port?
12273 ;;
12274 irix5* | irix6* | nonstopux*)
12275 case $cc_basename in
12276 CC*)
12277 lt_prog_compiler_wl_CXX='-Wl,'
12278 lt_prog_compiler_static_CXX='-non_shared'
12279 # CC pic flag -KPIC is the default.
12280 ;;
12281 *)
12282 ;;
12283 esac
12284 ;;
12285 linux* | k*bsd*-gnu)
12286 case $cc_basename in
12287 KCC*)
12288 # KAI C++ Compiler
12289 lt_prog_compiler_wl_CXX='--backend -Wl,'
12290 lt_prog_compiler_pic_CXX='-fPIC'
12291 ;;
12292 icpc* | ecpc*)
12293 # Intel C++
12294 lt_prog_compiler_wl_CXX='-Wl,'
12295 lt_prog_compiler_pic_CXX='-KPIC'
12296 lt_prog_compiler_static_CXX='-static'
12297 ;;
12298 pgCC*)
12299 # Portland Group C++ compiler.
12300 lt_prog_compiler_wl_CXX='-Wl,'
12301 lt_prog_compiler_pic_CXX='-fpic'
12302 lt_prog_compiler_static_CXX='-Bstatic'
12303 ;;
12304 cxx*)
12305 # Compaq C++
12306 # Make sure the PIC flag is empty. It appears that all Alpha
12307 # Linux and Compaq Tru64 Unix objects are PIC.
12308 lt_prog_compiler_pic_CXX=
12309 lt_prog_compiler_static_CXX='-non_shared'
12310 ;;
12311 *)
12312 case `$CC -V 2>&1 | sed 5q` in
12313 *Sun\ C*)
12314 # Sun C++ 5.9
12315 lt_prog_compiler_pic_CXX='-KPIC'
12316 lt_prog_compiler_static_CXX='-Bstatic'
12317 lt_prog_compiler_wl_CXX='-Qoption ld '
12318 ;;
12319 esac
12320 ;;
12321 esac
12322 ;;
12323 lynxos*)
12324 ;;
12325 m88k*)
12326 ;;
12327 mvs*)
12328 case $cc_basename in
12329 cxx*)
12330 lt_prog_compiler_pic_CXX='-W c,exportall'
12331 ;;
12332 *)
12333 ;;
12334 esac
12335 ;;
12336 netbsd*)
12337 ;;
12338 osf3* | osf4* | osf5*)
12339 case $cc_basename in
12340 KCC*)
12341 lt_prog_compiler_wl_CXX='--backend -Wl,'
12342 ;;
12343 RCC*)
12344 # Rational C++ 2.4.1
12345 lt_prog_compiler_pic_CXX='-pic'
12346 ;;
12347 cxx*)
12348 # Digital/Compaq C++
12349 lt_prog_compiler_wl_CXX='-Wl,'
12350 # Make sure the PIC flag is empty. It appears that all Alpha
12351 # Linux and Compaq Tru64 Unix objects are PIC.
12352 lt_prog_compiler_pic_CXX=
12353 lt_prog_compiler_static_CXX='-non_shared'
12354 ;;
12355 *)
12356 ;;
12357 esac
12358 ;;
12359 psos*)
12360 ;;
12361 solaris*)
12362 case $cc_basename in
12363 CC*)
12364 # Sun C++ 4.2, 5.x and Centerline C++
12365 lt_prog_compiler_pic_CXX='-KPIC'
12366 lt_prog_compiler_static_CXX='-Bstatic'
12367 lt_prog_compiler_wl_CXX='-Qoption ld '
12368 ;;
12369 gcx*)
12370 # Green Hills C++ Compiler
12371 lt_prog_compiler_pic_CXX='-PIC'
12372 ;;
12373 *)
12374 ;;
12375 esac
12376 ;;
12377 sunos4*)
12378 case $cc_basename in
12379 CC*)
12380 # Sun C++ 4.x
12381 lt_prog_compiler_pic_CXX='-pic'
12382 lt_prog_compiler_static_CXX='-Bstatic'
12383 ;;
12384 lcc*)
12385 # Lucid
12386 lt_prog_compiler_pic_CXX='-pic'
12387 ;;
12388 *)
12389 ;;
12390 esac
12391 ;;
12392 tandem*)
12393 case $cc_basename in
12394 NCC*)
12395 # NonStop-UX NCC 3.20
12396 lt_prog_compiler_pic_CXX='-KPIC'
12397 ;;
12398 *)
12399 ;;
12400 esac
12401 ;;
12402 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12403 case $cc_basename in
12404 CC*)
12405 lt_prog_compiler_wl_CXX='-Wl,'
12406 lt_prog_compiler_pic_CXX='-KPIC'
12407 lt_prog_compiler_static_CXX='-Bstatic'
12408 ;;
12409 esac
12410 ;;
12411 vxworks*)
12412 ;;
12413 *)
12414 lt_prog_compiler_can_build_shared_CXX=no
12415 ;;
12416 esac
12417 fi
12418
12419 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12420 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12421
12422 #
12423 # Check to make sure the PIC flag actually works.
12424 #
12425 if test -n "$lt_prog_compiler_pic_CXX"; then
12426
12427 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12428 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12429 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432 lt_prog_compiler_pic_works_CXX=no
12433 ac_outfile=conftest.$ac_objext
12434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12435 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12436 # Insert the option either (1) after the last *FLAGS variable, or
12437 # (2) before a word containing "conftest.", or (3) at the end.
12438 # Note that $ac_compile itself does not contain backslashes and begins
12439 # with a dollar sign (not a hyphen), so the echo should work correctly.
12440 # The option is referenced via a variable to avoid confusing sed.
12441 lt_compile=`echo "$ac_compile" | $SED \
12442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12444 -e 's:$: $lt_compiler_flag:'`
12445 (eval echo "\"\$as_me:12445: $lt_compile\"" >&5)
12446 (eval "$lt_compile" 2>conftest.err)
12447 ac_status=$?
12448 cat conftest.err >&5
12449 echo "$as_me:12449: \$? = $ac_status" >&5
12450 if (exit $ac_status) && test -s "$ac_outfile"; then
12451 # The compiler can only warn and ignore the option if not recognized
12452 # So say no if there are warnings other than the usual output.
12453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12456 lt_prog_compiler_pic_works_CXX=yes
12457 fi
12458 fi
12459 $rm conftest*
12460
12461 fi
12462 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12463 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12464
12465 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12466 case $lt_prog_compiler_pic_CXX in
12467 "" | " "*) ;;
12468 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12469 esac
12470 else
12471 lt_prog_compiler_pic_CXX=
12472 lt_prog_compiler_can_build_shared_CXX=no
12473 fi
12474
12475 fi
12476 case $host_os in
12477 # For platforms which do not support PIC, -DPIC is meaningless:
12478 *djgpp*)
12479 lt_prog_compiler_pic_CXX=
12480 ;;
12481 *)
12482 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12483 ;;
12484 esac
12485
12486 #
12487 # Check to make sure the static flag actually works.
12488 #
12489 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12490 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12491 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12492 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495 lt_prog_compiler_static_works_CXX=no
12496 save_LDFLAGS="$LDFLAGS"
12497 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12498 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12500 # The linker can only warn and ignore the option if not recognized
12501 # So say no if there are warnings
12502 if test -s conftest.err; then
12503 # Append any errors to the config.log.
12504 cat conftest.err 1>&5
12505 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12507 if diff conftest.exp conftest.er2 >/dev/null; then
12508 lt_prog_compiler_static_works_CXX=yes
12509 fi
12510 else
12511 lt_prog_compiler_static_works_CXX=yes
12512 fi
12513 fi
12514 $rm conftest*
12515 LDFLAGS="$save_LDFLAGS"
12516
12517 fi
12518 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12519 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12520
12521 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12522 :
12523 else
12524 lt_prog_compiler_static_CXX=
12525 fi
12526
12527
12528 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12529 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12530 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533 lt_cv_prog_compiler_c_o_CXX=no
12534 $rm -r conftest 2>/dev/null
12535 mkdir conftest
12536 cd conftest
12537 mkdir out
12538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12539
12540 lt_compiler_flag="-o out/conftest2.$ac_objext"
12541 # Insert the option either (1) after the last *FLAGS variable, or
12542 # (2) before a word containing "conftest.", or (3) at the end.
12543 # Note that $ac_compile itself does not contain backslashes and begins
12544 # with a dollar sign (not a hyphen), so the echo should work correctly.
12545 lt_compile=`echo "$ac_compile" | $SED \
12546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12548 -e 's:$: $lt_compiler_flag:'`
12549 (eval echo "\"\$as_me:12549: $lt_compile\"" >&5)
12550 (eval "$lt_compile" 2>out/conftest.err)
12551 ac_status=$?
12552 cat out/conftest.err >&5
12553 echo "$as_me:12553: \$? = $ac_status" >&5
12554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12555 then
12556 # The compiler can only warn and ignore the option if not recognized
12557 # So say no if there are warnings
12558 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12561 lt_cv_prog_compiler_c_o_CXX=yes
12562 fi
12563 fi
12564 chmod u+w . 2>&5
12565 $rm conftest*
12566 # SGI C++ compiler will create directory out/ii_files/ for
12567 # template instantiation
12568 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12569 $rm out/* && rmdir out
12570 cd ..
12571 rmdir conftest
12572 $rm conftest*
12573
12574 fi
12575 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12576 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12577
12578
12579 hard_links="nottested"
12580 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12581 # do not overwrite the value of need_locks provided by the user
12582 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12583 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12584 hard_links=yes
12585 $rm conftest*
12586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12587 touch conftest.a
12588 ln conftest.a conftest.b 2>&5 || hard_links=no
12589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12590 { echo "$as_me:$LINENO: result: $hard_links" >&5
12591 echo "${ECHO_T}$hard_links" >&6; }
12592 if test "$hard_links" = no; then
12593 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12594 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12595 need_locks=warn
12596 fi
12597 else
12598 need_locks=no
12599 fi
12600
12601 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12602 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12603
12604 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12605 case $host_os in
12606 aix4* | aix5*)
12607 # If we're using GNU nm, then we don't want the "-C" option.
12608 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12609 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12610 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'
12611 else
12612 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'
12613 fi
12614 ;;
12615 pw32*)
12616 export_symbols_cmds_CXX="$ltdll_cmds"
12617 ;;
12618 cygwin* | mingw*)
12619 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'
12620 ;;
12621 *)
12622 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12623 ;;
12624 esac
12625
12626 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12627 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12628 test "$ld_shlibs_CXX" = no && can_build_shared=no
12629
12630 #
12631 # Do we need to explicitly link libc?
12632 #
12633 case "x$archive_cmds_need_lc_CXX" in
12634 x|xyes)
12635 # Assume -lc should be added
12636 archive_cmds_need_lc_CXX=yes
12637
12638 if test "$enable_shared" = yes && test "$GCC" = yes; then
12639 case $archive_cmds_CXX in
12640 *'~'*)
12641 # FIXME: we may have to deal with multi-command sequences.
12642 ;;
12643 '$CC '*)
12644 # Test whether the compiler implicitly links with -lc since on some
12645 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12646 # to ld, don't add -lc before -lgcc.
12647 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12648 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12649 $rm conftest*
12650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12651
12652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653 (eval $ac_compile) 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } 2>conftest.err; then
12657 soname=conftest
12658 lib=conftest
12659 libobjs=conftest.$ac_objext
12660 deplibs=
12661 wl=$lt_prog_compiler_wl_CXX
12662 pic_flag=$lt_prog_compiler_pic_CXX
12663 compiler_flags=-v
12664 linker_flags=-v
12665 verstring=
12666 output_objdir=.
12667 libname=conftest
12668 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12669 allow_undefined_flag_CXX=
12670 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12671 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }
12675 then
12676 archive_cmds_need_lc_CXX=no
12677 else
12678 archive_cmds_need_lc_CXX=yes
12679 fi
12680 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12681 else
12682 cat conftest.err 1>&5
12683 fi
12684 $rm conftest*
12685 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12686 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12687 ;;
12688 esac
12689 fi
12690 ;;
12691 esac
12692
12693 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12694 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12695 library_names_spec=
12696 libname_spec='lib$name'
12697 soname_spec=
12698 shrext_cmds=".so"
12699 postinstall_cmds=
12700 postuninstall_cmds=
12701 finish_cmds=
12702 finish_eval=
12703 shlibpath_var=
12704 shlibpath_overrides_runpath=unknown
12705 version_type=none
12706 dynamic_linker="$host_os ld.so"
12707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12708
12709 need_lib_prefix=unknown
12710 hardcode_into_libs=no
12711
12712 # when you set need_version to no, make sure it does not cause -set_version
12713 # flags to be left without arguments
12714 need_version=unknown
12715
12716 case $host_os in
12717 aix3*)
12718 version_type=linux
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12720 shlibpath_var=LIBPATH
12721
12722 # AIX 3 has no versioning support, so we append a major version to the name.
12723 soname_spec='${libname}${release}${shared_ext}$major'
12724 ;;
12725
12726 aix4* | aix5*)
12727 version_type=linux
12728 need_lib_prefix=no
12729 need_version=no
12730 hardcode_into_libs=yes
12731 if test "$host_cpu" = ia64; then
12732 # AIX 5 supports IA64
12733 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 else
12736 # With GCC up to 2.95.x, collect2 would create an import file
12737 # for dependence libraries. The import file would start with
12738 # the line `#! .'. This would cause the generated library to
12739 # depend on `.', always an invalid library. This was fixed in
12740 # development snapshots of GCC prior to 3.0.
12741 case $host_os in
12742 aix4 | aix4.[01] | aix4.[01].*)
12743 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12744 echo ' yes '
12745 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12746 :
12747 else
12748 can_build_shared=no
12749 fi
12750 ;;
12751 esac
12752 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12753 # soname into executable. Probably we can add versioning support to
12754 # collect2, so additional links can be useful in future.
12755 if test "$aix_use_runtimelinking" = yes; then
12756 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12757 # instead of lib<name>.a to let people know that these are not
12758 # typical AIX shared libraries.
12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12760 else
12761 # We preserve .a as extension for shared libraries through AIX4.2
12762 # and later when we are not doing run time linking.
12763 library_names_spec='${libname}${release}.a $libname.a'
12764 soname_spec='${libname}${release}${shared_ext}$major'
12765 fi
12766 shlibpath_var=LIBPATH
12767 fi
12768 ;;
12769
12770 amigaos*)
12771 library_names_spec='$libname.ixlibrary $libname.a'
12772 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12773 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'
12774 ;;
12775
12776 beos*)
12777 library_names_spec='${libname}${shared_ext}'
12778 dynamic_linker="$host_os ld.so"
12779 shlibpath_var=LIBRARY_PATH
12780 ;;
12781
12782 bsdi[45]*)
12783 version_type=linux
12784 need_version=no
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12786 soname_spec='${libname}${release}${shared_ext}$major'
12787 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12788 shlibpath_var=LD_LIBRARY_PATH
12789 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12790 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12791 # the default ld.so.conf also contains /usr/contrib/lib and
12792 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12793 # libtool to hard-code these into programs
12794 ;;
12795
12796 cygwin* | mingw* | pw32*)
12797 version_type=windows
12798 shrext_cmds=".dll"
12799 need_version=no
12800 need_lib_prefix=no
12801
12802 case $GCC,$host_os in
12803 yes,cygwin* | yes,mingw* | yes,pw32*)
12804 library_names_spec='$libname.dll.a'
12805 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12806 postinstall_cmds='base_file=`basename \${file}`~
12807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12808 dldir=$destdir/`dirname \$dlpath`~
12809 test -d \$dldir || mkdir -p \$dldir~
12810 $install_prog $dir/$dlname \$dldir/$dlname~
12811 chmod a+x \$dldir/$dlname'
12812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12813 dlpath=$dir/\$dldll~
12814 $rm \$dlpath'
12815 shlibpath_overrides_runpath=yes
12816
12817 case $host_os in
12818 cygwin*)
12819 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12820 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12821 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12822 ;;
12823 mingw*)
12824 # MinGW DLLs use traditional 'lib' prefix
12825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12826 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12827 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12828 # It is most probably a Windows format PATH printed by
12829 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12830 # path with ; separators, and with drive letters. We can handle the
12831 # drive letters (cygwin fileutils understands them), so leave them,
12832 # especially as we might pass files found there to a mingw objdump,
12833 # which wouldn't understand a cygwinified path. Ahh.
12834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12835 else
12836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12837 fi
12838 ;;
12839 pw32*)
12840 # pw32 DLLs use 'pw' prefix rather than 'lib'
12841 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12842 ;;
12843 esac
12844 ;;
12845
12846 *)
12847 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12848 ;;
12849 esac
12850 dynamic_linker='Win32 ld.exe'
12851 # FIXME: first we should search . and the directory the executable is in
12852 shlibpath_var=PATH
12853 ;;
12854
12855 darwin* | rhapsody*)
12856 dynamic_linker="$host_os dyld"
12857 version_type=darwin
12858 need_lib_prefix=no
12859 need_version=no
12860 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12861 soname_spec='${libname}${release}${major}$shared_ext'
12862 shlibpath_overrides_runpath=yes
12863 shlibpath_var=DYLD_LIBRARY_PATH
12864 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12865
12866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12867 ;;
12868
12869 dgux*)
12870 version_type=linux
12871 need_lib_prefix=no
12872 need_version=no
12873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12874 soname_spec='${libname}${release}${shared_ext}$major'
12875 shlibpath_var=LD_LIBRARY_PATH
12876 ;;
12877
12878 freebsd1*)
12879 dynamic_linker=no
12880 ;;
12881
12882 freebsd* | dragonfly*)
12883 # DragonFly does not have aout. When/if they implement a new
12884 # versioning mechanism, adjust this.
12885 if test -x /usr/bin/objformat; then
12886 objformat=`/usr/bin/objformat`
12887 else
12888 case $host_os in
12889 freebsd[123]*) objformat=aout ;;
12890 *) objformat=elf ;;
12891 esac
12892 fi
12893 version_type=freebsd-$objformat
12894 case $version_type in
12895 freebsd-elf*)
12896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12897 need_version=no
12898 need_lib_prefix=no
12899 ;;
12900 freebsd-*)
12901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12902 need_version=yes
12903 ;;
12904 esac
12905 shlibpath_var=LD_LIBRARY_PATH
12906 case $host_os in
12907 freebsd2*)
12908 shlibpath_overrides_runpath=yes
12909 ;;
12910 freebsd3.[01]* | freebsdelf3.[01]*)
12911 shlibpath_overrides_runpath=yes
12912 hardcode_into_libs=yes
12913 ;;
12914 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12915 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12916 shlibpath_overrides_runpath=no
12917 hardcode_into_libs=yes
12918 ;;
12919 *) # from 4.6 on, and DragonFly
12920 shlibpath_overrides_runpath=yes
12921 hardcode_into_libs=yes
12922 ;;
12923 esac
12924 ;;
12925
12926 gnu*)
12927 version_type=linux
12928 need_lib_prefix=no
12929 need_version=no
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12931 soname_spec='${libname}${release}${shared_ext}$major'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 hardcode_into_libs=yes
12934 ;;
12935
12936 hpux9* | hpux10* | hpux11*)
12937 # Give a soname corresponding to the major version so that dld.sl refuses to
12938 # link against other versions.
12939 version_type=sunos
12940 need_lib_prefix=no
12941 need_version=no
12942 case $host_cpu in
12943 ia64*)
12944 shrext_cmds='.so'
12945 hardcode_into_libs=yes
12946 dynamic_linker="$host_os dld.so"
12947 shlibpath_var=LD_LIBRARY_PATH
12948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12950 soname_spec='${libname}${release}${shared_ext}$major'
12951 if test "X$HPUX_IA64_MODE" = X32; then
12952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12953 else
12954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12955 fi
12956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12957 ;;
12958 hppa*64*)
12959 shrext_cmds='.sl'
12960 hardcode_into_libs=yes
12961 dynamic_linker="$host_os dld.sl"
12962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12965 soname_spec='${libname}${release}${shared_ext}$major'
12966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12968 ;;
12969 *)
12970 shrext_cmds='.sl'
12971 dynamic_linker="$host_os dld.sl"
12972 shlibpath_var=SHLIB_PATH
12973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12975 soname_spec='${libname}${release}${shared_ext}$major'
12976 ;;
12977 esac
12978 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12979 postinstall_cmds='chmod 555 $lib'
12980 ;;
12981
12982 interix[3-9]*)
12983 version_type=linux
12984 need_lib_prefix=no
12985 need_version=no
12986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12987 soname_spec='${libname}${release}${shared_ext}$major'
12988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12989 shlibpath_var=LD_LIBRARY_PATH
12990 shlibpath_overrides_runpath=no
12991 hardcode_into_libs=yes
12992 ;;
12993
12994 irix5* | irix6* | nonstopux*)
12995 case $host_os in
12996 nonstopux*) version_type=nonstopux ;;
12997 *)
12998 if test "$lt_cv_prog_gnu_ld" = yes; then
12999 version_type=linux
13000 else
13001 version_type=irix
13002 fi ;;
13003 esac
13004 need_lib_prefix=no
13005 need_version=no
13006 soname_spec='${libname}${release}${shared_ext}$major'
13007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13008 case $host_os in
13009 irix5* | nonstopux*)
13010 libsuff= shlibsuff=
13011 ;;
13012 *)
13013 case $LD in # libtool.m4 will add one of these switches to LD
13014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13015 libsuff= shlibsuff= libmagic=32-bit;;
13016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13017 libsuff=32 shlibsuff=N32 libmagic=N32;;
13018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13019 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13020 *) libsuff= shlibsuff= libmagic=never-match;;
13021 esac
13022 ;;
13023 esac
13024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13025 shlibpath_overrides_runpath=no
13026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13028 hardcode_into_libs=yes
13029 ;;
13030
13031 # No shared lib support for Linux oldld, aout, or coff.
13032 linux*oldld* | linux*aout* | linux*coff*)
13033 dynamic_linker=no
13034 ;;
13035
13036 # This must be Linux ELF.
13037 linux* | k*bsd*-gnu)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=no
13046 # This implies no fast_install, which is unacceptable.
13047 # Some rework will be needed to allow for fast_install
13048 # before this can be enabled.
13049 hardcode_into_libs=yes
13050 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13051 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13052
13053 # Append ld.so.conf contents to the search path
13054 if test -f /etc/ld.so.conf; then
13055 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13056 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13057 fi
13058
13059 # We used to test for /lib/ld.so.1 and disable shared libraries on
13060 # powerpc, because MkLinux only supported shared libraries with the
13061 # GNU dynamic linker. Since this was broken with cross compilers,
13062 # most powerpc-linux boxes support dynamic linking these days and
13063 # people can always --disable-shared, the test was removed, and we
13064 # assume the GNU/Linux dynamic linker is in use.
13065 dynamic_linker='GNU/Linux ld.so'
13066 ;;
13067
13068 netbsd*)
13069 version_type=sunos
13070 need_lib_prefix=no
13071 need_version=no
13072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13075 dynamic_linker='NetBSD (a.out) ld.so'
13076 else
13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13078 soname_spec='${libname}${release}${shared_ext}$major'
13079 dynamic_linker='NetBSD ld.elf_so'
13080 fi
13081 shlibpath_var=LD_LIBRARY_PATH
13082 shlibpath_overrides_runpath=yes
13083 hardcode_into_libs=yes
13084 ;;
13085
13086 newsos6)
13087 version_type=linux
13088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13089 shlibpath_var=LD_LIBRARY_PATH
13090 shlibpath_overrides_runpath=yes
13091 ;;
13092
13093 nto-qnx*)
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 ;;
13102
13103 openbsd*)
13104 version_type=sunos
13105 sys_lib_dlsearch_path_spec="/usr/lib"
13106 need_lib_prefix=no
13107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13108 case $host_os in
13109 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13110 *) need_version=no ;;
13111 esac
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13116 case $host_os in
13117 openbsd2.[89] | openbsd2.[89].*)
13118 shlibpath_overrides_runpath=no
13119 ;;
13120 *)
13121 shlibpath_overrides_runpath=yes
13122 ;;
13123 esac
13124 else
13125 shlibpath_overrides_runpath=yes
13126 fi
13127 ;;
13128
13129 os2*)
13130 libname_spec='$name'
13131 shrext_cmds=".dll"
13132 need_lib_prefix=no
13133 library_names_spec='$libname${shared_ext} $libname.a'
13134 dynamic_linker='OS/2 ld.exe'
13135 shlibpath_var=LIBPATH
13136 ;;
13137
13138 osf3* | osf4* | osf5*)
13139 version_type=osf
13140 need_lib_prefix=no
13141 need_version=no
13142 soname_spec='${libname}${release}${shared_ext}$major'
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 shlibpath_var=LD_LIBRARY_PATH
13145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13147 ;;
13148
13149 rdos*)
13150 dynamic_linker=no
13151 ;;
13152
13153 solaris*)
13154 version_type=linux
13155 need_lib_prefix=no
13156 need_version=no
13157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13158 soname_spec='${libname}${release}${shared_ext}$major'
13159 shlibpath_var=LD_LIBRARY_PATH
13160 shlibpath_overrides_runpath=yes
13161 hardcode_into_libs=yes
13162 # ldd complains unless libraries are executable
13163 postinstall_cmds='chmod +x $lib'
13164 ;;
13165
13166 sunos4*)
13167 version_type=sunos
13168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13170 shlibpath_var=LD_LIBRARY_PATH
13171 shlibpath_overrides_runpath=yes
13172 if test "$with_gnu_ld" = yes; then
13173 need_lib_prefix=no
13174 fi
13175 need_version=yes
13176 ;;
13177
13178 sysv4 | sysv4.3*)
13179 version_type=linux
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13181 soname_spec='${libname}${release}${shared_ext}$major'
13182 shlibpath_var=LD_LIBRARY_PATH
13183 case $host_vendor in
13184 sni)
13185 shlibpath_overrides_runpath=no
13186 need_lib_prefix=no
13187 export_dynamic_flag_spec='${wl}-Blargedynsym'
13188 runpath_var=LD_RUN_PATH
13189 ;;
13190 siemens)
13191 need_lib_prefix=no
13192 ;;
13193 motorola)
13194 need_lib_prefix=no
13195 need_version=no
13196 shlibpath_overrides_runpath=no
13197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13198 ;;
13199 esac
13200 ;;
13201
13202 sysv4*MP*)
13203 if test -d /usr/nec ;then
13204 version_type=linux
13205 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13206 soname_spec='$libname${shared_ext}.$major'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 fi
13209 ;;
13210
13211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13212 version_type=freebsd-elf
13213 need_lib_prefix=no
13214 need_version=no
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13216 soname_spec='${libname}${release}${shared_ext}$major'
13217 shlibpath_var=LD_LIBRARY_PATH
13218 hardcode_into_libs=yes
13219 if test "$with_gnu_ld" = yes; then
13220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13221 shlibpath_overrides_runpath=no
13222 else
13223 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13224 shlibpath_overrides_runpath=yes
13225 case $host_os in
13226 sco3.2v5*)
13227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13228 ;;
13229 esac
13230 fi
13231 sys_lib_dlsearch_path_spec='/usr/lib'
13232 ;;
13233
13234 uts4*)
13235 version_type=linux
13236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13237 soname_spec='${libname}${release}${shared_ext}$major'
13238 shlibpath_var=LD_LIBRARY_PATH
13239 ;;
13240
13241 *)
13242 dynamic_linker=no
13243 ;;
13244 esac
13245 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13246 echo "${ECHO_T}$dynamic_linker" >&6; }
13247 test "$dynamic_linker" = no && can_build_shared=no
13248
13249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13250 if test "$GCC" = yes; then
13251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13252 fi
13253
13254 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13256 hardcode_action_CXX=
13257 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13258 test -n "$runpath_var_CXX" || \
13259 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13260
13261 # We can hardcode non-existant directories.
13262 if test "$hardcode_direct_CXX" != no &&
13263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13264 # have to relink, otherwise we might link with an installed library
13265 # when we should be linking with a yet-to-be-installed one
13266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13267 test "$hardcode_minus_L_CXX" != no; then
13268 # Linking always hardcodes the temporary library directory.
13269 hardcode_action_CXX=relink
13270 else
13271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13272 hardcode_action_CXX=immediate
13273 fi
13274 else
13275 # We cannot hardcode anything, or else we can only hardcode existing
13276 # directories.
13277 hardcode_action_CXX=unsupported
13278 fi
13279 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13280 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13281
13282 if test "$hardcode_action_CXX" = relink; then
13283 # Fast installation is not supported
13284 enable_fast_install=no
13285 elif test "$shlibpath_overrides_runpath" = yes ||
13286 test "$enable_shared" = no; then
13287 # Fast installation is not necessary
13288 enable_fast_install=needless
13289 fi
13290
13291
13292 # The else clause should only fire when bootstrapping the
13293 # libtool distribution, otherwise you forgot to ship ltmain.sh
13294 # with your package, and you will get complaints that there are
13295 # no rules to generate ltmain.sh.
13296 if test -f "$ltmain"; then
13297 # See if we are running on zsh, and set the options which allow our commands through
13298 # without removal of \ escapes.
13299 if test -n "${ZSH_VERSION+set}" ; then
13300 setopt NO_GLOB_SUBST
13301 fi
13302 # Now quote all the things that may contain metacharacters while being
13303 # careful not to overquote the AC_SUBSTed values. We take copies of the
13304 # variables and quote the copies for generation of the libtool script.
13305 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13306 SED SHELL STRIP \
13307 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13308 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13309 deplibs_check_method reload_flag reload_cmds need_locks \
13310 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13311 lt_cv_sys_global_symbol_to_c_name_address \
13312 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13313 old_postinstall_cmds old_postuninstall_cmds \
13314 compiler_CXX \
13315 CC_CXX \
13316 LD_CXX \
13317 lt_prog_compiler_wl_CXX \
13318 lt_prog_compiler_pic_CXX \
13319 lt_prog_compiler_static_CXX \
13320 lt_prog_compiler_no_builtin_flag_CXX \
13321 export_dynamic_flag_spec_CXX \
13322 thread_safe_flag_spec_CXX \
13323 whole_archive_flag_spec_CXX \
13324 enable_shared_with_static_runtimes_CXX \
13325 old_archive_cmds_CXX \
13326 old_archive_from_new_cmds_CXX \
13327 predep_objects_CXX \
13328 postdep_objects_CXX \
13329 predeps_CXX \
13330 postdeps_CXX \
13331 compiler_lib_search_path_CXX \
13332 archive_cmds_CXX \
13333 archive_expsym_cmds_CXX \
13334 postinstall_cmds_CXX \
13335 postuninstall_cmds_CXX \
13336 old_archive_from_expsyms_cmds_CXX \
13337 allow_undefined_flag_CXX \
13338 no_undefined_flag_CXX \
13339 export_symbols_cmds_CXX \
13340 hardcode_libdir_flag_spec_CXX \
13341 hardcode_libdir_flag_spec_ld_CXX \
13342 hardcode_libdir_separator_CXX \
13343 hardcode_automatic_CXX \
13344 module_cmds_CXX \
13345 module_expsym_cmds_CXX \
13346 lt_cv_prog_compiler_c_o_CXX \
13347 fix_srcfile_path_CXX \
13348 exclude_expsyms_CXX \
13349 include_expsyms_CXX; do
13350
13351 case $var in
13352 old_archive_cmds_CXX | \
13353 old_archive_from_new_cmds_CXX | \
13354 archive_cmds_CXX | \
13355 archive_expsym_cmds_CXX | \
13356 module_cmds_CXX | \
13357 module_expsym_cmds_CXX | \
13358 old_archive_from_expsyms_cmds_CXX | \
13359 export_symbols_cmds_CXX | \
13360 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13361 postinstall_cmds | postuninstall_cmds | \
13362 old_postinstall_cmds | old_postuninstall_cmds | \
13363 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13364 # Double-quote double-evaled strings.
13365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13366 ;;
13367 *)
13368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13369 ;;
13370 esac
13371 done
13372
13373 case $lt_echo in
13374 *'\$0 --fallback-echo"')
13375 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13376 ;;
13377 esac
13378
13379 cfgfile="$ofile"
13380
13381 cat <<__EOF__ >> "$cfgfile"
13382 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13383
13384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13385
13386 # Shell to use when invoking shell scripts.
13387 SHELL=$lt_SHELL
13388
13389 # Whether or not to build shared libraries.
13390 build_libtool_libs=$enable_shared
13391
13392 # Whether or not to build static libraries.
13393 build_old_libs=$enable_static
13394
13395 # Whether or not to add -lc for building shared libraries.
13396 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13397
13398 # Whether or not to disallow shared libs when runtime libs are static
13399 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13400
13401 # Whether or not to optimize for fast installation.
13402 fast_install=$enable_fast_install
13403
13404 # The host system.
13405 host_alias=$host_alias
13406 host=$host
13407 host_os=$host_os
13408
13409 # The build system.
13410 build_alias=$build_alias
13411 build=$build
13412 build_os=$build_os
13413
13414 # An echo program that does not interpret backslashes.
13415 echo=$lt_echo
13416
13417 # The archiver.
13418 AR=$lt_AR
13419 AR_FLAGS=$lt_AR_FLAGS
13420
13421 # A C compiler.
13422 LTCC=$lt_LTCC
13423
13424 # LTCC compiler flags.
13425 LTCFLAGS=$lt_LTCFLAGS
13426
13427 # A language-specific compiler.
13428 CC=$lt_compiler_CXX
13429
13430 # Is the compiler the GNU C compiler?
13431 with_gcc=$GCC_CXX
13432
13433 # An ERE matcher.
13434 EGREP=$lt_EGREP
13435
13436 # The linker used to build libraries.
13437 LD=$lt_LD_CXX
13438
13439 # Whether we need hard or soft links.
13440 LN_S=$lt_LN_S
13441
13442 # A BSD-compatible nm program.
13443 NM=$lt_NM
13444
13445 # A symbol stripping program
13446 STRIP=$lt_STRIP
13447
13448 # Used to examine libraries when file_magic_cmd begins "file"
13449 MAGIC_CMD=$MAGIC_CMD
13450
13451 # Used on cygwin: DLL creation program.
13452 DLLTOOL="$DLLTOOL"
13453
13454 # Used on cygwin: object dumper.
13455 OBJDUMP="$OBJDUMP"
13456
13457 # Used on cygwin: assembler.
13458 AS="$AS"
13459
13460 # The name of the directory that contains temporary libtool files.
13461 objdir=$objdir
13462
13463 # How to create reloadable object files.
13464 reload_flag=$lt_reload_flag
13465 reload_cmds=$lt_reload_cmds
13466
13467 # How to pass a linker flag through the compiler.
13468 wl=$lt_lt_prog_compiler_wl_CXX
13469
13470 # Object file suffix (normally "o").
13471 objext="$ac_objext"
13472
13473 # Old archive suffix (normally "a").
13474 libext="$libext"
13475
13476 # Shared library suffix (normally ".so").
13477 shrext_cmds='$shrext_cmds'
13478
13479 # Executable file suffix (normally "").
13480 exeext="$exeext"
13481
13482 # Additional compiler flags for building library objects.
13483 pic_flag=$lt_lt_prog_compiler_pic_CXX
13484 pic_mode=$pic_mode
13485
13486 # What is the maximum length of a command?
13487 max_cmd_len=$lt_cv_sys_max_cmd_len
13488
13489 # Does compiler simultaneously support -c and -o options?
13490 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13491
13492 # Must we lock files when doing compilation?
13493 need_locks=$lt_need_locks
13494
13495 # Do we need the lib prefix for modules?
13496 need_lib_prefix=$need_lib_prefix
13497
13498 # Do we need a version for libraries?
13499 need_version=$need_version
13500
13501 # Whether dlopen is supported.
13502 dlopen_support=$enable_dlopen
13503
13504 # Whether dlopen of programs is supported.
13505 dlopen_self=$enable_dlopen_self
13506
13507 # Whether dlopen of statically linked programs is supported.
13508 dlopen_self_static=$enable_dlopen_self_static
13509
13510 # Compiler flag to prevent dynamic linking.
13511 link_static_flag=$lt_lt_prog_compiler_static_CXX
13512
13513 # Compiler flag to turn off builtin functions.
13514 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13515
13516 # Compiler flag to allow reflexive dlopens.
13517 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13518
13519 # Compiler flag to generate shared objects directly from archives.
13520 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13521
13522 # Compiler flag to generate thread-safe objects.
13523 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13524
13525 # Library versioning type.
13526 version_type=$version_type
13527
13528 # Format of library name prefix.
13529 libname_spec=$lt_libname_spec
13530
13531 # List of archive names. First name is the real one, the rest are links.
13532 # The last name is the one that the linker finds with -lNAME.
13533 library_names_spec=$lt_library_names_spec
13534
13535 # The coded name of the library, if different from the real name.
13536 soname_spec=$lt_soname_spec
13537
13538 # Commands used to build and install an old-style archive.
13539 RANLIB=$lt_RANLIB
13540 old_archive_cmds=$lt_old_archive_cmds_CXX
13541 old_postinstall_cmds=$lt_old_postinstall_cmds
13542 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13543
13544 # Create an old-style archive from a shared archive.
13545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13546
13547 # Create a temporary old-style archive to link instead of a shared archive.
13548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13549
13550 # Commands used to build and install a shared archive.
13551 archive_cmds=$lt_archive_cmds_CXX
13552 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13553 postinstall_cmds=$lt_postinstall_cmds
13554 postuninstall_cmds=$lt_postuninstall_cmds
13555
13556 # Commands used to build a loadable module (assumed same as above if empty)
13557 module_cmds=$lt_module_cmds_CXX
13558 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13559
13560 # Commands to strip libraries.
13561 old_striplib=$lt_old_striplib
13562 striplib=$lt_striplib
13563
13564 # Dependencies to place before the objects being linked to create a
13565 # shared library.
13566 predep_objects=$lt_predep_objects_CXX
13567
13568 # Dependencies to place after the objects being linked to create a
13569 # shared library.
13570 postdep_objects=$lt_postdep_objects_CXX
13571
13572 # Dependencies to place before the objects being linked to create a
13573 # shared library.
13574 predeps=$lt_predeps_CXX
13575
13576 # Dependencies to place after the objects being linked to create a
13577 # shared library.
13578 postdeps=$lt_postdeps_CXX
13579
13580 # The library search path used internally by the compiler when linking
13581 # a shared library.
13582 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13583
13584 # Method to check whether dependent libraries are shared objects.
13585 deplibs_check_method=$lt_deplibs_check_method
13586
13587 # Command to use when deplibs_check_method == file_magic.
13588 file_magic_cmd=$lt_file_magic_cmd
13589
13590 # Flag that allows shared libraries with undefined symbols to be built.
13591 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13592
13593 # Flag that forces no undefined symbols.
13594 no_undefined_flag=$lt_no_undefined_flag_CXX
13595
13596 # Commands used to finish a libtool library installation in a directory.
13597 finish_cmds=$lt_finish_cmds
13598
13599 # Same as above, but a single script fragment to be evaled but not shown.
13600 finish_eval=$lt_finish_eval
13601
13602 # Take the output of nm and produce a listing of raw symbols and C names.
13603 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13604
13605 # Transform the output of nm in a proper C declaration
13606 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13607
13608 # Transform the output of nm in a C name address pair
13609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13610
13611 # This is the shared library runtime path variable.
13612 runpath_var=$runpath_var
13613
13614 # This is the shared library path variable.
13615 shlibpath_var=$shlibpath_var
13616
13617 # Is shlibpath searched before the hard-coded library search path?
13618 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13619
13620 # How to hardcode a shared library path into an executable.
13621 hardcode_action=$hardcode_action_CXX
13622
13623 # Whether we should hardcode library paths into libraries.
13624 hardcode_into_libs=$hardcode_into_libs
13625
13626 # Flag to hardcode \$libdir into a binary during linking.
13627 # This must work even if \$libdir does not exist.
13628 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13629
13630 # If ld is used when linking, flag to hardcode \$libdir into
13631 # a binary during linking. This must work even if \$libdir does
13632 # not exist.
13633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13634
13635 # Whether we need a single -rpath flag with a separated argument.
13636 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13637
13638 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13639 # resulting binary.
13640 hardcode_direct=$hardcode_direct_CXX
13641
13642 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13643 # resulting binary.
13644 hardcode_minus_L=$hardcode_minus_L_CXX
13645
13646 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13647 # the resulting binary.
13648 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13649
13650 # Set to yes if building a shared library automatically hardcodes DIR into the library
13651 # and all subsequent libraries and executables linked against it.
13652 hardcode_automatic=$hardcode_automatic_CXX
13653
13654 # Variables whose values should be saved in libtool wrapper scripts and
13655 # restored at relink time.
13656 variables_saved_for_relink="$variables_saved_for_relink"
13657
13658 # Whether libtool must link a program against all its dependency libraries.
13659 link_all_deplibs=$link_all_deplibs_CXX
13660
13661 # Compile-time system search path for libraries
13662 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13663
13664 # Run-time system search path for libraries
13665 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13666
13667 # Fix the shell variable \$srcfile for the compiler.
13668 fix_srcfile_path=$lt_fix_srcfile_path
13669
13670 # Set to yes if exported symbols are required.
13671 always_export_symbols=$always_export_symbols_CXX
13672
13673 # The commands to list exported symbols.
13674 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13675
13676 # The commands to extract the exported symbol list from a shared archive.
13677 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13678
13679 # Symbols that should not be listed in the preloaded symbols.
13680 exclude_expsyms=$lt_exclude_expsyms_CXX
13681
13682 # Symbols that must always be exported.
13683 include_expsyms=$lt_include_expsyms_CXX
13684
13685 # ### END LIBTOOL TAG CONFIG: $tagname
13686
13687 __EOF__
13688
13689
13690 else
13691 # If there is no Makefile yet, we rely on a make rule to execute
13692 # `config.status --recheck' to rerun these tests and create the
13693 # libtool script then.
13694 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13695 if test -f "$ltmain_in"; then
13696 test -f Makefile && make "$ltmain"
13697 fi
13698 fi
13699
13700
13701 ac_ext=c
13702 ac_cpp='$CPP $CPPFLAGS'
13703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13706
13707 CC=$lt_save_CC
13708 LDCXX=$LD
13709 LD=$lt_save_LD
13710 GCC=$lt_save_GCC
13711 with_gnu_ldcxx=$with_gnu_ld
13712 with_gnu_ld=$lt_save_with_gnu_ld
13713 lt_cv_path_LDCXX=$lt_cv_path_LD
13714 lt_cv_path_LD=$lt_save_path_LD
13715 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13716 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13717
13718 else
13719 tagname=""
13720 fi
13721 ;;
13722
13723 F77)
13724 if test -n "$F77" && test "X$F77" != "Xno"; then
13725
13726 ac_ext=f
13727 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13728 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13729 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13730
13731
13732 archive_cmds_need_lc_F77=no
13733 allow_undefined_flag_F77=
13734 always_export_symbols_F77=no
13735 archive_expsym_cmds_F77=
13736 export_dynamic_flag_spec_F77=
13737 hardcode_direct_F77=no
13738 hardcode_libdir_flag_spec_F77=
13739 hardcode_libdir_flag_spec_ld_F77=
13740 hardcode_libdir_separator_F77=
13741 hardcode_minus_L_F77=no
13742 hardcode_automatic_F77=no
13743 module_cmds_F77=
13744 module_expsym_cmds_F77=
13745 link_all_deplibs_F77=unknown
13746 old_archive_cmds_F77=$old_archive_cmds
13747 no_undefined_flag_F77=
13748 whole_archive_flag_spec_F77=
13749 enable_shared_with_static_runtimes_F77=no
13750
13751 # Source file extension for f77 test sources.
13752 ac_ext=f
13753
13754 # Object file extension for compiled f77 test sources.
13755 objext=o
13756 objext_F77=$objext
13757
13758 # Code to be used in simple compile tests
13759 lt_simple_compile_test_code="\
13760 subroutine t
13761 return
13762 end
13763 "
13764
13765 # Code to be used in simple link tests
13766 lt_simple_link_test_code="\
13767 program t
13768 end
13769 "
13770
13771 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13772
13773 # If no C compiler was specified, use CC.
13774 LTCC=${LTCC-"$CC"}
13775
13776 # If no C compiler flags were specified, use CFLAGS.
13777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13778
13779 # Allow CC to be a program name with arguments.
13780 compiler=$CC
13781
13782
13783 # save warnings/boilerplate of simple test code
13784 ac_outfile=conftest.$ac_objext
13785 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13786 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13787 _lt_compiler_boilerplate=`cat conftest.err`
13788 $rm conftest*
13789
13790 ac_outfile=conftest.$ac_objext
13791 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13792 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13793 _lt_linker_boilerplate=`cat conftest.err`
13794 $rm conftest*
13795
13796
13797 # Allow CC to be a program name with arguments.
13798 lt_save_CC="$CC"
13799 CC=${F77-"f77"}
13800 compiler=$CC
13801 compiler_F77=$CC
13802 for cc_temp in $compiler""; do
13803 case $cc_temp in
13804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13806 \-*) ;;
13807 *) break;;
13808 esac
13809 done
13810 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13811
13812
13813 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13814 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13815 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13816 echo "${ECHO_T}$can_build_shared" >&6; }
13817
13818 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13819 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13820 test "$can_build_shared" = "no" && enable_shared=no
13821
13822 # On AIX, shared libraries and static libraries use the same namespace, and
13823 # are all built from PIC.
13824 case $host_os in
13825 aix3*)
13826 test "$enable_shared" = yes && enable_static=no
13827 if test -n "$RANLIB"; then
13828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13829 postinstall_cmds='$RANLIB $lib'
13830 fi
13831 ;;
13832 aix4* | aix5*)
13833 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13834 test "$enable_shared" = yes && enable_static=no
13835 fi
13836 ;;
13837 esac
13838 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13839 echo "${ECHO_T}$enable_shared" >&6; }
13840
13841 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13842 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13843 # Make sure either enable_shared or enable_static is yes.
13844 test "$enable_shared" = yes || enable_static=yes
13845 { echo "$as_me:$LINENO: result: $enable_static" >&5
13846 echo "${ECHO_T}$enable_static" >&6; }
13847
13848 GCC_F77="$G77"
13849 LD_F77="$LD"
13850
13851 lt_prog_compiler_wl_F77=
13852 lt_prog_compiler_pic_F77=
13853 lt_prog_compiler_static_F77=
13854
13855 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13856 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13857
13858 if test "$GCC" = yes; then
13859 lt_prog_compiler_wl_F77='-Wl,'
13860 lt_prog_compiler_static_F77='-static'
13861
13862 case $host_os in
13863 aix*)
13864 # All AIX code is PIC.
13865 if test "$host_cpu" = ia64; then
13866 # AIX 5 now supports IA64 processor
13867 lt_prog_compiler_static_F77='-Bstatic'
13868 fi
13869 ;;
13870
13871 amigaos*)
13872 # FIXME: we need at least 68020 code to build shared libraries, but
13873 # adding the `-m68020' flag to GCC prevents building anything better,
13874 # like `-m68040'.
13875 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13876 ;;
13877
13878 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13879 # PIC is the default for these OSes.
13880 ;;
13881
13882 mingw* | cygwin* | pw32* | os2*)
13883 # This hack is so that the source file can tell whether it is being
13884 # built for inclusion in a dll (and should export symbols for example).
13885 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13886 # (--disable-auto-import) libraries
13887 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13888 ;;
13889
13890 darwin* | rhapsody*)
13891 # PIC is the default on this platform
13892 # Common symbols not allowed in MH_DYLIB files
13893 lt_prog_compiler_pic_F77='-fno-common'
13894 ;;
13895
13896 interix[3-9]*)
13897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13898 # Instead, we relocate shared libraries at runtime.
13899 ;;
13900
13901 msdosdjgpp*)
13902 # Just because we use GCC doesn't mean we suddenly get shared libraries
13903 # on systems that don't support them.
13904 lt_prog_compiler_can_build_shared_F77=no
13905 enable_shared=no
13906 ;;
13907
13908 sysv4*MP*)
13909 if test -d /usr/nec; then
13910 lt_prog_compiler_pic_F77=-Kconform_pic
13911 fi
13912 ;;
13913
13914 hpux*)
13915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13916 # not for PA HP-UX.
13917 case $host_cpu in
13918 hppa*64*|ia64*)
13919 # +Z the default
13920 ;;
13921 *)
13922 lt_prog_compiler_pic_F77='-fPIC'
13923 ;;
13924 esac
13925 ;;
13926
13927 *)
13928 lt_prog_compiler_pic_F77='-fPIC'
13929 ;;
13930 esac
13931 else
13932 # PORTME Check for flag to pass linker flags through the system compiler.
13933 case $host_os in
13934 aix*)
13935 lt_prog_compiler_wl_F77='-Wl,'
13936 if test "$host_cpu" = ia64; then
13937 # AIX 5 now supports IA64 processor
13938 lt_prog_compiler_static_F77='-Bstatic'
13939 else
13940 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13941 fi
13942 ;;
13943 darwin*)
13944 # PIC is the default on this platform
13945 # Common symbols not allowed in MH_DYLIB files
13946 case $cc_basename in
13947 xlc*)
13948 lt_prog_compiler_pic_F77='-qnocommon'
13949 lt_prog_compiler_wl_F77='-Wl,'
13950 ;;
13951 esac
13952 ;;
13953
13954 mingw* | cygwin* | pw32* | os2*)
13955 # This hack is so that the source file can tell whether it is being
13956 # built for inclusion in a dll (and should export symbols for example).
13957 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13958 ;;
13959
13960 hpux9* | hpux10* | hpux11*)
13961 lt_prog_compiler_wl_F77='-Wl,'
13962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13963 # not for PA HP-UX.
13964 case $host_cpu in
13965 hppa*64*|ia64*)
13966 # +Z the default
13967 ;;
13968 *)
13969 lt_prog_compiler_pic_F77='+Z'
13970 ;;
13971 esac
13972 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13973 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13974 ;;
13975
13976 irix5* | irix6* | nonstopux*)
13977 lt_prog_compiler_wl_F77='-Wl,'
13978 # PIC (with -KPIC) is the default.
13979 lt_prog_compiler_static_F77='-non_shared'
13980 ;;
13981
13982 newsos6)
13983 lt_prog_compiler_pic_F77='-KPIC'
13984 lt_prog_compiler_static_F77='-Bstatic'
13985 ;;
13986
13987 linux* | k*bsd*-gnu)
13988 case $cc_basename in
13989 icc* | ecc*)
13990 lt_prog_compiler_wl_F77='-Wl,'
13991 lt_prog_compiler_pic_F77='-KPIC'
13992 lt_prog_compiler_static_F77='-static'
13993 ;;
13994 pgcc* | pgf77* | pgf90* | pgf95*)
13995 # Portland Group compilers (*not* the Pentium gcc compiler,
13996 # which looks to be a dead project)
13997 lt_prog_compiler_wl_F77='-Wl,'
13998 lt_prog_compiler_pic_F77='-fpic'
13999 lt_prog_compiler_static_F77='-Bstatic'
14000 ;;
14001 ccc*)
14002 lt_prog_compiler_wl_F77='-Wl,'
14003 # All Alpha code is PIC.
14004 lt_prog_compiler_static_F77='-non_shared'
14005 ;;
14006 *)
14007 case `$CC -V 2>&1 | sed 5q` in
14008 *Sun\ C*)
14009 # Sun C 5.9
14010 lt_prog_compiler_pic_F77='-KPIC'
14011 lt_prog_compiler_static_F77='-Bstatic'
14012 lt_prog_compiler_wl_F77='-Wl,'
14013 ;;
14014 *Sun\ F*)
14015 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14016 lt_prog_compiler_pic_F77='-KPIC'
14017 lt_prog_compiler_static_F77='-Bstatic'
14018 lt_prog_compiler_wl_F77=''
14019 ;;
14020 esac
14021 ;;
14022 esac
14023 ;;
14024
14025 osf3* | osf4* | osf5*)
14026 lt_prog_compiler_wl_F77='-Wl,'
14027 # All OSF/1 code is PIC.
14028 lt_prog_compiler_static_F77='-non_shared'
14029 ;;
14030
14031 rdos*)
14032 lt_prog_compiler_static_F77='-non_shared'
14033 ;;
14034
14035 solaris*)
14036 lt_prog_compiler_pic_F77='-KPIC'
14037 lt_prog_compiler_static_F77='-Bstatic'
14038 case $cc_basename in
14039 f77* | f90* | f95*)
14040 lt_prog_compiler_wl_F77='-Qoption ld ';;
14041 *)
14042 lt_prog_compiler_wl_F77='-Wl,';;
14043 esac
14044 ;;
14045
14046 sunos4*)
14047 lt_prog_compiler_wl_F77='-Qoption ld '
14048 lt_prog_compiler_pic_F77='-PIC'
14049 lt_prog_compiler_static_F77='-Bstatic'
14050 ;;
14051
14052 sysv4 | sysv4.2uw2* | sysv4.3*)
14053 lt_prog_compiler_wl_F77='-Wl,'
14054 lt_prog_compiler_pic_F77='-KPIC'
14055 lt_prog_compiler_static_F77='-Bstatic'
14056 ;;
14057
14058 sysv4*MP*)
14059 if test -d /usr/nec ;then
14060 lt_prog_compiler_pic_F77='-Kconform_pic'
14061 lt_prog_compiler_static_F77='-Bstatic'
14062 fi
14063 ;;
14064
14065 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14066 lt_prog_compiler_wl_F77='-Wl,'
14067 lt_prog_compiler_pic_F77='-KPIC'
14068 lt_prog_compiler_static_F77='-Bstatic'
14069 ;;
14070
14071 unicos*)
14072 lt_prog_compiler_wl_F77='-Wl,'
14073 lt_prog_compiler_can_build_shared_F77=no
14074 ;;
14075
14076 uts4*)
14077 lt_prog_compiler_pic_F77='-pic'
14078 lt_prog_compiler_static_F77='-Bstatic'
14079 ;;
14080
14081 *)
14082 lt_prog_compiler_can_build_shared_F77=no
14083 ;;
14084 esac
14085 fi
14086
14087 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14088 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14089
14090 #
14091 # Check to make sure the PIC flag actually works.
14092 #
14093 if test -n "$lt_prog_compiler_pic_F77"; then
14094
14095 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14096 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14097 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100 lt_prog_compiler_pic_works_F77=no
14101 ac_outfile=conftest.$ac_objext
14102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14103 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14104 # Insert the option either (1) after the last *FLAGS variable, or
14105 # (2) before a word containing "conftest.", or (3) at the end.
14106 # Note that $ac_compile itself does not contain backslashes and begins
14107 # with a dollar sign (not a hyphen), so the echo should work correctly.
14108 # The option is referenced via a variable to avoid confusing sed.
14109 lt_compile=`echo "$ac_compile" | $SED \
14110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14112 -e 's:$: $lt_compiler_flag:'`
14113 (eval echo "\"\$as_me:14113: $lt_compile\"" >&5)
14114 (eval "$lt_compile" 2>conftest.err)
14115 ac_status=$?
14116 cat conftest.err >&5
14117 echo "$as_me:14117: \$? = $ac_status" >&5
14118 if (exit $ac_status) && test -s "$ac_outfile"; then
14119 # The compiler can only warn and ignore the option if not recognized
14120 # So say no if there are warnings other than the usual output.
14121 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14124 lt_prog_compiler_pic_works_F77=yes
14125 fi
14126 fi
14127 $rm conftest*
14128
14129 fi
14130 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14131 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14132
14133 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14134 case $lt_prog_compiler_pic_F77 in
14135 "" | " "*) ;;
14136 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14137 esac
14138 else
14139 lt_prog_compiler_pic_F77=
14140 lt_prog_compiler_can_build_shared_F77=no
14141 fi
14142
14143 fi
14144 case $host_os in
14145 # For platforms which do not support PIC, -DPIC is meaningless:
14146 *djgpp*)
14147 lt_prog_compiler_pic_F77=
14148 ;;
14149 *)
14150 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14151 ;;
14152 esac
14153
14154 #
14155 # Check to make sure the static flag actually works.
14156 #
14157 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14158 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14159 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14160 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 else
14163 lt_prog_compiler_static_works_F77=no
14164 save_LDFLAGS="$LDFLAGS"
14165 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14166 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14167 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14168 # The linker can only warn and ignore the option if not recognized
14169 # So say no if there are warnings
14170 if test -s conftest.err; then
14171 # Append any errors to the config.log.
14172 cat conftest.err 1>&5
14173 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14175 if diff conftest.exp conftest.er2 >/dev/null; then
14176 lt_prog_compiler_static_works_F77=yes
14177 fi
14178 else
14179 lt_prog_compiler_static_works_F77=yes
14180 fi
14181 fi
14182 $rm conftest*
14183 LDFLAGS="$save_LDFLAGS"
14184
14185 fi
14186 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14187 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14188
14189 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14190 :
14191 else
14192 lt_prog_compiler_static_F77=
14193 fi
14194
14195
14196 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14197 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14198 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201 lt_cv_prog_compiler_c_o_F77=no
14202 $rm -r conftest 2>/dev/null
14203 mkdir conftest
14204 cd conftest
14205 mkdir out
14206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14207
14208 lt_compiler_flag="-o out/conftest2.$ac_objext"
14209 # Insert the option either (1) after the last *FLAGS variable, or
14210 # (2) before a word containing "conftest.", or (3) at the end.
14211 # Note that $ac_compile itself does not contain backslashes and begins
14212 # with a dollar sign (not a hyphen), so the echo should work correctly.
14213 lt_compile=`echo "$ac_compile" | $SED \
14214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14216 -e 's:$: $lt_compiler_flag:'`
14217 (eval echo "\"\$as_me:14217: $lt_compile\"" >&5)
14218 (eval "$lt_compile" 2>out/conftest.err)
14219 ac_status=$?
14220 cat out/conftest.err >&5
14221 echo "$as_me:14221: \$? = $ac_status" >&5
14222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14223 then
14224 # The compiler can only warn and ignore the option if not recognized
14225 # So say no if there are warnings
14226 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14229 lt_cv_prog_compiler_c_o_F77=yes
14230 fi
14231 fi
14232 chmod u+w . 2>&5
14233 $rm conftest*
14234 # SGI C++ compiler will create directory out/ii_files/ for
14235 # template instantiation
14236 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14237 $rm out/* && rmdir out
14238 cd ..
14239 rmdir conftest
14240 $rm conftest*
14241
14242 fi
14243 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14244 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14245
14246
14247 hard_links="nottested"
14248 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14249 # do not overwrite the value of need_locks provided by the user
14250 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14251 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14252 hard_links=yes
14253 $rm conftest*
14254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14255 touch conftest.a
14256 ln conftest.a conftest.b 2>&5 || hard_links=no
14257 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14258 { echo "$as_me:$LINENO: result: $hard_links" >&5
14259 echo "${ECHO_T}$hard_links" >&6; }
14260 if test "$hard_links" = no; then
14261 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14262 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14263 need_locks=warn
14264 fi
14265 else
14266 need_locks=no
14267 fi
14268
14269 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14270 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14271
14272 runpath_var=
14273 allow_undefined_flag_F77=
14274 enable_shared_with_static_runtimes_F77=no
14275 archive_cmds_F77=
14276 archive_expsym_cmds_F77=
14277 old_archive_From_new_cmds_F77=
14278 old_archive_from_expsyms_cmds_F77=
14279 export_dynamic_flag_spec_F77=
14280 whole_archive_flag_spec_F77=
14281 thread_safe_flag_spec_F77=
14282 hardcode_libdir_flag_spec_F77=
14283 hardcode_libdir_flag_spec_ld_F77=
14284 hardcode_libdir_separator_F77=
14285 hardcode_direct_F77=no
14286 hardcode_minus_L_F77=no
14287 hardcode_shlibpath_var_F77=unsupported
14288 link_all_deplibs_F77=unknown
14289 hardcode_automatic_F77=no
14290 module_cmds_F77=
14291 module_expsym_cmds_F77=
14292 always_export_symbols_F77=no
14293 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14294 # include_expsyms should be a list of space-separated symbols to be *always*
14295 # included in the symbol list
14296 include_expsyms_F77=
14297 # exclude_expsyms can be an extended regexp of symbols to exclude
14298 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14299 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14300 # as well as any symbol that contains `d'.
14301 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14302 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14303 # platforms (ab)use it in PIC code, but their linkers get confused if
14304 # the symbol is explicitly referenced. Since portable code cannot
14305 # rely on this symbol name, it's probably fine to never include it in
14306 # preloaded symbol tables.
14307 extract_expsyms_cmds=
14308 # Just being paranoid about ensuring that cc_basename is set.
14309 for cc_temp in $compiler""; do
14310 case $cc_temp in
14311 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14312 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14313 \-*) ;;
14314 *) break;;
14315 esac
14316 done
14317 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14318
14319 case $host_os in
14320 cygwin* | mingw* | pw32*)
14321 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14322 # When not using gcc, we currently assume that we are using
14323 # Microsoft Visual C++.
14324 if test "$GCC" != yes; then
14325 with_gnu_ld=no
14326 fi
14327 ;;
14328 interix*)
14329 # we just hope/assume this is gcc and not c89 (= MSVC++)
14330 with_gnu_ld=yes
14331 ;;
14332 openbsd*)
14333 with_gnu_ld=no
14334 ;;
14335 esac
14336
14337 ld_shlibs_F77=yes
14338 if test "$with_gnu_ld" = yes; then
14339 # If archive_cmds runs LD, not CC, wlarc should be empty
14340 wlarc='${wl}'
14341
14342 # Set some defaults for GNU ld with shared library support. These
14343 # are reset later if shared libraries are not supported. Putting them
14344 # here allows them to be overridden if necessary.
14345 runpath_var=LD_RUN_PATH
14346 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14347 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14348 # ancient GNU ld didn't support --whole-archive et. al.
14349 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14350 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14351 else
14352 whole_archive_flag_spec_F77=
14353 fi
14354 supports_anon_versioning=no
14355 case `$LD -v 2>/dev/null` in
14356 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14357 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14358 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14359 *\ 2.11.*) ;; # other 2.11 versions
14360 *) supports_anon_versioning=yes ;;
14361 esac
14362
14363 # See if GNU ld supports shared libraries.
14364 case $host_os in
14365 aix3* | aix4* | aix5*)
14366 # On AIX/PPC, the GNU linker is very broken
14367 if test "$host_cpu" != ia64; then
14368 ld_shlibs_F77=no
14369 cat <<EOF 1>&2
14370
14371 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14372 *** to be unable to reliably create shared libraries on AIX.
14373 *** Therefore, libtool is disabling shared libraries support. If you
14374 *** really care for shared libraries, you may want to modify your PATH
14375 *** so that a non-GNU linker is found, and then restart.
14376
14377 EOF
14378 fi
14379 ;;
14380
14381 amigaos*)
14382 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)'
14383 hardcode_libdir_flag_spec_F77='-L$libdir'
14384 hardcode_minus_L_F77=yes
14385
14386 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14387 # that the semantics of dynamic libraries on AmigaOS, at least up
14388 # to version 4, is to share data among multiple programs linked
14389 # with the same dynamic library. Since this doesn't match the
14390 # behavior of shared libraries on other platforms, we can't use
14391 # them.
14392 ld_shlibs_F77=no
14393 ;;
14394
14395 beos*)
14396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14397 allow_undefined_flag_F77=unsupported
14398 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14399 # support --undefined. This deserves some investigation. FIXME
14400 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14401 else
14402 ld_shlibs_F77=no
14403 fi
14404 ;;
14405
14406 cygwin* | mingw* | pw32*)
14407 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14408 # as there is no search path for DLLs.
14409 hardcode_libdir_flag_spec_F77='-L$libdir'
14410 allow_undefined_flag_F77=unsupported
14411 always_export_symbols_F77=no
14412 enable_shared_with_static_runtimes_F77=yes
14413 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14414
14415 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14416 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14417 # If the export-symbols file already is a .def file (1st line
14418 # is EXPORTS), use it as is; otherwise, prepend...
14419 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14420 cp $export_symbols $output_objdir/$soname.def;
14421 else
14422 echo EXPORTS > $output_objdir/$soname.def;
14423 cat $export_symbols >> $output_objdir/$soname.def;
14424 fi~
14425 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14426 else
14427 ld_shlibs_F77=no
14428 fi
14429 ;;
14430
14431 interix[3-9]*)
14432 hardcode_direct_F77=no
14433 hardcode_shlibpath_var_F77=no
14434 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14435 export_dynamic_flag_spec_F77='${wl}-E'
14436 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14437 # Instead, shared libraries are loaded at an image base (0x10000000 by
14438 # default) and relocated if they conflict, which is a slow very memory
14439 # consuming and fragmenting process. To avoid this, we pick a random,
14440 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14441 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14442 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'
14443 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'
14444 ;;
14445
14446 gnu* | linux* | k*bsd*-gnu)
14447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14448 tmp_addflag=
14449 case $cc_basename,$host_cpu in
14450 pgcc*) # Portland Group C compiler
14451 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'
14452 tmp_addflag=' $pic_flag'
14453 ;;
14454 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14455 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'
14456 tmp_addflag=' $pic_flag -Mnomain' ;;
14457 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14458 tmp_addflag=' -i_dynamic' ;;
14459 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14460 tmp_addflag=' -i_dynamic -nofor_main' ;;
14461 ifc* | ifort*) # Intel Fortran compiler
14462 tmp_addflag=' -nofor_main' ;;
14463 esac
14464 case `$CC -V 2>&1 | sed 5q` in
14465 *Sun\ C*) # Sun C 5.9
14466 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14467 tmp_sharedflag='-G' ;;
14468 *Sun\ F*) # Sun Fortran 8.3
14469 tmp_sharedflag='-G' ;;
14470 *)
14471 tmp_sharedflag='-shared' ;;
14472 esac
14473 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14474
14475 if test $supports_anon_versioning = yes; then
14476 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14478 $echo "local: *; };" >> $output_objdir/$libname.ver~
14479 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14480 fi
14481 else
14482 ld_shlibs_F77=no
14483 fi
14484 ;;
14485
14486 netbsd*)
14487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14488 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14489 wlarc=
14490 else
14491 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14492 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14493 fi
14494 ;;
14495
14496 solaris*)
14497 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14498 ld_shlibs_F77=no
14499 cat <<EOF 1>&2
14500
14501 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14502 *** create shared libraries on Solaris systems. Therefore, libtool
14503 *** is disabling shared libraries support. We urge you to upgrade GNU
14504 *** binutils to release 2.9.1 or newer. Another option is to modify
14505 *** your PATH or compiler configuration so that the native linker is
14506 *** used, and then restart.
14507
14508 EOF
14509 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14510 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14511 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14512 else
14513 ld_shlibs_F77=no
14514 fi
14515 ;;
14516
14517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14518 case `$LD -v 2>&1` in
14519 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14520 ld_shlibs_F77=no
14521 cat <<_LT_EOF 1>&2
14522
14523 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14524 *** reliably create shared libraries on SCO systems. Therefore, libtool
14525 *** is disabling shared libraries support. We urge you to upgrade GNU
14526 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14527 *** your PATH or compiler configuration so that the native linker is
14528 *** used, and then restart.
14529
14530 _LT_EOF
14531 ;;
14532 *)
14533 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14534 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14535 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14536 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14537 else
14538 ld_shlibs_F77=no
14539 fi
14540 ;;
14541 esac
14542 ;;
14543
14544 sunos4*)
14545 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14546 wlarc=
14547 hardcode_direct_F77=yes
14548 hardcode_shlibpath_var_F77=no
14549 ;;
14550
14551 *)
14552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14553 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14554 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14555 else
14556 ld_shlibs_F77=no
14557 fi
14558 ;;
14559 esac
14560
14561 if test "$ld_shlibs_F77" = no; then
14562 runpath_var=
14563 hardcode_libdir_flag_spec_F77=
14564 export_dynamic_flag_spec_F77=
14565 whole_archive_flag_spec_F77=
14566 fi
14567 else
14568 # PORTME fill in a description of your system's linker (not GNU ld)
14569 case $host_os in
14570 aix3*)
14571 allow_undefined_flag_F77=unsupported
14572 always_export_symbols_F77=yes
14573 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'
14574 # Note: this linker hardcodes the directories in LIBPATH if there
14575 # are no directories specified by -L.
14576 hardcode_minus_L_F77=yes
14577 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14578 # Neither direct hardcoding nor static linking is supported with a
14579 # broken collect2.
14580 hardcode_direct_F77=unsupported
14581 fi
14582 ;;
14583
14584 aix4* | aix5*)
14585 if test "$host_cpu" = ia64; then
14586 # On IA64, the linker does run time linking by default, so we don't
14587 # have to do anything special.
14588 aix_use_runtimelinking=no
14589 exp_sym_flag='-Bexport'
14590 no_entry_flag=""
14591 else
14592 # If we're using GNU nm, then we don't want the "-C" option.
14593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14594 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14595 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'
14596 else
14597 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'
14598 fi
14599 aix_use_runtimelinking=no
14600
14601 # Test if we are trying to use run time linking or normal
14602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14603 # need to do runtime linking.
14604 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14605 for ld_flag in $LDFLAGS; do
14606 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14607 aix_use_runtimelinking=yes
14608 break
14609 fi
14610 done
14611 ;;
14612 esac
14613
14614 exp_sym_flag='-bexport'
14615 no_entry_flag='-bnoentry'
14616 fi
14617
14618 # When large executables or shared objects are built, AIX ld can
14619 # have problems creating the table of contents. If linking a library
14620 # or program results in "error TOC overflow" add -mminimal-toc to
14621 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14622 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14623
14624 archive_cmds_F77=''
14625 hardcode_direct_F77=yes
14626 hardcode_libdir_separator_F77=':'
14627 link_all_deplibs_F77=yes
14628
14629 if test "$GCC" = yes; then
14630 case $host_os in aix4.[012]|aix4.[012].*)
14631 # We only want to do this on AIX 4.2 and lower, the check
14632 # below for broken collect2 doesn't work under 4.3+
14633 collect2name=`${CC} -print-prog-name=collect2`
14634 if test -f "$collect2name" && \
14635 strings "$collect2name" | grep resolve_lib_name >/dev/null
14636 then
14637 # We have reworked collect2
14638 :
14639 else
14640 # We have old collect2
14641 hardcode_direct_F77=unsupported
14642 # It fails to find uninstalled libraries when the uninstalled
14643 # path is not listed in the libpath. Setting hardcode_minus_L
14644 # to unsupported forces relinking
14645 hardcode_minus_L_F77=yes
14646 hardcode_libdir_flag_spec_F77='-L$libdir'
14647 hardcode_libdir_separator_F77=
14648 fi
14649 ;;
14650 esac
14651 shared_flag='-shared'
14652 if test "$aix_use_runtimelinking" = yes; then
14653 shared_flag="$shared_flag "'${wl}-G'
14654 fi
14655 else
14656 # not using gcc
14657 if test "$host_cpu" = ia64; then
14658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14659 # chokes on -Wl,-G. The following line is correct:
14660 shared_flag='-G'
14661 else
14662 if test "$aix_use_runtimelinking" = yes; then
14663 shared_flag='${wl}-G'
14664 else
14665 shared_flag='${wl}-bM:SRE'
14666 fi
14667 fi
14668 fi
14669
14670 # It seems that -bexpall does not export symbols beginning with
14671 # underscore (_), so it is better to generate a list of symbols to export.
14672 always_export_symbols_F77=yes
14673 if test "$aix_use_runtimelinking" = yes; then
14674 # Warning - without using the other runtime loading flags (-brtl),
14675 # -berok will link without error, but may produce a broken library.
14676 allow_undefined_flag_F77='-berok'
14677 # Determine the default libpath from the value encoded in an empty executable.
14678 cat >conftest.$ac_ext <<_ACEOF
14679 program main
14680
14681 end
14682 _ACEOF
14683 rm -f conftest.$ac_objext conftest$ac_exeext
14684 if { (ac_try="$ac_link"
14685 case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_link") 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } && {
14697 test -z "$ac_f77_werror_flag" ||
14698 test ! -s conftest.err
14699 } && test -s conftest$ac_exeext &&
14700 $as_test_x conftest$ac_exeext; then
14701
14702 lt_aix_libpath_sed='
14703 /Import File Strings/,/^$/ {
14704 /^0/ {
14705 s/^0 *\(.*\)$/\1/
14706 p
14707 }
14708 }'
14709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14710 # Check for a 64-bit object if we didn't find anything.
14711 if test -z "$aix_libpath"; then
14712 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14713 fi
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718
14719 fi
14720
14721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14722 conftest$ac_exeext conftest.$ac_ext
14723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14724
14725 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14726 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"
14727 else
14728 if test "$host_cpu" = ia64; then
14729 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14730 allow_undefined_flag_F77="-z nodefs"
14731 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"
14732 else
14733 # Determine the default libpath from the value encoded in an empty executable.
14734 cat >conftest.$ac_ext <<_ACEOF
14735 program main
14736
14737 end
14738 _ACEOF
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (ac_try="$ac_link"
14741 case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14744 esac
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_link") 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } && {
14753 test -z "$ac_f77_werror_flag" ||
14754 test ! -s conftest.err
14755 } && test -s conftest$ac_exeext &&
14756 $as_test_x conftest$ac_exeext; then
14757
14758 lt_aix_libpath_sed='
14759 /Import File Strings/,/^$/ {
14760 /^0/ {
14761 s/^0 *\(.*\)$/\1/
14762 p
14763 }
14764 }'
14765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14766 # Check for a 64-bit object if we didn't find anything.
14767 if test -z "$aix_libpath"; then
14768 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14769 fi
14770 else
14771 echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774
14775 fi
14776
14777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14778 conftest$ac_exeext conftest.$ac_ext
14779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14780
14781 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14782 # Warning - without using the other run time loading flags,
14783 # -berok will link without error, but may produce a broken library.
14784 no_undefined_flag_F77=' ${wl}-bernotok'
14785 allow_undefined_flag_F77=' ${wl}-berok'
14786 # Exported symbols can be pulled into shared objects from archives
14787 whole_archive_flag_spec_F77='$convenience'
14788 archive_cmds_need_lc_F77=yes
14789 # This is similar to how AIX traditionally builds its shared libraries.
14790 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'
14791 fi
14792 fi
14793 ;;
14794
14795 amigaos*)
14796 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)'
14797 hardcode_libdir_flag_spec_F77='-L$libdir'
14798 hardcode_minus_L_F77=yes
14799 # see comment about different semantics on the GNU ld section
14800 ld_shlibs_F77=no
14801 ;;
14802
14803 bsdi[45]*)
14804 export_dynamic_flag_spec_F77=-rdynamic
14805 ;;
14806
14807 cygwin* | mingw* | pw32*)
14808 # When not using gcc, we currently assume that we are using
14809 # Microsoft Visual C++.
14810 # hardcode_libdir_flag_spec is actually meaningless, as there is
14811 # no search path for DLLs.
14812 hardcode_libdir_flag_spec_F77=' '
14813 allow_undefined_flag_F77=unsupported
14814 # Tell ltmain to make .lib files, not .a files.
14815 libext=lib
14816 # Tell ltmain to make .dll files, not .so files.
14817 shrext_cmds=".dll"
14818 # FIXME: Setting linknames here is a bad hack.
14819 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14820 # The linker will automatically build a .lib file if we build a DLL.
14821 old_archive_From_new_cmds_F77='true'
14822 # FIXME: Should let the user specify the lib program.
14823 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14824 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14825 enable_shared_with_static_runtimes_F77=yes
14826 ;;
14827
14828 darwin* | rhapsody*)
14829 case $host_os in
14830 rhapsody* | darwin1.[012])
14831 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14832 ;;
14833 *) # Darwin 1.3 on
14834 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14835 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14836 else
14837 case ${MACOSX_DEPLOYMENT_TARGET} in
14838 10.[012])
14839 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14840 ;;
14841 10.*)
14842 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14843 ;;
14844 esac
14845 fi
14846 ;;
14847 esac
14848 archive_cmds_need_lc_F77=no
14849 hardcode_direct_F77=no
14850 hardcode_automatic_F77=yes
14851 hardcode_shlibpath_var_F77=unsupported
14852 whole_archive_flag_spec_F77=''
14853 link_all_deplibs_F77=yes
14854 if test "$GCC" = yes ; then
14855 output_verbose_link_cmd='echo'
14856 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14857 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14858 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14859 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}'
14860 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}'
14861 else
14862 case $cc_basename in
14863 xlc*)
14864 output_verbose_link_cmd='echo'
14865 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14866 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14868 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14869 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}'
14870 ;;
14871 *)
14872 ld_shlibs_F77=no
14873 ;;
14874 esac
14875 fi
14876 ;;
14877
14878 dgux*)
14879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14880 hardcode_libdir_flag_spec_F77='-L$libdir'
14881 hardcode_shlibpath_var_F77=no
14882 ;;
14883
14884 freebsd1*)
14885 ld_shlibs_F77=no
14886 ;;
14887
14888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14889 # support. Future versions do this automatically, but an explicit c++rt0.o
14890 # does not break anything, and helps significantly (at the cost of a little
14891 # extra space).
14892 freebsd2.2*)
14893 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14894 hardcode_libdir_flag_spec_F77='-R$libdir'
14895 hardcode_direct_F77=yes
14896 hardcode_shlibpath_var_F77=no
14897 ;;
14898
14899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14900 freebsd2*)
14901 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14902 hardcode_direct_F77=yes
14903 hardcode_minus_L_F77=yes
14904 hardcode_shlibpath_var_F77=no
14905 ;;
14906
14907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14908 freebsd* | dragonfly*)
14909 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14910 hardcode_libdir_flag_spec_F77='-R$libdir'
14911 hardcode_direct_F77=yes
14912 hardcode_shlibpath_var_F77=no
14913 ;;
14914
14915 hpux9*)
14916 if test "$GCC" = yes; then
14917 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'
14918 else
14919 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'
14920 fi
14921 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14922 hardcode_libdir_separator_F77=:
14923 hardcode_direct_F77=yes
14924
14925 # hardcode_minus_L: Not really in the search PATH,
14926 # but as the default location of the library.
14927 hardcode_minus_L_F77=yes
14928 export_dynamic_flag_spec_F77='${wl}-E'
14929 ;;
14930
14931 hpux10*)
14932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14933 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14934 else
14935 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14936 fi
14937 if test "$with_gnu_ld" = no; then
14938 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14939 hardcode_libdir_separator_F77=:
14940
14941 hardcode_direct_F77=yes
14942 export_dynamic_flag_spec_F77='${wl}-E'
14943
14944 # hardcode_minus_L: Not really in the search PATH,
14945 # but as the default location of the library.
14946 hardcode_minus_L_F77=yes
14947 fi
14948 ;;
14949
14950 hpux11*)
14951 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14952 case $host_cpu in
14953 hppa*64*)
14954 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14955 ;;
14956 ia64*)
14957 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14958 ;;
14959 *)
14960 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14961 ;;
14962 esac
14963 else
14964 case $host_cpu in
14965 hppa*64*)
14966 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 ;;
14968 ia64*)
14969 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14970 ;;
14971 *)
14972 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14973 ;;
14974 esac
14975 fi
14976 if test "$with_gnu_ld" = no; then
14977 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14978 hardcode_libdir_separator_F77=:
14979
14980 case $host_cpu in
14981 hppa*64*|ia64*)
14982 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14983 hardcode_direct_F77=no
14984 hardcode_shlibpath_var_F77=no
14985 ;;
14986 *)
14987 hardcode_direct_F77=yes
14988 export_dynamic_flag_spec_F77='${wl}-E'
14989
14990 # hardcode_minus_L: Not really in the search PATH,
14991 # but as the default location of the library.
14992 hardcode_minus_L_F77=yes
14993 ;;
14994 esac
14995 fi
14996 ;;
14997
14998 irix5* | irix6* | nonstopux*)
14999 if test "$GCC" = yes; then
15000 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'
15001 else
15002 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'
15003 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15004 fi
15005 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15006 hardcode_libdir_separator_F77=:
15007 link_all_deplibs_F77=yes
15008 ;;
15009
15010 netbsd*)
15011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15012 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15013 else
15014 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15015 fi
15016 hardcode_libdir_flag_spec_F77='-R$libdir'
15017 hardcode_direct_F77=yes
15018 hardcode_shlibpath_var_F77=no
15019 ;;
15020
15021 newsos6)
15022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15023 hardcode_direct_F77=yes
15024 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15025 hardcode_libdir_separator_F77=:
15026 hardcode_shlibpath_var_F77=no
15027 ;;
15028
15029 openbsd*)
15030 if test -f /usr/libexec/ld.so; then
15031 hardcode_direct_F77=yes
15032 hardcode_shlibpath_var_F77=no
15033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15034 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15035 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15036 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15037 export_dynamic_flag_spec_F77='${wl}-E'
15038 else
15039 case $host_os in
15040 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15041 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15042 hardcode_libdir_flag_spec_F77='-R$libdir'
15043 ;;
15044 *)
15045 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15046 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15047 ;;
15048 esac
15049 fi
15050 else
15051 ld_shlibs_F77=no
15052 fi
15053 ;;
15054
15055 os2*)
15056 hardcode_libdir_flag_spec_F77='-L$libdir'
15057 hardcode_minus_L_F77=yes
15058 allow_undefined_flag_F77=unsupported
15059 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'
15060 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15061 ;;
15062
15063 osf3*)
15064 if test "$GCC" = yes; then
15065 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15066 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'
15067 else
15068 allow_undefined_flag_F77=' -expect_unresolved \*'
15069 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'
15070 fi
15071 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15072 hardcode_libdir_separator_F77=:
15073 ;;
15074
15075 osf4* | osf5*) # as osf3* with the addition of -msym flag
15076 if test "$GCC" = yes; then
15077 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15078 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'
15079 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15080 else
15081 allow_undefined_flag_F77=' -expect_unresolved \*'
15082 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'
15083 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~
15084 $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'
15085
15086 # Both c and cxx compiler support -rpath directly
15087 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15088 fi
15089 hardcode_libdir_separator_F77=:
15090 ;;
15091
15092 solaris*)
15093 no_undefined_flag_F77=' -z text'
15094 if test "$GCC" = yes; then
15095 wlarc='${wl}'
15096 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15097 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15098 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15099 else
15100 wlarc=''
15101 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15102 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15103 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15104 fi
15105 hardcode_libdir_flag_spec_F77='-R$libdir'
15106 hardcode_shlibpath_var_F77=no
15107 case $host_os in
15108 solaris2.[0-5] | solaris2.[0-5].*) ;;
15109 *)
15110 # The compiler driver will combine and reorder linker options,
15111 # but understands `-z linker_flag'. GCC discards it without `$wl',
15112 # but is careful enough not to reorder.
15113 # Supported since Solaris 2.6 (maybe 2.5.1?)
15114 if test "$GCC" = yes; then
15115 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15116 else
15117 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15118 fi
15119 ;;
15120 esac
15121 link_all_deplibs_F77=yes
15122 ;;
15123
15124 sunos4*)
15125 if test "x$host_vendor" = xsequent; then
15126 # Use $CC to link under sequent, because it throws in some extra .o
15127 # files that make .init and .fini sections work.
15128 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15129 else
15130 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15131 fi
15132 hardcode_libdir_flag_spec_F77='-L$libdir'
15133 hardcode_direct_F77=yes
15134 hardcode_minus_L_F77=yes
15135 hardcode_shlibpath_var_F77=no
15136 ;;
15137
15138 sysv4)
15139 case $host_vendor in
15140 sni)
15141 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15142 hardcode_direct_F77=yes # is this really true???
15143 ;;
15144 siemens)
15145 ## LD is ld it makes a PLAMLIB
15146 ## CC just makes a GrossModule.
15147 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15148 reload_cmds_F77='$CC -r -o $output$reload_objs'
15149 hardcode_direct_F77=no
15150 ;;
15151 motorola)
15152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15153 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15154 ;;
15155 esac
15156 runpath_var='LD_RUN_PATH'
15157 hardcode_shlibpath_var_F77=no
15158 ;;
15159
15160 sysv4.3*)
15161 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15162 hardcode_shlibpath_var_F77=no
15163 export_dynamic_flag_spec_F77='-Bexport'
15164 ;;
15165
15166 sysv4*MP*)
15167 if test -d /usr/nec; then
15168 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15169 hardcode_shlibpath_var_F77=no
15170 runpath_var=LD_RUN_PATH
15171 hardcode_runpath_var=yes
15172 ld_shlibs_F77=yes
15173 fi
15174 ;;
15175
15176 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15177 no_undefined_flag_F77='${wl}-z,text'
15178 archive_cmds_need_lc_F77=no
15179 hardcode_shlibpath_var_F77=no
15180 runpath_var='LD_RUN_PATH'
15181
15182 if test "$GCC" = yes; then
15183 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15184 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15185 else
15186 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15187 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15188 fi
15189 ;;
15190
15191 sysv5* | sco3.2v5* | sco5v6*)
15192 # Note: We can NOT use -z defs as we might desire, because we do not
15193 # link with -lc, and that would cause any symbols used from libc to
15194 # always be unresolved, which means just about no library would
15195 # ever link correctly. If we're not using GNU ld we use -z text
15196 # though, which does catch some bad symbols but isn't as heavy-handed
15197 # as -z defs.
15198 no_undefined_flag_F77='${wl}-z,text'
15199 allow_undefined_flag_F77='${wl}-z,nodefs'
15200 archive_cmds_need_lc_F77=no
15201 hardcode_shlibpath_var_F77=no
15202 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15203 hardcode_libdir_separator_F77=':'
15204 link_all_deplibs_F77=yes
15205 export_dynamic_flag_spec_F77='${wl}-Bexport'
15206 runpath_var='LD_RUN_PATH'
15207
15208 if test "$GCC" = yes; then
15209 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15210 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15211 else
15212 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15213 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15214 fi
15215 ;;
15216
15217 uts4*)
15218 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15219 hardcode_libdir_flag_spec_F77='-L$libdir'
15220 hardcode_shlibpath_var_F77=no
15221 ;;
15222
15223 *)
15224 ld_shlibs_F77=no
15225 ;;
15226 esac
15227 fi
15228
15229 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15230 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15231 test "$ld_shlibs_F77" = no && can_build_shared=no
15232
15233 #
15234 # Do we need to explicitly link libc?
15235 #
15236 case "x$archive_cmds_need_lc_F77" in
15237 x|xyes)
15238 # Assume -lc should be added
15239 archive_cmds_need_lc_F77=yes
15240
15241 if test "$enable_shared" = yes && test "$GCC" = yes; then
15242 case $archive_cmds_F77 in
15243 *'~'*)
15244 # FIXME: we may have to deal with multi-command sequences.
15245 ;;
15246 '$CC '*)
15247 # Test whether the compiler implicitly links with -lc since on some
15248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15249 # to ld, don't add -lc before -lgcc.
15250 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15251 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15252 $rm conftest*
15253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15254
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256 (eval $ac_compile) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } 2>conftest.err; then
15260 soname=conftest
15261 lib=conftest
15262 libobjs=conftest.$ac_objext
15263 deplibs=
15264 wl=$lt_prog_compiler_wl_F77
15265 pic_flag=$lt_prog_compiler_pic_F77
15266 compiler_flags=-v
15267 linker_flags=-v
15268 verstring=
15269 output_objdir=.
15270 libname=conftest
15271 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15272 allow_undefined_flag_F77=
15273 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15274 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }
15278 then
15279 archive_cmds_need_lc_F77=no
15280 else
15281 archive_cmds_need_lc_F77=yes
15282 fi
15283 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15284 else
15285 cat conftest.err 1>&5
15286 fi
15287 $rm conftest*
15288 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15289 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15290 ;;
15291 esac
15292 fi
15293 ;;
15294 esac
15295
15296 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15298 library_names_spec=
15299 libname_spec='lib$name'
15300 soname_spec=
15301 shrext_cmds=".so"
15302 postinstall_cmds=
15303 postuninstall_cmds=
15304 finish_cmds=
15305 finish_eval=
15306 shlibpath_var=
15307 shlibpath_overrides_runpath=unknown
15308 version_type=none
15309 dynamic_linker="$host_os ld.so"
15310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15311
15312 need_lib_prefix=unknown
15313 hardcode_into_libs=no
15314
15315 # when you set need_version to no, make sure it does not cause -set_version
15316 # flags to be left without arguments
15317 need_version=unknown
15318
15319 case $host_os in
15320 aix3*)
15321 version_type=linux
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15323 shlibpath_var=LIBPATH
15324
15325 # AIX 3 has no versioning support, so we append a major version to the name.
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 ;;
15328
15329 aix4* | aix5*)
15330 version_type=linux
15331 need_lib_prefix=no
15332 need_version=no
15333 hardcode_into_libs=yes
15334 if test "$host_cpu" = ia64; then
15335 # AIX 5 supports IA64
15336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 else
15339 # With GCC up to 2.95.x, collect2 would create an import file
15340 # for dependence libraries. The import file would start with
15341 # the line `#! .'. This would cause the generated library to
15342 # depend on `.', always an invalid library. This was fixed in
15343 # development snapshots of GCC prior to 3.0.
15344 case $host_os in
15345 aix4 | aix4.[01] | aix4.[01].*)
15346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15347 echo ' yes '
15348 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15349 :
15350 else
15351 can_build_shared=no
15352 fi
15353 ;;
15354 esac
15355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15356 # soname into executable. Probably we can add versioning support to
15357 # collect2, so additional links can be useful in future.
15358 if test "$aix_use_runtimelinking" = yes; then
15359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15360 # instead of lib<name>.a to let people know that these are not
15361 # typical AIX shared libraries.
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363 else
15364 # We preserve .a as extension for shared libraries through AIX4.2
15365 # and later when we are not doing run time linking.
15366 library_names_spec='${libname}${release}.a $libname.a'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15368 fi
15369 shlibpath_var=LIBPATH
15370 fi
15371 ;;
15372
15373 amigaos*)
15374 library_names_spec='$libname.ixlibrary $libname.a'
15375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15376 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'
15377 ;;
15378
15379 beos*)
15380 library_names_spec='${libname}${shared_ext}'
15381 dynamic_linker="$host_os ld.so"
15382 shlibpath_var=LIBRARY_PATH
15383 ;;
15384
15385 bsdi[45]*)
15386 version_type=linux
15387 need_version=no
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389 soname_spec='${libname}${release}${shared_ext}$major'
15390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15391 shlibpath_var=LD_LIBRARY_PATH
15392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15394 # the default ld.so.conf also contains /usr/contrib/lib and
15395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15396 # libtool to hard-code these into programs
15397 ;;
15398
15399 cygwin* | mingw* | pw32*)
15400 version_type=windows
15401 shrext_cmds=".dll"
15402 need_version=no
15403 need_lib_prefix=no
15404
15405 case $GCC,$host_os in
15406 yes,cygwin* | yes,mingw* | yes,pw32*)
15407 library_names_spec='$libname.dll.a'
15408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15409 postinstall_cmds='base_file=`basename \${file}`~
15410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15411 dldir=$destdir/`dirname \$dlpath`~
15412 test -d \$dldir || mkdir -p \$dldir~
15413 $install_prog $dir/$dlname \$dldir/$dlname~
15414 chmod a+x \$dldir/$dlname'
15415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15416 dlpath=$dir/\$dldll~
15417 $rm \$dlpath'
15418 shlibpath_overrides_runpath=yes
15419
15420 case $host_os in
15421 cygwin*)
15422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15423 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15425 ;;
15426 mingw*)
15427 # MinGW DLLs use traditional 'lib' prefix
15428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15430 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15431 # It is most probably a Windows format PATH printed by
15432 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15433 # path with ; separators, and with drive letters. We can handle the
15434 # drive letters (cygwin fileutils understands them), so leave them,
15435 # especially as we might pass files found there to a mingw objdump,
15436 # which wouldn't understand a cygwinified path. Ahh.
15437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15438 else
15439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15440 fi
15441 ;;
15442 pw32*)
15443 # pw32 DLLs use 'pw' prefix rather than 'lib'
15444 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15445 ;;
15446 esac
15447 ;;
15448
15449 *)
15450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15451 ;;
15452 esac
15453 dynamic_linker='Win32 ld.exe'
15454 # FIXME: first we should search . and the directory the executable is in
15455 shlibpath_var=PATH
15456 ;;
15457
15458 darwin* | rhapsody*)
15459 dynamic_linker="$host_os dyld"
15460 version_type=darwin
15461 need_lib_prefix=no
15462 need_version=no
15463 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15464 soname_spec='${libname}${release}${major}$shared_ext'
15465 shlibpath_overrides_runpath=yes
15466 shlibpath_var=DYLD_LIBRARY_PATH
15467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15468
15469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15470 ;;
15471
15472 dgux*)
15473 version_type=linux
15474 need_lib_prefix=no
15475 need_version=no
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15477 soname_spec='${libname}${release}${shared_ext}$major'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 ;;
15480
15481 freebsd1*)
15482 dynamic_linker=no
15483 ;;
15484
15485 freebsd* | dragonfly*)
15486 # DragonFly does not have aout. When/if they implement a new
15487 # versioning mechanism, adjust this.
15488 if test -x /usr/bin/objformat; then
15489 objformat=`/usr/bin/objformat`
15490 else
15491 case $host_os in
15492 freebsd[123]*) objformat=aout ;;
15493 *) objformat=elf ;;
15494 esac
15495 fi
15496 version_type=freebsd-$objformat
15497 case $version_type in
15498 freebsd-elf*)
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15500 need_version=no
15501 need_lib_prefix=no
15502 ;;
15503 freebsd-*)
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15505 need_version=yes
15506 ;;
15507 esac
15508 shlibpath_var=LD_LIBRARY_PATH
15509 case $host_os in
15510 freebsd2*)
15511 shlibpath_overrides_runpath=yes
15512 ;;
15513 freebsd3.[01]* | freebsdelf3.[01]*)
15514 shlibpath_overrides_runpath=yes
15515 hardcode_into_libs=yes
15516 ;;
15517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15519 shlibpath_overrides_runpath=no
15520 hardcode_into_libs=yes
15521 ;;
15522 *) # from 4.6 on, and DragonFly
15523 shlibpath_overrides_runpath=yes
15524 hardcode_into_libs=yes
15525 ;;
15526 esac
15527 ;;
15528
15529 gnu*)
15530 version_type=linux
15531 need_lib_prefix=no
15532 need_version=no
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15534 soname_spec='${libname}${release}${shared_ext}$major'
15535 shlibpath_var=LD_LIBRARY_PATH
15536 hardcode_into_libs=yes
15537 ;;
15538
15539 hpux9* | hpux10* | hpux11*)
15540 # Give a soname corresponding to the major version so that dld.sl refuses to
15541 # link against other versions.
15542 version_type=sunos
15543 need_lib_prefix=no
15544 need_version=no
15545 case $host_cpu in
15546 ia64*)
15547 shrext_cmds='.so'
15548 hardcode_into_libs=yes
15549 dynamic_linker="$host_os dld.so"
15550 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 if test "X$HPUX_IA64_MODE" = X32; then
15555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15556 else
15557 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15558 fi
15559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15560 ;;
15561 hppa*64*)
15562 shrext_cmds='.sl'
15563 hardcode_into_libs=yes
15564 dynamic_linker="$host_os dld.sl"
15565 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15568 soname_spec='${libname}${release}${shared_ext}$major'
15569 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15571 ;;
15572 *)
15573 shrext_cmds='.sl'
15574 dynamic_linker="$host_os dld.sl"
15575 shlibpath_var=SHLIB_PATH
15576 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 ;;
15580 esac
15581 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15582 postinstall_cmds='chmod 555 $lib'
15583 ;;
15584
15585 interix[3-9]*)
15586 version_type=linux
15587 need_lib_prefix=no
15588 need_version=no
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15591 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15592 shlibpath_var=LD_LIBRARY_PATH
15593 shlibpath_overrides_runpath=no
15594 hardcode_into_libs=yes
15595 ;;
15596
15597 irix5* | irix6* | nonstopux*)
15598 case $host_os in
15599 nonstopux*) version_type=nonstopux ;;
15600 *)
15601 if test "$lt_cv_prog_gnu_ld" = yes; then
15602 version_type=linux
15603 else
15604 version_type=irix
15605 fi ;;
15606 esac
15607 need_lib_prefix=no
15608 need_version=no
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15611 case $host_os in
15612 irix5* | nonstopux*)
15613 libsuff= shlibsuff=
15614 ;;
15615 *)
15616 case $LD in # libtool.m4 will add one of these switches to LD
15617 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15618 libsuff= shlibsuff= libmagic=32-bit;;
15619 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15620 libsuff=32 shlibsuff=N32 libmagic=N32;;
15621 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15622 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15623 *) libsuff= shlibsuff= libmagic=never-match;;
15624 esac
15625 ;;
15626 esac
15627 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15628 shlibpath_overrides_runpath=no
15629 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15630 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15631 hardcode_into_libs=yes
15632 ;;
15633
15634 # No shared lib support for Linux oldld, aout, or coff.
15635 linux*oldld* | linux*aout* | linux*coff*)
15636 dynamic_linker=no
15637 ;;
15638
15639 # This must be Linux ELF.
15640 linux* | k*bsd*-gnu)
15641 version_type=linux
15642 need_lib_prefix=no
15643 need_version=no
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath=no
15649 # This implies no fast_install, which is unacceptable.
15650 # Some rework will be needed to allow for fast_install
15651 # before this can be enabled.
15652 hardcode_into_libs=yes
15653 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15654 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15655
15656 # Append ld.so.conf contents to the search path
15657 if test -f /etc/ld.so.conf; then
15658 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15659 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15660 fi
15661
15662 # We used to test for /lib/ld.so.1 and disable shared libraries on
15663 # powerpc, because MkLinux only supported shared libraries with the
15664 # GNU dynamic linker. Since this was broken with cross compilers,
15665 # most powerpc-linux boxes support dynamic linking these days and
15666 # people can always --disable-shared, the test was removed, and we
15667 # assume the GNU/Linux dynamic linker is in use.
15668 dynamic_linker='GNU/Linux ld.so'
15669 ;;
15670
15671 netbsd*)
15672 version_type=sunos
15673 need_lib_prefix=no
15674 need_version=no
15675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15678 dynamic_linker='NetBSD (a.out) ld.so'
15679 else
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 dynamic_linker='NetBSD ld.elf_so'
15683 fi
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=yes
15686 hardcode_into_libs=yes
15687 ;;
15688
15689 newsos6)
15690 version_type=linux
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 shlibpath_overrides_runpath=yes
15694 ;;
15695
15696 nto-qnx*)
15697 version_type=linux
15698 need_lib_prefix=no
15699 need_version=no
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 shlibpath_overrides_runpath=yes
15704 ;;
15705
15706 openbsd*)
15707 version_type=sunos
15708 sys_lib_dlsearch_path_spec="/usr/lib"
15709 need_lib_prefix=no
15710 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15711 case $host_os in
15712 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15713 *) need_version=no ;;
15714 esac
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15719 case $host_os in
15720 openbsd2.[89] | openbsd2.[89].*)
15721 shlibpath_overrides_runpath=no
15722 ;;
15723 *)
15724 shlibpath_overrides_runpath=yes
15725 ;;
15726 esac
15727 else
15728 shlibpath_overrides_runpath=yes
15729 fi
15730 ;;
15731
15732 os2*)
15733 libname_spec='$name'
15734 shrext_cmds=".dll"
15735 need_lib_prefix=no
15736 library_names_spec='$libname${shared_ext} $libname.a'
15737 dynamic_linker='OS/2 ld.exe'
15738 shlibpath_var=LIBPATH
15739 ;;
15740
15741 osf3* | osf4* | osf5*)
15742 version_type=osf
15743 need_lib_prefix=no
15744 need_version=no
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15749 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15750 ;;
15751
15752 rdos*)
15753 dynamic_linker=no
15754 ;;
15755
15756 solaris*)
15757 version_type=linux
15758 need_lib_prefix=no
15759 need_version=no
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15761 soname_spec='${libname}${release}${shared_ext}$major'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=yes
15764 hardcode_into_libs=yes
15765 # ldd complains unless libraries are executable
15766 postinstall_cmds='chmod +x $lib'
15767 ;;
15768
15769 sunos4*)
15770 version_type=sunos
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15772 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 shlibpath_overrides_runpath=yes
15775 if test "$with_gnu_ld" = yes; then
15776 need_lib_prefix=no
15777 fi
15778 need_version=yes
15779 ;;
15780
15781 sysv4 | sysv4.3*)
15782 version_type=linux
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784 soname_spec='${libname}${release}${shared_ext}$major'
15785 shlibpath_var=LD_LIBRARY_PATH
15786 case $host_vendor in
15787 sni)
15788 shlibpath_overrides_runpath=no
15789 need_lib_prefix=no
15790 export_dynamic_flag_spec='${wl}-Blargedynsym'
15791 runpath_var=LD_RUN_PATH
15792 ;;
15793 siemens)
15794 need_lib_prefix=no
15795 ;;
15796 motorola)
15797 need_lib_prefix=no
15798 need_version=no
15799 shlibpath_overrides_runpath=no
15800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15801 ;;
15802 esac
15803 ;;
15804
15805 sysv4*MP*)
15806 if test -d /usr/nec ;then
15807 version_type=linux
15808 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15809 soname_spec='$libname${shared_ext}.$major'
15810 shlibpath_var=LD_LIBRARY_PATH
15811 fi
15812 ;;
15813
15814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15815 version_type=freebsd-elf
15816 need_lib_prefix=no
15817 need_version=no
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 shlibpath_var=LD_LIBRARY_PATH
15821 hardcode_into_libs=yes
15822 if test "$with_gnu_ld" = yes; then
15823 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15824 shlibpath_overrides_runpath=no
15825 else
15826 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15827 shlibpath_overrides_runpath=yes
15828 case $host_os in
15829 sco3.2v5*)
15830 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15831 ;;
15832 esac
15833 fi
15834 sys_lib_dlsearch_path_spec='/usr/lib'
15835 ;;
15836
15837 uts4*)
15838 version_type=linux
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15840 soname_spec='${libname}${release}${shared_ext}$major'
15841 shlibpath_var=LD_LIBRARY_PATH
15842 ;;
15843
15844 *)
15845 dynamic_linker=no
15846 ;;
15847 esac
15848 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15849 echo "${ECHO_T}$dynamic_linker" >&6; }
15850 test "$dynamic_linker" = no && can_build_shared=no
15851
15852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15853 if test "$GCC" = yes; then
15854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15855 fi
15856
15857 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15858 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15859 hardcode_action_F77=
15860 if test -n "$hardcode_libdir_flag_spec_F77" || \
15861 test -n "$runpath_var_F77" || \
15862 test "X$hardcode_automatic_F77" = "Xyes" ; then
15863
15864 # We can hardcode non-existant directories.
15865 if test "$hardcode_direct_F77" != no &&
15866 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15867 # have to relink, otherwise we might link with an installed library
15868 # when we should be linking with a yet-to-be-installed one
15869 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15870 test "$hardcode_minus_L_F77" != no; then
15871 # Linking always hardcodes the temporary library directory.
15872 hardcode_action_F77=relink
15873 else
15874 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15875 hardcode_action_F77=immediate
15876 fi
15877 else
15878 # We cannot hardcode anything, or else we can only hardcode existing
15879 # directories.
15880 hardcode_action_F77=unsupported
15881 fi
15882 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15883 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15884
15885 if test "$hardcode_action_F77" = relink; then
15886 # Fast installation is not supported
15887 enable_fast_install=no
15888 elif test "$shlibpath_overrides_runpath" = yes ||
15889 test "$enable_shared" = no; then
15890 # Fast installation is not necessary
15891 enable_fast_install=needless
15892 fi
15893
15894
15895 # The else clause should only fire when bootstrapping the
15896 # libtool distribution, otherwise you forgot to ship ltmain.sh
15897 # with your package, and you will get complaints that there are
15898 # no rules to generate ltmain.sh.
15899 if test -f "$ltmain"; then
15900 # See if we are running on zsh, and set the options which allow our commands through
15901 # without removal of \ escapes.
15902 if test -n "${ZSH_VERSION+set}" ; then
15903 setopt NO_GLOB_SUBST
15904 fi
15905 # Now quote all the things that may contain metacharacters while being
15906 # careful not to overquote the AC_SUBSTed values. We take copies of the
15907 # variables and quote the copies for generation of the libtool script.
15908 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15909 SED SHELL STRIP \
15910 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15911 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15912 deplibs_check_method reload_flag reload_cmds need_locks \
15913 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15914 lt_cv_sys_global_symbol_to_c_name_address \
15915 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15916 old_postinstall_cmds old_postuninstall_cmds \
15917 compiler_F77 \
15918 CC_F77 \
15919 LD_F77 \
15920 lt_prog_compiler_wl_F77 \
15921 lt_prog_compiler_pic_F77 \
15922 lt_prog_compiler_static_F77 \
15923 lt_prog_compiler_no_builtin_flag_F77 \
15924 export_dynamic_flag_spec_F77 \
15925 thread_safe_flag_spec_F77 \
15926 whole_archive_flag_spec_F77 \
15927 enable_shared_with_static_runtimes_F77 \
15928 old_archive_cmds_F77 \
15929 old_archive_from_new_cmds_F77 \
15930 predep_objects_F77 \
15931 postdep_objects_F77 \
15932 predeps_F77 \
15933 postdeps_F77 \
15934 compiler_lib_search_path_F77 \
15935 archive_cmds_F77 \
15936 archive_expsym_cmds_F77 \
15937 postinstall_cmds_F77 \
15938 postuninstall_cmds_F77 \
15939 old_archive_from_expsyms_cmds_F77 \
15940 allow_undefined_flag_F77 \
15941 no_undefined_flag_F77 \
15942 export_symbols_cmds_F77 \
15943 hardcode_libdir_flag_spec_F77 \
15944 hardcode_libdir_flag_spec_ld_F77 \
15945 hardcode_libdir_separator_F77 \
15946 hardcode_automatic_F77 \
15947 module_cmds_F77 \
15948 module_expsym_cmds_F77 \
15949 lt_cv_prog_compiler_c_o_F77 \
15950 fix_srcfile_path_F77 \
15951 exclude_expsyms_F77 \
15952 include_expsyms_F77; do
15953
15954 case $var in
15955 old_archive_cmds_F77 | \
15956 old_archive_from_new_cmds_F77 | \
15957 archive_cmds_F77 | \
15958 archive_expsym_cmds_F77 | \
15959 module_cmds_F77 | \
15960 module_expsym_cmds_F77 | \
15961 old_archive_from_expsyms_cmds_F77 | \
15962 export_symbols_cmds_F77 | \
15963 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15964 postinstall_cmds | postuninstall_cmds | \
15965 old_postinstall_cmds | old_postuninstall_cmds | \
15966 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15967 # Double-quote double-evaled strings.
15968 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15969 ;;
15970 *)
15971 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15972 ;;
15973 esac
15974 done
15975
15976 case $lt_echo in
15977 *'\$0 --fallback-echo"')
15978 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15979 ;;
15980 esac
15981
15982 cfgfile="$ofile"
15983
15984 cat <<__EOF__ >> "$cfgfile"
15985 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15986
15987 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15988
15989 # Shell to use when invoking shell scripts.
15990 SHELL=$lt_SHELL
15991
15992 # Whether or not to build shared libraries.
15993 build_libtool_libs=$enable_shared
15994
15995 # Whether or not to build static libraries.
15996 build_old_libs=$enable_static
15997
15998 # Whether or not to add -lc for building shared libraries.
15999 build_libtool_need_lc=$archive_cmds_need_lc_F77
16000
16001 # Whether or not to disallow shared libs when runtime libs are static
16002 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16003
16004 # Whether or not to optimize for fast installation.
16005 fast_install=$enable_fast_install
16006
16007 # The host system.
16008 host_alias=$host_alias
16009 host=$host
16010 host_os=$host_os
16011
16012 # The build system.
16013 build_alias=$build_alias
16014 build=$build
16015 build_os=$build_os
16016
16017 # An echo program that does not interpret backslashes.
16018 echo=$lt_echo
16019
16020 # The archiver.
16021 AR=$lt_AR
16022 AR_FLAGS=$lt_AR_FLAGS
16023
16024 # A C compiler.
16025 LTCC=$lt_LTCC
16026
16027 # LTCC compiler flags.
16028 LTCFLAGS=$lt_LTCFLAGS
16029
16030 # A language-specific compiler.
16031 CC=$lt_compiler_F77
16032
16033 # Is the compiler the GNU C compiler?
16034 with_gcc=$GCC_F77
16035
16036 # An ERE matcher.
16037 EGREP=$lt_EGREP
16038
16039 # The linker used to build libraries.
16040 LD=$lt_LD_F77
16041
16042 # Whether we need hard or soft links.
16043 LN_S=$lt_LN_S
16044
16045 # A BSD-compatible nm program.
16046 NM=$lt_NM
16047
16048 # A symbol stripping program
16049 STRIP=$lt_STRIP
16050
16051 # Used to examine libraries when file_magic_cmd begins "file"
16052 MAGIC_CMD=$MAGIC_CMD
16053
16054 # Used on cygwin: DLL creation program.
16055 DLLTOOL="$DLLTOOL"
16056
16057 # Used on cygwin: object dumper.
16058 OBJDUMP="$OBJDUMP"
16059
16060 # Used on cygwin: assembler.
16061 AS="$AS"
16062
16063 # The name of the directory that contains temporary libtool files.
16064 objdir=$objdir
16065
16066 # How to create reloadable object files.
16067 reload_flag=$lt_reload_flag
16068 reload_cmds=$lt_reload_cmds
16069
16070 # How to pass a linker flag through the compiler.
16071 wl=$lt_lt_prog_compiler_wl_F77
16072
16073 # Object file suffix (normally "o").
16074 objext="$ac_objext"
16075
16076 # Old archive suffix (normally "a").
16077 libext="$libext"
16078
16079 # Shared library suffix (normally ".so").
16080 shrext_cmds='$shrext_cmds'
16081
16082 # Executable file suffix (normally "").
16083 exeext="$exeext"
16084
16085 # Additional compiler flags for building library objects.
16086 pic_flag=$lt_lt_prog_compiler_pic_F77
16087 pic_mode=$pic_mode
16088
16089 # What is the maximum length of a command?
16090 max_cmd_len=$lt_cv_sys_max_cmd_len
16091
16092 # Does compiler simultaneously support -c and -o options?
16093 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16094
16095 # Must we lock files when doing compilation?
16096 need_locks=$lt_need_locks
16097
16098 # Do we need the lib prefix for modules?
16099 need_lib_prefix=$need_lib_prefix
16100
16101 # Do we need a version for libraries?
16102 need_version=$need_version
16103
16104 # Whether dlopen is supported.
16105 dlopen_support=$enable_dlopen
16106
16107 # Whether dlopen of programs is supported.
16108 dlopen_self=$enable_dlopen_self
16109
16110 # Whether dlopen of statically linked programs is supported.
16111 dlopen_self_static=$enable_dlopen_self_static
16112
16113 # Compiler flag to prevent dynamic linking.
16114 link_static_flag=$lt_lt_prog_compiler_static_F77
16115
16116 # Compiler flag to turn off builtin functions.
16117 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16118
16119 # Compiler flag to allow reflexive dlopens.
16120 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16121
16122 # Compiler flag to generate shared objects directly from archives.
16123 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16124
16125 # Compiler flag to generate thread-safe objects.
16126 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16127
16128 # Library versioning type.
16129 version_type=$version_type
16130
16131 # Format of library name prefix.
16132 libname_spec=$lt_libname_spec
16133
16134 # List of archive names. First name is the real one, the rest are links.
16135 # The last name is the one that the linker finds with -lNAME.
16136 library_names_spec=$lt_library_names_spec
16137
16138 # The coded name of the library, if different from the real name.
16139 soname_spec=$lt_soname_spec
16140
16141 # Commands used to build and install an old-style archive.
16142 RANLIB=$lt_RANLIB
16143 old_archive_cmds=$lt_old_archive_cmds_F77
16144 old_postinstall_cmds=$lt_old_postinstall_cmds
16145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16146
16147 # Create an old-style archive from a shared archive.
16148 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16149
16150 # Create a temporary old-style archive to link instead of a shared archive.
16151 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16152
16153 # Commands used to build and install a shared archive.
16154 archive_cmds=$lt_archive_cmds_F77
16155 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16156 postinstall_cmds=$lt_postinstall_cmds
16157 postuninstall_cmds=$lt_postuninstall_cmds
16158
16159 # Commands used to build a loadable module (assumed same as above if empty)
16160 module_cmds=$lt_module_cmds_F77
16161 module_expsym_cmds=$lt_module_expsym_cmds_F77
16162
16163 # Commands to strip libraries.
16164 old_striplib=$lt_old_striplib
16165 striplib=$lt_striplib
16166
16167 # Dependencies to place before the objects being linked to create a
16168 # shared library.
16169 predep_objects=$lt_predep_objects_F77
16170
16171 # Dependencies to place after the objects being linked to create a
16172 # shared library.
16173 postdep_objects=$lt_postdep_objects_F77
16174
16175 # Dependencies to place before the objects being linked to create a
16176 # shared library.
16177 predeps=$lt_predeps_F77
16178
16179 # Dependencies to place after the objects being linked to create a
16180 # shared library.
16181 postdeps=$lt_postdeps_F77
16182
16183 # The library search path used internally by the compiler when linking
16184 # a shared library.
16185 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16186
16187 # Method to check whether dependent libraries are shared objects.
16188 deplibs_check_method=$lt_deplibs_check_method
16189
16190 # Command to use when deplibs_check_method == file_magic.
16191 file_magic_cmd=$lt_file_magic_cmd
16192
16193 # Flag that allows shared libraries with undefined symbols to be built.
16194 allow_undefined_flag=$lt_allow_undefined_flag_F77
16195
16196 # Flag that forces no undefined symbols.
16197 no_undefined_flag=$lt_no_undefined_flag_F77
16198
16199 # Commands used to finish a libtool library installation in a directory.
16200 finish_cmds=$lt_finish_cmds
16201
16202 # Same as above, but a single script fragment to be evaled but not shown.
16203 finish_eval=$lt_finish_eval
16204
16205 # Take the output of nm and produce a listing of raw symbols and C names.
16206 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16207
16208 # Transform the output of nm in a proper C declaration
16209 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16210
16211 # Transform the output of nm in a C name address pair
16212 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16213
16214 # This is the shared library runtime path variable.
16215 runpath_var=$runpath_var
16216
16217 # This is the shared library path variable.
16218 shlibpath_var=$shlibpath_var
16219
16220 # Is shlibpath searched before the hard-coded library search path?
16221 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16222
16223 # How to hardcode a shared library path into an executable.
16224 hardcode_action=$hardcode_action_F77
16225
16226 # Whether we should hardcode library paths into libraries.
16227 hardcode_into_libs=$hardcode_into_libs
16228
16229 # Flag to hardcode \$libdir into a binary during linking.
16230 # This must work even if \$libdir does not exist.
16231 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16232
16233 # If ld is used when linking, flag to hardcode \$libdir into
16234 # a binary during linking. This must work even if \$libdir does
16235 # not exist.
16236 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16237
16238 # Whether we need a single -rpath flag with a separated argument.
16239 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16240
16241 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16242 # resulting binary.
16243 hardcode_direct=$hardcode_direct_F77
16244
16245 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16246 # resulting binary.
16247 hardcode_minus_L=$hardcode_minus_L_F77
16248
16249 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16250 # the resulting binary.
16251 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16252
16253 # Set to yes if building a shared library automatically hardcodes DIR into the library
16254 # and all subsequent libraries and executables linked against it.
16255 hardcode_automatic=$hardcode_automatic_F77
16256
16257 # Variables whose values should be saved in libtool wrapper scripts and
16258 # restored at relink time.
16259 variables_saved_for_relink="$variables_saved_for_relink"
16260
16261 # Whether libtool must link a program against all its dependency libraries.
16262 link_all_deplibs=$link_all_deplibs_F77
16263
16264 # Compile-time system search path for libraries
16265 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16266
16267 # Run-time system search path for libraries
16268 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16269
16270 # Fix the shell variable \$srcfile for the compiler.
16271 fix_srcfile_path=$lt_fix_srcfile_path
16272
16273 # Set to yes if exported symbols are required.
16274 always_export_symbols=$always_export_symbols_F77
16275
16276 # The commands to list exported symbols.
16277 export_symbols_cmds=$lt_export_symbols_cmds_F77
16278
16279 # The commands to extract the exported symbol list from a shared archive.
16280 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16281
16282 # Symbols that should not be listed in the preloaded symbols.
16283 exclude_expsyms=$lt_exclude_expsyms_F77
16284
16285 # Symbols that must always be exported.
16286 include_expsyms=$lt_include_expsyms_F77
16287
16288 # ### END LIBTOOL TAG CONFIG: $tagname
16289
16290 __EOF__
16291
16292
16293 else
16294 # If there is no Makefile yet, we rely on a make rule to execute
16295 # `config.status --recheck' to rerun these tests and create the
16296 # libtool script then.
16297 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16298 if test -f "$ltmain_in"; then
16299 test -f Makefile && make "$ltmain"
16300 fi
16301 fi
16302
16303
16304 ac_ext=c
16305 ac_cpp='$CPP $CPPFLAGS'
16306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16309
16310 CC="$lt_save_CC"
16311
16312 else
16313 tagname=""
16314 fi
16315 ;;
16316
16317 GCJ)
16318 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16319
16320
16321 # Source file extension for Java test sources.
16322 ac_ext=java
16323
16324 # Object file extension for compiled Java test sources.
16325 objext=o
16326 objext_GCJ=$objext
16327
16328 # Code to be used in simple compile tests
16329 lt_simple_compile_test_code="class foo {}"
16330
16331 # Code to be used in simple link tests
16332 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16333
16334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16335
16336 # If no C compiler was specified, use CC.
16337 LTCC=${LTCC-"$CC"}
16338
16339 # If no C compiler flags were specified, use CFLAGS.
16340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16341
16342 # Allow CC to be a program name with arguments.
16343 compiler=$CC
16344
16345
16346 # save warnings/boilerplate of simple test code
16347 ac_outfile=conftest.$ac_objext
16348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16350 _lt_compiler_boilerplate=`cat conftest.err`
16351 $rm conftest*
16352
16353 ac_outfile=conftest.$ac_objext
16354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16356 _lt_linker_boilerplate=`cat conftest.err`
16357 $rm conftest*
16358
16359
16360 # Allow CC to be a program name with arguments.
16361 lt_save_CC="$CC"
16362 CC=${GCJ-"gcj"}
16363 compiler=$CC
16364 compiler_GCJ=$CC
16365 for cc_temp in $compiler""; do
16366 case $cc_temp in
16367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16369 \-*) ;;
16370 *) break;;
16371 esac
16372 done
16373 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16374
16375
16376 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16377 archive_cmds_need_lc_GCJ=no
16378
16379 old_archive_cmds_GCJ=$old_archive_cmds
16380
16381
16382 lt_prog_compiler_no_builtin_flag_GCJ=
16383
16384 if test "$GCC" = yes; then
16385 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16386
16387
16388 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16389 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16390 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393 lt_cv_prog_compiler_rtti_exceptions=no
16394 ac_outfile=conftest.$ac_objext
16395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16396 lt_compiler_flag="-fno-rtti -fno-exceptions"
16397 # Insert the option either (1) after the last *FLAGS variable, or
16398 # (2) before a word containing "conftest.", or (3) at the end.
16399 # Note that $ac_compile itself does not contain backslashes and begins
16400 # with a dollar sign (not a hyphen), so the echo should work correctly.
16401 # The option is referenced via a variable to avoid confusing sed.
16402 lt_compile=`echo "$ac_compile" | $SED \
16403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16405 -e 's:$: $lt_compiler_flag:'`
16406 (eval echo "\"\$as_me:16406: $lt_compile\"" >&5)
16407 (eval "$lt_compile" 2>conftest.err)
16408 ac_status=$?
16409 cat conftest.err >&5
16410 echo "$as_me:16410: \$? = $ac_status" >&5
16411 if (exit $ac_status) && test -s "$ac_outfile"; then
16412 # The compiler can only warn and ignore the option if not recognized
16413 # So say no if there are warnings other than the usual output.
16414 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16417 lt_cv_prog_compiler_rtti_exceptions=yes
16418 fi
16419 fi
16420 $rm conftest*
16421
16422 fi
16423 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16424 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16425
16426 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16427 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16428 else
16429 :
16430 fi
16431
16432 fi
16433
16434 lt_prog_compiler_wl_GCJ=
16435 lt_prog_compiler_pic_GCJ=
16436 lt_prog_compiler_static_GCJ=
16437
16438 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16439 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16440
16441 if test "$GCC" = yes; then
16442 lt_prog_compiler_wl_GCJ='-Wl,'
16443 lt_prog_compiler_static_GCJ='-static'
16444
16445 case $host_os in
16446 aix*)
16447 # All AIX code is PIC.
16448 if test "$host_cpu" = ia64; then
16449 # AIX 5 now supports IA64 processor
16450 lt_prog_compiler_static_GCJ='-Bstatic'
16451 fi
16452 ;;
16453
16454 amigaos*)
16455 # FIXME: we need at least 68020 code to build shared libraries, but
16456 # adding the `-m68020' flag to GCC prevents building anything better,
16457 # like `-m68040'.
16458 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16459 ;;
16460
16461 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16462 # PIC is the default for these OSes.
16463 ;;
16464
16465 mingw* | cygwin* | pw32* | os2*)
16466 # This hack is so that the source file can tell whether it is being
16467 # built for inclusion in a dll (and should export symbols for example).
16468 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16469 # (--disable-auto-import) libraries
16470 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16471 ;;
16472
16473 darwin* | rhapsody*)
16474 # PIC is the default on this platform
16475 # Common symbols not allowed in MH_DYLIB files
16476 lt_prog_compiler_pic_GCJ='-fno-common'
16477 ;;
16478
16479 interix[3-9]*)
16480 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16481 # Instead, we relocate shared libraries at runtime.
16482 ;;
16483
16484 msdosdjgpp*)
16485 # Just because we use GCC doesn't mean we suddenly get shared libraries
16486 # on systems that don't support them.
16487 lt_prog_compiler_can_build_shared_GCJ=no
16488 enable_shared=no
16489 ;;
16490
16491 sysv4*MP*)
16492 if test -d /usr/nec; then
16493 lt_prog_compiler_pic_GCJ=-Kconform_pic
16494 fi
16495 ;;
16496
16497 hpux*)
16498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16499 # not for PA HP-UX.
16500 case $host_cpu in
16501 hppa*64*|ia64*)
16502 # +Z the default
16503 ;;
16504 *)
16505 lt_prog_compiler_pic_GCJ='-fPIC'
16506 ;;
16507 esac
16508 ;;
16509
16510 *)
16511 lt_prog_compiler_pic_GCJ='-fPIC'
16512 ;;
16513 esac
16514 else
16515 # PORTME Check for flag to pass linker flags through the system compiler.
16516 case $host_os in
16517 aix*)
16518 lt_prog_compiler_wl_GCJ='-Wl,'
16519 if test "$host_cpu" = ia64; then
16520 # AIX 5 now supports IA64 processor
16521 lt_prog_compiler_static_GCJ='-Bstatic'
16522 else
16523 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16524 fi
16525 ;;
16526 darwin*)
16527 # PIC is the default on this platform
16528 # Common symbols not allowed in MH_DYLIB files
16529 case $cc_basename in
16530 xlc*)
16531 lt_prog_compiler_pic_GCJ='-qnocommon'
16532 lt_prog_compiler_wl_GCJ='-Wl,'
16533 ;;
16534 esac
16535 ;;
16536
16537 mingw* | cygwin* | pw32* | os2*)
16538 # This hack is so that the source file can tell whether it is being
16539 # built for inclusion in a dll (and should export symbols for example).
16540 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16541 ;;
16542
16543 hpux9* | hpux10* | hpux11*)
16544 lt_prog_compiler_wl_GCJ='-Wl,'
16545 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16546 # not for PA HP-UX.
16547 case $host_cpu in
16548 hppa*64*|ia64*)
16549 # +Z the default
16550 ;;
16551 *)
16552 lt_prog_compiler_pic_GCJ='+Z'
16553 ;;
16554 esac
16555 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16556 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16557 ;;
16558
16559 irix5* | irix6* | nonstopux*)
16560 lt_prog_compiler_wl_GCJ='-Wl,'
16561 # PIC (with -KPIC) is the default.
16562 lt_prog_compiler_static_GCJ='-non_shared'
16563 ;;
16564
16565 newsos6)
16566 lt_prog_compiler_pic_GCJ='-KPIC'
16567 lt_prog_compiler_static_GCJ='-Bstatic'
16568 ;;
16569
16570 linux* | k*bsd*-gnu)
16571 case $cc_basename in
16572 icc* | ecc*)
16573 lt_prog_compiler_wl_GCJ='-Wl,'
16574 lt_prog_compiler_pic_GCJ='-KPIC'
16575 lt_prog_compiler_static_GCJ='-static'
16576 ;;
16577 pgcc* | pgf77* | pgf90* | pgf95*)
16578 # Portland Group compilers (*not* the Pentium gcc compiler,
16579 # which looks to be a dead project)
16580 lt_prog_compiler_wl_GCJ='-Wl,'
16581 lt_prog_compiler_pic_GCJ='-fpic'
16582 lt_prog_compiler_static_GCJ='-Bstatic'
16583 ;;
16584 ccc*)
16585 lt_prog_compiler_wl_GCJ='-Wl,'
16586 # All Alpha code is PIC.
16587 lt_prog_compiler_static_GCJ='-non_shared'
16588 ;;
16589 *)
16590 case `$CC -V 2>&1 | sed 5q` in
16591 *Sun\ C*)
16592 # Sun C 5.9
16593 lt_prog_compiler_pic_GCJ='-KPIC'
16594 lt_prog_compiler_static_GCJ='-Bstatic'
16595 lt_prog_compiler_wl_GCJ='-Wl,'
16596 ;;
16597 *Sun\ F*)
16598 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16599 lt_prog_compiler_pic_GCJ='-KPIC'
16600 lt_prog_compiler_static_GCJ='-Bstatic'
16601 lt_prog_compiler_wl_GCJ=''
16602 ;;
16603 esac
16604 ;;
16605 esac
16606 ;;
16607
16608 osf3* | osf4* | osf5*)
16609 lt_prog_compiler_wl_GCJ='-Wl,'
16610 # All OSF/1 code is PIC.
16611 lt_prog_compiler_static_GCJ='-non_shared'
16612 ;;
16613
16614 rdos*)
16615 lt_prog_compiler_static_GCJ='-non_shared'
16616 ;;
16617
16618 solaris*)
16619 lt_prog_compiler_pic_GCJ='-KPIC'
16620 lt_prog_compiler_static_GCJ='-Bstatic'
16621 case $cc_basename in
16622 f77* | f90* | f95*)
16623 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16624 *)
16625 lt_prog_compiler_wl_GCJ='-Wl,';;
16626 esac
16627 ;;
16628
16629 sunos4*)
16630 lt_prog_compiler_wl_GCJ='-Qoption ld '
16631 lt_prog_compiler_pic_GCJ='-PIC'
16632 lt_prog_compiler_static_GCJ='-Bstatic'
16633 ;;
16634
16635 sysv4 | sysv4.2uw2* | sysv4.3*)
16636 lt_prog_compiler_wl_GCJ='-Wl,'
16637 lt_prog_compiler_pic_GCJ='-KPIC'
16638 lt_prog_compiler_static_GCJ='-Bstatic'
16639 ;;
16640
16641 sysv4*MP*)
16642 if test -d /usr/nec ;then
16643 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16644 lt_prog_compiler_static_GCJ='-Bstatic'
16645 fi
16646 ;;
16647
16648 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16649 lt_prog_compiler_wl_GCJ='-Wl,'
16650 lt_prog_compiler_pic_GCJ='-KPIC'
16651 lt_prog_compiler_static_GCJ='-Bstatic'
16652 ;;
16653
16654 unicos*)
16655 lt_prog_compiler_wl_GCJ='-Wl,'
16656 lt_prog_compiler_can_build_shared_GCJ=no
16657 ;;
16658
16659 uts4*)
16660 lt_prog_compiler_pic_GCJ='-pic'
16661 lt_prog_compiler_static_GCJ='-Bstatic'
16662 ;;
16663
16664 *)
16665 lt_prog_compiler_can_build_shared_GCJ=no
16666 ;;
16667 esac
16668 fi
16669
16670 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16671 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16672
16673 #
16674 # Check to make sure the PIC flag actually works.
16675 #
16676 if test -n "$lt_prog_compiler_pic_GCJ"; then
16677
16678 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16679 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16680 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 else
16683 lt_prog_compiler_pic_works_GCJ=no
16684 ac_outfile=conftest.$ac_objext
16685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16686 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16687 # Insert the option either (1) after the last *FLAGS variable, or
16688 # (2) before a word containing "conftest.", or (3) at the end.
16689 # Note that $ac_compile itself does not contain backslashes and begins
16690 # with a dollar sign (not a hyphen), so the echo should work correctly.
16691 # The option is referenced via a variable to avoid confusing sed.
16692 lt_compile=`echo "$ac_compile" | $SED \
16693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16695 -e 's:$: $lt_compiler_flag:'`
16696 (eval echo "\"\$as_me:16696: $lt_compile\"" >&5)
16697 (eval "$lt_compile" 2>conftest.err)
16698 ac_status=$?
16699 cat conftest.err >&5
16700 echo "$as_me:16700: \$? = $ac_status" >&5
16701 if (exit $ac_status) && test -s "$ac_outfile"; then
16702 # The compiler can only warn and ignore the option if not recognized
16703 # So say no if there are warnings other than the usual output.
16704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16707 lt_prog_compiler_pic_works_GCJ=yes
16708 fi
16709 fi
16710 $rm conftest*
16711
16712 fi
16713 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16714 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16715
16716 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16717 case $lt_prog_compiler_pic_GCJ in
16718 "" | " "*) ;;
16719 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16720 esac
16721 else
16722 lt_prog_compiler_pic_GCJ=
16723 lt_prog_compiler_can_build_shared_GCJ=no
16724 fi
16725
16726 fi
16727 case $host_os in
16728 # For platforms which do not support PIC, -DPIC is meaningless:
16729 *djgpp*)
16730 lt_prog_compiler_pic_GCJ=
16731 ;;
16732 *)
16733 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16734 ;;
16735 esac
16736
16737 #
16738 # Check to make sure the static flag actually works.
16739 #
16740 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16741 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16742 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16743 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746 lt_prog_compiler_static_works_GCJ=no
16747 save_LDFLAGS="$LDFLAGS"
16748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16749 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16751 # The linker can only warn and ignore the option if not recognized
16752 # So say no if there are warnings
16753 if test -s conftest.err; then
16754 # Append any errors to the config.log.
16755 cat conftest.err 1>&5
16756 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16758 if diff conftest.exp conftest.er2 >/dev/null; then
16759 lt_prog_compiler_static_works_GCJ=yes
16760 fi
16761 else
16762 lt_prog_compiler_static_works_GCJ=yes
16763 fi
16764 fi
16765 $rm conftest*
16766 LDFLAGS="$save_LDFLAGS"
16767
16768 fi
16769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16770 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16771
16772 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16773 :
16774 else
16775 lt_prog_compiler_static_GCJ=
16776 fi
16777
16778
16779 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16780 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16781 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 else
16784 lt_cv_prog_compiler_c_o_GCJ=no
16785 $rm -r conftest 2>/dev/null
16786 mkdir conftest
16787 cd conftest
16788 mkdir out
16789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16790
16791 lt_compiler_flag="-o out/conftest2.$ac_objext"
16792 # Insert the option either (1) after the last *FLAGS variable, or
16793 # (2) before a word containing "conftest.", or (3) at the end.
16794 # Note that $ac_compile itself does not contain backslashes and begins
16795 # with a dollar sign (not a hyphen), so the echo should work correctly.
16796 lt_compile=`echo "$ac_compile" | $SED \
16797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16799 -e 's:$: $lt_compiler_flag:'`
16800 (eval echo "\"\$as_me:16800: $lt_compile\"" >&5)
16801 (eval "$lt_compile" 2>out/conftest.err)
16802 ac_status=$?
16803 cat out/conftest.err >&5
16804 echo "$as_me:16804: \$? = $ac_status" >&5
16805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16806 then
16807 # The compiler can only warn and ignore the option if not recognized
16808 # So say no if there are warnings
16809 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16812 lt_cv_prog_compiler_c_o_GCJ=yes
16813 fi
16814 fi
16815 chmod u+w . 2>&5
16816 $rm conftest*
16817 # SGI C++ compiler will create directory out/ii_files/ for
16818 # template instantiation
16819 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16820 $rm out/* && rmdir out
16821 cd ..
16822 rmdir conftest
16823 $rm conftest*
16824
16825 fi
16826 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16827 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16828
16829
16830 hard_links="nottested"
16831 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16832 # do not overwrite the value of need_locks provided by the user
16833 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16834 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16835 hard_links=yes
16836 $rm conftest*
16837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16838 touch conftest.a
16839 ln conftest.a conftest.b 2>&5 || hard_links=no
16840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16841 { echo "$as_me:$LINENO: result: $hard_links" >&5
16842 echo "${ECHO_T}$hard_links" >&6; }
16843 if test "$hard_links" = no; then
16844 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16845 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16846 need_locks=warn
16847 fi
16848 else
16849 need_locks=no
16850 fi
16851
16852 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16853 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16854
16855 runpath_var=
16856 allow_undefined_flag_GCJ=
16857 enable_shared_with_static_runtimes_GCJ=no
16858 archive_cmds_GCJ=
16859 archive_expsym_cmds_GCJ=
16860 old_archive_From_new_cmds_GCJ=
16861 old_archive_from_expsyms_cmds_GCJ=
16862 export_dynamic_flag_spec_GCJ=
16863 whole_archive_flag_spec_GCJ=
16864 thread_safe_flag_spec_GCJ=
16865 hardcode_libdir_flag_spec_GCJ=
16866 hardcode_libdir_flag_spec_ld_GCJ=
16867 hardcode_libdir_separator_GCJ=
16868 hardcode_direct_GCJ=no
16869 hardcode_minus_L_GCJ=no
16870 hardcode_shlibpath_var_GCJ=unsupported
16871 link_all_deplibs_GCJ=unknown
16872 hardcode_automatic_GCJ=no
16873 module_cmds_GCJ=
16874 module_expsym_cmds_GCJ=
16875 always_export_symbols_GCJ=no
16876 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16877 # include_expsyms should be a list of space-separated symbols to be *always*
16878 # included in the symbol list
16879 include_expsyms_GCJ=
16880 # exclude_expsyms can be an extended regexp of symbols to exclude
16881 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16882 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16883 # as well as any symbol that contains `d'.
16884 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16885 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16886 # platforms (ab)use it in PIC code, but their linkers get confused if
16887 # the symbol is explicitly referenced. Since portable code cannot
16888 # rely on this symbol name, it's probably fine to never include it in
16889 # preloaded symbol tables.
16890 extract_expsyms_cmds=
16891 # Just being paranoid about ensuring that cc_basename is set.
16892 for cc_temp in $compiler""; do
16893 case $cc_temp in
16894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16896 \-*) ;;
16897 *) break;;
16898 esac
16899 done
16900 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16901
16902 case $host_os in
16903 cygwin* | mingw* | pw32*)
16904 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16905 # When not using gcc, we currently assume that we are using
16906 # Microsoft Visual C++.
16907 if test "$GCC" != yes; then
16908 with_gnu_ld=no
16909 fi
16910 ;;
16911 interix*)
16912 # we just hope/assume this is gcc and not c89 (= MSVC++)
16913 with_gnu_ld=yes
16914 ;;
16915 openbsd*)
16916 with_gnu_ld=no
16917 ;;
16918 esac
16919
16920 ld_shlibs_GCJ=yes
16921 if test "$with_gnu_ld" = yes; then
16922 # If archive_cmds runs LD, not CC, wlarc should be empty
16923 wlarc='${wl}'
16924
16925 # Set some defaults for GNU ld with shared library support. These
16926 # are reset later if shared libraries are not supported. Putting them
16927 # here allows them to be overridden if necessary.
16928 runpath_var=LD_RUN_PATH
16929 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16930 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16931 # ancient GNU ld didn't support --whole-archive et. al.
16932 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16933 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16934 else
16935 whole_archive_flag_spec_GCJ=
16936 fi
16937 supports_anon_versioning=no
16938 case `$LD -v 2>/dev/null` in
16939 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16942 *\ 2.11.*) ;; # other 2.11 versions
16943 *) supports_anon_versioning=yes ;;
16944 esac
16945
16946 # See if GNU ld supports shared libraries.
16947 case $host_os in
16948 aix3* | aix4* | aix5*)
16949 # On AIX/PPC, the GNU linker is very broken
16950 if test "$host_cpu" != ia64; then
16951 ld_shlibs_GCJ=no
16952 cat <<EOF 1>&2
16953
16954 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16955 *** to be unable to reliably create shared libraries on AIX.
16956 *** Therefore, libtool is disabling shared libraries support. If you
16957 *** really care for shared libraries, you may want to modify your PATH
16958 *** so that a non-GNU linker is found, and then restart.
16959
16960 EOF
16961 fi
16962 ;;
16963
16964 amigaos*)
16965 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)'
16966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16967 hardcode_minus_L_GCJ=yes
16968
16969 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16970 # that the semantics of dynamic libraries on AmigaOS, at least up
16971 # to version 4, is to share data among multiple programs linked
16972 # with the same dynamic library. Since this doesn't match the
16973 # behavior of shared libraries on other platforms, we can't use
16974 # them.
16975 ld_shlibs_GCJ=no
16976 ;;
16977
16978 beos*)
16979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16980 allow_undefined_flag_GCJ=unsupported
16981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16982 # support --undefined. This deserves some investigation. FIXME
16983 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16984 else
16985 ld_shlibs_GCJ=no
16986 fi
16987 ;;
16988
16989 cygwin* | mingw* | pw32*)
16990 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16991 # as there is no search path for DLLs.
16992 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16993 allow_undefined_flag_GCJ=unsupported
16994 always_export_symbols_GCJ=no
16995 enable_shared_with_static_runtimes_GCJ=yes
16996 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16997
16998 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16999 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17000 # If the export-symbols file already is a .def file (1st line
17001 # is EXPORTS), use it as is; otherwise, prepend...
17002 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17003 cp $export_symbols $output_objdir/$soname.def;
17004 else
17005 echo EXPORTS > $output_objdir/$soname.def;
17006 cat $export_symbols >> $output_objdir/$soname.def;
17007 fi~
17008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17009 else
17010 ld_shlibs_GCJ=no
17011 fi
17012 ;;
17013
17014 interix[3-9]*)
17015 hardcode_direct_GCJ=no
17016 hardcode_shlibpath_var_GCJ=no
17017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17018 export_dynamic_flag_spec_GCJ='${wl}-E'
17019 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17020 # Instead, shared libraries are loaded at an image base (0x10000000 by
17021 # default) and relocated if they conflict, which is a slow very memory
17022 # consuming and fragmenting process. To avoid this, we pick a random,
17023 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17024 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17025 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'
17026 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'
17027 ;;
17028
17029 gnu* | linux* | k*bsd*-gnu)
17030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17031 tmp_addflag=
17032 case $cc_basename,$host_cpu in
17033 pgcc*) # Portland Group C compiler
17034 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'
17035 tmp_addflag=' $pic_flag'
17036 ;;
17037 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17038 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'
17039 tmp_addflag=' $pic_flag -Mnomain' ;;
17040 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17041 tmp_addflag=' -i_dynamic' ;;
17042 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17043 tmp_addflag=' -i_dynamic -nofor_main' ;;
17044 ifc* | ifort*) # Intel Fortran compiler
17045 tmp_addflag=' -nofor_main' ;;
17046 esac
17047 case `$CC -V 2>&1 | sed 5q` in
17048 *Sun\ C*) # Sun C 5.9
17049 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17050 tmp_sharedflag='-G' ;;
17051 *Sun\ F*) # Sun Fortran 8.3
17052 tmp_sharedflag='-G' ;;
17053 *)
17054 tmp_sharedflag='-shared' ;;
17055 esac
17056 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17057
17058 if test $supports_anon_versioning = yes; then
17059 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17060 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17061 $echo "local: *; };" >> $output_objdir/$libname.ver~
17062 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17063 fi
17064 else
17065 ld_shlibs_GCJ=no
17066 fi
17067 ;;
17068
17069 netbsd*)
17070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17071 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17072 wlarc=
17073 else
17074 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17075 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17076 fi
17077 ;;
17078
17079 solaris*)
17080 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17081 ld_shlibs_GCJ=no
17082 cat <<EOF 1>&2
17083
17084 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17085 *** create shared libraries on Solaris systems. Therefore, libtool
17086 *** is disabling shared libraries support. We urge you to upgrade GNU
17087 *** binutils to release 2.9.1 or newer. Another option is to modify
17088 *** your PATH or compiler configuration so that the native linker is
17089 *** used, and then restart.
17090
17091 EOF
17092 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17093 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17094 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17095 else
17096 ld_shlibs_GCJ=no
17097 fi
17098 ;;
17099
17100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17101 case `$LD -v 2>&1` in
17102 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17103 ld_shlibs_GCJ=no
17104 cat <<_LT_EOF 1>&2
17105
17106 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17107 *** reliably create shared libraries on SCO systems. Therefore, libtool
17108 *** is disabling shared libraries support. We urge you to upgrade GNU
17109 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17110 *** your PATH or compiler configuration so that the native linker is
17111 *** used, and then restart.
17112
17113 _LT_EOF
17114 ;;
17115 *)
17116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17117 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17118 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17119 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17120 else
17121 ld_shlibs_GCJ=no
17122 fi
17123 ;;
17124 esac
17125 ;;
17126
17127 sunos4*)
17128 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17129 wlarc=
17130 hardcode_direct_GCJ=yes
17131 hardcode_shlibpath_var_GCJ=no
17132 ;;
17133
17134 *)
17135 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17136 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17137 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17138 else
17139 ld_shlibs_GCJ=no
17140 fi
17141 ;;
17142 esac
17143
17144 if test "$ld_shlibs_GCJ" = no; then
17145 runpath_var=
17146 hardcode_libdir_flag_spec_GCJ=
17147 export_dynamic_flag_spec_GCJ=
17148 whole_archive_flag_spec_GCJ=
17149 fi
17150 else
17151 # PORTME fill in a description of your system's linker (not GNU ld)
17152 case $host_os in
17153 aix3*)
17154 allow_undefined_flag_GCJ=unsupported
17155 always_export_symbols_GCJ=yes
17156 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'
17157 # Note: this linker hardcodes the directories in LIBPATH if there
17158 # are no directories specified by -L.
17159 hardcode_minus_L_GCJ=yes
17160 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17161 # Neither direct hardcoding nor static linking is supported with a
17162 # broken collect2.
17163 hardcode_direct_GCJ=unsupported
17164 fi
17165 ;;
17166
17167 aix4* | aix5*)
17168 if test "$host_cpu" = ia64; then
17169 # On IA64, the linker does run time linking by default, so we don't
17170 # have to do anything special.
17171 aix_use_runtimelinking=no
17172 exp_sym_flag='-Bexport'
17173 no_entry_flag=""
17174 else
17175 # If we're using GNU nm, then we don't want the "-C" option.
17176 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17177 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17178 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'
17179 else
17180 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'
17181 fi
17182 aix_use_runtimelinking=no
17183
17184 # Test if we are trying to use run time linking or normal
17185 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17186 # need to do runtime linking.
17187 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17188 for ld_flag in $LDFLAGS; do
17189 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17190 aix_use_runtimelinking=yes
17191 break
17192 fi
17193 done
17194 ;;
17195 esac
17196
17197 exp_sym_flag='-bexport'
17198 no_entry_flag='-bnoentry'
17199 fi
17200
17201 # When large executables or shared objects are built, AIX ld can
17202 # have problems creating the table of contents. If linking a library
17203 # or program results in "error TOC overflow" add -mminimal-toc to
17204 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17205 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17206
17207 archive_cmds_GCJ=''
17208 hardcode_direct_GCJ=yes
17209 hardcode_libdir_separator_GCJ=':'
17210 link_all_deplibs_GCJ=yes
17211
17212 if test "$GCC" = yes; then
17213 case $host_os in aix4.[012]|aix4.[012].*)
17214 # We only want to do this on AIX 4.2 and lower, the check
17215 # below for broken collect2 doesn't work under 4.3+
17216 collect2name=`${CC} -print-prog-name=collect2`
17217 if test -f "$collect2name" && \
17218 strings "$collect2name" | grep resolve_lib_name >/dev/null
17219 then
17220 # We have reworked collect2
17221 :
17222 else
17223 # We have old collect2
17224 hardcode_direct_GCJ=unsupported
17225 # It fails to find uninstalled libraries when the uninstalled
17226 # path is not listed in the libpath. Setting hardcode_minus_L
17227 # to unsupported forces relinking
17228 hardcode_minus_L_GCJ=yes
17229 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17230 hardcode_libdir_separator_GCJ=
17231 fi
17232 ;;
17233 esac
17234 shared_flag='-shared'
17235 if test "$aix_use_runtimelinking" = yes; then
17236 shared_flag="$shared_flag "'${wl}-G'
17237 fi
17238 else
17239 # not using gcc
17240 if test "$host_cpu" = ia64; then
17241 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17242 # chokes on -Wl,-G. The following line is correct:
17243 shared_flag='-G'
17244 else
17245 if test "$aix_use_runtimelinking" = yes; then
17246 shared_flag='${wl}-G'
17247 else
17248 shared_flag='${wl}-bM:SRE'
17249 fi
17250 fi
17251 fi
17252
17253 # It seems that -bexpall does not export symbols beginning with
17254 # underscore (_), so it is better to generate a list of symbols to export.
17255 always_export_symbols_GCJ=yes
17256 if test "$aix_use_runtimelinking" = yes; then
17257 # Warning - without using the other runtime loading flags (-brtl),
17258 # -berok will link without error, but may produce a broken library.
17259 allow_undefined_flag_GCJ='-berok'
17260 # Determine the default libpath from the value encoded in an empty executable.
17261 cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h. */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267
17268 int
17269 main ()
17270 {
17271
17272 ;
17273 return 0;
17274 }
17275 _ACEOF
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (ac_try="$ac_link"
17278 case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17281 esac
17282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_link") 2>conftest.er1
17284 ac_status=$?
17285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } && {
17290 test -z "$ac_c_werror_flag" ||
17291 test ! -s conftest.err
17292 } && test -s conftest$ac_exeext &&
17293 $as_test_x conftest$ac_exeext; then
17294
17295 lt_aix_libpath_sed='
17296 /Import File Strings/,/^$/ {
17297 /^0/ {
17298 s/^0 *\(.*\)$/\1/
17299 p
17300 }
17301 }'
17302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17303 # Check for a 64-bit object if we didn't find anything.
17304 if test -z "$aix_libpath"; then
17305 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17306 fi
17307 else
17308 echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17310
17311
17312 fi
17313
17314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17315 conftest$ac_exeext conftest.$ac_ext
17316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17317
17318 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17319 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"
17320 else
17321 if test "$host_cpu" = ia64; then
17322 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17323 allow_undefined_flag_GCJ="-z nodefs"
17324 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"
17325 else
17326 # Determine the default libpath from the value encoded in an empty executable.
17327 cat >conftest.$ac_ext <<_ACEOF
17328 /* confdefs.h. */
17329 _ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333
17334 int
17335 main ()
17336 {
17337
17338 ;
17339 return 0;
17340 }
17341 _ACEOF
17342 rm -f conftest.$ac_objext conftest$ac_exeext
17343 if { (ac_try="$ac_link"
17344 case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17347 esac
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_link") 2>conftest.er1
17350 ac_status=$?
17351 grep -v '^ *+' conftest.er1 >conftest.err
17352 rm -f conftest.er1
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } && {
17356 test -z "$ac_c_werror_flag" ||
17357 test ! -s conftest.err
17358 } && test -s conftest$ac_exeext &&
17359 $as_test_x conftest$ac_exeext; then
17360
17361 lt_aix_libpath_sed='
17362 /Import File Strings/,/^$/ {
17363 /^0/ {
17364 s/^0 *\(.*\)$/\1/
17365 p
17366 }
17367 }'
17368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17369 # Check for a 64-bit object if we didn't find anything.
17370 if test -z "$aix_libpath"; then
17371 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17372 fi
17373 else
17374 echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17376
17377
17378 fi
17379
17380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17381 conftest$ac_exeext conftest.$ac_ext
17382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17383
17384 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17385 # Warning - without using the other run time loading flags,
17386 # -berok will link without error, but may produce a broken library.
17387 no_undefined_flag_GCJ=' ${wl}-bernotok'
17388 allow_undefined_flag_GCJ=' ${wl}-berok'
17389 # Exported symbols can be pulled into shared objects from archives
17390 whole_archive_flag_spec_GCJ='$convenience'
17391 archive_cmds_need_lc_GCJ=yes
17392 # This is similar to how AIX traditionally builds its shared libraries.
17393 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'
17394 fi
17395 fi
17396 ;;
17397
17398 amigaos*)
17399 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)'
17400 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17401 hardcode_minus_L_GCJ=yes
17402 # see comment about different semantics on the GNU ld section
17403 ld_shlibs_GCJ=no
17404 ;;
17405
17406 bsdi[45]*)
17407 export_dynamic_flag_spec_GCJ=-rdynamic
17408 ;;
17409
17410 cygwin* | mingw* | pw32*)
17411 # When not using gcc, we currently assume that we are using
17412 # Microsoft Visual C++.
17413 # hardcode_libdir_flag_spec is actually meaningless, as there is
17414 # no search path for DLLs.
17415 hardcode_libdir_flag_spec_GCJ=' '
17416 allow_undefined_flag_GCJ=unsupported
17417 # Tell ltmain to make .lib files, not .a files.
17418 libext=lib
17419 # Tell ltmain to make .dll files, not .so files.
17420 shrext_cmds=".dll"
17421 # FIXME: Setting linknames here is a bad hack.
17422 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17423 # The linker will automatically build a .lib file if we build a DLL.
17424 old_archive_From_new_cmds_GCJ='true'
17425 # FIXME: Should let the user specify the lib program.
17426 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17427 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17428 enable_shared_with_static_runtimes_GCJ=yes
17429 ;;
17430
17431 darwin* | rhapsody*)
17432 case $host_os in
17433 rhapsody* | darwin1.[012])
17434 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17435 ;;
17436 *) # Darwin 1.3 on
17437 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17438 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17439 else
17440 case ${MACOSX_DEPLOYMENT_TARGET} in
17441 10.[012])
17442 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17443 ;;
17444 10.*)
17445 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17446 ;;
17447 esac
17448 fi
17449 ;;
17450 esac
17451 archive_cmds_need_lc_GCJ=no
17452 hardcode_direct_GCJ=no
17453 hardcode_automatic_GCJ=yes
17454 hardcode_shlibpath_var_GCJ=unsupported
17455 whole_archive_flag_spec_GCJ=''
17456 link_all_deplibs_GCJ=yes
17457 if test "$GCC" = yes ; then
17458 output_verbose_link_cmd='echo'
17459 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17460 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17462 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}'
17463 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}'
17464 else
17465 case $cc_basename in
17466 xlc*)
17467 output_verbose_link_cmd='echo'
17468 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17469 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17470 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17471 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17472 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}'
17473 ;;
17474 *)
17475 ld_shlibs_GCJ=no
17476 ;;
17477 esac
17478 fi
17479 ;;
17480
17481 dgux*)
17482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17484 hardcode_shlibpath_var_GCJ=no
17485 ;;
17486
17487 freebsd1*)
17488 ld_shlibs_GCJ=no
17489 ;;
17490
17491 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17492 # support. Future versions do this automatically, but an explicit c++rt0.o
17493 # does not break anything, and helps significantly (at the cost of a little
17494 # extra space).
17495 freebsd2.2*)
17496 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17497 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17498 hardcode_direct_GCJ=yes
17499 hardcode_shlibpath_var_GCJ=no
17500 ;;
17501
17502 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17503 freebsd2*)
17504 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17505 hardcode_direct_GCJ=yes
17506 hardcode_minus_L_GCJ=yes
17507 hardcode_shlibpath_var_GCJ=no
17508 ;;
17509
17510 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17511 freebsd* | dragonfly*)
17512 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17514 hardcode_direct_GCJ=yes
17515 hardcode_shlibpath_var_GCJ=no
17516 ;;
17517
17518 hpux9*)
17519 if test "$GCC" = yes; then
17520 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'
17521 else
17522 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'
17523 fi
17524 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17525 hardcode_libdir_separator_GCJ=:
17526 hardcode_direct_GCJ=yes
17527
17528 # hardcode_minus_L: Not really in the search PATH,
17529 # but as the default location of the library.
17530 hardcode_minus_L_GCJ=yes
17531 export_dynamic_flag_spec_GCJ='${wl}-E'
17532 ;;
17533
17534 hpux10*)
17535 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17536 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17537 else
17538 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17539 fi
17540 if test "$with_gnu_ld" = no; then
17541 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17542 hardcode_libdir_separator_GCJ=:
17543
17544 hardcode_direct_GCJ=yes
17545 export_dynamic_flag_spec_GCJ='${wl}-E'
17546
17547 # hardcode_minus_L: Not really in the search PATH,
17548 # but as the default location of the library.
17549 hardcode_minus_L_GCJ=yes
17550 fi
17551 ;;
17552
17553 hpux11*)
17554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17555 case $host_cpu in
17556 hppa*64*)
17557 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17558 ;;
17559 ia64*)
17560 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17561 ;;
17562 *)
17563 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17564 ;;
17565 esac
17566 else
17567 case $host_cpu in
17568 hppa*64*)
17569 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17570 ;;
17571 ia64*)
17572 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17573 ;;
17574 *)
17575 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17576 ;;
17577 esac
17578 fi
17579 if test "$with_gnu_ld" = no; then
17580 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17581 hardcode_libdir_separator_GCJ=:
17582
17583 case $host_cpu in
17584 hppa*64*|ia64*)
17585 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17586 hardcode_direct_GCJ=no
17587 hardcode_shlibpath_var_GCJ=no
17588 ;;
17589 *)
17590 hardcode_direct_GCJ=yes
17591 export_dynamic_flag_spec_GCJ='${wl}-E'
17592
17593 # hardcode_minus_L: Not really in the search PATH,
17594 # but as the default location of the library.
17595 hardcode_minus_L_GCJ=yes
17596 ;;
17597 esac
17598 fi
17599 ;;
17600
17601 irix5* | irix6* | nonstopux*)
17602 if test "$GCC" = yes; then
17603 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'
17604 else
17605 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'
17606 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17607 fi
17608 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17609 hardcode_libdir_separator_GCJ=:
17610 link_all_deplibs_GCJ=yes
17611 ;;
17612
17613 netbsd*)
17614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17615 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17616 else
17617 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17618 fi
17619 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17620 hardcode_direct_GCJ=yes
17621 hardcode_shlibpath_var_GCJ=no
17622 ;;
17623
17624 newsos6)
17625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 hardcode_direct_GCJ=yes
17627 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17628 hardcode_libdir_separator_GCJ=:
17629 hardcode_shlibpath_var_GCJ=no
17630 ;;
17631
17632 openbsd*)
17633 if test -f /usr/libexec/ld.so; then
17634 hardcode_direct_GCJ=yes
17635 hardcode_shlibpath_var_GCJ=no
17636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17637 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17638 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17640 export_dynamic_flag_spec_GCJ='${wl}-E'
17641 else
17642 case $host_os in
17643 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17644 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17645 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17646 ;;
17647 *)
17648 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17649 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17650 ;;
17651 esac
17652 fi
17653 else
17654 ld_shlibs_GCJ=no
17655 fi
17656 ;;
17657
17658 os2*)
17659 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17660 hardcode_minus_L_GCJ=yes
17661 allow_undefined_flag_GCJ=unsupported
17662 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'
17663 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17664 ;;
17665
17666 osf3*)
17667 if test "$GCC" = yes; then
17668 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17669 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'
17670 else
17671 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17672 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'
17673 fi
17674 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17675 hardcode_libdir_separator_GCJ=:
17676 ;;
17677
17678 osf4* | osf5*) # as osf3* with the addition of -msym flag
17679 if test "$GCC" = yes; then
17680 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17681 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'
17682 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17683 else
17684 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17685 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'
17686 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~
17687 $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'
17688
17689 # Both c and cxx compiler support -rpath directly
17690 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17691 fi
17692 hardcode_libdir_separator_GCJ=:
17693 ;;
17694
17695 solaris*)
17696 no_undefined_flag_GCJ=' -z text'
17697 if test "$GCC" = yes; then
17698 wlarc='${wl}'
17699 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17700 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17701 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17702 else
17703 wlarc=''
17704 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17705 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17706 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17707 fi
17708 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17709 hardcode_shlibpath_var_GCJ=no
17710 case $host_os in
17711 solaris2.[0-5] | solaris2.[0-5].*) ;;
17712 *)
17713 # The compiler driver will combine and reorder linker options,
17714 # but understands `-z linker_flag'. GCC discards it without `$wl',
17715 # but is careful enough not to reorder.
17716 # Supported since Solaris 2.6 (maybe 2.5.1?)
17717 if test "$GCC" = yes; then
17718 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17719 else
17720 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17721 fi
17722 ;;
17723 esac
17724 link_all_deplibs_GCJ=yes
17725 ;;
17726
17727 sunos4*)
17728 if test "x$host_vendor" = xsequent; then
17729 # Use $CC to link under sequent, because it throws in some extra .o
17730 # files that make .init and .fini sections work.
17731 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17732 else
17733 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17734 fi
17735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17736 hardcode_direct_GCJ=yes
17737 hardcode_minus_L_GCJ=yes
17738 hardcode_shlibpath_var_GCJ=no
17739 ;;
17740
17741 sysv4)
17742 case $host_vendor in
17743 sni)
17744 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17745 hardcode_direct_GCJ=yes # is this really true???
17746 ;;
17747 siemens)
17748 ## LD is ld it makes a PLAMLIB
17749 ## CC just makes a GrossModule.
17750 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17751 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17752 hardcode_direct_GCJ=no
17753 ;;
17754 motorola)
17755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17756 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17757 ;;
17758 esac
17759 runpath_var='LD_RUN_PATH'
17760 hardcode_shlibpath_var_GCJ=no
17761 ;;
17762
17763 sysv4.3*)
17764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765 hardcode_shlibpath_var_GCJ=no
17766 export_dynamic_flag_spec_GCJ='-Bexport'
17767 ;;
17768
17769 sysv4*MP*)
17770 if test -d /usr/nec; then
17771 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17772 hardcode_shlibpath_var_GCJ=no
17773 runpath_var=LD_RUN_PATH
17774 hardcode_runpath_var=yes
17775 ld_shlibs_GCJ=yes
17776 fi
17777 ;;
17778
17779 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17780 no_undefined_flag_GCJ='${wl}-z,text'
17781 archive_cmds_need_lc_GCJ=no
17782 hardcode_shlibpath_var_GCJ=no
17783 runpath_var='LD_RUN_PATH'
17784
17785 if test "$GCC" = yes; then
17786 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17787 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17788 else
17789 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17790 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17791 fi
17792 ;;
17793
17794 sysv5* | sco3.2v5* | sco5v6*)
17795 # Note: We can NOT use -z defs as we might desire, because we do not
17796 # link with -lc, and that would cause any symbols used from libc to
17797 # always be unresolved, which means just about no library would
17798 # ever link correctly. If we're not using GNU ld we use -z text
17799 # though, which does catch some bad symbols but isn't as heavy-handed
17800 # as -z defs.
17801 no_undefined_flag_GCJ='${wl}-z,text'
17802 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17803 archive_cmds_need_lc_GCJ=no
17804 hardcode_shlibpath_var_GCJ=no
17805 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17806 hardcode_libdir_separator_GCJ=':'
17807 link_all_deplibs_GCJ=yes
17808 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17809 runpath_var='LD_RUN_PATH'
17810
17811 if test "$GCC" = yes; then
17812 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17813 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17814 else
17815 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17816 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17817 fi
17818 ;;
17819
17820 uts4*)
17821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17822 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17823 hardcode_shlibpath_var_GCJ=no
17824 ;;
17825
17826 *)
17827 ld_shlibs_GCJ=no
17828 ;;
17829 esac
17830 fi
17831
17832 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17833 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17834 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17835
17836 #
17837 # Do we need to explicitly link libc?
17838 #
17839 case "x$archive_cmds_need_lc_GCJ" in
17840 x|xyes)
17841 # Assume -lc should be added
17842 archive_cmds_need_lc_GCJ=yes
17843
17844 if test "$enable_shared" = yes && test "$GCC" = yes; then
17845 case $archive_cmds_GCJ in
17846 *'~'*)
17847 # FIXME: we may have to deal with multi-command sequences.
17848 ;;
17849 '$CC '*)
17850 # Test whether the compiler implicitly links with -lc since on some
17851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17852 # to ld, don't add -lc before -lgcc.
17853 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17854 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17855 $rm conftest*
17856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17857
17858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17859 (eval $ac_compile) 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } 2>conftest.err; then
17863 soname=conftest
17864 lib=conftest
17865 libobjs=conftest.$ac_objext
17866 deplibs=
17867 wl=$lt_prog_compiler_wl_GCJ
17868 pic_flag=$lt_prog_compiler_pic_GCJ
17869 compiler_flags=-v
17870 linker_flags=-v
17871 verstring=
17872 output_objdir=.
17873 libname=conftest
17874 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17875 allow_undefined_flag_GCJ=
17876 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17877 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }
17881 then
17882 archive_cmds_need_lc_GCJ=no
17883 else
17884 archive_cmds_need_lc_GCJ=yes
17885 fi
17886 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17887 else
17888 cat conftest.err 1>&5
17889 fi
17890 $rm conftest*
17891 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17892 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17893 ;;
17894 esac
17895 fi
17896 ;;
17897 esac
17898
17899 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17900 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17901 library_names_spec=
17902 libname_spec='lib$name'
17903 soname_spec=
17904 shrext_cmds=".so"
17905 postinstall_cmds=
17906 postuninstall_cmds=
17907 finish_cmds=
17908 finish_eval=
17909 shlibpath_var=
17910 shlibpath_overrides_runpath=unknown
17911 version_type=none
17912 dynamic_linker="$host_os ld.so"
17913 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17914
17915 need_lib_prefix=unknown
17916 hardcode_into_libs=no
17917
17918 # when you set need_version to no, make sure it does not cause -set_version
17919 # flags to be left without arguments
17920 need_version=unknown
17921
17922 case $host_os in
17923 aix3*)
17924 version_type=linux
17925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17926 shlibpath_var=LIBPATH
17927
17928 # AIX 3 has no versioning support, so we append a major version to the name.
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 ;;
17931
17932 aix4* | aix5*)
17933 version_type=linux
17934 need_lib_prefix=no
17935 need_version=no
17936 hardcode_into_libs=yes
17937 if test "$host_cpu" = ia64; then
17938 # AIX 5 supports IA64
17939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17940 shlibpath_var=LD_LIBRARY_PATH
17941 else
17942 # With GCC up to 2.95.x, collect2 would create an import file
17943 # for dependence libraries. The import file would start with
17944 # the line `#! .'. This would cause the generated library to
17945 # depend on `.', always an invalid library. This was fixed in
17946 # development snapshots of GCC prior to 3.0.
17947 case $host_os in
17948 aix4 | aix4.[01] | aix4.[01].*)
17949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17950 echo ' yes '
17951 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17952 :
17953 else
17954 can_build_shared=no
17955 fi
17956 ;;
17957 esac
17958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17959 # soname into executable. Probably we can add versioning support to
17960 # collect2, so additional links can be useful in future.
17961 if test "$aix_use_runtimelinking" = yes; then
17962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17963 # instead of lib<name>.a to let people know that these are not
17964 # typical AIX shared libraries.
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966 else
17967 # We preserve .a as extension for shared libraries through AIX4.2
17968 # and later when we are not doing run time linking.
17969 library_names_spec='${libname}${release}.a $libname.a'
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 fi
17972 shlibpath_var=LIBPATH
17973 fi
17974 ;;
17975
17976 amigaos*)
17977 library_names_spec='$libname.ixlibrary $libname.a'
17978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17979 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'
17980 ;;
17981
17982 beos*)
17983 library_names_spec='${libname}${shared_ext}'
17984 dynamic_linker="$host_os ld.so"
17985 shlibpath_var=LIBRARY_PATH
17986 ;;
17987
17988 bsdi[45]*)
17989 version_type=linux
17990 need_version=no
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17992 soname_spec='${libname}${release}${shared_ext}$major'
17993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17994 shlibpath_var=LD_LIBRARY_PATH
17995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17997 # the default ld.so.conf also contains /usr/contrib/lib and
17998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17999 # libtool to hard-code these into programs
18000 ;;
18001
18002 cygwin* | mingw* | pw32*)
18003 version_type=windows
18004 shrext_cmds=".dll"
18005 need_version=no
18006 need_lib_prefix=no
18007
18008 case $GCC,$host_os in
18009 yes,cygwin* | yes,mingw* | yes,pw32*)
18010 library_names_spec='$libname.dll.a'
18011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18012 postinstall_cmds='base_file=`basename \${file}`~
18013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18014 dldir=$destdir/`dirname \$dlpath`~
18015 test -d \$dldir || mkdir -p \$dldir~
18016 $install_prog $dir/$dlname \$dldir/$dlname~
18017 chmod a+x \$dldir/$dlname'
18018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18019 dlpath=$dir/\$dldll~
18020 $rm \$dlpath'
18021 shlibpath_overrides_runpath=yes
18022
18023 case $host_os in
18024 cygwin*)
18025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18027 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18028 ;;
18029 mingw*)
18030 # MinGW DLLs use traditional 'lib' prefix
18031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18033 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18034 # It is most probably a Windows format PATH printed by
18035 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18036 # path with ; separators, and with drive letters. We can handle the
18037 # drive letters (cygwin fileutils understands them), so leave them,
18038 # especially as we might pass files found there to a mingw objdump,
18039 # which wouldn't understand a cygwinified path. Ahh.
18040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18041 else
18042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18043 fi
18044 ;;
18045 pw32*)
18046 # pw32 DLLs use 'pw' prefix rather than 'lib'
18047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18048 ;;
18049 esac
18050 ;;
18051
18052 *)
18053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18054 ;;
18055 esac
18056 dynamic_linker='Win32 ld.exe'
18057 # FIXME: first we should search . and the directory the executable is in
18058 shlibpath_var=PATH
18059 ;;
18060
18061 darwin* | rhapsody*)
18062 dynamic_linker="$host_os dyld"
18063 version_type=darwin
18064 need_lib_prefix=no
18065 need_version=no
18066 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18067 soname_spec='${libname}${release}${major}$shared_ext'
18068 shlibpath_overrides_runpath=yes
18069 shlibpath_var=DYLD_LIBRARY_PATH
18070 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18071
18072 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18073 ;;
18074
18075 dgux*)
18076 version_type=linux
18077 need_lib_prefix=no
18078 need_version=no
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18080 soname_spec='${libname}${release}${shared_ext}$major'
18081 shlibpath_var=LD_LIBRARY_PATH
18082 ;;
18083
18084 freebsd1*)
18085 dynamic_linker=no
18086 ;;
18087
18088 freebsd* | dragonfly*)
18089 # DragonFly does not have aout. When/if they implement a new
18090 # versioning mechanism, adjust this.
18091 if test -x /usr/bin/objformat; then
18092 objformat=`/usr/bin/objformat`
18093 else
18094 case $host_os in
18095 freebsd[123]*) objformat=aout ;;
18096 *) objformat=elf ;;
18097 esac
18098 fi
18099 version_type=freebsd-$objformat
18100 case $version_type in
18101 freebsd-elf*)
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18103 need_version=no
18104 need_lib_prefix=no
18105 ;;
18106 freebsd-*)
18107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18108 need_version=yes
18109 ;;
18110 esac
18111 shlibpath_var=LD_LIBRARY_PATH
18112 case $host_os in
18113 freebsd2*)
18114 shlibpath_overrides_runpath=yes
18115 ;;
18116 freebsd3.[01]* | freebsdelf3.[01]*)
18117 shlibpath_overrides_runpath=yes
18118 hardcode_into_libs=yes
18119 ;;
18120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18122 shlibpath_overrides_runpath=no
18123 hardcode_into_libs=yes
18124 ;;
18125 *) # from 4.6 on, and DragonFly
18126 shlibpath_overrides_runpath=yes
18127 hardcode_into_libs=yes
18128 ;;
18129 esac
18130 ;;
18131
18132 gnu*)
18133 version_type=linux
18134 need_lib_prefix=no
18135 need_version=no
18136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18137 soname_spec='${libname}${release}${shared_ext}$major'
18138 shlibpath_var=LD_LIBRARY_PATH
18139 hardcode_into_libs=yes
18140 ;;
18141
18142 hpux9* | hpux10* | hpux11*)
18143 # Give a soname corresponding to the major version so that dld.sl refuses to
18144 # link against other versions.
18145 version_type=sunos
18146 need_lib_prefix=no
18147 need_version=no
18148 case $host_cpu in
18149 ia64*)
18150 shrext_cmds='.so'
18151 hardcode_into_libs=yes
18152 dynamic_linker="$host_os dld.so"
18153 shlibpath_var=LD_LIBRARY_PATH
18154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 if test "X$HPUX_IA64_MODE" = X32; then
18158 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18159 else
18160 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18161 fi
18162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18163 ;;
18164 hppa*64*)
18165 shrext_cmds='.sl'
18166 hardcode_into_libs=yes
18167 dynamic_linker="$host_os dld.sl"
18168 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171 soname_spec='${libname}${release}${shared_ext}$major'
18172 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18174 ;;
18175 *)
18176 shrext_cmds='.sl'
18177 dynamic_linker="$host_os dld.sl"
18178 shlibpath_var=SHLIB_PATH
18179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18182 ;;
18183 esac
18184 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18185 postinstall_cmds='chmod 555 $lib'
18186 ;;
18187
18188 interix[3-9]*)
18189 version_type=linux
18190 need_lib_prefix=no
18191 need_version=no
18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18193 soname_spec='${libname}${release}${shared_ext}$major'
18194 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18195 shlibpath_var=LD_LIBRARY_PATH
18196 shlibpath_overrides_runpath=no
18197 hardcode_into_libs=yes
18198 ;;
18199
18200 irix5* | irix6* | nonstopux*)
18201 case $host_os in
18202 nonstopux*) version_type=nonstopux ;;
18203 *)
18204 if test "$lt_cv_prog_gnu_ld" = yes; then
18205 version_type=linux
18206 else
18207 version_type=irix
18208 fi ;;
18209 esac
18210 need_lib_prefix=no
18211 need_version=no
18212 soname_spec='${libname}${release}${shared_ext}$major'
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18214 case $host_os in
18215 irix5* | nonstopux*)
18216 libsuff= shlibsuff=
18217 ;;
18218 *)
18219 case $LD in # libtool.m4 will add one of these switches to LD
18220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18221 libsuff= shlibsuff= libmagic=32-bit;;
18222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18223 libsuff=32 shlibsuff=N32 libmagic=N32;;
18224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18226 *) libsuff= shlibsuff= libmagic=never-match;;
18227 esac
18228 ;;
18229 esac
18230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18231 shlibpath_overrides_runpath=no
18232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18234 hardcode_into_libs=yes
18235 ;;
18236
18237 # No shared lib support for Linux oldld, aout, or coff.
18238 linux*oldld* | linux*aout* | linux*coff*)
18239 dynamic_linker=no
18240 ;;
18241
18242 # This must be Linux ELF.
18243 linux* | k*bsd*-gnu)
18244 version_type=linux
18245 need_lib_prefix=no
18246 need_version=no
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248 soname_spec='${libname}${release}${shared_ext}$major'
18249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18250 shlibpath_var=LD_LIBRARY_PATH
18251 shlibpath_overrides_runpath=no
18252 # This implies no fast_install, which is unacceptable.
18253 # Some rework will be needed to allow for fast_install
18254 # before this can be enabled.
18255 hardcode_into_libs=yes
18256 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18257 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18258
18259 # Append ld.so.conf contents to the search path
18260 if test -f /etc/ld.so.conf; then
18261 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18262 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18263 fi
18264
18265 # We used to test for /lib/ld.so.1 and disable shared libraries on
18266 # powerpc, because MkLinux only supported shared libraries with the
18267 # GNU dynamic linker. Since this was broken with cross compilers,
18268 # most powerpc-linux boxes support dynamic linking these days and
18269 # people can always --disable-shared, the test was removed, and we
18270 # assume the GNU/Linux dynamic linker is in use.
18271 dynamic_linker='GNU/Linux ld.so'
18272 ;;
18273
18274 netbsd*)
18275 version_type=sunos
18276 need_lib_prefix=no
18277 need_version=no
18278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18281 dynamic_linker='NetBSD (a.out) ld.so'
18282 else
18283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18284 soname_spec='${libname}${release}${shared_ext}$major'
18285 dynamic_linker='NetBSD ld.elf_so'
18286 fi
18287 shlibpath_var=LD_LIBRARY_PATH
18288 shlibpath_overrides_runpath=yes
18289 hardcode_into_libs=yes
18290 ;;
18291
18292 newsos6)
18293 version_type=linux
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18295 shlibpath_var=LD_LIBRARY_PATH
18296 shlibpath_overrides_runpath=yes
18297 ;;
18298
18299 nto-qnx*)
18300 version_type=linux
18301 need_lib_prefix=no
18302 need_version=no
18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18304 soname_spec='${libname}${release}${shared_ext}$major'
18305 shlibpath_var=LD_LIBRARY_PATH
18306 shlibpath_overrides_runpath=yes
18307 ;;
18308
18309 openbsd*)
18310 version_type=sunos
18311 sys_lib_dlsearch_path_spec="/usr/lib"
18312 need_lib_prefix=no
18313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18314 case $host_os in
18315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18316 *) need_version=no ;;
18317 esac
18318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18320 shlibpath_var=LD_LIBRARY_PATH
18321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18322 case $host_os in
18323 openbsd2.[89] | openbsd2.[89].*)
18324 shlibpath_overrides_runpath=no
18325 ;;
18326 *)
18327 shlibpath_overrides_runpath=yes
18328 ;;
18329 esac
18330 else
18331 shlibpath_overrides_runpath=yes
18332 fi
18333 ;;
18334
18335 os2*)
18336 libname_spec='$name'
18337 shrext_cmds=".dll"
18338 need_lib_prefix=no
18339 library_names_spec='$libname${shared_ext} $libname.a'
18340 dynamic_linker='OS/2 ld.exe'
18341 shlibpath_var=LIBPATH
18342 ;;
18343
18344 osf3* | osf4* | osf5*)
18345 version_type=osf
18346 need_lib_prefix=no
18347 need_version=no
18348 soname_spec='${libname}${release}${shared_ext}$major'
18349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18350 shlibpath_var=LD_LIBRARY_PATH
18351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18353 ;;
18354
18355 rdos*)
18356 dynamic_linker=no
18357 ;;
18358
18359 solaris*)
18360 version_type=linux
18361 need_lib_prefix=no
18362 need_version=no
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364 soname_spec='${libname}${release}${shared_ext}$major'
18365 shlibpath_var=LD_LIBRARY_PATH
18366 shlibpath_overrides_runpath=yes
18367 hardcode_into_libs=yes
18368 # ldd complains unless libraries are executable
18369 postinstall_cmds='chmod +x $lib'
18370 ;;
18371
18372 sunos4*)
18373 version_type=sunos
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18375 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 shlibpath_overrides_runpath=yes
18378 if test "$with_gnu_ld" = yes; then
18379 need_lib_prefix=no
18380 fi
18381 need_version=yes
18382 ;;
18383
18384 sysv4 | sysv4.3*)
18385 version_type=linux
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 soname_spec='${libname}${release}${shared_ext}$major'
18388 shlibpath_var=LD_LIBRARY_PATH
18389 case $host_vendor in
18390 sni)
18391 shlibpath_overrides_runpath=no
18392 need_lib_prefix=no
18393 export_dynamic_flag_spec='${wl}-Blargedynsym'
18394 runpath_var=LD_RUN_PATH
18395 ;;
18396 siemens)
18397 need_lib_prefix=no
18398 ;;
18399 motorola)
18400 need_lib_prefix=no
18401 need_version=no
18402 shlibpath_overrides_runpath=no
18403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18404 ;;
18405 esac
18406 ;;
18407
18408 sysv4*MP*)
18409 if test -d /usr/nec ;then
18410 version_type=linux
18411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18412 soname_spec='$libname${shared_ext}.$major'
18413 shlibpath_var=LD_LIBRARY_PATH
18414 fi
18415 ;;
18416
18417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18418 version_type=freebsd-elf
18419 need_lib_prefix=no
18420 need_version=no
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18422 soname_spec='${libname}${release}${shared_ext}$major'
18423 shlibpath_var=LD_LIBRARY_PATH
18424 hardcode_into_libs=yes
18425 if test "$with_gnu_ld" = yes; then
18426 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18427 shlibpath_overrides_runpath=no
18428 else
18429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18430 shlibpath_overrides_runpath=yes
18431 case $host_os in
18432 sco3.2v5*)
18433 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18434 ;;
18435 esac
18436 fi
18437 sys_lib_dlsearch_path_spec='/usr/lib'
18438 ;;
18439
18440 uts4*)
18441 version_type=linux
18442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443 soname_spec='${libname}${release}${shared_ext}$major'
18444 shlibpath_var=LD_LIBRARY_PATH
18445 ;;
18446
18447 *)
18448 dynamic_linker=no
18449 ;;
18450 esac
18451 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18452 echo "${ECHO_T}$dynamic_linker" >&6; }
18453 test "$dynamic_linker" = no && can_build_shared=no
18454
18455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18456 if test "$GCC" = yes; then
18457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18458 fi
18459
18460 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18461 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18462 hardcode_action_GCJ=
18463 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18464 test -n "$runpath_var_GCJ" || \
18465 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18466
18467 # We can hardcode non-existant directories.
18468 if test "$hardcode_direct_GCJ" != no &&
18469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18470 # have to relink, otherwise we might link with an installed library
18471 # when we should be linking with a yet-to-be-installed one
18472 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18473 test "$hardcode_minus_L_GCJ" != no; then
18474 # Linking always hardcodes the temporary library directory.
18475 hardcode_action_GCJ=relink
18476 else
18477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18478 hardcode_action_GCJ=immediate
18479 fi
18480 else
18481 # We cannot hardcode anything, or else we can only hardcode existing
18482 # directories.
18483 hardcode_action_GCJ=unsupported
18484 fi
18485 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18486 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18487
18488 if test "$hardcode_action_GCJ" = relink; then
18489 # Fast installation is not supported
18490 enable_fast_install=no
18491 elif test "$shlibpath_overrides_runpath" = yes ||
18492 test "$enable_shared" = no; then
18493 # Fast installation is not necessary
18494 enable_fast_install=needless
18495 fi
18496
18497
18498 # The else clause should only fire when bootstrapping the
18499 # libtool distribution, otherwise you forgot to ship ltmain.sh
18500 # with your package, and you will get complaints that there are
18501 # no rules to generate ltmain.sh.
18502 if test -f "$ltmain"; then
18503 # See if we are running on zsh, and set the options which allow our commands through
18504 # without removal of \ escapes.
18505 if test -n "${ZSH_VERSION+set}" ; then
18506 setopt NO_GLOB_SUBST
18507 fi
18508 # Now quote all the things that may contain metacharacters while being
18509 # careful not to overquote the AC_SUBSTed values. We take copies of the
18510 # variables and quote the copies for generation of the libtool script.
18511 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18512 SED SHELL STRIP \
18513 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18514 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18515 deplibs_check_method reload_flag reload_cmds need_locks \
18516 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18517 lt_cv_sys_global_symbol_to_c_name_address \
18518 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18519 old_postinstall_cmds old_postuninstall_cmds \
18520 compiler_GCJ \
18521 CC_GCJ \
18522 LD_GCJ \
18523 lt_prog_compiler_wl_GCJ \
18524 lt_prog_compiler_pic_GCJ \
18525 lt_prog_compiler_static_GCJ \
18526 lt_prog_compiler_no_builtin_flag_GCJ \
18527 export_dynamic_flag_spec_GCJ \
18528 thread_safe_flag_spec_GCJ \
18529 whole_archive_flag_spec_GCJ \
18530 enable_shared_with_static_runtimes_GCJ \
18531 old_archive_cmds_GCJ \
18532 old_archive_from_new_cmds_GCJ \
18533 predep_objects_GCJ \
18534 postdep_objects_GCJ \
18535 predeps_GCJ \
18536 postdeps_GCJ \
18537 compiler_lib_search_path_GCJ \
18538 archive_cmds_GCJ \
18539 archive_expsym_cmds_GCJ \
18540 postinstall_cmds_GCJ \
18541 postuninstall_cmds_GCJ \
18542 old_archive_from_expsyms_cmds_GCJ \
18543 allow_undefined_flag_GCJ \
18544 no_undefined_flag_GCJ \
18545 export_symbols_cmds_GCJ \
18546 hardcode_libdir_flag_spec_GCJ \
18547 hardcode_libdir_flag_spec_ld_GCJ \
18548 hardcode_libdir_separator_GCJ \
18549 hardcode_automatic_GCJ \
18550 module_cmds_GCJ \
18551 module_expsym_cmds_GCJ \
18552 lt_cv_prog_compiler_c_o_GCJ \
18553 fix_srcfile_path_GCJ \
18554 exclude_expsyms_GCJ \
18555 include_expsyms_GCJ; do
18556
18557 case $var in
18558 old_archive_cmds_GCJ | \
18559 old_archive_from_new_cmds_GCJ | \
18560 archive_cmds_GCJ | \
18561 archive_expsym_cmds_GCJ | \
18562 module_cmds_GCJ | \
18563 module_expsym_cmds_GCJ | \
18564 old_archive_from_expsyms_cmds_GCJ | \
18565 export_symbols_cmds_GCJ | \
18566 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18567 postinstall_cmds | postuninstall_cmds | \
18568 old_postinstall_cmds | old_postuninstall_cmds | \
18569 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18570 # Double-quote double-evaled strings.
18571 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18572 ;;
18573 *)
18574 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18575 ;;
18576 esac
18577 done
18578
18579 case $lt_echo in
18580 *'\$0 --fallback-echo"')
18581 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18582 ;;
18583 esac
18584
18585 cfgfile="$ofile"
18586
18587 cat <<__EOF__ >> "$cfgfile"
18588 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18589
18590 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18591
18592 # Shell to use when invoking shell scripts.
18593 SHELL=$lt_SHELL
18594
18595 # Whether or not to build shared libraries.
18596 build_libtool_libs=$enable_shared
18597
18598 # Whether or not to build static libraries.
18599 build_old_libs=$enable_static
18600
18601 # Whether or not to add -lc for building shared libraries.
18602 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18603
18604 # Whether or not to disallow shared libs when runtime libs are static
18605 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18606
18607 # Whether or not to optimize for fast installation.
18608 fast_install=$enable_fast_install
18609
18610 # The host system.
18611 host_alias=$host_alias
18612 host=$host
18613 host_os=$host_os
18614
18615 # The build system.
18616 build_alias=$build_alias
18617 build=$build
18618 build_os=$build_os
18619
18620 # An echo program that does not interpret backslashes.
18621 echo=$lt_echo
18622
18623 # The archiver.
18624 AR=$lt_AR
18625 AR_FLAGS=$lt_AR_FLAGS
18626
18627 # A C compiler.
18628 LTCC=$lt_LTCC
18629
18630 # LTCC compiler flags.
18631 LTCFLAGS=$lt_LTCFLAGS
18632
18633 # A language-specific compiler.
18634 CC=$lt_compiler_GCJ
18635
18636 # Is the compiler the GNU C compiler?
18637 with_gcc=$GCC_GCJ
18638
18639 # An ERE matcher.
18640 EGREP=$lt_EGREP
18641
18642 # The linker used to build libraries.
18643 LD=$lt_LD_GCJ
18644
18645 # Whether we need hard or soft links.
18646 LN_S=$lt_LN_S
18647
18648 # A BSD-compatible nm program.
18649 NM=$lt_NM
18650
18651 # A symbol stripping program
18652 STRIP=$lt_STRIP
18653
18654 # Used to examine libraries when file_magic_cmd begins "file"
18655 MAGIC_CMD=$MAGIC_CMD
18656
18657 # Used on cygwin: DLL creation program.
18658 DLLTOOL="$DLLTOOL"
18659
18660 # Used on cygwin: object dumper.
18661 OBJDUMP="$OBJDUMP"
18662
18663 # Used on cygwin: assembler.
18664 AS="$AS"
18665
18666 # The name of the directory that contains temporary libtool files.
18667 objdir=$objdir
18668
18669 # How to create reloadable object files.
18670 reload_flag=$lt_reload_flag
18671 reload_cmds=$lt_reload_cmds
18672
18673 # How to pass a linker flag through the compiler.
18674 wl=$lt_lt_prog_compiler_wl_GCJ
18675
18676 # Object file suffix (normally "o").
18677 objext="$ac_objext"
18678
18679 # Old archive suffix (normally "a").
18680 libext="$libext"
18681
18682 # Shared library suffix (normally ".so").
18683 shrext_cmds='$shrext_cmds'
18684
18685 # Executable file suffix (normally "").
18686 exeext="$exeext"
18687
18688 # Additional compiler flags for building library objects.
18689 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18690 pic_mode=$pic_mode
18691
18692 # What is the maximum length of a command?
18693 max_cmd_len=$lt_cv_sys_max_cmd_len
18694
18695 # Does compiler simultaneously support -c and -o options?
18696 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18697
18698 # Must we lock files when doing compilation?
18699 need_locks=$lt_need_locks
18700
18701 # Do we need the lib prefix for modules?
18702 need_lib_prefix=$need_lib_prefix
18703
18704 # Do we need a version for libraries?
18705 need_version=$need_version
18706
18707 # Whether dlopen is supported.
18708 dlopen_support=$enable_dlopen
18709
18710 # Whether dlopen of programs is supported.
18711 dlopen_self=$enable_dlopen_self
18712
18713 # Whether dlopen of statically linked programs is supported.
18714 dlopen_self_static=$enable_dlopen_self_static
18715
18716 # Compiler flag to prevent dynamic linking.
18717 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18718
18719 # Compiler flag to turn off builtin functions.
18720 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18721
18722 # Compiler flag to allow reflexive dlopens.
18723 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18724
18725 # Compiler flag to generate shared objects directly from archives.
18726 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18727
18728 # Compiler flag to generate thread-safe objects.
18729 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18730
18731 # Library versioning type.
18732 version_type=$version_type
18733
18734 # Format of library name prefix.
18735 libname_spec=$lt_libname_spec
18736
18737 # List of archive names. First name is the real one, the rest are links.
18738 # The last name is the one that the linker finds with -lNAME.
18739 library_names_spec=$lt_library_names_spec
18740
18741 # The coded name of the library, if different from the real name.
18742 soname_spec=$lt_soname_spec
18743
18744 # Commands used to build and install an old-style archive.
18745 RANLIB=$lt_RANLIB
18746 old_archive_cmds=$lt_old_archive_cmds_GCJ
18747 old_postinstall_cmds=$lt_old_postinstall_cmds
18748 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18749
18750 # Create an old-style archive from a shared archive.
18751 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18752
18753 # Create a temporary old-style archive to link instead of a shared archive.
18754 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18755
18756 # Commands used to build and install a shared archive.
18757 archive_cmds=$lt_archive_cmds_GCJ
18758 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18759 postinstall_cmds=$lt_postinstall_cmds
18760 postuninstall_cmds=$lt_postuninstall_cmds
18761
18762 # Commands used to build a loadable module (assumed same as above if empty)
18763 module_cmds=$lt_module_cmds_GCJ
18764 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18765
18766 # Commands to strip libraries.
18767 old_striplib=$lt_old_striplib
18768 striplib=$lt_striplib
18769
18770 # Dependencies to place before the objects being linked to create a
18771 # shared library.
18772 predep_objects=$lt_predep_objects_GCJ
18773
18774 # Dependencies to place after the objects being linked to create a
18775 # shared library.
18776 postdep_objects=$lt_postdep_objects_GCJ
18777
18778 # Dependencies to place before the objects being linked to create a
18779 # shared library.
18780 predeps=$lt_predeps_GCJ
18781
18782 # Dependencies to place after the objects being linked to create a
18783 # shared library.
18784 postdeps=$lt_postdeps_GCJ
18785
18786 # The library search path used internally by the compiler when linking
18787 # a shared library.
18788 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18789
18790 # Method to check whether dependent libraries are shared objects.
18791 deplibs_check_method=$lt_deplibs_check_method
18792
18793 # Command to use when deplibs_check_method == file_magic.
18794 file_magic_cmd=$lt_file_magic_cmd
18795
18796 # Flag that allows shared libraries with undefined symbols to be built.
18797 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18798
18799 # Flag that forces no undefined symbols.
18800 no_undefined_flag=$lt_no_undefined_flag_GCJ
18801
18802 # Commands used to finish a libtool library installation in a directory.
18803 finish_cmds=$lt_finish_cmds
18804
18805 # Same as above, but a single script fragment to be evaled but not shown.
18806 finish_eval=$lt_finish_eval
18807
18808 # Take the output of nm and produce a listing of raw symbols and C names.
18809 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18810
18811 # Transform the output of nm in a proper C declaration
18812 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18813
18814 # Transform the output of nm in a C name address pair
18815 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18816
18817 # This is the shared library runtime path variable.
18818 runpath_var=$runpath_var
18819
18820 # This is the shared library path variable.
18821 shlibpath_var=$shlibpath_var
18822
18823 # Is shlibpath searched before the hard-coded library search path?
18824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18825
18826 # How to hardcode a shared library path into an executable.
18827 hardcode_action=$hardcode_action_GCJ
18828
18829 # Whether we should hardcode library paths into libraries.
18830 hardcode_into_libs=$hardcode_into_libs
18831
18832 # Flag to hardcode \$libdir into a binary during linking.
18833 # This must work even if \$libdir does not exist.
18834 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18835
18836 # If ld is used when linking, flag to hardcode \$libdir into
18837 # a binary during linking. This must work even if \$libdir does
18838 # not exist.
18839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18840
18841 # Whether we need a single -rpath flag with a separated argument.
18842 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18843
18844 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18845 # resulting binary.
18846 hardcode_direct=$hardcode_direct_GCJ
18847
18848 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18849 # resulting binary.
18850 hardcode_minus_L=$hardcode_minus_L_GCJ
18851
18852 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18853 # the resulting binary.
18854 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18855
18856 # Set to yes if building a shared library automatically hardcodes DIR into the library
18857 # and all subsequent libraries and executables linked against it.
18858 hardcode_automatic=$hardcode_automatic_GCJ
18859
18860 # Variables whose values should be saved in libtool wrapper scripts and
18861 # restored at relink time.
18862 variables_saved_for_relink="$variables_saved_for_relink"
18863
18864 # Whether libtool must link a program against all its dependency libraries.
18865 link_all_deplibs=$link_all_deplibs_GCJ
18866
18867 # Compile-time system search path for libraries
18868 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18869
18870 # Run-time system search path for libraries
18871 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18872
18873 # Fix the shell variable \$srcfile for the compiler.
18874 fix_srcfile_path=$lt_fix_srcfile_path
18875
18876 # Set to yes if exported symbols are required.
18877 always_export_symbols=$always_export_symbols_GCJ
18878
18879 # The commands to list exported symbols.
18880 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18881
18882 # The commands to extract the exported symbol list from a shared archive.
18883 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18884
18885 # Symbols that should not be listed in the preloaded symbols.
18886 exclude_expsyms=$lt_exclude_expsyms_GCJ
18887
18888 # Symbols that must always be exported.
18889 include_expsyms=$lt_include_expsyms_GCJ
18890
18891 # ### END LIBTOOL TAG CONFIG: $tagname
18892
18893 __EOF__
18894
18895
18896 else
18897 # If there is no Makefile yet, we rely on a make rule to execute
18898 # `config.status --recheck' to rerun these tests and create the
18899 # libtool script then.
18900 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18901 if test -f "$ltmain_in"; then
18902 test -f Makefile && make "$ltmain"
18903 fi
18904 fi
18905
18906
18907 ac_ext=c
18908 ac_cpp='$CPP $CPPFLAGS'
18909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18912
18913 CC="$lt_save_CC"
18914
18915 else
18916 tagname=""
18917 fi
18918 ;;
18919
18920 RC)
18921
18922
18923 # Source file extension for RC test sources.
18924 ac_ext=rc
18925
18926 # Object file extension for compiled RC test sources.
18927 objext=o
18928 objext_RC=$objext
18929
18930 # Code to be used in simple compile tests
18931 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18932
18933 # Code to be used in simple link tests
18934 lt_simple_link_test_code="$lt_simple_compile_test_code"
18935
18936 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18937
18938 # If no C compiler was specified, use CC.
18939 LTCC=${LTCC-"$CC"}
18940
18941 # If no C compiler flags were specified, use CFLAGS.
18942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18943
18944 # Allow CC to be a program name with arguments.
18945 compiler=$CC
18946
18947
18948 # save warnings/boilerplate of simple test code
18949 ac_outfile=conftest.$ac_objext
18950 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18952 _lt_compiler_boilerplate=`cat conftest.err`
18953 $rm conftest*
18954
18955 ac_outfile=conftest.$ac_objext
18956 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18958 _lt_linker_boilerplate=`cat conftest.err`
18959 $rm conftest*
18960
18961
18962 # Allow CC to be a program name with arguments.
18963 lt_save_CC="$CC"
18964 CC=${RC-"windres"}
18965 compiler=$CC
18966 compiler_RC=$CC
18967 for cc_temp in $compiler""; do
18968 case $cc_temp in
18969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18971 \-*) ;;
18972 *) break;;
18973 esac
18974 done
18975 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18976
18977 lt_cv_prog_compiler_c_o_RC=yes
18978
18979 # The else clause should only fire when bootstrapping the
18980 # libtool distribution, otherwise you forgot to ship ltmain.sh
18981 # with your package, and you will get complaints that there are
18982 # no rules to generate ltmain.sh.
18983 if test -f "$ltmain"; then
18984 # See if we are running on zsh, and set the options which allow our commands through
18985 # without removal of \ escapes.
18986 if test -n "${ZSH_VERSION+set}" ; then
18987 setopt NO_GLOB_SUBST
18988 fi
18989 # Now quote all the things that may contain metacharacters while being
18990 # careful not to overquote the AC_SUBSTed values. We take copies of the
18991 # variables and quote the copies for generation of the libtool script.
18992 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18993 SED SHELL STRIP \
18994 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18995 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18996 deplibs_check_method reload_flag reload_cmds need_locks \
18997 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18998 lt_cv_sys_global_symbol_to_c_name_address \
18999 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19000 old_postinstall_cmds old_postuninstall_cmds \
19001 compiler_RC \
19002 CC_RC \
19003 LD_RC \
19004 lt_prog_compiler_wl_RC \
19005 lt_prog_compiler_pic_RC \
19006 lt_prog_compiler_static_RC \
19007 lt_prog_compiler_no_builtin_flag_RC \
19008 export_dynamic_flag_spec_RC \
19009 thread_safe_flag_spec_RC \
19010 whole_archive_flag_spec_RC \
19011 enable_shared_with_static_runtimes_RC \
19012 old_archive_cmds_RC \
19013 old_archive_from_new_cmds_RC \
19014 predep_objects_RC \
19015 postdep_objects_RC \
19016 predeps_RC \
19017 postdeps_RC \
19018 compiler_lib_search_path_RC \
19019 archive_cmds_RC \
19020 archive_expsym_cmds_RC \
19021 postinstall_cmds_RC \
19022 postuninstall_cmds_RC \
19023 old_archive_from_expsyms_cmds_RC \
19024 allow_undefined_flag_RC \
19025 no_undefined_flag_RC \
19026 export_symbols_cmds_RC \
19027 hardcode_libdir_flag_spec_RC \
19028 hardcode_libdir_flag_spec_ld_RC \
19029 hardcode_libdir_separator_RC \
19030 hardcode_automatic_RC \
19031 module_cmds_RC \
19032 module_expsym_cmds_RC \
19033 lt_cv_prog_compiler_c_o_RC \
19034 fix_srcfile_path_RC \
19035 exclude_expsyms_RC \
19036 include_expsyms_RC; do
19037
19038 case $var in
19039 old_archive_cmds_RC | \
19040 old_archive_from_new_cmds_RC | \
19041 archive_cmds_RC | \
19042 archive_expsym_cmds_RC | \
19043 module_cmds_RC | \
19044 module_expsym_cmds_RC | \
19045 old_archive_from_expsyms_cmds_RC | \
19046 export_symbols_cmds_RC | \
19047 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19048 postinstall_cmds | postuninstall_cmds | \
19049 old_postinstall_cmds | old_postuninstall_cmds | \
19050 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19051 # Double-quote double-evaled strings.
19052 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19053 ;;
19054 *)
19055 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19056 ;;
19057 esac
19058 done
19059
19060 case $lt_echo in
19061 *'\$0 --fallback-echo"')
19062 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19063 ;;
19064 esac
19065
19066 cfgfile="$ofile"
19067
19068 cat <<__EOF__ >> "$cfgfile"
19069 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19070
19071 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19072
19073 # Shell to use when invoking shell scripts.
19074 SHELL=$lt_SHELL
19075
19076 # Whether or not to build shared libraries.
19077 build_libtool_libs=$enable_shared
19078
19079 # Whether or not to build static libraries.
19080 build_old_libs=$enable_static
19081
19082 # Whether or not to add -lc for building shared libraries.
19083 build_libtool_need_lc=$archive_cmds_need_lc_RC
19084
19085 # Whether or not to disallow shared libs when runtime libs are static
19086 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19087
19088 # Whether or not to optimize for fast installation.
19089 fast_install=$enable_fast_install
19090
19091 # The host system.
19092 host_alias=$host_alias
19093 host=$host
19094 host_os=$host_os
19095
19096 # The build system.
19097 build_alias=$build_alias
19098 build=$build
19099 build_os=$build_os
19100
19101 # An echo program that does not interpret backslashes.
19102 echo=$lt_echo
19103
19104 # The archiver.
19105 AR=$lt_AR
19106 AR_FLAGS=$lt_AR_FLAGS
19107
19108 # A C compiler.
19109 LTCC=$lt_LTCC
19110
19111 # LTCC compiler flags.
19112 LTCFLAGS=$lt_LTCFLAGS
19113
19114 # A language-specific compiler.
19115 CC=$lt_compiler_RC
19116
19117 # Is the compiler the GNU C compiler?
19118 with_gcc=$GCC_RC
19119
19120 # An ERE matcher.
19121 EGREP=$lt_EGREP
19122
19123 # The linker used to build libraries.
19124 LD=$lt_LD_RC
19125
19126 # Whether we need hard or soft links.
19127 LN_S=$lt_LN_S
19128
19129 # A BSD-compatible nm program.
19130 NM=$lt_NM
19131
19132 # A symbol stripping program
19133 STRIP=$lt_STRIP
19134
19135 # Used to examine libraries when file_magic_cmd begins "file"
19136 MAGIC_CMD=$MAGIC_CMD
19137
19138 # Used on cygwin: DLL creation program.
19139 DLLTOOL="$DLLTOOL"
19140
19141 # Used on cygwin: object dumper.
19142 OBJDUMP="$OBJDUMP"
19143
19144 # Used on cygwin: assembler.
19145 AS="$AS"
19146
19147 # The name of the directory that contains temporary libtool files.
19148 objdir=$objdir
19149
19150 # How to create reloadable object files.
19151 reload_flag=$lt_reload_flag
19152 reload_cmds=$lt_reload_cmds
19153
19154 # How to pass a linker flag through the compiler.
19155 wl=$lt_lt_prog_compiler_wl_RC
19156
19157 # Object file suffix (normally "o").
19158 objext="$ac_objext"
19159
19160 # Old archive suffix (normally "a").
19161 libext="$libext"
19162
19163 # Shared library suffix (normally ".so").
19164 shrext_cmds='$shrext_cmds'
19165
19166 # Executable file suffix (normally "").
19167 exeext="$exeext"
19168
19169 # Additional compiler flags for building library objects.
19170 pic_flag=$lt_lt_prog_compiler_pic_RC
19171 pic_mode=$pic_mode
19172
19173 # What is the maximum length of a command?
19174 max_cmd_len=$lt_cv_sys_max_cmd_len
19175
19176 # Does compiler simultaneously support -c and -o options?
19177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19178
19179 # Must we lock files when doing compilation?
19180 need_locks=$lt_need_locks
19181
19182 # Do we need the lib prefix for modules?
19183 need_lib_prefix=$need_lib_prefix
19184
19185 # Do we need a version for libraries?
19186 need_version=$need_version
19187
19188 # Whether dlopen is supported.
19189 dlopen_support=$enable_dlopen
19190
19191 # Whether dlopen of programs is supported.
19192 dlopen_self=$enable_dlopen_self
19193
19194 # Whether dlopen of statically linked programs is supported.
19195 dlopen_self_static=$enable_dlopen_self_static
19196
19197 # Compiler flag to prevent dynamic linking.
19198 link_static_flag=$lt_lt_prog_compiler_static_RC
19199
19200 # Compiler flag to turn off builtin functions.
19201 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19202
19203 # Compiler flag to allow reflexive dlopens.
19204 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19205
19206 # Compiler flag to generate shared objects directly from archives.
19207 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19208
19209 # Compiler flag to generate thread-safe objects.
19210 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19211
19212 # Library versioning type.
19213 version_type=$version_type
19214
19215 # Format of library name prefix.
19216 libname_spec=$lt_libname_spec
19217
19218 # List of archive names. First name is the real one, the rest are links.
19219 # The last name is the one that the linker finds with -lNAME.
19220 library_names_spec=$lt_library_names_spec
19221
19222 # The coded name of the library, if different from the real name.
19223 soname_spec=$lt_soname_spec
19224
19225 # Commands used to build and install an old-style archive.
19226 RANLIB=$lt_RANLIB
19227 old_archive_cmds=$lt_old_archive_cmds_RC
19228 old_postinstall_cmds=$lt_old_postinstall_cmds
19229 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19230
19231 # Create an old-style archive from a shared archive.
19232 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19233
19234 # Create a temporary old-style archive to link instead of a shared archive.
19235 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19236
19237 # Commands used to build and install a shared archive.
19238 archive_cmds=$lt_archive_cmds_RC
19239 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19240 postinstall_cmds=$lt_postinstall_cmds
19241 postuninstall_cmds=$lt_postuninstall_cmds
19242
19243 # Commands used to build a loadable module (assumed same as above if empty)
19244 module_cmds=$lt_module_cmds_RC
19245 module_expsym_cmds=$lt_module_expsym_cmds_RC
19246
19247 # Commands to strip libraries.
19248 old_striplib=$lt_old_striplib
19249 striplib=$lt_striplib
19250
19251 # Dependencies to place before the objects being linked to create a
19252 # shared library.
19253 predep_objects=$lt_predep_objects_RC
19254
19255 # Dependencies to place after the objects being linked to create a
19256 # shared library.
19257 postdep_objects=$lt_postdep_objects_RC
19258
19259 # Dependencies to place before the objects being linked to create a
19260 # shared library.
19261 predeps=$lt_predeps_RC
19262
19263 # Dependencies to place after the objects being linked to create a
19264 # shared library.
19265 postdeps=$lt_postdeps_RC
19266
19267 # The library search path used internally by the compiler when linking
19268 # a shared library.
19269 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19270
19271 # Method to check whether dependent libraries are shared objects.
19272 deplibs_check_method=$lt_deplibs_check_method
19273
19274 # Command to use when deplibs_check_method == file_magic.
19275 file_magic_cmd=$lt_file_magic_cmd
19276
19277 # Flag that allows shared libraries with undefined symbols to be built.
19278 allow_undefined_flag=$lt_allow_undefined_flag_RC
19279
19280 # Flag that forces no undefined symbols.
19281 no_undefined_flag=$lt_no_undefined_flag_RC
19282
19283 # Commands used to finish a libtool library installation in a directory.
19284 finish_cmds=$lt_finish_cmds
19285
19286 # Same as above, but a single script fragment to be evaled but not shown.
19287 finish_eval=$lt_finish_eval
19288
19289 # Take the output of nm and produce a listing of raw symbols and C names.
19290 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19291
19292 # Transform the output of nm in a proper C declaration
19293 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19294
19295 # Transform the output of nm in a C name address pair
19296 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19297
19298 # This is the shared library runtime path variable.
19299 runpath_var=$runpath_var
19300
19301 # This is the shared library path variable.
19302 shlibpath_var=$shlibpath_var
19303
19304 # Is shlibpath searched before the hard-coded library search path?
19305 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19306
19307 # How to hardcode a shared library path into an executable.
19308 hardcode_action=$hardcode_action_RC
19309
19310 # Whether we should hardcode library paths into libraries.
19311 hardcode_into_libs=$hardcode_into_libs
19312
19313 # Flag to hardcode \$libdir into a binary during linking.
19314 # This must work even if \$libdir does not exist.
19315 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19316
19317 # If ld is used when linking, flag to hardcode \$libdir into
19318 # a binary during linking. This must work even if \$libdir does
19319 # not exist.
19320 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19321
19322 # Whether we need a single -rpath flag with a separated argument.
19323 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19324
19325 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19326 # resulting binary.
19327 hardcode_direct=$hardcode_direct_RC
19328
19329 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19330 # resulting binary.
19331 hardcode_minus_L=$hardcode_minus_L_RC
19332
19333 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19334 # the resulting binary.
19335 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19336
19337 # Set to yes if building a shared library automatically hardcodes DIR into the library
19338 # and all subsequent libraries and executables linked against it.
19339 hardcode_automatic=$hardcode_automatic_RC
19340
19341 # Variables whose values should be saved in libtool wrapper scripts and
19342 # restored at relink time.
19343 variables_saved_for_relink="$variables_saved_for_relink"
19344
19345 # Whether libtool must link a program against all its dependency libraries.
19346 link_all_deplibs=$link_all_deplibs_RC
19347
19348 # Compile-time system search path for libraries
19349 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19350
19351 # Run-time system search path for libraries
19352 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19353
19354 # Fix the shell variable \$srcfile for the compiler.
19355 fix_srcfile_path=$lt_fix_srcfile_path
19356
19357 # Set to yes if exported symbols are required.
19358 always_export_symbols=$always_export_symbols_RC
19359
19360 # The commands to list exported symbols.
19361 export_symbols_cmds=$lt_export_symbols_cmds_RC
19362
19363 # The commands to extract the exported symbol list from a shared archive.
19364 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19365
19366 # Symbols that should not be listed in the preloaded symbols.
19367 exclude_expsyms=$lt_exclude_expsyms_RC
19368
19369 # Symbols that must always be exported.
19370 include_expsyms=$lt_include_expsyms_RC
19371
19372 # ### END LIBTOOL TAG CONFIG: $tagname
19373
19374 __EOF__
19375
19376
19377 else
19378 # If there is no Makefile yet, we rely on a make rule to execute
19379 # `config.status --recheck' to rerun these tests and create the
19380 # libtool script then.
19381 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19382 if test -f "$ltmain_in"; then
19383 test -f Makefile && make "$ltmain"
19384 fi
19385 fi
19386
19387
19388 ac_ext=c
19389 ac_cpp='$CPP $CPPFLAGS'
19390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19393
19394 CC="$lt_save_CC"
19395
19396 ;;
19397
19398 *)
19399 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19400 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19401 { (exit 1); exit 1; }; }
19402 ;;
19403 esac
19404
19405 # Append the new tag name to the list of available tags.
19406 if test -n "$tagname" ; then
19407 available_tags="$available_tags $tagname"
19408 fi
19409 fi
19410 done
19411 IFS="$lt_save_ifs"
19412
19413 # Now substitute the updated list of available tags.
19414 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19415 mv "${ofile}T" "$ofile"
19416 chmod +x "$ofile"
19417 else
19418 rm -f "${ofile}T"
19419 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19420 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19421 { (exit 1); exit 1; }; }
19422 fi
19423 fi
19424
19425
19426
19427 # This can be used to rebuild libtool when needed
19428 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19429
19430 # Always use our own libtool.
19431 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19432
19433 # Prevent multiple expansion
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455 if test "$GCC" = yes
19456 then
19457 CFLAGS="-Wall $CFLAGS"
19458 fi
19459
19460 CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."
19461
19462
19463 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19464 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19465 if test "${ac_cv_header_stdc+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468 cat >conftest.$ac_ext <<_ACEOF
19469 /* confdefs.h. */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19474 #include <stdlib.h>
19475 #include <stdarg.h>
19476 #include <string.h>
19477 #include <float.h>
19478
19479 int
19480 main ()
19481 {
19482
19483 ;
19484 return 0;
19485 }
19486 _ACEOF
19487 rm -f conftest.$ac_objext
19488 if { (ac_try="$ac_compile"
19489 case "(($ac_try" in
19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19492 esac
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_compile") 2>conftest.er1
19495 ac_status=$?
19496 grep -v '^ *+' conftest.er1 >conftest.err
19497 rm -f conftest.er1
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } && {
19501 test -z "$ac_c_werror_flag" ||
19502 test ! -s conftest.err
19503 } && test -s conftest.$ac_objext; then
19504 ac_cv_header_stdc=yes
19505 else
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509 ac_cv_header_stdc=no
19510 fi
19511
19512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513
19514 if test $ac_cv_header_stdc = yes; then
19515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 #include <string.h>
19523
19524 _ACEOF
19525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19526 $EGREP "memchr" >/dev/null 2>&1; then
19527 :
19528 else
19529 ac_cv_header_stdc=no
19530 fi
19531 rm -f conftest*
19532
19533 fi
19534
19535 if test $ac_cv_header_stdc = yes; then
19536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 #include <stdlib.h>
19544
19545 _ACEOF
19546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19547 $EGREP "free" >/dev/null 2>&1; then
19548 :
19549 else
19550 ac_cv_header_stdc=no
19551 fi
19552 rm -f conftest*
19553
19554 fi
19555
19556 if test $ac_cv_header_stdc = yes; then
19557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19558 if test "$cross_compiling" = yes; then
19559 :
19560 else
19561 cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h. */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19567 #include <ctype.h>
19568 #include <stdlib.h>
19569 #if ((' ' & 0x0FF) == 0x020)
19570 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19571 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19572 #else
19573 # define ISLOWER(c) \
19574 (('a' <= (c) && (c) <= 'i') \
19575 || ('j' <= (c) && (c) <= 'r') \
19576 || ('s' <= (c) && (c) <= 'z'))
19577 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19578 #endif
19579
19580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19581 int
19582 main ()
19583 {
19584 int i;
19585 for (i = 0; i < 256; i++)
19586 if (XOR (islower (i), ISLOWER (i))
19587 || toupper (i) != TOUPPER (i))
19588 return 2;
19589 return 0;
19590 }
19591 _ACEOF
19592 rm -f conftest$ac_exeext
19593 if { (ac_try="$ac_link"
19594 case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_link") 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19603 { (case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_try") 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 :
19613 else
19614 echo "$as_me: program exited with status $ac_status" >&5
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618 ( exit $ac_status )
19619 ac_cv_header_stdc=no
19620 fi
19621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19622 fi
19623
19624
19625 fi
19626 fi
19627 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19628 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19629 if test $ac_cv_header_stdc = yes; then
19630
19631 cat >>confdefs.h <<\_ACEOF
19632 #define STDC_HEADERS 1
19633 _ACEOF
19634
19635 fi
19636
19637
19638 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19639 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19640 if test "${ac_cv_c_const+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643 cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h. */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19649
19650 int
19651 main ()
19652 {
19653 /* FIXME: Include the comments suggested by Paul. */
19654 #ifndef __cplusplus
19655 /* Ultrix mips cc rejects this. */
19656 typedef int charset[2];
19657 const charset cs;
19658 /* SunOS 4.1.1 cc rejects this. */
19659 char const *const *pcpcc;
19660 char **ppc;
19661 /* NEC SVR4.0.2 mips cc rejects this. */
19662 struct point {int x, y;};
19663 static struct point const zero = {0,0};
19664 /* AIX XL C 1.02.0.0 rejects this.
19665 It does not let you subtract one const X* pointer from another in
19666 an arm of an if-expression whose if-part is not a constant
19667 expression */
19668 const char *g = "string";
19669 pcpcc = &g + (g ? g-g : 0);
19670 /* HPUX 7.0 cc rejects these. */
19671 ++pcpcc;
19672 ppc = (char**) pcpcc;
19673 pcpcc = (char const *const *) ppc;
19674 { /* SCO 3.2v4 cc rejects this. */
19675 char *t;
19676 char const *s = 0 ? (char *) 0 : (char const *) 0;
19677
19678 *t++ = 0;
19679 if (s) return 0;
19680 }
19681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19682 int x[] = {25, 17};
19683 const int *foo = &x[0];
19684 ++foo;
19685 }
19686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19687 typedef const int *iptr;
19688 iptr p = 0;
19689 ++p;
19690 }
19691 { /* AIX XL C 1.02.0.0 rejects this saying
19692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19693 struct s { int j; const int *ap[3]; };
19694 struct s *b; b->j = 5;
19695 }
19696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19697 const int foo = 10;
19698 if (!foo) return 0;
19699 }
19700 return !cs[0] && !zero.x;
19701 #endif
19702
19703 ;
19704 return 0;
19705 }
19706 _ACEOF
19707 rm -f conftest.$ac_objext
19708 if { (ac_try="$ac_compile"
19709 case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } && {
19721 test -z "$ac_c_werror_flag" ||
19722 test ! -s conftest.err
19723 } && test -s conftest.$ac_objext; then
19724 ac_cv_c_const=yes
19725 else
19726 echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19728
19729 ac_cv_c_const=no
19730 fi
19731
19732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19733 fi
19734 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19735 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19736 if test $ac_cv_c_const = no; then
19737
19738 cat >>confdefs.h <<\_ACEOF
19739 #define const
19740 _ACEOF
19741
19742 fi
19743
19744 { echo "$as_me:$LINENO: checking for size_t" >&5
19745 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19746 if test "${ac_cv_type_size_t+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 else
19749 cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h. */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19755 $ac_includes_default
19756 typedef size_t ac__type_new_;
19757 int
19758 main ()
19759 {
19760 if ((ac__type_new_ *) 0)
19761 return 0;
19762 if (sizeof (ac__type_new_))
19763 return 0;
19764 ;
19765 return 0;
19766 }
19767 _ACEOF
19768 rm -f conftest.$ac_objext
19769 if { (ac_try="$ac_compile"
19770 case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19773 esac
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_compile") 2>conftest.er1
19776 ac_status=$?
19777 grep -v '^ *+' conftest.er1 >conftest.err
19778 rm -f conftest.er1
19779 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } && {
19782 test -z "$ac_c_werror_flag" ||
19783 test ! -s conftest.err
19784 } && test -s conftest.$ac_objext; then
19785 ac_cv_type_size_t=yes
19786 else
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790 ac_cv_type_size_t=no
19791 fi
19792
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19794 fi
19795 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19796 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19797 if test $ac_cv_type_size_t = yes; then
19798 :
19799 else
19800
19801 cat >>confdefs.h <<_ACEOF
19802 #define size_t unsigned int
19803 _ACEOF
19804
19805 fi
19806
19807
19808
19809
19810 TESTPROGS=""
19811
19812 hmac_list=""
19813
19814 hashlibs=""
19815 if test -d ${srcdir}/../md5
19816 then
19817 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
19818 hmac_list="$hmac_list &hmac_md5,"
19819 hashlibs="$hashlibs ../md5/libmd5.la"
19820 fi
19821
19822 if test -d ${srcdir}/../sha1
19823 then
19824 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
19825 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
19826 hashlibs="$hashlibs ../sha1/libsha1.la"
19827 fi
19828
19829
19830 hmac_list="$hmac_list 0"
19831
19832
19833
19834 cat >>confdefs.h <<_ACEOF
19835 #define HMAC_LIST $hmac_list
19836 _ACEOF
19837
19838
19839 ac_config_files="$ac_config_files Makefile"
19840
19841 cat >confcache <<\_ACEOF
19842 # This file is a shell script that caches the results of configure
19843 # tests run on this system so they can be shared between configure
19844 # scripts and configure runs, see configure's option --config-cache.
19845 # It is not useful on other systems. If it contains results you don't
19846 # want to keep, you may remove or edit it.
19847 #
19848 # config.status only pays attention to the cache file if you give it
19849 # the --recheck option to rerun configure.
19850 #
19851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19853 # following values.
19854
19855 _ACEOF
19856
19857 # The following way of writing the cache mishandles newlines in values,
19858 # but we know of no workaround that is simple, portable, and efficient.
19859 # So, we kill variables containing newlines.
19860 # Ultrix sh set writes to stderr and can't be redirected directly,
19861 # and sets the high bit in the cache file unless we assign to the vars.
19862 (
19863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19864 eval ac_val=\$$ac_var
19865 case $ac_val in #(
19866 *${as_nl}*)
19867 case $ac_var in #(
19868 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19869 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19870 esac
19871 case $ac_var in #(
19872 _ | IFS | as_nl) ;; #(
19873 *) $as_unset $ac_var ;;
19874 esac ;;
19875 esac
19876 done
19877
19878 (set) 2>&1 |
19879 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19880 *${as_nl}ac_space=\ *)
19881 # `set' does not quote correctly, so add quotes (double-quote
19882 # substitution turns \\\\ into \\, and sed turns \\ into \).
19883 sed -n \
19884 "s/'/'\\\\''/g;
19885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19886 ;; #(
19887 *)
19888 # `set' quotes correctly as required by POSIX, so do not add quotes.
19889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19890 ;;
19891 esac |
19892 sort
19893 ) |
19894 sed '
19895 /^ac_cv_env_/b end
19896 t clear
19897 :clear
19898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19899 t end
19900 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19901 :end' >>confcache
19902 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19903 if test -w "$cache_file"; then
19904 test "x$cache_file" != "x/dev/null" &&
19905 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19906 echo "$as_me: updating cache $cache_file" >&6;}
19907 cat confcache >$cache_file
19908 else
19909 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19910 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19911 fi
19912 fi
19913 rm -f confcache
19914
19915 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19916 # Let make expand exec_prefix.
19917 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19918
19919 DEFS=-DHAVE_CONFIG_H
19920
19921 ac_libobjs=
19922 ac_ltlibobjs=
19923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19924 # 1. Remove the extension, and $U if already installed.
19925 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19926 ac_i=`echo "$ac_i" | sed "$ac_script"`
19927 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19928 # will be set to the directory where LIBOBJS objects are built.
19929 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19930 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19931 done
19932 LIBOBJS=$ac_libobjs
19933
19934 LTLIBOBJS=$ac_ltlibobjs
19935
19936
19937 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19938 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19939 Usually this means the macro was only invoked conditionally." >&5
19940 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19941 Usually this means the macro was only invoked conditionally." >&2;}
19942 { (exit 1); exit 1; }; }
19943 fi
19944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19945 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19946 Usually this means the macro was only invoked conditionally." >&5
19947 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19948 Usually this means the macro was only invoked conditionally." >&2;}
19949 { (exit 1); exit 1; }; }
19950 fi
19951 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19952 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19953 Usually this means the macro was only invoked conditionally." >&5
19954 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19955 Usually this means the macro was only invoked conditionally." >&2;}
19956 { (exit 1); exit 1; }; }
19957 fi
19958
19959 : ${CONFIG_STATUS=./config.status}
19960 ac_clean_files_save=$ac_clean_files
19961 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19962 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19963 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19964 cat >$CONFIG_STATUS <<_ACEOF
19965 #! $SHELL
19966 # Generated by $as_me.
19967 # Run this file to recreate the current configuration.
19968 # Compiler output produced by configure, useful for debugging
19969 # configure, is in config.log if it exists.
19970
19971 debug=false
19972 ac_cs_recheck=false
19973 ac_cs_silent=false
19974 SHELL=\${CONFIG_SHELL-$SHELL}
19975 _ACEOF
19976
19977 cat >>$CONFIG_STATUS <<\_ACEOF
19978 ## --------------------- ##
19979 ## M4sh Initialization. ##
19980 ## --------------------- ##
19981
19982 # Be more Bourne compatible
19983 DUALCASE=1; export DUALCASE # for MKS sh
19984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19985 emulate sh
19986 NULLCMD=:
19987 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19988 # is contrary to our usage. Disable this feature.
19989 alias -g '${1+"$@"}'='"$@"'
19990 setopt NO_GLOB_SUBST
19991 else
19992 case `(set -o) 2>/dev/null` in
19993 *posix*) set -o posix ;;
19994 esac
19995
19996 fi
19997
19998
19999
20000
20001 # PATH needs CR
20002 # Avoid depending upon Character Ranges.
20003 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20004 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20005 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20006 as_cr_digits='0123456789'
20007 as_cr_alnum=$as_cr_Letters$as_cr_digits
20008
20009 # The user is always right.
20010 if test "${PATH_SEPARATOR+set}" != set; then
20011 echo "#! /bin/sh" >conf$$.sh
20012 echo "exit 0" >>conf$$.sh
20013 chmod +x conf$$.sh
20014 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20015 PATH_SEPARATOR=';'
20016 else
20017 PATH_SEPARATOR=:
20018 fi
20019 rm -f conf$$.sh
20020 fi
20021
20022 # Support unset when possible.
20023 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20024 as_unset=unset
20025 else
20026 as_unset=false
20027 fi
20028
20029
20030 # IFS
20031 # We need space, tab and new line, in precisely that order. Quoting is
20032 # there to prevent editors from complaining about space-tab.
20033 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20034 # splitting by setting IFS to empty value.)
20035 as_nl='
20036 '
20037 IFS=" "" $as_nl"
20038
20039 # Find who we are. Look in the path if we contain no directory separator.
20040 case $0 in
20041 *[\\/]* ) as_myself=$0 ;;
20042 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20043 for as_dir in $PATH
20044 do
20045 IFS=$as_save_IFS
20046 test -z "$as_dir" && as_dir=.
20047 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20048 done
20049 IFS=$as_save_IFS
20050
20051 ;;
20052 esac
20053 # We did not find ourselves, most probably we were run as `sh COMMAND'
20054 # in which case we are not to be found in the path.
20055 if test "x$as_myself" = x; then
20056 as_myself=$0
20057 fi
20058 if test ! -f "$as_myself"; then
20059 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20060 { (exit 1); exit 1; }
20061 fi
20062
20063 # Work around bugs in pre-3.0 UWIN ksh.
20064 for as_var in ENV MAIL MAILPATH
20065 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20066 done
20067 PS1='$ '
20068 PS2='> '
20069 PS4='+ '
20070
20071 # NLS nuisances.
20072 for as_var in \
20073 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20074 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20075 LC_TELEPHONE LC_TIME
20076 do
20077 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20078 eval $as_var=C; export $as_var
20079 else
20080 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20081 fi
20082 done
20083
20084 # Required to use basename.
20085 if expr a : '\(a\)' >/dev/null 2>&1 &&
20086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20087 as_expr=expr
20088 else
20089 as_expr=false
20090 fi
20091
20092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20093 as_basename=basename
20094 else
20095 as_basename=false
20096 fi
20097
20098
20099 # Name of the executable.
20100 as_me=`$as_basename -- "$0" ||
20101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20102 X"$0" : 'X\(//\)$' \| \
20103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20104 echo X/"$0" |
20105 sed '/^.*\/\([^/][^/]*\)\/*$/{
20106 s//\1/
20107 q
20108 }
20109 /^X\/\(\/\/\)$/{
20110 s//\1/
20111 q
20112 }
20113 /^X\/\(\/\).*/{
20114 s//\1/
20115 q
20116 }
20117 s/.*/./; q'`
20118
20119 # CDPATH.
20120 $as_unset CDPATH
20121
20122
20123
20124 as_lineno_1=$LINENO
20125 as_lineno_2=$LINENO
20126 test "x$as_lineno_1" != "x$as_lineno_2" &&
20127 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20128
20129 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20130 # uniformly replaced by the line number. The first 'sed' inserts a
20131 # line-number line after each line using $LINENO; the second 'sed'
20132 # does the real work. The second script uses 'N' to pair each
20133 # line-number line with the line containing $LINENO, and appends
20134 # trailing '-' during substitution so that $LINENO is not a special
20135 # case at line end.
20136 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20137 # scripts with optimization help from Paolo Bonzini. Blame Lee
20138 # E. McMahon (1931-1989) for sed's syntax. :-)
20139 sed -n '
20140 p
20141 /[$]LINENO/=
20142 ' <$as_myself |
20143 sed '
20144 s/[$]LINENO.*/&-/
20145 t lineno
20146 b
20147 :lineno
20148 N
20149 :loop
20150 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20151 t loop
20152 s/-\n.*//
20153 ' >$as_me.lineno &&
20154 chmod +x "$as_me.lineno" ||
20155 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20156 { (exit 1); exit 1; }; }
20157
20158 # Don't try to exec as it changes $[0], causing all sort of problems
20159 # (the dirname of $[0] is not the place where we might find the
20160 # original and so on. Autoconf is especially sensitive to this).
20161 . "./$as_me.lineno"
20162 # Exit status is that of the last command.
20163 exit
20164 }
20165
20166
20167 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20168 as_dirname=dirname
20169 else
20170 as_dirname=false
20171 fi
20172
20173 ECHO_C= ECHO_N= ECHO_T=
20174 case `echo -n x` in
20175 -n*)
20176 case `echo 'x\c'` in
20177 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20178 *) ECHO_C='\c';;
20179 esac;;
20180 *)
20181 ECHO_N='-n';;
20182 esac
20183
20184 if expr a : '\(a\)' >/dev/null 2>&1 &&
20185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20186 as_expr=expr
20187 else
20188 as_expr=false
20189 fi
20190
20191 rm -f conf$$ conf$$.exe conf$$.file
20192 if test -d conf$$.dir; then
20193 rm -f conf$$.dir/conf$$.file
20194 else
20195 rm -f conf$$.dir
20196 mkdir conf$$.dir
20197 fi
20198 echo >conf$$.file
20199 if ln -s conf$$.file conf$$ 2>/dev/null; then
20200 as_ln_s='ln -s'
20201 # ... but there are two gotchas:
20202 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20203 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20204 # In both cases, we have to default to `cp -p'.
20205 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20206 as_ln_s='cp -p'
20207 elif ln conf$$.file conf$$ 2>/dev/null; then
20208 as_ln_s=ln
20209 else
20210 as_ln_s='cp -p'
20211 fi
20212 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20213 rmdir conf$$.dir 2>/dev/null
20214
20215 if mkdir -p . 2>/dev/null; then
20216 as_mkdir_p=:
20217 else
20218 test -d ./-p && rmdir ./-p
20219 as_mkdir_p=false
20220 fi
20221
20222 if test -x / >/dev/null 2>&1; then
20223 as_test_x='test -x'
20224 else
20225 if ls -dL / >/dev/null 2>&1; then
20226 as_ls_L_option=L
20227 else
20228 as_ls_L_option=
20229 fi
20230 as_test_x='
20231 eval sh -c '\''
20232 if test -d "$1"; then
20233 test -d "$1/.";
20234 else
20235 case $1 in
20236 -*)set "./$1";;
20237 esac;
20238 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20239 ???[sx]*):;;*)false;;esac;fi
20240 '\'' sh
20241 '
20242 fi
20243 as_executable_p=$as_test_x
20244
20245 # Sed expression to map a string onto a valid CPP name.
20246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20247
20248 # Sed expression to map a string onto a valid variable name.
20249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20250
20251
20252 exec 6>&1
20253
20254 # Save the log message, to keep $[0] and so on meaningful, and to
20255 # report actual input values of CONFIG_FILES etc. instead of their
20256 # values after options handling.
20257 ac_log="
20258 This file was extended by libhmac $as_me 1.00, which was
20259 generated by GNU Autoconf 2.61. Invocation command line was
20260
20261 CONFIG_FILES = $CONFIG_FILES
20262 CONFIG_HEADERS = $CONFIG_HEADERS
20263 CONFIG_LINKS = $CONFIG_LINKS
20264 CONFIG_COMMANDS = $CONFIG_COMMANDS
20265 $ $0 $@
20266
20267 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20268 "
20269
20270 _ACEOF
20271
20272 cat >>$CONFIG_STATUS <<_ACEOF
20273 # Files that config.status was made for.
20274 config_files="$ac_config_files"
20275 config_headers="$ac_config_headers"
20276 config_commands="$ac_config_commands"
20277
20278 _ACEOF
20279
20280 cat >>$CONFIG_STATUS <<\_ACEOF
20281 ac_cs_usage="\
20282 \`$as_me' instantiates files from templates according to the
20283 current configuration.
20284
20285 Usage: $0 [OPTIONS] [FILE]...
20286
20287 -h, --help print this help, then exit
20288 -V, --version print version number and configuration settings, then exit
20289 -q, --quiet do not print progress messages
20290 -d, --debug don't remove temporary files
20291 --recheck update $as_me by reconfiguring in the same conditions
20292 --file=FILE[:TEMPLATE]
20293 instantiate the configuration file FILE
20294 --header=FILE[:TEMPLATE]
20295 instantiate the configuration header FILE
20296
20297 Configuration files:
20298 $config_files
20299
20300 Configuration headers:
20301 $config_headers
20302
20303 Configuration commands:
20304 $config_commands
20305
20306 Report bugs to <bug-autoconf@gnu.org>."
20307
20308 _ACEOF
20309 cat >>$CONFIG_STATUS <<_ACEOF
20310 ac_cs_version="\\
20311 libhmac config.status 1.00
20312 configured by $0, generated by GNU Autoconf 2.61,
20313 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20314
20315 Copyright (C) 2006 Free Software Foundation, Inc.
20316 This config.status script is free software; the Free Software Foundation
20317 gives unlimited permission to copy, distribute and modify it."
20318
20319 ac_pwd='$ac_pwd'
20320 srcdir='$srcdir'
20321 INSTALL='$INSTALL'
20322 MKDIR_P='$MKDIR_P'
20323 _ACEOF
20324
20325 cat >>$CONFIG_STATUS <<\_ACEOF
20326 # If no file are specified by the user, then we need to provide default
20327 # value. By we need to know if files were specified by the user.
20328 ac_need_defaults=:
20329 while test $# != 0
20330 do
20331 case $1 in
20332 --*=*)
20333 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20334 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20335 ac_shift=:
20336 ;;
20337 *)
20338 ac_option=$1
20339 ac_optarg=$2
20340 ac_shift=shift
20341 ;;
20342 esac
20343
20344 case $ac_option in
20345 # Handling of the options.
20346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20347 ac_cs_recheck=: ;;
20348 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20349 echo "$ac_cs_version"; exit ;;
20350 --debug | --debu | --deb | --de | --d | -d )
20351 debug=: ;;
20352 --file | --fil | --fi | --f )
20353 $ac_shift
20354 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20355 ac_need_defaults=false;;
20356 --header | --heade | --head | --hea )
20357 $ac_shift
20358 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20359 ac_need_defaults=false;;
20360 --he | --h)
20361 # Conflict between --help and --header
20362 { echo "$as_me: error: ambiguous option: $1
20363 Try \`$0 --help' for more information." >&2
20364 { (exit 1); exit 1; }; };;
20365 --help | --hel | -h )
20366 echo "$ac_cs_usage"; exit ;;
20367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20369 ac_cs_silent=: ;;
20370
20371 # This is an error.
20372 -*) { echo "$as_me: error: unrecognized option: $1
20373 Try \`$0 --help' for more information." >&2
20374 { (exit 1); exit 1; }; } ;;
20375
20376 *) ac_config_targets="$ac_config_targets $1"
20377 ac_need_defaults=false ;;
20378
20379 esac
20380 shift
20381 done
20382
20383 ac_configure_extra_args=
20384
20385 if $ac_cs_silent; then
20386 exec 6>/dev/null
20387 ac_configure_extra_args="$ac_configure_extra_args --silent"
20388 fi
20389
20390 _ACEOF
20391 cat >>$CONFIG_STATUS <<_ACEOF
20392 if \$ac_cs_recheck; then
20393 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20394 CONFIG_SHELL=$SHELL
20395 export CONFIG_SHELL
20396 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20397 fi
20398
20399 _ACEOF
20400 cat >>$CONFIG_STATUS <<\_ACEOF
20401 exec 5>>config.log
20402 {
20403 echo
20404 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20405 ## Running $as_me. ##
20406 _ASBOX
20407 echo "$ac_log"
20408 } >&5
20409
20410 _ACEOF
20411 cat >>$CONFIG_STATUS <<_ACEOF
20412 #
20413 # INIT-COMMANDS
20414 #
20415 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20416
20417 _ACEOF
20418
20419 cat >>$CONFIG_STATUS <<\_ACEOF
20420
20421 # Handling of arguments.
20422 for ac_config_target in $ac_config_targets
20423 do
20424 case $ac_config_target in
20425 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20426 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20427 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20428
20429 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20430 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20431 { (exit 1); exit 1; }; };;
20432 esac
20433 done
20434
20435
20436 # If the user did not use the arguments to specify the items to instantiate,
20437 # then the envvar interface is used. Set only those that are not.
20438 # We use the long form for the default assignment because of an extremely
20439 # bizarre bug on SunOS 4.1.3.
20440 if $ac_need_defaults; then
20441 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20442 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20443 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20444 fi
20445
20446 # Have a temporary directory for convenience. Make it in the build tree
20447 # simply because there is no reason against having it here, and in addition,
20448 # creating and moving files from /tmp can sometimes cause problems.
20449 # Hook for its removal unless debugging.
20450 # Note that there is a small window in which the directory will not be cleaned:
20451 # after its creation but before its name has been assigned to `$tmp'.
20452 $debug ||
20453 {
20454 tmp=
20455 trap 'exit_status=$?
20456 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20457 ' 0
20458 trap '{ (exit 1); exit 1; }' 1 2 13 15
20459 }
20460 # Create a (secure) tmp directory for tmp files.
20461
20462 {
20463 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20464 test -n "$tmp" && test -d "$tmp"
20465 } ||
20466 {
20467 tmp=./conf$$-$RANDOM
20468 (umask 077 && mkdir "$tmp")
20469 } ||
20470 {
20471 echo "$me: cannot create a temporary directory in ." >&2
20472 { (exit 1); exit 1; }
20473 }
20474
20475 #
20476 # Set up the sed scripts for CONFIG_FILES section.
20477 #
20478
20479 # No need to generate the scripts if there are no CONFIG_FILES.
20480 # This happens for instance when ./config.status config.h
20481 if test -n "$CONFIG_FILES"; then
20482
20483 _ACEOF
20484
20485
20486
20487 ac_delim='%!_!# '
20488 for ac_last_try in false false false false false :; do
20489 cat >conf$$subs.sed <<_ACEOF
20490 SHELL!$SHELL$ac_delim
20491 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20492 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20493 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20494 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20495 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20496 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20497 exec_prefix!$exec_prefix$ac_delim
20498 prefix!$prefix$ac_delim
20499 program_transform_name!$program_transform_name$ac_delim
20500 bindir!$bindir$ac_delim
20501 sbindir!$sbindir$ac_delim
20502 libexecdir!$libexecdir$ac_delim
20503 datarootdir!$datarootdir$ac_delim
20504 datadir!$datadir$ac_delim
20505 sysconfdir!$sysconfdir$ac_delim
20506 sharedstatedir!$sharedstatedir$ac_delim
20507 localstatedir!$localstatedir$ac_delim
20508 includedir!$includedir$ac_delim
20509 oldincludedir!$oldincludedir$ac_delim
20510 docdir!$docdir$ac_delim
20511 infodir!$infodir$ac_delim
20512 htmldir!$htmldir$ac_delim
20513 dvidir!$dvidir$ac_delim
20514 pdfdir!$pdfdir$ac_delim
20515 psdir!$psdir$ac_delim
20516 libdir!$libdir$ac_delim
20517 localedir!$localedir$ac_delim
20518 mandir!$mandir$ac_delim
20519 DEFS!$DEFS$ac_delim
20520 ECHO_C!$ECHO_C$ac_delim
20521 ECHO_N!$ECHO_N$ac_delim
20522 ECHO_T!$ECHO_T$ac_delim
20523 LIBS!$LIBS$ac_delim
20524 build_alias!$build_alias$ac_delim
20525 host_alias!$host_alias$ac_delim
20526 target_alias!$target_alias$ac_delim
20527 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20528 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20529 INSTALL_DATA!$INSTALL_DATA$ac_delim
20530 am__isrc!$am__isrc$ac_delim
20531 CYGPATH_W!$CYGPATH_W$ac_delim
20532 PACKAGE!$PACKAGE$ac_delim
20533 VERSION!$VERSION$ac_delim
20534 ACLOCAL!$ACLOCAL$ac_delim
20535 AUTOCONF!$AUTOCONF$ac_delim
20536 AUTOMAKE!$AUTOMAKE$ac_delim
20537 AUTOHEADER!$AUTOHEADER$ac_delim
20538 MAKEINFO!$MAKEINFO$ac_delim
20539 install_sh!$install_sh$ac_delim
20540 STRIP!$STRIP$ac_delim
20541 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20542 mkdir_p!$mkdir_p$ac_delim
20543 AWK!$AWK$ac_delim
20544 SET_MAKE!$SET_MAKE$ac_delim
20545 am__leading_dot!$am__leading_dot$ac_delim
20546 AMTAR!$AMTAR$ac_delim
20547 am__tar!$am__tar$ac_delim
20548 am__untar!$am__untar$ac_delim
20549 LN_S!$LN_S$ac_delim
20550 CC!$CC$ac_delim
20551 CFLAGS!$CFLAGS$ac_delim
20552 LDFLAGS!$LDFLAGS$ac_delim
20553 CPPFLAGS!$CPPFLAGS$ac_delim
20554 ac_ct_CC!$ac_ct_CC$ac_delim
20555 EXEEXT!$EXEEXT$ac_delim
20556 OBJEXT!$OBJEXT$ac_delim
20557 DEPDIR!$DEPDIR$ac_delim
20558 am__include!$am__include$ac_delim
20559 am__quote!$am__quote$ac_delim
20560 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20561 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20562 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20563 CCDEPMODE!$CCDEPMODE$ac_delim
20564 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20565 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20566 build!$build$ac_delim
20567 build_cpu!$build_cpu$ac_delim
20568 build_vendor!$build_vendor$ac_delim
20569 build_os!$build_os$ac_delim
20570 host!$host$ac_delim
20571 host_cpu!$host_cpu$ac_delim
20572 host_vendor!$host_vendor$ac_delim
20573 host_os!$host_os$ac_delim
20574 SED!$SED$ac_delim
20575 GREP!$GREP$ac_delim
20576 EGREP!$EGREP$ac_delim
20577 ECHO!$ECHO$ac_delim
20578 AR!$AR$ac_delim
20579 RANLIB!$RANLIB$ac_delim
20580 CPP!$CPP$ac_delim
20581 CXX!$CXX$ac_delim
20582 CXXFLAGS!$CXXFLAGS$ac_delim
20583 ac_ct_CXX!$ac_ct_CXX$ac_delim
20584 CXXDEPMODE!$CXXDEPMODE$ac_delim
20585 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20586 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20587 _ACEOF
20588
20589 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20590 break
20591 elif $ac_last_try; then
20592 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20593 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20594 { (exit 1); exit 1; }; }
20595 else
20596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20597 fi
20598 done
20599
20600 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20601 if test -n "$ac_eof"; then
20602 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20603 ac_eof=`expr $ac_eof + 1`
20604 fi
20605
20606 cat >>$CONFIG_STATUS <<_ACEOF
20607 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20608 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20609 _ACEOF
20610 sed '
20611 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20612 s/^/s,@/; s/!/@,|#_!!_#|/
20613 :n
20614 t n
20615 s/'"$ac_delim"'$/,g/; t
20616 s/$/\\/; p
20617 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20618 ' >>$CONFIG_STATUS <conf$$subs.sed
20619 rm -f conf$$subs.sed
20620 cat >>$CONFIG_STATUS <<_ACEOF
20621 CEOF$ac_eof
20622 _ACEOF
20623
20624
20625 ac_delim='%!_!# '
20626 for ac_last_try in false false false false false :; do
20627 cat >conf$$subs.sed <<_ACEOF
20628 CXXCPP!$CXXCPP$ac_delim
20629 F77!$F77$ac_delim
20630 FFLAGS!$FFLAGS$ac_delim
20631 ac_ct_F77!$ac_ct_F77$ac_delim
20632 LIBTOOL!$LIBTOOL$ac_delim
20633 hashlibs!$hashlibs$ac_delim
20634 TESTPROGS!$TESTPROGS$ac_delim
20635 LIBOBJS!$LIBOBJS$ac_delim
20636 LTLIBOBJS!$LTLIBOBJS$ac_delim
20637 _ACEOF
20638
20639 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
20640 break
20641 elif $ac_last_try; then
20642 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20643 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20644 { (exit 1); exit 1; }; }
20645 else
20646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20647 fi
20648 done
20649
20650 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20651 if test -n "$ac_eof"; then
20652 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20653 ac_eof=`expr $ac_eof + 1`
20654 fi
20655
20656 cat >>$CONFIG_STATUS <<_ACEOF
20657 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20659 _ACEOF
20660 sed '
20661 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20662 s/^/s,@/; s/!/@,|#_!!_#|/
20663 :n
20664 t n
20665 s/'"$ac_delim"'$/,g/; t
20666 s/$/\\/; p
20667 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20668 ' >>$CONFIG_STATUS <conf$$subs.sed
20669 rm -f conf$$subs.sed
20670 cat >>$CONFIG_STATUS <<_ACEOF
20671 :end
20672 s/|#_!!_#|//g
20673 CEOF$ac_eof
20674 _ACEOF
20675
20676
20677 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20678 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20679 # trailing colons and then remove the whole line if VPATH becomes empty
20680 # (actually we leave an empty line to preserve line numbers).
20681 if test "x$srcdir" = x.; then
20682 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20683 s/:*\$(srcdir):*/:/
20684 s/:*\${srcdir}:*/:/
20685 s/:*@srcdir@:*/:/
20686 s/^\([^=]*=[ ]*\):*/\1/
20687 s/:*$//
20688 s/^[^=]*=[ ]*$//
20689 }'
20690 fi
20691
20692 cat >>$CONFIG_STATUS <<\_ACEOF
20693 fi # test -n "$CONFIG_FILES"
20694
20695
20696 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20697 do
20698 case $ac_tag in
20699 :[FHLC]) ac_mode=$ac_tag; continue;;
20700 esac
20701 case $ac_mode$ac_tag in
20702 :[FHL]*:*);;
20703 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20704 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20705 { (exit 1); exit 1; }; };;
20706 :[FH]-) ac_tag=-:-;;
20707 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20708 esac
20709 ac_save_IFS=$IFS
20710 IFS=:
20711 set x $ac_tag
20712 IFS=$ac_save_IFS
20713 shift
20714 ac_file=$1
20715 shift
20716
20717 case $ac_mode in
20718 :L) ac_source=$1;;
20719 :[FH])
20720 ac_file_inputs=
20721 for ac_f
20722 do
20723 case $ac_f in
20724 -) ac_f="$tmp/stdin";;
20725 *) # Look for the file first in the build tree, then in the source tree
20726 # (if the path is not absolute). The absolute path cannot be DOS-style,
20727 # because $ac_f cannot contain `:'.
20728 test -f "$ac_f" ||
20729 case $ac_f in
20730 [\\/$]*) false;;
20731 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20732 esac ||
20733 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20734 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20735 { (exit 1); exit 1; }; };;
20736 esac
20737 ac_file_inputs="$ac_file_inputs $ac_f"
20738 done
20739
20740 # Let's still pretend it is `configure' which instantiates (i.e., don't
20741 # use $as_me), people would be surprised to read:
20742 # /* config.h. Generated by config.status. */
20743 configure_input="Generated from "`IFS=:
20744 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20745 if test x"$ac_file" != x-; then
20746 configure_input="$ac_file. $configure_input"
20747 { echo "$as_me:$LINENO: creating $ac_file" >&5
20748 echo "$as_me: creating $ac_file" >&6;}
20749 fi
20750
20751 case $ac_tag in
20752 *:-:* | *:-) cat >"$tmp/stdin";;
20753 esac
20754 ;;
20755 esac
20756
20757 ac_dir=`$as_dirname -- "$ac_file" ||
20758 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20759 X"$ac_file" : 'X\(//\)[^/]' \| \
20760 X"$ac_file" : 'X\(//\)$' \| \
20761 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20762 echo X"$ac_file" |
20763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20764 s//\1/
20765 q
20766 }
20767 /^X\(\/\/\)[^/].*/{
20768 s//\1/
20769 q
20770 }
20771 /^X\(\/\/\)$/{
20772 s//\1/
20773 q
20774 }
20775 /^X\(\/\).*/{
20776 s//\1/
20777 q
20778 }
20779 s/.*/./; q'`
20780 { as_dir="$ac_dir"
20781 case $as_dir in #(
20782 -*) as_dir=./$as_dir;;
20783 esac
20784 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20785 as_dirs=
20786 while :; do
20787 case $as_dir in #(
20788 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20789 *) as_qdir=$as_dir;;
20790 esac
20791 as_dirs="'$as_qdir' $as_dirs"
20792 as_dir=`$as_dirname -- "$as_dir" ||
20793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20794 X"$as_dir" : 'X\(//\)[^/]' \| \
20795 X"$as_dir" : 'X\(//\)$' \| \
20796 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20797 echo X"$as_dir" |
20798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20799 s//\1/
20800 q
20801 }
20802 /^X\(\/\/\)[^/].*/{
20803 s//\1/
20804 q
20805 }
20806 /^X\(\/\/\)$/{
20807 s//\1/
20808 q
20809 }
20810 /^X\(\/\).*/{
20811 s//\1/
20812 q
20813 }
20814 s/.*/./; q'`
20815 test -d "$as_dir" && break
20816 done
20817 test -z "$as_dirs" || eval "mkdir $as_dirs"
20818 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20819 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20820 { (exit 1); exit 1; }; }; }
20821 ac_builddir=.
20822
20823 case "$ac_dir" in
20824 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20825 *)
20826 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20827 # A ".." for each directory in $ac_dir_suffix.
20828 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20829 case $ac_top_builddir_sub in
20830 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20831 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20832 esac ;;
20833 esac
20834 ac_abs_top_builddir=$ac_pwd
20835 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20836 # for backward compatibility:
20837 ac_top_builddir=$ac_top_build_prefix
20838
20839 case $srcdir in
20840 .) # We are building in place.
20841 ac_srcdir=.
20842 ac_top_srcdir=$ac_top_builddir_sub
20843 ac_abs_top_srcdir=$ac_pwd ;;
20844 [\\/]* | ?:[\\/]* ) # Absolute name.
20845 ac_srcdir=$srcdir$ac_dir_suffix;
20846 ac_top_srcdir=$srcdir
20847 ac_abs_top_srcdir=$srcdir ;;
20848 *) # Relative name.
20849 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20850 ac_top_srcdir=$ac_top_build_prefix$srcdir
20851 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20852 esac
20853 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20854
20855
20856 case $ac_mode in
20857 :F)
20858 #
20859 # CONFIG_FILE
20860 #
20861
20862 case $INSTALL in
20863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20864 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20865 esac
20866 ac_MKDIR_P=$MKDIR_P
20867 case $MKDIR_P in
20868 [\\/$]* | ?:[\\/]* ) ;;
20869 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20870 esac
20871 _ACEOF
20872
20873 cat >>$CONFIG_STATUS <<\_ACEOF
20874 # If the template does not know about datarootdir, expand it.
20875 # FIXME: This hack should be removed a few years after 2.60.
20876 ac_datarootdir_hack=; ac_datarootdir_seen=
20877
20878 case `sed -n '/datarootdir/ {
20879 p
20880 q
20881 }
20882 /@datadir@/p
20883 /@docdir@/p
20884 /@infodir@/p
20885 /@localedir@/p
20886 /@mandir@/p
20887 ' $ac_file_inputs` in
20888 *datarootdir*) ac_datarootdir_seen=yes;;
20889 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20890 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20891 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20892 _ACEOF
20893 cat >>$CONFIG_STATUS <<_ACEOF
20894 ac_datarootdir_hack='
20895 s&@datadir@&$datadir&g
20896 s&@docdir@&$docdir&g
20897 s&@infodir@&$infodir&g
20898 s&@localedir@&$localedir&g
20899 s&@mandir@&$mandir&g
20900 s&\\\${datarootdir}&$datarootdir&g' ;;
20901 esac
20902 _ACEOF
20903
20904 # Neutralize VPATH when `$srcdir' = `.'.
20905 # Shell code in configure.ac might set extrasub.
20906 # FIXME: do we really want to maintain this feature?
20907 cat >>$CONFIG_STATUS <<_ACEOF
20908 sed "$ac_vpsub
20909 $extrasub
20910 _ACEOF
20911 cat >>$CONFIG_STATUS <<\_ACEOF
20912 :t
20913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20914 s&@configure_input@&$configure_input&;t t
20915 s&@top_builddir@&$ac_top_builddir_sub&;t t
20916 s&@srcdir@&$ac_srcdir&;t t
20917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20918 s&@top_srcdir@&$ac_top_srcdir&;t t
20919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20920 s&@builddir@&$ac_builddir&;t t
20921 s&@abs_builddir@&$ac_abs_builddir&;t t
20922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20923 s&@INSTALL@&$ac_INSTALL&;t t
20924 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20925 $ac_datarootdir_hack
20926 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20927
20928 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20929 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20930 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20931 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20932 which seems to be undefined. Please make sure it is defined." >&5
20933 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20934 which seems to be undefined. Please make sure it is defined." >&2;}
20935
20936 rm -f "$tmp/stdin"
20937 case $ac_file in
20938 -) cat "$tmp/out"; rm -f "$tmp/out";;
20939 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20940 esac
20941 ;;
20942 :H)
20943 #
20944 # CONFIG_HEADER
20945 #
20946 _ACEOF
20947
20948 # Transform confdefs.h into a sed script `conftest.defines', that
20949 # substitutes the proper values into config.h.in to produce config.h.
20950 rm -f conftest.defines conftest.tail
20951 # First, append a space to every undef/define line, to ease matching.
20952 echo 's/$/ /' >conftest.defines
20953 # Then, protect against being on the right side of a sed subst, or in
20954 # an unquoted here document, in config.status. If some macros were
20955 # called several times there might be several #defines for the same
20956 # symbol, which is useless. But do not sort them, since the last
20957 # AC_DEFINE must be honored.
20958 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20959 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20960 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20961 # PARAMS is the parameter list in the macro definition--in most cases, it's
20962 # just an empty string.
20963 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20964 ac_dB='\\)[ (].*,\\1define\\2'
20965 ac_dC=' '
20966 ac_dD=' ,'
20967
20968 uniq confdefs.h |
20969 sed -n '
20970 t rset
20971 :rset
20972 s/^[ ]*#[ ]*define[ ][ ]*//
20973 t ok
20974 d
20975 :ok
20976 s/[\\&,]/\\&/g
20977 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20978 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20979 ' >>conftest.defines
20980
20981 # Remove the space that was appended to ease matching.
20982 # Then replace #undef with comments. This is necessary, for
20983 # example, in the case of _POSIX_SOURCE, which is predefined and required
20984 # on some systems where configure will not decide to define it.
20985 # (The regexp can be short, since the line contains either #define or #undef.)
20986 echo 's/ $//
20987 s,^[ #]*u.*,/* & */,' >>conftest.defines
20988
20989 # Break up conftest.defines:
20990 ac_max_sed_lines=50
20991
20992 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20993 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20994 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20995 # et cetera.
20996 ac_in='$ac_file_inputs'
20997 ac_out='"$tmp/out1"'
20998 ac_nxt='"$tmp/out2"'
20999
21000 while :
21001 do
21002 # Write a here document:
21003 cat >>$CONFIG_STATUS <<_ACEOF
21004 # First, check the format of the line:
21005 cat >"\$tmp/defines.sed" <<\\CEOF
21006 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21007 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21008 b
21009 :def
21010 _ACEOF
21011 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21012 echo 'CEOF
21013 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21014 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21015 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21016 grep . conftest.tail >/dev/null || break
21017 rm -f conftest.defines
21018 mv conftest.tail conftest.defines
21019 done
21020 rm -f conftest.defines conftest.tail
21021
21022 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21023 cat >>$CONFIG_STATUS <<\_ACEOF
21024 if test x"$ac_file" != x-; then
21025 echo "/* $configure_input */" >"$tmp/config.h"
21026 cat "$ac_result" >>"$tmp/config.h"
21027 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21028 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21029 echo "$as_me: $ac_file is unchanged" >&6;}
21030 else
21031 rm -f $ac_file
21032 mv "$tmp/config.h" $ac_file
21033 fi
21034 else
21035 echo "/* $configure_input */"
21036 cat "$ac_result"
21037 fi
21038 rm -f "$tmp/out12"
21039 # Compute $ac_file's index in $config_headers.
21040 _am_arg=$ac_file
21041 _am_stamp_count=1
21042 for _am_header in $config_headers :; do
21043 case $_am_header in
21044 $_am_arg | $_am_arg:* )
21045 break ;;
21046 * )
21047 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21048 esac
21049 done
21050 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21051 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21052 X"$_am_arg" : 'X\(//\)[^/]' \| \
21053 X"$_am_arg" : 'X\(//\)$' \| \
21054 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21055 echo X"$_am_arg" |
21056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21057 s//\1/
21058 q
21059 }
21060 /^X\(\/\/\)[^/].*/{
21061 s//\1/
21062 q
21063 }
21064 /^X\(\/\/\)$/{
21065 s//\1/
21066 q
21067 }
21068 /^X\(\/\).*/{
21069 s//\1/
21070 q
21071 }
21072 s/.*/./; q'`/stamp-h$_am_stamp_count
21073 ;;
21074
21075 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21076 echo "$as_me: executing $ac_file commands" >&6;}
21077 ;;
21078 esac
21079
21080
21081 case $ac_file$ac_mode in
21082 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21083 # Strip MF so we end up with the name of the file.
21084 mf=`echo "$mf" | sed -e 's/:.*$//'`
21085 # Check whether this is an Automake generated Makefile or not.
21086 # We used to match only the files named `Makefile.in', but
21087 # some people rename them; so instead we look at the file content.
21088 # Grep'ing the first line is not enough: some people post-process
21089 # each Makefile.in and add a new line on top of each file to say so.
21090 # Grep'ing the whole file is not good either: AIX grep has a line
21091 # limit of 2048, but all sed's we know have understand at least 4000.
21092 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21093 dirpart=`$as_dirname -- "$mf" ||
21094 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21095 X"$mf" : 'X\(//\)[^/]' \| \
21096 X"$mf" : 'X\(//\)$' \| \
21097 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21098 echo X"$mf" |
21099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21100 s//\1/
21101 q
21102 }
21103 /^X\(\/\/\)[^/].*/{
21104 s//\1/
21105 q
21106 }
21107 /^X\(\/\/\)$/{
21108 s//\1/
21109 q
21110 }
21111 /^X\(\/\).*/{
21112 s//\1/
21113 q
21114 }
21115 s/.*/./; q'`
21116 else
21117 continue
21118 fi
21119 # Extract the definition of DEPDIR, am__include, and am__quote
21120 # from the Makefile without running `make'.
21121 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21122 test -z "$DEPDIR" && continue
21123 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21124 test -z "am__include" && continue
21125 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21126 # When using ansi2knr, U may be empty or an underscore; expand it
21127 U=`sed -n 's/^U = //p' < "$mf"`
21128 # Find all dependency output files, they are included files with
21129 # $(DEPDIR) in their names. We invoke sed twice because it is the
21130 # simplest approach to changing $(DEPDIR) to its actual value in the
21131 # expansion.
21132 for file in `sed -n "
21133 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21134 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21135 # Make sure the directory exists.
21136 test -f "$dirpart/$file" && continue
21137 fdir=`$as_dirname -- "$file" ||
21138 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21139 X"$file" : 'X\(//\)[^/]' \| \
21140 X"$file" : 'X\(//\)$' \| \
21141 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21142 echo X"$file" |
21143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21144 s//\1/
21145 q
21146 }
21147 /^X\(\/\/\)[^/].*/{
21148 s//\1/
21149 q
21150 }
21151 /^X\(\/\/\)$/{
21152 s//\1/
21153 q
21154 }
21155 /^X\(\/\).*/{
21156 s//\1/
21157 q
21158 }
21159 s/.*/./; q'`
21160 { as_dir=$dirpart/$fdir
21161 case $as_dir in #(
21162 -*) as_dir=./$as_dir;;
21163 esac
21164 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21165 as_dirs=
21166 while :; do
21167 case $as_dir in #(
21168 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21169 *) as_qdir=$as_dir;;
21170 esac
21171 as_dirs="'$as_qdir' $as_dirs"
21172 as_dir=`$as_dirname -- "$as_dir" ||
21173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21174 X"$as_dir" : 'X\(//\)[^/]' \| \
21175 X"$as_dir" : 'X\(//\)$' \| \
21176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21177 echo X"$as_dir" |
21178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21179 s//\1/
21180 q
21181 }
21182 /^X\(\/\/\)[^/].*/{
21183 s//\1/
21184 q
21185 }
21186 /^X\(\/\/\)$/{
21187 s//\1/
21188 q
21189 }
21190 /^X\(\/\).*/{
21191 s//\1/
21192 q
21193 }
21194 s/.*/./; q'`
21195 test -d "$as_dir" && break
21196 done
21197 test -z "$as_dirs" || eval "mkdir $as_dirs"
21198 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21199 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21200 { (exit 1); exit 1; }; }; }
21201 # echo "creating $dirpart/$file"
21202 echo '# dummy' > "$dirpart/$file"
21203 done
21204 done
21205 ;;
21206
21207 esac
21208 done # for ac_tag
21209
21210
21211 { (exit 0); exit 0; }
21212 _ACEOF
21213 chmod +x $CONFIG_STATUS
21214 ac_clean_files=$ac_clean_files_save
21215
21216
21217 # configure is writing to config.log, and then calls config.status.
21218 # config.status does its own redirection, appending to config.log.
21219 # Unfortunately, on DOS this fails, as config.log is still kept open
21220 # by configure, so config.status won't be able to write to it; its
21221 # output is simply discarded. So we exec the FD to /dev/null,
21222 # effectively closing config.log, so it can be properly (re)opened and
21223 # appended to by config.status. When coming back to configure, we
21224 # need to make the FD available again.
21225 if test "$no_create" != yes; then
21226 ac_cs_success=:
21227 ac_config_status_args=
21228 test "$silent" = yes &&
21229 ac_config_status_args="$ac_config_status_args --quiet"
21230 exec 5>/dev/null
21231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21232 exec 5>>config.log
21233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21234 # would make configure fail if this is the last instruction.
21235 $ac_cs_success || { (exit 1); exit 1; }
21236 fi
21237