Imported upstream version 0.60.1
[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 $as_executable_p "$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 recognise dependent libraries" >&5
4202 echo $ECHO_N "checking how to recognise 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 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4245 lt_cv_file_magic_cmd='$OBJDUMP -f'
4246 ;;
4247
4248 darwin* | rhapsody*)
4249 lt_cv_deplibs_check_method=pass_all
4250 ;;
4251
4252 freebsd* | kfreebsd*-gnu | dragonfly*)
4253 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4254 case $host_cpu in
4255 i*86 )
4256 # Not sure whether the presence of OpenBSD here was a mistake.
4257 # Let's accept both of them until this is cleared up.
4258 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4259 lt_cv_file_magic_cmd=/usr/bin/file
4260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4261 ;;
4262 esac
4263 else
4264 lt_cv_deplibs_check_method=pass_all
4265 fi
4266 ;;
4267
4268 gnu*)
4269 lt_cv_deplibs_check_method=pass_all
4270 ;;
4271
4272 hpux10.20* | hpux11*)
4273 lt_cv_file_magic_cmd=/usr/bin/file
4274 case $host_cpu in
4275 ia64*)
4276 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4277 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4278 ;;
4279 hppa*64*)
4280 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]'
4281 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4282 ;;
4283 *)
4284 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4286 ;;
4287 esac
4288 ;;
4289
4290 interix3*)
4291 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4293 ;;
4294
4295 irix5* | irix6* | nonstopux*)
4296 case $LD in
4297 *-32|*"-32 ") libmagic=32-bit;;
4298 *-n32|*"-n32 ") libmagic=N32;;
4299 *-64|*"-64 ") libmagic=64-bit;;
4300 *) libmagic=never-match;;
4301 esac
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305 # This must be Linux ELF.
4306 linux*)
4307 lt_cv_deplibs_check_method=pass_all
4308 ;;
4309
4310 netbsd*)
4311 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4313 else
4314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4315 fi
4316 ;;
4317
4318 newos6*)
4319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4320 lt_cv_file_magic_cmd=/usr/bin/file
4321 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4322 ;;
4323
4324 nto-qnx*)
4325 lt_cv_deplibs_check_method=unknown
4326 ;;
4327
4328 openbsd*)
4329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4331 else
4332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4333 fi
4334 ;;
4335
4336 osf3* | osf4* | osf5*)
4337 lt_cv_deplibs_check_method=pass_all
4338 ;;
4339
4340 solaris*)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343
4344 sysv4 | sysv4.3*)
4345 case $host_vendor in
4346 motorola)
4347 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]'
4348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4349 ;;
4350 ncr)
4351 lt_cv_deplibs_check_method=pass_all
4352 ;;
4353 sequent)
4354 lt_cv_file_magic_cmd='/bin/file'
4355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4356 ;;
4357 sni)
4358 lt_cv_file_magic_cmd='/bin/file'
4359 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4360 lt_cv_file_magic_test_file=/lib/libc.so
4361 ;;
4362 siemens)
4363 lt_cv_deplibs_check_method=pass_all
4364 ;;
4365 pc)
4366 lt_cv_deplibs_check_method=pass_all
4367 ;;
4368 esac
4369 ;;
4370
4371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4372 lt_cv_deplibs_check_method=pass_all
4373 ;;
4374 esac
4375
4376 fi
4377 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4378 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4379 file_magic_cmd=$lt_cv_file_magic_cmd
4380 deplibs_check_method=$lt_cv_deplibs_check_method
4381 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4382
4383
4384
4385
4386 # If no C compiler was specified, use CC.
4387 LTCC=${LTCC-"$CC"}
4388
4389 # If no C compiler flags were specified, use CFLAGS.
4390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4391
4392 # Allow CC to be a program name with arguments.
4393 compiler=$CC
4394
4395
4396 # Check whether --enable-libtool-lock was given.
4397 if test "${enable_libtool_lock+set}" = set; then
4398 enableval=$enable_libtool_lock;
4399 fi
4400
4401 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4402
4403 # Some flags need to be propagated to the compiler or linker for good
4404 # libtool support.
4405 case $host in
4406 ia64-*-hpux*)
4407 # Find out which ABI we are using.
4408 echo 'int i;' > conftest.$ac_ext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; then
4414 case `/usr/bin/file conftest.$ac_objext` in
4415 *ELF-32*)
4416 HPUX_IA64_MODE="32"
4417 ;;
4418 *ELF-64*)
4419 HPUX_IA64_MODE="64"
4420 ;;
4421 esac
4422 fi
4423 rm -rf conftest*
4424 ;;
4425 *-*-irix6*)
4426 # Find out which ABI we are using.
4427 echo '#line 4427 "configure"' > conftest.$ac_ext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; then
4433 if test "$lt_cv_prog_gnu_ld" = yes; then
4434 case `/usr/bin/file conftest.$ac_objext` in
4435 *32-bit*)
4436 LD="${LD-ld} -melf32bsmip"
4437 ;;
4438 *N32*)
4439 LD="${LD-ld} -melf32bmipn32"
4440 ;;
4441 *64-bit*)
4442 LD="${LD-ld} -melf64bmip"
4443 ;;
4444 esac
4445 else
4446 case `/usr/bin/file conftest.$ac_objext` in
4447 *32-bit*)
4448 LD="${LD-ld} -32"
4449 ;;
4450 *N32*)
4451 LD="${LD-ld} -n32"
4452 ;;
4453 *64-bit*)
4454 LD="${LD-ld} -64"
4455 ;;
4456 esac
4457 fi
4458 fi
4459 rm -rf conftest*
4460 ;;
4461
4462 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4463 # Find out which ABI we are using.
4464 echo 'int i;' > conftest.$ac_ext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466 (eval $ac_compile) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; then
4470 case `/usr/bin/file conftest.o` in
4471 *32-bit*)
4472 case $host in
4473 x86_64-*linux*)
4474 LD="${LD-ld} -m elf_i386"
4475 ;;
4476 ppc64-*linux*|powerpc64-*linux*)
4477 LD="${LD-ld} -m elf32ppclinux"
4478 ;;
4479 s390x-*linux*)
4480 LD="${LD-ld} -m elf_s390"
4481 ;;
4482 sparc64-*linux*)
4483 LD="${LD-ld} -m elf32_sparc"
4484 ;;
4485 esac
4486 ;;
4487 *64-bit*)
4488 case $host in
4489 x86_64-*linux*)
4490 LD="${LD-ld} -m elf_x86_64"
4491 ;;
4492 ppc*-*linux*|powerpc*-*linux*)
4493 LD="${LD-ld} -m elf64ppc"
4494 ;;
4495 s390*-*linux*)
4496 LD="${LD-ld} -m elf64_s390"
4497 ;;
4498 sparc*-*linux*)
4499 LD="${LD-ld} -m elf64_sparc"
4500 ;;
4501 esac
4502 ;;
4503 esac
4504 fi
4505 rm -rf conftest*
4506 ;;
4507
4508 *-*-sco3.2v5*)
4509 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4510 SAVE_CFLAGS="$CFLAGS"
4511 CFLAGS="$CFLAGS -belf"
4512 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4513 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4514 if test "${lt_cv_cc_needs_belf+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 ac_ext=c
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522
4523 cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h. */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529
4530 int
4531 main ()
4532 {
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (ac_try="$ac_link"
4540 case "(($ac_try" in
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4543 esac
4544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545 (eval "$ac_link") 2>conftest.er1
4546 ac_status=$?
4547 grep -v '^ *+' conftest.er1 >conftest.err
4548 rm -f conftest.er1
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && {
4552 test -z "$ac_c_werror_flag" ||
4553 test ! -s conftest.err
4554 } && test -s conftest$ac_exeext &&
4555 $as_test_x conftest$ac_exeext; then
4556 lt_cv_cc_needs_belf=yes
4557 else
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561 lt_cv_cc_needs_belf=no
4562 fi
4563
4564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4565 conftest$ac_exeext conftest.$ac_ext
4566 ac_ext=c
4567 ac_cpp='$CPP $CPPFLAGS'
4568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4571
4572 fi
4573 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4574 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4575 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4577 CFLAGS="$SAVE_CFLAGS"
4578 fi
4579 ;;
4580 sparc*-*solaris*)
4581 # Find out which ABI we are using.
4582 echo 'int i;' > conftest.$ac_ext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; then
4588 case `/usr/bin/file conftest.o` in
4589 *64-bit*)
4590 case $lt_cv_prog_gnu_ld in
4591 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4592 *) LD="${LD-ld} -64" ;;
4593 esac
4594 ;;
4595 esac
4596 fi
4597 rm -rf conftest*
4598 ;;
4599
4600
4601 esac
4602
4603 need_locks="$enable_libtool_lock"
4604
4605
4606 ac_ext=c
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4612 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4613 # On Suns, sometimes $CPP names a directory.
4614 if test -n "$CPP" && test -d "$CPP"; then
4615 CPP=
4616 fi
4617 if test -z "$CPP"; then
4618 if test "${ac_cv_prog_CPP+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621 # Double quotes because CPP needs to be expanded
4622 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4623 do
4624 ac_preproc_ok=false
4625 for ac_c_preproc_warn_flag in '' yes
4626 do
4627 # Use a header file that comes with gcc, so configuring glibc
4628 # with a fresh cross-compiler works.
4629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4630 # <limits.h> exists even on freestanding compilers.
4631 # On the NeXT, cc -E runs the code through the compiler's parser,
4632 # not just through cpp. "Syntax error" is here to catch this case.
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 #ifdef __STDC__
4640 # include <limits.h>
4641 #else
4642 # include <assert.h>
4643 #endif
4644 Syntax error
4645 _ACEOF
4646 if { (ac_try="$ac_cpp conftest.$ac_ext"
4647 case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } >/dev/null && {
4659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 }; then
4662 :
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 # Broken: fails on valid input.
4668 continue
4669 fi
4670
4671 rm -f conftest.err conftest.$ac_ext
4672
4673 # OK, works on sane cases. Now check whether nonexistent headers
4674 # can be detected and how.
4675 cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 #include <ac_nonexistent.h>
4682 _ACEOF
4683 if { (ac_try="$ac_cpp conftest.$ac_ext"
4684 case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4687 esac
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } >/dev/null && {
4696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4697 test ! -s conftest.err
4698 }; then
4699 # Broken: success on invalid input.
4700 continue
4701 else
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 # Passes both tests.
4706 ac_preproc_ok=:
4707 break
4708 fi
4709
4710 rm -f conftest.err conftest.$ac_ext
4711
4712 done
4713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4714 rm -f conftest.err conftest.$ac_ext
4715 if $ac_preproc_ok; then
4716 break
4717 fi
4718
4719 done
4720 ac_cv_prog_CPP=$CPP
4721
4722 fi
4723 CPP=$ac_cv_prog_CPP
4724 else
4725 ac_cv_prog_CPP=$CPP
4726 fi
4727 { echo "$as_me:$LINENO: result: $CPP" >&5
4728 echo "${ECHO_T}$CPP" >&6; }
4729 ac_preproc_ok=false
4730 for ac_c_preproc_warn_flag in '' yes
4731 do
4732 # Use a header file that comes with gcc, so configuring glibc
4733 # with a fresh cross-compiler works.
4734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4735 # <limits.h> exists even on freestanding compilers.
4736 # On the NeXT, cc -E runs the code through the compiler's parser,
4737 # not just through cpp. "Syntax error" is here to catch this case.
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 #ifdef __STDC__
4745 # include <limits.h>
4746 #else
4747 # include <assert.h>
4748 #endif
4749 Syntax error
4750 _ACEOF
4751 if { (ac_try="$ac_cpp conftest.$ac_ext"
4752 case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755 esac
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } >/dev/null && {
4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 }; then
4767 :
4768 else
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 # Broken: fails on valid input.
4773 continue
4774 fi
4775
4776 rm -f conftest.err conftest.$ac_ext
4777
4778 # OK, works on sane cases. Now check whether nonexistent headers
4779 # can be detected and how.
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #include <ac_nonexistent.h>
4787 _ACEOF
4788 if { (ac_try="$ac_cpp conftest.$ac_ext"
4789 case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792 esac
4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } >/dev/null && {
4801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 }; then
4804 # Broken: success on invalid input.
4805 continue
4806 else
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4809
4810 # Passes both tests.
4811 ac_preproc_ok=:
4812 break
4813 fi
4814
4815 rm -f conftest.err conftest.$ac_ext
4816
4817 done
4818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4819 rm -f conftest.err conftest.$ac_ext
4820 if $ac_preproc_ok; then
4821 :
4822 else
4823 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4824 See \`config.log' for more details." >&5
4825 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4826 See \`config.log' for more details." >&2;}
4827 { (exit 1); exit 1; }; }
4828 fi
4829
4830 ac_ext=c
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835
4836
4837 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4838 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4839 if test "${ac_cv_header_stdc+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #include <stdlib.h>
4849 #include <stdarg.h>
4850 #include <string.h>
4851 #include <float.h>
4852
4853 int
4854 main ()
4855 {
4856
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (ac_try="$ac_compile"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
4878 ac_cv_header_stdc=yes
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ac_cv_header_stdc=no
4884 fi
4885
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887
4888 if test $ac_cv_header_stdc = yes; then
4889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 #include <string.h>
4897
4898 _ACEOF
4899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4900 $EGREP "memchr" >/dev/null 2>&1; then
4901 :
4902 else
4903 ac_cv_header_stdc=no
4904 fi
4905 rm -f conftest*
4906
4907 fi
4908
4909 if test $ac_cv_header_stdc = yes; then
4910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #include <stdlib.h>
4918
4919 _ACEOF
4920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4921 $EGREP "free" >/dev/null 2>&1; then
4922 :
4923 else
4924 ac_cv_header_stdc=no
4925 fi
4926 rm -f conftest*
4927
4928 fi
4929
4930 if test $ac_cv_header_stdc = yes; then
4931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4932 if test "$cross_compiling" = yes; then
4933 :
4934 else
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 #include <ctype.h>
4942 #include <stdlib.h>
4943 #if ((' ' & 0x0FF) == 0x020)
4944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4946 #else
4947 # define ISLOWER(c) \
4948 (('a' <= (c) && (c) <= 'i') \
4949 || ('j' <= (c) && (c) <= 'r') \
4950 || ('s' <= (c) && (c) <= 'z'))
4951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4952 #endif
4953
4954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4955 int
4956 main ()
4957 {
4958 int i;
4959 for (i = 0; i < 256; i++)
4960 if (XOR (islower (i), ISLOWER (i))
4961 || toupper (i) != TOUPPER (i))
4962 return 2;
4963 return 0;
4964 }
4965 _ACEOF
4966 rm -f conftest$ac_exeext
4967 if { (ac_try="$ac_link"
4968 case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_link") 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4977 { (case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_try") 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 :
4987 else
4988 echo "$as_me: program exited with status $ac_status" >&5
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 ( exit $ac_status )
4993 ac_cv_header_stdc=no
4994 fi
4995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4996 fi
4997
4998
4999 fi
5000 fi
5001 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5002 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5003 if test $ac_cv_header_stdc = yes; then
5004
5005 cat >>confdefs.h <<\_ACEOF
5006 #define STDC_HEADERS 1
5007 _ACEOF
5008
5009 fi
5010
5011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5022 inttypes.h stdint.h unistd.h
5023 do
5024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h. */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_includes_default
5037
5038 #include <$ac_header>
5039 _ACEOF
5040 rm -f conftest.$ac_objext
5041 if { (ac_try="$ac_compile"
5042 case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045 esac
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_compile") 2>conftest.er1
5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest.$ac_objext; then
5057 eval "$as_ac_Header=yes"
5058 else
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5061
5062 eval "$as_ac_Header=no"
5063 fi
5064
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 fi
5067 ac_res=`eval echo '${'$as_ac_Header'}'`
5068 { echo "$as_me:$LINENO: result: $ac_res" >&5
5069 echo "${ECHO_T}$ac_res" >&6; }
5070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5071 cat >>confdefs.h <<_ACEOF
5072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5073 _ACEOF
5074
5075 fi
5076
5077 done
5078
5079
5080
5081 for ac_header in dlfcn.h
5082 do
5083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 fi
5090 ac_res=`eval echo '${'$as_ac_Header'}'`
5091 { echo "$as_me:$LINENO: result: $ac_res" >&5
5092 echo "${ECHO_T}$ac_res" >&6; }
5093 else
5094 # Is the header compilable?
5095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h. */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 $ac_includes_default
5104 #include <$ac_header>
5105 _ACEOF
5106 rm -f conftest.$ac_objext
5107 if { (ac_try="$ac_compile"
5108 case "(($ac_try" in
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5111 esac
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_compile") 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && {
5120 test -z "$ac_c_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest.$ac_objext; then
5123 ac_header_compiler=yes
5124 else
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 ac_header_compiler=no
5129 fi
5130
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5133 echo "${ECHO_T}$ac_header_compiler" >&6; }
5134
5135 # Is the header present?
5136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 #include <$ac_header>
5145 _ACEOF
5146 if { (ac_try="$ac_cpp conftest.$ac_ext"
5147 case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5150 esac
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } >/dev/null && {
5159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5160 test ! -s conftest.err
5161 }; then
5162 ac_header_preproc=yes
5163 else
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5166
5167 ac_header_preproc=no
5168 fi
5169
5170 rm -f conftest.err conftest.$ac_ext
5171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5172 echo "${ECHO_T}$ac_header_preproc" >&6; }
5173
5174 # So? What about this header?
5175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5176 yes:no: )
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5181 ac_header_preproc=yes
5182 ;;
5183 no:yes:* )
5184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5196 ( cat <<\_ASBOX
5197 ## -------------------------------------------------- ##
5198 ## Report this to courier-users@lists.sourceforge.net ##
5199 ## -------------------------------------------------- ##
5200 _ASBOX
5201 ) | sed "s/^/$as_me: WARNING: /" >&2
5202 ;;
5203 esac
5204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209 eval "$as_ac_Header=\$ac_header_preproc"
5210 fi
5211 ac_res=`eval echo '${'$as_ac_Header'}'`
5212 { echo "$as_me:$LINENO: result: $ac_res" >&5
5213 echo "${ECHO_T}$ac_res" >&6; }
5214
5215 fi
5216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5217 cat >>confdefs.h <<_ACEOF
5218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5219 _ACEOF
5220
5221 fi
5222
5223 done
5224
5225 ac_ext=cpp
5226 ac_cpp='$CXXCPP $CPPFLAGS'
5227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5230 if test -z "$CXX"; then
5231 if test -n "$CCC"; then
5232 CXX=$CCC
5233 else
5234 if test -n "$ac_tool_prefix"; then
5235 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5236 do
5237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5241 if test "${ac_cv_prog_CXX+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 if test -n "$CXX"; then
5245 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5257 fi
5258 done
5259 done
5260 IFS=$as_save_IFS
5261
5262 fi
5263 fi
5264 CXX=$ac_cv_prog_CXX
5265 if test -n "$CXX"; then
5266 { echo "$as_me:$LINENO: result: $CXX" >&5
5267 echo "${ECHO_T}$CXX" >&6; }
5268 else
5269 { echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6; }
5271 fi
5272
5273
5274 test -n "$CXX" && break
5275 done
5276 fi
5277 if test -z "$CXX"; then
5278 ac_ct_CXX=$CXX
5279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5280 do
5281 # Extract the first word of "$ac_prog", so it can be a program name with args.
5282 set dummy $ac_prog; ac_word=$2
5283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5285 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288 if test -n "$ac_ct_CXX"; then
5289 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_ac_ct_CXX="$ac_prog"
5299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5301 fi
5302 done
5303 done
5304 IFS=$as_save_IFS
5305
5306 fi
5307 fi
5308 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5309 if test -n "$ac_ct_CXX"; then
5310 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5311 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5312 else
5313 { echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6; }
5315 fi
5316
5317
5318 test -n "$ac_ct_CXX" && break
5319 done
5320
5321 if test "x$ac_ct_CXX" = x; then
5322 CXX="g++"
5323 else
5324 case $cross_compiling:$ac_tool_warned in
5325 yes:)
5326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5327 whose name does not start with the host triplet. If you think this
5328 configuration is useful to you, please write to autoconf@gnu.org." >&5
5329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5330 whose name does not start with the host triplet. If you think this
5331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5332 ac_tool_warned=yes ;;
5333 esac
5334 CXX=$ac_ct_CXX
5335 fi
5336 fi
5337
5338 fi
5339 fi
5340 # Provide some information about the compiler.
5341 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5342 ac_compiler=`set X $ac_compile; echo $2`
5343 { (ac_try="$ac_compiler --version >&5"
5344 case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347 esac
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compiler --version >&5") 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }
5353 { (ac_try="$ac_compiler -v >&5"
5354 case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5357 esac
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_compiler -v >&5") 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }
5363 { (ac_try="$ac_compiler -V >&5"
5364 case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367 esac
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_compiler -V >&5") 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }
5373
5374 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5375 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5376 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385
5386 int
5387 main ()
5388 {
5389 #ifndef __GNUC__
5390 choke me
5391 #endif
5392
5393 ;
5394 return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5399 case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402 esac
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_cxx_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest.$ac_objext; then
5414 ac_compiler_gnu=yes
5415 else
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5418
5419 ac_compiler_gnu=no
5420 fi
5421
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5424
5425 fi
5426 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5427 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5428 GXX=`test $ac_compiler_gnu = yes && echo yes`
5429 ac_test_CXXFLAGS=${CXXFLAGS+set}
5430 ac_save_CXXFLAGS=$CXXFLAGS
5431 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5432 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5433 if test "${ac_cv_prog_cxx_g+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5437 ac_cxx_werror_flag=yes
5438 ac_cv_prog_cxx_g=no
5439 CXXFLAGS="-g"
5440 cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446
5447 int
5448 main ()
5449 {
5450
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 rm -f conftest.$ac_objext
5456 if { (ac_try="$ac_compile"
5457 case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460 esac
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_compile") 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_cxx_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.$ac_objext; then
5472 ac_cv_prog_cxx_g=yes
5473 else
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 CXXFLAGS=""
5478 cat >conftest.$ac_ext <<_ACEOF
5479 /* confdefs.h. */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5484
5485 int
5486 main ()
5487 {
5488
5489 ;
5490 return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (ac_try="$ac_compile"
5495 case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5498 esac
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_cxx_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 :
5511 else
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5516 CXXFLAGS="-g"
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523
5524 int
5525 main ()
5526 {
5527
5528 ;
5529 return 0;
5530 }
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (ac_try="$ac_compile"
5534 case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537 esac
5538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_compile") 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } && {
5546 test -z "$ac_cxx_werror_flag" ||
5547 test ! -s conftest.err
5548 } && test -s conftest.$ac_objext; then
5549 ac_cv_prog_cxx_g=yes
5550 else
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554
5555 fi
5556
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 fi
5559
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 fi
5562
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5565 fi
5566 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5567 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5568 if test "$ac_test_CXXFLAGS" = set; then
5569 CXXFLAGS=$ac_save_CXXFLAGS
5570 elif test $ac_cv_prog_cxx_g = yes; then
5571 if test "$GXX" = yes; then
5572 CXXFLAGS="-g -O2"
5573 else
5574 CXXFLAGS="-g"
5575 fi
5576 else
5577 if test "$GXX" = yes; then
5578 CXXFLAGS="-O2"
5579 else
5580 CXXFLAGS=
5581 fi
5582 fi
5583 ac_ext=cpp
5584 ac_cpp='$CXXCPP $CPPFLAGS'
5585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5588
5589 depcc="$CXX" am_compiler_list=
5590
5591 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5592 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5593 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 else
5596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5597 # We make a subdir and do the tests there. Otherwise we can end up
5598 # making bogus files that we don't know about and never remove. For
5599 # instance it was reported that on HP-UX the gcc test will end up
5600 # making a dummy file named `D' -- because `-MD' means `put the output
5601 # in D'.
5602 mkdir conftest.dir
5603 # Copy depcomp to subdir because otherwise we won't find it if we're
5604 # using a relative directory.
5605 cp "$am_depcomp" conftest.dir
5606 cd conftest.dir
5607 # We will build objects and dependencies in a subdirectory because
5608 # it helps to detect inapplicable dependency modes. For instance
5609 # both Tru64's cc and ICC support -MD to output dependencies as a
5610 # side effect of compilation, but ICC will put the dependencies in
5611 # the current directory while Tru64 will put them in the object
5612 # directory.
5613 mkdir sub
5614
5615 am_cv_CXX_dependencies_compiler_type=none
5616 if test "$am_compiler_list" = ""; then
5617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5618 fi
5619 for depmode in $am_compiler_list; do
5620 # Setup a source with many dependencies, because some compilers
5621 # like to wrap large dependency lists on column 80 (with \), and
5622 # we should not choose a depcomp mode which is confused by this.
5623 #
5624 # We need to recreate these files for each test, as the compiler may
5625 # overwrite some of them when testing with obscure command lines.
5626 # This happens at least with the AIX C compiler.
5627 : > sub/conftest.c
5628 for i in 1 2 3 4 5 6; do
5629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5631 # Solaris 8's {/usr,}/bin/sh.
5632 touch sub/conftst$i.h
5633 done
5634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5635
5636 case $depmode in
5637 nosideeffect)
5638 # after this tag, mechanisms are not by side-effect, so they'll
5639 # only be used when explicitly requested
5640 if test "x$enable_dependency_tracking" = xyes; then
5641 continue
5642 else
5643 break
5644 fi
5645 ;;
5646 none) break ;;
5647 esac
5648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5649 # mode. It turns out that the SunPro C++ compiler does not properly
5650 # handle `-M -o', and we need to detect this.
5651 if depmode=$depmode \
5652 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5654 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5655 >/dev/null 2>conftest.err &&
5656 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5657 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5658 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5659 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5660 # icc doesn't choke on unknown options, it will just issue warnings
5661 # or remarks (even with -Werror). So we grep stderr for any message
5662 # that says an option was ignored or not supported.
5663 # When given -MP, icc 7.0 and 7.1 complain thusly:
5664 # icc: Command line warning: ignoring option '-M'; no argument required
5665 # The diagnosis changed in icc 8.0:
5666 # icc: Command line remark: option '-MP' not supported
5667 if (grep 'ignoring option' conftest.err ||
5668 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5669 am_cv_CXX_dependencies_compiler_type=$depmode
5670 break
5671 fi
5672 fi
5673 done
5674
5675 cd ..
5676 rm -rf conftest.dir
5677 else
5678 am_cv_CXX_dependencies_compiler_type=none
5679 fi
5680
5681 fi
5682 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5683 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5684 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5685
5686 if
5687 test "x$enable_dependency_tracking" != xno \
5688 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5689 am__fastdepCXX_TRUE=
5690 am__fastdepCXX_FALSE='#'
5691 else
5692 am__fastdepCXX_TRUE='#'
5693 am__fastdepCXX_FALSE=
5694 fi
5695
5696
5697
5698
5699 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5700 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5701 (test "X$CXX" != "Xg++"))) ; then
5702 ac_ext=cpp
5703 ac_cpp='$CXXCPP $CPPFLAGS'
5704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5707 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5708 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5709 if test -z "$CXXCPP"; then
5710 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713 # Double quotes because CXXCPP needs to be expanded
5714 for CXXCPP in "$CXX -E" "/lib/cpp"
5715 do
5716 ac_preproc_ok=false
5717 for ac_cxx_preproc_warn_flag in '' yes
5718 do
5719 # Use a header file that comes with gcc, so configuring glibc
5720 # with a fresh cross-compiler works.
5721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 # <limits.h> exists even on freestanding compilers.
5723 # On the NeXT, cc -E runs the code through the compiler's parser,
5724 # not just through cpp. "Syntax error" is here to catch this case.
5725 cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h. */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #ifdef __STDC__
5732 # include <limits.h>
5733 #else
5734 # include <assert.h>
5735 #endif
5736 Syntax error
5737 _ACEOF
5738 if { (ac_try="$ac_cpp conftest.$ac_ext"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } >/dev/null && {
5751 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5752 test ! -s conftest.err
5753 }; then
5754 :
5755 else
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 # Broken: fails on valid input.
5760 continue
5761 fi
5762
5763 rm -f conftest.err conftest.$ac_ext
5764
5765 # OK, works on sane cases. Now check whether nonexistent headers
5766 # can be detected and how.
5767 cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h. */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 #include <ac_nonexistent.h>
5774 _ACEOF
5775 if { (ac_try="$ac_cpp conftest.$ac_ext"
5776 case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } >/dev/null && {
5788 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5789 test ! -s conftest.err
5790 }; then
5791 # Broken: success on invalid input.
5792 continue
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797 # Passes both tests.
5798 ac_preproc_ok=:
5799 break
5800 fi
5801
5802 rm -f conftest.err conftest.$ac_ext
5803
5804 done
5805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5806 rm -f conftest.err conftest.$ac_ext
5807 if $ac_preproc_ok; then
5808 break
5809 fi
5810
5811 done
5812 ac_cv_prog_CXXCPP=$CXXCPP
5813
5814 fi
5815 CXXCPP=$ac_cv_prog_CXXCPP
5816 else
5817 ac_cv_prog_CXXCPP=$CXXCPP
5818 fi
5819 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5820 echo "${ECHO_T}$CXXCPP" >&6; }
5821 ac_preproc_ok=false
5822 for ac_cxx_preproc_warn_flag in '' yes
5823 do
5824 # Use a header file that comes with gcc, so configuring glibc
5825 # with a fresh cross-compiler works.
5826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5827 # <limits.h> exists even on freestanding compilers.
5828 # On the NeXT, cc -E runs the code through the compiler's parser,
5829 # not just through cpp. "Syntax error" is here to catch this case.
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 #ifdef __STDC__
5837 # include <limits.h>
5838 #else
5839 # include <assert.h>
5840 #endif
5841 Syntax error
5842 _ACEOF
5843 if { (ac_try="$ac_cpp conftest.$ac_ext"
5844 case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } >/dev/null && {
5856 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5857 test ! -s conftest.err
5858 }; then
5859 :
5860 else
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 # Broken: fails on valid input.
5865 continue
5866 fi
5867
5868 rm -f conftest.err conftest.$ac_ext
5869
5870 # OK, works on sane cases. Now check whether nonexistent headers
5871 # can be detected and how.
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878 #include <ac_nonexistent.h>
5879 _ACEOF
5880 if { (ac_try="$ac_cpp conftest.$ac_ext"
5881 case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884 esac
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } >/dev/null && {
5893 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5894 test ! -s conftest.err
5895 }; then
5896 # Broken: success on invalid input.
5897 continue
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5901
5902 # Passes both tests.
5903 ac_preproc_ok=:
5904 break
5905 fi
5906
5907 rm -f conftest.err conftest.$ac_ext
5908
5909 done
5910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5911 rm -f conftest.err conftest.$ac_ext
5912 if $ac_preproc_ok; then
5913 :
5914 else
5915 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5916 See \`config.log' for more details." >&5
5917 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5918 See \`config.log' for more details." >&2;}
5919 { (exit 1); exit 1; }; }
5920 fi
5921
5922 ac_ext=cpp
5923 ac_cpp='$CXXCPP $CPPFLAGS'
5924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5927
5928 fi
5929
5930
5931 ac_ext=f
5932 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5933 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5934 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5935 if test -n "$ac_tool_prefix"; then
5936 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
5937 do
5938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5942 if test "${ac_cv_prog_F77+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 if test -n "$F77"; then
5946 ac_cv_prog_F77="$F77" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5955 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5958 fi
5959 done
5960 done
5961 IFS=$as_save_IFS
5962
5963 fi
5964 fi
5965 F77=$ac_cv_prog_F77
5966 if test -n "$F77"; then
5967 { echo "$as_me:$LINENO: result: $F77" >&5
5968 echo "${ECHO_T}$F77" >&6; }
5969 else
5970 { echo "$as_me:$LINENO: result: no" >&5
5971 echo "${ECHO_T}no" >&6; }
5972 fi
5973
5974
5975 test -n "$F77" && break
5976 done
5977 fi
5978 if test -z "$F77"; then
5979 ac_ct_F77=$F77
5980 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
5981 do
5982 # Extract the first word of "$ac_prog", so it can be a program name with args.
5983 set dummy $ac_prog; ac_word=$2
5984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989 if test -n "$ac_ct_F77"; then
5990 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_ac_ct_F77="$ac_prog"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6010 if test -n "$ac_ct_F77"; then
6011 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6012 echo "${ECHO_T}$ac_ct_F77" >&6; }
6013 else
6014 { echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6; }
6016 fi
6017
6018
6019 test -n "$ac_ct_F77" && break
6020 done
6021
6022 if test "x$ac_ct_F77" = x; then
6023 F77=""
6024 else
6025 case $cross_compiling:$ac_tool_warned in
6026 yes:)
6027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6028 whose name does not start with the host triplet. If you think this
6029 configuration is useful to you, please write to autoconf@gnu.org." >&5
6030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6031 whose name does not start with the host triplet. If you think this
6032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6033 ac_tool_warned=yes ;;
6034 esac
6035 F77=$ac_ct_F77
6036 fi
6037 fi
6038
6039
6040 # Provide some information about the compiler.
6041 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6042 ac_compiler=`set X $ac_compile; echo $2`
6043 { (ac_try="$ac_compiler --version >&5"
6044 case "(($ac_try" in
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_compiler --version >&5") 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }
6053 { (ac_try="$ac_compiler -v >&5"
6054 case "(($ac_try" in
6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6057 esac
6058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6059 (eval "$ac_compiler -v >&5") 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }
6063 { (ac_try="$ac_compiler -V >&5"
6064 case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067 esac
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_compiler -V >&5") 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }
6073 rm -f a.out
6074
6075 # If we don't use `.F' as extension, the preprocessor is not run on the
6076 # input file. (Note that this only needs to work for GNU compilers.)
6077 ac_save_ext=$ac_ext
6078 ac_ext=F
6079 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6080 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6081 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 cat >conftest.$ac_ext <<_ACEOF
6085 program main
6086 #ifndef __GNUC__
6087 choke me
6088 #endif
6089
6090 end
6091 _ACEOF
6092 rm -f conftest.$ac_objext
6093 if { (ac_try="$ac_compile"
6094 case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097 esac
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_compile") 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_f77_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.$ac_objext; then
6109 ac_compiler_gnu=yes
6110 else
6111 echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6113
6114 ac_compiler_gnu=no
6115 fi
6116
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6119
6120 fi
6121 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6122 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6123 ac_ext=$ac_save_ext
6124 ac_test_FFLAGS=${FFLAGS+set}
6125 ac_save_FFLAGS=$FFLAGS
6126 FFLAGS=
6127 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6128 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6129 if test "${ac_cv_prog_f77_g+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 FFLAGS=-g
6133 cat >conftest.$ac_ext <<_ACEOF
6134 program main
6135
6136 end
6137 _ACEOF
6138 rm -f conftest.$ac_objext
6139 if { (ac_try="$ac_compile"
6140 case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_compile") 2>conftest.er1
6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } && {
6152 test -z "$ac_f77_werror_flag" ||
6153 test ! -s conftest.err
6154 } && test -s conftest.$ac_objext; then
6155 ac_cv_prog_f77_g=yes
6156 else
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160 ac_cv_prog_f77_g=no
6161 fi
6162
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164
6165 fi
6166 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6167 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6168 if test "$ac_test_FFLAGS" = set; then
6169 FFLAGS=$ac_save_FFLAGS
6170 elif test $ac_cv_prog_f77_g = yes; then
6171 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6172 FFLAGS="-g -O2"
6173 else
6174 FFLAGS="-g"
6175 fi
6176 else
6177 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6178 FFLAGS="-O2"
6179 else
6180 FFLAGS=
6181 fi
6182 fi
6183
6184 G77=`test $ac_compiler_gnu = yes && echo yes`
6185 ac_ext=c
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190
6191
6192
6193 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6194
6195 # find the maximum length of command line arguments
6196 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6197 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6198 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201 i=0
6202 teststring="ABCD"
6203
6204 case $build_os in
6205 msdosdjgpp*)
6206 # On DJGPP, this test can blow up pretty badly due to problems in libc
6207 # (any single argument exceeding 2000 bytes causes a buffer overrun
6208 # during glob expansion). Even if it were fixed, the result of this
6209 # check would be larger than it should be.
6210 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6211 ;;
6212
6213 gnu*)
6214 # Under GNU Hurd, this test is not required because there is
6215 # no limit to the length of command line arguments.
6216 # Libtool will interpret -1 as no limit whatsoever
6217 lt_cv_sys_max_cmd_len=-1;
6218 ;;
6219
6220 cygwin* | mingw*)
6221 # On Win9x/ME, this test blows up -- it succeeds, but takes
6222 # about 5 minutes as the teststring grows exponentially.
6223 # Worse, since 9x/ME are not pre-emptively multitasking,
6224 # you end up with a "frozen" computer, even though with patience
6225 # the test eventually succeeds (with a max line length of 256k).
6226 # Instead, let's just punt: use the minimum linelength reported by
6227 # all of the supported platforms: 8192 (on NT/2K/XP).
6228 lt_cv_sys_max_cmd_len=8192;
6229 ;;
6230
6231 amigaos*)
6232 # On AmigaOS with pdksh, this test takes hours, literally.
6233 # So we just punt and use a minimum line length of 8192.
6234 lt_cv_sys_max_cmd_len=8192;
6235 ;;
6236
6237 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6238 # This has been around since 386BSD, at least. Likely further.
6239 if test -x /sbin/sysctl; then
6240 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6241 elif test -x /usr/sbin/sysctl; then
6242 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6243 else
6244 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6245 fi
6246 # And add a safety zone
6247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6249 ;;
6250
6251 interix*)
6252 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6253 lt_cv_sys_max_cmd_len=196608
6254 ;;
6255
6256 osf*)
6257 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6258 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6259 # nice to cause kernel panics so lets avoid the loop below.
6260 # First set a reasonable default.
6261 lt_cv_sys_max_cmd_len=16384
6262 #
6263 if test -x /sbin/sysconfig; then
6264 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6265 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6266 esac
6267 fi
6268 ;;
6269 sco3.2v5*)
6270 lt_cv_sys_max_cmd_len=102400
6271 ;;
6272 sysv5* | sco5v6* | sysv4.2uw2*)
6273 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6274 if test -n "$kargmax"; then
6275 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6276 else
6277 lt_cv_sys_max_cmd_len=32768
6278 fi
6279 ;;
6280 *)
6281 # If test is not a shell built-in, we'll probably end up computing a
6282 # maximum length that is only half of the actual maximum length, but
6283 # we can't tell.
6284 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6285 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6286 = "XX$teststring") >/dev/null 2>&1 &&
6287 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6288 lt_cv_sys_max_cmd_len=$new_result &&
6289 test $i != 17 # 1/2 MB should be enough
6290 do
6291 i=`expr $i + 1`
6292 teststring=$teststring$teststring
6293 done
6294 teststring=
6295 # Add a significant safety factor because C++ compilers can tack on massive
6296 # amounts of additional arguments before passing them to the linker.
6297 # It appears as though 1/2 is a usable value.
6298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6299 ;;
6300 esac
6301
6302 fi
6303
6304 if test -n $lt_cv_sys_max_cmd_len ; then
6305 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6306 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6307 else
6308 { echo "$as_me:$LINENO: result: none" >&5
6309 echo "${ECHO_T}none" >&6; }
6310 fi
6311
6312
6313
6314
6315 # Check for command to grab the raw symbol name followed by C symbol from nm.
6316 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6317 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6318 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321
6322 # These are sane defaults that work on at least a few old systems.
6323 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6324
6325 # Character class describing NM global symbol codes.
6326 symcode='[BCDEGRST]'
6327
6328 # Regexp to match symbols that can be accessed directly from C.
6329 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6330
6331 # Transform an extracted symbol line into a proper C declaration
6332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6333
6334 # Transform an extracted symbol line into symbol name and symbol address
6335 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'"
6336
6337 # Define system-specific variables.
6338 case $host_os in
6339 aix*)
6340 symcode='[BCDT]'
6341 ;;
6342 cygwin* | mingw* | pw32*)
6343 symcode='[ABCDGISTW]'
6344 ;;
6345 hpux*) # Its linker distinguishes data from code symbols
6346 if test "$host_cpu" = ia64; then
6347 symcode='[ABCDEGRST]'
6348 fi
6349 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6350 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'"
6351 ;;
6352 linux*)
6353 if test "$host_cpu" = ia64; then
6354 symcode='[ABCDGIRSTW]'
6355 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6356 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'"
6357 fi
6358 ;;
6359 irix* | nonstopux*)
6360 symcode='[BCDEGRST]'
6361 ;;
6362 osf*)
6363 symcode='[BCDEGQRST]'
6364 ;;
6365 solaris*)
6366 symcode='[BDRT]'
6367 ;;
6368 sco3.2v5*)
6369 symcode='[DT]'
6370 ;;
6371 sysv4.2uw2*)
6372 symcode='[DT]'
6373 ;;
6374 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6375 symcode='[ABDT]'
6376 ;;
6377 sysv4)
6378 symcode='[DFNSTU]'
6379 ;;
6380 esac
6381
6382 # Handle CRLF in mingw tool chain
6383 opt_cr=
6384 case $build_os in
6385 mingw*)
6386 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6387 ;;
6388 esac
6389
6390 # If we're using GNU nm, then use its standard symbol codes.
6391 case `$NM -V 2>&1` in
6392 *GNU* | *'with BFD'*)
6393 symcode='[ABCDGIRSTW]' ;;
6394 esac
6395
6396 # Try without a prefix undercore, then with it.
6397 for ac_symprfx in "" "_"; do
6398
6399 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6400 symxfrm="\\1 $ac_symprfx\\2 \\2"
6401
6402 # Write the raw and C identifiers.
6403 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6404
6405 # Check to see that the pipe works correctly.
6406 pipe_works=no
6407
6408 rm -f conftest*
6409 cat > conftest.$ac_ext <<EOF
6410 #ifdef __cplusplus
6411 extern "C" {
6412 #endif
6413 char nm_test_var;
6414 void nm_test_func(){}
6415 #ifdef __cplusplus
6416 }
6417 #endif
6418 int main(){nm_test_var='a';nm_test_func();return(0);}
6419 EOF
6420
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; then
6426 # Now try to grab the symbols.
6427 nlist=conftest.nm
6428 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6429 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && test -s "$nlist"; then
6433 # Try sorting and uniquifying the output.
6434 if sort "$nlist" | uniq > "$nlist"T; then
6435 mv -f "$nlist"T "$nlist"
6436 else
6437 rm -f "$nlist"T
6438 fi
6439
6440 # Make sure that we snagged all the symbols we need.
6441 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6442 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6443 cat <<EOF > conftest.$ac_ext
6444 #ifdef __cplusplus
6445 extern "C" {
6446 #endif
6447
6448 EOF
6449 # Now generate the symbol file.
6450 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6451
6452 cat <<EOF >> conftest.$ac_ext
6453 #if defined (__STDC__) && __STDC__
6454 # define lt_ptr_t void *
6455 #else
6456 # define lt_ptr_t char *
6457 # define const
6458 #endif
6459
6460 /* The mapping between symbol names and symbols. */
6461 const struct {
6462 const char *name;
6463 lt_ptr_t address;
6464 }
6465 lt_preloaded_symbols[] =
6466 {
6467 EOF
6468 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6469 cat <<\EOF >> conftest.$ac_ext
6470 {0, (lt_ptr_t) 0}
6471 };
6472
6473 #ifdef __cplusplus
6474 }
6475 #endif
6476 EOF
6477 # Now try linking the two files.
6478 mv conftest.$ac_objext conftstm.$ac_objext
6479 lt_save_LIBS="$LIBS"
6480 lt_save_CFLAGS="$CFLAGS"
6481 LIBS="conftstm.$ac_objext"
6482 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6484 (eval $ac_link) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6488 pipe_works=yes
6489 fi
6490 LIBS="$lt_save_LIBS"
6491 CFLAGS="$lt_save_CFLAGS"
6492 else
6493 echo "cannot find nm_test_func in $nlist" >&5
6494 fi
6495 else
6496 echo "cannot find nm_test_var in $nlist" >&5
6497 fi
6498 else
6499 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6500 fi
6501 else
6502 echo "$progname: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6504 fi
6505 rm -f conftest* conftst*
6506
6507 # Do not use the global_symbol_pipe unless it works.
6508 if test "$pipe_works" = yes; then
6509 break
6510 else
6511 lt_cv_sys_global_symbol_pipe=
6512 fi
6513 done
6514
6515 fi
6516
6517 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6518 lt_cv_sys_global_symbol_to_cdecl=
6519 fi
6520 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6521 { echo "$as_me:$LINENO: result: failed" >&5
6522 echo "${ECHO_T}failed" >&6; }
6523 else
6524 { echo "$as_me:$LINENO: result: ok" >&5
6525 echo "${ECHO_T}ok" >&6; }
6526 fi
6527
6528 { echo "$as_me:$LINENO: checking for objdir" >&5
6529 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6530 if test "${lt_cv_objdir+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 rm -f .libs 2>/dev/null
6534 mkdir .libs 2>/dev/null
6535 if test -d .libs; then
6536 lt_cv_objdir=.libs
6537 else
6538 # MS-DOS does not allow filenames that begin with a dot.
6539 lt_cv_objdir=_libs
6540 fi
6541 rmdir .libs 2>/dev/null
6542 fi
6543 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6544 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6545 objdir=$lt_cv_objdir
6546
6547
6548
6549
6550
6551 case $host_os in
6552 aix3*)
6553 # AIX sometimes has problems with the GCC collect2 program. For some
6554 # reason, if we set the COLLECT_NAMES environment variable, the problems
6555 # vanish in a puff of smoke.
6556 if test "X${COLLECT_NAMES+set}" != Xset; then
6557 COLLECT_NAMES=
6558 export COLLECT_NAMES
6559 fi
6560 ;;
6561 esac
6562
6563 # Sed substitution that helps us do robust quoting. It backslashifies
6564 # metacharacters that are still active within double-quoted strings.
6565 Xsed='sed -e 1s/^X//'
6566 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6567
6568 # Same as above, but do not quote variable references.
6569 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6570
6571 # Sed substitution to delay expansion of an escaped shell variable in a
6572 # double_quote_subst'ed string.
6573 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6574
6575 # Sed substitution to avoid accidental globbing in evaled expressions
6576 no_glob_subst='s/\*/\\\*/g'
6577
6578 # Constants:
6579 rm="rm -f"
6580
6581 # Global variables:
6582 default_ofile=libtool
6583 can_build_shared=yes
6584
6585 # All known linkers require a `.a' archive for static linking (except MSVC,
6586 # which needs '.lib').
6587 libext=a
6588 ltmain="$ac_aux_dir/ltmain.sh"
6589 ofile="$default_ofile"
6590 with_gnu_ld="$lt_cv_prog_gnu_ld"
6591
6592 if test -n "$ac_tool_prefix"; then
6593 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6594 set dummy ${ac_tool_prefix}ar; ac_word=$2
6595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6597 if test "${ac_cv_prog_AR+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600 if test -n "$AR"; then
6601 ac_cv_prog_AR="$AR" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_prog_AR="${ac_tool_prefix}ar"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6613 fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 AR=$ac_cv_prog_AR
6621 if test -n "$AR"; then
6622 { echo "$as_me:$LINENO: result: $AR" >&5
6623 echo "${ECHO_T}$AR" >&6; }
6624 else
6625 { echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6; }
6627 fi
6628
6629
6630 fi
6631 if test -z "$ac_cv_prog_AR"; then
6632 ac_ct_AR=$AR
6633 # Extract the first word of "ar", so it can be a program name with args.
6634 set dummy ar; ac_word=$2
6635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6637 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640 if test -n "$ac_ct_AR"; then
6641 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_ac_ct_AR="ar"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6661 if test -n "$ac_ct_AR"; then
6662 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6663 echo "${ECHO_T}$ac_ct_AR" >&6; }
6664 else
6665 { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6667 fi
6668
6669 if test "x$ac_ct_AR" = x; then
6670 AR="false"
6671 else
6672 case $cross_compiling:$ac_tool_warned in
6673 yes:)
6674 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6675 whose name does not start with the host triplet. If you think this
6676 configuration is useful to you, please write to autoconf@gnu.org." >&5
6677 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6678 whose name does not start with the host triplet. If you think this
6679 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6680 ac_tool_warned=yes ;;
6681 esac
6682 AR=$ac_ct_AR
6683 fi
6684 else
6685 AR="$ac_cv_prog_AR"
6686 fi
6687
6688 if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_prog_RANLIB+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696 if test -n "$RANLIB"; then
6697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6713
6714 fi
6715 fi
6716 RANLIB=$ac_cv_prog_RANLIB
6717 if test -n "$RANLIB"; then
6718 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6719 echo "${ECHO_T}$RANLIB" >&6; }
6720 else
6721 { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6723 fi
6724
6725
6726 fi
6727 if test -z "$ac_cv_prog_RANLIB"; then
6728 ac_ct_RANLIB=$RANLIB
6729 # Extract the first word of "ranlib", so it can be a program name with args.
6730 set dummy ranlib; ac_word=$2
6731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6733 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736 if test -n "$ac_ct_RANLIB"; then
6737 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_prog_ac_ct_RANLIB="ranlib"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6757 if test -n "$ac_ct_RANLIB"; then
6758 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6759 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6760 else
6761 { echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6; }
6763 fi
6764
6765 if test "x$ac_ct_RANLIB" = x; then
6766 RANLIB=":"
6767 else
6768 case $cross_compiling:$ac_tool_warned in
6769 yes:)
6770 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6771 whose name does not start with the host triplet. If you think this
6772 configuration is useful to you, please write to autoconf@gnu.org." >&5
6773 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6774 whose name does not start with the host triplet. If you think this
6775 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6776 ac_tool_warned=yes ;;
6777 esac
6778 RANLIB=$ac_ct_RANLIB
6779 fi
6780 else
6781 RANLIB="$ac_cv_prog_RANLIB"
6782 fi
6783
6784 if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}strip; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_prog_STRIP+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 if test -n "$STRIP"; then
6793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 STRIP=$ac_cv_prog_STRIP
6813 if test -n "$STRIP"; then
6814 { echo "$as_me:$LINENO: result: $STRIP" >&5
6815 echo "${ECHO_T}$STRIP" >&6; }
6816 else
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821
6822 fi
6823 if test -z "$ac_cv_prog_STRIP"; then
6824 ac_ct_STRIP=$STRIP
6825 # Extract the first word of "strip", so it can be a program name with args.
6826 set dummy strip; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832 if test -n "$ac_ct_STRIP"; then
6833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_prog_ac_ct_STRIP="strip"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6853 if test -n "$ac_ct_STRIP"; then
6854 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6855 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6856 else
6857 { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6859 fi
6860
6861 if test "x$ac_ct_STRIP" = x; then
6862 STRIP=":"
6863 else
6864 case $cross_compiling:$ac_tool_warned in
6865 yes:)
6866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6867 whose name does not start with the host triplet. If you think this
6868 configuration is useful to you, please write to autoconf@gnu.org." >&5
6869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6870 whose name does not start with the host triplet. If you think this
6871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6872 ac_tool_warned=yes ;;
6873 esac
6874 STRIP=$ac_ct_STRIP
6875 fi
6876 else
6877 STRIP="$ac_cv_prog_STRIP"
6878 fi
6879
6880
6881 old_CC="$CC"
6882 old_CFLAGS="$CFLAGS"
6883
6884 # Set sane defaults for various variables
6885 test -z "$AR" && AR=ar
6886 test -z "$AR_FLAGS" && AR_FLAGS=cru
6887 test -z "$AS" && AS=as
6888 test -z "$CC" && CC=cc
6889 test -z "$LTCC" && LTCC=$CC
6890 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6891 test -z "$DLLTOOL" && DLLTOOL=dlltool
6892 test -z "$LD" && LD=ld
6893 test -z "$LN_S" && LN_S="ln -s"
6894 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6895 test -z "$NM" && NM=nm
6896 test -z "$SED" && SED=sed
6897 test -z "$OBJDUMP" && OBJDUMP=objdump
6898 test -z "$RANLIB" && RANLIB=:
6899 test -z "$STRIP" && STRIP=:
6900 test -z "$ac_objext" && ac_objext=o
6901
6902 # Determine commands to create old-style static archives.
6903 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6904 old_postinstall_cmds='chmod 644 $oldlib'
6905 old_postuninstall_cmds=
6906
6907 if test -n "$RANLIB"; then
6908 case $host_os in
6909 openbsd*)
6910 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6911 ;;
6912 *)
6913 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6914 ;;
6915 esac
6916 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6917 fi
6918
6919 for cc_temp in $compiler""; do
6920 case $cc_temp in
6921 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6922 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6923 \-*) ;;
6924 *) break;;
6925 esac
6926 done
6927 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6928
6929
6930 # Only perform the check for file, if the check method requires it
6931 case $deplibs_check_method in
6932 file_magic*)
6933 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6934 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6935 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6936 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 case $MAGIC_CMD in
6940 [\\/*] | ?:[\\/]*)
6941 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6942 ;;
6943 *)
6944 lt_save_MAGIC_CMD="$MAGIC_CMD"
6945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6946 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6947 for ac_dir in $ac_dummy; do
6948 IFS="$lt_save_ifs"
6949 test -z "$ac_dir" && ac_dir=.
6950 if test -f $ac_dir/${ac_tool_prefix}file; then
6951 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6952 if test -n "$file_magic_test_file"; then
6953 case $deplibs_check_method in
6954 "file_magic "*)
6955 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6958 $EGREP "$file_magic_regex" > /dev/null; then
6959 :
6960 else
6961 cat <<EOF 1>&2
6962
6963 *** Warning: the command libtool uses to detect shared libraries,
6964 *** $file_magic_cmd, produces output that libtool cannot recognize.
6965 *** The result is that libtool may fail to recognize shared libraries
6966 *** as such. This will affect the creation of libtool libraries that
6967 *** depend on shared libraries, but programs linked with such libtool
6968 *** libraries will work regardless of this problem. Nevertheless, you
6969 *** may want to report the problem to your system manager and/or to
6970 *** bug-libtool@gnu.org
6971
6972 EOF
6973 fi ;;
6974 esac
6975 fi
6976 break
6977 fi
6978 done
6979 IFS="$lt_save_ifs"
6980 MAGIC_CMD="$lt_save_MAGIC_CMD"
6981 ;;
6982 esac
6983 fi
6984
6985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6986 if test -n "$MAGIC_CMD"; then
6987 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6988 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6989 else
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6992 fi
6993
6994 if test -z "$lt_cv_path_MAGIC_CMD"; then
6995 if test -n "$ac_tool_prefix"; then
6996 { echo "$as_me:$LINENO: checking for file" >&5
6997 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6998 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001 case $MAGIC_CMD in
7002 [\\/*] | ?:[\\/]*)
7003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7004 ;;
7005 *)
7006 lt_save_MAGIC_CMD="$MAGIC_CMD"
7007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7009 for ac_dir in $ac_dummy; do
7010 IFS="$lt_save_ifs"
7011 test -z "$ac_dir" && ac_dir=.
7012 if test -f $ac_dir/file; then
7013 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7014 if test -n "$file_magic_test_file"; then
7015 case $deplibs_check_method in
7016 "file_magic "*)
7017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7020 $EGREP "$file_magic_regex" > /dev/null; then
7021 :
7022 else
7023 cat <<EOF 1>&2
7024
7025 *** Warning: the command libtool uses to detect shared libraries,
7026 *** $file_magic_cmd, produces output that libtool cannot recognize.
7027 *** The result is that libtool may fail to recognize shared libraries
7028 *** as such. This will affect the creation of libtool libraries that
7029 *** depend on shared libraries, but programs linked with such libtool
7030 *** libraries will work regardless of this problem. Nevertheless, you
7031 *** may want to report the problem to your system manager and/or to
7032 *** bug-libtool@gnu.org
7033
7034 EOF
7035 fi ;;
7036 esac
7037 fi
7038 break
7039 fi
7040 done
7041 IFS="$lt_save_ifs"
7042 MAGIC_CMD="$lt_save_MAGIC_CMD"
7043 ;;
7044 esac
7045 fi
7046
7047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7048 if test -n "$MAGIC_CMD"; then
7049 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7050 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7051 else
7052 { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7054 fi
7055
7056 else
7057 MAGIC_CMD=:
7058 fi
7059 fi
7060
7061 fi
7062 ;;
7063 esac
7064
7065 enable_dlopen=no
7066 enable_win32_dll=no
7067
7068 # Check whether --enable-libtool-lock was given.
7069 if test "${enable_libtool_lock+set}" = set; then
7070 enableval=$enable_libtool_lock;
7071 fi
7072
7073 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7074
7075
7076 # Check whether --with-pic was given.
7077 if test "${with_pic+set}" = set; then
7078 withval=$with_pic; pic_mode="$withval"
7079 else
7080 pic_mode=default
7081 fi
7082
7083 test -z "$pic_mode" && pic_mode=default
7084
7085 # Use C for the default configuration in the libtool script
7086 tagname=
7087 lt_save_CC="$CC"
7088 ac_ext=c
7089 ac_cpp='$CPP $CPPFLAGS'
7090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7093
7094
7095 # Source file extension for C test sources.
7096 ac_ext=c
7097
7098 # Object file extension for compiled C test sources.
7099 objext=o
7100 objext=$objext
7101
7102 # Code to be used in simple compile tests
7103 lt_simple_compile_test_code="int some_variable = 0;\n"
7104
7105 # Code to be used in simple link tests
7106 lt_simple_link_test_code='int main(){return(0);}\n'
7107
7108
7109 # If no C compiler was specified, use CC.
7110 LTCC=${LTCC-"$CC"}
7111
7112 # If no C compiler flags were specified, use CFLAGS.
7113 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7114
7115 # Allow CC to be a program name with arguments.
7116 compiler=$CC
7117
7118
7119 # save warnings/boilerplate of simple test code
7120 ac_outfile=conftest.$ac_objext
7121 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7122 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7123 _lt_compiler_boilerplate=`cat conftest.err`
7124 $rm conftest*
7125
7126 ac_outfile=conftest.$ac_objext
7127 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7128 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7129 _lt_linker_boilerplate=`cat conftest.err`
7130 $rm conftest*
7131
7132
7133
7134 lt_prog_compiler_no_builtin_flag=
7135
7136 if test "$GCC" = yes; then
7137 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7138
7139
7140 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7141 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7142 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145 lt_cv_prog_compiler_rtti_exceptions=no
7146 ac_outfile=conftest.$ac_objext
7147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7148 lt_compiler_flag="-fno-rtti -fno-exceptions"
7149 # Insert the option either (1) after the last *FLAGS variable, or
7150 # (2) before a word containing "conftest.", or (3) at the end.
7151 # Note that $ac_compile itself does not contain backslashes and begins
7152 # with a dollar sign (not a hyphen), so the echo should work correctly.
7153 # The option is referenced via a variable to avoid confusing sed.
7154 lt_compile=`echo "$ac_compile" | $SED \
7155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7157 -e 's:$: $lt_compiler_flag:'`
7158 (eval echo "\"\$as_me:7158: $lt_compile\"" >&5)
7159 (eval "$lt_compile" 2>conftest.err)
7160 ac_status=$?
7161 cat conftest.err >&5
7162 echo "$as_me:7162: \$? = $ac_status" >&5
7163 if (exit $ac_status) && test -s "$ac_outfile"; then
7164 # The compiler can only warn and ignore the option if not recognized
7165 # So say no if there are warnings other than the usual output.
7166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7169 lt_cv_prog_compiler_rtti_exceptions=yes
7170 fi
7171 fi
7172 $rm conftest*
7173
7174 fi
7175 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7176 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7177
7178 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7179 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7180 else
7181 :
7182 fi
7183
7184 fi
7185
7186 lt_prog_compiler_wl=
7187 lt_prog_compiler_pic=
7188 lt_prog_compiler_static=
7189
7190 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7191 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7192
7193 if test "$GCC" = yes; then
7194 lt_prog_compiler_wl='-Wl,'
7195 lt_prog_compiler_static='-static'
7196
7197 case $host_os in
7198 aix*)
7199 # All AIX code is PIC.
7200 if test "$host_cpu" = ia64; then
7201 # AIX 5 now supports IA64 processor
7202 lt_prog_compiler_static='-Bstatic'
7203 fi
7204 ;;
7205
7206 amigaos*)
7207 # FIXME: we need at least 68020 code to build shared libraries, but
7208 # adding the `-m68020' flag to GCC prevents building anything better,
7209 # like `-m68040'.
7210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7211 ;;
7212
7213 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7214 # PIC is the default for these OSes.
7215 ;;
7216
7217 mingw* | pw32* | os2*)
7218 # This hack is so that the source file can tell whether it is being
7219 # built for inclusion in a dll (and should export symbols for example).
7220 lt_prog_compiler_pic='-DDLL_EXPORT'
7221 ;;
7222
7223 darwin* | rhapsody*)
7224 # PIC is the default on this platform
7225 # Common symbols not allowed in MH_DYLIB files
7226 lt_prog_compiler_pic='-fno-common'
7227 ;;
7228
7229 interix3*)
7230 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7231 # Instead, we relocate shared libraries at runtime.
7232 ;;
7233
7234 msdosdjgpp*)
7235 # Just because we use GCC doesn't mean we suddenly get shared libraries
7236 # on systems that don't support them.
7237 lt_prog_compiler_can_build_shared=no
7238 enable_shared=no
7239 ;;
7240
7241 sysv4*MP*)
7242 if test -d /usr/nec; then
7243 lt_prog_compiler_pic=-Kconform_pic
7244 fi
7245 ;;
7246
7247 hpux*)
7248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7249 # not for PA HP-UX.
7250 case $host_cpu in
7251 hppa*64*|ia64*)
7252 # +Z the default
7253 ;;
7254 *)
7255 lt_prog_compiler_pic='-fPIC'
7256 ;;
7257 esac
7258 ;;
7259
7260 *)
7261 lt_prog_compiler_pic='-fPIC'
7262 ;;
7263 esac
7264 else
7265 # PORTME Check for flag to pass linker flags through the system compiler.
7266 case $host_os in
7267 aix*)
7268 lt_prog_compiler_wl='-Wl,'
7269 if test "$host_cpu" = ia64; then
7270 # AIX 5 now supports IA64 processor
7271 lt_prog_compiler_static='-Bstatic'
7272 else
7273 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7274 fi
7275 ;;
7276 darwin*)
7277 # PIC is the default on this platform
7278 # Common symbols not allowed in MH_DYLIB files
7279 case $cc_basename in
7280 xlc*)
7281 lt_prog_compiler_pic='-qnocommon'
7282 lt_prog_compiler_wl='-Wl,'
7283 ;;
7284 esac
7285 ;;
7286
7287 mingw* | pw32* | os2*)
7288 # This hack is so that the source file can tell whether it is being
7289 # built for inclusion in a dll (and should export symbols for example).
7290 lt_prog_compiler_pic='-DDLL_EXPORT'
7291 ;;
7292
7293 hpux9* | hpux10* | hpux11*)
7294 lt_prog_compiler_wl='-Wl,'
7295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7296 # not for PA HP-UX.
7297 case $host_cpu in
7298 hppa*64*|ia64*)
7299 # +Z the default
7300 ;;
7301 *)
7302 lt_prog_compiler_pic='+Z'
7303 ;;
7304 esac
7305 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7306 lt_prog_compiler_static='${wl}-a ${wl}archive'
7307 ;;
7308
7309 irix5* | irix6* | nonstopux*)
7310 lt_prog_compiler_wl='-Wl,'
7311 # PIC (with -KPIC) is the default.
7312 lt_prog_compiler_static='-non_shared'
7313 ;;
7314
7315 newsos6)
7316 lt_prog_compiler_pic='-KPIC'
7317 lt_prog_compiler_static='-Bstatic'
7318 ;;
7319
7320 linux*)
7321 case $cc_basename in
7322 icc* | ecc*)
7323 lt_prog_compiler_wl='-Wl,'
7324 lt_prog_compiler_pic='-KPIC'
7325 lt_prog_compiler_static='-static'
7326 ;;
7327 pgcc* | pgf77* | pgf90* | pgf95*)
7328 # Portland Group compilers (*not* the Pentium gcc compiler,
7329 # which looks to be a dead project)
7330 lt_prog_compiler_wl='-Wl,'
7331 lt_prog_compiler_pic='-fpic'
7332 lt_prog_compiler_static='-Bstatic'
7333 ;;
7334 ccc*)
7335 lt_prog_compiler_wl='-Wl,'
7336 # All Alpha code is PIC.
7337 lt_prog_compiler_static='-non_shared'
7338 ;;
7339 esac
7340 ;;
7341
7342 osf3* | osf4* | osf5*)
7343 lt_prog_compiler_wl='-Wl,'
7344 # All OSF/1 code is PIC.
7345 lt_prog_compiler_static='-non_shared'
7346 ;;
7347
7348 solaris*)
7349 lt_prog_compiler_pic='-KPIC'
7350 lt_prog_compiler_static='-Bstatic'
7351 case $cc_basename in
7352 f77* | f90* | f95*)
7353 lt_prog_compiler_wl='-Qoption ld ';;
7354 *)
7355 lt_prog_compiler_wl='-Wl,';;
7356 esac
7357 ;;
7358
7359 sunos4*)
7360 lt_prog_compiler_wl='-Qoption ld '
7361 lt_prog_compiler_pic='-PIC'
7362 lt_prog_compiler_static='-Bstatic'
7363 ;;
7364
7365 sysv4 | sysv4.2uw2* | sysv4.3*)
7366 lt_prog_compiler_wl='-Wl,'
7367 lt_prog_compiler_pic='-KPIC'
7368 lt_prog_compiler_static='-Bstatic'
7369 ;;
7370
7371 sysv4*MP*)
7372 if test -d /usr/nec ;then
7373 lt_prog_compiler_pic='-Kconform_pic'
7374 lt_prog_compiler_static='-Bstatic'
7375 fi
7376 ;;
7377
7378 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7379 lt_prog_compiler_wl='-Wl,'
7380 lt_prog_compiler_pic='-KPIC'
7381 lt_prog_compiler_static='-Bstatic'
7382 ;;
7383
7384 unicos*)
7385 lt_prog_compiler_wl='-Wl,'
7386 lt_prog_compiler_can_build_shared=no
7387 ;;
7388
7389 uts4*)
7390 lt_prog_compiler_pic='-pic'
7391 lt_prog_compiler_static='-Bstatic'
7392 ;;
7393
7394 *)
7395 lt_prog_compiler_can_build_shared=no
7396 ;;
7397 esac
7398 fi
7399
7400 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7401 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7402
7403 #
7404 # Check to make sure the PIC flag actually works.
7405 #
7406 if test -n "$lt_prog_compiler_pic"; then
7407
7408 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7409 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7410 if test "${lt_prog_compiler_pic_works+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413 lt_prog_compiler_pic_works=no
7414 ac_outfile=conftest.$ac_objext
7415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7416 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7417 # Insert the option either (1) after the last *FLAGS variable, or
7418 # (2) before a word containing "conftest.", or (3) at the end.
7419 # Note that $ac_compile itself does not contain backslashes and begins
7420 # with a dollar sign (not a hyphen), so the echo should work correctly.
7421 # The option is referenced via a variable to avoid confusing sed.
7422 lt_compile=`echo "$ac_compile" | $SED \
7423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7425 -e 's:$: $lt_compiler_flag:'`
7426 (eval echo "\"\$as_me:7426: $lt_compile\"" >&5)
7427 (eval "$lt_compile" 2>conftest.err)
7428 ac_status=$?
7429 cat conftest.err >&5
7430 echo "$as_me:7430: \$? = $ac_status" >&5
7431 if (exit $ac_status) && test -s "$ac_outfile"; then
7432 # The compiler can only warn and ignore the option if not recognized
7433 # So say no if there are warnings other than the usual output.
7434 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7437 lt_prog_compiler_pic_works=yes
7438 fi
7439 fi
7440 $rm conftest*
7441
7442 fi
7443 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7444 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7445
7446 if test x"$lt_prog_compiler_pic_works" = xyes; then
7447 case $lt_prog_compiler_pic in
7448 "" | " "*) ;;
7449 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7450 esac
7451 else
7452 lt_prog_compiler_pic=
7453 lt_prog_compiler_can_build_shared=no
7454 fi
7455
7456 fi
7457 case $host_os in
7458 # For platforms which do not support PIC, -DPIC is meaningless:
7459 *djgpp*)
7460 lt_prog_compiler_pic=
7461 ;;
7462 *)
7463 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7464 ;;
7465 esac
7466
7467 #
7468 # Check to make sure the static flag actually works.
7469 #
7470 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7471 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7472 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7473 if test "${lt_prog_compiler_static_works+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 lt_prog_compiler_static_works=no
7477 save_LDFLAGS="$LDFLAGS"
7478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7479 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7481 # The linker can only warn and ignore the option if not recognized
7482 # So say no if there are warnings
7483 if test -s conftest.err; then
7484 # Append any errors to the config.log.
7485 cat conftest.err 1>&5
7486 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7488 if diff conftest.exp conftest.er2 >/dev/null; then
7489 lt_prog_compiler_static_works=yes
7490 fi
7491 else
7492 lt_prog_compiler_static_works=yes
7493 fi
7494 fi
7495 $rm conftest*
7496 LDFLAGS="$save_LDFLAGS"
7497
7498 fi
7499 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7500 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7501
7502 if test x"$lt_prog_compiler_static_works" = xyes; then
7503 :
7504 else
7505 lt_prog_compiler_static=
7506 fi
7507
7508
7509 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7510 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7511 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514 lt_cv_prog_compiler_c_o=no
7515 $rm -r conftest 2>/dev/null
7516 mkdir conftest
7517 cd conftest
7518 mkdir out
7519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7520
7521 lt_compiler_flag="-o out/conftest2.$ac_objext"
7522 # Insert the option either (1) after the last *FLAGS variable, or
7523 # (2) before a word containing "conftest.", or (3) at the end.
7524 # Note that $ac_compile itself does not contain backslashes and begins
7525 # with a dollar sign (not a hyphen), so the echo should work correctly.
7526 lt_compile=`echo "$ac_compile" | $SED \
7527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7529 -e 's:$: $lt_compiler_flag:'`
7530 (eval echo "\"\$as_me:7530: $lt_compile\"" >&5)
7531 (eval "$lt_compile" 2>out/conftest.err)
7532 ac_status=$?
7533 cat out/conftest.err >&5
7534 echo "$as_me:7534: \$? = $ac_status" >&5
7535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7536 then
7537 # The compiler can only warn and ignore the option if not recognized
7538 # So say no if there are warnings
7539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7542 lt_cv_prog_compiler_c_o=yes
7543 fi
7544 fi
7545 chmod u+w . 2>&5
7546 $rm conftest*
7547 # SGI C++ compiler will create directory out/ii_files/ for
7548 # template instantiation
7549 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7550 $rm out/* && rmdir out
7551 cd ..
7552 rmdir conftest
7553 $rm conftest*
7554
7555 fi
7556 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7557 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7558
7559
7560 hard_links="nottested"
7561 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7562 # do not overwrite the value of need_locks provided by the user
7563 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7564 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7565 hard_links=yes
7566 $rm conftest*
7567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7568 touch conftest.a
7569 ln conftest.a conftest.b 2>&5 || hard_links=no
7570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7571 { echo "$as_me:$LINENO: result: $hard_links" >&5
7572 echo "${ECHO_T}$hard_links" >&6; }
7573 if test "$hard_links" = no; then
7574 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7575 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7576 need_locks=warn
7577 fi
7578 else
7579 need_locks=no
7580 fi
7581
7582 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7583 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7584
7585 runpath_var=
7586 allow_undefined_flag=
7587 enable_shared_with_static_runtimes=no
7588 archive_cmds=
7589 archive_expsym_cmds=
7590 old_archive_From_new_cmds=
7591 old_archive_from_expsyms_cmds=
7592 export_dynamic_flag_spec=
7593 whole_archive_flag_spec=
7594 thread_safe_flag_spec=
7595 hardcode_libdir_flag_spec=
7596 hardcode_libdir_flag_spec_ld=
7597 hardcode_libdir_separator=
7598 hardcode_direct=no
7599 hardcode_minus_L=no
7600 hardcode_shlibpath_var=unsupported
7601 link_all_deplibs=unknown
7602 hardcode_automatic=no
7603 module_cmds=
7604 module_expsym_cmds=
7605 always_export_symbols=no
7606 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7607 # include_expsyms should be a list of space-separated symbols to be *always*
7608 # included in the symbol list
7609 include_expsyms=
7610 # exclude_expsyms can be an extended regexp of symbols to exclude
7611 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7612 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7613 # as well as any symbol that contains `d'.
7614 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7615 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7616 # platforms (ab)use it in PIC code, but their linkers get confused if
7617 # the symbol is explicitly referenced. Since portable code cannot
7618 # rely on this symbol name, it's probably fine to never include it in
7619 # preloaded symbol tables.
7620 extract_expsyms_cmds=
7621 # Just being paranoid about ensuring that cc_basename is set.
7622 for cc_temp in $compiler""; do
7623 case $cc_temp in
7624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7626 \-*) ;;
7627 *) break;;
7628 esac
7629 done
7630 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7631
7632 case $host_os in
7633 cygwin* | mingw* | pw32*)
7634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7635 # When not using gcc, we currently assume that we are using
7636 # Microsoft Visual C++.
7637 if test "$GCC" != yes; then
7638 with_gnu_ld=no
7639 fi
7640 ;;
7641 interix*)
7642 # we just hope/assume this is gcc and not c89 (= MSVC++)
7643 with_gnu_ld=yes
7644 ;;
7645 openbsd*)
7646 with_gnu_ld=no
7647 ;;
7648 esac
7649
7650 ld_shlibs=yes
7651 if test "$with_gnu_ld" = yes; then
7652 # If archive_cmds runs LD, not CC, wlarc should be empty
7653 wlarc='${wl}'
7654
7655 # Set some defaults for GNU ld with shared library support. These
7656 # are reset later if shared libraries are not supported. Putting them
7657 # here allows them to be overridden if necessary.
7658 runpath_var=LD_RUN_PATH
7659 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7660 export_dynamic_flag_spec='${wl}--export-dynamic'
7661 # ancient GNU ld didn't support --whole-archive et. al.
7662 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7663 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7664 else
7665 whole_archive_flag_spec=
7666 fi
7667 supports_anon_versioning=no
7668 case `$LD -v 2>/dev/null` in
7669 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7670 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7671 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7672 *\ 2.11.*) ;; # other 2.11 versions
7673 *) supports_anon_versioning=yes ;;
7674 esac
7675
7676 # See if GNU ld supports shared libraries.
7677 case $host_os in
7678 aix3* | aix4* | aix5*)
7679 # On AIX/PPC, the GNU linker is very broken
7680 if test "$host_cpu" != ia64; then
7681 ld_shlibs=no
7682 cat <<EOF 1>&2
7683
7684 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7685 *** to be unable to reliably create shared libraries on AIX.
7686 *** Therefore, libtool is disabling shared libraries support. If you
7687 *** really care for shared libraries, you may want to modify your PATH
7688 *** so that a non-GNU linker is found, and then restart.
7689
7690 EOF
7691 fi
7692 ;;
7693
7694 amigaos*)
7695 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)'
7696 hardcode_libdir_flag_spec='-L$libdir'
7697 hardcode_minus_L=yes
7698
7699 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7700 # that the semantics of dynamic libraries on AmigaOS, at least up
7701 # to version 4, is to share data among multiple programs linked
7702 # with the same dynamic library. Since this doesn't match the
7703 # behavior of shared libraries on other platforms, we can't use
7704 # them.
7705 ld_shlibs=no
7706 ;;
7707
7708 beos*)
7709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7710 allow_undefined_flag=unsupported
7711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7712 # support --undefined. This deserves some investigation. FIXME
7713 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7714 else
7715 ld_shlibs=no
7716 fi
7717 ;;
7718
7719 cygwin* | mingw* | pw32*)
7720 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7721 # as there is no search path for DLLs.
7722 hardcode_libdir_flag_spec='-L$libdir'
7723 allow_undefined_flag=unsupported
7724 always_export_symbols=no
7725 enable_shared_with_static_runtimes=yes
7726 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7727
7728 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7730 # If the export-symbols file already is a .def file (1st line
7731 # is EXPORTS), use it as is; otherwise, prepend...
7732 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7733 cp $export_symbols $output_objdir/$soname.def;
7734 else
7735 echo EXPORTS > $output_objdir/$soname.def;
7736 cat $export_symbols >> $output_objdir/$soname.def;
7737 fi~
7738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7739 else
7740 ld_shlibs=no
7741 fi
7742 ;;
7743
7744 interix3*)
7745 hardcode_direct=no
7746 hardcode_shlibpath_var=no
7747 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7748 export_dynamic_flag_spec='${wl}-E'
7749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7750 # Instead, shared libraries are loaded at an image base (0x10000000 by
7751 # default) and relocated if they conflict, which is a slow very memory
7752 # consuming and fragmenting process. To avoid this, we pick a random,
7753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7754 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7755 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7756 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'
7757 ;;
7758
7759 linux*)
7760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7761 tmp_addflag=
7762 case $cc_basename,$host_cpu in
7763 pgcc*) # Portland Group C compiler
7764 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'
7765 tmp_addflag=' $pic_flag'
7766 ;;
7767 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7768 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'
7769 tmp_addflag=' $pic_flag -Mnomain' ;;
7770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7771 tmp_addflag=' -i_dynamic' ;;
7772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7773 tmp_addflag=' -i_dynamic -nofor_main' ;;
7774 ifc* | ifort*) # Intel Fortran compiler
7775 tmp_addflag=' -nofor_main' ;;
7776 esac
7777 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778
7779 if test $supports_anon_versioning = yes; then
7780 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7782 $echo "local: *; };" >> $output_objdir/$libname.ver~
7783 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7784 fi
7785 else
7786 ld_shlibs=no
7787 fi
7788 ;;
7789
7790 netbsd*)
7791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7792 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7793 wlarc=
7794 else
7795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7797 fi
7798 ;;
7799
7800 solaris*)
7801 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7802 ld_shlibs=no
7803 cat <<EOF 1>&2
7804
7805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7806 *** create shared libraries on Solaris systems. Therefore, libtool
7807 *** is disabling shared libraries support. We urge you to upgrade GNU
7808 *** binutils to release 2.9.1 or newer. Another option is to modify
7809 *** your PATH or compiler configuration so that the native linker is
7810 *** used, and then restart.
7811
7812 EOF
7813 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7816 else
7817 ld_shlibs=no
7818 fi
7819 ;;
7820
7821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7822 case `$LD -v 2>&1` in
7823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7824 ld_shlibs=no
7825 cat <<_LT_EOF 1>&2
7826
7827 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7828 *** reliably create shared libraries on SCO systems. Therefore, libtool
7829 *** is disabling shared libraries support. We urge you to upgrade GNU
7830 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7831 *** your PATH or compiler configuration so that the native linker is
7832 *** used, and then restart.
7833
7834 _LT_EOF
7835 ;;
7836 *)
7837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7838 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7840 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7841 else
7842 ld_shlibs=no
7843 fi
7844 ;;
7845 esac
7846 ;;
7847
7848 sunos4*)
7849 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7850 wlarc=
7851 hardcode_direct=yes
7852 hardcode_shlibpath_var=no
7853 ;;
7854
7855 *)
7856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7858 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7859 else
7860 ld_shlibs=no
7861 fi
7862 ;;
7863 esac
7864
7865 if test "$ld_shlibs" = no; then
7866 runpath_var=
7867 hardcode_libdir_flag_spec=
7868 export_dynamic_flag_spec=
7869 whole_archive_flag_spec=
7870 fi
7871 else
7872 # PORTME fill in a description of your system's linker (not GNU ld)
7873 case $host_os in
7874 aix3*)
7875 allow_undefined_flag=unsupported
7876 always_export_symbols=yes
7877 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'
7878 # Note: this linker hardcodes the directories in LIBPATH if there
7879 # are no directories specified by -L.
7880 hardcode_minus_L=yes
7881 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7882 # Neither direct hardcoding nor static linking is supported with a
7883 # broken collect2.
7884 hardcode_direct=unsupported
7885 fi
7886 ;;
7887
7888 aix4* | aix5*)
7889 if test "$host_cpu" = ia64; then
7890 # On IA64, the linker does run time linking by default, so we don't
7891 # have to do anything special.
7892 aix_use_runtimelinking=no
7893 exp_sym_flag='-Bexport'
7894 no_entry_flag=""
7895 else
7896 # If we're using GNU nm, then we don't want the "-C" option.
7897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7899 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'
7900 else
7901 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'
7902 fi
7903 aix_use_runtimelinking=no
7904
7905 # Test if we are trying to use run time linking or normal
7906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7907 # need to do runtime linking.
7908 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7909 for ld_flag in $LDFLAGS; do
7910 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7911 aix_use_runtimelinking=yes
7912 break
7913 fi
7914 done
7915 ;;
7916 esac
7917
7918 exp_sym_flag='-bexport'
7919 no_entry_flag='-bnoentry'
7920 fi
7921
7922 # When large executables or shared objects are built, AIX ld can
7923 # have problems creating the table of contents. If linking a library
7924 # or program results in "error TOC overflow" add -mminimal-toc to
7925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7927
7928 archive_cmds=''
7929 hardcode_direct=yes
7930 hardcode_libdir_separator=':'
7931 link_all_deplibs=yes
7932
7933 if test "$GCC" = yes; then
7934 case $host_os in aix4.[012]|aix4.[012].*)
7935 # We only want to do this on AIX 4.2 and lower, the check
7936 # below for broken collect2 doesn't work under 4.3+
7937 collect2name=`${CC} -print-prog-name=collect2`
7938 if test -f "$collect2name" && \
7939 strings "$collect2name" | grep resolve_lib_name >/dev/null
7940 then
7941 # We have reworked collect2
7942 hardcode_direct=yes
7943 else
7944 # We have old collect2
7945 hardcode_direct=unsupported
7946 # It fails to find uninstalled libraries when the uninstalled
7947 # path is not listed in the libpath. Setting hardcode_minus_L
7948 # to unsupported forces relinking
7949 hardcode_minus_L=yes
7950 hardcode_libdir_flag_spec='-L$libdir'
7951 hardcode_libdir_separator=
7952 fi
7953 ;;
7954 esac
7955 shared_flag='-shared'
7956 if test "$aix_use_runtimelinking" = yes; then
7957 shared_flag="$shared_flag "'${wl}-G'
7958 fi
7959 else
7960 # not using gcc
7961 if test "$host_cpu" = ia64; then
7962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7963 # chokes on -Wl,-G. The following line is correct:
7964 shared_flag='-G'
7965 else
7966 if test "$aix_use_runtimelinking" = yes; then
7967 shared_flag='${wl}-G'
7968 else
7969 shared_flag='${wl}-bM:SRE'
7970 fi
7971 fi
7972 fi
7973
7974 # It seems that -bexpall does not export symbols beginning with
7975 # underscore (_), so it is better to generate a list of symbols to export.
7976 always_export_symbols=yes
7977 if test "$aix_use_runtimelinking" = yes; then
7978 # Warning - without using the other runtime loading flags (-brtl),
7979 # -berok will link without error, but may produce a broken library.
7980 allow_undefined_flag='-berok'
7981 # Determine the default libpath from the value encoded in an empty executable.
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988
7989 int
7990 main ()
7991 {
7992
7993 ;
7994 return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (ac_try="$ac_link"
7999 case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8002 esac
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_link") 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest$ac_exeext &&
8014 $as_test_x conftest$ac_exeext; then
8015
8016 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8017 }'`
8018 # Check for a 64-bit object if we didn't find anything.
8019 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8020 }'`; fi
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025
8026 fi
8027
8028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8029 conftest$ac_exeext conftest.$ac_ext
8030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8031
8032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8033 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"
8034 else
8035 if test "$host_cpu" = ia64; then
8036 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8037 allow_undefined_flag="-z nodefs"
8038 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"
8039 else
8040 # Determine the default libpath from the value encoded in an empty executable.
8041 cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h. */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8047
8048 int
8049 main ()
8050 {
8051
8052 ;
8053 return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (ac_try="$ac_link"
8058 case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061 esac
8062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063 (eval "$ac_link") 2>conftest.er1
8064 ac_status=$?
8065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } && {
8070 test -z "$ac_c_werror_flag" ||
8071 test ! -s conftest.err
8072 } && test -s conftest$ac_exeext &&
8073 $as_test_x conftest$ac_exeext; then
8074
8075 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8076 }'`
8077 # Check for a 64-bit object if we didn't find anything.
8078 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8079 }'`; fi
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084
8085 fi
8086
8087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8088 conftest$ac_exeext conftest.$ac_ext
8089 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8090
8091 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8092 # Warning - without using the other run time loading flags,
8093 # -berok will link without error, but may produce a broken library.
8094 no_undefined_flag=' ${wl}-bernotok'
8095 allow_undefined_flag=' ${wl}-berok'
8096 # Exported symbols can be pulled into shared objects from archives
8097 whole_archive_flag_spec='$convenience'
8098 archive_cmds_need_lc=yes
8099 # This is similar to how AIX traditionally builds its shared libraries.
8100 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'
8101 fi
8102 fi
8103 ;;
8104
8105 amigaos*)
8106 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)'
8107 hardcode_libdir_flag_spec='-L$libdir'
8108 hardcode_minus_L=yes
8109 # see comment about different semantics on the GNU ld section
8110 ld_shlibs=no
8111 ;;
8112
8113 bsdi[45]*)
8114 export_dynamic_flag_spec=-rdynamic
8115 ;;
8116
8117 cygwin* | mingw* | pw32*)
8118 # When not using gcc, we currently assume that we are using
8119 # Microsoft Visual C++.
8120 # hardcode_libdir_flag_spec is actually meaningless, as there is
8121 # no search path for DLLs.
8122 hardcode_libdir_flag_spec=' '
8123 allow_undefined_flag=unsupported
8124 # Tell ltmain to make .lib files, not .a files.
8125 libext=lib
8126 # Tell ltmain to make .dll files, not .so files.
8127 shrext_cmds=".dll"
8128 # FIXME: Setting linknames here is a bad hack.
8129 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8130 # The linker will automatically build a .lib file if we build a DLL.
8131 old_archive_From_new_cmds='true'
8132 # FIXME: Should let the user specify the lib program.
8133 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8134 fix_srcfile_path='`cygpath -w "$srcfile"`'
8135 enable_shared_with_static_runtimes=yes
8136 ;;
8137
8138 darwin* | rhapsody*)
8139 case $host_os in
8140 rhapsody* | darwin1.[012])
8141 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8142 ;;
8143 *) # Darwin 1.3 on
8144 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8145 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8146 else
8147 case ${MACOSX_DEPLOYMENT_TARGET} in
8148 10.[012])
8149 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8150 ;;
8151 10.*)
8152 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8153 ;;
8154 esac
8155 fi
8156 ;;
8157 esac
8158 archive_cmds_need_lc=no
8159 hardcode_direct=no
8160 hardcode_automatic=yes
8161 hardcode_shlibpath_var=unsupported
8162 whole_archive_flag_spec=''
8163 link_all_deplibs=yes
8164 if test "$GCC" = yes ; then
8165 output_verbose_link_cmd='echo'
8166 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8167 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8168 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8169 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}'
8170 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}'
8171 else
8172 case $cc_basename in
8173 xlc*)
8174 output_verbose_link_cmd='echo'
8175 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8176 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8177 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8178 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8179 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}'
8180 ;;
8181 *)
8182 ld_shlibs=no
8183 ;;
8184 esac
8185 fi
8186 ;;
8187
8188 dgux*)
8189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8190 hardcode_libdir_flag_spec='-L$libdir'
8191 hardcode_shlibpath_var=no
8192 ;;
8193
8194 freebsd1*)
8195 ld_shlibs=no
8196 ;;
8197
8198 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8199 # support. Future versions do this automatically, but an explicit c++rt0.o
8200 # does not break anything, and helps significantly (at the cost of a little
8201 # extra space).
8202 freebsd2.2*)
8203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8204 hardcode_libdir_flag_spec='-R$libdir'
8205 hardcode_direct=yes
8206 hardcode_shlibpath_var=no
8207 ;;
8208
8209 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8210 freebsd2*)
8211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8212 hardcode_direct=yes
8213 hardcode_minus_L=yes
8214 hardcode_shlibpath_var=no
8215 ;;
8216
8217 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8218 freebsd* | kfreebsd*-gnu | dragonfly*)
8219 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8220 hardcode_libdir_flag_spec='-R$libdir'
8221 hardcode_direct=yes
8222 hardcode_shlibpath_var=no
8223 ;;
8224
8225 hpux9*)
8226 if test "$GCC" = yes; then
8227 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'
8228 else
8229 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'
8230 fi
8231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8232 hardcode_libdir_separator=:
8233 hardcode_direct=yes
8234
8235 # hardcode_minus_L: Not really in the search PATH,
8236 # but as the default location of the library.
8237 hardcode_minus_L=yes
8238 export_dynamic_flag_spec='${wl}-E'
8239 ;;
8240
8241 hpux10*)
8242 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8243 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8244 else
8245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8246 fi
8247 if test "$with_gnu_ld" = no; then
8248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8249 hardcode_libdir_separator=:
8250
8251 hardcode_direct=yes
8252 export_dynamic_flag_spec='${wl}-E'
8253
8254 # hardcode_minus_L: Not really in the search PATH,
8255 # but as the default location of the library.
8256 hardcode_minus_L=yes
8257 fi
8258 ;;
8259
8260 hpux11*)
8261 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8262 case $host_cpu in
8263 hppa*64*)
8264 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8265 ;;
8266 ia64*)
8267 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8268 ;;
8269 *)
8270 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8271 ;;
8272 esac
8273 else
8274 case $host_cpu in
8275 hppa*64*)
8276 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8277 ;;
8278 ia64*)
8279 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8280 ;;
8281 *)
8282 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8283 ;;
8284 esac
8285 fi
8286 if test "$with_gnu_ld" = no; then
8287 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8288 hardcode_libdir_separator=:
8289
8290 case $host_cpu in
8291 hppa*64*|ia64*)
8292 hardcode_libdir_flag_spec_ld='+b $libdir'
8293 hardcode_direct=no
8294 hardcode_shlibpath_var=no
8295 ;;
8296 *)
8297 hardcode_direct=yes
8298 export_dynamic_flag_spec='${wl}-E'
8299
8300 # hardcode_minus_L: Not really in the search PATH,
8301 # but as the default location of the library.
8302 hardcode_minus_L=yes
8303 ;;
8304 esac
8305 fi
8306 ;;
8307
8308 irix5* | irix6* | nonstopux*)
8309 if test "$GCC" = yes; then
8310 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'
8311 else
8312 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'
8313 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8314 fi
8315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8316 hardcode_libdir_separator=:
8317 link_all_deplibs=yes
8318 ;;
8319
8320 netbsd*)
8321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8322 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8323 else
8324 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8325 fi
8326 hardcode_libdir_flag_spec='-R$libdir'
8327 hardcode_direct=yes
8328 hardcode_shlibpath_var=no
8329 ;;
8330
8331 newsos6)
8332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8333 hardcode_direct=yes
8334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8335 hardcode_libdir_separator=:
8336 hardcode_shlibpath_var=no
8337 ;;
8338
8339 openbsd*)
8340 hardcode_direct=yes
8341 hardcode_shlibpath_var=no
8342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8344 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8346 export_dynamic_flag_spec='${wl}-E'
8347 else
8348 case $host_os in
8349 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8351 hardcode_libdir_flag_spec='-R$libdir'
8352 ;;
8353 *)
8354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8355 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8356 ;;
8357 esac
8358 fi
8359 ;;
8360
8361 os2*)
8362 hardcode_libdir_flag_spec='-L$libdir'
8363 hardcode_minus_L=yes
8364 allow_undefined_flag=unsupported
8365 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'
8366 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8367 ;;
8368
8369 osf3*)
8370 if test "$GCC" = yes; then
8371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8372 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'
8373 else
8374 allow_undefined_flag=' -expect_unresolved \*'
8375 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'
8376 fi
8377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8378 hardcode_libdir_separator=:
8379 ;;
8380
8381 osf4* | osf5*) # as osf3* with the addition of -msym flag
8382 if test "$GCC" = yes; then
8383 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8384 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'
8385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8386 else
8387 allow_undefined_flag=' -expect_unresolved \*'
8388 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'
8389 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8390 $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'
8391
8392 # Both c and cxx compiler support -rpath directly
8393 hardcode_libdir_flag_spec='-rpath $libdir'
8394 fi
8395 hardcode_libdir_separator=:
8396 ;;
8397
8398 solaris*)
8399 no_undefined_flag=' -z text'
8400 if test "$GCC" = yes; then
8401 wlarc='${wl}'
8402 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8403 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8404 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8405 else
8406 wlarc=''
8407 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8409 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8410 fi
8411 hardcode_libdir_flag_spec='-R$libdir'
8412 hardcode_shlibpath_var=no
8413 case $host_os in
8414 solaris2.[0-5] | solaris2.[0-5].*) ;;
8415 *)
8416 # The compiler driver will combine linker options so we
8417 # cannot just pass the convience library names through
8418 # without $wl, iff we do not link with $LD.
8419 # Luckily, gcc supports the same syntax we need for Sun Studio.
8420 # Supported since Solaris 2.6 (maybe 2.5.1?)
8421 case $wlarc in
8422 '')
8423 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8424 *)
8425 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8426 esac ;;
8427 esac
8428 link_all_deplibs=yes
8429 ;;
8430
8431 sunos4*)
8432 if test "x$host_vendor" = xsequent; then
8433 # Use $CC to link under sequent, because it throws in some extra .o
8434 # files that make .init and .fini sections work.
8435 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8436 else
8437 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8438 fi
8439 hardcode_libdir_flag_spec='-L$libdir'
8440 hardcode_direct=yes
8441 hardcode_minus_L=yes
8442 hardcode_shlibpath_var=no
8443 ;;
8444
8445 sysv4)
8446 case $host_vendor in
8447 sni)
8448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8449 hardcode_direct=yes # is this really true???
8450 ;;
8451 siemens)
8452 ## LD is ld it makes a PLAMLIB
8453 ## CC just makes a GrossModule.
8454 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8455 reload_cmds='$CC -r -o $output$reload_objs'
8456 hardcode_direct=no
8457 ;;
8458 motorola)
8459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8461 ;;
8462 esac
8463 runpath_var='LD_RUN_PATH'
8464 hardcode_shlibpath_var=no
8465 ;;
8466
8467 sysv4.3*)
8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_shlibpath_var=no
8470 export_dynamic_flag_spec='-Bexport'
8471 ;;
8472
8473 sysv4*MP*)
8474 if test -d /usr/nec; then
8475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8476 hardcode_shlibpath_var=no
8477 runpath_var=LD_RUN_PATH
8478 hardcode_runpath_var=yes
8479 ld_shlibs=yes
8480 fi
8481 ;;
8482
8483 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8484 no_undefined_flag='${wl}-z,text'
8485 archive_cmds_need_lc=no
8486 hardcode_shlibpath_var=no
8487 runpath_var='LD_RUN_PATH'
8488
8489 if test "$GCC" = yes; then
8490 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8491 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8492 else
8493 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8494 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8495 fi
8496 ;;
8497
8498 sysv5* | sco3.2v5* | sco5v6*)
8499 # Note: We can NOT use -z defs as we might desire, because we do not
8500 # link with -lc, and that would cause any symbols used from libc to
8501 # always be unresolved, which means just about no library would
8502 # ever link correctly. If we're not using GNU ld we use -z text
8503 # though, which does catch some bad symbols but isn't as heavy-handed
8504 # as -z defs.
8505 no_undefined_flag='${wl}-z,text'
8506 allow_undefined_flag='${wl}-z,nodefs'
8507 archive_cmds_need_lc=no
8508 hardcode_shlibpath_var=no
8509 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8510 hardcode_libdir_separator=':'
8511 link_all_deplibs=yes
8512 export_dynamic_flag_spec='${wl}-Bexport'
8513 runpath_var='LD_RUN_PATH'
8514
8515 if test "$GCC" = yes; then
8516 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8517 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8518 else
8519 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8521 fi
8522 ;;
8523
8524 uts4*)
8525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 hardcode_shlibpath_var=no
8528 ;;
8529
8530 *)
8531 ld_shlibs=no
8532 ;;
8533 esac
8534 fi
8535
8536 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8537 echo "${ECHO_T}$ld_shlibs" >&6; }
8538 test "$ld_shlibs" = no && can_build_shared=no
8539
8540 #
8541 # Do we need to explicitly link libc?
8542 #
8543 case "x$archive_cmds_need_lc" in
8544 x|xyes)
8545 # Assume -lc should be added
8546 archive_cmds_need_lc=yes
8547
8548 if test "$enable_shared" = yes && test "$GCC" = yes; then
8549 case $archive_cmds in
8550 *'~'*)
8551 # FIXME: we may have to deal with multi-command sequences.
8552 ;;
8553 '$CC '*)
8554 # Test whether the compiler implicitly links with -lc since on some
8555 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8556 # to ld, don't add -lc before -lgcc.
8557 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8558 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8559 $rm conftest*
8560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8561
8562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8563 (eval $ac_compile) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } 2>conftest.err; then
8567 soname=conftest
8568 lib=conftest
8569 libobjs=conftest.$ac_objext
8570 deplibs=
8571 wl=$lt_prog_compiler_wl
8572 pic_flag=$lt_prog_compiler_pic
8573 compiler_flags=-v
8574 linker_flags=-v
8575 verstring=
8576 output_objdir=.
8577 libname=conftest
8578 lt_save_allow_undefined_flag=$allow_undefined_flag
8579 allow_undefined_flag=
8580 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8581 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }
8585 then
8586 archive_cmds_need_lc=no
8587 else
8588 archive_cmds_need_lc=yes
8589 fi
8590 allow_undefined_flag=$lt_save_allow_undefined_flag
8591 else
8592 cat conftest.err 1>&5
8593 fi
8594 $rm conftest*
8595 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8596 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8597 ;;
8598 esac
8599 fi
8600 ;;
8601 esac
8602
8603 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8604 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8605 library_names_spec=
8606 libname_spec='lib$name'
8607 soname_spec=
8608 shrext_cmds=".so"
8609 postinstall_cmds=
8610 postuninstall_cmds=
8611 finish_cmds=
8612 finish_eval=
8613 shlibpath_var=
8614 shlibpath_overrides_runpath=unknown
8615 version_type=none
8616 dynamic_linker="$host_os ld.so"
8617 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8618 if test "$GCC" = yes; then
8619 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8620 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8621 # if the path contains ";" then we assume it to be the separator
8622 # otherwise default to the standard path separator (i.e. ":") - it is
8623 # assumed that no part of a normal pathname contains ";" but that should
8624 # okay in the real world where ";" in dirpaths is itself problematic.
8625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8626 else
8627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8628 fi
8629 else
8630 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8631 fi
8632 need_lib_prefix=unknown
8633 hardcode_into_libs=no
8634
8635 # when you set need_version to no, make sure it does not cause -set_version
8636 # flags to be left without arguments
8637 need_version=unknown
8638
8639 case $host_os in
8640 aix3*)
8641 version_type=linux
8642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8643 shlibpath_var=LIBPATH
8644
8645 # AIX 3 has no versioning support, so we append a major version to the name.
8646 soname_spec='${libname}${release}${shared_ext}$major'
8647 ;;
8648
8649 aix4* | aix5*)
8650 version_type=linux
8651 need_lib_prefix=no
8652 need_version=no
8653 hardcode_into_libs=yes
8654 if test "$host_cpu" = ia64; then
8655 # AIX 5 supports IA64
8656 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8657 shlibpath_var=LD_LIBRARY_PATH
8658 else
8659 # With GCC up to 2.95.x, collect2 would create an import file
8660 # for dependence libraries. The import file would start with
8661 # the line `#! .'. This would cause the generated library to
8662 # depend on `.', always an invalid library. This was fixed in
8663 # development snapshots of GCC prior to 3.0.
8664 case $host_os in
8665 aix4 | aix4.[01] | aix4.[01].*)
8666 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8667 echo ' yes '
8668 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8669 :
8670 else
8671 can_build_shared=no
8672 fi
8673 ;;
8674 esac
8675 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8676 # soname into executable. Probably we can add versioning support to
8677 # collect2, so additional links can be useful in future.
8678 if test "$aix_use_runtimelinking" = yes; then
8679 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8680 # instead of lib<name>.a to let people know that these are not
8681 # typical AIX shared libraries.
8682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683 else
8684 # We preserve .a as extension for shared libraries through AIX4.2
8685 # and later when we are not doing run time linking.
8686 library_names_spec='${libname}${release}.a $libname.a'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8688 fi
8689 shlibpath_var=LIBPATH
8690 fi
8691 ;;
8692
8693 amigaos*)
8694 library_names_spec='$libname.ixlibrary $libname.a'
8695 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8696 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'
8697 ;;
8698
8699 beos*)
8700 library_names_spec='${libname}${shared_ext}'
8701 dynamic_linker="$host_os ld.so"
8702 shlibpath_var=LIBRARY_PATH
8703 ;;
8704
8705 bsdi[45]*)
8706 version_type=linux
8707 need_version=no
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8711 shlibpath_var=LD_LIBRARY_PATH
8712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8714 # the default ld.so.conf also contains /usr/contrib/lib and
8715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8716 # libtool to hard-code these into programs
8717 ;;
8718
8719 cygwin* | mingw* | pw32*)
8720 version_type=windows
8721 shrext_cmds=".dll"
8722 need_version=no
8723 need_lib_prefix=no
8724
8725 case $GCC,$host_os in
8726 yes,cygwin* | yes,mingw* | yes,pw32*)
8727 library_names_spec='$libname.dll.a'
8728 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8729 postinstall_cmds='base_file=`basename \${file}`~
8730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8731 dldir=$destdir/`dirname \$dlpath`~
8732 test -d \$dldir || mkdir -p \$dldir~
8733 $install_prog $dir/$dlname \$dldir/$dlname~
8734 chmod a+x \$dldir/$dlname'
8735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8736 dlpath=$dir/\$dldll~
8737 $rm \$dlpath'
8738 shlibpath_overrides_runpath=yes
8739
8740 case $host_os in
8741 cygwin*)
8742 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8743 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8744 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8745 ;;
8746 mingw*)
8747 # MinGW DLLs use traditional 'lib' prefix
8748 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8749 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8750 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8751 # It is most probably a Windows format PATH printed by
8752 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8753 # path with ; separators, and with drive letters. We can handle the
8754 # drive letters (cygwin fileutils understands them), so leave them,
8755 # especially as we might pass files found there to a mingw objdump,
8756 # which wouldn't understand a cygwinified path. Ahh.
8757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8758 else
8759 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8760 fi
8761 ;;
8762 pw32*)
8763 # pw32 DLLs use 'pw' prefix rather than 'lib'
8764 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765 ;;
8766 esac
8767 ;;
8768
8769 *)
8770 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8771 ;;
8772 esac
8773 dynamic_linker='Win32 ld.exe'
8774 # FIXME: first we should search . and the directory the executable is in
8775 shlibpath_var=PATH
8776 ;;
8777
8778 darwin* | rhapsody*)
8779 dynamic_linker="$host_os dyld"
8780 version_type=darwin
8781 need_lib_prefix=no
8782 need_version=no
8783 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8784 soname_spec='${libname}${release}${major}$shared_ext'
8785 shlibpath_overrides_runpath=yes
8786 shlibpath_var=DYLD_LIBRARY_PATH
8787 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8788 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8789 if test "$GCC" = yes; then
8790 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8791 else
8792 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8793 fi
8794 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8795 ;;
8796
8797 dgux*)
8798 version_type=linux
8799 need_lib_prefix=no
8800 need_version=no
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 shlibpath_var=LD_LIBRARY_PATH
8804 ;;
8805
8806 freebsd1*)
8807 dynamic_linker=no
8808 ;;
8809
8810 kfreebsd*-gnu)
8811 version_type=linux
8812 need_lib_prefix=no
8813 need_version=no
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 shlibpath_var=LD_LIBRARY_PATH
8817 shlibpath_overrides_runpath=no
8818 hardcode_into_libs=yes
8819 dynamic_linker='GNU ld.so'
8820 ;;
8821
8822 freebsd* | dragonfly*)
8823 # DragonFly does not have aout. When/if they implement a new
8824 # versioning mechanism, adjust this.
8825 if test -x /usr/bin/objformat; then
8826 objformat=`/usr/bin/objformat`
8827 else
8828 case $host_os in
8829 freebsd[123]*) objformat=aout ;;
8830 *) objformat=elf ;;
8831 esac
8832 fi
8833 version_type=freebsd-$objformat
8834 case $version_type in
8835 freebsd-elf*)
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8837 need_version=no
8838 need_lib_prefix=no
8839 ;;
8840 freebsd-*)
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8842 need_version=yes
8843 ;;
8844 esac
8845 shlibpath_var=LD_LIBRARY_PATH
8846 case $host_os in
8847 freebsd2*)
8848 shlibpath_overrides_runpath=yes
8849 ;;
8850 freebsd3.[01]* | freebsdelf3.[01]*)
8851 shlibpath_overrides_runpath=yes
8852 hardcode_into_libs=yes
8853 ;;
8854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8856 shlibpath_overrides_runpath=no
8857 hardcode_into_libs=yes
8858 ;;
8859 freebsd*) # from 4.6 on
8860 shlibpath_overrides_runpath=yes
8861 hardcode_into_libs=yes
8862 ;;
8863 esac
8864 ;;
8865
8866 gnu*)
8867 version_type=linux
8868 need_lib_prefix=no
8869 need_version=no
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 hardcode_into_libs=yes
8874 ;;
8875
8876 hpux9* | hpux10* | hpux11*)
8877 # Give a soname corresponding to the major version so that dld.sl refuses to
8878 # link against other versions.
8879 version_type=sunos
8880 need_lib_prefix=no
8881 need_version=no
8882 case $host_cpu in
8883 ia64*)
8884 shrext_cmds='.so'
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.so"
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 if test "X$HPUX_IA64_MODE" = X32; then
8892 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8893 else
8894 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8895 fi
8896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8897 ;;
8898 hppa*64*)
8899 shrext_cmds='.sl'
8900 hardcode_into_libs=yes
8901 dynamic_linker="$host_os dld.sl"
8902 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908 ;;
8909 *)
8910 shrext_cmds='.sl'
8911 dynamic_linker="$host_os dld.sl"
8912 shlibpath_var=SHLIB_PATH
8913 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 ;;
8917 esac
8918 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8919 postinstall_cmds='chmod 555 $lib'
8920 ;;
8921
8922 interix3*)
8923 version_type=linux
8924 need_lib_prefix=no
8925 need_version=no
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=no
8931 hardcode_into_libs=yes
8932 ;;
8933
8934 irix5* | irix6* | nonstopux*)
8935 case $host_os in
8936 nonstopux*) version_type=nonstopux ;;
8937 *)
8938 if test "$lt_cv_prog_gnu_ld" = yes; then
8939 version_type=linux
8940 else
8941 version_type=irix
8942 fi ;;
8943 esac
8944 need_lib_prefix=no
8945 need_version=no
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8948 case $host_os in
8949 irix5* | nonstopux*)
8950 libsuff= shlibsuff=
8951 ;;
8952 *)
8953 case $LD in # libtool.m4 will add one of these switches to LD
8954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8955 libsuff= shlibsuff= libmagic=32-bit;;
8956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8957 libsuff=32 shlibsuff=N32 libmagic=N32;;
8958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8960 *) libsuff= shlibsuff= libmagic=never-match;;
8961 esac
8962 ;;
8963 esac
8964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8965 shlibpath_overrides_runpath=no
8966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8968 hardcode_into_libs=yes
8969 ;;
8970
8971 # No shared lib support for Linux oldld, aout, or coff.
8972 linux*oldld* | linux*aout* | linux*coff*)
8973 dynamic_linker=no
8974 ;;
8975
8976 # This must be Linux ELF.
8977 linux*)
8978 version_type=linux
8979 need_lib_prefix=no
8980 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 # This implies no fast_install, which is unacceptable.
8987 # Some rework will be needed to allow for fast_install
8988 # before this can be enabled.
8989 hardcode_into_libs=yes
8990
8991 # find out which ABI we are using
8992 libsuff=
8993 case "$host_cpu" in
8994 x86_64*|s390x*|powerpc64*)
8995 echo '#line 8995 "configure"' > conftest.$ac_ext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8997 (eval $ac_compile) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; then
9001 case `/usr/bin/file conftest.$ac_objext` in
9002 *64-bit*)
9003 libsuff=64
9004 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9005 ;;
9006 esac
9007 fi
9008 rm -rf conftest*
9009 ;;
9010 esac
9011
9012 # Append ld.so.conf contents to the search path
9013 if test -f /etc/ld.so.conf; then
9014 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9015 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9016 fi
9017
9018 # We used to test for /lib/ld.so.1 and disable shared libraries on
9019 # powerpc, because MkLinux only supported shared libraries with the
9020 # GNU dynamic linker. Since this was broken with cross compilers,
9021 # most powerpc-linux boxes support dynamic linking these days and
9022 # people can always --disable-shared, the test was removed, and we
9023 # assume the GNU/Linux dynamic linker is in use.
9024 dynamic_linker='GNU/Linux ld.so'
9025 ;;
9026
9027 knetbsd*-gnu)
9028 version_type=linux
9029 need_lib_prefix=no
9030 need_version=no
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 shlibpath_overrides_runpath=no
9035 hardcode_into_libs=yes
9036 dynamic_linker='GNU ld.so'
9037 ;;
9038
9039 netbsd*)
9040 version_type=sunos
9041 need_lib_prefix=no
9042 need_version=no
9043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9046 dynamic_linker='NetBSD (a.out) ld.so'
9047 else
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 dynamic_linker='NetBSD ld.elf_so'
9051 fi
9052 shlibpath_var=LD_LIBRARY_PATH
9053 shlibpath_overrides_runpath=yes
9054 hardcode_into_libs=yes
9055 ;;
9056
9057 newsos6)
9058 version_type=linux
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 ;;
9063
9064 nto-qnx*)
9065 version_type=linux
9066 need_lib_prefix=no
9067 need_version=no
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=yes
9072 ;;
9073
9074 openbsd*)
9075 version_type=sunos
9076 sys_lib_dlsearch_path_spec="/usr/lib"
9077 need_lib_prefix=no
9078 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9079 case $host_os in
9080 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9081 *) need_version=no ;;
9082 esac
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9087 case $host_os in
9088 openbsd2.[89] | openbsd2.[89].*)
9089 shlibpath_overrides_runpath=no
9090 ;;
9091 *)
9092 shlibpath_overrides_runpath=yes
9093 ;;
9094 esac
9095 else
9096 shlibpath_overrides_runpath=yes
9097 fi
9098 ;;
9099
9100 os2*)
9101 libname_spec='$name'
9102 shrext_cmds=".dll"
9103 need_lib_prefix=no
9104 library_names_spec='$libname${shared_ext} $libname.a'
9105 dynamic_linker='OS/2 ld.exe'
9106 shlibpath_var=LIBPATH
9107 ;;
9108
9109 osf3* | osf4* | osf5*)
9110 version_type=osf
9111 need_lib_prefix=no
9112 need_version=no
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9117 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9118 ;;
9119
9120 solaris*)
9121 version_type=linux
9122 need_lib_prefix=no
9123 need_version=no
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=yes
9128 hardcode_into_libs=yes
9129 # ldd complains unless libraries are executable
9130 postinstall_cmds='chmod +x $lib'
9131 ;;
9132
9133 sunos4*)
9134 version_type=sunos
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=yes
9139 if test "$with_gnu_ld" = yes; then
9140 need_lib_prefix=no
9141 fi
9142 need_version=yes
9143 ;;
9144
9145 sysv4 | sysv4.3*)
9146 version_type=linux
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 case $host_vendor in
9151 sni)
9152 shlibpath_overrides_runpath=no
9153 need_lib_prefix=no
9154 export_dynamic_flag_spec='${wl}-Blargedynsym'
9155 runpath_var=LD_RUN_PATH
9156 ;;
9157 siemens)
9158 need_lib_prefix=no
9159 ;;
9160 motorola)
9161 need_lib_prefix=no
9162 need_version=no
9163 shlibpath_overrides_runpath=no
9164 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9165 ;;
9166 esac
9167 ;;
9168
9169 sysv4*MP*)
9170 if test -d /usr/nec ;then
9171 version_type=linux
9172 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9173 soname_spec='$libname${shared_ext}.$major'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 fi
9176 ;;
9177
9178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9179 version_type=freebsd-elf
9180 need_lib_prefix=no
9181 need_version=no
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 hardcode_into_libs=yes
9186 if test "$with_gnu_ld" = yes; then
9187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9188 shlibpath_overrides_runpath=no
9189 else
9190 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9191 shlibpath_overrides_runpath=yes
9192 case $host_os in
9193 sco3.2v5*)
9194 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9195 ;;
9196 esac
9197 fi
9198 sys_lib_dlsearch_path_spec='/usr/lib'
9199 ;;
9200
9201 uts4*)
9202 version_type=linux
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 ;;
9207
9208 *)
9209 dynamic_linker=no
9210 ;;
9211 esac
9212 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9213 echo "${ECHO_T}$dynamic_linker" >&6; }
9214 test "$dynamic_linker" = no && can_build_shared=no
9215
9216 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9217 if test "$GCC" = yes; then
9218 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9219 fi
9220
9221 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9222 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9223 hardcode_action=
9224 if test -n "$hardcode_libdir_flag_spec" || \
9225 test -n "$runpath_var" || \
9226 test "X$hardcode_automatic" = "Xyes" ; then
9227
9228 # We can hardcode non-existant directories.
9229 if test "$hardcode_direct" != no &&
9230 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9231 # have to relink, otherwise we might link with an installed library
9232 # when we should be linking with a yet-to-be-installed one
9233 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9234 test "$hardcode_minus_L" != no; then
9235 # Linking always hardcodes the temporary library directory.
9236 hardcode_action=relink
9237 else
9238 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9239 hardcode_action=immediate
9240 fi
9241 else
9242 # We cannot hardcode anything, or else we can only hardcode existing
9243 # directories.
9244 hardcode_action=unsupported
9245 fi
9246 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9247 echo "${ECHO_T}$hardcode_action" >&6; }
9248
9249 if test "$hardcode_action" = relink; then
9250 # Fast installation is not supported
9251 enable_fast_install=no
9252 elif test "$shlibpath_overrides_runpath" = yes ||
9253 test "$enable_shared" = no; then
9254 # Fast installation is not necessary
9255 enable_fast_install=needless
9256 fi
9257
9258 striplib=
9259 old_striplib=
9260 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9261 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9262 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9263 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9264 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9265 { echo "$as_me:$LINENO: result: yes" >&5
9266 echo "${ECHO_T}yes" >&6; }
9267 else
9268 # FIXME - insert some real tests, host_os isn't really good enough
9269 case $host_os in
9270 darwin*)
9271 if test -n "$STRIP" ; then
9272 striplib="$STRIP -x"
9273 { echo "$as_me:$LINENO: result: yes" >&5
9274 echo "${ECHO_T}yes" >&6; }
9275 else
9276 { echo "$as_me:$LINENO: result: no" >&5
9277 echo "${ECHO_T}no" >&6; }
9278 fi
9279 ;;
9280 *)
9281 { echo "$as_me:$LINENO: result: no" >&5
9282 echo "${ECHO_T}no" >&6; }
9283 ;;
9284 esac
9285 fi
9286
9287 if test "x$enable_dlopen" != xyes; then
9288 enable_dlopen=unknown
9289 enable_dlopen_self=unknown
9290 enable_dlopen_self_static=unknown
9291 else
9292 lt_cv_dlopen=no
9293 lt_cv_dlopen_libs=
9294
9295 case $host_os in
9296 beos*)
9297 lt_cv_dlopen="load_add_on"
9298 lt_cv_dlopen_libs=
9299 lt_cv_dlopen_self=yes
9300 ;;
9301
9302 mingw* | pw32*)
9303 lt_cv_dlopen="LoadLibrary"
9304 lt_cv_dlopen_libs=
9305 ;;
9306
9307 cygwin*)
9308 lt_cv_dlopen="dlopen"
9309 lt_cv_dlopen_libs=
9310 ;;
9311
9312 darwin*)
9313 # if libdl is installed we need to link against it
9314 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9315 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9316 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319 ac_check_lib_save_LIBS=$LIBS
9320 LIBS="-ldl $LIBS"
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h. */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 char dlopen ();
9335 int
9336 main ()
9337 {
9338 return dlopen ();
9339 ;
9340 return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9345 case "(($ac_try" in
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9348 esac
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350 (eval "$ac_link") 2>conftest.er1
9351 ac_status=$?
9352 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } && {
9357 test -z "$ac_c_werror_flag" ||
9358 test ! -s conftest.err
9359 } && test -s conftest$ac_exeext &&
9360 $as_test_x conftest$ac_exeext; then
9361 ac_cv_lib_dl_dlopen=yes
9362 else
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366 ac_cv_lib_dl_dlopen=no
9367 fi
9368
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370 conftest$ac_exeext conftest.$ac_ext
9371 LIBS=$ac_check_lib_save_LIBS
9372 fi
9373 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9374 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9375 if test $ac_cv_lib_dl_dlopen = yes; then
9376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9377 else
9378
9379 lt_cv_dlopen="dyld"
9380 lt_cv_dlopen_libs=
9381 lt_cv_dlopen_self=yes
9382
9383 fi
9384
9385 ;;
9386
9387 *)
9388 { echo "$as_me:$LINENO: checking for shl_load" >&5
9389 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9390 if test "${ac_cv_func_shl_load+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h. */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9401 #define shl_load innocuous_shl_load
9402
9403 /* System header to define __stub macros and hopefully few prototypes,
9404 which can conflict with char shl_load (); below.
9405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9406 <limits.h> exists even on freestanding compilers. */
9407
9408 #ifdef __STDC__
9409 # include <limits.h>
9410 #else
9411 # include <assert.h>
9412 #endif
9413
9414 #undef shl_load
9415
9416 /* Override any GCC internal prototype to avoid an error.
9417 Use char because int might match the return type of a GCC
9418 builtin and then its argument prototype would still apply. */
9419 #ifdef __cplusplus
9420 extern "C"
9421 #endif
9422 char shl_load ();
9423 /* The GNU C library defines this for functions which it implements
9424 to always fail with ENOSYS. Some functions are actually named
9425 something starting with __ and the normal name is an alias. */
9426 #if defined __stub_shl_load || defined __stub___shl_load
9427 choke me
9428 #endif
9429
9430 int
9431 main ()
9432 {
9433 return shl_load ();
9434 ;
9435 return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (ac_try="$ac_link"
9440 case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest$ac_exeext &&
9455 $as_test_x conftest$ac_exeext; then
9456 ac_cv_func_shl_load=yes
9457 else
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 ac_cv_func_shl_load=no
9462 fi
9463
9464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9465 conftest$ac_exeext conftest.$ac_ext
9466 fi
9467 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9468 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9469 if test $ac_cv_func_shl_load = yes; then
9470 lt_cv_dlopen="shl_load"
9471 else
9472 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9473 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9474 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477 ac_check_lib_save_LIBS=$LIBS
9478 LIBS="-ldld $LIBS"
9479 cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h. */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485
9486 /* Override any GCC internal prototype to avoid an error.
9487 Use char because int might match the return type of a GCC
9488 builtin and then its argument prototype would still apply. */
9489 #ifdef __cplusplus
9490 extern "C"
9491 #endif
9492 char shl_load ();
9493 int
9494 main ()
9495 {
9496 return shl_load ();
9497 ;
9498 return 0;
9499 }
9500 _ACEOF
9501 rm -f conftest.$ac_objext conftest$ac_exeext
9502 if { (ac_try="$ac_link"
9503 case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_link") 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest$ac_exeext &&
9518 $as_test_x conftest$ac_exeext; then
9519 ac_cv_lib_dld_shl_load=yes
9520 else
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9523
9524 ac_cv_lib_dld_shl_load=no
9525 fi
9526
9527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9528 conftest$ac_exeext conftest.$ac_ext
9529 LIBS=$ac_check_lib_save_LIBS
9530 fi
9531 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9532 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9533 if test $ac_cv_lib_dld_shl_load = yes; then
9534 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9535 else
9536 { echo "$as_me:$LINENO: checking for dlopen" >&5
9537 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9538 if test "${ac_cv_func_dlopen+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h. */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9549 #define dlopen innocuous_dlopen
9550
9551 /* System header to define __stub macros and hopefully few prototypes,
9552 which can conflict with char dlopen (); below.
9553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9554 <limits.h> exists even on freestanding compilers. */
9555
9556 #ifdef __STDC__
9557 # include <limits.h>
9558 #else
9559 # include <assert.h>
9560 #endif
9561
9562 #undef dlopen
9563
9564 /* Override any GCC internal prototype to avoid an error.
9565 Use char because int might match the return type of a GCC
9566 builtin and then its argument prototype would still apply. */
9567 #ifdef __cplusplus
9568 extern "C"
9569 #endif
9570 char dlopen ();
9571 /* The GNU C library defines this for functions which it implements
9572 to always fail with ENOSYS. Some functions are actually named
9573 something starting with __ and the normal name is an alias. */
9574 #if defined __stub_dlopen || defined __stub___dlopen
9575 choke me
9576 #endif
9577
9578 int
9579 main ()
9580 {
9581 return dlopen ();
9582 ;
9583 return 0;
9584 }
9585 _ACEOF
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (ac_try="$ac_link"
9588 case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_link") 2>conftest.er1
9594 ac_status=$?
9595 grep -v '^ *+' conftest.er1 >conftest.err
9596 rm -f conftest.er1
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } && {
9600 test -z "$ac_c_werror_flag" ||
9601 test ! -s conftest.err
9602 } && test -s conftest$ac_exeext &&
9603 $as_test_x conftest$ac_exeext; then
9604 ac_cv_func_dlopen=yes
9605 else
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609 ac_cv_func_dlopen=no
9610 fi
9611
9612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9613 conftest$ac_exeext conftest.$ac_ext
9614 fi
9615 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9616 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9617 if test $ac_cv_func_dlopen = yes; then
9618 lt_cv_dlopen="dlopen"
9619 else
9620 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9621 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9622 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625 ac_check_lib_save_LIBS=$LIBS
9626 LIBS="-ldl $LIBS"
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h. */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char dlopen ();
9641 int
9642 main ()
9643 {
9644 return dlopen ();
9645 ;
9646 return 0;
9647 }
9648 _ACEOF
9649 rm -f conftest.$ac_objext conftest$ac_exeext
9650 if { (ac_try="$ac_link"
9651 case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654 esac
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_link") 2>conftest.er1
9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest$ac_exeext &&
9666 $as_test_x conftest$ac_exeext; then
9667 ac_cv_lib_dl_dlopen=yes
9668 else
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672 ac_cv_lib_dl_dlopen=no
9673 fi
9674
9675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LIBS=$ac_check_lib_save_LIBS
9678 fi
9679 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9680 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9681 if test $ac_cv_lib_dl_dlopen = yes; then
9682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9683 else
9684 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9685 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9686 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 ac_check_lib_save_LIBS=$LIBS
9690 LIBS="-lsvld $LIBS"
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h. */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697
9698 /* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9701 #ifdef __cplusplus
9702 extern "C"
9703 #endif
9704 char dlopen ();
9705 int
9706 main ()
9707 {
9708 return dlopen ();
9709 ;
9710 return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (ac_try="$ac_link"
9715 case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest$ac_exeext &&
9730 $as_test_x conftest$ac_exeext; then
9731 ac_cv_lib_svld_dlopen=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9735
9736 ac_cv_lib_svld_dlopen=no
9737 fi
9738
9739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740 conftest$ac_exeext conftest.$ac_ext
9741 LIBS=$ac_check_lib_save_LIBS
9742 fi
9743 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9744 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9745 if test $ac_cv_lib_svld_dlopen = yes; then
9746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9747 else
9748 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9749 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9750 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753 ac_check_lib_save_LIBS=$LIBS
9754 LIBS="-ldld $LIBS"
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h. */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761
9762 /* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
9765 #ifdef __cplusplus
9766 extern "C"
9767 #endif
9768 char dld_link ();
9769 int
9770 main ()
9771 {
9772 return dld_link ();
9773 ;
9774 return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (ac_try="$ac_link"
9779 case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782 esac
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_link") 2>conftest.er1
9785 ac_status=$?
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && {
9791 test -z "$ac_c_werror_flag" ||
9792 test ! -s conftest.err
9793 } && test -s conftest$ac_exeext &&
9794 $as_test_x conftest$ac_exeext; then
9795 ac_cv_lib_dld_dld_link=yes
9796 else
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800 ac_cv_lib_dld_dld_link=no
9801 fi
9802
9803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9804 conftest$ac_exeext conftest.$ac_ext
9805 LIBS=$ac_check_lib_save_LIBS
9806 fi
9807 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9808 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9809 if test $ac_cv_lib_dld_dld_link = yes; then
9810 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9811 fi
9812
9813
9814 fi
9815
9816
9817 fi
9818
9819
9820 fi
9821
9822
9823 fi
9824
9825
9826 fi
9827
9828 ;;
9829 esac
9830
9831 if test "x$lt_cv_dlopen" != xno; then
9832 enable_dlopen=yes
9833 else
9834 enable_dlopen=no
9835 fi
9836
9837 case $lt_cv_dlopen in
9838 dlopen)
9839 save_CPPFLAGS="$CPPFLAGS"
9840 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9841
9842 save_LDFLAGS="$LDFLAGS"
9843 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9844
9845 save_LIBS="$LIBS"
9846 LIBS="$lt_cv_dlopen_libs $LIBS"
9847
9848 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9849 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9850 if test "${lt_cv_dlopen_self+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853 if test "$cross_compiling" = yes; then :
9854 lt_cv_dlopen_self=cross
9855 else
9856 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9857 lt_status=$lt_dlunknown
9858 cat > conftest.$ac_ext <<EOF
9859 #line 9859 "configure"
9860 #include "confdefs.h"
9861
9862 #if HAVE_DLFCN_H
9863 #include <dlfcn.h>
9864 #endif
9865
9866 #include <stdio.h>
9867
9868 #ifdef RTLD_GLOBAL
9869 # define LT_DLGLOBAL RTLD_GLOBAL
9870 #else
9871 # ifdef DL_GLOBAL
9872 # define LT_DLGLOBAL DL_GLOBAL
9873 # else
9874 # define LT_DLGLOBAL 0
9875 # endif
9876 #endif
9877
9878 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9879 find out it does not work in some platform. */
9880 #ifndef LT_DLLAZY_OR_NOW
9881 # ifdef RTLD_LAZY
9882 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9883 # else
9884 # ifdef DL_LAZY
9885 # define LT_DLLAZY_OR_NOW DL_LAZY
9886 # else
9887 # ifdef RTLD_NOW
9888 # define LT_DLLAZY_OR_NOW RTLD_NOW
9889 # else
9890 # ifdef DL_NOW
9891 # define LT_DLLAZY_OR_NOW DL_NOW
9892 # else
9893 # define LT_DLLAZY_OR_NOW 0
9894 # endif
9895 # endif
9896 # endif
9897 # endif
9898 #endif
9899
9900 #ifdef __cplusplus
9901 extern "C" void exit (int);
9902 #endif
9903
9904 void fnord() { int i=42;}
9905 int main ()
9906 {
9907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9908 int status = $lt_dlunknown;
9909
9910 if (self)
9911 {
9912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9913 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9914 /* dlclose (self); */
9915 }
9916 else
9917 puts (dlerror ());
9918
9919 exit (status);
9920 }
9921 EOF
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9927 (./conftest; exit; ) >&5 2>/dev/null
9928 lt_status=$?
9929 case x$lt_status in
9930 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9931 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9932 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9933 esac
9934 else :
9935 # compilation failed
9936 lt_cv_dlopen_self=no
9937 fi
9938 fi
9939 rm -fr conftest*
9940
9941
9942 fi
9943 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9944 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9945
9946 if test "x$lt_cv_dlopen_self" = xyes; then
9947 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9948 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9949 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9950 if test "${lt_cv_dlopen_self_static+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953 if test "$cross_compiling" = yes; then :
9954 lt_cv_dlopen_self_static=cross
9955 else
9956 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9957 lt_status=$lt_dlunknown
9958 cat > conftest.$ac_ext <<EOF
9959 #line 9959 "configure"
9960 #include "confdefs.h"
9961
9962 #if HAVE_DLFCN_H
9963 #include <dlfcn.h>
9964 #endif
9965
9966 #include <stdio.h>
9967
9968 #ifdef RTLD_GLOBAL
9969 # define LT_DLGLOBAL RTLD_GLOBAL
9970 #else
9971 # ifdef DL_GLOBAL
9972 # define LT_DLGLOBAL DL_GLOBAL
9973 # else
9974 # define LT_DLGLOBAL 0
9975 # endif
9976 #endif
9977
9978 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9979 find out it does not work in some platform. */
9980 #ifndef LT_DLLAZY_OR_NOW
9981 # ifdef RTLD_LAZY
9982 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9983 # else
9984 # ifdef DL_LAZY
9985 # define LT_DLLAZY_OR_NOW DL_LAZY
9986 # else
9987 # ifdef RTLD_NOW
9988 # define LT_DLLAZY_OR_NOW RTLD_NOW
9989 # else
9990 # ifdef DL_NOW
9991 # define LT_DLLAZY_OR_NOW DL_NOW
9992 # else
9993 # define LT_DLLAZY_OR_NOW 0
9994 # endif
9995 # endif
9996 # endif
9997 # endif
9998 #endif
9999
10000 #ifdef __cplusplus
10001 extern "C" void exit (int);
10002 #endif
10003
10004 void fnord() { int i=42;}
10005 int main ()
10006 {
10007 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10008 int status = $lt_dlunknown;
10009
10010 if (self)
10011 {
10012 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10013 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10014 /* dlclose (self); */
10015 }
10016 else
10017 puts (dlerror ());
10018
10019 exit (status);
10020 }
10021 EOF
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023 (eval $ac_link) 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10027 (./conftest; exit; ) >&5 2>/dev/null
10028 lt_status=$?
10029 case x$lt_status in
10030 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10031 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10032 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10033 esac
10034 else :
10035 # compilation failed
10036 lt_cv_dlopen_self_static=no
10037 fi
10038 fi
10039 rm -fr conftest*
10040
10041
10042 fi
10043 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10044 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10045 fi
10046
10047 CPPFLAGS="$save_CPPFLAGS"
10048 LDFLAGS="$save_LDFLAGS"
10049 LIBS="$save_LIBS"
10050 ;;
10051 esac
10052
10053 case $lt_cv_dlopen_self in
10054 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10055 *) enable_dlopen_self=unknown ;;
10056 esac
10057
10058 case $lt_cv_dlopen_self_static in
10059 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10060 *) enable_dlopen_self_static=unknown ;;
10061 esac
10062 fi
10063
10064
10065 # Report which library types will actually be built
10066 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10067 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10068 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10069 echo "${ECHO_T}$can_build_shared" >&6; }
10070
10071 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10072 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10073 test "$can_build_shared" = "no" && enable_shared=no
10074
10075 # On AIX, shared libraries and static libraries use the same namespace, and
10076 # are all built from PIC.
10077 case $host_os in
10078 aix3*)
10079 test "$enable_shared" = yes && enable_static=no
10080 if test -n "$RANLIB"; then
10081 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10082 postinstall_cmds='$RANLIB $lib'
10083 fi
10084 ;;
10085
10086 aix4* | aix5*)
10087 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10088 test "$enable_shared" = yes && enable_static=no
10089 fi
10090 ;;
10091 esac
10092 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10093 echo "${ECHO_T}$enable_shared" >&6; }
10094
10095 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10096 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10097 # Make sure either enable_shared or enable_static is yes.
10098 test "$enable_shared" = yes || enable_static=yes
10099 { echo "$as_me:$LINENO: result: $enable_static" >&5
10100 echo "${ECHO_T}$enable_static" >&6; }
10101
10102 # The else clause should only fire when bootstrapping the
10103 # libtool distribution, otherwise you forgot to ship ltmain.sh
10104 # with your package, and you will get complaints that there are
10105 # no rules to generate ltmain.sh.
10106 if test -f "$ltmain"; then
10107 # See if we are running on zsh, and set the options which allow our commands through
10108 # without removal of \ escapes.
10109 if test -n "${ZSH_VERSION+set}" ; then
10110 setopt NO_GLOB_SUBST
10111 fi
10112 # Now quote all the things that may contain metacharacters while being
10113 # careful not to overquote the AC_SUBSTed values. We take copies of the
10114 # variables and quote the copies for generation of the libtool script.
10115 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10116 SED SHELL STRIP \
10117 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10118 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10119 deplibs_check_method reload_flag reload_cmds need_locks \
10120 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10121 lt_cv_sys_global_symbol_to_c_name_address \
10122 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10123 old_postinstall_cmds old_postuninstall_cmds \
10124 compiler \
10125 CC \
10126 LD \
10127 lt_prog_compiler_wl \
10128 lt_prog_compiler_pic \
10129 lt_prog_compiler_static \
10130 lt_prog_compiler_no_builtin_flag \
10131 export_dynamic_flag_spec \
10132 thread_safe_flag_spec \
10133 whole_archive_flag_spec \
10134 enable_shared_with_static_runtimes \
10135 old_archive_cmds \
10136 old_archive_from_new_cmds \
10137 predep_objects \
10138 postdep_objects \
10139 predeps \
10140 postdeps \
10141 compiler_lib_search_path \
10142 archive_cmds \
10143 archive_expsym_cmds \
10144 postinstall_cmds \
10145 postuninstall_cmds \
10146 old_archive_from_expsyms_cmds \
10147 allow_undefined_flag \
10148 no_undefined_flag \
10149 export_symbols_cmds \
10150 hardcode_libdir_flag_spec \
10151 hardcode_libdir_flag_spec_ld \
10152 hardcode_libdir_separator \
10153 hardcode_automatic \
10154 module_cmds \
10155 module_expsym_cmds \
10156 lt_cv_prog_compiler_c_o \
10157 exclude_expsyms \
10158 include_expsyms; do
10159
10160 case $var in
10161 old_archive_cmds | \
10162 old_archive_from_new_cmds | \
10163 archive_cmds | \
10164 archive_expsym_cmds | \
10165 module_cmds | \
10166 module_expsym_cmds | \
10167 old_archive_from_expsyms_cmds | \
10168 export_symbols_cmds | \
10169 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10170 postinstall_cmds | postuninstall_cmds | \
10171 old_postinstall_cmds | old_postuninstall_cmds | \
10172 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10173 # Double-quote double-evaled strings.
10174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10175 ;;
10176 *)
10177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10178 ;;
10179 esac
10180 done
10181
10182 case $lt_echo in
10183 *'\$0 --fallback-echo"')
10184 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10185 ;;
10186 esac
10187
10188 cfgfile="${ofile}T"
10189 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10190 $rm -f "$cfgfile"
10191 { echo "$as_me:$LINENO: creating $ofile" >&5
10192 echo "$as_me: creating $ofile" >&6;}
10193
10194 cat <<__EOF__ >> "$cfgfile"
10195 #! $SHELL
10196
10197 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10198 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10199 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10200 #
10201 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10202 # Free Software Foundation, Inc.
10203 #
10204 # This file is part of GNU Libtool:
10205 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10206 #
10207 # This program is free software; you can redistribute it and/or modify
10208 # it under the terms of the GNU General Public License as published by
10209 # the Free Software Foundation; either version 2 of the License, or
10210 # (at your option) any later version.
10211 #
10212 # This program is distributed in the hope that it will be useful, but
10213 # WITHOUT ANY WARRANTY; without even the implied warranty of
10214 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10215 # General Public License for more details.
10216 #
10217 # You should have received a copy of the GNU General Public License
10218 # along with this program; if not, write to the Free Software
10219 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10220 #
10221 # As a special exception to the GNU General Public License, if you
10222 # distribute this file as part of a program that contains a
10223 # configuration script generated by Autoconf, you may include it under
10224 # the same distribution terms that you use for the rest of that program.
10225
10226 # A sed program that does not truncate output.
10227 SED=$lt_SED
10228
10229 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10230 Xsed="$SED -e 1s/^X//"
10231
10232 # The HP-UX ksh and POSIX shell print the target directory to stdout
10233 # if CDPATH is set.
10234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10235
10236 # The names of the tagged configurations supported by this script.
10237 available_tags=
10238
10239 # ### BEGIN LIBTOOL CONFIG
10240
10241 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10242
10243 # Shell to use when invoking shell scripts.
10244 SHELL=$lt_SHELL
10245
10246 # Whether or not to build shared libraries.
10247 build_libtool_libs=$enable_shared
10248
10249 # Whether or not to build static libraries.
10250 build_old_libs=$enable_static
10251
10252 # Whether or not to add -lc for building shared libraries.
10253 build_libtool_need_lc=$archive_cmds_need_lc
10254
10255 # Whether or not to disallow shared libs when runtime libs are static
10256 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10257
10258 # Whether or not to optimize for fast installation.
10259 fast_install=$enable_fast_install
10260
10261 # The host system.
10262 host_alias=$host_alias
10263 host=$host
10264 host_os=$host_os
10265
10266 # The build system.
10267 build_alias=$build_alias
10268 build=$build
10269 build_os=$build_os
10270
10271 # An echo program that does not interpret backslashes.
10272 echo=$lt_echo
10273
10274 # The archiver.
10275 AR=$lt_AR
10276 AR_FLAGS=$lt_AR_FLAGS
10277
10278 # A C compiler.
10279 LTCC=$lt_LTCC
10280
10281 # LTCC compiler flags.
10282 LTCFLAGS=$lt_LTCFLAGS
10283
10284 # A language-specific compiler.
10285 CC=$lt_compiler
10286
10287 # Is the compiler the GNU C compiler?
10288 with_gcc=$GCC
10289
10290 # An ERE matcher.
10291 EGREP=$lt_EGREP
10292
10293 # The linker used to build libraries.
10294 LD=$lt_LD
10295
10296 # Whether we need hard or soft links.
10297 LN_S=$lt_LN_S
10298
10299 # A BSD-compatible nm program.
10300 NM=$lt_NM
10301
10302 # A symbol stripping program
10303 STRIP=$lt_STRIP
10304
10305 # Used to examine libraries when file_magic_cmd begins "file"
10306 MAGIC_CMD=$MAGIC_CMD
10307
10308 # Used on cygwin: DLL creation program.
10309 DLLTOOL="$DLLTOOL"
10310
10311 # Used on cygwin: object dumper.
10312 OBJDUMP="$OBJDUMP"
10313
10314 # Used on cygwin: assembler.
10315 AS="$AS"
10316
10317 # The name of the directory that contains temporary libtool files.
10318 objdir=$objdir
10319
10320 # How to create reloadable object files.
10321 reload_flag=$lt_reload_flag
10322 reload_cmds=$lt_reload_cmds
10323
10324 # How to pass a linker flag through the compiler.
10325 wl=$lt_lt_prog_compiler_wl
10326
10327 # Object file suffix (normally "o").
10328 objext="$ac_objext"
10329
10330 # Old archive suffix (normally "a").
10331 libext="$libext"
10332
10333 # Shared library suffix (normally ".so").
10334 shrext_cmds='$shrext_cmds'
10335
10336 # Executable file suffix (normally "").
10337 exeext="$exeext"
10338
10339 # Additional compiler flags for building library objects.
10340 pic_flag=$lt_lt_prog_compiler_pic
10341 pic_mode=$pic_mode
10342
10343 # What is the maximum length of a command?
10344 max_cmd_len=$lt_cv_sys_max_cmd_len
10345
10346 # Does compiler simultaneously support -c and -o options?
10347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10348
10349 # Must we lock files when doing compilation?
10350 need_locks=$lt_need_locks
10351
10352 # Do we need the lib prefix for modules?
10353 need_lib_prefix=$need_lib_prefix
10354
10355 # Do we need a version for libraries?
10356 need_version=$need_version
10357
10358 # Whether dlopen is supported.
10359 dlopen_support=$enable_dlopen
10360
10361 # Whether dlopen of programs is supported.
10362 dlopen_self=$enable_dlopen_self
10363
10364 # Whether dlopen of statically linked programs is supported.
10365 dlopen_self_static=$enable_dlopen_self_static
10366
10367 # Compiler flag to prevent dynamic linking.
10368 link_static_flag=$lt_lt_prog_compiler_static
10369
10370 # Compiler flag to turn off builtin functions.
10371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10372
10373 # Compiler flag to allow reflexive dlopens.
10374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10375
10376 # Compiler flag to generate shared objects directly from archives.
10377 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10378
10379 # Compiler flag to generate thread-safe objects.
10380 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10381
10382 # Library versioning type.
10383 version_type=$version_type
10384
10385 # Format of library name prefix.
10386 libname_spec=$lt_libname_spec
10387
10388 # List of archive names. First name is the real one, the rest are links.
10389 # The last name is the one that the linker finds with -lNAME.
10390 library_names_spec=$lt_library_names_spec
10391
10392 # The coded name of the library, if different from the real name.
10393 soname_spec=$lt_soname_spec
10394
10395 # Commands used to build and install an old-style archive.
10396 RANLIB=$lt_RANLIB
10397 old_archive_cmds=$lt_old_archive_cmds
10398 old_postinstall_cmds=$lt_old_postinstall_cmds
10399 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10400
10401 # Create an old-style archive from a shared archive.
10402 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10403
10404 # Create a temporary old-style archive to link instead of a shared archive.
10405 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10406
10407 # Commands used to build and install a shared archive.
10408 archive_cmds=$lt_archive_cmds
10409 archive_expsym_cmds=$lt_archive_expsym_cmds
10410 postinstall_cmds=$lt_postinstall_cmds
10411 postuninstall_cmds=$lt_postuninstall_cmds
10412
10413 # Commands used to build a loadable module (assumed same as above if empty)
10414 module_cmds=$lt_module_cmds
10415 module_expsym_cmds=$lt_module_expsym_cmds
10416
10417 # Commands to strip libraries.
10418 old_striplib=$lt_old_striplib
10419 striplib=$lt_striplib
10420
10421 # Dependencies to place before the objects being linked to create a
10422 # shared library.
10423 predep_objects=$lt_predep_objects
10424
10425 # Dependencies to place after the objects being linked to create a
10426 # shared library.
10427 postdep_objects=$lt_postdep_objects
10428
10429 # Dependencies to place before the objects being linked to create a
10430 # shared library.
10431 predeps=$lt_predeps
10432
10433 # Dependencies to place after the objects being linked to create a
10434 # shared library.
10435 postdeps=$lt_postdeps
10436
10437 # The library search path used internally by the compiler when linking
10438 # a shared library.
10439 compiler_lib_search_path=$lt_compiler_lib_search_path
10440
10441 # Method to check whether dependent libraries are shared objects.
10442 deplibs_check_method=$lt_deplibs_check_method
10443
10444 # Command to use when deplibs_check_method == file_magic.
10445 file_magic_cmd=$lt_file_magic_cmd
10446
10447 # Flag that allows shared libraries with undefined symbols to be built.
10448 allow_undefined_flag=$lt_allow_undefined_flag
10449
10450 # Flag that forces no undefined symbols.
10451 no_undefined_flag=$lt_no_undefined_flag
10452
10453 # Commands used to finish a libtool library installation in a directory.
10454 finish_cmds=$lt_finish_cmds
10455
10456 # Same as above, but a single script fragment to be evaled but not shown.
10457 finish_eval=$lt_finish_eval
10458
10459 # Take the output of nm and produce a listing of raw symbols and C names.
10460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10461
10462 # Transform the output of nm in a proper C declaration
10463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10464
10465 # Transform the output of nm in a C name address pair
10466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10467
10468 # This is the shared library runtime path variable.
10469 runpath_var=$runpath_var
10470
10471 # This is the shared library path variable.
10472 shlibpath_var=$shlibpath_var
10473
10474 # Is shlibpath searched before the hard-coded library search path?
10475 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10476
10477 # How to hardcode a shared library path into an executable.
10478 hardcode_action=$hardcode_action
10479
10480 # Whether we should hardcode library paths into libraries.
10481 hardcode_into_libs=$hardcode_into_libs
10482
10483 # Flag to hardcode \$libdir into a binary during linking.
10484 # This must work even if \$libdir does not exist.
10485 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10486
10487 # If ld is used when linking, flag to hardcode \$libdir into
10488 # a binary during linking. This must work even if \$libdir does
10489 # not exist.
10490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10491
10492 # Whether we need a single -rpath flag with a separated argument.
10493 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10494
10495 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10496 # resulting binary.
10497 hardcode_direct=$hardcode_direct
10498
10499 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10500 # resulting binary.
10501 hardcode_minus_L=$hardcode_minus_L
10502
10503 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10504 # the resulting binary.
10505 hardcode_shlibpath_var=$hardcode_shlibpath_var
10506
10507 # Set to yes if building a shared library automatically hardcodes DIR into the library
10508 # and all subsequent libraries and executables linked against it.
10509 hardcode_automatic=$hardcode_automatic
10510
10511 # Variables whose values should be saved in libtool wrapper scripts and
10512 # restored at relink time.
10513 variables_saved_for_relink="$variables_saved_for_relink"
10514
10515 # Whether libtool must link a program against all its dependency libraries.
10516 link_all_deplibs=$link_all_deplibs
10517
10518 # Compile-time system search path for libraries
10519 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10520
10521 # Run-time system search path for libraries
10522 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10523
10524 # Fix the shell variable \$srcfile for the compiler.
10525 fix_srcfile_path="$fix_srcfile_path"
10526
10527 # Set to yes if exported symbols are required.
10528 always_export_symbols=$always_export_symbols
10529
10530 # The commands to list exported symbols.
10531 export_symbols_cmds=$lt_export_symbols_cmds
10532
10533 # The commands to extract the exported symbol list from a shared archive.
10534 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10535
10536 # Symbols that should not be listed in the preloaded symbols.
10537 exclude_expsyms=$lt_exclude_expsyms
10538
10539 # Symbols that must always be exported.
10540 include_expsyms=$lt_include_expsyms
10541
10542 # ### END LIBTOOL CONFIG
10543
10544 __EOF__
10545
10546
10547 case $host_os in
10548 aix3*)
10549 cat <<\EOF >> "$cfgfile"
10550
10551 # AIX sometimes has problems with the GCC collect2 program. For some
10552 # reason, if we set the COLLECT_NAMES environment variable, the problems
10553 # vanish in a puff of smoke.
10554 if test "X${COLLECT_NAMES+set}" != Xset; then
10555 COLLECT_NAMES=
10556 export COLLECT_NAMES
10557 fi
10558 EOF
10559 ;;
10560 esac
10561
10562 # We use sed instead of cat because bash on DJGPP gets confused if
10563 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10564 # text mode, it properly converts lines to CR/LF. This bash problem
10565 # is reportedly fixed, but why not run on old versions too?
10566 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10567
10568 mv -f "$cfgfile" "$ofile" || \
10569 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10570 chmod +x "$ofile"
10571
10572 else
10573 # If there is no Makefile yet, we rely on a make rule to execute
10574 # `config.status --recheck' to rerun these tests and create the
10575 # libtool script then.
10576 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10577 if test -f "$ltmain_in"; then
10578 test -f Makefile && make "$ltmain"
10579 fi
10580 fi
10581
10582
10583 ac_ext=c
10584 ac_cpp='$CPP $CPPFLAGS'
10585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10588
10589 CC="$lt_save_CC"
10590
10591
10592 # Check whether --with-tags was given.
10593 if test "${with_tags+set}" = set; then
10594 withval=$with_tags; tagnames="$withval"
10595 fi
10596
10597
10598 if test -f "$ltmain" && test -n "$tagnames"; then
10599 if test ! -f "${ofile}"; then
10600 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10601 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10602 fi
10603
10604 if test -z "$LTCC"; then
10605 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10606 if test -z "$LTCC"; then
10607 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10608 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10609 else
10610 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10611 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10612 fi
10613 fi
10614 if test -z "$LTCFLAGS"; then
10615 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10616 fi
10617
10618 # Extract list of available tagged configurations in $ofile.
10619 # Note that this assumes the entire list is on one line.
10620 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10621
10622 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10623 for tagname in $tagnames; do
10624 IFS="$lt_save_ifs"
10625 # Check whether tagname contains only valid characters
10626 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10627 "") ;;
10628 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10629 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10630 { (exit 1); exit 1; }; }
10631 ;;
10632 esac
10633
10634 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10635 then
10636 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10637 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10638 { (exit 1); exit 1; }; }
10639 fi
10640
10641 # Update the list of available tags.
10642 if test -n "$tagname"; then
10643 echo appending configuration tag \"$tagname\" to $ofile
10644
10645 case $tagname in
10646 CXX)
10647 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10648 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10649 (test "X$CXX" != "Xg++"))) ; then
10650 ac_ext=cpp
10651 ac_cpp='$CXXCPP $CPPFLAGS'
10652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10655
10656
10657
10658
10659 archive_cmds_need_lc_CXX=no
10660 allow_undefined_flag_CXX=
10661 always_export_symbols_CXX=no
10662 archive_expsym_cmds_CXX=
10663 export_dynamic_flag_spec_CXX=
10664 hardcode_direct_CXX=no
10665 hardcode_libdir_flag_spec_CXX=
10666 hardcode_libdir_flag_spec_ld_CXX=
10667 hardcode_libdir_separator_CXX=
10668 hardcode_minus_L_CXX=no
10669 hardcode_shlibpath_var_CXX=unsupported
10670 hardcode_automatic_CXX=no
10671 module_cmds_CXX=
10672 module_expsym_cmds_CXX=
10673 link_all_deplibs_CXX=unknown
10674 old_archive_cmds_CXX=$old_archive_cmds
10675 no_undefined_flag_CXX=
10676 whole_archive_flag_spec_CXX=
10677 enable_shared_with_static_runtimes_CXX=no
10678
10679 # Dependencies to place before and after the object being linked:
10680 predep_objects_CXX=
10681 postdep_objects_CXX=
10682 predeps_CXX=
10683 postdeps_CXX=
10684 compiler_lib_search_path_CXX=
10685
10686 # Source file extension for C++ test sources.
10687 ac_ext=cpp
10688
10689 # Object file extension for compiled C++ test sources.
10690 objext=o
10691 objext_CXX=$objext
10692
10693 # Code to be used in simple compile tests
10694 lt_simple_compile_test_code="int some_variable = 0;\n"
10695
10696 # Code to be used in simple link tests
10697 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10698
10699 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10700
10701 # If no C compiler was specified, use CC.
10702 LTCC=${LTCC-"$CC"}
10703
10704 # If no C compiler flags were specified, use CFLAGS.
10705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10706
10707 # Allow CC to be a program name with arguments.
10708 compiler=$CC
10709
10710
10711 # save warnings/boilerplate of simple test code
10712 ac_outfile=conftest.$ac_objext
10713 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10714 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10715 _lt_compiler_boilerplate=`cat conftest.err`
10716 $rm conftest*
10717
10718 ac_outfile=conftest.$ac_objext
10719 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10720 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10721 _lt_linker_boilerplate=`cat conftest.err`
10722 $rm conftest*
10723
10724
10725 # Allow CC to be a program name with arguments.
10726 lt_save_CC=$CC
10727 lt_save_LD=$LD
10728 lt_save_GCC=$GCC
10729 GCC=$GXX
10730 lt_save_with_gnu_ld=$with_gnu_ld
10731 lt_save_path_LD=$lt_cv_path_LD
10732 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10733 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10734 else
10735 $as_unset lt_cv_prog_gnu_ld
10736 fi
10737 if test -n "${lt_cv_path_LDCXX+set}"; then
10738 lt_cv_path_LD=$lt_cv_path_LDCXX
10739 else
10740 $as_unset lt_cv_path_LD
10741 fi
10742 test -z "${LDCXX+set}" || LD=$LDCXX
10743 CC=${CXX-"c++"}
10744 compiler=$CC
10745 compiler_CXX=$CC
10746 for cc_temp in $compiler""; do
10747 case $cc_temp in
10748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10750 \-*) ;;
10751 *) break;;
10752 esac
10753 done
10754 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10755
10756
10757 # We don't want -fno-exception wen compiling C++ code, so set the
10758 # no_builtin_flag separately
10759 if test "$GXX" = yes; then
10760 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10761 else
10762 lt_prog_compiler_no_builtin_flag_CXX=
10763 fi
10764
10765 if test "$GXX" = yes; then
10766 # Set up default GNU C++ configuration
10767
10768
10769 # Check whether --with-gnu-ld was given.
10770 if test "${with_gnu_ld+set}" = set; then
10771 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10772 else
10773 with_gnu_ld=no
10774 fi
10775
10776 ac_prog=ld
10777 if test "$GCC" = yes; then
10778 # Check if gcc -print-prog-name=ld gives a path.
10779 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10780 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10781 case $host in
10782 *-*-mingw*)
10783 # gcc leaves a trailing carriage return which upsets mingw
10784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10785 *)
10786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10787 esac
10788 case $ac_prog in
10789 # Accept absolute paths.
10790 [\\/]* | ?:[\\/]*)
10791 re_direlt='/[^/][^/]*/\.\./'
10792 # Canonicalize the pathname of ld
10793 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10794 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10795 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10796 done
10797 test -z "$LD" && LD="$ac_prog"
10798 ;;
10799 "")
10800 # If it fails, then pretend we aren't using GCC.
10801 ac_prog=ld
10802 ;;
10803 *)
10804 # If it is relative, then search for the first ld in PATH.
10805 with_gnu_ld=unknown
10806 ;;
10807 esac
10808 elif test "$with_gnu_ld" = yes; then
10809 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10810 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10811 else
10812 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10813 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10814 fi
10815 if test "${lt_cv_path_LD+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818 if test -z "$LD"; then
10819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10820 for ac_dir in $PATH; do
10821 IFS="$lt_save_ifs"
10822 test -z "$ac_dir" && ac_dir=.
10823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10824 lt_cv_path_LD="$ac_dir/$ac_prog"
10825 # Check to see if the program is GNU ld. I'd rather use --version,
10826 # but apparently some variants of GNU ld only accept -v.
10827 # Break only if it was the GNU/non-GNU ld that we prefer.
10828 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10829 *GNU* | *'with BFD'*)
10830 test "$with_gnu_ld" != no && break
10831 ;;
10832 *)
10833 test "$with_gnu_ld" != yes && break
10834 ;;
10835 esac
10836 fi
10837 done
10838 IFS="$lt_save_ifs"
10839 else
10840 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10841 fi
10842 fi
10843
10844 LD="$lt_cv_path_LD"
10845 if test -n "$LD"; then
10846 { echo "$as_me:$LINENO: result: $LD" >&5
10847 echo "${ECHO_T}$LD" >&6; }
10848 else
10849 { echo "$as_me:$LINENO: result: no" >&5
10850 echo "${ECHO_T}no" >&6; }
10851 fi
10852 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10853 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10854 { (exit 1); exit 1; }; }
10855 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10856 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10857 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10861 case `$LD -v 2>&1 </dev/null` in
10862 *GNU* | *'with BFD'*)
10863 lt_cv_prog_gnu_ld=yes
10864 ;;
10865 *)
10866 lt_cv_prog_gnu_ld=no
10867 ;;
10868 esac
10869 fi
10870 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10871 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10872 with_gnu_ld=$lt_cv_prog_gnu_ld
10873
10874
10875
10876 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10877 # archiving commands below assume that GNU ld is being used.
10878 if test "$with_gnu_ld" = yes; then
10879 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10880 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'
10881
10882 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10883 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10884
10885 # If archive_cmds runs LD, not CC, wlarc should be empty
10886 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10887 # investigate it a little bit more. (MM)
10888 wlarc='${wl}'
10889
10890 # ancient GNU ld didn't support --whole-archive et. al.
10891 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10892 grep 'no-whole-archive' > /dev/null; then
10893 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10894 else
10895 whole_archive_flag_spec_CXX=
10896 fi
10897 else
10898 with_gnu_ld=no
10899 wlarc=
10900
10901 # A generic and very simple default shared library creation
10902 # command for GNU C++ for the case where it uses the native
10903 # linker, instead of GNU ld. If possible, this setting should
10904 # overridden to take advantage of the native linker features on
10905 # the platform it is being used on.
10906 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10907 fi
10908
10909 # Commands to make compiler produce verbose output that lists
10910 # what "hidden" libraries, object files and flags are used when
10911 # linking a shared library.
10912 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10913
10914 else
10915 GXX=no
10916 with_gnu_ld=no
10917 wlarc=
10918 fi
10919
10920 # PORTME: fill in a description of your system's C++ link characteristics
10921 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10922 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10923 ld_shlibs_CXX=yes
10924 case $host_os in
10925 aix3*)
10926 # FIXME: insert proper C++ library support
10927 ld_shlibs_CXX=no
10928 ;;
10929 aix4* | aix5*)
10930 if test "$host_cpu" = ia64; then
10931 # On IA64, the linker does run time linking by default, so we don't
10932 # have to do anything special.
10933 aix_use_runtimelinking=no
10934 exp_sym_flag='-Bexport'
10935 no_entry_flag=""
10936 else
10937 aix_use_runtimelinking=no
10938
10939 # Test if we are trying to use run time linking or normal
10940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10941 # need to do runtime linking.
10942 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10943 for ld_flag in $LDFLAGS; do
10944 case $ld_flag in
10945 *-brtl*)
10946 aix_use_runtimelinking=yes
10947 break
10948 ;;
10949 esac
10950 done
10951 ;;
10952 esac
10953
10954 exp_sym_flag='-bexport'
10955 no_entry_flag='-bnoentry'
10956 fi
10957
10958 # When large executables or shared objects are built, AIX ld can
10959 # have problems creating the table of contents. If linking a library
10960 # or program results in "error TOC overflow" add -mminimal-toc to
10961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10963
10964 archive_cmds_CXX=''
10965 hardcode_direct_CXX=yes
10966 hardcode_libdir_separator_CXX=':'
10967 link_all_deplibs_CXX=yes
10968
10969 if test "$GXX" = yes; then
10970 case $host_os in aix4.[012]|aix4.[012].*)
10971 # We only want to do this on AIX 4.2 and lower, the check
10972 # below for broken collect2 doesn't work under 4.3+
10973 collect2name=`${CC} -print-prog-name=collect2`
10974 if test -f "$collect2name" && \
10975 strings "$collect2name" | grep resolve_lib_name >/dev/null
10976 then
10977 # We have reworked collect2
10978 hardcode_direct_CXX=yes
10979 else
10980 # We have old collect2
10981 hardcode_direct_CXX=unsupported
10982 # It fails to find uninstalled libraries when the uninstalled
10983 # path is not listed in the libpath. Setting hardcode_minus_L
10984 # to unsupported forces relinking
10985 hardcode_minus_L_CXX=yes
10986 hardcode_libdir_flag_spec_CXX='-L$libdir'
10987 hardcode_libdir_separator_CXX=
10988 fi
10989 ;;
10990 esac
10991 shared_flag='-shared'
10992 if test "$aix_use_runtimelinking" = yes; then
10993 shared_flag="$shared_flag "'${wl}-G'
10994 fi
10995 else
10996 # not using gcc
10997 if test "$host_cpu" = ia64; then
10998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10999 # chokes on -Wl,-G. The following line is correct:
11000 shared_flag='-G'
11001 else
11002 if test "$aix_use_runtimelinking" = yes; then
11003 shared_flag='${wl}-G'
11004 else
11005 shared_flag='${wl}-bM:SRE'
11006 fi
11007 fi
11008 fi
11009
11010 # It seems that -bexpall does not export symbols beginning with
11011 # underscore (_), so it is better to generate a list of symbols to export.
11012 always_export_symbols_CXX=yes
11013 if test "$aix_use_runtimelinking" = yes; then
11014 # Warning - without using the other runtime loading flags (-brtl),
11015 # -berok will link without error, but may produce a broken library.
11016 allow_undefined_flag_CXX='-berok'
11017 # Determine the default libpath from the value encoded in an empty executable.
11018 cat >conftest.$ac_ext <<_ACEOF
11019 /* confdefs.h. */
11020 _ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024
11025 int
11026 main ()
11027 {
11028
11029 ;
11030 return 0;
11031 }
11032 _ACEOF
11033 rm -f conftest.$ac_objext conftest$ac_exeext
11034 if { (ac_try="$ac_link"
11035 case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038 esac
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_link") 2>conftest.er1
11041 ac_status=$?
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } && {
11047 test -z "$ac_cxx_werror_flag" ||
11048 test ! -s conftest.err
11049 } && test -s conftest$ac_exeext &&
11050 $as_test_x conftest$ac_exeext; then
11051
11052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11053 }'`
11054 # Check for a 64-bit object if we didn't find anything.
11055 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11056 }'`; fi
11057 else
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11060
11061
11062 fi
11063
11064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11065 conftest$ac_exeext conftest.$ac_ext
11066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11067
11068 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11069
11070 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"
11071 else
11072 if test "$host_cpu" = ia64; then
11073 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11074 allow_undefined_flag_CXX="-z nodefs"
11075 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"
11076 else
11077 # Determine the default libpath from the value encoded in an empty executable.
11078 cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h. */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084
11085 int
11086 main ()
11087 {
11088
11089 ;
11090 return 0;
11091 }
11092 _ACEOF
11093 rm -f conftest.$ac_objext conftest$ac_exeext
11094 if { (ac_try="$ac_link"
11095 case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_link") 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && {
11107 test -z "$ac_cxx_werror_flag" ||
11108 test ! -s conftest.err
11109 } && test -s conftest$ac_exeext &&
11110 $as_test_x conftest$ac_exeext; then
11111
11112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11113 }'`
11114 # Check for a 64-bit object if we didn't find anything.
11115 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11116 }'`; fi
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121
11122 fi
11123
11124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11125 conftest$ac_exeext conftest.$ac_ext
11126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11127
11128 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11129 # Warning - without using the other run time loading flags,
11130 # -berok will link without error, but may produce a broken library.
11131 no_undefined_flag_CXX=' ${wl}-bernotok'
11132 allow_undefined_flag_CXX=' ${wl}-berok'
11133 # Exported symbols can be pulled into shared objects from archives
11134 whole_archive_flag_spec_CXX='$convenience'
11135 archive_cmds_need_lc_CXX=yes
11136 # This is similar to how AIX traditionally builds its shared libraries.
11137 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'
11138 fi
11139 fi
11140 ;;
11141
11142 beos*)
11143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11144 allow_undefined_flag_CXX=unsupported
11145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11146 # support --undefined. This deserves some investigation. FIXME
11147 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11148 else
11149 ld_shlibs_CXX=no
11150 fi
11151 ;;
11152
11153 chorus*)
11154 case $cc_basename in
11155 *)
11156 # FIXME: insert proper C++ library support
11157 ld_shlibs_CXX=no
11158 ;;
11159 esac
11160 ;;
11161
11162 cygwin* | mingw* | pw32*)
11163 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11164 # as there is no search path for DLLs.
11165 hardcode_libdir_flag_spec_CXX='-L$libdir'
11166 allow_undefined_flag_CXX=unsupported
11167 always_export_symbols_CXX=no
11168 enable_shared_with_static_runtimes_CXX=yes
11169
11170 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11171 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'
11172 # If the export-symbols file already is a .def file (1st line
11173 # is EXPORTS), use it as is; otherwise, prepend...
11174 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11175 cp $export_symbols $output_objdir/$soname.def;
11176 else
11177 echo EXPORTS > $output_objdir/$soname.def;
11178 cat $export_symbols >> $output_objdir/$soname.def;
11179 fi~
11180 $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'
11181 else
11182 ld_shlibs_CXX=no
11183 fi
11184 ;;
11185 darwin* | rhapsody*)
11186 case $host_os in
11187 rhapsody* | darwin1.[012])
11188 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11189 ;;
11190 *) # Darwin 1.3 on
11191 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11192 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11193 else
11194 case ${MACOSX_DEPLOYMENT_TARGET} in
11195 10.[012])
11196 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11197 ;;
11198 10.*)
11199 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11200 ;;
11201 esac
11202 fi
11203 ;;
11204 esac
11205 archive_cmds_need_lc_CXX=no
11206 hardcode_direct_CXX=no
11207 hardcode_automatic_CXX=yes
11208 hardcode_shlibpath_var_CXX=unsupported
11209 whole_archive_flag_spec_CXX=''
11210 link_all_deplibs_CXX=yes
11211
11212 if test "$GXX" = yes ; then
11213 lt_int_apple_cc_single_mod=no
11214 output_verbose_link_cmd='echo'
11215 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11216 lt_int_apple_cc_single_mod=yes
11217 fi
11218 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11219 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11220 else
11221 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'
11222 fi
11223 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11224 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11225 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11226 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}'
11227 else
11228 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}'
11229 fi
11230 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}'
11231 else
11232 case $cc_basename in
11233 xlc*)
11234 output_verbose_link_cmd='echo'
11235 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11236 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11237 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11238 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11239 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}'
11240 ;;
11241 *)
11242 ld_shlibs_CXX=no
11243 ;;
11244 esac
11245 fi
11246 ;;
11247
11248 dgux*)
11249 case $cc_basename in
11250 ec++*)
11251 # FIXME: insert proper C++ library support
11252 ld_shlibs_CXX=no
11253 ;;
11254 ghcx*)
11255 # Green Hills C++ Compiler
11256 # FIXME: insert proper C++ library support
11257 ld_shlibs_CXX=no
11258 ;;
11259 *)
11260 # FIXME: insert proper C++ library support
11261 ld_shlibs_CXX=no
11262 ;;
11263 esac
11264 ;;
11265 freebsd[12]*)
11266 # C++ shared libraries reported to be fairly broken before switch to ELF
11267 ld_shlibs_CXX=no
11268 ;;
11269 freebsd-elf*)
11270 archive_cmds_need_lc_CXX=no
11271 ;;
11272 freebsd* | kfreebsd*-gnu | dragonfly*)
11273 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11274 # conventions
11275 ld_shlibs_CXX=yes
11276 ;;
11277 gnu*)
11278 ;;
11279 hpux9*)
11280 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11281 hardcode_libdir_separator_CXX=:
11282 export_dynamic_flag_spec_CXX='${wl}-E'
11283 hardcode_direct_CXX=yes
11284 hardcode_minus_L_CXX=yes # Not in the search PATH,
11285 # but as the default
11286 # location of the library.
11287
11288 case $cc_basename in
11289 CC*)
11290 # FIXME: insert proper C++ library support
11291 ld_shlibs_CXX=no
11292 ;;
11293 aCC*)
11294 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'
11295 # Commands to make compiler produce verbose output that lists
11296 # what "hidden" libraries, object files and flags are used when
11297 # linking a shared library.
11298 #
11299 # There doesn't appear to be a way to prevent this compiler from
11300 # explicitly linking system object files so we need to strip them
11301 # from the output so that they don't get included in the library
11302 # dependencies.
11303 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'
11304 ;;
11305 *)
11306 if test "$GXX" = yes; then
11307 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'
11308 else
11309 # FIXME: insert proper C++ library support
11310 ld_shlibs_CXX=no
11311 fi
11312 ;;
11313 esac
11314 ;;
11315 hpux10*|hpux11*)
11316 if test $with_gnu_ld = no; then
11317 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11318 hardcode_libdir_separator_CXX=:
11319
11320 case $host_cpu in
11321 hppa*64*|ia64*)
11322 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11323 ;;
11324 *)
11325 export_dynamic_flag_spec_CXX='${wl}-E'
11326 ;;
11327 esac
11328 fi
11329 case $host_cpu in
11330 hppa*64*|ia64*)
11331 hardcode_direct_CXX=no
11332 hardcode_shlibpath_var_CXX=no
11333 ;;
11334 *)
11335 hardcode_direct_CXX=yes
11336 hardcode_minus_L_CXX=yes # Not in the search PATH,
11337 # but as the default
11338 # location of the library.
11339 ;;
11340 esac
11341
11342 case $cc_basename in
11343 CC*)
11344 # FIXME: insert proper C++ library support
11345 ld_shlibs_CXX=no
11346 ;;
11347 aCC*)
11348 case $host_cpu in
11349 hppa*64*)
11350 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11351 ;;
11352 ia64*)
11353 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11354 ;;
11355 *)
11356 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11357 ;;
11358 esac
11359 # Commands to make compiler produce verbose output that lists
11360 # what "hidden" libraries, object files and flags are used when
11361 # linking a shared library.
11362 #
11363 # There doesn't appear to be a way to prevent this compiler from
11364 # explicitly linking system object files so we need to strip them
11365 # from the output so that they don't get included in the library
11366 # dependencies.
11367 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'
11368 ;;
11369 *)
11370 if test "$GXX" = yes; then
11371 if test $with_gnu_ld = no; then
11372 case $host_cpu in
11373 hppa*64*)
11374 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11375 ;;
11376 ia64*)
11377 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11378 ;;
11379 *)
11380 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'
11381 ;;
11382 esac
11383 fi
11384 else
11385 # FIXME: insert proper C++ library support
11386 ld_shlibs_CXX=no
11387 fi
11388 ;;
11389 esac
11390 ;;
11391 interix3*)
11392 hardcode_direct_CXX=no
11393 hardcode_shlibpath_var_CXX=no
11394 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11395 export_dynamic_flag_spec_CXX='${wl}-E'
11396 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11397 # Instead, shared libraries are loaded at an image base (0x10000000 by
11398 # default) and relocated if they conflict, which is a slow very memory
11399 # consuming and fragmenting process. To avoid this, we pick a random,
11400 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11401 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11402 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'
11403 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'
11404 ;;
11405 irix5* | irix6*)
11406 case $cc_basename in
11407 CC*)
11408 # SGI C++
11409 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'
11410
11411 # Archives containing C++ object files must be created using
11412 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11413 # necessary to make sure instantiated templates are included
11414 # in the archive.
11415 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11416 ;;
11417 *)
11418 if test "$GXX" = yes; then
11419 if test "$with_gnu_ld" = no; then
11420 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'
11421 else
11422 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'
11423 fi
11424 fi
11425 link_all_deplibs_CXX=yes
11426 ;;
11427 esac
11428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11429 hardcode_libdir_separator_CXX=:
11430 ;;
11431 linux*)
11432 case $cc_basename in
11433 KCC*)
11434 # Kuck and Associates, Inc. (KAI) C++ Compiler
11435
11436 # KCC will only create a shared library if the output file
11437 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11438 # to its proper name (with version) after linking.
11439 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'
11440 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'
11441 # Commands to make compiler produce verbose output that lists
11442 # what "hidden" libraries, object files and flags are used when
11443 # linking a shared library.
11444 #
11445 # There doesn't appear to be a way to prevent this compiler from
11446 # explicitly linking system object files so we need to strip them
11447 # from the output so that they don't get included in the library
11448 # dependencies.
11449 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'
11450
11451 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11452 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11453
11454 # Archives containing C++ object files must be created using
11455 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11456 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11457 ;;
11458 icpc*)
11459 # Intel C++
11460 with_gnu_ld=yes
11461 # version 8.0 and above of icpc choke on multiply defined symbols
11462 # if we add $predep_objects and $postdep_objects, however 7.1 and
11463 # earlier do not add the objects themselves.
11464 case `$CC -V 2>&1` in
11465 *"Version 7."*)
11466 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11467 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'
11468 ;;
11469 *) # Version 8.0 or newer
11470 tmp_idyn=
11471 case $host_cpu in
11472 ia64*) tmp_idyn=' -i_dynamic';;
11473 esac
11474 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11475 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'
11476 ;;
11477 esac
11478 archive_cmds_need_lc_CXX=no
11479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11480 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11481 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11482 ;;
11483 pgCC*)
11484 # Portland Group C++ compiler
11485 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11486 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'
11487
11488 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11489 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11490 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'
11491 ;;
11492 cxx*)
11493 # Compaq C++
11494 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11495 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'
11496
11497 runpath_var=LD_RUN_PATH
11498 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11499 hardcode_libdir_separator_CXX=:
11500
11501 # Commands to make compiler produce verbose output that lists
11502 # what "hidden" libraries, object files and flags are used when
11503 # linking a shared library.
11504 #
11505 # There doesn't appear to be a way to prevent this compiler from
11506 # explicitly linking system object files so we need to strip them
11507 # from the output so that they don't get included in the library
11508 # dependencies.
11509 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'
11510 ;;
11511 esac
11512 ;;
11513 lynxos*)
11514 # FIXME: insert proper C++ library support
11515 ld_shlibs_CXX=no
11516 ;;
11517 m88k*)
11518 # FIXME: insert proper C++ library support
11519 ld_shlibs_CXX=no
11520 ;;
11521 mvs*)
11522 case $cc_basename in
11523 cxx*)
11524 # FIXME: insert proper C++ library support
11525 ld_shlibs_CXX=no
11526 ;;
11527 *)
11528 # FIXME: insert proper C++ library support
11529 ld_shlibs_CXX=no
11530 ;;
11531 esac
11532 ;;
11533 netbsd*)
11534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11535 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11536 wlarc=
11537 hardcode_libdir_flag_spec_CXX='-R$libdir'
11538 hardcode_direct_CXX=yes
11539 hardcode_shlibpath_var_CXX=no
11540 fi
11541 # Workaround some broken pre-1.5 toolchains
11542 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11543 ;;
11544 openbsd2*)
11545 # C++ shared libraries are fairly broken
11546 ld_shlibs_CXX=no
11547 ;;
11548 openbsd*)
11549 hardcode_direct_CXX=yes
11550 hardcode_shlibpath_var_CXX=no
11551 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11552 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11554 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11555 export_dynamic_flag_spec_CXX='${wl}-E'
11556 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11557 fi
11558 output_verbose_link_cmd='echo'
11559 ;;
11560 osf3*)
11561 case $cc_basename in
11562 KCC*)
11563 # Kuck and Associates, Inc. (KAI) C++ Compiler
11564
11565 # KCC will only create a shared library if the output file
11566 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11567 # to its proper name (with version) after linking.
11568 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'
11569
11570 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11571 hardcode_libdir_separator_CXX=:
11572
11573 # Archives containing C++ object files must be created using
11574 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11575 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11576
11577 ;;
11578 RCC*)
11579 # Rational C++ 2.4.1
11580 # FIXME: insert proper C++ library support
11581 ld_shlibs_CXX=no
11582 ;;
11583 cxx*)
11584 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11585 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'
11586
11587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11588 hardcode_libdir_separator_CXX=:
11589
11590 # Commands to make compiler produce verbose output that lists
11591 # what "hidden" libraries, object files and flags are used when
11592 # linking a shared library.
11593 #
11594 # There doesn't appear to be a way to prevent this compiler from
11595 # explicitly linking system object files so we need to strip them
11596 # from the output so that they don't get included in the library
11597 # dependencies.
11598 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'
11599 ;;
11600 *)
11601 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11602 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11603 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'
11604
11605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11606 hardcode_libdir_separator_CXX=:
11607
11608 # Commands to make compiler produce verbose output that lists
11609 # what "hidden" libraries, object files and flags are used when
11610 # linking a shared library.
11611 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11612
11613 else
11614 # FIXME: insert proper C++ library support
11615 ld_shlibs_CXX=no
11616 fi
11617 ;;
11618 esac
11619 ;;
11620 osf4* | osf5*)
11621 case $cc_basename in
11622 KCC*)
11623 # Kuck and Associates, Inc. (KAI) C++ Compiler
11624
11625 # KCC will only create a shared library if the output file
11626 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11627 # to its proper name (with version) after linking.
11628 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'
11629
11630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11631 hardcode_libdir_separator_CXX=:
11632
11633 # Archives containing C++ object files must be created using
11634 # the KAI C++ compiler.
11635 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11636 ;;
11637 RCC*)
11638 # Rational C++ 2.4.1
11639 # FIXME: insert proper C++ library support
11640 ld_shlibs_CXX=no
11641 ;;
11642 cxx*)
11643 allow_undefined_flag_CXX=' -expect_unresolved \*'
11644 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'
11645 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11646 echo "-hidden">> $lib.exp~
11647 $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~
11648 $rm $lib.exp'
11649
11650 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11651 hardcode_libdir_separator_CXX=:
11652
11653 # Commands to make compiler produce verbose output that lists
11654 # what "hidden" libraries, object files and flags are used when
11655 # linking a shared library.
11656 #
11657 # There doesn't appear to be a way to prevent this compiler from
11658 # explicitly linking system object files so we need to strip them
11659 # from the output so that they don't get included in the library
11660 # dependencies.
11661 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'
11662 ;;
11663 *)
11664 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11665 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11666 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'
11667
11668 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11669 hardcode_libdir_separator_CXX=:
11670
11671 # Commands to make compiler produce verbose output that lists
11672 # what "hidden" libraries, object files and flags are used when
11673 # linking a shared library.
11674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11675
11676 else
11677 # FIXME: insert proper C++ library support
11678 ld_shlibs_CXX=no
11679 fi
11680 ;;
11681 esac
11682 ;;
11683 psos*)
11684 # FIXME: insert proper C++ library support
11685 ld_shlibs_CXX=no
11686 ;;
11687 sunos4*)
11688 case $cc_basename in
11689 CC*)
11690 # Sun C++ 4.x
11691 # FIXME: insert proper C++ library support
11692 ld_shlibs_CXX=no
11693 ;;
11694 lcc*)
11695 # Lucid
11696 # FIXME: insert proper C++ library support
11697 ld_shlibs_CXX=no
11698 ;;
11699 *)
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11702 ;;
11703 esac
11704 ;;
11705 solaris*)
11706 case $cc_basename in
11707 CC*)
11708 # Sun C++ 4.2, 5.x and Centerline C++
11709 archive_cmds_need_lc_CXX=yes
11710 no_undefined_flag_CXX=' -zdefs'
11711 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11712 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11713 $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'
11714
11715 hardcode_libdir_flag_spec_CXX='-R$libdir'
11716 hardcode_shlibpath_var_CXX=no
11717 case $host_os in
11718 solaris2.[0-5] | solaris2.[0-5].*) ;;
11719 *)
11720 # The C++ compiler is used as linker so we must use $wl
11721 # flag to pass the commands to the underlying system
11722 # linker. We must also pass each convience library through
11723 # to the system linker between allextract/defaultextract.
11724 # The C++ compiler will combine linker options so we
11725 # cannot just pass the convience library names through
11726 # without $wl.
11727 # Supported since Solaris 2.6 (maybe 2.5.1?)
11728 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11729 ;;
11730 esac
11731 link_all_deplibs_CXX=yes
11732
11733 output_verbose_link_cmd='echo'
11734
11735 # Archives containing C++ object files must be created using
11736 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11737 # necessary to make sure instantiated templates are included
11738 # in the archive.
11739 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11740 ;;
11741 gcx*)
11742 # Green Hills C++ Compiler
11743 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11744
11745 # The C++ compiler must be used to create the archive.
11746 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11747 ;;
11748 *)
11749 # GNU C++ compiler with Solaris linker
11750 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11751 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11752 if $CC --version | grep -v '^2\.7' > /dev/null; then
11753 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11754 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11755 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11756
11757 # Commands to make compiler produce verbose output that lists
11758 # what "hidden" libraries, object files and flags are used when
11759 # linking a shared library.
11760 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11761 else
11762 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11763 # platform.
11764 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11765 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11766 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11767
11768 # Commands to make compiler produce verbose output that lists
11769 # what "hidden" libraries, object files and flags are used when
11770 # linking a shared library.
11771 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11772 fi
11773
11774 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11775 fi
11776 ;;
11777 esac
11778 ;;
11779 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11780 no_undefined_flag_CXX='${wl}-z,text'
11781 archive_cmds_need_lc_CXX=no
11782 hardcode_shlibpath_var_CXX=no
11783 runpath_var='LD_RUN_PATH'
11784
11785 case $cc_basename in
11786 CC*)
11787 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11788 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11789 ;;
11790 *)
11791 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11792 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11793 ;;
11794 esac
11795 ;;
11796 sysv5* | sco3.2v5* | sco5v6*)
11797 # Note: We can NOT use -z defs as we might desire, because we do not
11798 # link with -lc, and that would cause any symbols used from libc to
11799 # always be unresolved, which means just about no library would
11800 # ever link correctly. If we're not using GNU ld we use -z text
11801 # though, which does catch some bad symbols but isn't as heavy-handed
11802 # as -z defs.
11803 # For security reasons, it is highly recommended that you always
11804 # use absolute paths for naming shared libraries, and exclude the
11805 # DT_RUNPATH tag from executables and libraries. But doing so
11806 # requires that you compile everything twice, which is a pain.
11807 # So that behaviour is only enabled if SCOABSPATH is set to a
11808 # non-empty value in the environment. Most likely only useful for
11809 # creating official distributions of packages.
11810 # This is a hack until libtool officially supports absolute path
11811 # names for shared libraries.
11812 no_undefined_flag_CXX='${wl}-z,text'
11813 allow_undefined_flag_CXX='${wl}-z,nodefs'
11814 archive_cmds_need_lc_CXX=no
11815 hardcode_shlibpath_var_CXX=no
11816 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11817 hardcode_libdir_separator_CXX=':'
11818 link_all_deplibs_CXX=yes
11819 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11820 runpath_var='LD_RUN_PATH'
11821
11822 case $cc_basename in
11823 CC*)
11824 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11825 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11826 ;;
11827 *)
11828 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11829 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11830 ;;
11831 esac
11832 ;;
11833 tandem*)
11834 case $cc_basename in
11835 NCC*)
11836 # NonStop-UX NCC 3.20
11837 # FIXME: insert proper C++ library support
11838 ld_shlibs_CXX=no
11839 ;;
11840 *)
11841 # FIXME: insert proper C++ library support
11842 ld_shlibs_CXX=no
11843 ;;
11844 esac
11845 ;;
11846 vxworks*)
11847 # FIXME: insert proper C++ library support
11848 ld_shlibs_CXX=no
11849 ;;
11850 *)
11851 # FIXME: insert proper C++ library support
11852 ld_shlibs_CXX=no
11853 ;;
11854 esac
11855 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11856 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11857 test "$ld_shlibs_CXX" = no && can_build_shared=no
11858
11859 GCC_CXX="$GXX"
11860 LD_CXX="$LD"
11861
11862
11863 cat > conftest.$ac_ext <<EOF
11864 class Foo
11865 {
11866 public:
11867 Foo (void) { a = 0; }
11868 private:
11869 int a;
11870 };
11871 EOF
11872
11873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11874 (eval $ac_compile) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; then
11878 # Parse the compiler output and extract the necessary
11879 # objects, libraries and library flags.
11880
11881 # Sentinel used to keep track of whether or not we are before
11882 # the conftest object file.
11883 pre_test_object_deps_done=no
11884
11885 # The `*' in the case matches for architectures that use `case' in
11886 # $output_verbose_cmd can trigger glob expansion during the loop
11887 # eval without this substitution.
11888 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11889
11890 for p in `eval $output_verbose_link_cmd`; do
11891 case $p in
11892
11893 -L* | -R* | -l*)
11894 # Some compilers place space between "-{L,R}" and the path.
11895 # Remove the space.
11896 if test $p = "-L" \
11897 || test $p = "-R"; then
11898 prev=$p
11899 continue
11900 else
11901 prev=
11902 fi
11903
11904 if test "$pre_test_object_deps_done" = no; then
11905 case $p in
11906 -L* | -R*)
11907 # Internal compiler library paths should come after those
11908 # provided the user. The postdeps already come after the
11909 # user supplied libs so there is no need to process them.
11910 if test -z "$compiler_lib_search_path_CXX"; then
11911 compiler_lib_search_path_CXX="${prev}${p}"
11912 else
11913 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11914 fi
11915 ;;
11916 # The "-l" case would never come before the object being
11917 # linked, so don't bother handling this case.
11918 esac
11919 else
11920 if test -z "$postdeps_CXX"; then
11921 postdeps_CXX="${prev}${p}"
11922 else
11923 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11924 fi
11925 fi
11926 ;;
11927
11928 *.$objext)
11929 # This assumes that the test object file only shows up
11930 # once in the compiler output.
11931 if test "$p" = "conftest.$objext"; then
11932 pre_test_object_deps_done=yes
11933 continue
11934 fi
11935
11936 if test "$pre_test_object_deps_done" = no; then
11937 if test -z "$predep_objects_CXX"; then
11938 predep_objects_CXX="$p"
11939 else
11940 predep_objects_CXX="$predep_objects_CXX $p"
11941 fi
11942 else
11943 if test -z "$postdep_objects_CXX"; then
11944 postdep_objects_CXX="$p"
11945 else
11946 postdep_objects_CXX="$postdep_objects_CXX $p"
11947 fi
11948 fi
11949 ;;
11950
11951 *) ;; # Ignore the rest.
11952
11953 esac
11954 done
11955
11956 # Clean up.
11957 rm -f a.out a.exe
11958 else
11959 echo "libtool.m4: error: problem compiling CXX test program"
11960 fi
11961
11962 $rm -f confest.$objext
11963
11964 # PORTME: override above test on systems where it is broken
11965 case $host_os in
11966 interix3*)
11967 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11968 # hack all around it, let's just trust "g++" to DTRT.
11969 predep_objects_CXX=
11970 postdep_objects_CXX=
11971 postdeps_CXX=
11972 ;;
11973
11974 solaris*)
11975 case $cc_basename in
11976 CC*)
11977 # Adding this requires a known-good setup of shared libraries for
11978 # Sun compiler versions before 5.6, else PIC objects from an old
11979 # archive will be linked into the output, leading to subtle bugs.
11980 postdeps_CXX='-lCstd -lCrun'
11981 ;;
11982 esac
11983 ;;
11984 esac
11985
11986
11987 case " $postdeps_CXX " in
11988 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11989 esac
11990
11991 lt_prog_compiler_wl_CXX=
11992 lt_prog_compiler_pic_CXX=
11993 lt_prog_compiler_static_CXX=
11994
11995 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11996 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11997
11998 # C++ specific cases for pic, static, wl, etc.
11999 if test "$GXX" = yes; then
12000 lt_prog_compiler_wl_CXX='-Wl,'
12001 lt_prog_compiler_static_CXX='-static'
12002
12003 case $host_os in
12004 aix*)
12005 # All AIX code is PIC.
12006 if test "$host_cpu" = ia64; then
12007 # AIX 5 now supports IA64 processor
12008 lt_prog_compiler_static_CXX='-Bstatic'
12009 fi
12010 ;;
12011 amigaos*)
12012 # FIXME: we need at least 68020 code to build shared libraries, but
12013 # adding the `-m68020' flag to GCC prevents building anything better,
12014 # like `-m68040'.
12015 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12016 ;;
12017 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12018 # PIC is the default for these OSes.
12019 ;;
12020 mingw* | os2* | pw32*)
12021 # This hack is so that the source file can tell whether it is being
12022 # built for inclusion in a dll (and should export symbols for example).
12023 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12024 ;;
12025 darwin* | rhapsody*)
12026 # PIC is the default on this platform
12027 # Common symbols not allowed in MH_DYLIB files
12028 lt_prog_compiler_pic_CXX='-fno-common'
12029 ;;
12030 *djgpp*)
12031 # DJGPP does not support shared libraries at all
12032 lt_prog_compiler_pic_CXX=
12033 ;;
12034 interix3*)
12035 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12036 # Instead, we relocate shared libraries at runtime.
12037 ;;
12038 sysv4*MP*)
12039 if test -d /usr/nec; then
12040 lt_prog_compiler_pic_CXX=-Kconform_pic
12041 fi
12042 ;;
12043 hpux*)
12044 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12045 # not for PA HP-UX.
12046 case $host_cpu in
12047 hppa*64*|ia64*)
12048 ;;
12049 *)
12050 lt_prog_compiler_pic_CXX='-fPIC'
12051 ;;
12052 esac
12053 ;;
12054 *)
12055 lt_prog_compiler_pic_CXX='-fPIC'
12056 ;;
12057 esac
12058 else
12059 case $host_os in
12060 aix4* | aix5*)
12061 # All AIX code is PIC.
12062 if test "$host_cpu" = ia64; then
12063 # AIX 5 now supports IA64 processor
12064 lt_prog_compiler_static_CXX='-Bstatic'
12065 else
12066 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12067 fi
12068 ;;
12069 chorus*)
12070 case $cc_basename in
12071 cxch68*)
12072 # Green Hills C++ Compiler
12073 # _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"
12074 ;;
12075 esac
12076 ;;
12077 darwin*)
12078 # PIC is the default on this platform
12079 # Common symbols not allowed in MH_DYLIB files
12080 case $cc_basename in
12081 xlc*)
12082 lt_prog_compiler_pic_CXX='-qnocommon'
12083 lt_prog_compiler_wl_CXX='-Wl,'
12084 ;;
12085 esac
12086 ;;
12087 dgux*)
12088 case $cc_basename in
12089 ec++*)
12090 lt_prog_compiler_pic_CXX='-KPIC'
12091 ;;
12092 ghcx*)
12093 # Green Hills C++ Compiler
12094 lt_prog_compiler_pic_CXX='-pic'
12095 ;;
12096 *)
12097 ;;
12098 esac
12099 ;;
12100 freebsd* | kfreebsd*-gnu | dragonfly*)
12101 # FreeBSD uses GNU C++
12102 ;;
12103 hpux9* | hpux10* | hpux11*)
12104 case $cc_basename in
12105 CC*)
12106 lt_prog_compiler_wl_CXX='-Wl,'
12107 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12108 if test "$host_cpu" != ia64; then
12109 lt_prog_compiler_pic_CXX='+Z'
12110 fi
12111 ;;
12112 aCC*)
12113 lt_prog_compiler_wl_CXX='-Wl,'
12114 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12115 case $host_cpu in
12116 hppa*64*|ia64*)
12117 # +Z the default
12118 ;;
12119 *)
12120 lt_prog_compiler_pic_CXX='+Z'
12121 ;;
12122 esac
12123 ;;
12124 *)
12125 ;;
12126 esac
12127 ;;
12128 interix*)
12129 # This is c89, which is MS Visual C++ (no shared libs)
12130 # Anyone wants to do a port?
12131 ;;
12132 irix5* | irix6* | nonstopux*)
12133 case $cc_basename in
12134 CC*)
12135 lt_prog_compiler_wl_CXX='-Wl,'
12136 lt_prog_compiler_static_CXX='-non_shared'
12137 # CC pic flag -KPIC is the default.
12138 ;;
12139 *)
12140 ;;
12141 esac
12142 ;;
12143 linux*)
12144 case $cc_basename in
12145 KCC*)
12146 # KAI C++ Compiler
12147 lt_prog_compiler_wl_CXX='--backend -Wl,'
12148 lt_prog_compiler_pic_CXX='-fPIC'
12149 ;;
12150 icpc* | ecpc*)
12151 # Intel C++
12152 lt_prog_compiler_wl_CXX='-Wl,'
12153 lt_prog_compiler_pic_CXX='-KPIC'
12154 lt_prog_compiler_static_CXX='-static'
12155 ;;
12156 pgCC*)
12157 # Portland Group C++ compiler.
12158 lt_prog_compiler_wl_CXX='-Wl,'
12159 lt_prog_compiler_pic_CXX='-fpic'
12160 lt_prog_compiler_static_CXX='-Bstatic'
12161 ;;
12162 cxx*)
12163 # Compaq C++
12164 # Make sure the PIC flag is empty. It appears that all Alpha
12165 # Linux and Compaq Tru64 Unix objects are PIC.
12166 lt_prog_compiler_pic_CXX=
12167 lt_prog_compiler_static_CXX='-non_shared'
12168 ;;
12169 *)
12170 ;;
12171 esac
12172 ;;
12173 lynxos*)
12174 ;;
12175 m88k*)
12176 ;;
12177 mvs*)
12178 case $cc_basename in
12179 cxx*)
12180 lt_prog_compiler_pic_CXX='-W c,exportall'
12181 ;;
12182 *)
12183 ;;
12184 esac
12185 ;;
12186 netbsd*)
12187 ;;
12188 osf3* | osf4* | osf5*)
12189 case $cc_basename in
12190 KCC*)
12191 lt_prog_compiler_wl_CXX='--backend -Wl,'
12192 ;;
12193 RCC*)
12194 # Rational C++ 2.4.1
12195 lt_prog_compiler_pic_CXX='-pic'
12196 ;;
12197 cxx*)
12198 # Digital/Compaq C++
12199 lt_prog_compiler_wl_CXX='-Wl,'
12200 # Make sure the PIC flag is empty. It appears that all Alpha
12201 # Linux and Compaq Tru64 Unix objects are PIC.
12202 lt_prog_compiler_pic_CXX=
12203 lt_prog_compiler_static_CXX='-non_shared'
12204 ;;
12205 *)
12206 ;;
12207 esac
12208 ;;
12209 psos*)
12210 ;;
12211 solaris*)
12212 case $cc_basename in
12213 CC*)
12214 # Sun C++ 4.2, 5.x and Centerline C++
12215 lt_prog_compiler_pic_CXX='-KPIC'
12216 lt_prog_compiler_static_CXX='-Bstatic'
12217 lt_prog_compiler_wl_CXX='-Qoption ld '
12218 ;;
12219 gcx*)
12220 # Green Hills C++ Compiler
12221 lt_prog_compiler_pic_CXX='-PIC'
12222 ;;
12223 *)
12224 ;;
12225 esac
12226 ;;
12227 sunos4*)
12228 case $cc_basename in
12229 CC*)
12230 # Sun C++ 4.x
12231 lt_prog_compiler_pic_CXX='-pic'
12232 lt_prog_compiler_static_CXX='-Bstatic'
12233 ;;
12234 lcc*)
12235 # Lucid
12236 lt_prog_compiler_pic_CXX='-pic'
12237 ;;
12238 *)
12239 ;;
12240 esac
12241 ;;
12242 tandem*)
12243 case $cc_basename in
12244 NCC*)
12245 # NonStop-UX NCC 3.20
12246 lt_prog_compiler_pic_CXX='-KPIC'
12247 ;;
12248 *)
12249 ;;
12250 esac
12251 ;;
12252 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12253 case $cc_basename in
12254 CC*)
12255 lt_prog_compiler_wl_CXX='-Wl,'
12256 lt_prog_compiler_pic_CXX='-KPIC'
12257 lt_prog_compiler_static_CXX='-Bstatic'
12258 ;;
12259 esac
12260 ;;
12261 vxworks*)
12262 ;;
12263 *)
12264 lt_prog_compiler_can_build_shared_CXX=no
12265 ;;
12266 esac
12267 fi
12268
12269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12270 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12271
12272 #
12273 # Check to make sure the PIC flag actually works.
12274 #
12275 if test -n "$lt_prog_compiler_pic_CXX"; then
12276
12277 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12278 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12279 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 else
12282 lt_prog_compiler_pic_works_CXX=no
12283 ac_outfile=conftest.$ac_objext
12284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12285 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12286 # Insert the option either (1) after the last *FLAGS variable, or
12287 # (2) before a word containing "conftest.", or (3) at the end.
12288 # Note that $ac_compile itself does not contain backslashes and begins
12289 # with a dollar sign (not a hyphen), so the echo should work correctly.
12290 # The option is referenced via a variable to avoid confusing sed.
12291 lt_compile=`echo "$ac_compile" | $SED \
12292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12294 -e 's:$: $lt_compiler_flag:'`
12295 (eval echo "\"\$as_me:12295: $lt_compile\"" >&5)
12296 (eval "$lt_compile" 2>conftest.err)
12297 ac_status=$?
12298 cat conftest.err >&5
12299 echo "$as_me:12299: \$? = $ac_status" >&5
12300 if (exit $ac_status) && test -s "$ac_outfile"; then
12301 # The compiler can only warn and ignore the option if not recognized
12302 # So say no if there are warnings other than the usual output.
12303 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12306 lt_prog_compiler_pic_works_CXX=yes
12307 fi
12308 fi
12309 $rm conftest*
12310
12311 fi
12312 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12313 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12314
12315 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12316 case $lt_prog_compiler_pic_CXX in
12317 "" | " "*) ;;
12318 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12319 esac
12320 else
12321 lt_prog_compiler_pic_CXX=
12322 lt_prog_compiler_can_build_shared_CXX=no
12323 fi
12324
12325 fi
12326 case $host_os in
12327 # For platforms which do not support PIC, -DPIC is meaningless:
12328 *djgpp*)
12329 lt_prog_compiler_pic_CXX=
12330 ;;
12331 *)
12332 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12333 ;;
12334 esac
12335
12336 #
12337 # Check to make sure the static flag actually works.
12338 #
12339 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12340 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12341 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12342 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345 lt_prog_compiler_static_works_CXX=no
12346 save_LDFLAGS="$LDFLAGS"
12347 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12348 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12349 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12350 # The linker can only warn and ignore the option if not recognized
12351 # So say no if there are warnings
12352 if test -s conftest.err; then
12353 # Append any errors to the config.log.
12354 cat conftest.err 1>&5
12355 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12357 if diff conftest.exp conftest.er2 >/dev/null; then
12358 lt_prog_compiler_static_works_CXX=yes
12359 fi
12360 else
12361 lt_prog_compiler_static_works_CXX=yes
12362 fi
12363 fi
12364 $rm conftest*
12365 LDFLAGS="$save_LDFLAGS"
12366
12367 fi
12368 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12369 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12370
12371 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12372 :
12373 else
12374 lt_prog_compiler_static_CXX=
12375 fi
12376
12377
12378 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12379 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12380 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383 lt_cv_prog_compiler_c_o_CXX=no
12384 $rm -r conftest 2>/dev/null
12385 mkdir conftest
12386 cd conftest
12387 mkdir out
12388 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12389
12390 lt_compiler_flag="-o out/conftest2.$ac_objext"
12391 # Insert the option either (1) after the last *FLAGS variable, or
12392 # (2) before a word containing "conftest.", or (3) at the end.
12393 # Note that $ac_compile itself does not contain backslashes and begins
12394 # with a dollar sign (not a hyphen), so the echo should work correctly.
12395 lt_compile=`echo "$ac_compile" | $SED \
12396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12398 -e 's:$: $lt_compiler_flag:'`
12399 (eval echo "\"\$as_me:12399: $lt_compile\"" >&5)
12400 (eval "$lt_compile" 2>out/conftest.err)
12401 ac_status=$?
12402 cat out/conftest.err >&5
12403 echo "$as_me:12403: \$? = $ac_status" >&5
12404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12405 then
12406 # The compiler can only warn and ignore the option if not recognized
12407 # So say no if there are warnings
12408 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12411 lt_cv_prog_compiler_c_o_CXX=yes
12412 fi
12413 fi
12414 chmod u+w . 2>&5
12415 $rm conftest*
12416 # SGI C++ compiler will create directory out/ii_files/ for
12417 # template instantiation
12418 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12419 $rm out/* && rmdir out
12420 cd ..
12421 rmdir conftest
12422 $rm conftest*
12423
12424 fi
12425 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12426 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12427
12428
12429 hard_links="nottested"
12430 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12431 # do not overwrite the value of need_locks provided by the user
12432 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12433 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12434 hard_links=yes
12435 $rm conftest*
12436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12437 touch conftest.a
12438 ln conftest.a conftest.b 2>&5 || hard_links=no
12439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12440 { echo "$as_me:$LINENO: result: $hard_links" >&5
12441 echo "${ECHO_T}$hard_links" >&6; }
12442 if test "$hard_links" = no; then
12443 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12444 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12445 need_locks=warn
12446 fi
12447 else
12448 need_locks=no
12449 fi
12450
12451 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12452 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12453
12454 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12455 case $host_os in
12456 aix4* | aix5*)
12457 # If we're using GNU nm, then we don't want the "-C" option.
12458 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12459 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12460 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'
12461 else
12462 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'
12463 fi
12464 ;;
12465 pw32*)
12466 export_symbols_cmds_CXX="$ltdll_cmds"
12467 ;;
12468 cygwin* | mingw*)
12469 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'
12470 ;;
12471 *)
12472 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12473 ;;
12474 esac
12475
12476 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12477 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12478 test "$ld_shlibs_CXX" = no && can_build_shared=no
12479
12480 #
12481 # Do we need to explicitly link libc?
12482 #
12483 case "x$archive_cmds_need_lc_CXX" in
12484 x|xyes)
12485 # Assume -lc should be added
12486 archive_cmds_need_lc_CXX=yes
12487
12488 if test "$enable_shared" = yes && test "$GCC" = yes; then
12489 case $archive_cmds_CXX in
12490 *'~'*)
12491 # FIXME: we may have to deal with multi-command sequences.
12492 ;;
12493 '$CC '*)
12494 # Test whether the compiler implicitly links with -lc since on some
12495 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12496 # to ld, don't add -lc before -lgcc.
12497 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12498 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12499 $rm conftest*
12500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12501
12502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12503 (eval $ac_compile) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } 2>conftest.err; then
12507 soname=conftest
12508 lib=conftest
12509 libobjs=conftest.$ac_objext
12510 deplibs=
12511 wl=$lt_prog_compiler_wl_CXX
12512 pic_flag=$lt_prog_compiler_pic_CXX
12513 compiler_flags=-v
12514 linker_flags=-v
12515 verstring=
12516 output_objdir=.
12517 libname=conftest
12518 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12519 allow_undefined_flag_CXX=
12520 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12521 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }
12525 then
12526 archive_cmds_need_lc_CXX=no
12527 else
12528 archive_cmds_need_lc_CXX=yes
12529 fi
12530 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12531 else
12532 cat conftest.err 1>&5
12533 fi
12534 $rm conftest*
12535 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12536 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12537 ;;
12538 esac
12539 fi
12540 ;;
12541 esac
12542
12543 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12544 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12545 library_names_spec=
12546 libname_spec='lib$name'
12547 soname_spec=
12548 shrext_cmds=".so"
12549 postinstall_cmds=
12550 postuninstall_cmds=
12551 finish_cmds=
12552 finish_eval=
12553 shlibpath_var=
12554 shlibpath_overrides_runpath=unknown
12555 version_type=none
12556 dynamic_linker="$host_os ld.so"
12557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12558 if test "$GCC" = yes; then
12559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12560 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12561 # if the path contains ";" then we assume it to be the separator
12562 # otherwise default to the standard path separator (i.e. ":") - it is
12563 # assumed that no part of a normal pathname contains ";" but that should
12564 # okay in the real world where ";" in dirpaths is itself problematic.
12565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12566 else
12567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12568 fi
12569 else
12570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12571 fi
12572 need_lib_prefix=unknown
12573 hardcode_into_libs=no
12574
12575 # when you set need_version to no, make sure it does not cause -set_version
12576 # flags to be left without arguments
12577 need_version=unknown
12578
12579 case $host_os in
12580 aix3*)
12581 version_type=linux
12582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12583 shlibpath_var=LIBPATH
12584
12585 # AIX 3 has no versioning support, so we append a major version to the name.
12586 soname_spec='${libname}${release}${shared_ext}$major'
12587 ;;
12588
12589 aix4* | aix5*)
12590 version_type=linux
12591 need_lib_prefix=no
12592 need_version=no
12593 hardcode_into_libs=yes
12594 if test "$host_cpu" = ia64; then
12595 # AIX 5 supports IA64
12596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12597 shlibpath_var=LD_LIBRARY_PATH
12598 else
12599 # With GCC up to 2.95.x, collect2 would create an import file
12600 # for dependence libraries. The import file would start with
12601 # the line `#! .'. This would cause the generated library to
12602 # depend on `.', always an invalid library. This was fixed in
12603 # development snapshots of GCC prior to 3.0.
12604 case $host_os in
12605 aix4 | aix4.[01] | aix4.[01].*)
12606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12607 echo ' yes '
12608 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12609 :
12610 else
12611 can_build_shared=no
12612 fi
12613 ;;
12614 esac
12615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12616 # soname into executable. Probably we can add versioning support to
12617 # collect2, so additional links can be useful in future.
12618 if test "$aix_use_runtimelinking" = yes; then
12619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12620 # instead of lib<name>.a to let people know that these are not
12621 # typical AIX shared libraries.
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12623 else
12624 # We preserve .a as extension for shared libraries through AIX4.2
12625 # and later when we are not doing run time linking.
12626 library_names_spec='${libname}${release}.a $libname.a'
12627 soname_spec='${libname}${release}${shared_ext}$major'
12628 fi
12629 shlibpath_var=LIBPATH
12630 fi
12631 ;;
12632
12633 amigaos*)
12634 library_names_spec='$libname.ixlibrary $libname.a'
12635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12636 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'
12637 ;;
12638
12639 beos*)
12640 library_names_spec='${libname}${shared_ext}'
12641 dynamic_linker="$host_os ld.so"
12642 shlibpath_var=LIBRARY_PATH
12643 ;;
12644
12645 bsdi[45]*)
12646 version_type=linux
12647 need_version=no
12648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12649 soname_spec='${libname}${release}${shared_ext}$major'
12650 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12651 shlibpath_var=LD_LIBRARY_PATH
12652 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12653 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12654 # the default ld.so.conf also contains /usr/contrib/lib and
12655 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12656 # libtool to hard-code these into programs
12657 ;;
12658
12659 cygwin* | mingw* | pw32*)
12660 version_type=windows
12661 shrext_cmds=".dll"
12662 need_version=no
12663 need_lib_prefix=no
12664
12665 case $GCC,$host_os in
12666 yes,cygwin* | yes,mingw* | yes,pw32*)
12667 library_names_spec='$libname.dll.a'
12668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12669 postinstall_cmds='base_file=`basename \${file}`~
12670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12671 dldir=$destdir/`dirname \$dlpath`~
12672 test -d \$dldir || mkdir -p \$dldir~
12673 $install_prog $dir/$dlname \$dldir/$dlname~
12674 chmod a+x \$dldir/$dlname'
12675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12676 dlpath=$dir/\$dldll~
12677 $rm \$dlpath'
12678 shlibpath_overrides_runpath=yes
12679
12680 case $host_os in
12681 cygwin*)
12682 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12684 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12685 ;;
12686 mingw*)
12687 # MinGW DLLs use traditional 'lib' prefix
12688 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12690 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12691 # It is most probably a Windows format PATH printed by
12692 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12693 # path with ; separators, and with drive letters. We can handle the
12694 # drive letters (cygwin fileutils understands them), so leave them,
12695 # especially as we might pass files found there to a mingw objdump,
12696 # which wouldn't understand a cygwinified path. Ahh.
12697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12698 else
12699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12700 fi
12701 ;;
12702 pw32*)
12703 # pw32 DLLs use 'pw' prefix rather than 'lib'
12704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12705 ;;
12706 esac
12707 ;;
12708
12709 *)
12710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12711 ;;
12712 esac
12713 dynamic_linker='Win32 ld.exe'
12714 # FIXME: first we should search . and the directory the executable is in
12715 shlibpath_var=PATH
12716 ;;
12717
12718 darwin* | rhapsody*)
12719 dynamic_linker="$host_os dyld"
12720 version_type=darwin
12721 need_lib_prefix=no
12722 need_version=no
12723 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12724 soname_spec='${libname}${release}${major}$shared_ext'
12725 shlibpath_overrides_runpath=yes
12726 shlibpath_var=DYLD_LIBRARY_PATH
12727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12728 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12729 if test "$GCC" = yes; then
12730 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12731 else
12732 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12733 fi
12734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12735 ;;
12736
12737 dgux*)
12738 version_type=linux
12739 need_lib_prefix=no
12740 need_version=no
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12742 soname_spec='${libname}${release}${shared_ext}$major'
12743 shlibpath_var=LD_LIBRARY_PATH
12744 ;;
12745
12746 freebsd1*)
12747 dynamic_linker=no
12748 ;;
12749
12750 kfreebsd*-gnu)
12751 version_type=linux
12752 need_lib_prefix=no
12753 need_version=no
12754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12755 soname_spec='${libname}${release}${shared_ext}$major'
12756 shlibpath_var=LD_LIBRARY_PATH
12757 shlibpath_overrides_runpath=no
12758 hardcode_into_libs=yes
12759 dynamic_linker='GNU ld.so'
12760 ;;
12761
12762 freebsd* | dragonfly*)
12763 # DragonFly does not have aout. When/if they implement a new
12764 # versioning mechanism, adjust this.
12765 if test -x /usr/bin/objformat; then
12766 objformat=`/usr/bin/objformat`
12767 else
12768 case $host_os in
12769 freebsd[123]*) objformat=aout ;;
12770 *) objformat=elf ;;
12771 esac
12772 fi
12773 version_type=freebsd-$objformat
12774 case $version_type in
12775 freebsd-elf*)
12776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12777 need_version=no
12778 need_lib_prefix=no
12779 ;;
12780 freebsd-*)
12781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12782 need_version=yes
12783 ;;
12784 esac
12785 shlibpath_var=LD_LIBRARY_PATH
12786 case $host_os in
12787 freebsd2*)
12788 shlibpath_overrides_runpath=yes
12789 ;;
12790 freebsd3.[01]* | freebsdelf3.[01]*)
12791 shlibpath_overrides_runpath=yes
12792 hardcode_into_libs=yes
12793 ;;
12794 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12795 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12796 shlibpath_overrides_runpath=no
12797 hardcode_into_libs=yes
12798 ;;
12799 freebsd*) # from 4.6 on
12800 shlibpath_overrides_runpath=yes
12801 hardcode_into_libs=yes
12802 ;;
12803 esac
12804 ;;
12805
12806 gnu*)
12807 version_type=linux
12808 need_lib_prefix=no
12809 need_version=no
12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12811 soname_spec='${libname}${release}${shared_ext}$major'
12812 shlibpath_var=LD_LIBRARY_PATH
12813 hardcode_into_libs=yes
12814 ;;
12815
12816 hpux9* | hpux10* | hpux11*)
12817 # Give a soname corresponding to the major version so that dld.sl refuses to
12818 # link against other versions.
12819 version_type=sunos
12820 need_lib_prefix=no
12821 need_version=no
12822 case $host_cpu in
12823 ia64*)
12824 shrext_cmds='.so'
12825 hardcode_into_libs=yes
12826 dynamic_linker="$host_os dld.so"
12827 shlibpath_var=LD_LIBRARY_PATH
12828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12830 soname_spec='${libname}${release}${shared_ext}$major'
12831 if test "X$HPUX_IA64_MODE" = X32; then
12832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12833 else
12834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12835 fi
12836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12837 ;;
12838 hppa*64*)
12839 shrext_cmds='.sl'
12840 hardcode_into_libs=yes
12841 dynamic_linker="$host_os dld.sl"
12842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845 soname_spec='${libname}${release}${shared_ext}$major'
12846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12848 ;;
12849 *)
12850 shrext_cmds='.sl'
12851 dynamic_linker="$host_os dld.sl"
12852 shlibpath_var=SHLIB_PATH
12853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12855 soname_spec='${libname}${release}${shared_ext}$major'
12856 ;;
12857 esac
12858 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12859 postinstall_cmds='chmod 555 $lib'
12860 ;;
12861
12862 interix3*)
12863 version_type=linux
12864 need_lib_prefix=no
12865 need_version=no
12866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12867 soname_spec='${libname}${release}${shared_ext}$major'
12868 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12869 shlibpath_var=LD_LIBRARY_PATH
12870 shlibpath_overrides_runpath=no
12871 hardcode_into_libs=yes
12872 ;;
12873
12874 irix5* | irix6* | nonstopux*)
12875 case $host_os in
12876 nonstopux*) version_type=nonstopux ;;
12877 *)
12878 if test "$lt_cv_prog_gnu_ld" = yes; then
12879 version_type=linux
12880 else
12881 version_type=irix
12882 fi ;;
12883 esac
12884 need_lib_prefix=no
12885 need_version=no
12886 soname_spec='${libname}${release}${shared_ext}$major'
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12888 case $host_os in
12889 irix5* | nonstopux*)
12890 libsuff= shlibsuff=
12891 ;;
12892 *)
12893 case $LD in # libtool.m4 will add one of these switches to LD
12894 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12895 libsuff= shlibsuff= libmagic=32-bit;;
12896 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12897 libsuff=32 shlibsuff=N32 libmagic=N32;;
12898 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12899 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12900 *) libsuff= shlibsuff= libmagic=never-match;;
12901 esac
12902 ;;
12903 esac
12904 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12905 shlibpath_overrides_runpath=no
12906 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12907 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12908 hardcode_into_libs=yes
12909 ;;
12910
12911 # No shared lib support for Linux oldld, aout, or coff.
12912 linux*oldld* | linux*aout* | linux*coff*)
12913 dynamic_linker=no
12914 ;;
12915
12916 # This must be Linux ELF.
12917 linux*)
12918 version_type=linux
12919 need_lib_prefix=no
12920 need_version=no
12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12922 soname_spec='${libname}${release}${shared_ext}$major'
12923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12924 shlibpath_var=LD_LIBRARY_PATH
12925 shlibpath_overrides_runpath=no
12926 # This implies no fast_install, which is unacceptable.
12927 # Some rework will be needed to allow for fast_install
12928 # before this can be enabled.
12929 hardcode_into_libs=yes
12930
12931 # find out which ABI we are using
12932 libsuff=
12933 case "$host_cpu" in
12934 x86_64*|s390x*|powerpc64*)
12935 echo '#line 12935 "configure"' > conftest.$ac_ext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937 (eval $ac_compile) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; then
12941 case `/usr/bin/file conftest.$ac_objext` in
12942 *64-bit*)
12943 libsuff=64
12944 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12945 ;;
12946 esac
12947 fi
12948 rm -rf conftest*
12949 ;;
12950 esac
12951
12952 # Append ld.so.conf contents to the search path
12953 if test -f /etc/ld.so.conf; then
12954 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12955 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12956 fi
12957
12958 # We used to test for /lib/ld.so.1 and disable shared libraries on
12959 # powerpc, because MkLinux only supported shared libraries with the
12960 # GNU dynamic linker. Since this was broken with cross compilers,
12961 # most powerpc-linux boxes support dynamic linking these days and
12962 # people can always --disable-shared, the test was removed, and we
12963 # assume the GNU/Linux dynamic linker is in use.
12964 dynamic_linker='GNU/Linux ld.so'
12965 ;;
12966
12967 knetbsd*-gnu)
12968 version_type=linux
12969 need_lib_prefix=no
12970 need_version=no
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12972 soname_spec='${libname}${release}${shared_ext}$major'
12973 shlibpath_var=LD_LIBRARY_PATH
12974 shlibpath_overrides_runpath=no
12975 hardcode_into_libs=yes
12976 dynamic_linker='GNU ld.so'
12977 ;;
12978
12979 netbsd*)
12980 version_type=sunos
12981 need_lib_prefix=no
12982 need_version=no
12983 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12986 dynamic_linker='NetBSD (a.out) ld.so'
12987 else
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12989 soname_spec='${libname}${release}${shared_ext}$major'
12990 dynamic_linker='NetBSD ld.elf_so'
12991 fi
12992 shlibpath_var=LD_LIBRARY_PATH
12993 shlibpath_overrides_runpath=yes
12994 hardcode_into_libs=yes
12995 ;;
12996
12997 newsos6)
12998 version_type=linux
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 shlibpath_overrides_runpath=yes
13002 ;;
13003
13004 nto-qnx*)
13005 version_type=linux
13006 need_lib_prefix=no
13007 need_version=no
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 soname_spec='${libname}${release}${shared_ext}$major'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 shlibpath_overrides_runpath=yes
13012 ;;
13013
13014 openbsd*)
13015 version_type=sunos
13016 sys_lib_dlsearch_path_spec="/usr/lib"
13017 need_lib_prefix=no
13018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13019 case $host_os in
13020 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13021 *) need_version=no ;;
13022 esac
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13027 case $host_os in
13028 openbsd2.[89] | openbsd2.[89].*)
13029 shlibpath_overrides_runpath=no
13030 ;;
13031 *)
13032 shlibpath_overrides_runpath=yes
13033 ;;
13034 esac
13035 else
13036 shlibpath_overrides_runpath=yes
13037 fi
13038 ;;
13039
13040 os2*)
13041 libname_spec='$name'
13042 shrext_cmds=".dll"
13043 need_lib_prefix=no
13044 library_names_spec='$libname${shared_ext} $libname.a'
13045 dynamic_linker='OS/2 ld.exe'
13046 shlibpath_var=LIBPATH
13047 ;;
13048
13049 osf3* | osf4* | osf5*)
13050 version_type=osf
13051 need_lib_prefix=no
13052 need_version=no
13053 soname_spec='${libname}${release}${shared_ext}$major'
13054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13058 ;;
13059
13060 solaris*)
13061 version_type=linux
13062 need_lib_prefix=no
13063 need_version=no
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 shlibpath_overrides_runpath=yes
13068 hardcode_into_libs=yes
13069 # ldd complains unless libraries are executable
13070 postinstall_cmds='chmod +x $lib'
13071 ;;
13072
13073 sunos4*)
13074 version_type=sunos
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13076 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13077 shlibpath_var=LD_LIBRARY_PATH
13078 shlibpath_overrides_runpath=yes
13079 if test "$with_gnu_ld" = yes; then
13080 need_lib_prefix=no
13081 fi
13082 need_version=yes
13083 ;;
13084
13085 sysv4 | sysv4.3*)
13086 version_type=linux
13087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13088 soname_spec='${libname}${release}${shared_ext}$major'
13089 shlibpath_var=LD_LIBRARY_PATH
13090 case $host_vendor in
13091 sni)
13092 shlibpath_overrides_runpath=no
13093 need_lib_prefix=no
13094 export_dynamic_flag_spec='${wl}-Blargedynsym'
13095 runpath_var=LD_RUN_PATH
13096 ;;
13097 siemens)
13098 need_lib_prefix=no
13099 ;;
13100 motorola)
13101 need_lib_prefix=no
13102 need_version=no
13103 shlibpath_overrides_runpath=no
13104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13105 ;;
13106 esac
13107 ;;
13108
13109 sysv4*MP*)
13110 if test -d /usr/nec ;then
13111 version_type=linux
13112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13113 soname_spec='$libname${shared_ext}.$major'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 fi
13116 ;;
13117
13118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13119 version_type=freebsd-elf
13120 need_lib_prefix=no
13121 need_version=no
13122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13123 soname_spec='${libname}${release}${shared_ext}$major'
13124 shlibpath_var=LD_LIBRARY_PATH
13125 hardcode_into_libs=yes
13126 if test "$with_gnu_ld" = yes; then
13127 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13128 shlibpath_overrides_runpath=no
13129 else
13130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13131 shlibpath_overrides_runpath=yes
13132 case $host_os in
13133 sco3.2v5*)
13134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13135 ;;
13136 esac
13137 fi
13138 sys_lib_dlsearch_path_spec='/usr/lib'
13139 ;;
13140
13141 uts4*)
13142 version_type=linux
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 shlibpath_var=LD_LIBRARY_PATH
13146 ;;
13147
13148 *)
13149 dynamic_linker=no
13150 ;;
13151 esac
13152 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13153 echo "${ECHO_T}$dynamic_linker" >&6; }
13154 test "$dynamic_linker" = no && can_build_shared=no
13155
13156 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13157 if test "$GCC" = yes; then
13158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13159 fi
13160
13161 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13162 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13163 hardcode_action_CXX=
13164 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13165 test -n "$runpath_var_CXX" || \
13166 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13167
13168 # We can hardcode non-existant directories.
13169 if test "$hardcode_direct_CXX" != no &&
13170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13171 # have to relink, otherwise we might link with an installed library
13172 # when we should be linking with a yet-to-be-installed one
13173 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13174 test "$hardcode_minus_L_CXX" != no; then
13175 # Linking always hardcodes the temporary library directory.
13176 hardcode_action_CXX=relink
13177 else
13178 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13179 hardcode_action_CXX=immediate
13180 fi
13181 else
13182 # We cannot hardcode anything, or else we can only hardcode existing
13183 # directories.
13184 hardcode_action_CXX=unsupported
13185 fi
13186 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13187 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13188
13189 if test "$hardcode_action_CXX" = relink; then
13190 # Fast installation is not supported
13191 enable_fast_install=no
13192 elif test "$shlibpath_overrides_runpath" = yes ||
13193 test "$enable_shared" = no; then
13194 # Fast installation is not necessary
13195 enable_fast_install=needless
13196 fi
13197
13198
13199 # The else clause should only fire when bootstrapping the
13200 # libtool distribution, otherwise you forgot to ship ltmain.sh
13201 # with your package, and you will get complaints that there are
13202 # no rules to generate ltmain.sh.
13203 if test -f "$ltmain"; then
13204 # See if we are running on zsh, and set the options which allow our commands through
13205 # without removal of \ escapes.
13206 if test -n "${ZSH_VERSION+set}" ; then
13207 setopt NO_GLOB_SUBST
13208 fi
13209 # Now quote all the things that may contain metacharacters while being
13210 # careful not to overquote the AC_SUBSTed values. We take copies of the
13211 # variables and quote the copies for generation of the libtool script.
13212 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13213 SED SHELL STRIP \
13214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13216 deplibs_check_method reload_flag reload_cmds need_locks \
13217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13218 lt_cv_sys_global_symbol_to_c_name_address \
13219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13220 old_postinstall_cmds old_postuninstall_cmds \
13221 compiler_CXX \
13222 CC_CXX \
13223 LD_CXX \
13224 lt_prog_compiler_wl_CXX \
13225 lt_prog_compiler_pic_CXX \
13226 lt_prog_compiler_static_CXX \
13227 lt_prog_compiler_no_builtin_flag_CXX \
13228 export_dynamic_flag_spec_CXX \
13229 thread_safe_flag_spec_CXX \
13230 whole_archive_flag_spec_CXX \
13231 enable_shared_with_static_runtimes_CXX \
13232 old_archive_cmds_CXX \
13233 old_archive_from_new_cmds_CXX \
13234 predep_objects_CXX \
13235 postdep_objects_CXX \
13236 predeps_CXX \
13237 postdeps_CXX \
13238 compiler_lib_search_path_CXX \
13239 archive_cmds_CXX \
13240 archive_expsym_cmds_CXX \
13241 postinstall_cmds_CXX \
13242 postuninstall_cmds_CXX \
13243 old_archive_from_expsyms_cmds_CXX \
13244 allow_undefined_flag_CXX \
13245 no_undefined_flag_CXX \
13246 export_symbols_cmds_CXX \
13247 hardcode_libdir_flag_spec_CXX \
13248 hardcode_libdir_flag_spec_ld_CXX \
13249 hardcode_libdir_separator_CXX \
13250 hardcode_automatic_CXX \
13251 module_cmds_CXX \
13252 module_expsym_cmds_CXX \
13253 lt_cv_prog_compiler_c_o_CXX \
13254 exclude_expsyms_CXX \
13255 include_expsyms_CXX; do
13256
13257 case $var in
13258 old_archive_cmds_CXX | \
13259 old_archive_from_new_cmds_CXX | \
13260 archive_cmds_CXX | \
13261 archive_expsym_cmds_CXX | \
13262 module_cmds_CXX | \
13263 module_expsym_cmds_CXX | \
13264 old_archive_from_expsyms_cmds_CXX | \
13265 export_symbols_cmds_CXX | \
13266 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13267 postinstall_cmds | postuninstall_cmds | \
13268 old_postinstall_cmds | old_postuninstall_cmds | \
13269 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13270 # Double-quote double-evaled strings.
13271 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13272 ;;
13273 *)
13274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13275 ;;
13276 esac
13277 done
13278
13279 case $lt_echo in
13280 *'\$0 --fallback-echo"')
13281 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13282 ;;
13283 esac
13284
13285 cfgfile="$ofile"
13286
13287 cat <<__EOF__ >> "$cfgfile"
13288 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13289
13290 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13291
13292 # Shell to use when invoking shell scripts.
13293 SHELL=$lt_SHELL
13294
13295 # Whether or not to build shared libraries.
13296 build_libtool_libs=$enable_shared
13297
13298 # Whether or not to build static libraries.
13299 build_old_libs=$enable_static
13300
13301 # Whether or not to add -lc for building shared libraries.
13302 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13303
13304 # Whether or not to disallow shared libs when runtime libs are static
13305 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13306
13307 # Whether or not to optimize for fast installation.
13308 fast_install=$enable_fast_install
13309
13310 # The host system.
13311 host_alias=$host_alias
13312 host=$host
13313 host_os=$host_os
13314
13315 # The build system.
13316 build_alias=$build_alias
13317 build=$build
13318 build_os=$build_os
13319
13320 # An echo program that does not interpret backslashes.
13321 echo=$lt_echo
13322
13323 # The archiver.
13324 AR=$lt_AR
13325 AR_FLAGS=$lt_AR_FLAGS
13326
13327 # A C compiler.
13328 LTCC=$lt_LTCC
13329
13330 # LTCC compiler flags.
13331 LTCFLAGS=$lt_LTCFLAGS
13332
13333 # A language-specific compiler.
13334 CC=$lt_compiler_CXX
13335
13336 # Is the compiler the GNU C compiler?
13337 with_gcc=$GCC_CXX
13338
13339 # An ERE matcher.
13340 EGREP=$lt_EGREP
13341
13342 # The linker used to build libraries.
13343 LD=$lt_LD_CXX
13344
13345 # Whether we need hard or soft links.
13346 LN_S=$lt_LN_S
13347
13348 # A BSD-compatible nm program.
13349 NM=$lt_NM
13350
13351 # A symbol stripping program
13352 STRIP=$lt_STRIP
13353
13354 # Used to examine libraries when file_magic_cmd begins "file"
13355 MAGIC_CMD=$MAGIC_CMD
13356
13357 # Used on cygwin: DLL creation program.
13358 DLLTOOL="$DLLTOOL"
13359
13360 # Used on cygwin: object dumper.
13361 OBJDUMP="$OBJDUMP"
13362
13363 # Used on cygwin: assembler.
13364 AS="$AS"
13365
13366 # The name of the directory that contains temporary libtool files.
13367 objdir=$objdir
13368
13369 # How to create reloadable object files.
13370 reload_flag=$lt_reload_flag
13371 reload_cmds=$lt_reload_cmds
13372
13373 # How to pass a linker flag through the compiler.
13374 wl=$lt_lt_prog_compiler_wl_CXX
13375
13376 # Object file suffix (normally "o").
13377 objext="$ac_objext"
13378
13379 # Old archive suffix (normally "a").
13380 libext="$libext"
13381
13382 # Shared library suffix (normally ".so").
13383 shrext_cmds='$shrext_cmds'
13384
13385 # Executable file suffix (normally "").
13386 exeext="$exeext"
13387
13388 # Additional compiler flags for building library objects.
13389 pic_flag=$lt_lt_prog_compiler_pic_CXX
13390 pic_mode=$pic_mode
13391
13392 # What is the maximum length of a command?
13393 max_cmd_len=$lt_cv_sys_max_cmd_len
13394
13395 # Does compiler simultaneously support -c and -o options?
13396 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13397
13398 # Must we lock files when doing compilation?
13399 need_locks=$lt_need_locks
13400
13401 # Do we need the lib prefix for modules?
13402 need_lib_prefix=$need_lib_prefix
13403
13404 # Do we need a version for libraries?
13405 need_version=$need_version
13406
13407 # Whether dlopen is supported.
13408 dlopen_support=$enable_dlopen
13409
13410 # Whether dlopen of programs is supported.
13411 dlopen_self=$enable_dlopen_self
13412
13413 # Whether dlopen of statically linked programs is supported.
13414 dlopen_self_static=$enable_dlopen_self_static
13415
13416 # Compiler flag to prevent dynamic linking.
13417 link_static_flag=$lt_lt_prog_compiler_static_CXX
13418
13419 # Compiler flag to turn off builtin functions.
13420 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13421
13422 # Compiler flag to allow reflexive dlopens.
13423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13424
13425 # Compiler flag to generate shared objects directly from archives.
13426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13427
13428 # Compiler flag to generate thread-safe objects.
13429 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13430
13431 # Library versioning type.
13432 version_type=$version_type
13433
13434 # Format of library name prefix.
13435 libname_spec=$lt_libname_spec
13436
13437 # List of archive names. First name is the real one, the rest are links.
13438 # The last name is the one that the linker finds with -lNAME.
13439 library_names_spec=$lt_library_names_spec
13440
13441 # The coded name of the library, if different from the real name.
13442 soname_spec=$lt_soname_spec
13443
13444 # Commands used to build and install an old-style archive.
13445 RANLIB=$lt_RANLIB
13446 old_archive_cmds=$lt_old_archive_cmds_CXX
13447 old_postinstall_cmds=$lt_old_postinstall_cmds
13448 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13449
13450 # Create an old-style archive from a shared archive.
13451 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13452
13453 # Create a temporary old-style archive to link instead of a shared archive.
13454 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13455
13456 # Commands used to build and install a shared archive.
13457 archive_cmds=$lt_archive_cmds_CXX
13458 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13459 postinstall_cmds=$lt_postinstall_cmds
13460 postuninstall_cmds=$lt_postuninstall_cmds
13461
13462 # Commands used to build a loadable module (assumed same as above if empty)
13463 module_cmds=$lt_module_cmds_CXX
13464 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13465
13466 # Commands to strip libraries.
13467 old_striplib=$lt_old_striplib
13468 striplib=$lt_striplib
13469
13470 # Dependencies to place before the objects being linked to create a
13471 # shared library.
13472 predep_objects=$lt_predep_objects_CXX
13473
13474 # Dependencies to place after the objects being linked to create a
13475 # shared library.
13476 postdep_objects=$lt_postdep_objects_CXX
13477
13478 # Dependencies to place before the objects being linked to create a
13479 # shared library.
13480 predeps=$lt_predeps_CXX
13481
13482 # Dependencies to place after the objects being linked to create a
13483 # shared library.
13484 postdeps=$lt_postdeps_CXX
13485
13486 # The library search path used internally by the compiler when linking
13487 # a shared library.
13488 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13489
13490 # Method to check whether dependent libraries are shared objects.
13491 deplibs_check_method=$lt_deplibs_check_method
13492
13493 # Command to use when deplibs_check_method == file_magic.
13494 file_magic_cmd=$lt_file_magic_cmd
13495
13496 # Flag that allows shared libraries with undefined symbols to be built.
13497 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13498
13499 # Flag that forces no undefined symbols.
13500 no_undefined_flag=$lt_no_undefined_flag_CXX
13501
13502 # Commands used to finish a libtool library installation in a directory.
13503 finish_cmds=$lt_finish_cmds
13504
13505 # Same as above, but a single script fragment to be evaled but not shown.
13506 finish_eval=$lt_finish_eval
13507
13508 # Take the output of nm and produce a listing of raw symbols and C names.
13509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13510
13511 # Transform the output of nm in a proper C declaration
13512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13513
13514 # Transform the output of nm in a C name address pair
13515 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13516
13517 # This is the shared library runtime path variable.
13518 runpath_var=$runpath_var
13519
13520 # This is the shared library path variable.
13521 shlibpath_var=$shlibpath_var
13522
13523 # Is shlibpath searched before the hard-coded library search path?
13524 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13525
13526 # How to hardcode a shared library path into an executable.
13527 hardcode_action=$hardcode_action_CXX
13528
13529 # Whether we should hardcode library paths into libraries.
13530 hardcode_into_libs=$hardcode_into_libs
13531
13532 # Flag to hardcode \$libdir into a binary during linking.
13533 # This must work even if \$libdir does not exist.
13534 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13535
13536 # If ld is used when linking, flag to hardcode \$libdir into
13537 # a binary during linking. This must work even if \$libdir does
13538 # not exist.
13539 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13540
13541 # Whether we need a single -rpath flag with a separated argument.
13542 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13543
13544 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13545 # resulting binary.
13546 hardcode_direct=$hardcode_direct_CXX
13547
13548 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13549 # resulting binary.
13550 hardcode_minus_L=$hardcode_minus_L_CXX
13551
13552 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13553 # the resulting binary.
13554 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13555
13556 # Set to yes if building a shared library automatically hardcodes DIR into the library
13557 # and all subsequent libraries and executables linked against it.
13558 hardcode_automatic=$hardcode_automatic_CXX
13559
13560 # Variables whose values should be saved in libtool wrapper scripts and
13561 # restored at relink time.
13562 variables_saved_for_relink="$variables_saved_for_relink"
13563
13564 # Whether libtool must link a program against all its dependency libraries.
13565 link_all_deplibs=$link_all_deplibs_CXX
13566
13567 # Compile-time system search path for libraries
13568 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13569
13570 # Run-time system search path for libraries
13571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13572
13573 # Fix the shell variable \$srcfile for the compiler.
13574 fix_srcfile_path="$fix_srcfile_path_CXX"
13575
13576 # Set to yes if exported symbols are required.
13577 always_export_symbols=$always_export_symbols_CXX
13578
13579 # The commands to list exported symbols.
13580 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13581
13582 # The commands to extract the exported symbol list from a shared archive.
13583 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13584
13585 # Symbols that should not be listed in the preloaded symbols.
13586 exclude_expsyms=$lt_exclude_expsyms_CXX
13587
13588 # Symbols that must always be exported.
13589 include_expsyms=$lt_include_expsyms_CXX
13590
13591 # ### END LIBTOOL TAG CONFIG: $tagname
13592
13593 __EOF__
13594
13595
13596 else
13597 # If there is no Makefile yet, we rely on a make rule to execute
13598 # `config.status --recheck' to rerun these tests and create the
13599 # libtool script then.
13600 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13601 if test -f "$ltmain_in"; then
13602 test -f Makefile && make "$ltmain"
13603 fi
13604 fi
13605
13606
13607 ac_ext=c
13608 ac_cpp='$CPP $CPPFLAGS'
13609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13612
13613 CC=$lt_save_CC
13614 LDCXX=$LD
13615 LD=$lt_save_LD
13616 GCC=$lt_save_GCC
13617 with_gnu_ldcxx=$with_gnu_ld
13618 with_gnu_ld=$lt_save_with_gnu_ld
13619 lt_cv_path_LDCXX=$lt_cv_path_LD
13620 lt_cv_path_LD=$lt_save_path_LD
13621 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13622 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13623
13624 else
13625 tagname=""
13626 fi
13627 ;;
13628
13629 F77)
13630 if test -n "$F77" && test "X$F77" != "Xno"; then
13631
13632 ac_ext=f
13633 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13634 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13635 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13636
13637
13638 archive_cmds_need_lc_F77=no
13639 allow_undefined_flag_F77=
13640 always_export_symbols_F77=no
13641 archive_expsym_cmds_F77=
13642 export_dynamic_flag_spec_F77=
13643 hardcode_direct_F77=no
13644 hardcode_libdir_flag_spec_F77=
13645 hardcode_libdir_flag_spec_ld_F77=
13646 hardcode_libdir_separator_F77=
13647 hardcode_minus_L_F77=no
13648 hardcode_automatic_F77=no
13649 module_cmds_F77=
13650 module_expsym_cmds_F77=
13651 link_all_deplibs_F77=unknown
13652 old_archive_cmds_F77=$old_archive_cmds
13653 no_undefined_flag_F77=
13654 whole_archive_flag_spec_F77=
13655 enable_shared_with_static_runtimes_F77=no
13656
13657 # Source file extension for f77 test sources.
13658 ac_ext=f
13659
13660 # Object file extension for compiled f77 test sources.
13661 objext=o
13662 objext_F77=$objext
13663
13664 # Code to be used in simple compile tests
13665 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13666
13667 # Code to be used in simple link tests
13668 lt_simple_link_test_code=" program t\n end\n"
13669
13670 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13671
13672 # If no C compiler was specified, use CC.
13673 LTCC=${LTCC-"$CC"}
13674
13675 # If no C compiler flags were specified, use CFLAGS.
13676 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13677
13678 # Allow CC to be a program name with arguments.
13679 compiler=$CC
13680
13681
13682 # save warnings/boilerplate of simple test code
13683 ac_outfile=conftest.$ac_objext
13684 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13685 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13686 _lt_compiler_boilerplate=`cat conftest.err`
13687 $rm conftest*
13688
13689 ac_outfile=conftest.$ac_objext
13690 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13691 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13692 _lt_linker_boilerplate=`cat conftest.err`
13693 $rm conftest*
13694
13695
13696 # Allow CC to be a program name with arguments.
13697 lt_save_CC="$CC"
13698 CC=${F77-"f77"}
13699 compiler=$CC
13700 compiler_F77=$CC
13701 for cc_temp in $compiler""; do
13702 case $cc_temp in
13703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13705 \-*) ;;
13706 *) break;;
13707 esac
13708 done
13709 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13710
13711
13712 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13713 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13714 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13715 echo "${ECHO_T}$can_build_shared" >&6; }
13716
13717 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13718 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13719 test "$can_build_shared" = "no" && enable_shared=no
13720
13721 # On AIX, shared libraries and static libraries use the same namespace, and
13722 # are all built from PIC.
13723 case $host_os in
13724 aix3*)
13725 test "$enable_shared" = yes && enable_static=no
13726 if test -n "$RANLIB"; then
13727 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13728 postinstall_cmds='$RANLIB $lib'
13729 fi
13730 ;;
13731 aix4* | aix5*)
13732 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13733 test "$enable_shared" = yes && enable_static=no
13734 fi
13735 ;;
13736 esac
13737 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13738 echo "${ECHO_T}$enable_shared" >&6; }
13739
13740 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13741 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13742 # Make sure either enable_shared or enable_static is yes.
13743 test "$enable_shared" = yes || enable_static=yes
13744 { echo "$as_me:$LINENO: result: $enable_static" >&5
13745 echo "${ECHO_T}$enable_static" >&6; }
13746
13747 GCC_F77="$G77"
13748 LD_F77="$LD"
13749
13750 lt_prog_compiler_wl_F77=
13751 lt_prog_compiler_pic_F77=
13752 lt_prog_compiler_static_F77=
13753
13754 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13755 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13756
13757 if test "$GCC" = yes; then
13758 lt_prog_compiler_wl_F77='-Wl,'
13759 lt_prog_compiler_static_F77='-static'
13760
13761 case $host_os in
13762 aix*)
13763 # All AIX code is PIC.
13764 if test "$host_cpu" = ia64; then
13765 # AIX 5 now supports IA64 processor
13766 lt_prog_compiler_static_F77='-Bstatic'
13767 fi
13768 ;;
13769
13770 amigaos*)
13771 # FIXME: we need at least 68020 code to build shared libraries, but
13772 # adding the `-m68020' flag to GCC prevents building anything better,
13773 # like `-m68040'.
13774 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13775 ;;
13776
13777 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13778 # PIC is the default for these OSes.
13779 ;;
13780
13781 mingw* | pw32* | os2*)
13782 # This hack is so that the source file can tell whether it is being
13783 # built for inclusion in a dll (and should export symbols for example).
13784 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13785 ;;
13786
13787 darwin* | rhapsody*)
13788 # PIC is the default on this platform
13789 # Common symbols not allowed in MH_DYLIB files
13790 lt_prog_compiler_pic_F77='-fno-common'
13791 ;;
13792
13793 interix3*)
13794 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13795 # Instead, we relocate shared libraries at runtime.
13796 ;;
13797
13798 msdosdjgpp*)
13799 # Just because we use GCC doesn't mean we suddenly get shared libraries
13800 # on systems that don't support them.
13801 lt_prog_compiler_can_build_shared_F77=no
13802 enable_shared=no
13803 ;;
13804
13805 sysv4*MP*)
13806 if test -d /usr/nec; then
13807 lt_prog_compiler_pic_F77=-Kconform_pic
13808 fi
13809 ;;
13810
13811 hpux*)
13812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13813 # not for PA HP-UX.
13814 case $host_cpu in
13815 hppa*64*|ia64*)
13816 # +Z the default
13817 ;;
13818 *)
13819 lt_prog_compiler_pic_F77='-fPIC'
13820 ;;
13821 esac
13822 ;;
13823
13824 *)
13825 lt_prog_compiler_pic_F77='-fPIC'
13826 ;;
13827 esac
13828 else
13829 # PORTME Check for flag to pass linker flags through the system compiler.
13830 case $host_os in
13831 aix*)
13832 lt_prog_compiler_wl_F77='-Wl,'
13833 if test "$host_cpu" = ia64; then
13834 # AIX 5 now supports IA64 processor
13835 lt_prog_compiler_static_F77='-Bstatic'
13836 else
13837 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13838 fi
13839 ;;
13840 darwin*)
13841 # PIC is the default on this platform
13842 # Common symbols not allowed in MH_DYLIB files
13843 case $cc_basename in
13844 xlc*)
13845 lt_prog_compiler_pic_F77='-qnocommon'
13846 lt_prog_compiler_wl_F77='-Wl,'
13847 ;;
13848 esac
13849 ;;
13850
13851 mingw* | pw32* | os2*)
13852 # This hack is so that the source file can tell whether it is being
13853 # built for inclusion in a dll (and should export symbols for example).
13854 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13855 ;;
13856
13857 hpux9* | hpux10* | hpux11*)
13858 lt_prog_compiler_wl_F77='-Wl,'
13859 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13860 # not for PA HP-UX.
13861 case $host_cpu in
13862 hppa*64*|ia64*)
13863 # +Z the default
13864 ;;
13865 *)
13866 lt_prog_compiler_pic_F77='+Z'
13867 ;;
13868 esac
13869 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13870 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13871 ;;
13872
13873 irix5* | irix6* | nonstopux*)
13874 lt_prog_compiler_wl_F77='-Wl,'
13875 # PIC (with -KPIC) is the default.
13876 lt_prog_compiler_static_F77='-non_shared'
13877 ;;
13878
13879 newsos6)
13880 lt_prog_compiler_pic_F77='-KPIC'
13881 lt_prog_compiler_static_F77='-Bstatic'
13882 ;;
13883
13884 linux*)
13885 case $cc_basename in
13886 icc* | ecc*)
13887 lt_prog_compiler_wl_F77='-Wl,'
13888 lt_prog_compiler_pic_F77='-KPIC'
13889 lt_prog_compiler_static_F77='-static'
13890 ;;
13891 pgcc* | pgf77* | pgf90* | pgf95*)
13892 # Portland Group compilers (*not* the Pentium gcc compiler,
13893 # which looks to be a dead project)
13894 lt_prog_compiler_wl_F77='-Wl,'
13895 lt_prog_compiler_pic_F77='-fpic'
13896 lt_prog_compiler_static_F77='-Bstatic'
13897 ;;
13898 ccc*)
13899 lt_prog_compiler_wl_F77='-Wl,'
13900 # All Alpha code is PIC.
13901 lt_prog_compiler_static_F77='-non_shared'
13902 ;;
13903 esac
13904 ;;
13905
13906 osf3* | osf4* | osf5*)
13907 lt_prog_compiler_wl_F77='-Wl,'
13908 # All OSF/1 code is PIC.
13909 lt_prog_compiler_static_F77='-non_shared'
13910 ;;
13911
13912 solaris*)
13913 lt_prog_compiler_pic_F77='-KPIC'
13914 lt_prog_compiler_static_F77='-Bstatic'
13915 case $cc_basename in
13916 f77* | f90* | f95*)
13917 lt_prog_compiler_wl_F77='-Qoption ld ';;
13918 *)
13919 lt_prog_compiler_wl_F77='-Wl,';;
13920 esac
13921 ;;
13922
13923 sunos4*)
13924 lt_prog_compiler_wl_F77='-Qoption ld '
13925 lt_prog_compiler_pic_F77='-PIC'
13926 lt_prog_compiler_static_F77='-Bstatic'
13927 ;;
13928
13929 sysv4 | sysv4.2uw2* | sysv4.3*)
13930 lt_prog_compiler_wl_F77='-Wl,'
13931 lt_prog_compiler_pic_F77='-KPIC'
13932 lt_prog_compiler_static_F77='-Bstatic'
13933 ;;
13934
13935 sysv4*MP*)
13936 if test -d /usr/nec ;then
13937 lt_prog_compiler_pic_F77='-Kconform_pic'
13938 lt_prog_compiler_static_F77='-Bstatic'
13939 fi
13940 ;;
13941
13942 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13943 lt_prog_compiler_wl_F77='-Wl,'
13944 lt_prog_compiler_pic_F77='-KPIC'
13945 lt_prog_compiler_static_F77='-Bstatic'
13946 ;;
13947
13948 unicos*)
13949 lt_prog_compiler_wl_F77='-Wl,'
13950 lt_prog_compiler_can_build_shared_F77=no
13951 ;;
13952
13953 uts4*)
13954 lt_prog_compiler_pic_F77='-pic'
13955 lt_prog_compiler_static_F77='-Bstatic'
13956 ;;
13957
13958 *)
13959 lt_prog_compiler_can_build_shared_F77=no
13960 ;;
13961 esac
13962 fi
13963
13964 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13965 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13966
13967 #
13968 # Check to make sure the PIC flag actually works.
13969 #
13970 if test -n "$lt_prog_compiler_pic_F77"; then
13971
13972 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13974 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977 lt_prog_compiler_pic_works_F77=no
13978 ac_outfile=conftest.$ac_objext
13979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13980 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13981 # Insert the option either (1) after the last *FLAGS variable, or
13982 # (2) before a word containing "conftest.", or (3) at the end.
13983 # Note that $ac_compile itself does not contain backslashes and begins
13984 # with a dollar sign (not a hyphen), so the echo should work correctly.
13985 # The option is referenced via a variable to avoid confusing sed.
13986 lt_compile=`echo "$ac_compile" | $SED \
13987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13989 -e 's:$: $lt_compiler_flag:'`
13990 (eval echo "\"\$as_me:13990: $lt_compile\"" >&5)
13991 (eval "$lt_compile" 2>conftest.err)
13992 ac_status=$?
13993 cat conftest.err >&5
13994 echo "$as_me:13994: \$? = $ac_status" >&5
13995 if (exit $ac_status) && test -s "$ac_outfile"; then
13996 # The compiler can only warn and ignore the option if not recognized
13997 # So say no if there are warnings other than the usual output.
13998 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14001 lt_prog_compiler_pic_works_F77=yes
14002 fi
14003 fi
14004 $rm conftest*
14005
14006 fi
14007 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14008 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14009
14010 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14011 case $lt_prog_compiler_pic_F77 in
14012 "" | " "*) ;;
14013 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14014 esac
14015 else
14016 lt_prog_compiler_pic_F77=
14017 lt_prog_compiler_can_build_shared_F77=no
14018 fi
14019
14020 fi
14021 case $host_os in
14022 # For platforms which do not support PIC, -DPIC is meaningless:
14023 *djgpp*)
14024 lt_prog_compiler_pic_F77=
14025 ;;
14026 *)
14027 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14028 ;;
14029 esac
14030
14031 #
14032 # Check to make sure the static flag actually works.
14033 #
14034 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14035 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14036 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14037 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040 lt_prog_compiler_static_works_F77=no
14041 save_LDFLAGS="$LDFLAGS"
14042 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14043 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14044 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14045 # The linker can only warn and ignore the option if not recognized
14046 # So say no if there are warnings
14047 if test -s conftest.err; then
14048 # Append any errors to the config.log.
14049 cat conftest.err 1>&5
14050 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14052 if diff conftest.exp conftest.er2 >/dev/null; then
14053 lt_prog_compiler_static_works_F77=yes
14054 fi
14055 else
14056 lt_prog_compiler_static_works_F77=yes
14057 fi
14058 fi
14059 $rm conftest*
14060 LDFLAGS="$save_LDFLAGS"
14061
14062 fi
14063 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14064 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14065
14066 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14067 :
14068 else
14069 lt_prog_compiler_static_F77=
14070 fi
14071
14072
14073 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14074 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14075 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 else
14078 lt_cv_prog_compiler_c_o_F77=no
14079 $rm -r conftest 2>/dev/null
14080 mkdir conftest
14081 cd conftest
14082 mkdir out
14083 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14084
14085 lt_compiler_flag="-o out/conftest2.$ac_objext"
14086 # Insert the option either (1) after the last *FLAGS variable, or
14087 # (2) before a word containing "conftest.", or (3) at the end.
14088 # Note that $ac_compile itself does not contain backslashes and begins
14089 # with a dollar sign (not a hyphen), so the echo should work correctly.
14090 lt_compile=`echo "$ac_compile" | $SED \
14091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14093 -e 's:$: $lt_compiler_flag:'`
14094 (eval echo "\"\$as_me:14094: $lt_compile\"" >&5)
14095 (eval "$lt_compile" 2>out/conftest.err)
14096 ac_status=$?
14097 cat out/conftest.err >&5
14098 echo "$as_me:14098: \$? = $ac_status" >&5
14099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14100 then
14101 # The compiler can only warn and ignore the option if not recognized
14102 # So say no if there are warnings
14103 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14106 lt_cv_prog_compiler_c_o_F77=yes
14107 fi
14108 fi
14109 chmod u+w . 2>&5
14110 $rm conftest*
14111 # SGI C++ compiler will create directory out/ii_files/ for
14112 # template instantiation
14113 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14114 $rm out/* && rmdir out
14115 cd ..
14116 rmdir conftest
14117 $rm conftest*
14118
14119 fi
14120 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14121 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14122
14123
14124 hard_links="nottested"
14125 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14126 # do not overwrite the value of need_locks provided by the user
14127 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14128 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14129 hard_links=yes
14130 $rm conftest*
14131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14132 touch conftest.a
14133 ln conftest.a conftest.b 2>&5 || hard_links=no
14134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14135 { echo "$as_me:$LINENO: result: $hard_links" >&5
14136 echo "${ECHO_T}$hard_links" >&6; }
14137 if test "$hard_links" = no; then
14138 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14139 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14140 need_locks=warn
14141 fi
14142 else
14143 need_locks=no
14144 fi
14145
14146 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14147 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14148
14149 runpath_var=
14150 allow_undefined_flag_F77=
14151 enable_shared_with_static_runtimes_F77=no
14152 archive_cmds_F77=
14153 archive_expsym_cmds_F77=
14154 old_archive_From_new_cmds_F77=
14155 old_archive_from_expsyms_cmds_F77=
14156 export_dynamic_flag_spec_F77=
14157 whole_archive_flag_spec_F77=
14158 thread_safe_flag_spec_F77=
14159 hardcode_libdir_flag_spec_F77=
14160 hardcode_libdir_flag_spec_ld_F77=
14161 hardcode_libdir_separator_F77=
14162 hardcode_direct_F77=no
14163 hardcode_minus_L_F77=no
14164 hardcode_shlibpath_var_F77=unsupported
14165 link_all_deplibs_F77=unknown
14166 hardcode_automatic_F77=no
14167 module_cmds_F77=
14168 module_expsym_cmds_F77=
14169 always_export_symbols_F77=no
14170 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14171 # include_expsyms should be a list of space-separated symbols to be *always*
14172 # included in the symbol list
14173 include_expsyms_F77=
14174 # exclude_expsyms can be an extended regexp of symbols to exclude
14175 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14176 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14177 # as well as any symbol that contains `d'.
14178 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14179 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14180 # platforms (ab)use it in PIC code, but their linkers get confused if
14181 # the symbol is explicitly referenced. Since portable code cannot
14182 # rely on this symbol name, it's probably fine to never include it in
14183 # preloaded symbol tables.
14184 extract_expsyms_cmds=
14185 # Just being paranoid about ensuring that cc_basename is set.
14186 for cc_temp in $compiler""; do
14187 case $cc_temp in
14188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14190 \-*) ;;
14191 *) break;;
14192 esac
14193 done
14194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14195
14196 case $host_os in
14197 cygwin* | mingw* | pw32*)
14198 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14199 # When not using gcc, we currently assume that we are using
14200 # Microsoft Visual C++.
14201 if test "$GCC" != yes; then
14202 with_gnu_ld=no
14203 fi
14204 ;;
14205 interix*)
14206 # we just hope/assume this is gcc and not c89 (= MSVC++)
14207 with_gnu_ld=yes
14208 ;;
14209 openbsd*)
14210 with_gnu_ld=no
14211 ;;
14212 esac
14213
14214 ld_shlibs_F77=yes
14215 if test "$with_gnu_ld" = yes; then
14216 # If archive_cmds runs LD, not CC, wlarc should be empty
14217 wlarc='${wl}'
14218
14219 # Set some defaults for GNU ld with shared library support. These
14220 # are reset later if shared libraries are not supported. Putting them
14221 # here allows them to be overridden if necessary.
14222 runpath_var=LD_RUN_PATH
14223 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14224 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14225 # ancient GNU ld didn't support --whole-archive et. al.
14226 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14227 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14228 else
14229 whole_archive_flag_spec_F77=
14230 fi
14231 supports_anon_versioning=no
14232 case `$LD -v 2>/dev/null` in
14233 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14234 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14235 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14236 *\ 2.11.*) ;; # other 2.11 versions
14237 *) supports_anon_versioning=yes ;;
14238 esac
14239
14240 # See if GNU ld supports shared libraries.
14241 case $host_os in
14242 aix3* | aix4* | aix5*)
14243 # On AIX/PPC, the GNU linker is very broken
14244 if test "$host_cpu" != ia64; then
14245 ld_shlibs_F77=no
14246 cat <<EOF 1>&2
14247
14248 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14249 *** to be unable to reliably create shared libraries on AIX.
14250 *** Therefore, libtool is disabling shared libraries support. If you
14251 *** really care for shared libraries, you may want to modify your PATH
14252 *** so that a non-GNU linker is found, and then restart.
14253
14254 EOF
14255 fi
14256 ;;
14257
14258 amigaos*)
14259 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)'
14260 hardcode_libdir_flag_spec_F77='-L$libdir'
14261 hardcode_minus_L_F77=yes
14262
14263 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14264 # that the semantics of dynamic libraries on AmigaOS, at least up
14265 # to version 4, is to share data among multiple programs linked
14266 # with the same dynamic library. Since this doesn't match the
14267 # behavior of shared libraries on other platforms, we can't use
14268 # them.
14269 ld_shlibs_F77=no
14270 ;;
14271
14272 beos*)
14273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14274 allow_undefined_flag_F77=unsupported
14275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14276 # support --undefined. This deserves some investigation. FIXME
14277 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14278 else
14279 ld_shlibs_F77=no
14280 fi
14281 ;;
14282
14283 cygwin* | mingw* | pw32*)
14284 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14285 # as there is no search path for DLLs.
14286 hardcode_libdir_flag_spec_F77='-L$libdir'
14287 allow_undefined_flag_F77=unsupported
14288 always_export_symbols_F77=no
14289 enable_shared_with_static_runtimes_F77=yes
14290 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14291
14292 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14293 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14294 # If the export-symbols file already is a .def file (1st line
14295 # is EXPORTS), use it as is; otherwise, prepend...
14296 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14297 cp $export_symbols $output_objdir/$soname.def;
14298 else
14299 echo EXPORTS > $output_objdir/$soname.def;
14300 cat $export_symbols >> $output_objdir/$soname.def;
14301 fi~
14302 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14303 else
14304 ld_shlibs_F77=no
14305 fi
14306 ;;
14307
14308 interix3*)
14309 hardcode_direct_F77=no
14310 hardcode_shlibpath_var_F77=no
14311 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14312 export_dynamic_flag_spec_F77='${wl}-E'
14313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14314 # Instead, shared libraries are loaded at an image base (0x10000000 by
14315 # default) and relocated if they conflict, which is a slow very memory
14316 # consuming and fragmenting process. To avoid this, we pick a random,
14317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14319 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'
14320 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'
14321 ;;
14322
14323 linux*)
14324 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14325 tmp_addflag=
14326 case $cc_basename,$host_cpu in
14327 pgcc*) # Portland Group C compiler
14328 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'
14329 tmp_addflag=' $pic_flag'
14330 ;;
14331 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14332 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'
14333 tmp_addflag=' $pic_flag -Mnomain' ;;
14334 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14335 tmp_addflag=' -i_dynamic' ;;
14336 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14337 tmp_addflag=' -i_dynamic -nofor_main' ;;
14338 ifc* | ifort*) # Intel Fortran compiler
14339 tmp_addflag=' -nofor_main' ;;
14340 esac
14341 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14342
14343 if test $supports_anon_versioning = yes; then
14344 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14346 $echo "local: *; };" >> $output_objdir/$libname.ver~
14347 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14348 fi
14349 else
14350 ld_shlibs_F77=no
14351 fi
14352 ;;
14353
14354 netbsd*)
14355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14356 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14357 wlarc=
14358 else
14359 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14360 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14361 fi
14362 ;;
14363
14364 solaris*)
14365 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14366 ld_shlibs_F77=no
14367 cat <<EOF 1>&2
14368
14369 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14370 *** create shared libraries on Solaris systems. Therefore, libtool
14371 *** is disabling shared libraries support. We urge you to upgrade GNU
14372 *** binutils to release 2.9.1 or newer. Another option is to modify
14373 *** your PATH or compiler configuration so that the native linker is
14374 *** used, and then restart.
14375
14376 EOF
14377 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14380 else
14381 ld_shlibs_F77=no
14382 fi
14383 ;;
14384
14385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14386 case `$LD -v 2>&1` in
14387 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14388 ld_shlibs_F77=no
14389 cat <<_LT_EOF 1>&2
14390
14391 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14392 *** reliably create shared libraries on SCO systems. Therefore, libtool
14393 *** is disabling shared libraries support. We urge you to upgrade GNU
14394 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14395 *** your PATH or compiler configuration so that the native linker is
14396 *** used, and then restart.
14397
14398 _LT_EOF
14399 ;;
14400 *)
14401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14402 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14404 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14405 else
14406 ld_shlibs_F77=no
14407 fi
14408 ;;
14409 esac
14410 ;;
14411
14412 sunos4*)
14413 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14414 wlarc=
14415 hardcode_direct_F77=yes
14416 hardcode_shlibpath_var_F77=no
14417 ;;
14418
14419 *)
14420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14421 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14422 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14423 else
14424 ld_shlibs_F77=no
14425 fi
14426 ;;
14427 esac
14428
14429 if test "$ld_shlibs_F77" = no; then
14430 runpath_var=
14431 hardcode_libdir_flag_spec_F77=
14432 export_dynamic_flag_spec_F77=
14433 whole_archive_flag_spec_F77=
14434 fi
14435 else
14436 # PORTME fill in a description of your system's linker (not GNU ld)
14437 case $host_os in
14438 aix3*)
14439 allow_undefined_flag_F77=unsupported
14440 always_export_symbols_F77=yes
14441 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'
14442 # Note: this linker hardcodes the directories in LIBPATH if there
14443 # are no directories specified by -L.
14444 hardcode_minus_L_F77=yes
14445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14446 # Neither direct hardcoding nor static linking is supported with a
14447 # broken collect2.
14448 hardcode_direct_F77=unsupported
14449 fi
14450 ;;
14451
14452 aix4* | aix5*)
14453 if test "$host_cpu" = ia64; then
14454 # On IA64, the linker does run time linking by default, so we don't
14455 # have to do anything special.
14456 aix_use_runtimelinking=no
14457 exp_sym_flag='-Bexport'
14458 no_entry_flag=""
14459 else
14460 # If we're using GNU nm, then we don't want the "-C" option.
14461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14462 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14463 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'
14464 else
14465 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'
14466 fi
14467 aix_use_runtimelinking=no
14468
14469 # Test if we are trying to use run time linking or normal
14470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14471 # need to do runtime linking.
14472 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14473 for ld_flag in $LDFLAGS; do
14474 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14475 aix_use_runtimelinking=yes
14476 break
14477 fi
14478 done
14479 ;;
14480 esac
14481
14482 exp_sym_flag='-bexport'
14483 no_entry_flag='-bnoentry'
14484 fi
14485
14486 # When large executables or shared objects are built, AIX ld can
14487 # have problems creating the table of contents. If linking a library
14488 # or program results in "error TOC overflow" add -mminimal-toc to
14489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14491
14492 archive_cmds_F77=''
14493 hardcode_direct_F77=yes
14494 hardcode_libdir_separator_F77=':'
14495 link_all_deplibs_F77=yes
14496
14497 if test "$GCC" = yes; then
14498 case $host_os in aix4.[012]|aix4.[012].*)
14499 # We only want to do this on AIX 4.2 and lower, the check
14500 # below for broken collect2 doesn't work under 4.3+
14501 collect2name=`${CC} -print-prog-name=collect2`
14502 if test -f "$collect2name" && \
14503 strings "$collect2name" | grep resolve_lib_name >/dev/null
14504 then
14505 # We have reworked collect2
14506 hardcode_direct_F77=yes
14507 else
14508 # We have old collect2
14509 hardcode_direct_F77=unsupported
14510 # It fails to find uninstalled libraries when the uninstalled
14511 # path is not listed in the libpath. Setting hardcode_minus_L
14512 # to unsupported forces relinking
14513 hardcode_minus_L_F77=yes
14514 hardcode_libdir_flag_spec_F77='-L$libdir'
14515 hardcode_libdir_separator_F77=
14516 fi
14517 ;;
14518 esac
14519 shared_flag='-shared'
14520 if test "$aix_use_runtimelinking" = yes; then
14521 shared_flag="$shared_flag "'${wl}-G'
14522 fi
14523 else
14524 # not using gcc
14525 if test "$host_cpu" = ia64; then
14526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14527 # chokes on -Wl,-G. The following line is correct:
14528 shared_flag='-G'
14529 else
14530 if test "$aix_use_runtimelinking" = yes; then
14531 shared_flag='${wl}-G'
14532 else
14533 shared_flag='${wl}-bM:SRE'
14534 fi
14535 fi
14536 fi
14537
14538 # It seems that -bexpall does not export symbols beginning with
14539 # underscore (_), so it is better to generate a list of symbols to export.
14540 always_export_symbols_F77=yes
14541 if test "$aix_use_runtimelinking" = yes; then
14542 # Warning - without using the other runtime loading flags (-brtl),
14543 # -berok will link without error, but may produce a broken library.
14544 allow_undefined_flag_F77='-berok'
14545 # Determine the default libpath from the value encoded in an empty executable.
14546 cat >conftest.$ac_ext <<_ACEOF
14547 program main
14548
14549 end
14550 _ACEOF
14551 rm -f conftest.$ac_objext conftest$ac_exeext
14552 if { (ac_try="$ac_link"
14553 case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_link") 2>conftest.er1
14559 ac_status=$?
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_f77_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest$ac_exeext &&
14568 $as_test_x conftest$ac_exeext; then
14569
14570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14571 }'`
14572 # Check for a 64-bit object if we didn't find anything.
14573 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14574 }'`; fi
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14578
14579
14580 fi
14581
14582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14583 conftest$ac_exeext conftest.$ac_ext
14584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14585
14586 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14587 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"
14588 else
14589 if test "$host_cpu" = ia64; then
14590 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14591 allow_undefined_flag_F77="-z nodefs"
14592 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"
14593 else
14594 # Determine the default libpath from the value encoded in an empty executable.
14595 cat >conftest.$ac_ext <<_ACEOF
14596 program main
14597
14598 end
14599 _ACEOF
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (ac_try="$ac_link"
14602 case "(($ac_try" in
14603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604 *) ac_try_echo=$ac_try;;
14605 esac
14606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607 (eval "$ac_link") 2>conftest.er1
14608 ac_status=$?
14609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } && {
14614 test -z "$ac_f77_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest$ac_exeext &&
14617 $as_test_x conftest$ac_exeext; then
14618
14619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14620 }'`
14621 # Check for a 64-bit object if we didn't find anything.
14622 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14623 }'`; fi
14624 else
14625 echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14627
14628
14629 fi
14630
14631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14632 conftest$ac_exeext conftest.$ac_ext
14633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14634
14635 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14636 # Warning - without using the other run time loading flags,
14637 # -berok will link without error, but may produce a broken library.
14638 no_undefined_flag_F77=' ${wl}-bernotok'
14639 allow_undefined_flag_F77=' ${wl}-berok'
14640 # Exported symbols can be pulled into shared objects from archives
14641 whole_archive_flag_spec_F77='$convenience'
14642 archive_cmds_need_lc_F77=yes
14643 # This is similar to how AIX traditionally builds its shared libraries.
14644 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'
14645 fi
14646 fi
14647 ;;
14648
14649 amigaos*)
14650 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)'
14651 hardcode_libdir_flag_spec_F77='-L$libdir'
14652 hardcode_minus_L_F77=yes
14653 # see comment about different semantics on the GNU ld section
14654 ld_shlibs_F77=no
14655 ;;
14656
14657 bsdi[45]*)
14658 export_dynamic_flag_spec_F77=-rdynamic
14659 ;;
14660
14661 cygwin* | mingw* | pw32*)
14662 # When not using gcc, we currently assume that we are using
14663 # Microsoft Visual C++.
14664 # hardcode_libdir_flag_spec is actually meaningless, as there is
14665 # no search path for DLLs.
14666 hardcode_libdir_flag_spec_F77=' '
14667 allow_undefined_flag_F77=unsupported
14668 # Tell ltmain to make .lib files, not .a files.
14669 libext=lib
14670 # Tell ltmain to make .dll files, not .so files.
14671 shrext_cmds=".dll"
14672 # FIXME: Setting linknames here is a bad hack.
14673 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14674 # The linker will automatically build a .lib file if we build a DLL.
14675 old_archive_From_new_cmds_F77='true'
14676 # FIXME: Should let the user specify the lib program.
14677 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14678 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14679 enable_shared_with_static_runtimes_F77=yes
14680 ;;
14681
14682 darwin* | rhapsody*)
14683 case $host_os in
14684 rhapsody* | darwin1.[012])
14685 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14686 ;;
14687 *) # Darwin 1.3 on
14688 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14689 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14690 else
14691 case ${MACOSX_DEPLOYMENT_TARGET} in
14692 10.[012])
14693 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14694 ;;
14695 10.*)
14696 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14697 ;;
14698 esac
14699 fi
14700 ;;
14701 esac
14702 archive_cmds_need_lc_F77=no
14703 hardcode_direct_F77=no
14704 hardcode_automatic_F77=yes
14705 hardcode_shlibpath_var_F77=unsupported
14706 whole_archive_flag_spec_F77=''
14707 link_all_deplibs_F77=yes
14708 if test "$GCC" = yes ; then
14709 output_verbose_link_cmd='echo'
14710 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14711 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14712 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14713 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}'
14714 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}'
14715 else
14716 case $cc_basename in
14717 xlc*)
14718 output_verbose_link_cmd='echo'
14719 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14720 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14721 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14722 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14723 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}'
14724 ;;
14725 *)
14726 ld_shlibs_F77=no
14727 ;;
14728 esac
14729 fi
14730 ;;
14731
14732 dgux*)
14733 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14734 hardcode_libdir_flag_spec_F77='-L$libdir'
14735 hardcode_shlibpath_var_F77=no
14736 ;;
14737
14738 freebsd1*)
14739 ld_shlibs_F77=no
14740 ;;
14741
14742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14743 # support. Future versions do this automatically, but an explicit c++rt0.o
14744 # does not break anything, and helps significantly (at the cost of a little
14745 # extra space).
14746 freebsd2.2*)
14747 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14748 hardcode_libdir_flag_spec_F77='-R$libdir'
14749 hardcode_direct_F77=yes
14750 hardcode_shlibpath_var_F77=no
14751 ;;
14752
14753 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14754 freebsd2*)
14755 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14756 hardcode_direct_F77=yes
14757 hardcode_minus_L_F77=yes
14758 hardcode_shlibpath_var_F77=no
14759 ;;
14760
14761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14762 freebsd* | kfreebsd*-gnu | dragonfly*)
14763 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14764 hardcode_libdir_flag_spec_F77='-R$libdir'
14765 hardcode_direct_F77=yes
14766 hardcode_shlibpath_var_F77=no
14767 ;;
14768
14769 hpux9*)
14770 if test "$GCC" = yes; then
14771 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'
14772 else
14773 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'
14774 fi
14775 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14776 hardcode_libdir_separator_F77=:
14777 hardcode_direct_F77=yes
14778
14779 # hardcode_minus_L: Not really in the search PATH,
14780 # but as the default location of the library.
14781 hardcode_minus_L_F77=yes
14782 export_dynamic_flag_spec_F77='${wl}-E'
14783 ;;
14784
14785 hpux10*)
14786 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14787 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14788 else
14789 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14790 fi
14791 if test "$with_gnu_ld" = no; then
14792 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14793 hardcode_libdir_separator_F77=:
14794
14795 hardcode_direct_F77=yes
14796 export_dynamic_flag_spec_F77='${wl}-E'
14797
14798 # hardcode_minus_L: Not really in the search PATH,
14799 # but as the default location of the library.
14800 hardcode_minus_L_F77=yes
14801 fi
14802 ;;
14803
14804 hpux11*)
14805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14806 case $host_cpu in
14807 hppa*64*)
14808 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14809 ;;
14810 ia64*)
14811 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14812 ;;
14813 *)
14814 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14815 ;;
14816 esac
14817 else
14818 case $host_cpu in
14819 hppa*64*)
14820 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 ;;
14822 ia64*)
14823 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14824 ;;
14825 *)
14826 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14827 ;;
14828 esac
14829 fi
14830 if test "$with_gnu_ld" = no; then
14831 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14832 hardcode_libdir_separator_F77=:
14833
14834 case $host_cpu in
14835 hppa*64*|ia64*)
14836 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14837 hardcode_direct_F77=no
14838 hardcode_shlibpath_var_F77=no
14839 ;;
14840 *)
14841 hardcode_direct_F77=yes
14842 export_dynamic_flag_spec_F77='${wl}-E'
14843
14844 # hardcode_minus_L: Not really in the search PATH,
14845 # but as the default location of the library.
14846 hardcode_minus_L_F77=yes
14847 ;;
14848 esac
14849 fi
14850 ;;
14851
14852 irix5* | irix6* | nonstopux*)
14853 if test "$GCC" = yes; then
14854 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'
14855 else
14856 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'
14857 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14858 fi
14859 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14860 hardcode_libdir_separator_F77=:
14861 link_all_deplibs_F77=yes
14862 ;;
14863
14864 netbsd*)
14865 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14866 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14867 else
14868 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14869 fi
14870 hardcode_libdir_flag_spec_F77='-R$libdir'
14871 hardcode_direct_F77=yes
14872 hardcode_shlibpath_var_F77=no
14873 ;;
14874
14875 newsos6)
14876 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14877 hardcode_direct_F77=yes
14878 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14879 hardcode_libdir_separator_F77=:
14880 hardcode_shlibpath_var_F77=no
14881 ;;
14882
14883 openbsd*)
14884 hardcode_direct_F77=yes
14885 hardcode_shlibpath_var_F77=no
14886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14887 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14888 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14889 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14890 export_dynamic_flag_spec_F77='${wl}-E'
14891 else
14892 case $host_os in
14893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14894 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14895 hardcode_libdir_flag_spec_F77='-R$libdir'
14896 ;;
14897 *)
14898 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14899 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14900 ;;
14901 esac
14902 fi
14903 ;;
14904
14905 os2*)
14906 hardcode_libdir_flag_spec_F77='-L$libdir'
14907 hardcode_minus_L_F77=yes
14908 allow_undefined_flag_F77=unsupported
14909 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'
14910 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14911 ;;
14912
14913 osf3*)
14914 if test "$GCC" = yes; then
14915 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14916 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'
14917 else
14918 allow_undefined_flag_F77=' -expect_unresolved \*'
14919 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'
14920 fi
14921 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14922 hardcode_libdir_separator_F77=:
14923 ;;
14924
14925 osf4* | osf5*) # as osf3* with the addition of -msym flag
14926 if test "$GCC" = yes; then
14927 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14928 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'
14929 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14930 else
14931 allow_undefined_flag_F77=' -expect_unresolved \*'
14932 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'
14933 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~
14934 $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'
14935
14936 # Both c and cxx compiler support -rpath directly
14937 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14938 fi
14939 hardcode_libdir_separator_F77=:
14940 ;;
14941
14942 solaris*)
14943 no_undefined_flag_F77=' -z text'
14944 if test "$GCC" = yes; then
14945 wlarc='${wl}'
14946 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14947 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14948 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14949 else
14950 wlarc=''
14951 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14952 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14954 fi
14955 hardcode_libdir_flag_spec_F77='-R$libdir'
14956 hardcode_shlibpath_var_F77=no
14957 case $host_os in
14958 solaris2.[0-5] | solaris2.[0-5].*) ;;
14959 *)
14960 # The compiler driver will combine linker options so we
14961 # cannot just pass the convience library names through
14962 # without $wl, iff we do not link with $LD.
14963 # Luckily, gcc supports the same syntax we need for Sun Studio.
14964 # Supported since Solaris 2.6 (maybe 2.5.1?)
14965 case $wlarc in
14966 '')
14967 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14968 *)
14969 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14970 esac ;;
14971 esac
14972 link_all_deplibs_F77=yes
14973 ;;
14974
14975 sunos4*)
14976 if test "x$host_vendor" = xsequent; then
14977 # Use $CC to link under sequent, because it throws in some extra .o
14978 # files that make .init and .fini sections work.
14979 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14980 else
14981 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14982 fi
14983 hardcode_libdir_flag_spec_F77='-L$libdir'
14984 hardcode_direct_F77=yes
14985 hardcode_minus_L_F77=yes
14986 hardcode_shlibpath_var_F77=no
14987 ;;
14988
14989 sysv4)
14990 case $host_vendor in
14991 sni)
14992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_direct_F77=yes # is this really true???
14994 ;;
14995 siemens)
14996 ## LD is ld it makes a PLAMLIB
14997 ## CC just makes a GrossModule.
14998 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14999 reload_cmds_F77='$CC -r -o $output$reload_objs'
15000 hardcode_direct_F77=no
15001 ;;
15002 motorola)
15003 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15004 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15005 ;;
15006 esac
15007 runpath_var='LD_RUN_PATH'
15008 hardcode_shlibpath_var_F77=no
15009 ;;
15010
15011 sysv4.3*)
15012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_shlibpath_var_F77=no
15014 export_dynamic_flag_spec_F77='-Bexport'
15015 ;;
15016
15017 sysv4*MP*)
15018 if test -d /usr/nec; then
15019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15020 hardcode_shlibpath_var_F77=no
15021 runpath_var=LD_RUN_PATH
15022 hardcode_runpath_var=yes
15023 ld_shlibs_F77=yes
15024 fi
15025 ;;
15026
15027 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15028 no_undefined_flag_F77='${wl}-z,text'
15029 archive_cmds_need_lc_F77=no
15030 hardcode_shlibpath_var_F77=no
15031 runpath_var='LD_RUN_PATH'
15032
15033 if test "$GCC" = yes; then
15034 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15035 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15036 else
15037 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15038 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15039 fi
15040 ;;
15041
15042 sysv5* | sco3.2v5* | sco5v6*)
15043 # Note: We can NOT use -z defs as we might desire, because we do not
15044 # link with -lc, and that would cause any symbols used from libc to
15045 # always be unresolved, which means just about no library would
15046 # ever link correctly. If we're not using GNU ld we use -z text
15047 # though, which does catch some bad symbols but isn't as heavy-handed
15048 # as -z defs.
15049 no_undefined_flag_F77='${wl}-z,text'
15050 allow_undefined_flag_F77='${wl}-z,nodefs'
15051 archive_cmds_need_lc_F77=no
15052 hardcode_shlibpath_var_F77=no
15053 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15054 hardcode_libdir_separator_F77=':'
15055 link_all_deplibs_F77=yes
15056 export_dynamic_flag_spec_F77='${wl}-Bexport'
15057 runpath_var='LD_RUN_PATH'
15058
15059 if test "$GCC" = yes; then
15060 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15061 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 else
15063 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 fi
15066 ;;
15067
15068 uts4*)
15069 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070 hardcode_libdir_flag_spec_F77='-L$libdir'
15071 hardcode_shlibpath_var_F77=no
15072 ;;
15073
15074 *)
15075 ld_shlibs_F77=no
15076 ;;
15077 esac
15078 fi
15079
15080 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15081 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15082 test "$ld_shlibs_F77" = no && can_build_shared=no
15083
15084 #
15085 # Do we need to explicitly link libc?
15086 #
15087 case "x$archive_cmds_need_lc_F77" in
15088 x|xyes)
15089 # Assume -lc should be added
15090 archive_cmds_need_lc_F77=yes
15091
15092 if test "$enable_shared" = yes && test "$GCC" = yes; then
15093 case $archive_cmds_F77 in
15094 *'~'*)
15095 # FIXME: we may have to deal with multi-command sequences.
15096 ;;
15097 '$CC '*)
15098 # Test whether the compiler implicitly links with -lc since on some
15099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15100 # to ld, don't add -lc before -lgcc.
15101 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15102 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15103 $rm conftest*
15104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15105
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107 (eval $ac_compile) 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); } 2>conftest.err; then
15111 soname=conftest
15112 lib=conftest
15113 libobjs=conftest.$ac_objext
15114 deplibs=
15115 wl=$lt_prog_compiler_wl_F77
15116 pic_flag=$lt_prog_compiler_pic_F77
15117 compiler_flags=-v
15118 linker_flags=-v
15119 verstring=
15120 output_objdir=.
15121 libname=conftest
15122 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15123 allow_undefined_flag_F77=
15124 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15125 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }
15129 then
15130 archive_cmds_need_lc_F77=no
15131 else
15132 archive_cmds_need_lc_F77=yes
15133 fi
15134 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15135 else
15136 cat conftest.err 1>&5
15137 fi
15138 $rm conftest*
15139 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15140 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15141 ;;
15142 esac
15143 fi
15144 ;;
15145 esac
15146
15147 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15148 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15149 library_names_spec=
15150 libname_spec='lib$name'
15151 soname_spec=
15152 shrext_cmds=".so"
15153 postinstall_cmds=
15154 postuninstall_cmds=
15155 finish_cmds=
15156 finish_eval=
15157 shlibpath_var=
15158 shlibpath_overrides_runpath=unknown
15159 version_type=none
15160 dynamic_linker="$host_os ld.so"
15161 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15162 if test "$GCC" = yes; then
15163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15164 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15165 # if the path contains ";" then we assume it to be the separator
15166 # otherwise default to the standard path separator (i.e. ":") - it is
15167 # assumed that no part of a normal pathname contains ";" but that should
15168 # okay in the real world where ";" in dirpaths is itself problematic.
15169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15170 else
15171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15172 fi
15173 else
15174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15175 fi
15176 need_lib_prefix=unknown
15177 hardcode_into_libs=no
15178
15179 # when you set need_version to no, make sure it does not cause -set_version
15180 # flags to be left without arguments
15181 need_version=unknown
15182
15183 case $host_os in
15184 aix3*)
15185 version_type=linux
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15187 shlibpath_var=LIBPATH
15188
15189 # AIX 3 has no versioning support, so we append a major version to the name.
15190 soname_spec='${libname}${release}${shared_ext}$major'
15191 ;;
15192
15193 aix4* | aix5*)
15194 version_type=linux
15195 need_lib_prefix=no
15196 need_version=no
15197 hardcode_into_libs=yes
15198 if test "$host_cpu" = ia64; then
15199 # AIX 5 supports IA64
15200 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15201 shlibpath_var=LD_LIBRARY_PATH
15202 else
15203 # With GCC up to 2.95.x, collect2 would create an import file
15204 # for dependence libraries. The import file would start with
15205 # the line `#! .'. This would cause the generated library to
15206 # depend on `.', always an invalid library. This was fixed in
15207 # development snapshots of GCC prior to 3.0.
15208 case $host_os in
15209 aix4 | aix4.[01] | aix4.[01].*)
15210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15211 echo ' yes '
15212 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15213 :
15214 else
15215 can_build_shared=no
15216 fi
15217 ;;
15218 esac
15219 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15220 # soname into executable. Probably we can add versioning support to
15221 # collect2, so additional links can be useful in future.
15222 if test "$aix_use_runtimelinking" = yes; then
15223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15224 # instead of lib<name>.a to let people know that these are not
15225 # typical AIX shared libraries.
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 else
15228 # We preserve .a as extension for shared libraries through AIX4.2
15229 # and later when we are not doing run time linking.
15230 library_names_spec='${libname}${release}.a $libname.a'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 fi
15233 shlibpath_var=LIBPATH
15234 fi
15235 ;;
15236
15237 amigaos*)
15238 library_names_spec='$libname.ixlibrary $libname.a'
15239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15240 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'
15241 ;;
15242
15243 beos*)
15244 library_names_spec='${libname}${shared_ext}'
15245 dynamic_linker="$host_os ld.so"
15246 shlibpath_var=LIBRARY_PATH
15247 ;;
15248
15249 bsdi[45]*)
15250 version_type=linux
15251 need_version=no
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15257 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15258 # the default ld.so.conf also contains /usr/contrib/lib and
15259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15260 # libtool to hard-code these into programs
15261 ;;
15262
15263 cygwin* | mingw* | pw32*)
15264 version_type=windows
15265 shrext_cmds=".dll"
15266 need_version=no
15267 need_lib_prefix=no
15268
15269 case $GCC,$host_os in
15270 yes,cygwin* | yes,mingw* | yes,pw32*)
15271 library_names_spec='$libname.dll.a'
15272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15273 postinstall_cmds='base_file=`basename \${file}`~
15274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15275 dldir=$destdir/`dirname \$dlpath`~
15276 test -d \$dldir || mkdir -p \$dldir~
15277 $install_prog $dir/$dlname \$dldir/$dlname~
15278 chmod a+x \$dldir/$dlname'
15279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15280 dlpath=$dir/\$dldll~
15281 $rm \$dlpath'
15282 shlibpath_overrides_runpath=yes
15283
15284 case $host_os in
15285 cygwin*)
15286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15288 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15289 ;;
15290 mingw*)
15291 # MinGW DLLs use traditional 'lib' prefix
15292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15294 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15295 # It is most probably a Windows format PATH printed by
15296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15297 # path with ; separators, and with drive letters. We can handle the
15298 # drive letters (cygwin fileutils understands them), so leave them,
15299 # especially as we might pass files found there to a mingw objdump,
15300 # which wouldn't understand a cygwinified path. Ahh.
15301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15302 else
15303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15304 fi
15305 ;;
15306 pw32*)
15307 # pw32 DLLs use 'pw' prefix rather than 'lib'
15308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15309 ;;
15310 esac
15311 ;;
15312
15313 *)
15314 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15315 ;;
15316 esac
15317 dynamic_linker='Win32 ld.exe'
15318 # FIXME: first we should search . and the directory the executable is in
15319 shlibpath_var=PATH
15320 ;;
15321
15322 darwin* | rhapsody*)
15323 dynamic_linker="$host_os dyld"
15324 version_type=darwin
15325 need_lib_prefix=no
15326 need_version=no
15327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15328 soname_spec='${libname}${release}${major}$shared_ext'
15329 shlibpath_overrides_runpath=yes
15330 shlibpath_var=DYLD_LIBRARY_PATH
15331 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15333 if test "$GCC" = yes; then
15334 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15335 else
15336 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15337 fi
15338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15339 ;;
15340
15341 dgux*)
15342 version_type=linux
15343 need_lib_prefix=no
15344 need_version=no
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 ;;
15349
15350 freebsd1*)
15351 dynamic_linker=no
15352 ;;
15353
15354 kfreebsd*-gnu)
15355 version_type=linux
15356 need_lib_prefix=no
15357 need_version=no
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath=no
15362 hardcode_into_libs=yes
15363 dynamic_linker='GNU ld.so'
15364 ;;
15365
15366 freebsd* | dragonfly*)
15367 # DragonFly does not have aout. When/if they implement a new
15368 # versioning mechanism, adjust this.
15369 if test -x /usr/bin/objformat; then
15370 objformat=`/usr/bin/objformat`
15371 else
15372 case $host_os in
15373 freebsd[123]*) objformat=aout ;;
15374 *) objformat=elf ;;
15375 esac
15376 fi
15377 version_type=freebsd-$objformat
15378 case $version_type in
15379 freebsd-elf*)
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15381 need_version=no
15382 need_lib_prefix=no
15383 ;;
15384 freebsd-*)
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15386 need_version=yes
15387 ;;
15388 esac
15389 shlibpath_var=LD_LIBRARY_PATH
15390 case $host_os in
15391 freebsd2*)
15392 shlibpath_overrides_runpath=yes
15393 ;;
15394 freebsd3.[01]* | freebsdelf3.[01]*)
15395 shlibpath_overrides_runpath=yes
15396 hardcode_into_libs=yes
15397 ;;
15398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15400 shlibpath_overrides_runpath=no
15401 hardcode_into_libs=yes
15402 ;;
15403 freebsd*) # from 4.6 on
15404 shlibpath_overrides_runpath=yes
15405 hardcode_into_libs=yes
15406 ;;
15407 esac
15408 ;;
15409
15410 gnu*)
15411 version_type=linux
15412 need_lib_prefix=no
15413 need_version=no
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 hardcode_into_libs=yes
15418 ;;
15419
15420 hpux9* | hpux10* | hpux11*)
15421 # Give a soname corresponding to the major version so that dld.sl refuses to
15422 # link against other versions.
15423 version_type=sunos
15424 need_lib_prefix=no
15425 need_version=no
15426 case $host_cpu in
15427 ia64*)
15428 shrext_cmds='.so'
15429 hardcode_into_libs=yes
15430 dynamic_linker="$host_os dld.so"
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 if test "X$HPUX_IA64_MODE" = X32; then
15436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15437 else
15438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15439 fi
15440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15441 ;;
15442 hppa*64*)
15443 shrext_cmds='.sl'
15444 hardcode_into_libs=yes
15445 dynamic_linker="$host_os dld.sl"
15446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15452 ;;
15453 *)
15454 shrext_cmds='.sl'
15455 dynamic_linker="$host_os dld.sl"
15456 shlibpath_var=SHLIB_PATH
15457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 ;;
15461 esac
15462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15463 postinstall_cmds='chmod 555 $lib'
15464 ;;
15465
15466 interix3*)
15467 version_type=linux
15468 need_lib_prefix=no
15469 need_version=no
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15471 soname_spec='${libname}${release}${shared_ext}$major'
15472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath=no
15475 hardcode_into_libs=yes
15476 ;;
15477
15478 irix5* | irix6* | nonstopux*)
15479 case $host_os in
15480 nonstopux*) version_type=nonstopux ;;
15481 *)
15482 if test "$lt_cv_prog_gnu_ld" = yes; then
15483 version_type=linux
15484 else
15485 version_type=irix
15486 fi ;;
15487 esac
15488 need_lib_prefix=no
15489 need_version=no
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15492 case $host_os in
15493 irix5* | nonstopux*)
15494 libsuff= shlibsuff=
15495 ;;
15496 *)
15497 case $LD in # libtool.m4 will add one of these switches to LD
15498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15499 libsuff= shlibsuff= libmagic=32-bit;;
15500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15501 libsuff=32 shlibsuff=N32 libmagic=N32;;
15502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15504 *) libsuff= shlibsuff= libmagic=never-match;;
15505 esac
15506 ;;
15507 esac
15508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15509 shlibpath_overrides_runpath=no
15510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15512 hardcode_into_libs=yes
15513 ;;
15514
15515 # No shared lib support for Linux oldld, aout, or coff.
15516 linux*oldld* | linux*aout* | linux*coff*)
15517 dynamic_linker=no
15518 ;;
15519
15520 # This must be Linux ELF.
15521 linux*)
15522 version_type=linux
15523 need_lib_prefix=no
15524 need_version=no
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath=no
15530 # This implies no fast_install, which is unacceptable.
15531 # Some rework will be needed to allow for fast_install
15532 # before this can be enabled.
15533 hardcode_into_libs=yes
15534
15535 # find out which ABI we are using
15536 libsuff=
15537 case "$host_cpu" in
15538 x86_64*|s390x*|powerpc64*)
15539 echo '#line 15539 "configure"' > conftest.$ac_ext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15541 (eval $ac_compile) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; then
15545 case `/usr/bin/file conftest.$ac_objext` in
15546 *64-bit*)
15547 libsuff=64
15548 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15549 ;;
15550 esac
15551 fi
15552 rm -rf conftest*
15553 ;;
15554 esac
15555
15556 # Append ld.so.conf contents to the search path
15557 if test -f /etc/ld.so.conf; then
15558 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15559 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15560 fi
15561
15562 # We used to test for /lib/ld.so.1 and disable shared libraries on
15563 # powerpc, because MkLinux only supported shared libraries with the
15564 # GNU dynamic linker. Since this was broken with cross compilers,
15565 # most powerpc-linux boxes support dynamic linking these days and
15566 # people can always --disable-shared, the test was removed, and we
15567 # assume the GNU/Linux dynamic linker is in use.
15568 dynamic_linker='GNU/Linux ld.so'
15569 ;;
15570
15571 knetbsd*-gnu)
15572 version_type=linux
15573 need_lib_prefix=no
15574 need_version=no
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=no
15579 hardcode_into_libs=yes
15580 dynamic_linker='GNU ld.so'
15581 ;;
15582
15583 netbsd*)
15584 version_type=sunos
15585 need_lib_prefix=no
15586 need_version=no
15587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15590 dynamic_linker='NetBSD (a.out) ld.so'
15591 else
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15593 soname_spec='${libname}${release}${shared_ext}$major'
15594 dynamic_linker='NetBSD ld.elf_so'
15595 fi
15596 shlibpath_var=LD_LIBRARY_PATH
15597 shlibpath_overrides_runpath=yes
15598 hardcode_into_libs=yes
15599 ;;
15600
15601 newsos6)
15602 version_type=linux
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=yes
15606 ;;
15607
15608 nto-qnx*)
15609 version_type=linux
15610 need_lib_prefix=no
15611 need_version=no
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 soname_spec='${libname}${release}${shared_ext}$major'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 shlibpath_overrides_runpath=yes
15616 ;;
15617
15618 openbsd*)
15619 version_type=sunos
15620 sys_lib_dlsearch_path_spec="/usr/lib"
15621 need_lib_prefix=no
15622 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15623 case $host_os in
15624 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15625 *) need_version=no ;;
15626 esac
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15631 case $host_os in
15632 openbsd2.[89] | openbsd2.[89].*)
15633 shlibpath_overrides_runpath=no
15634 ;;
15635 *)
15636 shlibpath_overrides_runpath=yes
15637 ;;
15638 esac
15639 else
15640 shlibpath_overrides_runpath=yes
15641 fi
15642 ;;
15643
15644 os2*)
15645 libname_spec='$name'
15646 shrext_cmds=".dll"
15647 need_lib_prefix=no
15648 library_names_spec='$libname${shared_ext} $libname.a'
15649 dynamic_linker='OS/2 ld.exe'
15650 shlibpath_var=LIBPATH
15651 ;;
15652
15653 osf3* | osf4* | osf5*)
15654 version_type=osf
15655 need_lib_prefix=no
15656 need_version=no
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15661 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15662 ;;
15663
15664 solaris*)
15665 version_type=linux
15666 need_lib_prefix=no
15667 need_version=no
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669 soname_spec='${libname}${release}${shared_ext}$major'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 shlibpath_overrides_runpath=yes
15672 hardcode_into_libs=yes
15673 # ldd complains unless libraries are executable
15674 postinstall_cmds='chmod +x $lib'
15675 ;;
15676
15677 sunos4*)
15678 version_type=sunos
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15681 shlibpath_var=LD_LIBRARY_PATH
15682 shlibpath_overrides_runpath=yes
15683 if test "$with_gnu_ld" = yes; then
15684 need_lib_prefix=no
15685 fi
15686 need_version=yes
15687 ;;
15688
15689 sysv4 | sysv4.3*)
15690 version_type=linux
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 case $host_vendor in
15695 sni)
15696 shlibpath_overrides_runpath=no
15697 need_lib_prefix=no
15698 export_dynamic_flag_spec='${wl}-Blargedynsym'
15699 runpath_var=LD_RUN_PATH
15700 ;;
15701 siemens)
15702 need_lib_prefix=no
15703 ;;
15704 motorola)
15705 need_lib_prefix=no
15706 need_version=no
15707 shlibpath_overrides_runpath=no
15708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15709 ;;
15710 esac
15711 ;;
15712
15713 sysv4*MP*)
15714 if test -d /usr/nec ;then
15715 version_type=linux
15716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15717 soname_spec='$libname${shared_ext}.$major'
15718 shlibpath_var=LD_LIBRARY_PATH
15719 fi
15720 ;;
15721
15722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15723 version_type=freebsd-elf
15724 need_lib_prefix=no
15725 need_version=no
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15727 soname_spec='${libname}${release}${shared_ext}$major'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 hardcode_into_libs=yes
15730 if test "$with_gnu_ld" = yes; then
15731 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15732 shlibpath_overrides_runpath=no
15733 else
15734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15735 shlibpath_overrides_runpath=yes
15736 case $host_os in
15737 sco3.2v5*)
15738 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15739 ;;
15740 esac
15741 fi
15742 sys_lib_dlsearch_path_spec='/usr/lib'
15743 ;;
15744
15745 uts4*)
15746 version_type=linux
15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15748 soname_spec='${libname}${release}${shared_ext}$major'
15749 shlibpath_var=LD_LIBRARY_PATH
15750 ;;
15751
15752 *)
15753 dynamic_linker=no
15754 ;;
15755 esac
15756 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15757 echo "${ECHO_T}$dynamic_linker" >&6; }
15758 test "$dynamic_linker" = no && can_build_shared=no
15759
15760 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15761 if test "$GCC" = yes; then
15762 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15763 fi
15764
15765 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15766 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15767 hardcode_action_F77=
15768 if test -n "$hardcode_libdir_flag_spec_F77" || \
15769 test -n "$runpath_var_F77" || \
15770 test "X$hardcode_automatic_F77" = "Xyes" ; then
15771
15772 # We can hardcode non-existant directories.
15773 if test "$hardcode_direct_F77" != no &&
15774 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15775 # have to relink, otherwise we might link with an installed library
15776 # when we should be linking with a yet-to-be-installed one
15777 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15778 test "$hardcode_minus_L_F77" != no; then
15779 # Linking always hardcodes the temporary library directory.
15780 hardcode_action_F77=relink
15781 else
15782 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15783 hardcode_action_F77=immediate
15784 fi
15785 else
15786 # We cannot hardcode anything, or else we can only hardcode existing
15787 # directories.
15788 hardcode_action_F77=unsupported
15789 fi
15790 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15791 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15792
15793 if test "$hardcode_action_F77" = relink; then
15794 # Fast installation is not supported
15795 enable_fast_install=no
15796 elif test "$shlibpath_overrides_runpath" = yes ||
15797 test "$enable_shared" = no; then
15798 # Fast installation is not necessary
15799 enable_fast_install=needless
15800 fi
15801
15802
15803 # The else clause should only fire when bootstrapping the
15804 # libtool distribution, otherwise you forgot to ship ltmain.sh
15805 # with your package, and you will get complaints that there are
15806 # no rules to generate ltmain.sh.
15807 if test -f "$ltmain"; then
15808 # See if we are running on zsh, and set the options which allow our commands through
15809 # without removal of \ escapes.
15810 if test -n "${ZSH_VERSION+set}" ; then
15811 setopt NO_GLOB_SUBST
15812 fi
15813 # Now quote all the things that may contain metacharacters while being
15814 # careful not to overquote the AC_SUBSTed values. We take copies of the
15815 # variables and quote the copies for generation of the libtool script.
15816 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15817 SED SHELL STRIP \
15818 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15819 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15820 deplibs_check_method reload_flag reload_cmds need_locks \
15821 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15822 lt_cv_sys_global_symbol_to_c_name_address \
15823 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15824 old_postinstall_cmds old_postuninstall_cmds \
15825 compiler_F77 \
15826 CC_F77 \
15827 LD_F77 \
15828 lt_prog_compiler_wl_F77 \
15829 lt_prog_compiler_pic_F77 \
15830 lt_prog_compiler_static_F77 \
15831 lt_prog_compiler_no_builtin_flag_F77 \
15832 export_dynamic_flag_spec_F77 \
15833 thread_safe_flag_spec_F77 \
15834 whole_archive_flag_spec_F77 \
15835 enable_shared_with_static_runtimes_F77 \
15836 old_archive_cmds_F77 \
15837 old_archive_from_new_cmds_F77 \
15838 predep_objects_F77 \
15839 postdep_objects_F77 \
15840 predeps_F77 \
15841 postdeps_F77 \
15842 compiler_lib_search_path_F77 \
15843 archive_cmds_F77 \
15844 archive_expsym_cmds_F77 \
15845 postinstall_cmds_F77 \
15846 postuninstall_cmds_F77 \
15847 old_archive_from_expsyms_cmds_F77 \
15848 allow_undefined_flag_F77 \
15849 no_undefined_flag_F77 \
15850 export_symbols_cmds_F77 \
15851 hardcode_libdir_flag_spec_F77 \
15852 hardcode_libdir_flag_spec_ld_F77 \
15853 hardcode_libdir_separator_F77 \
15854 hardcode_automatic_F77 \
15855 module_cmds_F77 \
15856 module_expsym_cmds_F77 \
15857 lt_cv_prog_compiler_c_o_F77 \
15858 exclude_expsyms_F77 \
15859 include_expsyms_F77; do
15860
15861 case $var in
15862 old_archive_cmds_F77 | \
15863 old_archive_from_new_cmds_F77 | \
15864 archive_cmds_F77 | \
15865 archive_expsym_cmds_F77 | \
15866 module_cmds_F77 | \
15867 module_expsym_cmds_F77 | \
15868 old_archive_from_expsyms_cmds_F77 | \
15869 export_symbols_cmds_F77 | \
15870 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15871 postinstall_cmds | postuninstall_cmds | \
15872 old_postinstall_cmds | old_postuninstall_cmds | \
15873 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15874 # Double-quote double-evaled strings.
15875 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15876 ;;
15877 *)
15878 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15879 ;;
15880 esac
15881 done
15882
15883 case $lt_echo in
15884 *'\$0 --fallback-echo"')
15885 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15886 ;;
15887 esac
15888
15889 cfgfile="$ofile"
15890
15891 cat <<__EOF__ >> "$cfgfile"
15892 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15893
15894 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15895
15896 # Shell to use when invoking shell scripts.
15897 SHELL=$lt_SHELL
15898
15899 # Whether or not to build shared libraries.
15900 build_libtool_libs=$enable_shared
15901
15902 # Whether or not to build static libraries.
15903 build_old_libs=$enable_static
15904
15905 # Whether or not to add -lc for building shared libraries.
15906 build_libtool_need_lc=$archive_cmds_need_lc_F77
15907
15908 # Whether or not to disallow shared libs when runtime libs are static
15909 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15910
15911 # Whether or not to optimize for fast installation.
15912 fast_install=$enable_fast_install
15913
15914 # The host system.
15915 host_alias=$host_alias
15916 host=$host
15917 host_os=$host_os
15918
15919 # The build system.
15920 build_alias=$build_alias
15921 build=$build
15922 build_os=$build_os
15923
15924 # An echo program that does not interpret backslashes.
15925 echo=$lt_echo
15926
15927 # The archiver.
15928 AR=$lt_AR
15929 AR_FLAGS=$lt_AR_FLAGS
15930
15931 # A C compiler.
15932 LTCC=$lt_LTCC
15933
15934 # LTCC compiler flags.
15935 LTCFLAGS=$lt_LTCFLAGS
15936
15937 # A language-specific compiler.
15938 CC=$lt_compiler_F77
15939
15940 # Is the compiler the GNU C compiler?
15941 with_gcc=$GCC_F77
15942
15943 # An ERE matcher.
15944 EGREP=$lt_EGREP
15945
15946 # The linker used to build libraries.
15947 LD=$lt_LD_F77
15948
15949 # Whether we need hard or soft links.
15950 LN_S=$lt_LN_S
15951
15952 # A BSD-compatible nm program.
15953 NM=$lt_NM
15954
15955 # A symbol stripping program
15956 STRIP=$lt_STRIP
15957
15958 # Used to examine libraries when file_magic_cmd begins "file"
15959 MAGIC_CMD=$MAGIC_CMD
15960
15961 # Used on cygwin: DLL creation program.
15962 DLLTOOL="$DLLTOOL"
15963
15964 # Used on cygwin: object dumper.
15965 OBJDUMP="$OBJDUMP"
15966
15967 # Used on cygwin: assembler.
15968 AS="$AS"
15969
15970 # The name of the directory that contains temporary libtool files.
15971 objdir=$objdir
15972
15973 # How to create reloadable object files.
15974 reload_flag=$lt_reload_flag
15975 reload_cmds=$lt_reload_cmds
15976
15977 # How to pass a linker flag through the compiler.
15978 wl=$lt_lt_prog_compiler_wl_F77
15979
15980 # Object file suffix (normally "o").
15981 objext="$ac_objext"
15982
15983 # Old archive suffix (normally "a").
15984 libext="$libext"
15985
15986 # Shared library suffix (normally ".so").
15987 shrext_cmds='$shrext_cmds'
15988
15989 # Executable file suffix (normally "").
15990 exeext="$exeext"
15991
15992 # Additional compiler flags for building library objects.
15993 pic_flag=$lt_lt_prog_compiler_pic_F77
15994 pic_mode=$pic_mode
15995
15996 # What is the maximum length of a command?
15997 max_cmd_len=$lt_cv_sys_max_cmd_len
15998
15999 # Does compiler simultaneously support -c and -o options?
16000 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16001
16002 # Must we lock files when doing compilation?
16003 need_locks=$lt_need_locks
16004
16005 # Do we need the lib prefix for modules?
16006 need_lib_prefix=$need_lib_prefix
16007
16008 # Do we need a version for libraries?
16009 need_version=$need_version
16010
16011 # Whether dlopen is supported.
16012 dlopen_support=$enable_dlopen
16013
16014 # Whether dlopen of programs is supported.
16015 dlopen_self=$enable_dlopen_self
16016
16017 # Whether dlopen of statically linked programs is supported.
16018 dlopen_self_static=$enable_dlopen_self_static
16019
16020 # Compiler flag to prevent dynamic linking.
16021 link_static_flag=$lt_lt_prog_compiler_static_F77
16022
16023 # Compiler flag to turn off builtin functions.
16024 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16025
16026 # Compiler flag to allow reflexive dlopens.
16027 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16028
16029 # Compiler flag to generate shared objects directly from archives.
16030 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16031
16032 # Compiler flag to generate thread-safe objects.
16033 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16034
16035 # Library versioning type.
16036 version_type=$version_type
16037
16038 # Format of library name prefix.
16039 libname_spec=$lt_libname_spec
16040
16041 # List of archive names. First name is the real one, the rest are links.
16042 # The last name is the one that the linker finds with -lNAME.
16043 library_names_spec=$lt_library_names_spec
16044
16045 # The coded name of the library, if different from the real name.
16046 soname_spec=$lt_soname_spec
16047
16048 # Commands used to build and install an old-style archive.
16049 RANLIB=$lt_RANLIB
16050 old_archive_cmds=$lt_old_archive_cmds_F77
16051 old_postinstall_cmds=$lt_old_postinstall_cmds
16052 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16053
16054 # Create an old-style archive from a shared archive.
16055 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16056
16057 # Create a temporary old-style archive to link instead of a shared archive.
16058 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16059
16060 # Commands used to build and install a shared archive.
16061 archive_cmds=$lt_archive_cmds_F77
16062 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16063 postinstall_cmds=$lt_postinstall_cmds
16064 postuninstall_cmds=$lt_postuninstall_cmds
16065
16066 # Commands used to build a loadable module (assumed same as above if empty)
16067 module_cmds=$lt_module_cmds_F77
16068 module_expsym_cmds=$lt_module_expsym_cmds_F77
16069
16070 # Commands to strip libraries.
16071 old_striplib=$lt_old_striplib
16072 striplib=$lt_striplib
16073
16074 # Dependencies to place before the objects being linked to create a
16075 # shared library.
16076 predep_objects=$lt_predep_objects_F77
16077
16078 # Dependencies to place after the objects being linked to create a
16079 # shared library.
16080 postdep_objects=$lt_postdep_objects_F77
16081
16082 # Dependencies to place before the objects being linked to create a
16083 # shared library.
16084 predeps=$lt_predeps_F77
16085
16086 # Dependencies to place after the objects being linked to create a
16087 # shared library.
16088 postdeps=$lt_postdeps_F77
16089
16090 # The library search path used internally by the compiler when linking
16091 # a shared library.
16092 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16093
16094 # Method to check whether dependent libraries are shared objects.
16095 deplibs_check_method=$lt_deplibs_check_method
16096
16097 # Command to use when deplibs_check_method == file_magic.
16098 file_magic_cmd=$lt_file_magic_cmd
16099
16100 # Flag that allows shared libraries with undefined symbols to be built.
16101 allow_undefined_flag=$lt_allow_undefined_flag_F77
16102
16103 # Flag that forces no undefined symbols.
16104 no_undefined_flag=$lt_no_undefined_flag_F77
16105
16106 # Commands used to finish a libtool library installation in a directory.
16107 finish_cmds=$lt_finish_cmds
16108
16109 # Same as above, but a single script fragment to be evaled but not shown.
16110 finish_eval=$lt_finish_eval
16111
16112 # Take the output of nm and produce a listing of raw symbols and C names.
16113 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16114
16115 # Transform the output of nm in a proper C declaration
16116 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16117
16118 # Transform the output of nm in a C name address pair
16119 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16120
16121 # This is the shared library runtime path variable.
16122 runpath_var=$runpath_var
16123
16124 # This is the shared library path variable.
16125 shlibpath_var=$shlibpath_var
16126
16127 # Is shlibpath searched before the hard-coded library search path?
16128 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16129
16130 # How to hardcode a shared library path into an executable.
16131 hardcode_action=$hardcode_action_F77
16132
16133 # Whether we should hardcode library paths into libraries.
16134 hardcode_into_libs=$hardcode_into_libs
16135
16136 # Flag to hardcode \$libdir into a binary during linking.
16137 # This must work even if \$libdir does not exist.
16138 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16139
16140 # If ld is used when linking, flag to hardcode \$libdir into
16141 # a binary during linking. This must work even if \$libdir does
16142 # not exist.
16143 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16144
16145 # Whether we need a single -rpath flag with a separated argument.
16146 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16147
16148 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16149 # resulting binary.
16150 hardcode_direct=$hardcode_direct_F77
16151
16152 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16153 # resulting binary.
16154 hardcode_minus_L=$hardcode_minus_L_F77
16155
16156 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16157 # the resulting binary.
16158 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16159
16160 # Set to yes if building a shared library automatically hardcodes DIR into the library
16161 # and all subsequent libraries and executables linked against it.
16162 hardcode_automatic=$hardcode_automatic_F77
16163
16164 # Variables whose values should be saved in libtool wrapper scripts and
16165 # restored at relink time.
16166 variables_saved_for_relink="$variables_saved_for_relink"
16167
16168 # Whether libtool must link a program against all its dependency libraries.
16169 link_all_deplibs=$link_all_deplibs_F77
16170
16171 # Compile-time system search path for libraries
16172 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16173
16174 # Run-time system search path for libraries
16175 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16176
16177 # Fix the shell variable \$srcfile for the compiler.
16178 fix_srcfile_path="$fix_srcfile_path_F77"
16179
16180 # Set to yes if exported symbols are required.
16181 always_export_symbols=$always_export_symbols_F77
16182
16183 # The commands to list exported symbols.
16184 export_symbols_cmds=$lt_export_symbols_cmds_F77
16185
16186 # The commands to extract the exported symbol list from a shared archive.
16187 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16188
16189 # Symbols that should not be listed in the preloaded symbols.
16190 exclude_expsyms=$lt_exclude_expsyms_F77
16191
16192 # Symbols that must always be exported.
16193 include_expsyms=$lt_include_expsyms_F77
16194
16195 # ### END LIBTOOL TAG CONFIG: $tagname
16196
16197 __EOF__
16198
16199
16200 else
16201 # If there is no Makefile yet, we rely on a make rule to execute
16202 # `config.status --recheck' to rerun these tests and create the
16203 # libtool script then.
16204 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16205 if test -f "$ltmain_in"; then
16206 test -f Makefile && make "$ltmain"
16207 fi
16208 fi
16209
16210
16211 ac_ext=c
16212 ac_cpp='$CPP $CPPFLAGS'
16213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16216
16217 CC="$lt_save_CC"
16218
16219 else
16220 tagname=""
16221 fi
16222 ;;
16223
16224 GCJ)
16225 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16226
16227
16228 # Source file extension for Java test sources.
16229 ac_ext=java
16230
16231 # Object file extension for compiled Java test sources.
16232 objext=o
16233 objext_GCJ=$objext
16234
16235 # Code to be used in simple compile tests
16236 lt_simple_compile_test_code="class foo {}\n"
16237
16238 # Code to be used in simple link tests
16239 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16240
16241 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16242
16243 # If no C compiler was specified, use CC.
16244 LTCC=${LTCC-"$CC"}
16245
16246 # If no C compiler flags were specified, use CFLAGS.
16247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16248
16249 # Allow CC to be a program name with arguments.
16250 compiler=$CC
16251
16252
16253 # save warnings/boilerplate of simple test code
16254 ac_outfile=conftest.$ac_objext
16255 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16257 _lt_compiler_boilerplate=`cat conftest.err`
16258 $rm conftest*
16259
16260 ac_outfile=conftest.$ac_objext
16261 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16263 _lt_linker_boilerplate=`cat conftest.err`
16264 $rm conftest*
16265
16266
16267 # Allow CC to be a program name with arguments.
16268 lt_save_CC="$CC"
16269 CC=${GCJ-"gcj"}
16270 compiler=$CC
16271 compiler_GCJ=$CC
16272 for cc_temp in $compiler""; do
16273 case $cc_temp in
16274 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16275 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16276 \-*) ;;
16277 *) break;;
16278 esac
16279 done
16280 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16281
16282
16283 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16284 archive_cmds_need_lc_GCJ=no
16285
16286 old_archive_cmds_GCJ=$old_archive_cmds
16287
16288
16289 lt_prog_compiler_no_builtin_flag_GCJ=
16290
16291 if test "$GCC" = yes; then
16292 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16293
16294
16295 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16296 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16297 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300 lt_cv_prog_compiler_rtti_exceptions=no
16301 ac_outfile=conftest.$ac_objext
16302 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16303 lt_compiler_flag="-fno-rtti -fno-exceptions"
16304 # Insert the option either (1) after the last *FLAGS variable, or
16305 # (2) before a word containing "conftest.", or (3) at the end.
16306 # Note that $ac_compile itself does not contain backslashes and begins
16307 # with a dollar sign (not a hyphen), so the echo should work correctly.
16308 # The option is referenced via a variable to avoid confusing sed.
16309 lt_compile=`echo "$ac_compile" | $SED \
16310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16312 -e 's:$: $lt_compiler_flag:'`
16313 (eval echo "\"\$as_me:16313: $lt_compile\"" >&5)
16314 (eval "$lt_compile" 2>conftest.err)
16315 ac_status=$?
16316 cat conftest.err >&5
16317 echo "$as_me:16317: \$? = $ac_status" >&5
16318 if (exit $ac_status) && test -s "$ac_outfile"; then
16319 # The compiler can only warn and ignore the option if not recognized
16320 # So say no if there are warnings other than the usual output.
16321 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16323 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16324 lt_cv_prog_compiler_rtti_exceptions=yes
16325 fi
16326 fi
16327 $rm conftest*
16328
16329 fi
16330 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16331 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16332
16333 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16334 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16335 else
16336 :
16337 fi
16338
16339 fi
16340
16341 lt_prog_compiler_wl_GCJ=
16342 lt_prog_compiler_pic_GCJ=
16343 lt_prog_compiler_static_GCJ=
16344
16345 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16346 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16347
16348 if test "$GCC" = yes; then
16349 lt_prog_compiler_wl_GCJ='-Wl,'
16350 lt_prog_compiler_static_GCJ='-static'
16351
16352 case $host_os in
16353 aix*)
16354 # All AIX code is PIC.
16355 if test "$host_cpu" = ia64; then
16356 # AIX 5 now supports IA64 processor
16357 lt_prog_compiler_static_GCJ='-Bstatic'
16358 fi
16359 ;;
16360
16361 amigaos*)
16362 # FIXME: we need at least 68020 code to build shared libraries, but
16363 # adding the `-m68020' flag to GCC prevents building anything better,
16364 # like `-m68040'.
16365 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16366 ;;
16367
16368 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16369 # PIC is the default for these OSes.
16370 ;;
16371
16372 mingw* | pw32* | os2*)
16373 # This hack is so that the source file can tell whether it is being
16374 # built for inclusion in a dll (and should export symbols for example).
16375 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16376 ;;
16377
16378 darwin* | rhapsody*)
16379 # PIC is the default on this platform
16380 # Common symbols not allowed in MH_DYLIB files
16381 lt_prog_compiler_pic_GCJ='-fno-common'
16382 ;;
16383
16384 interix3*)
16385 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16386 # Instead, we relocate shared libraries at runtime.
16387 ;;
16388
16389 msdosdjgpp*)
16390 # Just because we use GCC doesn't mean we suddenly get shared libraries
16391 # on systems that don't support them.
16392 lt_prog_compiler_can_build_shared_GCJ=no
16393 enable_shared=no
16394 ;;
16395
16396 sysv4*MP*)
16397 if test -d /usr/nec; then
16398 lt_prog_compiler_pic_GCJ=-Kconform_pic
16399 fi
16400 ;;
16401
16402 hpux*)
16403 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16404 # not for PA HP-UX.
16405 case $host_cpu in
16406 hppa*64*|ia64*)
16407 # +Z the default
16408 ;;
16409 *)
16410 lt_prog_compiler_pic_GCJ='-fPIC'
16411 ;;
16412 esac
16413 ;;
16414
16415 *)
16416 lt_prog_compiler_pic_GCJ='-fPIC'
16417 ;;
16418 esac
16419 else
16420 # PORTME Check for flag to pass linker flags through the system compiler.
16421 case $host_os in
16422 aix*)
16423 lt_prog_compiler_wl_GCJ='-Wl,'
16424 if test "$host_cpu" = ia64; then
16425 # AIX 5 now supports IA64 processor
16426 lt_prog_compiler_static_GCJ='-Bstatic'
16427 else
16428 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16429 fi
16430 ;;
16431 darwin*)
16432 # PIC is the default on this platform
16433 # Common symbols not allowed in MH_DYLIB files
16434 case $cc_basename in
16435 xlc*)
16436 lt_prog_compiler_pic_GCJ='-qnocommon'
16437 lt_prog_compiler_wl_GCJ='-Wl,'
16438 ;;
16439 esac
16440 ;;
16441
16442 mingw* | pw32* | os2*)
16443 # This hack is so that the source file can tell whether it is being
16444 # built for inclusion in a dll (and should export symbols for example).
16445 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16446 ;;
16447
16448 hpux9* | hpux10* | hpux11*)
16449 lt_prog_compiler_wl_GCJ='-Wl,'
16450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16451 # not for PA HP-UX.
16452 case $host_cpu in
16453 hppa*64*|ia64*)
16454 # +Z the default
16455 ;;
16456 *)
16457 lt_prog_compiler_pic_GCJ='+Z'
16458 ;;
16459 esac
16460 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16461 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16462 ;;
16463
16464 irix5* | irix6* | nonstopux*)
16465 lt_prog_compiler_wl_GCJ='-Wl,'
16466 # PIC (with -KPIC) is the default.
16467 lt_prog_compiler_static_GCJ='-non_shared'
16468 ;;
16469
16470 newsos6)
16471 lt_prog_compiler_pic_GCJ='-KPIC'
16472 lt_prog_compiler_static_GCJ='-Bstatic'
16473 ;;
16474
16475 linux*)
16476 case $cc_basename in
16477 icc* | ecc*)
16478 lt_prog_compiler_wl_GCJ='-Wl,'
16479 lt_prog_compiler_pic_GCJ='-KPIC'
16480 lt_prog_compiler_static_GCJ='-static'
16481 ;;
16482 pgcc* | pgf77* | pgf90* | pgf95*)
16483 # Portland Group compilers (*not* the Pentium gcc compiler,
16484 # which looks to be a dead project)
16485 lt_prog_compiler_wl_GCJ='-Wl,'
16486 lt_prog_compiler_pic_GCJ='-fpic'
16487 lt_prog_compiler_static_GCJ='-Bstatic'
16488 ;;
16489 ccc*)
16490 lt_prog_compiler_wl_GCJ='-Wl,'
16491 # All Alpha code is PIC.
16492 lt_prog_compiler_static_GCJ='-non_shared'
16493 ;;
16494 esac
16495 ;;
16496
16497 osf3* | osf4* | osf5*)
16498 lt_prog_compiler_wl_GCJ='-Wl,'
16499 # All OSF/1 code is PIC.
16500 lt_prog_compiler_static_GCJ='-non_shared'
16501 ;;
16502
16503 solaris*)
16504 lt_prog_compiler_pic_GCJ='-KPIC'
16505 lt_prog_compiler_static_GCJ='-Bstatic'
16506 case $cc_basename in
16507 f77* | f90* | f95*)
16508 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16509 *)
16510 lt_prog_compiler_wl_GCJ='-Wl,';;
16511 esac
16512 ;;
16513
16514 sunos4*)
16515 lt_prog_compiler_wl_GCJ='-Qoption ld '
16516 lt_prog_compiler_pic_GCJ='-PIC'
16517 lt_prog_compiler_static_GCJ='-Bstatic'
16518 ;;
16519
16520 sysv4 | sysv4.2uw2* | sysv4.3*)
16521 lt_prog_compiler_wl_GCJ='-Wl,'
16522 lt_prog_compiler_pic_GCJ='-KPIC'
16523 lt_prog_compiler_static_GCJ='-Bstatic'
16524 ;;
16525
16526 sysv4*MP*)
16527 if test -d /usr/nec ;then
16528 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16529 lt_prog_compiler_static_GCJ='-Bstatic'
16530 fi
16531 ;;
16532
16533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16534 lt_prog_compiler_wl_GCJ='-Wl,'
16535 lt_prog_compiler_pic_GCJ='-KPIC'
16536 lt_prog_compiler_static_GCJ='-Bstatic'
16537 ;;
16538
16539 unicos*)
16540 lt_prog_compiler_wl_GCJ='-Wl,'
16541 lt_prog_compiler_can_build_shared_GCJ=no
16542 ;;
16543
16544 uts4*)
16545 lt_prog_compiler_pic_GCJ='-pic'
16546 lt_prog_compiler_static_GCJ='-Bstatic'
16547 ;;
16548
16549 *)
16550 lt_prog_compiler_can_build_shared_GCJ=no
16551 ;;
16552 esac
16553 fi
16554
16555 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16556 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16557
16558 #
16559 # Check to make sure the PIC flag actually works.
16560 #
16561 if test -n "$lt_prog_compiler_pic_GCJ"; then
16562
16563 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16564 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16565 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568 lt_prog_compiler_pic_works_GCJ=no
16569 ac_outfile=conftest.$ac_objext
16570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16571 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16572 # Insert the option either (1) after the last *FLAGS variable, or
16573 # (2) before a word containing "conftest.", or (3) at the end.
16574 # Note that $ac_compile itself does not contain backslashes and begins
16575 # with a dollar sign (not a hyphen), so the echo should work correctly.
16576 # The option is referenced via a variable to avoid confusing sed.
16577 lt_compile=`echo "$ac_compile" | $SED \
16578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16580 -e 's:$: $lt_compiler_flag:'`
16581 (eval echo "\"\$as_me:16581: $lt_compile\"" >&5)
16582 (eval "$lt_compile" 2>conftest.err)
16583 ac_status=$?
16584 cat conftest.err >&5
16585 echo "$as_me:16585: \$? = $ac_status" >&5
16586 if (exit $ac_status) && test -s "$ac_outfile"; then
16587 # The compiler can only warn and ignore the option if not recognized
16588 # So say no if there are warnings other than the usual output.
16589 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16592 lt_prog_compiler_pic_works_GCJ=yes
16593 fi
16594 fi
16595 $rm conftest*
16596
16597 fi
16598 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16599 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16600
16601 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16602 case $lt_prog_compiler_pic_GCJ in
16603 "" | " "*) ;;
16604 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16605 esac
16606 else
16607 lt_prog_compiler_pic_GCJ=
16608 lt_prog_compiler_can_build_shared_GCJ=no
16609 fi
16610
16611 fi
16612 case $host_os in
16613 # For platforms which do not support PIC, -DPIC is meaningless:
16614 *djgpp*)
16615 lt_prog_compiler_pic_GCJ=
16616 ;;
16617 *)
16618 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16619 ;;
16620 esac
16621
16622 #
16623 # Check to make sure the static flag actually works.
16624 #
16625 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16626 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16627 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16628 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 else
16631 lt_prog_compiler_static_works_GCJ=no
16632 save_LDFLAGS="$LDFLAGS"
16633 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16634 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16636 # The linker can only warn and ignore the option if not recognized
16637 # So say no if there are warnings
16638 if test -s conftest.err; then
16639 # Append any errors to the config.log.
16640 cat conftest.err 1>&5
16641 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16643 if diff conftest.exp conftest.er2 >/dev/null; then
16644 lt_prog_compiler_static_works_GCJ=yes
16645 fi
16646 else
16647 lt_prog_compiler_static_works_GCJ=yes
16648 fi
16649 fi
16650 $rm conftest*
16651 LDFLAGS="$save_LDFLAGS"
16652
16653 fi
16654 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16655 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16656
16657 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16658 :
16659 else
16660 lt_prog_compiler_static_GCJ=
16661 fi
16662
16663
16664 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16665 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16666 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 else
16669 lt_cv_prog_compiler_c_o_GCJ=no
16670 $rm -r conftest 2>/dev/null
16671 mkdir conftest
16672 cd conftest
16673 mkdir out
16674 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16675
16676 lt_compiler_flag="-o out/conftest2.$ac_objext"
16677 # Insert the option either (1) after the last *FLAGS variable, or
16678 # (2) before a word containing "conftest.", or (3) at the end.
16679 # Note that $ac_compile itself does not contain backslashes and begins
16680 # with a dollar sign (not a hyphen), so the echo should work correctly.
16681 lt_compile=`echo "$ac_compile" | $SED \
16682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16684 -e 's:$: $lt_compiler_flag:'`
16685 (eval echo "\"\$as_me:16685: $lt_compile\"" >&5)
16686 (eval "$lt_compile" 2>out/conftest.err)
16687 ac_status=$?
16688 cat out/conftest.err >&5
16689 echo "$as_me:16689: \$? = $ac_status" >&5
16690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16691 then
16692 # The compiler can only warn and ignore the option if not recognized
16693 # So say no if there are warnings
16694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16697 lt_cv_prog_compiler_c_o_GCJ=yes
16698 fi
16699 fi
16700 chmod u+w . 2>&5
16701 $rm conftest*
16702 # SGI C++ compiler will create directory out/ii_files/ for
16703 # template instantiation
16704 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16705 $rm out/* && rmdir out
16706 cd ..
16707 rmdir conftest
16708 $rm conftest*
16709
16710 fi
16711 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16712 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16713
16714
16715 hard_links="nottested"
16716 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16717 # do not overwrite the value of need_locks provided by the user
16718 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16719 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16720 hard_links=yes
16721 $rm conftest*
16722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16723 touch conftest.a
16724 ln conftest.a conftest.b 2>&5 || hard_links=no
16725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16726 { echo "$as_me:$LINENO: result: $hard_links" >&5
16727 echo "${ECHO_T}$hard_links" >&6; }
16728 if test "$hard_links" = no; then
16729 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16730 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16731 need_locks=warn
16732 fi
16733 else
16734 need_locks=no
16735 fi
16736
16737 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16738 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16739
16740 runpath_var=
16741 allow_undefined_flag_GCJ=
16742 enable_shared_with_static_runtimes_GCJ=no
16743 archive_cmds_GCJ=
16744 archive_expsym_cmds_GCJ=
16745 old_archive_From_new_cmds_GCJ=
16746 old_archive_from_expsyms_cmds_GCJ=
16747 export_dynamic_flag_spec_GCJ=
16748 whole_archive_flag_spec_GCJ=
16749 thread_safe_flag_spec_GCJ=
16750 hardcode_libdir_flag_spec_GCJ=
16751 hardcode_libdir_flag_spec_ld_GCJ=
16752 hardcode_libdir_separator_GCJ=
16753 hardcode_direct_GCJ=no
16754 hardcode_minus_L_GCJ=no
16755 hardcode_shlibpath_var_GCJ=unsupported
16756 link_all_deplibs_GCJ=unknown
16757 hardcode_automatic_GCJ=no
16758 module_cmds_GCJ=
16759 module_expsym_cmds_GCJ=
16760 always_export_symbols_GCJ=no
16761 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16762 # include_expsyms should be a list of space-separated symbols to be *always*
16763 # included in the symbol list
16764 include_expsyms_GCJ=
16765 # exclude_expsyms can be an extended regexp of symbols to exclude
16766 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16767 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16768 # as well as any symbol that contains `d'.
16769 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16770 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16771 # platforms (ab)use it in PIC code, but their linkers get confused if
16772 # the symbol is explicitly referenced. Since portable code cannot
16773 # rely on this symbol name, it's probably fine to never include it in
16774 # preloaded symbol tables.
16775 extract_expsyms_cmds=
16776 # Just being paranoid about ensuring that cc_basename is set.
16777 for cc_temp in $compiler""; do
16778 case $cc_temp in
16779 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16780 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16781 \-*) ;;
16782 *) break;;
16783 esac
16784 done
16785 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16786
16787 case $host_os in
16788 cygwin* | mingw* | pw32*)
16789 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16790 # When not using gcc, we currently assume that we are using
16791 # Microsoft Visual C++.
16792 if test "$GCC" != yes; then
16793 with_gnu_ld=no
16794 fi
16795 ;;
16796 interix*)
16797 # we just hope/assume this is gcc and not c89 (= MSVC++)
16798 with_gnu_ld=yes
16799 ;;
16800 openbsd*)
16801 with_gnu_ld=no
16802 ;;
16803 esac
16804
16805 ld_shlibs_GCJ=yes
16806 if test "$with_gnu_ld" = yes; then
16807 # If archive_cmds runs LD, not CC, wlarc should be empty
16808 wlarc='${wl}'
16809
16810 # Set some defaults for GNU ld with shared library support. These
16811 # are reset later if shared libraries are not supported. Putting them
16812 # here allows them to be overridden if necessary.
16813 runpath_var=LD_RUN_PATH
16814 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16815 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16816 # ancient GNU ld didn't support --whole-archive et. al.
16817 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16818 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16819 else
16820 whole_archive_flag_spec_GCJ=
16821 fi
16822 supports_anon_versioning=no
16823 case `$LD -v 2>/dev/null` in
16824 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16825 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16826 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16827 *\ 2.11.*) ;; # other 2.11 versions
16828 *) supports_anon_versioning=yes ;;
16829 esac
16830
16831 # See if GNU ld supports shared libraries.
16832 case $host_os in
16833 aix3* | aix4* | aix5*)
16834 # On AIX/PPC, the GNU linker is very broken
16835 if test "$host_cpu" != ia64; then
16836 ld_shlibs_GCJ=no
16837 cat <<EOF 1>&2
16838
16839 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16840 *** to be unable to reliably create shared libraries on AIX.
16841 *** Therefore, libtool is disabling shared libraries support. If you
16842 *** really care for shared libraries, you may want to modify your PATH
16843 *** so that a non-GNU linker is found, and then restart.
16844
16845 EOF
16846 fi
16847 ;;
16848
16849 amigaos*)
16850 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)'
16851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16852 hardcode_minus_L_GCJ=yes
16853
16854 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16855 # that the semantics of dynamic libraries on AmigaOS, at least up
16856 # to version 4, is to share data among multiple programs linked
16857 # with the same dynamic library. Since this doesn't match the
16858 # behavior of shared libraries on other platforms, we can't use
16859 # them.
16860 ld_shlibs_GCJ=no
16861 ;;
16862
16863 beos*)
16864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16865 allow_undefined_flag_GCJ=unsupported
16866 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16867 # support --undefined. This deserves some investigation. FIXME
16868 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16869 else
16870 ld_shlibs_GCJ=no
16871 fi
16872 ;;
16873
16874 cygwin* | mingw* | pw32*)
16875 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16876 # as there is no search path for DLLs.
16877 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878 allow_undefined_flag_GCJ=unsupported
16879 always_export_symbols_GCJ=no
16880 enable_shared_with_static_runtimes_GCJ=yes
16881 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16882
16883 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16884 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16885 # If the export-symbols file already is a .def file (1st line
16886 # is EXPORTS), use it as is; otherwise, prepend...
16887 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16888 cp $export_symbols $output_objdir/$soname.def;
16889 else
16890 echo EXPORTS > $output_objdir/$soname.def;
16891 cat $export_symbols >> $output_objdir/$soname.def;
16892 fi~
16893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16894 else
16895 ld_shlibs_GCJ=no
16896 fi
16897 ;;
16898
16899 interix3*)
16900 hardcode_direct_GCJ=no
16901 hardcode_shlibpath_var_GCJ=no
16902 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16903 export_dynamic_flag_spec_GCJ='${wl}-E'
16904 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16905 # Instead, shared libraries are loaded at an image base (0x10000000 by
16906 # default) and relocated if they conflict, which is a slow very memory
16907 # consuming and fragmenting process. To avoid this, we pick a random,
16908 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16909 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16910 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'
16911 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'
16912 ;;
16913
16914 linux*)
16915 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16916 tmp_addflag=
16917 case $cc_basename,$host_cpu in
16918 pgcc*) # Portland Group C compiler
16919 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'
16920 tmp_addflag=' $pic_flag'
16921 ;;
16922 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16923 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'
16924 tmp_addflag=' $pic_flag -Mnomain' ;;
16925 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16926 tmp_addflag=' -i_dynamic' ;;
16927 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16928 tmp_addflag=' -i_dynamic -nofor_main' ;;
16929 ifc* | ifort*) # Intel Fortran compiler
16930 tmp_addflag=' -nofor_main' ;;
16931 esac
16932 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16933
16934 if test $supports_anon_versioning = yes; then
16935 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16937 $echo "local: *; };" >> $output_objdir/$libname.ver~
16938 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16939 fi
16940 else
16941 ld_shlibs_GCJ=no
16942 fi
16943 ;;
16944
16945 netbsd*)
16946 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16947 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16948 wlarc=
16949 else
16950 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16951 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16952 fi
16953 ;;
16954
16955 solaris*)
16956 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16957 ld_shlibs_GCJ=no
16958 cat <<EOF 1>&2
16959
16960 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16961 *** create shared libraries on Solaris systems. Therefore, libtool
16962 *** is disabling shared libraries support. We urge you to upgrade GNU
16963 *** binutils to release 2.9.1 or newer. Another option is to modify
16964 *** your PATH or compiler configuration so that the native linker is
16965 *** used, and then restart.
16966
16967 EOF
16968 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16969 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16970 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16971 else
16972 ld_shlibs_GCJ=no
16973 fi
16974 ;;
16975
16976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16977 case `$LD -v 2>&1` in
16978 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16979 ld_shlibs_GCJ=no
16980 cat <<_LT_EOF 1>&2
16981
16982 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16983 *** reliably create shared libraries on SCO systems. Therefore, libtool
16984 *** is disabling shared libraries support. We urge you to upgrade GNU
16985 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16986 *** your PATH or compiler configuration so that the native linker is
16987 *** used, and then restart.
16988
16989 _LT_EOF
16990 ;;
16991 *)
16992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16993 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16994 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16995 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16996 else
16997 ld_shlibs_GCJ=no
16998 fi
16999 ;;
17000 esac
17001 ;;
17002
17003 sunos4*)
17004 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17005 wlarc=
17006 hardcode_direct_GCJ=yes
17007 hardcode_shlibpath_var_GCJ=no
17008 ;;
17009
17010 *)
17011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17013 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17014 else
17015 ld_shlibs_GCJ=no
17016 fi
17017 ;;
17018 esac
17019
17020 if test "$ld_shlibs_GCJ" = no; then
17021 runpath_var=
17022 hardcode_libdir_flag_spec_GCJ=
17023 export_dynamic_flag_spec_GCJ=
17024 whole_archive_flag_spec_GCJ=
17025 fi
17026 else
17027 # PORTME fill in a description of your system's linker (not GNU ld)
17028 case $host_os in
17029 aix3*)
17030 allow_undefined_flag_GCJ=unsupported
17031 always_export_symbols_GCJ=yes
17032 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'
17033 # Note: this linker hardcodes the directories in LIBPATH if there
17034 # are no directories specified by -L.
17035 hardcode_minus_L_GCJ=yes
17036 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17037 # Neither direct hardcoding nor static linking is supported with a
17038 # broken collect2.
17039 hardcode_direct_GCJ=unsupported
17040 fi
17041 ;;
17042
17043 aix4* | aix5*)
17044 if test "$host_cpu" = ia64; then
17045 # On IA64, the linker does run time linking by default, so we don't
17046 # have to do anything special.
17047 aix_use_runtimelinking=no
17048 exp_sym_flag='-Bexport'
17049 no_entry_flag=""
17050 else
17051 # If we're using GNU nm, then we don't want the "-C" option.
17052 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17053 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17054 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'
17055 else
17056 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'
17057 fi
17058 aix_use_runtimelinking=no
17059
17060 # Test if we are trying to use run time linking or normal
17061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17062 # need to do runtime linking.
17063 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17064 for ld_flag in $LDFLAGS; do
17065 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17066 aix_use_runtimelinking=yes
17067 break
17068 fi
17069 done
17070 ;;
17071 esac
17072
17073 exp_sym_flag='-bexport'
17074 no_entry_flag='-bnoentry'
17075 fi
17076
17077 # When large executables or shared objects are built, AIX ld can
17078 # have problems creating the table of contents. If linking a library
17079 # or program results in "error TOC overflow" add -mminimal-toc to
17080 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17081 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17082
17083 archive_cmds_GCJ=''
17084 hardcode_direct_GCJ=yes
17085 hardcode_libdir_separator_GCJ=':'
17086 link_all_deplibs_GCJ=yes
17087
17088 if test "$GCC" = yes; then
17089 case $host_os in aix4.[012]|aix4.[012].*)
17090 # We only want to do this on AIX 4.2 and lower, the check
17091 # below for broken collect2 doesn't work under 4.3+
17092 collect2name=`${CC} -print-prog-name=collect2`
17093 if test -f "$collect2name" && \
17094 strings "$collect2name" | grep resolve_lib_name >/dev/null
17095 then
17096 # We have reworked collect2
17097 hardcode_direct_GCJ=yes
17098 else
17099 # We have old collect2
17100 hardcode_direct_GCJ=unsupported
17101 # It fails to find uninstalled libraries when the uninstalled
17102 # path is not listed in the libpath. Setting hardcode_minus_L
17103 # to unsupported forces relinking
17104 hardcode_minus_L_GCJ=yes
17105 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17106 hardcode_libdir_separator_GCJ=
17107 fi
17108 ;;
17109 esac
17110 shared_flag='-shared'
17111 if test "$aix_use_runtimelinking" = yes; then
17112 shared_flag="$shared_flag "'${wl}-G'
17113 fi
17114 else
17115 # not using gcc
17116 if test "$host_cpu" = ia64; then
17117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17118 # chokes on -Wl,-G. The following line is correct:
17119 shared_flag='-G'
17120 else
17121 if test "$aix_use_runtimelinking" = yes; then
17122 shared_flag='${wl}-G'
17123 else
17124 shared_flag='${wl}-bM:SRE'
17125 fi
17126 fi
17127 fi
17128
17129 # It seems that -bexpall does not export symbols beginning with
17130 # underscore (_), so it is better to generate a list of symbols to export.
17131 always_export_symbols_GCJ=yes
17132 if test "$aix_use_runtimelinking" = yes; then
17133 # Warning - without using the other runtime loading flags (-brtl),
17134 # -berok will link without error, but may produce a broken library.
17135 allow_undefined_flag_GCJ='-berok'
17136 # Determine the default libpath from the value encoded in an empty executable.
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17143
17144 int
17145 main ()
17146 {
17147
17148 ;
17149 return 0;
17150 }
17151 _ACEOF
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (ac_try="$ac_link"
17154 case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } && {
17166 test -z "$ac_c_werror_flag" ||
17167 test ! -s conftest.err
17168 } && test -s conftest$ac_exeext &&
17169 $as_test_x conftest$ac_exeext; then
17170
17171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17172 }'`
17173 # Check for a 64-bit object if we didn't find anything.
17174 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17175 }'`; fi
17176 else
17177 echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180
17181 fi
17182
17183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17184 conftest$ac_exeext conftest.$ac_ext
17185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17186
17187 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17188 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"
17189 else
17190 if test "$host_cpu" = ia64; then
17191 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17192 allow_undefined_flag_GCJ="-z nodefs"
17193 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"
17194 else
17195 # Determine the default libpath from the value encoded in an empty executable.
17196 cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h. */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202
17203 int
17204 main ()
17205 {
17206
17207 ;
17208 return 0;
17209 }
17210 _ACEOF
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (ac_try="$ac_link"
17213 case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_link") 2>conftest.er1
17219 ac_status=$?
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } && {
17225 test -z "$ac_c_werror_flag" ||
17226 test ! -s conftest.err
17227 } && test -s conftest$ac_exeext &&
17228 $as_test_x conftest$ac_exeext; then
17229
17230 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17231 }'`
17232 # Check for a 64-bit object if we didn't find anything.
17233 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17234 }'`; fi
17235 else
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17238
17239
17240 fi
17241
17242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17243 conftest$ac_exeext conftest.$ac_ext
17244 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17245
17246 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17247 # Warning - without using the other run time loading flags,
17248 # -berok will link without error, but may produce a broken library.
17249 no_undefined_flag_GCJ=' ${wl}-bernotok'
17250 allow_undefined_flag_GCJ=' ${wl}-berok'
17251 # Exported symbols can be pulled into shared objects from archives
17252 whole_archive_flag_spec_GCJ='$convenience'
17253 archive_cmds_need_lc_GCJ=yes
17254 # This is similar to how AIX traditionally builds its shared libraries.
17255 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'
17256 fi
17257 fi
17258 ;;
17259
17260 amigaos*)
17261 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)'
17262 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17263 hardcode_minus_L_GCJ=yes
17264 # see comment about different semantics on the GNU ld section
17265 ld_shlibs_GCJ=no
17266 ;;
17267
17268 bsdi[45]*)
17269 export_dynamic_flag_spec_GCJ=-rdynamic
17270 ;;
17271
17272 cygwin* | mingw* | pw32*)
17273 # When not using gcc, we currently assume that we are using
17274 # Microsoft Visual C++.
17275 # hardcode_libdir_flag_spec is actually meaningless, as there is
17276 # no search path for DLLs.
17277 hardcode_libdir_flag_spec_GCJ=' '
17278 allow_undefined_flag_GCJ=unsupported
17279 # Tell ltmain to make .lib files, not .a files.
17280 libext=lib
17281 # Tell ltmain to make .dll files, not .so files.
17282 shrext_cmds=".dll"
17283 # FIXME: Setting linknames here is a bad hack.
17284 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17285 # The linker will automatically build a .lib file if we build a DLL.
17286 old_archive_From_new_cmds_GCJ='true'
17287 # FIXME: Should let the user specify the lib program.
17288 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17289 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17290 enable_shared_with_static_runtimes_GCJ=yes
17291 ;;
17292
17293 darwin* | rhapsody*)
17294 case $host_os in
17295 rhapsody* | darwin1.[012])
17296 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17297 ;;
17298 *) # Darwin 1.3 on
17299 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17300 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17301 else
17302 case ${MACOSX_DEPLOYMENT_TARGET} in
17303 10.[012])
17304 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17305 ;;
17306 10.*)
17307 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17308 ;;
17309 esac
17310 fi
17311 ;;
17312 esac
17313 archive_cmds_need_lc_GCJ=no
17314 hardcode_direct_GCJ=no
17315 hardcode_automatic_GCJ=yes
17316 hardcode_shlibpath_var_GCJ=unsupported
17317 whole_archive_flag_spec_GCJ=''
17318 link_all_deplibs_GCJ=yes
17319 if test "$GCC" = yes ; then
17320 output_verbose_link_cmd='echo'
17321 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17322 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17323 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17324 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}'
17325 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}'
17326 else
17327 case $cc_basename in
17328 xlc*)
17329 output_verbose_link_cmd='echo'
17330 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17331 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17332 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17333 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17334 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}'
17335 ;;
17336 *)
17337 ld_shlibs_GCJ=no
17338 ;;
17339 esac
17340 fi
17341 ;;
17342
17343 dgux*)
17344 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17345 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17346 hardcode_shlibpath_var_GCJ=no
17347 ;;
17348
17349 freebsd1*)
17350 ld_shlibs_GCJ=no
17351 ;;
17352
17353 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17354 # support. Future versions do this automatically, but an explicit c++rt0.o
17355 # does not break anything, and helps significantly (at the cost of a little
17356 # extra space).
17357 freebsd2.2*)
17358 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17359 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17360 hardcode_direct_GCJ=yes
17361 hardcode_shlibpath_var_GCJ=no
17362 ;;
17363
17364 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17365 freebsd2*)
17366 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17367 hardcode_direct_GCJ=yes
17368 hardcode_minus_L_GCJ=yes
17369 hardcode_shlibpath_var_GCJ=no
17370 ;;
17371
17372 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17373 freebsd* | kfreebsd*-gnu | dragonfly*)
17374 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17375 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17376 hardcode_direct_GCJ=yes
17377 hardcode_shlibpath_var_GCJ=no
17378 ;;
17379
17380 hpux9*)
17381 if test "$GCC" = yes; then
17382 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'
17383 else
17384 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'
17385 fi
17386 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17387 hardcode_libdir_separator_GCJ=:
17388 hardcode_direct_GCJ=yes
17389
17390 # hardcode_minus_L: Not really in the search PATH,
17391 # but as the default location of the library.
17392 hardcode_minus_L_GCJ=yes
17393 export_dynamic_flag_spec_GCJ='${wl}-E'
17394 ;;
17395
17396 hpux10*)
17397 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17398 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17399 else
17400 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17401 fi
17402 if test "$with_gnu_ld" = no; then
17403 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17404 hardcode_libdir_separator_GCJ=:
17405
17406 hardcode_direct_GCJ=yes
17407 export_dynamic_flag_spec_GCJ='${wl}-E'
17408
17409 # hardcode_minus_L: Not really in the search PATH,
17410 # but as the default location of the library.
17411 hardcode_minus_L_GCJ=yes
17412 fi
17413 ;;
17414
17415 hpux11*)
17416 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17417 case $host_cpu in
17418 hppa*64*)
17419 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17420 ;;
17421 ia64*)
17422 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17423 ;;
17424 *)
17425 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17426 ;;
17427 esac
17428 else
17429 case $host_cpu in
17430 hppa*64*)
17431 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17432 ;;
17433 ia64*)
17434 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17435 ;;
17436 *)
17437 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17438 ;;
17439 esac
17440 fi
17441 if test "$with_gnu_ld" = no; then
17442 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17443 hardcode_libdir_separator_GCJ=:
17444
17445 case $host_cpu in
17446 hppa*64*|ia64*)
17447 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17448 hardcode_direct_GCJ=no
17449 hardcode_shlibpath_var_GCJ=no
17450 ;;
17451 *)
17452 hardcode_direct_GCJ=yes
17453 export_dynamic_flag_spec_GCJ='${wl}-E'
17454
17455 # hardcode_minus_L: Not really in the search PATH,
17456 # but as the default location of the library.
17457 hardcode_minus_L_GCJ=yes
17458 ;;
17459 esac
17460 fi
17461 ;;
17462
17463 irix5* | irix6* | nonstopux*)
17464 if test "$GCC" = yes; then
17465 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'
17466 else
17467 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'
17468 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17469 fi
17470 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17471 hardcode_libdir_separator_GCJ=:
17472 link_all_deplibs_GCJ=yes
17473 ;;
17474
17475 netbsd*)
17476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17477 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17478 else
17479 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17480 fi
17481 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17482 hardcode_direct_GCJ=yes
17483 hardcode_shlibpath_var_GCJ=no
17484 ;;
17485
17486 newsos6)
17487 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17488 hardcode_direct_GCJ=yes
17489 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17490 hardcode_libdir_separator_GCJ=:
17491 hardcode_shlibpath_var_GCJ=no
17492 ;;
17493
17494 openbsd*)
17495 hardcode_direct_GCJ=yes
17496 hardcode_shlibpath_var_GCJ=no
17497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17498 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17499 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17500 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17501 export_dynamic_flag_spec_GCJ='${wl}-E'
17502 else
17503 case $host_os in
17504 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17505 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17506 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17507 ;;
17508 *)
17509 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17510 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17511 ;;
17512 esac
17513 fi
17514 ;;
17515
17516 os2*)
17517 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17518 hardcode_minus_L_GCJ=yes
17519 allow_undefined_flag_GCJ=unsupported
17520 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'
17521 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17522 ;;
17523
17524 osf3*)
17525 if test "$GCC" = yes; then
17526 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17527 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'
17528 else
17529 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17530 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'
17531 fi
17532 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17533 hardcode_libdir_separator_GCJ=:
17534 ;;
17535
17536 osf4* | osf5*) # as osf3* with the addition of -msym flag
17537 if test "$GCC" = yes; then
17538 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17539 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'
17540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17541 else
17542 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17543 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'
17544 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~
17545 $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'
17546
17547 # Both c and cxx compiler support -rpath directly
17548 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17549 fi
17550 hardcode_libdir_separator_GCJ=:
17551 ;;
17552
17553 solaris*)
17554 no_undefined_flag_GCJ=' -z text'
17555 if test "$GCC" = yes; then
17556 wlarc='${wl}'
17557 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17558 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17559 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17560 else
17561 wlarc=''
17562 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17563 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17564 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17565 fi
17566 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17567 hardcode_shlibpath_var_GCJ=no
17568 case $host_os in
17569 solaris2.[0-5] | solaris2.[0-5].*) ;;
17570 *)
17571 # The compiler driver will combine linker options so we
17572 # cannot just pass the convience library names through
17573 # without $wl, iff we do not link with $LD.
17574 # Luckily, gcc supports the same syntax we need for Sun Studio.
17575 # Supported since Solaris 2.6 (maybe 2.5.1?)
17576 case $wlarc in
17577 '')
17578 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17579 *)
17580 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17581 esac ;;
17582 esac
17583 link_all_deplibs_GCJ=yes
17584 ;;
17585
17586 sunos4*)
17587 if test "x$host_vendor" = xsequent; then
17588 # Use $CC to link under sequent, because it throws in some extra .o
17589 # files that make .init and .fini sections work.
17590 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17591 else
17592 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17593 fi
17594 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17595 hardcode_direct_GCJ=yes
17596 hardcode_minus_L_GCJ=yes
17597 hardcode_shlibpath_var_GCJ=no
17598 ;;
17599
17600 sysv4)
17601 case $host_vendor in
17602 sni)
17603 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17604 hardcode_direct_GCJ=yes # is this really true???
17605 ;;
17606 siemens)
17607 ## LD is ld it makes a PLAMLIB
17608 ## CC just makes a GrossModule.
17609 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17610 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17611 hardcode_direct_GCJ=no
17612 ;;
17613 motorola)
17614 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17615 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17616 ;;
17617 esac
17618 runpath_var='LD_RUN_PATH'
17619 hardcode_shlibpath_var_GCJ=no
17620 ;;
17621
17622 sysv4.3*)
17623 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624 hardcode_shlibpath_var_GCJ=no
17625 export_dynamic_flag_spec_GCJ='-Bexport'
17626 ;;
17627
17628 sysv4*MP*)
17629 if test -d /usr/nec; then
17630 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17631 hardcode_shlibpath_var_GCJ=no
17632 runpath_var=LD_RUN_PATH
17633 hardcode_runpath_var=yes
17634 ld_shlibs_GCJ=yes
17635 fi
17636 ;;
17637
17638 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17639 no_undefined_flag_GCJ='${wl}-z,text'
17640 archive_cmds_need_lc_GCJ=no
17641 hardcode_shlibpath_var_GCJ=no
17642 runpath_var='LD_RUN_PATH'
17643
17644 if test "$GCC" = yes; then
17645 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17646 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17647 else
17648 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17649 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17650 fi
17651 ;;
17652
17653 sysv5* | sco3.2v5* | sco5v6*)
17654 # Note: We can NOT use -z defs as we might desire, because we do not
17655 # link with -lc, and that would cause any symbols used from libc to
17656 # always be unresolved, which means just about no library would
17657 # ever link correctly. If we're not using GNU ld we use -z text
17658 # though, which does catch some bad symbols but isn't as heavy-handed
17659 # as -z defs.
17660 no_undefined_flag_GCJ='${wl}-z,text'
17661 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17662 archive_cmds_need_lc_GCJ=no
17663 hardcode_shlibpath_var_GCJ=no
17664 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17665 hardcode_libdir_separator_GCJ=':'
17666 link_all_deplibs_GCJ=yes
17667 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17668 runpath_var='LD_RUN_PATH'
17669
17670 if test "$GCC" = yes; then
17671 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17672 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17673 else
17674 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17675 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17676 fi
17677 ;;
17678
17679 uts4*)
17680 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17681 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17682 hardcode_shlibpath_var_GCJ=no
17683 ;;
17684
17685 *)
17686 ld_shlibs_GCJ=no
17687 ;;
17688 esac
17689 fi
17690
17691 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17692 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17693 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17694
17695 #
17696 # Do we need to explicitly link libc?
17697 #
17698 case "x$archive_cmds_need_lc_GCJ" in
17699 x|xyes)
17700 # Assume -lc should be added
17701 archive_cmds_need_lc_GCJ=yes
17702
17703 if test "$enable_shared" = yes && test "$GCC" = yes; then
17704 case $archive_cmds_GCJ in
17705 *'~'*)
17706 # FIXME: we may have to deal with multi-command sequences.
17707 ;;
17708 '$CC '*)
17709 # Test whether the compiler implicitly links with -lc since on some
17710 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17711 # to ld, don't add -lc before -lgcc.
17712 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17713 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17714 $rm conftest*
17715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17716
17717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17718 (eval $ac_compile) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } 2>conftest.err; then
17722 soname=conftest
17723 lib=conftest
17724 libobjs=conftest.$ac_objext
17725 deplibs=
17726 wl=$lt_prog_compiler_wl_GCJ
17727 pic_flag=$lt_prog_compiler_pic_GCJ
17728 compiler_flags=-v
17729 linker_flags=-v
17730 verstring=
17731 output_objdir=.
17732 libname=conftest
17733 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17734 allow_undefined_flag_GCJ=
17735 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17736 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }
17740 then
17741 archive_cmds_need_lc_GCJ=no
17742 else
17743 archive_cmds_need_lc_GCJ=yes
17744 fi
17745 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17746 else
17747 cat conftest.err 1>&5
17748 fi
17749 $rm conftest*
17750 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17751 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17752 ;;
17753 esac
17754 fi
17755 ;;
17756 esac
17757
17758 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17759 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17760 library_names_spec=
17761 libname_spec='lib$name'
17762 soname_spec=
17763 shrext_cmds=".so"
17764 postinstall_cmds=
17765 postuninstall_cmds=
17766 finish_cmds=
17767 finish_eval=
17768 shlibpath_var=
17769 shlibpath_overrides_runpath=unknown
17770 version_type=none
17771 dynamic_linker="$host_os ld.so"
17772 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17773 if test "$GCC" = yes; then
17774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17775 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17776 # if the path contains ";" then we assume it to be the separator
17777 # otherwise default to the standard path separator (i.e. ":") - it is
17778 # assumed that no part of a normal pathname contains ";" but that should
17779 # okay in the real world where ";" in dirpaths is itself problematic.
17780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17781 else
17782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17783 fi
17784 else
17785 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17786 fi
17787 need_lib_prefix=unknown
17788 hardcode_into_libs=no
17789
17790 # when you set need_version to no, make sure it does not cause -set_version
17791 # flags to be left without arguments
17792 need_version=unknown
17793
17794 case $host_os in
17795 aix3*)
17796 version_type=linux
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17798 shlibpath_var=LIBPATH
17799
17800 # AIX 3 has no versioning support, so we append a major version to the name.
17801 soname_spec='${libname}${release}${shared_ext}$major'
17802 ;;
17803
17804 aix4* | aix5*)
17805 version_type=linux
17806 need_lib_prefix=no
17807 need_version=no
17808 hardcode_into_libs=yes
17809 if test "$host_cpu" = ia64; then
17810 # AIX 5 supports IA64
17811 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17812 shlibpath_var=LD_LIBRARY_PATH
17813 else
17814 # With GCC up to 2.95.x, collect2 would create an import file
17815 # for dependence libraries. The import file would start with
17816 # the line `#! .'. This would cause the generated library to
17817 # depend on `.', always an invalid library. This was fixed in
17818 # development snapshots of GCC prior to 3.0.
17819 case $host_os in
17820 aix4 | aix4.[01] | aix4.[01].*)
17821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17822 echo ' yes '
17823 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17824 :
17825 else
17826 can_build_shared=no
17827 fi
17828 ;;
17829 esac
17830 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17831 # soname into executable. Probably we can add versioning support to
17832 # collect2, so additional links can be useful in future.
17833 if test "$aix_use_runtimelinking" = yes; then
17834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17835 # instead of lib<name>.a to let people know that these are not
17836 # typical AIX shared libraries.
17837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17838 else
17839 # We preserve .a as extension for shared libraries through AIX4.2
17840 # and later when we are not doing run time linking.
17841 library_names_spec='${libname}${release}.a $libname.a'
17842 soname_spec='${libname}${release}${shared_ext}$major'
17843 fi
17844 shlibpath_var=LIBPATH
17845 fi
17846 ;;
17847
17848 amigaos*)
17849 library_names_spec='$libname.ixlibrary $libname.a'
17850 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17851 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'
17852 ;;
17853
17854 beos*)
17855 library_names_spec='${libname}${shared_ext}'
17856 dynamic_linker="$host_os ld.so"
17857 shlibpath_var=LIBRARY_PATH
17858 ;;
17859
17860 bsdi[45]*)
17861 version_type=linux
17862 need_version=no
17863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864 soname_spec='${libname}${release}${shared_ext}$major'
17865 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17866 shlibpath_var=LD_LIBRARY_PATH
17867 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17868 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17869 # the default ld.so.conf also contains /usr/contrib/lib and
17870 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17871 # libtool to hard-code these into programs
17872 ;;
17873
17874 cygwin* | mingw* | pw32*)
17875 version_type=windows
17876 shrext_cmds=".dll"
17877 need_version=no
17878 need_lib_prefix=no
17879
17880 case $GCC,$host_os in
17881 yes,cygwin* | yes,mingw* | yes,pw32*)
17882 library_names_spec='$libname.dll.a'
17883 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17884 postinstall_cmds='base_file=`basename \${file}`~
17885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17886 dldir=$destdir/`dirname \$dlpath`~
17887 test -d \$dldir || mkdir -p \$dldir~
17888 $install_prog $dir/$dlname \$dldir/$dlname~
17889 chmod a+x \$dldir/$dlname'
17890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17891 dlpath=$dir/\$dldll~
17892 $rm \$dlpath'
17893 shlibpath_overrides_runpath=yes
17894
17895 case $host_os in
17896 cygwin*)
17897 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17898 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17899 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17900 ;;
17901 mingw*)
17902 # MinGW DLLs use traditional 'lib' prefix
17903 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17904 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17905 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17906 # It is most probably a Windows format PATH printed by
17907 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17908 # path with ; separators, and with drive letters. We can handle the
17909 # drive letters (cygwin fileutils understands them), so leave them,
17910 # especially as we might pass files found there to a mingw objdump,
17911 # which wouldn't understand a cygwinified path. Ahh.
17912 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17913 else
17914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17915 fi
17916 ;;
17917 pw32*)
17918 # pw32 DLLs use 'pw' prefix rather than 'lib'
17919 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17920 ;;
17921 esac
17922 ;;
17923
17924 *)
17925 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17926 ;;
17927 esac
17928 dynamic_linker='Win32 ld.exe'
17929 # FIXME: first we should search . and the directory the executable is in
17930 shlibpath_var=PATH
17931 ;;
17932
17933 darwin* | rhapsody*)
17934 dynamic_linker="$host_os dyld"
17935 version_type=darwin
17936 need_lib_prefix=no
17937 need_version=no
17938 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17939 soname_spec='${libname}${release}${major}$shared_ext'
17940 shlibpath_overrides_runpath=yes
17941 shlibpath_var=DYLD_LIBRARY_PATH
17942 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17943 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17944 if test "$GCC" = yes; then
17945 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17946 else
17947 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17948 fi
17949 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17950 ;;
17951
17952 dgux*)
17953 version_type=linux
17954 need_lib_prefix=no
17955 need_version=no
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17957 soname_spec='${libname}${release}${shared_ext}$major'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 ;;
17960
17961 freebsd1*)
17962 dynamic_linker=no
17963 ;;
17964
17965 kfreebsd*-gnu)
17966 version_type=linux
17967 need_lib_prefix=no
17968 need_version=no
17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 shlibpath_var=LD_LIBRARY_PATH
17972 shlibpath_overrides_runpath=no
17973 hardcode_into_libs=yes
17974 dynamic_linker='GNU ld.so'
17975 ;;
17976
17977 freebsd* | dragonfly*)
17978 # DragonFly does not have aout. When/if they implement a new
17979 # versioning mechanism, adjust this.
17980 if test -x /usr/bin/objformat; then
17981 objformat=`/usr/bin/objformat`
17982 else
17983 case $host_os in
17984 freebsd[123]*) objformat=aout ;;
17985 *) objformat=elf ;;
17986 esac
17987 fi
17988 version_type=freebsd-$objformat
17989 case $version_type in
17990 freebsd-elf*)
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17992 need_version=no
17993 need_lib_prefix=no
17994 ;;
17995 freebsd-*)
17996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17997 need_version=yes
17998 ;;
17999 esac
18000 shlibpath_var=LD_LIBRARY_PATH
18001 case $host_os in
18002 freebsd2*)
18003 shlibpath_overrides_runpath=yes
18004 ;;
18005 freebsd3.[01]* | freebsdelf3.[01]*)
18006 shlibpath_overrides_runpath=yes
18007 hardcode_into_libs=yes
18008 ;;
18009 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18010 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18011 shlibpath_overrides_runpath=no
18012 hardcode_into_libs=yes
18013 ;;
18014 freebsd*) # from 4.6 on
18015 shlibpath_overrides_runpath=yes
18016 hardcode_into_libs=yes
18017 ;;
18018 esac
18019 ;;
18020
18021 gnu*)
18022 version_type=linux
18023 need_lib_prefix=no
18024 need_version=no
18025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18026 soname_spec='${libname}${release}${shared_ext}$major'
18027 shlibpath_var=LD_LIBRARY_PATH
18028 hardcode_into_libs=yes
18029 ;;
18030
18031 hpux9* | hpux10* | hpux11*)
18032 # Give a soname corresponding to the major version so that dld.sl refuses to
18033 # link against other versions.
18034 version_type=sunos
18035 need_lib_prefix=no
18036 need_version=no
18037 case $host_cpu in
18038 ia64*)
18039 shrext_cmds='.so'
18040 hardcode_into_libs=yes
18041 dynamic_linker="$host_os dld.so"
18042 shlibpath_var=LD_LIBRARY_PATH
18043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18045 soname_spec='${libname}${release}${shared_ext}$major'
18046 if test "X$HPUX_IA64_MODE" = X32; then
18047 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18048 else
18049 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18050 fi
18051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18052 ;;
18053 hppa*64*)
18054 shrext_cmds='.sl'
18055 hardcode_into_libs=yes
18056 dynamic_linker="$host_os dld.sl"
18057 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18060 soname_spec='${libname}${release}${shared_ext}$major'
18061 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18063 ;;
18064 *)
18065 shrext_cmds='.sl'
18066 dynamic_linker="$host_os dld.sl"
18067 shlibpath_var=SHLIB_PATH
18068 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18070 soname_spec='${libname}${release}${shared_ext}$major'
18071 ;;
18072 esac
18073 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18074 postinstall_cmds='chmod 555 $lib'
18075 ;;
18076
18077 interix3*)
18078 version_type=linux
18079 need_lib_prefix=no
18080 need_version=no
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18083 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18084 shlibpath_var=LD_LIBRARY_PATH
18085 shlibpath_overrides_runpath=no
18086 hardcode_into_libs=yes
18087 ;;
18088
18089 irix5* | irix6* | nonstopux*)
18090 case $host_os in
18091 nonstopux*) version_type=nonstopux ;;
18092 *)
18093 if test "$lt_cv_prog_gnu_ld" = yes; then
18094 version_type=linux
18095 else
18096 version_type=irix
18097 fi ;;
18098 esac
18099 need_lib_prefix=no
18100 need_version=no
18101 soname_spec='${libname}${release}${shared_ext}$major'
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18103 case $host_os in
18104 irix5* | nonstopux*)
18105 libsuff= shlibsuff=
18106 ;;
18107 *)
18108 case $LD in # libtool.m4 will add one of these switches to LD
18109 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18110 libsuff= shlibsuff= libmagic=32-bit;;
18111 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18112 libsuff=32 shlibsuff=N32 libmagic=N32;;
18113 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18114 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18115 *) libsuff= shlibsuff= libmagic=never-match;;
18116 esac
18117 ;;
18118 esac
18119 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18120 shlibpath_overrides_runpath=no
18121 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18122 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18123 hardcode_into_libs=yes
18124 ;;
18125
18126 # No shared lib support for Linux oldld, aout, or coff.
18127 linux*oldld* | linux*aout* | linux*coff*)
18128 dynamic_linker=no
18129 ;;
18130
18131 # This must be Linux ELF.
18132 linux*)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18139 shlibpath_var=LD_LIBRARY_PATH
18140 shlibpath_overrides_runpath=no
18141 # This implies no fast_install, which is unacceptable.
18142 # Some rework will be needed to allow for fast_install
18143 # before this can be enabled.
18144 hardcode_into_libs=yes
18145
18146 # find out which ABI we are using
18147 libsuff=
18148 case "$host_cpu" in
18149 x86_64*|s390x*|powerpc64*)
18150 echo '#line 18150 "configure"' > conftest.$ac_ext
18151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18152 (eval $ac_compile) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; then
18156 case `/usr/bin/file conftest.$ac_objext` in
18157 *64-bit*)
18158 libsuff=64
18159 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18160 ;;
18161 esac
18162 fi
18163 rm -rf conftest*
18164 ;;
18165 esac
18166
18167 # Append ld.so.conf contents to the search path
18168 if test -f /etc/ld.so.conf; then
18169 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18170 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18171 fi
18172
18173 # We used to test for /lib/ld.so.1 and disable shared libraries on
18174 # powerpc, because MkLinux only supported shared libraries with the
18175 # GNU dynamic linker. Since this was broken with cross compilers,
18176 # most powerpc-linux boxes support dynamic linking these days and
18177 # people can always --disable-shared, the test was removed, and we
18178 # assume the GNU/Linux dynamic linker is in use.
18179 dynamic_linker='GNU/Linux ld.so'
18180 ;;
18181
18182 knetbsd*-gnu)
18183 version_type=linux
18184 need_lib_prefix=no
18185 need_version=no
18186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18187 soname_spec='${libname}${release}${shared_ext}$major'
18188 shlibpath_var=LD_LIBRARY_PATH
18189 shlibpath_overrides_runpath=no
18190 hardcode_into_libs=yes
18191 dynamic_linker='GNU ld.so'
18192 ;;
18193
18194 netbsd*)
18195 version_type=sunos
18196 need_lib_prefix=no
18197 need_version=no
18198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18201 dynamic_linker='NetBSD (a.out) ld.so'
18202 else
18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18204 soname_spec='${libname}${release}${shared_ext}$major'
18205 dynamic_linker='NetBSD ld.elf_so'
18206 fi
18207 shlibpath_var=LD_LIBRARY_PATH
18208 shlibpath_overrides_runpath=yes
18209 hardcode_into_libs=yes
18210 ;;
18211
18212 newsos6)
18213 version_type=linux
18214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18215 shlibpath_var=LD_LIBRARY_PATH
18216 shlibpath_overrides_runpath=yes
18217 ;;
18218
18219 nto-qnx*)
18220 version_type=linux
18221 need_lib_prefix=no
18222 need_version=no
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224 soname_spec='${libname}${release}${shared_ext}$major'
18225 shlibpath_var=LD_LIBRARY_PATH
18226 shlibpath_overrides_runpath=yes
18227 ;;
18228
18229 openbsd*)
18230 version_type=sunos
18231 sys_lib_dlsearch_path_spec="/usr/lib"
18232 need_lib_prefix=no
18233 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18234 case $host_os in
18235 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18236 *) need_version=no ;;
18237 esac
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18240 shlibpath_var=LD_LIBRARY_PATH
18241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18242 case $host_os in
18243 openbsd2.[89] | openbsd2.[89].*)
18244 shlibpath_overrides_runpath=no
18245 ;;
18246 *)
18247 shlibpath_overrides_runpath=yes
18248 ;;
18249 esac
18250 else
18251 shlibpath_overrides_runpath=yes
18252 fi
18253 ;;
18254
18255 os2*)
18256 libname_spec='$name'
18257 shrext_cmds=".dll"
18258 need_lib_prefix=no
18259 library_names_spec='$libname${shared_ext} $libname.a'
18260 dynamic_linker='OS/2 ld.exe'
18261 shlibpath_var=LIBPATH
18262 ;;
18263
18264 osf3* | osf4* | osf5*)
18265 version_type=osf
18266 need_lib_prefix=no
18267 need_version=no
18268 soname_spec='${libname}${release}${shared_ext}$major'
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18270 shlibpath_var=LD_LIBRARY_PATH
18271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18272 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18273 ;;
18274
18275 solaris*)
18276 version_type=linux
18277 need_lib_prefix=no
18278 need_version=no
18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18280 soname_spec='${libname}${release}${shared_ext}$major'
18281 shlibpath_var=LD_LIBRARY_PATH
18282 shlibpath_overrides_runpath=yes
18283 hardcode_into_libs=yes
18284 # ldd complains unless libraries are executable
18285 postinstall_cmds='chmod +x $lib'
18286 ;;
18287
18288 sunos4*)
18289 version_type=sunos
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 shlibpath_overrides_runpath=yes
18294 if test "$with_gnu_ld" = yes; then
18295 need_lib_prefix=no
18296 fi
18297 need_version=yes
18298 ;;
18299
18300 sysv4 | sysv4.3*)
18301 version_type=linux
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18303 soname_spec='${libname}${release}${shared_ext}$major'
18304 shlibpath_var=LD_LIBRARY_PATH
18305 case $host_vendor in
18306 sni)
18307 shlibpath_overrides_runpath=no
18308 need_lib_prefix=no
18309 export_dynamic_flag_spec='${wl}-Blargedynsym'
18310 runpath_var=LD_RUN_PATH
18311 ;;
18312 siemens)
18313 need_lib_prefix=no
18314 ;;
18315 motorola)
18316 need_lib_prefix=no
18317 need_version=no
18318 shlibpath_overrides_runpath=no
18319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18320 ;;
18321 esac
18322 ;;
18323
18324 sysv4*MP*)
18325 if test -d /usr/nec ;then
18326 version_type=linux
18327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18328 soname_spec='$libname${shared_ext}.$major'
18329 shlibpath_var=LD_LIBRARY_PATH
18330 fi
18331 ;;
18332
18333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18334 version_type=freebsd-elf
18335 need_lib_prefix=no
18336 need_version=no
18337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18338 soname_spec='${libname}${release}${shared_ext}$major'
18339 shlibpath_var=LD_LIBRARY_PATH
18340 hardcode_into_libs=yes
18341 if test "$with_gnu_ld" = yes; then
18342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18343 shlibpath_overrides_runpath=no
18344 else
18345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18346 shlibpath_overrides_runpath=yes
18347 case $host_os in
18348 sco3.2v5*)
18349 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18350 ;;
18351 esac
18352 fi
18353 sys_lib_dlsearch_path_spec='/usr/lib'
18354 ;;
18355
18356 uts4*)
18357 version_type=linux
18358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18359 soname_spec='${libname}${release}${shared_ext}$major'
18360 shlibpath_var=LD_LIBRARY_PATH
18361 ;;
18362
18363 *)
18364 dynamic_linker=no
18365 ;;
18366 esac
18367 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18368 echo "${ECHO_T}$dynamic_linker" >&6; }
18369 test "$dynamic_linker" = no && can_build_shared=no
18370
18371 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18372 if test "$GCC" = yes; then
18373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18374 fi
18375
18376 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18377 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18378 hardcode_action_GCJ=
18379 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18380 test -n "$runpath_var_GCJ" || \
18381 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18382
18383 # We can hardcode non-existant directories.
18384 if test "$hardcode_direct_GCJ" != no &&
18385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18386 # have to relink, otherwise we might link with an installed library
18387 # when we should be linking with a yet-to-be-installed one
18388 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18389 test "$hardcode_minus_L_GCJ" != no; then
18390 # Linking always hardcodes the temporary library directory.
18391 hardcode_action_GCJ=relink
18392 else
18393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18394 hardcode_action_GCJ=immediate
18395 fi
18396 else
18397 # We cannot hardcode anything, or else we can only hardcode existing
18398 # directories.
18399 hardcode_action_GCJ=unsupported
18400 fi
18401 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18402 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18403
18404 if test "$hardcode_action_GCJ" = relink; then
18405 # Fast installation is not supported
18406 enable_fast_install=no
18407 elif test "$shlibpath_overrides_runpath" = yes ||
18408 test "$enable_shared" = no; then
18409 # Fast installation is not necessary
18410 enable_fast_install=needless
18411 fi
18412
18413
18414 # The else clause should only fire when bootstrapping the
18415 # libtool distribution, otherwise you forgot to ship ltmain.sh
18416 # with your package, and you will get complaints that there are
18417 # no rules to generate ltmain.sh.
18418 if test -f "$ltmain"; then
18419 # See if we are running on zsh, and set the options which allow our commands through
18420 # without removal of \ escapes.
18421 if test -n "${ZSH_VERSION+set}" ; then
18422 setopt NO_GLOB_SUBST
18423 fi
18424 # Now quote all the things that may contain metacharacters while being
18425 # careful not to overquote the AC_SUBSTed values. We take copies of the
18426 # variables and quote the copies for generation of the libtool script.
18427 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18428 SED SHELL STRIP \
18429 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18430 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18431 deplibs_check_method reload_flag reload_cmds need_locks \
18432 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18433 lt_cv_sys_global_symbol_to_c_name_address \
18434 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18435 old_postinstall_cmds old_postuninstall_cmds \
18436 compiler_GCJ \
18437 CC_GCJ \
18438 LD_GCJ \
18439 lt_prog_compiler_wl_GCJ \
18440 lt_prog_compiler_pic_GCJ \
18441 lt_prog_compiler_static_GCJ \
18442 lt_prog_compiler_no_builtin_flag_GCJ \
18443 export_dynamic_flag_spec_GCJ \
18444 thread_safe_flag_spec_GCJ \
18445 whole_archive_flag_spec_GCJ \
18446 enable_shared_with_static_runtimes_GCJ \
18447 old_archive_cmds_GCJ \
18448 old_archive_from_new_cmds_GCJ \
18449 predep_objects_GCJ \
18450 postdep_objects_GCJ \
18451 predeps_GCJ \
18452 postdeps_GCJ \
18453 compiler_lib_search_path_GCJ \
18454 archive_cmds_GCJ \
18455 archive_expsym_cmds_GCJ \
18456 postinstall_cmds_GCJ \
18457 postuninstall_cmds_GCJ \
18458 old_archive_from_expsyms_cmds_GCJ \
18459 allow_undefined_flag_GCJ \
18460 no_undefined_flag_GCJ \
18461 export_symbols_cmds_GCJ \
18462 hardcode_libdir_flag_spec_GCJ \
18463 hardcode_libdir_flag_spec_ld_GCJ \
18464 hardcode_libdir_separator_GCJ \
18465 hardcode_automatic_GCJ \
18466 module_cmds_GCJ \
18467 module_expsym_cmds_GCJ \
18468 lt_cv_prog_compiler_c_o_GCJ \
18469 exclude_expsyms_GCJ \
18470 include_expsyms_GCJ; do
18471
18472 case $var in
18473 old_archive_cmds_GCJ | \
18474 old_archive_from_new_cmds_GCJ | \
18475 archive_cmds_GCJ | \
18476 archive_expsym_cmds_GCJ | \
18477 module_cmds_GCJ | \
18478 module_expsym_cmds_GCJ | \
18479 old_archive_from_expsyms_cmds_GCJ | \
18480 export_symbols_cmds_GCJ | \
18481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18482 postinstall_cmds | postuninstall_cmds | \
18483 old_postinstall_cmds | old_postuninstall_cmds | \
18484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18485 # Double-quote double-evaled strings.
18486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18487 ;;
18488 *)
18489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18490 ;;
18491 esac
18492 done
18493
18494 case $lt_echo in
18495 *'\$0 --fallback-echo"')
18496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18497 ;;
18498 esac
18499
18500 cfgfile="$ofile"
18501
18502 cat <<__EOF__ >> "$cfgfile"
18503 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18504
18505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18506
18507 # Shell to use when invoking shell scripts.
18508 SHELL=$lt_SHELL
18509
18510 # Whether or not to build shared libraries.
18511 build_libtool_libs=$enable_shared
18512
18513 # Whether or not to build static libraries.
18514 build_old_libs=$enable_static
18515
18516 # Whether or not to add -lc for building shared libraries.
18517 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18518
18519 # Whether or not to disallow shared libs when runtime libs are static
18520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18521
18522 # Whether or not to optimize for fast installation.
18523 fast_install=$enable_fast_install
18524
18525 # The host system.
18526 host_alias=$host_alias
18527 host=$host
18528 host_os=$host_os
18529
18530 # The build system.
18531 build_alias=$build_alias
18532 build=$build
18533 build_os=$build_os
18534
18535 # An echo program that does not interpret backslashes.
18536 echo=$lt_echo
18537
18538 # The archiver.
18539 AR=$lt_AR
18540 AR_FLAGS=$lt_AR_FLAGS
18541
18542 # A C compiler.
18543 LTCC=$lt_LTCC
18544
18545 # LTCC compiler flags.
18546 LTCFLAGS=$lt_LTCFLAGS
18547
18548 # A language-specific compiler.
18549 CC=$lt_compiler_GCJ
18550
18551 # Is the compiler the GNU C compiler?
18552 with_gcc=$GCC_GCJ
18553
18554 # An ERE matcher.
18555 EGREP=$lt_EGREP
18556
18557 # The linker used to build libraries.
18558 LD=$lt_LD_GCJ
18559
18560 # Whether we need hard or soft links.
18561 LN_S=$lt_LN_S
18562
18563 # A BSD-compatible nm program.
18564 NM=$lt_NM
18565
18566 # A symbol stripping program
18567 STRIP=$lt_STRIP
18568
18569 # Used to examine libraries when file_magic_cmd begins "file"
18570 MAGIC_CMD=$MAGIC_CMD
18571
18572 # Used on cygwin: DLL creation program.
18573 DLLTOOL="$DLLTOOL"
18574
18575 # Used on cygwin: object dumper.
18576 OBJDUMP="$OBJDUMP"
18577
18578 # Used on cygwin: assembler.
18579 AS="$AS"
18580
18581 # The name of the directory that contains temporary libtool files.
18582 objdir=$objdir
18583
18584 # How to create reloadable object files.
18585 reload_flag=$lt_reload_flag
18586 reload_cmds=$lt_reload_cmds
18587
18588 # How to pass a linker flag through the compiler.
18589 wl=$lt_lt_prog_compiler_wl_GCJ
18590
18591 # Object file suffix (normally "o").
18592 objext="$ac_objext"
18593
18594 # Old archive suffix (normally "a").
18595 libext="$libext"
18596
18597 # Shared library suffix (normally ".so").
18598 shrext_cmds='$shrext_cmds'
18599
18600 # Executable file suffix (normally "").
18601 exeext="$exeext"
18602
18603 # Additional compiler flags for building library objects.
18604 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18605 pic_mode=$pic_mode
18606
18607 # What is the maximum length of a command?
18608 max_cmd_len=$lt_cv_sys_max_cmd_len
18609
18610 # Does compiler simultaneously support -c and -o options?
18611 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18612
18613 # Must we lock files when doing compilation?
18614 need_locks=$lt_need_locks
18615
18616 # Do we need the lib prefix for modules?
18617 need_lib_prefix=$need_lib_prefix
18618
18619 # Do we need a version for libraries?
18620 need_version=$need_version
18621
18622 # Whether dlopen is supported.
18623 dlopen_support=$enable_dlopen
18624
18625 # Whether dlopen of programs is supported.
18626 dlopen_self=$enable_dlopen_self
18627
18628 # Whether dlopen of statically linked programs is supported.
18629 dlopen_self_static=$enable_dlopen_self_static
18630
18631 # Compiler flag to prevent dynamic linking.
18632 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18633
18634 # Compiler flag to turn off builtin functions.
18635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18636
18637 # Compiler flag to allow reflexive dlopens.
18638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18639
18640 # Compiler flag to generate shared objects directly from archives.
18641 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18642
18643 # Compiler flag to generate thread-safe objects.
18644 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18645
18646 # Library versioning type.
18647 version_type=$version_type
18648
18649 # Format of library name prefix.
18650 libname_spec=$lt_libname_spec
18651
18652 # List of archive names. First name is the real one, the rest are links.
18653 # The last name is the one that the linker finds with -lNAME.
18654 library_names_spec=$lt_library_names_spec
18655
18656 # The coded name of the library, if different from the real name.
18657 soname_spec=$lt_soname_spec
18658
18659 # Commands used to build and install an old-style archive.
18660 RANLIB=$lt_RANLIB
18661 old_archive_cmds=$lt_old_archive_cmds_GCJ
18662 old_postinstall_cmds=$lt_old_postinstall_cmds
18663 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18664
18665 # Create an old-style archive from a shared archive.
18666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18667
18668 # Create a temporary old-style archive to link instead of a shared archive.
18669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18670
18671 # Commands used to build and install a shared archive.
18672 archive_cmds=$lt_archive_cmds_GCJ
18673 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18674 postinstall_cmds=$lt_postinstall_cmds
18675 postuninstall_cmds=$lt_postuninstall_cmds
18676
18677 # Commands used to build a loadable module (assumed same as above if empty)
18678 module_cmds=$lt_module_cmds_GCJ
18679 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18680
18681 # Commands to strip libraries.
18682 old_striplib=$lt_old_striplib
18683 striplib=$lt_striplib
18684
18685 # Dependencies to place before the objects being linked to create a
18686 # shared library.
18687 predep_objects=$lt_predep_objects_GCJ
18688
18689 # Dependencies to place after the objects being linked to create a
18690 # shared library.
18691 postdep_objects=$lt_postdep_objects_GCJ
18692
18693 # Dependencies to place before the objects being linked to create a
18694 # shared library.
18695 predeps=$lt_predeps_GCJ
18696
18697 # Dependencies to place after the objects being linked to create a
18698 # shared library.
18699 postdeps=$lt_postdeps_GCJ
18700
18701 # The library search path used internally by the compiler when linking
18702 # a shared library.
18703 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18704
18705 # Method to check whether dependent libraries are shared objects.
18706 deplibs_check_method=$lt_deplibs_check_method
18707
18708 # Command to use when deplibs_check_method == file_magic.
18709 file_magic_cmd=$lt_file_magic_cmd
18710
18711 # Flag that allows shared libraries with undefined symbols to be built.
18712 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18713
18714 # Flag that forces no undefined symbols.
18715 no_undefined_flag=$lt_no_undefined_flag_GCJ
18716
18717 # Commands used to finish a libtool library installation in a directory.
18718 finish_cmds=$lt_finish_cmds
18719
18720 # Same as above, but a single script fragment to be evaled but not shown.
18721 finish_eval=$lt_finish_eval
18722
18723 # Take the output of nm and produce a listing of raw symbols and C names.
18724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18725
18726 # Transform the output of nm in a proper C declaration
18727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18728
18729 # Transform the output of nm in a C name address pair
18730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18731
18732 # This is the shared library runtime path variable.
18733 runpath_var=$runpath_var
18734
18735 # This is the shared library path variable.
18736 shlibpath_var=$shlibpath_var
18737
18738 # Is shlibpath searched before the hard-coded library search path?
18739 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18740
18741 # How to hardcode a shared library path into an executable.
18742 hardcode_action=$hardcode_action_GCJ
18743
18744 # Whether we should hardcode library paths into libraries.
18745 hardcode_into_libs=$hardcode_into_libs
18746
18747 # Flag to hardcode \$libdir into a binary during linking.
18748 # This must work even if \$libdir does not exist.
18749 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18750
18751 # If ld is used when linking, flag to hardcode \$libdir into
18752 # a binary during linking. This must work even if \$libdir does
18753 # not exist.
18754 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18755
18756 # Whether we need a single -rpath flag with a separated argument.
18757 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18758
18759 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18760 # resulting binary.
18761 hardcode_direct=$hardcode_direct_GCJ
18762
18763 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18764 # resulting binary.
18765 hardcode_minus_L=$hardcode_minus_L_GCJ
18766
18767 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18768 # the resulting binary.
18769 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18770
18771 # Set to yes if building a shared library automatically hardcodes DIR into the library
18772 # and all subsequent libraries and executables linked against it.
18773 hardcode_automatic=$hardcode_automatic_GCJ
18774
18775 # Variables whose values should be saved in libtool wrapper scripts and
18776 # restored at relink time.
18777 variables_saved_for_relink="$variables_saved_for_relink"
18778
18779 # Whether libtool must link a program against all its dependency libraries.
18780 link_all_deplibs=$link_all_deplibs_GCJ
18781
18782 # Compile-time system search path for libraries
18783 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18784
18785 # Run-time system search path for libraries
18786 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18787
18788 # Fix the shell variable \$srcfile for the compiler.
18789 fix_srcfile_path="$fix_srcfile_path_GCJ"
18790
18791 # Set to yes if exported symbols are required.
18792 always_export_symbols=$always_export_symbols_GCJ
18793
18794 # The commands to list exported symbols.
18795 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18796
18797 # The commands to extract the exported symbol list from a shared archive.
18798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18799
18800 # Symbols that should not be listed in the preloaded symbols.
18801 exclude_expsyms=$lt_exclude_expsyms_GCJ
18802
18803 # Symbols that must always be exported.
18804 include_expsyms=$lt_include_expsyms_GCJ
18805
18806 # ### END LIBTOOL TAG CONFIG: $tagname
18807
18808 __EOF__
18809
18810
18811 else
18812 # If there is no Makefile yet, we rely on a make rule to execute
18813 # `config.status --recheck' to rerun these tests and create the
18814 # libtool script then.
18815 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18816 if test -f "$ltmain_in"; then
18817 test -f Makefile && make "$ltmain"
18818 fi
18819 fi
18820
18821
18822 ac_ext=c
18823 ac_cpp='$CPP $CPPFLAGS'
18824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18827
18828 CC="$lt_save_CC"
18829
18830 else
18831 tagname=""
18832 fi
18833 ;;
18834
18835 RC)
18836
18837
18838 # Source file extension for RC test sources.
18839 ac_ext=rc
18840
18841 # Object file extension for compiled RC test sources.
18842 objext=o
18843 objext_RC=$objext
18844
18845 # Code to be used in simple compile tests
18846 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18847
18848 # Code to be used in simple link tests
18849 lt_simple_link_test_code="$lt_simple_compile_test_code"
18850
18851 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18852
18853 # If no C compiler was specified, use CC.
18854 LTCC=${LTCC-"$CC"}
18855
18856 # If no C compiler flags were specified, use CFLAGS.
18857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18858
18859 # Allow CC to be a program name with arguments.
18860 compiler=$CC
18861
18862
18863 # save warnings/boilerplate of simple test code
18864 ac_outfile=conftest.$ac_objext
18865 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18867 _lt_compiler_boilerplate=`cat conftest.err`
18868 $rm conftest*
18869
18870 ac_outfile=conftest.$ac_objext
18871 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18873 _lt_linker_boilerplate=`cat conftest.err`
18874 $rm conftest*
18875
18876
18877 # Allow CC to be a program name with arguments.
18878 lt_save_CC="$CC"
18879 CC=${RC-"windres"}
18880 compiler=$CC
18881 compiler_RC=$CC
18882 for cc_temp in $compiler""; do
18883 case $cc_temp in
18884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18886 \-*) ;;
18887 *) break;;
18888 esac
18889 done
18890 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18891
18892 lt_cv_prog_compiler_c_o_RC=yes
18893
18894 # The else clause should only fire when bootstrapping the
18895 # libtool distribution, otherwise you forgot to ship ltmain.sh
18896 # with your package, and you will get complaints that there are
18897 # no rules to generate ltmain.sh.
18898 if test -f "$ltmain"; then
18899 # See if we are running on zsh, and set the options which allow our commands through
18900 # without removal of \ escapes.
18901 if test -n "${ZSH_VERSION+set}" ; then
18902 setopt NO_GLOB_SUBST
18903 fi
18904 # Now quote all the things that may contain metacharacters while being
18905 # careful not to overquote the AC_SUBSTed values. We take copies of the
18906 # variables and quote the copies for generation of the libtool script.
18907 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18908 SED SHELL STRIP \
18909 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18910 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18911 deplibs_check_method reload_flag reload_cmds need_locks \
18912 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18913 lt_cv_sys_global_symbol_to_c_name_address \
18914 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18915 old_postinstall_cmds old_postuninstall_cmds \
18916 compiler_RC \
18917 CC_RC \
18918 LD_RC \
18919 lt_prog_compiler_wl_RC \
18920 lt_prog_compiler_pic_RC \
18921 lt_prog_compiler_static_RC \
18922 lt_prog_compiler_no_builtin_flag_RC \
18923 export_dynamic_flag_spec_RC \
18924 thread_safe_flag_spec_RC \
18925 whole_archive_flag_spec_RC \
18926 enable_shared_with_static_runtimes_RC \
18927 old_archive_cmds_RC \
18928 old_archive_from_new_cmds_RC \
18929 predep_objects_RC \
18930 postdep_objects_RC \
18931 predeps_RC \
18932 postdeps_RC \
18933 compiler_lib_search_path_RC \
18934 archive_cmds_RC \
18935 archive_expsym_cmds_RC \
18936 postinstall_cmds_RC \
18937 postuninstall_cmds_RC \
18938 old_archive_from_expsyms_cmds_RC \
18939 allow_undefined_flag_RC \
18940 no_undefined_flag_RC \
18941 export_symbols_cmds_RC \
18942 hardcode_libdir_flag_spec_RC \
18943 hardcode_libdir_flag_spec_ld_RC \
18944 hardcode_libdir_separator_RC \
18945 hardcode_automatic_RC \
18946 module_cmds_RC \
18947 module_expsym_cmds_RC \
18948 lt_cv_prog_compiler_c_o_RC \
18949 exclude_expsyms_RC \
18950 include_expsyms_RC; do
18951
18952 case $var in
18953 old_archive_cmds_RC | \
18954 old_archive_from_new_cmds_RC | \
18955 archive_cmds_RC | \
18956 archive_expsym_cmds_RC | \
18957 module_cmds_RC | \
18958 module_expsym_cmds_RC | \
18959 old_archive_from_expsyms_cmds_RC | \
18960 export_symbols_cmds_RC | \
18961 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18962 postinstall_cmds | postuninstall_cmds | \
18963 old_postinstall_cmds | old_postuninstall_cmds | \
18964 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18965 # Double-quote double-evaled strings.
18966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18967 ;;
18968 *)
18969 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18970 ;;
18971 esac
18972 done
18973
18974 case $lt_echo in
18975 *'\$0 --fallback-echo"')
18976 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18977 ;;
18978 esac
18979
18980 cfgfile="$ofile"
18981
18982 cat <<__EOF__ >> "$cfgfile"
18983 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18984
18985 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18986
18987 # Shell to use when invoking shell scripts.
18988 SHELL=$lt_SHELL
18989
18990 # Whether or not to build shared libraries.
18991 build_libtool_libs=$enable_shared
18992
18993 # Whether or not to build static libraries.
18994 build_old_libs=$enable_static
18995
18996 # Whether or not to add -lc for building shared libraries.
18997 build_libtool_need_lc=$archive_cmds_need_lc_RC
18998
18999 # Whether or not to disallow shared libs when runtime libs are static
19000 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19001
19002 # Whether or not to optimize for fast installation.
19003 fast_install=$enable_fast_install
19004
19005 # The host system.
19006 host_alias=$host_alias
19007 host=$host
19008 host_os=$host_os
19009
19010 # The build system.
19011 build_alias=$build_alias
19012 build=$build
19013 build_os=$build_os
19014
19015 # An echo program that does not interpret backslashes.
19016 echo=$lt_echo
19017
19018 # The archiver.
19019 AR=$lt_AR
19020 AR_FLAGS=$lt_AR_FLAGS
19021
19022 # A C compiler.
19023 LTCC=$lt_LTCC
19024
19025 # LTCC compiler flags.
19026 LTCFLAGS=$lt_LTCFLAGS
19027
19028 # A language-specific compiler.
19029 CC=$lt_compiler_RC
19030
19031 # Is the compiler the GNU C compiler?
19032 with_gcc=$GCC_RC
19033
19034 # An ERE matcher.
19035 EGREP=$lt_EGREP
19036
19037 # The linker used to build libraries.
19038 LD=$lt_LD_RC
19039
19040 # Whether we need hard or soft links.
19041 LN_S=$lt_LN_S
19042
19043 # A BSD-compatible nm program.
19044 NM=$lt_NM
19045
19046 # A symbol stripping program
19047 STRIP=$lt_STRIP
19048
19049 # Used to examine libraries when file_magic_cmd begins "file"
19050 MAGIC_CMD=$MAGIC_CMD
19051
19052 # Used on cygwin: DLL creation program.
19053 DLLTOOL="$DLLTOOL"
19054
19055 # Used on cygwin: object dumper.
19056 OBJDUMP="$OBJDUMP"
19057
19058 # Used on cygwin: assembler.
19059 AS="$AS"
19060
19061 # The name of the directory that contains temporary libtool files.
19062 objdir=$objdir
19063
19064 # How to create reloadable object files.
19065 reload_flag=$lt_reload_flag
19066 reload_cmds=$lt_reload_cmds
19067
19068 # How to pass a linker flag through the compiler.
19069 wl=$lt_lt_prog_compiler_wl_RC
19070
19071 # Object file suffix (normally "o").
19072 objext="$ac_objext"
19073
19074 # Old archive suffix (normally "a").
19075 libext="$libext"
19076
19077 # Shared library suffix (normally ".so").
19078 shrext_cmds='$shrext_cmds'
19079
19080 # Executable file suffix (normally "").
19081 exeext="$exeext"
19082
19083 # Additional compiler flags for building library objects.
19084 pic_flag=$lt_lt_prog_compiler_pic_RC
19085 pic_mode=$pic_mode
19086
19087 # What is the maximum length of a command?
19088 max_cmd_len=$lt_cv_sys_max_cmd_len
19089
19090 # Does compiler simultaneously support -c and -o options?
19091 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19092
19093 # Must we lock files when doing compilation?
19094 need_locks=$lt_need_locks
19095
19096 # Do we need the lib prefix for modules?
19097 need_lib_prefix=$need_lib_prefix
19098
19099 # Do we need a version for libraries?
19100 need_version=$need_version
19101
19102 # Whether dlopen is supported.
19103 dlopen_support=$enable_dlopen
19104
19105 # Whether dlopen of programs is supported.
19106 dlopen_self=$enable_dlopen_self
19107
19108 # Whether dlopen of statically linked programs is supported.
19109 dlopen_self_static=$enable_dlopen_self_static
19110
19111 # Compiler flag to prevent dynamic linking.
19112 link_static_flag=$lt_lt_prog_compiler_static_RC
19113
19114 # Compiler flag to turn off builtin functions.
19115 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19116
19117 # Compiler flag to allow reflexive dlopens.
19118 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19119
19120 # Compiler flag to generate shared objects directly from archives.
19121 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19122
19123 # Compiler flag to generate thread-safe objects.
19124 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19125
19126 # Library versioning type.
19127 version_type=$version_type
19128
19129 # Format of library name prefix.
19130 libname_spec=$lt_libname_spec
19131
19132 # List of archive names. First name is the real one, the rest are links.
19133 # The last name is the one that the linker finds with -lNAME.
19134 library_names_spec=$lt_library_names_spec
19135
19136 # The coded name of the library, if different from the real name.
19137 soname_spec=$lt_soname_spec
19138
19139 # Commands used to build and install an old-style archive.
19140 RANLIB=$lt_RANLIB
19141 old_archive_cmds=$lt_old_archive_cmds_RC
19142 old_postinstall_cmds=$lt_old_postinstall_cmds
19143 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19144
19145 # Create an old-style archive from a shared archive.
19146 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19147
19148 # Create a temporary old-style archive to link instead of a shared archive.
19149 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19150
19151 # Commands used to build and install a shared archive.
19152 archive_cmds=$lt_archive_cmds_RC
19153 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19154 postinstall_cmds=$lt_postinstall_cmds
19155 postuninstall_cmds=$lt_postuninstall_cmds
19156
19157 # Commands used to build a loadable module (assumed same as above if empty)
19158 module_cmds=$lt_module_cmds_RC
19159 module_expsym_cmds=$lt_module_expsym_cmds_RC
19160
19161 # Commands to strip libraries.
19162 old_striplib=$lt_old_striplib
19163 striplib=$lt_striplib
19164
19165 # Dependencies to place before the objects being linked to create a
19166 # shared library.
19167 predep_objects=$lt_predep_objects_RC
19168
19169 # Dependencies to place after the objects being linked to create a
19170 # shared library.
19171 postdep_objects=$lt_postdep_objects_RC
19172
19173 # Dependencies to place before the objects being linked to create a
19174 # shared library.
19175 predeps=$lt_predeps_RC
19176
19177 # Dependencies to place after the objects being linked to create a
19178 # shared library.
19179 postdeps=$lt_postdeps_RC
19180
19181 # The library search path used internally by the compiler when linking
19182 # a shared library.
19183 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19184
19185 # Method to check whether dependent libraries are shared objects.
19186 deplibs_check_method=$lt_deplibs_check_method
19187
19188 # Command to use when deplibs_check_method == file_magic.
19189 file_magic_cmd=$lt_file_magic_cmd
19190
19191 # Flag that allows shared libraries with undefined symbols to be built.
19192 allow_undefined_flag=$lt_allow_undefined_flag_RC
19193
19194 # Flag that forces no undefined symbols.
19195 no_undefined_flag=$lt_no_undefined_flag_RC
19196
19197 # Commands used to finish a libtool library installation in a directory.
19198 finish_cmds=$lt_finish_cmds
19199
19200 # Same as above, but a single script fragment to be evaled but not shown.
19201 finish_eval=$lt_finish_eval
19202
19203 # Take the output of nm and produce a listing of raw symbols and C names.
19204 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19205
19206 # Transform the output of nm in a proper C declaration
19207 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19208
19209 # Transform the output of nm in a C name address pair
19210 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19211
19212 # This is the shared library runtime path variable.
19213 runpath_var=$runpath_var
19214
19215 # This is the shared library path variable.
19216 shlibpath_var=$shlibpath_var
19217
19218 # Is shlibpath searched before the hard-coded library search path?
19219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19220
19221 # How to hardcode a shared library path into an executable.
19222 hardcode_action=$hardcode_action_RC
19223
19224 # Whether we should hardcode library paths into libraries.
19225 hardcode_into_libs=$hardcode_into_libs
19226
19227 # Flag to hardcode \$libdir into a binary during linking.
19228 # This must work even if \$libdir does not exist.
19229 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19230
19231 # If ld is used when linking, flag to hardcode \$libdir into
19232 # a binary during linking. This must work even if \$libdir does
19233 # not exist.
19234 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19235
19236 # Whether we need a single -rpath flag with a separated argument.
19237 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19238
19239 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19240 # resulting binary.
19241 hardcode_direct=$hardcode_direct_RC
19242
19243 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19244 # resulting binary.
19245 hardcode_minus_L=$hardcode_minus_L_RC
19246
19247 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19248 # the resulting binary.
19249 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19250
19251 # Set to yes if building a shared library automatically hardcodes DIR into the library
19252 # and all subsequent libraries and executables linked against it.
19253 hardcode_automatic=$hardcode_automatic_RC
19254
19255 # Variables whose values should be saved in libtool wrapper scripts and
19256 # restored at relink time.
19257 variables_saved_for_relink="$variables_saved_for_relink"
19258
19259 # Whether libtool must link a program against all its dependency libraries.
19260 link_all_deplibs=$link_all_deplibs_RC
19261
19262 # Compile-time system search path for libraries
19263 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19264
19265 # Run-time system search path for libraries
19266 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19267
19268 # Fix the shell variable \$srcfile for the compiler.
19269 fix_srcfile_path="$fix_srcfile_path_RC"
19270
19271 # Set to yes if exported symbols are required.
19272 always_export_symbols=$always_export_symbols_RC
19273
19274 # The commands to list exported symbols.
19275 export_symbols_cmds=$lt_export_symbols_cmds_RC
19276
19277 # The commands to extract the exported symbol list from a shared archive.
19278 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19279
19280 # Symbols that should not be listed in the preloaded symbols.
19281 exclude_expsyms=$lt_exclude_expsyms_RC
19282
19283 # Symbols that must always be exported.
19284 include_expsyms=$lt_include_expsyms_RC
19285
19286 # ### END LIBTOOL TAG CONFIG: $tagname
19287
19288 __EOF__
19289
19290
19291 else
19292 # If there is no Makefile yet, we rely on a make rule to execute
19293 # `config.status --recheck' to rerun these tests and create the
19294 # libtool script then.
19295 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19296 if test -f "$ltmain_in"; then
19297 test -f Makefile && make "$ltmain"
19298 fi
19299 fi
19300
19301
19302 ac_ext=c
19303 ac_cpp='$CPP $CPPFLAGS'
19304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19307
19308 CC="$lt_save_CC"
19309
19310 ;;
19311
19312 *)
19313 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19314 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19315 { (exit 1); exit 1; }; }
19316 ;;
19317 esac
19318
19319 # Append the new tag name to the list of available tags.
19320 if test -n "$tagname" ; then
19321 available_tags="$available_tags $tagname"
19322 fi
19323 fi
19324 done
19325 IFS="$lt_save_ifs"
19326
19327 # Now substitute the updated list of available tags.
19328 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19329 mv "${ofile}T" "$ofile"
19330 chmod +x "$ofile"
19331 else
19332 rm -f "${ofile}T"
19333 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19334 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19335 { (exit 1); exit 1; }; }
19336 fi
19337 fi
19338
19339
19340
19341 # This can be used to rebuild libtool when needed
19342 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19343
19344 # Always use our own libtool.
19345 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19346
19347 # Prevent multiple expansion
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369 if test "$GCC" = yes
19370 then
19371 CFLAGS="-Wall $CFLAGS"
19372 fi
19373
19374 CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."
19375
19376
19377 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19378 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19379 if test "${ac_cv_header_stdc+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19381 else
19382 cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h. */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19388 #include <stdlib.h>
19389 #include <stdarg.h>
19390 #include <string.h>
19391 #include <float.h>
19392
19393 int
19394 main ()
19395 {
19396
19397 ;
19398 return 0;
19399 }
19400 _ACEOF
19401 rm -f conftest.$ac_objext
19402 if { (ac_try="$ac_compile"
19403 case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19406 esac
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_compile") 2>conftest.er1
19409 ac_status=$?
19410 grep -v '^ *+' conftest.er1 >conftest.err
19411 rm -f conftest.er1
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } && {
19415 test -z "$ac_c_werror_flag" ||
19416 test ! -s conftest.err
19417 } && test -s conftest.$ac_objext; then
19418 ac_cv_header_stdc=yes
19419 else
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19422
19423 ac_cv_header_stdc=no
19424 fi
19425
19426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19427
19428 if test $ac_cv_header_stdc = yes; then
19429 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19430 cat >conftest.$ac_ext <<_ACEOF
19431 /* confdefs.h. */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19436 #include <string.h>
19437
19438 _ACEOF
19439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19440 $EGREP "memchr" >/dev/null 2>&1; then
19441 :
19442 else
19443 ac_cv_header_stdc=no
19444 fi
19445 rm -f conftest*
19446
19447 fi
19448
19449 if test $ac_cv_header_stdc = yes; then
19450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h. */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <stdlib.h>
19458
19459 _ACEOF
19460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19461 $EGREP "free" >/dev/null 2>&1; then
19462 :
19463 else
19464 ac_cv_header_stdc=no
19465 fi
19466 rm -f conftest*
19467
19468 fi
19469
19470 if test $ac_cv_header_stdc = yes; then
19471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19472 if test "$cross_compiling" = yes; then
19473 :
19474 else
19475 cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h. */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19481 #include <ctype.h>
19482 #include <stdlib.h>
19483 #if ((' ' & 0x0FF) == 0x020)
19484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19486 #else
19487 # define ISLOWER(c) \
19488 (('a' <= (c) && (c) <= 'i') \
19489 || ('j' <= (c) && (c) <= 'r') \
19490 || ('s' <= (c) && (c) <= 'z'))
19491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19492 #endif
19493
19494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19495 int
19496 main ()
19497 {
19498 int i;
19499 for (i = 0; i < 256; i++)
19500 if (XOR (islower (i), ISLOWER (i))
19501 || toupper (i) != TOUPPER (i))
19502 return 2;
19503 return 0;
19504 }
19505 _ACEOF
19506 rm -f conftest$ac_exeext
19507 if { (ac_try="$ac_link"
19508 case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19511 esac
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_link") 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19517 { (case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_try") 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 :
19527 else
19528 echo "$as_me: program exited with status $ac_status" >&5
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19531
19532 ( exit $ac_status )
19533 ac_cv_header_stdc=no
19534 fi
19535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19536 fi
19537
19538
19539 fi
19540 fi
19541 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19542 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19543 if test $ac_cv_header_stdc = yes; then
19544
19545 cat >>confdefs.h <<\_ACEOF
19546 #define STDC_HEADERS 1
19547 _ACEOF
19548
19549 fi
19550
19551
19552 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19553 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19554 if test "${ac_cv_c_const+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h. */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563
19564 int
19565 main ()
19566 {
19567 /* FIXME: Include the comments suggested by Paul. */
19568 #ifndef __cplusplus
19569 /* Ultrix mips cc rejects this. */
19570 typedef int charset[2];
19571 const charset cs;
19572 /* SunOS 4.1.1 cc rejects this. */
19573 char const *const *pcpcc;
19574 char **ppc;
19575 /* NEC SVR4.0.2 mips cc rejects this. */
19576 struct point {int x, y;};
19577 static struct point const zero = {0,0};
19578 /* AIX XL C 1.02.0.0 rejects this.
19579 It does not let you subtract one const X* pointer from another in
19580 an arm of an if-expression whose if-part is not a constant
19581 expression */
19582 const char *g = "string";
19583 pcpcc = &g + (g ? g-g : 0);
19584 /* HPUX 7.0 cc rejects these. */
19585 ++pcpcc;
19586 ppc = (char**) pcpcc;
19587 pcpcc = (char const *const *) ppc;
19588 { /* SCO 3.2v4 cc rejects this. */
19589 char *t;
19590 char const *s = 0 ? (char *) 0 : (char const *) 0;
19591
19592 *t++ = 0;
19593 if (s) return 0;
19594 }
19595 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19596 int x[] = {25, 17};
19597 const int *foo = &x[0];
19598 ++foo;
19599 }
19600 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19601 typedef const int *iptr;
19602 iptr p = 0;
19603 ++p;
19604 }
19605 { /* AIX XL C 1.02.0.0 rejects this saying
19606 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19607 struct s { int j; const int *ap[3]; };
19608 struct s *b; b->j = 5;
19609 }
19610 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19611 const int foo = 10;
19612 if (!foo) return 0;
19613 }
19614 return !cs[0] && !zero.x;
19615 #endif
19616
19617 ;
19618 return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest.$ac_objext
19622 if { (ac_try="$ac_compile"
19623 case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_compile") 2>conftest.er1
19629 ac_status=$?
19630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } && {
19635 test -z "$ac_c_werror_flag" ||
19636 test ! -s conftest.err
19637 } && test -s conftest.$ac_objext; then
19638 ac_cv_c_const=yes
19639 else
19640 echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643 ac_cv_c_const=no
19644 fi
19645
19646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19647 fi
19648 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19649 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19650 if test $ac_cv_c_const = no; then
19651
19652 cat >>confdefs.h <<\_ACEOF
19653 #define const
19654 _ACEOF
19655
19656 fi
19657
19658 { echo "$as_me:$LINENO: checking for size_t" >&5
19659 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19660 if test "${ac_cv_type_size_t+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19662 else
19663 cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h. */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 $ac_includes_default
19670 typedef size_t ac__type_new_;
19671 int
19672 main ()
19673 {
19674 if ((ac__type_new_ *) 0)
19675 return 0;
19676 if (sizeof (ac__type_new_))
19677 return 0;
19678 ;
19679 return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext
19683 if { (ac_try="$ac_compile"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_compile") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest.$ac_objext; then
19699 ac_cv_type_size_t=yes
19700 else
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19703
19704 ac_cv_type_size_t=no
19705 fi
19706
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708 fi
19709 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19710 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19711 if test $ac_cv_type_size_t = yes; then
19712 :
19713 else
19714
19715 cat >>confdefs.h <<_ACEOF
19716 #define size_t unsigned int
19717 _ACEOF
19718
19719 fi
19720
19721
19722
19723
19724 TESTPROGS=""
19725
19726 hmac_list=""
19727
19728 hashlibs=""
19729 if test -d ${srcdir}/../md5
19730 then
19731 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
19732 hmac_list="$hmac_list &hmac_md5,"
19733 hashlibs="$hashlibs ../md5/libmd5.la"
19734 fi
19735
19736 if test -d ${srcdir}/../sha1
19737 then
19738 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
19739 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
19740 hashlibs="$hashlibs ../sha1/libsha1.la"
19741 fi
19742
19743
19744 hmac_list="$hmac_list 0"
19745
19746
19747
19748 cat >>confdefs.h <<_ACEOF
19749 #define HMAC_LIST $hmac_list
19750 _ACEOF
19751
19752
19753 ac_config_files="$ac_config_files Makefile"
19754
19755 cat >confcache <<\_ACEOF
19756 # This file is a shell script that caches the results of configure
19757 # tests run on this system so they can be shared between configure
19758 # scripts and configure runs, see configure's option --config-cache.
19759 # It is not useful on other systems. If it contains results you don't
19760 # want to keep, you may remove or edit it.
19761 #
19762 # config.status only pays attention to the cache file if you give it
19763 # the --recheck option to rerun configure.
19764 #
19765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19767 # following values.
19768
19769 _ACEOF
19770
19771 # The following way of writing the cache mishandles newlines in values,
19772 # but we know of no workaround that is simple, portable, and efficient.
19773 # So, we kill variables containing newlines.
19774 # Ultrix sh set writes to stderr and can't be redirected directly,
19775 # and sets the high bit in the cache file unless we assign to the vars.
19776 (
19777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19778 eval ac_val=\$$ac_var
19779 case $ac_val in #(
19780 *${as_nl}*)
19781 case $ac_var in #(
19782 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19783 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19784 esac
19785 case $ac_var in #(
19786 _ | IFS | as_nl) ;; #(
19787 *) $as_unset $ac_var ;;
19788 esac ;;
19789 esac
19790 done
19791
19792 (set) 2>&1 |
19793 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19794 *${as_nl}ac_space=\ *)
19795 # `set' does not quote correctly, so add quotes (double-quote
19796 # substitution turns \\\\ into \\, and sed turns \\ into \).
19797 sed -n \
19798 "s/'/'\\\\''/g;
19799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19800 ;; #(
19801 *)
19802 # `set' quotes correctly as required by POSIX, so do not add quotes.
19803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19804 ;;
19805 esac |
19806 sort
19807 ) |
19808 sed '
19809 /^ac_cv_env_/b end
19810 t clear
19811 :clear
19812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19813 t end
19814 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19815 :end' >>confcache
19816 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19817 if test -w "$cache_file"; then
19818 test "x$cache_file" != "x/dev/null" &&
19819 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19820 echo "$as_me: updating cache $cache_file" >&6;}
19821 cat confcache >$cache_file
19822 else
19823 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19824 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19825 fi
19826 fi
19827 rm -f confcache
19828
19829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19830 # Let make expand exec_prefix.
19831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19832
19833 DEFS=-DHAVE_CONFIG_H
19834
19835 ac_libobjs=
19836 ac_ltlibobjs=
19837 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19838 # 1. Remove the extension, and $U if already installed.
19839 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19840 ac_i=`echo "$ac_i" | sed "$ac_script"`
19841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19842 # will be set to the directory where LIBOBJS objects are built.
19843 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19844 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19845 done
19846 LIBOBJS=$ac_libobjs
19847
19848 LTLIBOBJS=$ac_ltlibobjs
19849
19850
19851 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19852 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19853 Usually this means the macro was only invoked conditionally." >&5
19854 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19855 Usually this means the macro was only invoked conditionally." >&2;}
19856 { (exit 1); exit 1; }; }
19857 fi
19858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19859 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19860 Usually this means the macro was only invoked conditionally." >&5
19861 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19862 Usually this means the macro was only invoked conditionally." >&2;}
19863 { (exit 1); exit 1; }; }
19864 fi
19865 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19866 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19867 Usually this means the macro was only invoked conditionally." >&5
19868 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19869 Usually this means the macro was only invoked conditionally." >&2;}
19870 { (exit 1); exit 1; }; }
19871 fi
19872
19873 : ${CONFIG_STATUS=./config.status}
19874 ac_clean_files_save=$ac_clean_files
19875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19876 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19877 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19878 cat >$CONFIG_STATUS <<_ACEOF
19879 #! $SHELL
19880 # Generated by $as_me.
19881 # Run this file to recreate the current configuration.
19882 # Compiler output produced by configure, useful for debugging
19883 # configure, is in config.log if it exists.
19884
19885 debug=false
19886 ac_cs_recheck=false
19887 ac_cs_silent=false
19888 SHELL=\${CONFIG_SHELL-$SHELL}
19889 _ACEOF
19890
19891 cat >>$CONFIG_STATUS <<\_ACEOF
19892 ## --------------------- ##
19893 ## M4sh Initialization. ##
19894 ## --------------------- ##
19895
19896 # Be more Bourne compatible
19897 DUALCASE=1; export DUALCASE # for MKS sh
19898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19899 emulate sh
19900 NULLCMD=:
19901 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19902 # is contrary to our usage. Disable this feature.
19903 alias -g '${1+"$@"}'='"$@"'
19904 setopt NO_GLOB_SUBST
19905 else
19906 case `(set -o) 2>/dev/null` in
19907 *posix*) set -o posix ;;
19908 esac
19909
19910 fi
19911
19912
19913
19914
19915 # PATH needs CR
19916 # Avoid depending upon Character Ranges.
19917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19920 as_cr_digits='0123456789'
19921 as_cr_alnum=$as_cr_Letters$as_cr_digits
19922
19923 # The user is always right.
19924 if test "${PATH_SEPARATOR+set}" != set; then
19925 echo "#! /bin/sh" >conf$$.sh
19926 echo "exit 0" >>conf$$.sh
19927 chmod +x conf$$.sh
19928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19929 PATH_SEPARATOR=';'
19930 else
19931 PATH_SEPARATOR=:
19932 fi
19933 rm -f conf$$.sh
19934 fi
19935
19936 # Support unset when possible.
19937 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19938 as_unset=unset
19939 else
19940 as_unset=false
19941 fi
19942
19943
19944 # IFS
19945 # We need space, tab and new line, in precisely that order. Quoting is
19946 # there to prevent editors from complaining about space-tab.
19947 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19948 # splitting by setting IFS to empty value.)
19949 as_nl='
19950 '
19951 IFS=" "" $as_nl"
19952
19953 # Find who we are. Look in the path if we contain no directory separator.
19954 case $0 in
19955 *[\\/]* ) as_myself=$0 ;;
19956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19957 for as_dir in $PATH
19958 do
19959 IFS=$as_save_IFS
19960 test -z "$as_dir" && as_dir=.
19961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19962 done
19963 IFS=$as_save_IFS
19964
19965 ;;
19966 esac
19967 # We did not find ourselves, most probably we were run as `sh COMMAND'
19968 # in which case we are not to be found in the path.
19969 if test "x$as_myself" = x; then
19970 as_myself=$0
19971 fi
19972 if test ! -f "$as_myself"; then
19973 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19974 { (exit 1); exit 1; }
19975 fi
19976
19977 # Work around bugs in pre-3.0 UWIN ksh.
19978 for as_var in ENV MAIL MAILPATH
19979 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19980 done
19981 PS1='$ '
19982 PS2='> '
19983 PS4='+ '
19984
19985 # NLS nuisances.
19986 for as_var in \
19987 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19988 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19989 LC_TELEPHONE LC_TIME
19990 do
19991 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19992 eval $as_var=C; export $as_var
19993 else
19994 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19995 fi
19996 done
19997
19998 # Required to use basename.
19999 if expr a : '\(a\)' >/dev/null 2>&1 &&
20000 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20001 as_expr=expr
20002 else
20003 as_expr=false
20004 fi
20005
20006 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20007 as_basename=basename
20008 else
20009 as_basename=false
20010 fi
20011
20012
20013 # Name of the executable.
20014 as_me=`$as_basename -- "$0" ||
20015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20016 X"$0" : 'X\(//\)$' \| \
20017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20018 echo X/"$0" |
20019 sed '/^.*\/\([^/][^/]*\)\/*$/{
20020 s//\1/
20021 q
20022 }
20023 /^X\/\(\/\/\)$/{
20024 s//\1/
20025 q
20026 }
20027 /^X\/\(\/\).*/{
20028 s//\1/
20029 q
20030 }
20031 s/.*/./; q'`
20032
20033 # CDPATH.
20034 $as_unset CDPATH
20035
20036
20037
20038 as_lineno_1=$LINENO
20039 as_lineno_2=$LINENO
20040 test "x$as_lineno_1" != "x$as_lineno_2" &&
20041 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20042
20043 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20044 # uniformly replaced by the line number. The first 'sed' inserts a
20045 # line-number line after each line using $LINENO; the second 'sed'
20046 # does the real work. The second script uses 'N' to pair each
20047 # line-number line with the line containing $LINENO, and appends
20048 # trailing '-' during substitution so that $LINENO is not a special
20049 # case at line end.
20050 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20051 # scripts with optimization help from Paolo Bonzini. Blame Lee
20052 # E. McMahon (1931-1989) for sed's syntax. :-)
20053 sed -n '
20054 p
20055 /[$]LINENO/=
20056 ' <$as_myself |
20057 sed '
20058 s/[$]LINENO.*/&-/
20059 t lineno
20060 b
20061 :lineno
20062 N
20063 :loop
20064 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20065 t loop
20066 s/-\n.*//
20067 ' >$as_me.lineno &&
20068 chmod +x "$as_me.lineno" ||
20069 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20070 { (exit 1); exit 1; }; }
20071
20072 # Don't try to exec as it changes $[0], causing all sort of problems
20073 # (the dirname of $[0] is not the place where we might find the
20074 # original and so on. Autoconf is especially sensitive to this).
20075 . "./$as_me.lineno"
20076 # Exit status is that of the last command.
20077 exit
20078 }
20079
20080
20081 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20082 as_dirname=dirname
20083 else
20084 as_dirname=false
20085 fi
20086
20087 ECHO_C= ECHO_N= ECHO_T=
20088 case `echo -n x` in
20089 -n*)
20090 case `echo 'x\c'` in
20091 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20092 *) ECHO_C='\c';;
20093 esac;;
20094 *)
20095 ECHO_N='-n';;
20096 esac
20097
20098 if expr a : '\(a\)' >/dev/null 2>&1 &&
20099 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20100 as_expr=expr
20101 else
20102 as_expr=false
20103 fi
20104
20105 rm -f conf$$ conf$$.exe conf$$.file
20106 if test -d conf$$.dir; then
20107 rm -f conf$$.dir/conf$$.file
20108 else
20109 rm -f conf$$.dir
20110 mkdir conf$$.dir
20111 fi
20112 echo >conf$$.file
20113 if ln -s conf$$.file conf$$ 2>/dev/null; then
20114 as_ln_s='ln -s'
20115 # ... but there are two gotchas:
20116 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20117 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20118 # In both cases, we have to default to `cp -p'.
20119 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20120 as_ln_s='cp -p'
20121 elif ln conf$$.file conf$$ 2>/dev/null; then
20122 as_ln_s=ln
20123 else
20124 as_ln_s='cp -p'
20125 fi
20126 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20127 rmdir conf$$.dir 2>/dev/null
20128
20129 if mkdir -p . 2>/dev/null; then
20130 as_mkdir_p=:
20131 else
20132 test -d ./-p && rmdir ./-p
20133 as_mkdir_p=false
20134 fi
20135
20136 if test -x / >/dev/null 2>&1; then
20137 as_test_x='test -x'
20138 else
20139 if ls -dL / >/dev/null 2>&1; then
20140 as_ls_L_option=L
20141 else
20142 as_ls_L_option=
20143 fi
20144 as_test_x='
20145 eval sh -c '\''
20146 if test -d "$1"; then
20147 test -d "$1/.";
20148 else
20149 case $1 in
20150 -*)set "./$1";;
20151 esac;
20152 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20153 ???[sx]*):;;*)false;;esac;fi
20154 '\'' sh
20155 '
20156 fi
20157 as_executable_p=$as_test_x
20158
20159 # Sed expression to map a string onto a valid CPP name.
20160 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20161
20162 # Sed expression to map a string onto a valid variable name.
20163 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20164
20165
20166 exec 6>&1
20167
20168 # Save the log message, to keep $[0] and so on meaningful, and to
20169 # report actual input values of CONFIG_FILES etc. instead of their
20170 # values after options handling.
20171 ac_log="
20172 This file was extended by libhmac $as_me 1.00, which was
20173 generated by GNU Autoconf 2.61. Invocation command line was
20174
20175 CONFIG_FILES = $CONFIG_FILES
20176 CONFIG_HEADERS = $CONFIG_HEADERS
20177 CONFIG_LINKS = $CONFIG_LINKS
20178 CONFIG_COMMANDS = $CONFIG_COMMANDS
20179 $ $0 $@
20180
20181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20182 "
20183
20184 _ACEOF
20185
20186 cat >>$CONFIG_STATUS <<_ACEOF
20187 # Files that config.status was made for.
20188 config_files="$ac_config_files"
20189 config_headers="$ac_config_headers"
20190 config_commands="$ac_config_commands"
20191
20192 _ACEOF
20193
20194 cat >>$CONFIG_STATUS <<\_ACEOF
20195 ac_cs_usage="\
20196 \`$as_me' instantiates files from templates according to the
20197 current configuration.
20198
20199 Usage: $0 [OPTIONS] [FILE]...
20200
20201 -h, --help print this help, then exit
20202 -V, --version print version number and configuration settings, then exit
20203 -q, --quiet do not print progress messages
20204 -d, --debug don't remove temporary files
20205 --recheck update $as_me by reconfiguring in the same conditions
20206 --file=FILE[:TEMPLATE]
20207 instantiate the configuration file FILE
20208 --header=FILE[:TEMPLATE]
20209 instantiate the configuration header FILE
20210
20211 Configuration files:
20212 $config_files
20213
20214 Configuration headers:
20215 $config_headers
20216
20217 Configuration commands:
20218 $config_commands
20219
20220 Report bugs to <bug-autoconf@gnu.org>."
20221
20222 _ACEOF
20223 cat >>$CONFIG_STATUS <<_ACEOF
20224 ac_cs_version="\\
20225 libhmac config.status 1.00
20226 configured by $0, generated by GNU Autoconf 2.61,
20227 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20228
20229 Copyright (C) 2006 Free Software Foundation, Inc.
20230 This config.status script is free software; the Free Software Foundation
20231 gives unlimited permission to copy, distribute and modify it."
20232
20233 ac_pwd='$ac_pwd'
20234 srcdir='$srcdir'
20235 INSTALL='$INSTALL'
20236 MKDIR_P='$MKDIR_P'
20237 _ACEOF
20238
20239 cat >>$CONFIG_STATUS <<\_ACEOF
20240 # If no file are specified by the user, then we need to provide default
20241 # value. By we need to know if files were specified by the user.
20242 ac_need_defaults=:
20243 while test $# != 0
20244 do
20245 case $1 in
20246 --*=*)
20247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20248 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20249 ac_shift=:
20250 ;;
20251 *)
20252 ac_option=$1
20253 ac_optarg=$2
20254 ac_shift=shift
20255 ;;
20256 esac
20257
20258 case $ac_option in
20259 # Handling of the options.
20260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20261 ac_cs_recheck=: ;;
20262 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20263 echo "$ac_cs_version"; exit ;;
20264 --debug | --debu | --deb | --de | --d | -d )
20265 debug=: ;;
20266 --file | --fil | --fi | --f )
20267 $ac_shift
20268 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20269 ac_need_defaults=false;;
20270 --header | --heade | --head | --hea )
20271 $ac_shift
20272 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20273 ac_need_defaults=false;;
20274 --he | --h)
20275 # Conflict between --help and --header
20276 { echo "$as_me: error: ambiguous option: $1
20277 Try \`$0 --help' for more information." >&2
20278 { (exit 1); exit 1; }; };;
20279 --help | --hel | -h )
20280 echo "$ac_cs_usage"; exit ;;
20281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20282 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20283 ac_cs_silent=: ;;
20284
20285 # This is an error.
20286 -*) { echo "$as_me: error: unrecognized option: $1
20287 Try \`$0 --help' for more information." >&2
20288 { (exit 1); exit 1; }; } ;;
20289
20290 *) ac_config_targets="$ac_config_targets $1"
20291 ac_need_defaults=false ;;
20292
20293 esac
20294 shift
20295 done
20296
20297 ac_configure_extra_args=
20298
20299 if $ac_cs_silent; then
20300 exec 6>/dev/null
20301 ac_configure_extra_args="$ac_configure_extra_args --silent"
20302 fi
20303
20304 _ACEOF
20305 cat >>$CONFIG_STATUS <<_ACEOF
20306 if \$ac_cs_recheck; then
20307 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20308 CONFIG_SHELL=$SHELL
20309 export CONFIG_SHELL
20310 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20311 fi
20312
20313 _ACEOF
20314 cat >>$CONFIG_STATUS <<\_ACEOF
20315 exec 5>>config.log
20316 {
20317 echo
20318 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20319 ## Running $as_me. ##
20320 _ASBOX
20321 echo "$ac_log"
20322 } >&5
20323
20324 _ACEOF
20325 cat >>$CONFIG_STATUS <<_ACEOF
20326 #
20327 # INIT-COMMANDS
20328 #
20329 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20330
20331 _ACEOF
20332
20333 cat >>$CONFIG_STATUS <<\_ACEOF
20334
20335 # Handling of arguments.
20336 for ac_config_target in $ac_config_targets
20337 do
20338 case $ac_config_target in
20339 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20340 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20341 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20342
20343 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20344 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20345 { (exit 1); exit 1; }; };;
20346 esac
20347 done
20348
20349
20350 # If the user did not use the arguments to specify the items to instantiate,
20351 # then the envvar interface is used. Set only those that are not.
20352 # We use the long form for the default assignment because of an extremely
20353 # bizarre bug on SunOS 4.1.3.
20354 if $ac_need_defaults; then
20355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20357 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20358 fi
20359
20360 # Have a temporary directory for convenience. Make it in the build tree
20361 # simply because there is no reason against having it here, and in addition,
20362 # creating and moving files from /tmp can sometimes cause problems.
20363 # Hook for its removal unless debugging.
20364 # Note that there is a small window in which the directory will not be cleaned:
20365 # after its creation but before its name has been assigned to `$tmp'.
20366 $debug ||
20367 {
20368 tmp=
20369 trap 'exit_status=$?
20370 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20371 ' 0
20372 trap '{ (exit 1); exit 1; }' 1 2 13 15
20373 }
20374 # Create a (secure) tmp directory for tmp files.
20375
20376 {
20377 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20378 test -n "$tmp" && test -d "$tmp"
20379 } ||
20380 {
20381 tmp=./conf$$-$RANDOM
20382 (umask 077 && mkdir "$tmp")
20383 } ||
20384 {
20385 echo "$me: cannot create a temporary directory in ." >&2
20386 { (exit 1); exit 1; }
20387 }
20388
20389 #
20390 # Set up the sed scripts for CONFIG_FILES section.
20391 #
20392
20393 # No need to generate the scripts if there are no CONFIG_FILES.
20394 # This happens for instance when ./config.status config.h
20395 if test -n "$CONFIG_FILES"; then
20396
20397 _ACEOF
20398
20399
20400
20401 ac_delim='%!_!# '
20402 for ac_last_try in false false false false false :; do
20403 cat >conf$$subs.sed <<_ACEOF
20404 SHELL!$SHELL$ac_delim
20405 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20406 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20407 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20408 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20409 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20410 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20411 exec_prefix!$exec_prefix$ac_delim
20412 prefix!$prefix$ac_delim
20413 program_transform_name!$program_transform_name$ac_delim
20414 bindir!$bindir$ac_delim
20415 sbindir!$sbindir$ac_delim
20416 libexecdir!$libexecdir$ac_delim
20417 datarootdir!$datarootdir$ac_delim
20418 datadir!$datadir$ac_delim
20419 sysconfdir!$sysconfdir$ac_delim
20420 sharedstatedir!$sharedstatedir$ac_delim
20421 localstatedir!$localstatedir$ac_delim
20422 includedir!$includedir$ac_delim
20423 oldincludedir!$oldincludedir$ac_delim
20424 docdir!$docdir$ac_delim
20425 infodir!$infodir$ac_delim
20426 htmldir!$htmldir$ac_delim
20427 dvidir!$dvidir$ac_delim
20428 pdfdir!$pdfdir$ac_delim
20429 psdir!$psdir$ac_delim
20430 libdir!$libdir$ac_delim
20431 localedir!$localedir$ac_delim
20432 mandir!$mandir$ac_delim
20433 DEFS!$DEFS$ac_delim
20434 ECHO_C!$ECHO_C$ac_delim
20435 ECHO_N!$ECHO_N$ac_delim
20436 ECHO_T!$ECHO_T$ac_delim
20437 LIBS!$LIBS$ac_delim
20438 build_alias!$build_alias$ac_delim
20439 host_alias!$host_alias$ac_delim
20440 target_alias!$target_alias$ac_delim
20441 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20442 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20443 INSTALL_DATA!$INSTALL_DATA$ac_delim
20444 am__isrc!$am__isrc$ac_delim
20445 CYGPATH_W!$CYGPATH_W$ac_delim
20446 PACKAGE!$PACKAGE$ac_delim
20447 VERSION!$VERSION$ac_delim
20448 ACLOCAL!$ACLOCAL$ac_delim
20449 AUTOCONF!$AUTOCONF$ac_delim
20450 AUTOMAKE!$AUTOMAKE$ac_delim
20451 AUTOHEADER!$AUTOHEADER$ac_delim
20452 MAKEINFO!$MAKEINFO$ac_delim
20453 install_sh!$install_sh$ac_delim
20454 STRIP!$STRIP$ac_delim
20455 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20456 mkdir_p!$mkdir_p$ac_delim
20457 AWK!$AWK$ac_delim
20458 SET_MAKE!$SET_MAKE$ac_delim
20459 am__leading_dot!$am__leading_dot$ac_delim
20460 AMTAR!$AMTAR$ac_delim
20461 am__tar!$am__tar$ac_delim
20462 am__untar!$am__untar$ac_delim
20463 LN_S!$LN_S$ac_delim
20464 CC!$CC$ac_delim
20465 CFLAGS!$CFLAGS$ac_delim
20466 LDFLAGS!$LDFLAGS$ac_delim
20467 CPPFLAGS!$CPPFLAGS$ac_delim
20468 ac_ct_CC!$ac_ct_CC$ac_delim
20469 EXEEXT!$EXEEXT$ac_delim
20470 OBJEXT!$OBJEXT$ac_delim
20471 DEPDIR!$DEPDIR$ac_delim
20472 am__include!$am__include$ac_delim
20473 am__quote!$am__quote$ac_delim
20474 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20475 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20476 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20477 CCDEPMODE!$CCDEPMODE$ac_delim
20478 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20479 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20480 build!$build$ac_delim
20481 build_cpu!$build_cpu$ac_delim
20482 build_vendor!$build_vendor$ac_delim
20483 build_os!$build_os$ac_delim
20484 host!$host$ac_delim
20485 host_cpu!$host_cpu$ac_delim
20486 host_vendor!$host_vendor$ac_delim
20487 host_os!$host_os$ac_delim
20488 SED!$SED$ac_delim
20489 GREP!$GREP$ac_delim
20490 EGREP!$EGREP$ac_delim
20491 ECHO!$ECHO$ac_delim
20492 AR!$AR$ac_delim
20493 RANLIB!$RANLIB$ac_delim
20494 CPP!$CPP$ac_delim
20495 CXX!$CXX$ac_delim
20496 CXXFLAGS!$CXXFLAGS$ac_delim
20497 ac_ct_CXX!$ac_ct_CXX$ac_delim
20498 CXXDEPMODE!$CXXDEPMODE$ac_delim
20499 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20500 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20501 _ACEOF
20502
20503 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20504 break
20505 elif $ac_last_try; then
20506 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20507 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20508 { (exit 1); exit 1; }; }
20509 else
20510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20511 fi
20512 done
20513
20514 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20515 if test -n "$ac_eof"; then
20516 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20517 ac_eof=`expr $ac_eof + 1`
20518 fi
20519
20520 cat >>$CONFIG_STATUS <<_ACEOF
20521 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20523 _ACEOF
20524 sed '
20525 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20526 s/^/s,@/; s/!/@,|#_!!_#|/
20527 :n
20528 t n
20529 s/'"$ac_delim"'$/,g/; t
20530 s/$/\\/; p
20531 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20532 ' >>$CONFIG_STATUS <conf$$subs.sed
20533 rm -f conf$$subs.sed
20534 cat >>$CONFIG_STATUS <<_ACEOF
20535 CEOF$ac_eof
20536 _ACEOF
20537
20538
20539 ac_delim='%!_!# '
20540 for ac_last_try in false false false false false :; do
20541 cat >conf$$subs.sed <<_ACEOF
20542 CXXCPP!$CXXCPP$ac_delim
20543 F77!$F77$ac_delim
20544 FFLAGS!$FFLAGS$ac_delim
20545 ac_ct_F77!$ac_ct_F77$ac_delim
20546 LIBTOOL!$LIBTOOL$ac_delim
20547 hashlibs!$hashlibs$ac_delim
20548 TESTPROGS!$TESTPROGS$ac_delim
20549 LIBOBJS!$LIBOBJS$ac_delim
20550 LTLIBOBJS!$LTLIBOBJS$ac_delim
20551 _ACEOF
20552
20553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
20554 break
20555 elif $ac_last_try; then
20556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20557 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20558 { (exit 1); exit 1; }; }
20559 else
20560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20561 fi
20562 done
20563
20564 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20565 if test -n "$ac_eof"; then
20566 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20567 ac_eof=`expr $ac_eof + 1`
20568 fi
20569
20570 cat >>$CONFIG_STATUS <<_ACEOF
20571 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20573 _ACEOF
20574 sed '
20575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20576 s/^/s,@/; s/!/@,|#_!!_#|/
20577 :n
20578 t n
20579 s/'"$ac_delim"'$/,g/; t
20580 s/$/\\/; p
20581 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20582 ' >>$CONFIG_STATUS <conf$$subs.sed
20583 rm -f conf$$subs.sed
20584 cat >>$CONFIG_STATUS <<_ACEOF
20585 :end
20586 s/|#_!!_#|//g
20587 CEOF$ac_eof
20588 _ACEOF
20589
20590
20591 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20592 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20593 # trailing colons and then remove the whole line if VPATH becomes empty
20594 # (actually we leave an empty line to preserve line numbers).
20595 if test "x$srcdir" = x.; then
20596 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20597 s/:*\$(srcdir):*/:/
20598 s/:*\${srcdir}:*/:/
20599 s/:*@srcdir@:*/:/
20600 s/^\([^=]*=[ ]*\):*/\1/
20601 s/:*$//
20602 s/^[^=]*=[ ]*$//
20603 }'
20604 fi
20605
20606 cat >>$CONFIG_STATUS <<\_ACEOF
20607 fi # test -n "$CONFIG_FILES"
20608
20609
20610 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20611 do
20612 case $ac_tag in
20613 :[FHLC]) ac_mode=$ac_tag; continue;;
20614 esac
20615 case $ac_mode$ac_tag in
20616 :[FHL]*:*);;
20617 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20618 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20619 { (exit 1); exit 1; }; };;
20620 :[FH]-) ac_tag=-:-;;
20621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20622 esac
20623 ac_save_IFS=$IFS
20624 IFS=:
20625 set x $ac_tag
20626 IFS=$ac_save_IFS
20627 shift
20628 ac_file=$1
20629 shift
20630
20631 case $ac_mode in
20632 :L) ac_source=$1;;
20633 :[FH])
20634 ac_file_inputs=
20635 for ac_f
20636 do
20637 case $ac_f in
20638 -) ac_f="$tmp/stdin";;
20639 *) # Look for the file first in the build tree, then in the source tree
20640 # (if the path is not absolute). The absolute path cannot be DOS-style,
20641 # because $ac_f cannot contain `:'.
20642 test -f "$ac_f" ||
20643 case $ac_f in
20644 [\\/$]*) false;;
20645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20646 esac ||
20647 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20648 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20649 { (exit 1); exit 1; }; };;
20650 esac
20651 ac_file_inputs="$ac_file_inputs $ac_f"
20652 done
20653
20654 # Let's still pretend it is `configure' which instantiates (i.e., don't
20655 # use $as_me), people would be surprised to read:
20656 # /* config.h. Generated by config.status. */
20657 configure_input="Generated from "`IFS=:
20658 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20659 if test x"$ac_file" != x-; then
20660 configure_input="$ac_file. $configure_input"
20661 { echo "$as_me:$LINENO: creating $ac_file" >&5
20662 echo "$as_me: creating $ac_file" >&6;}
20663 fi
20664
20665 case $ac_tag in
20666 *:-:* | *:-) cat >"$tmp/stdin";;
20667 esac
20668 ;;
20669 esac
20670
20671 ac_dir=`$as_dirname -- "$ac_file" ||
20672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20673 X"$ac_file" : 'X\(//\)[^/]' \| \
20674 X"$ac_file" : 'X\(//\)$' \| \
20675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20676 echo X"$ac_file" |
20677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20678 s//\1/
20679 q
20680 }
20681 /^X\(\/\/\)[^/].*/{
20682 s//\1/
20683 q
20684 }
20685 /^X\(\/\/\)$/{
20686 s//\1/
20687 q
20688 }
20689 /^X\(\/\).*/{
20690 s//\1/
20691 q
20692 }
20693 s/.*/./; q'`
20694 { as_dir="$ac_dir"
20695 case $as_dir in #(
20696 -*) as_dir=./$as_dir;;
20697 esac
20698 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20699 as_dirs=
20700 while :; do
20701 case $as_dir in #(
20702 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20703 *) as_qdir=$as_dir;;
20704 esac
20705 as_dirs="'$as_qdir' $as_dirs"
20706 as_dir=`$as_dirname -- "$as_dir" ||
20707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20708 X"$as_dir" : 'X\(//\)[^/]' \| \
20709 X"$as_dir" : 'X\(//\)$' \| \
20710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20711 echo X"$as_dir" |
20712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20713 s//\1/
20714 q
20715 }
20716 /^X\(\/\/\)[^/].*/{
20717 s//\1/
20718 q
20719 }
20720 /^X\(\/\/\)$/{
20721 s//\1/
20722 q
20723 }
20724 /^X\(\/\).*/{
20725 s//\1/
20726 q
20727 }
20728 s/.*/./; q'`
20729 test -d "$as_dir" && break
20730 done
20731 test -z "$as_dirs" || eval "mkdir $as_dirs"
20732 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20733 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20734 { (exit 1); exit 1; }; }; }
20735 ac_builddir=.
20736
20737 case "$ac_dir" in
20738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20739 *)
20740 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20741 # A ".." for each directory in $ac_dir_suffix.
20742 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20743 case $ac_top_builddir_sub in
20744 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20745 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20746 esac ;;
20747 esac
20748 ac_abs_top_builddir=$ac_pwd
20749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20750 # for backward compatibility:
20751 ac_top_builddir=$ac_top_build_prefix
20752
20753 case $srcdir in
20754 .) # We are building in place.
20755 ac_srcdir=.
20756 ac_top_srcdir=$ac_top_builddir_sub
20757 ac_abs_top_srcdir=$ac_pwd ;;
20758 [\\/]* | ?:[\\/]* ) # Absolute name.
20759 ac_srcdir=$srcdir$ac_dir_suffix;
20760 ac_top_srcdir=$srcdir
20761 ac_abs_top_srcdir=$srcdir ;;
20762 *) # Relative name.
20763 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20764 ac_top_srcdir=$ac_top_build_prefix$srcdir
20765 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20766 esac
20767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20768
20769
20770 case $ac_mode in
20771 :F)
20772 #
20773 # CONFIG_FILE
20774 #
20775
20776 case $INSTALL in
20777 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20778 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20779 esac
20780 ac_MKDIR_P=$MKDIR_P
20781 case $MKDIR_P in
20782 [\\/$]* | ?:[\\/]* ) ;;
20783 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20784 esac
20785 _ACEOF
20786
20787 cat >>$CONFIG_STATUS <<\_ACEOF
20788 # If the template does not know about datarootdir, expand it.
20789 # FIXME: This hack should be removed a few years after 2.60.
20790 ac_datarootdir_hack=; ac_datarootdir_seen=
20791
20792 case `sed -n '/datarootdir/ {
20793 p
20794 q
20795 }
20796 /@datadir@/p
20797 /@docdir@/p
20798 /@infodir@/p
20799 /@localedir@/p
20800 /@mandir@/p
20801 ' $ac_file_inputs` in
20802 *datarootdir*) ac_datarootdir_seen=yes;;
20803 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20804 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20805 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20806 _ACEOF
20807 cat >>$CONFIG_STATUS <<_ACEOF
20808 ac_datarootdir_hack='
20809 s&@datadir@&$datadir&g
20810 s&@docdir@&$docdir&g
20811 s&@infodir@&$infodir&g
20812 s&@localedir@&$localedir&g
20813 s&@mandir@&$mandir&g
20814 s&\\\${datarootdir}&$datarootdir&g' ;;
20815 esac
20816 _ACEOF
20817
20818 # Neutralize VPATH when `$srcdir' = `.'.
20819 # Shell code in configure.ac might set extrasub.
20820 # FIXME: do we really want to maintain this feature?
20821 cat >>$CONFIG_STATUS <<_ACEOF
20822 sed "$ac_vpsub
20823 $extrasub
20824 _ACEOF
20825 cat >>$CONFIG_STATUS <<\_ACEOF
20826 :t
20827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20828 s&@configure_input@&$configure_input&;t t
20829 s&@top_builddir@&$ac_top_builddir_sub&;t t
20830 s&@srcdir@&$ac_srcdir&;t t
20831 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20832 s&@top_srcdir@&$ac_top_srcdir&;t t
20833 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20834 s&@builddir@&$ac_builddir&;t t
20835 s&@abs_builddir@&$ac_abs_builddir&;t t
20836 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20837 s&@INSTALL@&$ac_INSTALL&;t t
20838 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20839 $ac_datarootdir_hack
20840 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20841
20842 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20843 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20844 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20845 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20846 which seems to be undefined. Please make sure it is defined." >&5
20847 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20848 which seems to be undefined. Please make sure it is defined." >&2;}
20849
20850 rm -f "$tmp/stdin"
20851 case $ac_file in
20852 -) cat "$tmp/out"; rm -f "$tmp/out";;
20853 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20854 esac
20855 ;;
20856 :H)
20857 #
20858 # CONFIG_HEADER
20859 #
20860 _ACEOF
20861
20862 # Transform confdefs.h into a sed script `conftest.defines', that
20863 # substitutes the proper values into config.h.in to produce config.h.
20864 rm -f conftest.defines conftest.tail
20865 # First, append a space to every undef/define line, to ease matching.
20866 echo 's/$/ /' >conftest.defines
20867 # Then, protect against being on the right side of a sed subst, or in
20868 # an unquoted here document, in config.status. If some macros were
20869 # called several times there might be several #defines for the same
20870 # symbol, which is useless. But do not sort them, since the last
20871 # AC_DEFINE must be honored.
20872 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20873 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20874 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20875 # PARAMS is the parameter list in the macro definition--in most cases, it's
20876 # just an empty string.
20877 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20878 ac_dB='\\)[ (].*,\\1define\\2'
20879 ac_dC=' '
20880 ac_dD=' ,'
20881
20882 uniq confdefs.h |
20883 sed -n '
20884 t rset
20885 :rset
20886 s/^[ ]*#[ ]*define[ ][ ]*//
20887 t ok
20888 d
20889 :ok
20890 s/[\\&,]/\\&/g
20891 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20892 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20893 ' >>conftest.defines
20894
20895 # Remove the space that was appended to ease matching.
20896 # Then replace #undef with comments. This is necessary, for
20897 # example, in the case of _POSIX_SOURCE, which is predefined and required
20898 # on some systems where configure will not decide to define it.
20899 # (The regexp can be short, since the line contains either #define or #undef.)
20900 echo 's/ $//
20901 s,^[ #]*u.*,/* & */,' >>conftest.defines
20902
20903 # Break up conftest.defines:
20904 ac_max_sed_lines=50
20905
20906 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20907 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20908 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20909 # et cetera.
20910 ac_in='$ac_file_inputs'
20911 ac_out='"$tmp/out1"'
20912 ac_nxt='"$tmp/out2"'
20913
20914 while :
20915 do
20916 # Write a here document:
20917 cat >>$CONFIG_STATUS <<_ACEOF
20918 # First, check the format of the line:
20919 cat >"\$tmp/defines.sed" <<\\CEOF
20920 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20921 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20922 b
20923 :def
20924 _ACEOF
20925 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20926 echo 'CEOF
20927 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20928 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20929 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20930 grep . conftest.tail >/dev/null || break
20931 rm -f conftest.defines
20932 mv conftest.tail conftest.defines
20933 done
20934 rm -f conftest.defines conftest.tail
20935
20936 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20937 cat >>$CONFIG_STATUS <<\_ACEOF
20938 if test x"$ac_file" != x-; then
20939 echo "/* $configure_input */" >"$tmp/config.h"
20940 cat "$ac_result" >>"$tmp/config.h"
20941 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20942 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20943 echo "$as_me: $ac_file is unchanged" >&6;}
20944 else
20945 rm -f $ac_file
20946 mv "$tmp/config.h" $ac_file
20947 fi
20948 else
20949 echo "/* $configure_input */"
20950 cat "$ac_result"
20951 fi
20952 rm -f "$tmp/out12"
20953 # Compute $ac_file's index in $config_headers.
20954 _am_stamp_count=1
20955 for _am_header in $config_headers :; do
20956 case $_am_header in
20957 $ac_file | $ac_file:* )
20958 break ;;
20959 * )
20960 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20961 esac
20962 done
20963 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20964 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20965 X$ac_file : 'X\(//\)[^/]' \| \
20966 X$ac_file : 'X\(//\)$' \| \
20967 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20968 echo X$ac_file |
20969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20970 s//\1/
20971 q
20972 }
20973 /^X\(\/\/\)[^/].*/{
20974 s//\1/
20975 q
20976 }
20977 /^X\(\/\/\)$/{
20978 s//\1/
20979 q
20980 }
20981 /^X\(\/\).*/{
20982 s//\1/
20983 q
20984 }
20985 s/.*/./; q'`/stamp-h$_am_stamp_count
20986 ;;
20987
20988 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20989 echo "$as_me: executing $ac_file commands" >&6;}
20990 ;;
20991 esac
20992
20993
20994 case $ac_file$ac_mode in
20995 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20996 # Strip MF so we end up with the name of the file.
20997 mf=`echo "$mf" | sed -e 's/:.*$//'`
20998 # Check whether this is an Automake generated Makefile or not.
20999 # We used to match only the files named `Makefile.in', but
21000 # some people rename them; so instead we look at the file content.
21001 # Grep'ing the first line is not enough: some people post-process
21002 # each Makefile.in and add a new line on top of each file to say so.
21003 # Grep'ing the whole file is not good either: AIX grep has a line
21004 # limit of 2048, but all sed's we know have understand at least 4000.
21005 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21006 dirpart=`$as_dirname -- "$mf" ||
21007 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21008 X"$mf" : 'X\(//\)[^/]' \| \
21009 X"$mf" : 'X\(//\)$' \| \
21010 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21011 echo X"$mf" |
21012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21013 s//\1/
21014 q
21015 }
21016 /^X\(\/\/\)[^/].*/{
21017 s//\1/
21018 q
21019 }
21020 /^X\(\/\/\)$/{
21021 s//\1/
21022 q
21023 }
21024 /^X\(\/\).*/{
21025 s//\1/
21026 q
21027 }
21028 s/.*/./; q'`
21029 else
21030 continue
21031 fi
21032 # Extract the definition of DEPDIR, am__include, and am__quote
21033 # from the Makefile without running `make'.
21034 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21035 test -z "$DEPDIR" && continue
21036 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21037 test -z "am__include" && continue
21038 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21039 # When using ansi2knr, U may be empty or an underscore; expand it
21040 U=`sed -n 's/^U = //p' < "$mf"`
21041 # Find all dependency output files, they are included files with
21042 # $(DEPDIR) in their names. We invoke sed twice because it is the
21043 # simplest approach to changing $(DEPDIR) to its actual value in the
21044 # expansion.
21045 for file in `sed -n "
21046 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21047 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21048 # Make sure the directory exists.
21049 test -f "$dirpart/$file" && continue
21050 fdir=`$as_dirname -- "$file" ||
21051 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21052 X"$file" : 'X\(//\)[^/]' \| \
21053 X"$file" : 'X\(//\)$' \| \
21054 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21055 echo X"$file" |
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'`
21073 { as_dir=$dirpart/$fdir
21074 case $as_dir in #(
21075 -*) as_dir=./$as_dir;;
21076 esac
21077 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21078 as_dirs=
21079 while :; do
21080 case $as_dir in #(
21081 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21082 *) as_qdir=$as_dir;;
21083 esac
21084 as_dirs="'$as_qdir' $as_dirs"
21085 as_dir=`$as_dirname -- "$as_dir" ||
21086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21087 X"$as_dir" : 'X\(//\)[^/]' \| \
21088 X"$as_dir" : 'X\(//\)$' \| \
21089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21090 echo X"$as_dir" |
21091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21092 s//\1/
21093 q
21094 }
21095 /^X\(\/\/\)[^/].*/{
21096 s//\1/
21097 q
21098 }
21099 /^X\(\/\/\)$/{
21100 s//\1/
21101 q
21102 }
21103 /^X\(\/\).*/{
21104 s//\1/
21105 q
21106 }
21107 s/.*/./; q'`
21108 test -d "$as_dir" && break
21109 done
21110 test -z "$as_dirs" || eval "mkdir $as_dirs"
21111 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21112 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21113 { (exit 1); exit 1; }; }; }
21114 # echo "creating $dirpart/$file"
21115 echo '# dummy' > "$dirpart/$file"
21116 done
21117 done
21118 ;;
21119
21120 esac
21121 done # for ac_tag
21122
21123
21124 { (exit 0); exit 0; }
21125 _ACEOF
21126 chmod +x $CONFIG_STATUS
21127 ac_clean_files=$ac_clean_files_save
21128
21129
21130 # configure is writing to config.log, and then calls config.status.
21131 # config.status does its own redirection, appending to config.log.
21132 # Unfortunately, on DOS this fails, as config.log is still kept open
21133 # by configure, so config.status won't be able to write to it; its
21134 # output is simply discarded. So we exec the FD to /dev/null,
21135 # effectively closing config.log, so it can be properly (re)opened and
21136 # appended to by config.status. When coming back to configure, we
21137 # need to make the FD available again.
21138 if test "$no_create" != yes; then
21139 ac_cs_success=:
21140 ac_config_status_args=
21141 test "$silent" = yes &&
21142 ac_config_status_args="$ac_config_status_args --quiet"
21143 exec 5>/dev/null
21144 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21145 exec 5>>config.log
21146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21147 # would make configure fail if this is the last instruction.
21148 $ac_cs_success || { (exit 1); exit 1; }
21149 fi
21150