Removed the newline from the messages sent
[simple_comm.git] / configure
blob3c8368763420f7ebfd8581cec8ea6fa8497bfed3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for simple-comm 0.1.
5 # Report bugs to <ahmed.badran@gmail.com>.
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 ## --------------------- ##
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
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
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=:
52 rm -f conf$$.sh
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
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='
70 IFS=" "" $as_nl"
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
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
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
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; }
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='+ '
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
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
115 done
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
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
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/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
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
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
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
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
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
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
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
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
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
335 _ASEOF
336 }; then
337 break
342 done
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+"$@"}
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; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
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
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" || {
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 '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
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; }; }
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
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
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;;
482 ECHO_N='-n';;
483 esac
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
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
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'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
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
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=
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
544 as_executable_p=$as_test_x
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'"
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'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
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','`
563 esac
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
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
586 exit 0
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
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
604 done
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
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'
616 # So, first we look for a working echo in the user's PATH.
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
628 done
629 IFS="$lt_save_ifs"
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
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=:
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
677 prev="$cmd"
678 done
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
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"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
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`
716 # Initializations.
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}
728 # Identity of this package.
729 PACKAGE_NAME='simple-comm'
730 PACKAGE_TARNAME='simple-comm'
731 PACKAGE_VERSION='0.1'
732 PACKAGE_STRING='simple-comm 0.1'
733 PACKAGE_BUGREPORT='ahmed.badran@gmail.com'
735 ac_unique_file="src/conn.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"
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
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
832 CXXFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CXX
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CXXDEPMODE
845 am__fastdepCXX_TRUE
846 am__fastdepCXX_FALSE
848 CFLAGS
849 ac_ct_CC
850 CCDEPMODE
851 am__fastdepCC_TRUE
852 am__fastdepCC_FALSE
853 build
854 build_cpu
855 build_vendor
856 build_os
857 host
858 host_cpu
859 host_vendor
860 host_os
862 GREP
863 EGREP
864 LN_S
865 ECHO
867 RANLIB
868 DSYMUTIL
869 NMEDIT
871 CXXCPP
873 FFLAGS
874 ac_ct_F77
875 LIBTOOL
876 LIBOBJS
877 LTLIBOBJS'
878 ac_subst_files=''
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
883 CXXFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
889 CFLAGS
891 CXXCPP
893 FFLAGS'
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
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'
942 ac_prev=
943 ac_dashdash=
944 for ac_option
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
953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
958 # Accept the important Cygnus configure options, so we can diagnose typos.
960 case $ac_dashdash$ac_option in
962 ac_dashdash=yes ;;
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
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 ;;
981 --config-cache | -C)
982 cache_file=config.cache ;;
984 -datadir | --datadir | --datadi | --datad)
985 ac_prev=datadir ;;
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
987 datadir=$ac_optarg ;;
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 ;;
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 ;;
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
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 ;;
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 ;;
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
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 ;;
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
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 ;;
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 ;;
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
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 ;;
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
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 ;;
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
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 ;;
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 ;;
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
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 ;;
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 ;;
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
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 ;;
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 ;;
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
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 ;;
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 ;;
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
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 ;;
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 ;;
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
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 ;;
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}
1270 esac
1271 done
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; }; }
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
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
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
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
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315 test "$silent" = yes && exec 6>/dev/null
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; }; }
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/
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1346 /^X\(\/\/\)$/{
1347 s//\1/
1350 /^X\(\/\).*/{
1351 s//\1/
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1359 else
1360 ac_srcdir_defaulted=no
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; }; }
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=.
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
1390 # Report the --help message.
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 simple-comm 0.1 to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1403 Defaults for the options are specified in brackets.
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 \`..']
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]
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'.
1427 For better control, use the options below.
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/simple-comm]
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
1451 cat <<\_ACEOF
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
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
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of simple-comm 0.1:";;
1467 esac
1468 cat <<\_ACEOF
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)
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]
1489 Some influential environment variables:
1490 CXX C++ compiler command
1491 CXXFLAGS 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 CC C compiler command
1498 CFLAGS C compiler flags
1499 CPP C preprocessor
1500 CXXCPP C++ preprocessor
1501 F77 Fortran 77 compiler command
1502 FFLAGS Fortran 77 compiler flags
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.
1507 Report bugs to <ahmed.badran@gmail.com>.
1508 _ACEOF
1509 ac_status=$?
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=.
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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
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
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
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 simple-comm configure 0.1
1569 generated by GNU Autoconf 2.61
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
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.
1582 It was created by simple-comm $as_me 0.1, which was
1583 generated by GNU Autoconf 2.61. Invocation command line was
1585 $ $0 $@
1587 _ACEOF
1588 exec 5>>config.log
1590 cat <<_ASUNAME
1591 ## --------- ##
1592 ## Platform. ##
1593 ## --------- ##
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`
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`
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`
1612 _ASUNAME
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1620 done
1621 IFS=$as_save_IFS
1623 } >&5
1625 cat >&5 <<_ACEOF
1628 ## ----------- ##
1629 ## Core tests. ##
1630 ## ----------- ##
1632 _ACEOF
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
1646 for ac_arg
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'" ;;
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
1672 -* ) ac_must_keep_next=true ;;
1673 esac
1675 ac_configure_args="$ac_configure_args '$ac_arg'"
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; }
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.
1691 echo
1693 cat <<\_ASBOX
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1697 _ASBOX
1698 echo
1699 # The following way of writing the cache mishandles newlines in values,
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 ;; #(
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 esac |
1726 sort
1728 echo
1730 cat <<\_ASBOX
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1734 _ASBOX
1735 echo
1736 for ac_var in $ac_subst_vars
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
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
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
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
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
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
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 _ACEOF
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 _ACEOF
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 _ACEOF
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 _ACEOF
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 _ACEOF
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"
1827 shift
1828 for ac_site_file
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"
1836 done
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
1849 else
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1852 >$cache_file
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 ,);;
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
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; }; }
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
1935 am__api_version='1.10'
1937 ac_aux_dir=
1938 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1939 if test -f "$ac_dir/install-sh"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 break
1943 elif 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/shtool"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 break
1952 done
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 # Find a good install program. We prefer a C program (faster),
1969 # so one script is as good as another. But avoid the broken or
1970 # incompatible versions:
1971 # SysV /etc/install, /usr/sbin/install
1972 # SunOS /usr/etc/install
1973 # IRIX /sbin/install
1974 # AIX /bin/install
1975 # AmigaOS /C/install, which installs bootblocks on floppy discs
1976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1979 # OS/2's system install, which has a completely different semantic
1980 # ./install, which can be erroneously created by make from ./install.sh.
1981 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1982 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1983 if test -z "$INSTALL"; then
1984 if test "${ac_cv_path_install+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 # Account for people who put trailing slashes in PATH elements.
1993 case $as_dir/ in
1994 ./ | .// | /cC/* | \
1995 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1996 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1997 /usr/ucb/* ) ;;
1999 # OSF1 and SCO ODT 3.0 have their own names for install.
2000 # Don't use installbsd from OSF since it installs stuff as root
2001 # by default.
2002 for ac_prog in ginstall scoinst install; do
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2005 if test $ac_prog = install &&
2006 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2007 # AIX install. It has an incompatible calling convention.
2009 elif test $ac_prog = install &&
2010 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # program-specific install script used by HP pwplus--don't use.
2013 else
2014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2015 break 3
2018 done
2019 done
2021 esac
2022 done
2023 IFS=$as_save_IFS
2027 if test "${ac_cv_path_install+set}" = set; then
2028 INSTALL=$ac_cv_path_install
2029 else
2030 # As a last resort, use the slow shell script. Don't cache a
2031 # value for INSTALL within a source directory, because that will
2032 # break other packages using the cache if that directory is
2033 # removed, or if the value is a relative name.
2034 INSTALL=$ac_install_sh
2037 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2038 echo "${ECHO_T}$INSTALL" >&6; }
2040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2041 # It thinks the first close brace ends the variable substitution.
2042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2046 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2048 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2049 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2050 # Just in case
2051 sleep 1
2052 echo timestamp > conftest.file
2053 # Do `set' in a subshell so we don't clobber the current shell's
2054 # arguments. Must try -L first in case configure is actually a
2055 # symlink; some systems play weird games with the mod time of symlinks
2056 # (eg FreeBSD returns the mod time of the symlink's containing
2057 # directory).
2058 if (
2059 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2060 if test "$*" = "X"; then
2061 # -L didn't work.
2062 set X `ls -t $srcdir/configure conftest.file`
2064 rm -f conftest.file
2065 if test "$*" != "X $srcdir/configure conftest.file" \
2066 && test "$*" != "X conftest.file $srcdir/configure"; then
2068 # If neither matched, then we have a broken ls. This can happen
2069 # if, for instance, CONFIG_SHELL is bash and it inherits a
2070 # broken ls alias from the environment. This has actually
2071 # happened. Such a system could not be considered "sane".
2072 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2073 alias in your environment" >&5
2074 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2075 alias in your environment" >&2;}
2076 { (exit 1); exit 1; }; }
2079 test "$2" = conftest.file
2081 then
2082 # Ok.
2084 else
2085 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2086 Check your system clock" >&5
2087 echo "$as_me: error: newly created file is older than distributed files!
2088 Check your system clock" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: result: yes" >&5
2092 echo "${ECHO_T}yes" >&6; }
2093 test "$program_prefix" != NONE &&
2094 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2095 # Use a double $ so make ignores it.
2096 test "$program_suffix" != NONE &&
2097 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2098 # Double any \ or $. echo might interpret backslashes.
2099 # By default was `s,x,x', remove it if useless.
2100 cat <<\_ACEOF >conftest.sed
2101 s/[\\$]/&&/g;s/;s,x,x,$//
2102 _ACEOF
2103 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2104 rm -f conftest.sed
2106 # expand $ac_aux_dir to an absolute path
2107 am_aux_dir=`cd $ac_aux_dir && pwd`
2109 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2110 # Use eval to expand $SHELL
2111 if eval "$MISSING --run true"; then
2112 am_missing_run="$MISSING --run "
2113 else
2114 am_missing_run=
2115 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2116 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2119 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2120 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2121 if test -z "$MKDIR_P"; then
2122 if test "${ac_cv_path_mkdir+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 for ac_prog in mkdir gmkdir; do
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2133 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2134 'mkdir (GNU coreutils) '* | \
2135 'mkdir (coreutils) '* | \
2136 'mkdir (fileutils) '4.1*)
2137 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2138 break 3;;
2139 esac
2140 done
2141 done
2142 done
2143 IFS=$as_save_IFS
2147 if test "${ac_cv_path_mkdir+set}" = set; then
2148 MKDIR_P="$ac_cv_path_mkdir -p"
2149 else
2150 # As a last resort, use the slow shell script. Don't cache a
2151 # value for MKDIR_P within a source directory, because that will
2152 # break other packages using the cache if that directory is
2153 # removed, or if the value is a relative name.
2154 test -d ./--version && rmdir ./--version
2155 MKDIR_P="$ac_install_sh -d"
2158 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2159 echo "${ECHO_T}$MKDIR_P" >&6; }
2161 mkdir_p="$MKDIR_P"
2162 case $mkdir_p in
2163 [\\/$]* | ?:[\\/]*) ;;
2164 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2165 esac
2167 for ac_prog in gawk mawk nawk awk
2169 # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy $ac_prog; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_AWK+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$AWK"; then
2177 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_AWK="$ac_prog"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188 break 2
2190 done
2191 done
2192 IFS=$as_save_IFS
2196 AWK=$ac_cv_prog_AWK
2197 if test -n "$AWK"; then
2198 { echo "$as_me:$LINENO: result: $AWK" >&5
2199 echo "${ECHO_T}$AWK" >&6; }
2200 else
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2206 test -n "$AWK" && break
2207 done
2209 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2210 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2211 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2212 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 cat >conftest.make <<\_ACEOF
2216 SHELL = /bin/sh
2217 all:
2218 @echo '@@@%%%=$(MAKE)=@@@%%%'
2219 _ACEOF
2220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2222 *@@@%%%=?*=@@@%%%*)
2223 eval ac_cv_prog_make_${ac_make}_set=yes;;
2225 eval ac_cv_prog_make_${ac_make}_set=no;;
2226 esac
2227 rm -f conftest.make
2229 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2230 { echo "$as_me:$LINENO: result: yes" >&5
2231 echo "${ECHO_T}yes" >&6; }
2232 SET_MAKE=
2233 else
2234 { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2236 SET_MAKE="MAKE=${MAKE-make}"
2239 rm -rf .tst 2>/dev/null
2240 mkdir .tst 2>/dev/null
2241 if test -d .tst; then
2242 am__leading_dot=.
2243 else
2244 am__leading_dot=_
2246 rmdir .tst 2>/dev/null
2248 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2249 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2250 # is not polluted with repeated "-I."
2251 am__isrc=' -I$(srcdir)'
2252 # test to see if srcdir already configured
2253 if test -f $srcdir/config.status; then
2254 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2255 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2256 { (exit 1); exit 1; }; }
2260 # test whether we have cygpath
2261 if test -z "$CYGPATH_W"; then
2262 if (cygpath --version) >/dev/null 2>/dev/null; then
2263 CYGPATH_W='cygpath -w'
2264 else
2265 CYGPATH_W=echo
2270 # Define the identity of the package.
2271 PACKAGE=simple-comm
2272 VERSION=0.1
2275 # Some tools Automake needs.
2277 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2280 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2283 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2286 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2289 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2291 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2293 # Installed binaries are usually stripped using `strip' when the user
2294 # run `make install-strip'. However `strip' might not be the right
2295 # tool to use in cross-compilation environments, therefore Automake
2296 # will honor the `STRIP' environment variable to overrule this program.
2297 if test "$cross_compiling" != no; then
2298 if test -n "$ac_tool_prefix"; then
2299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2300 set dummy ${ac_tool_prefix}strip; ac_word=$2
2301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2303 if test "${ac_cv_prog_STRIP+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306 if test -n "$STRIP"; then
2307 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2320 done
2321 done
2322 IFS=$as_save_IFS
2326 STRIP=$ac_cv_prog_STRIP
2327 if test -n "$STRIP"; then
2328 { echo "$as_me:$LINENO: result: $STRIP" >&5
2329 echo "${ECHO_T}$STRIP" >&6; }
2330 else
2331 { echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6; }
2337 if test -z "$ac_cv_prog_STRIP"; then
2338 ac_ct_STRIP=$STRIP
2339 # Extract the first word of "strip", so it can be a program name with args.
2340 set dummy strip; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346 if test -n "$ac_ct_STRIP"; then
2347 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_ac_ct_STRIP="strip"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 break 2
2360 done
2361 done
2362 IFS=$as_save_IFS
2366 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2367 if test -n "$ac_ct_STRIP"; then
2368 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2369 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2370 else
2371 { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2375 if test "x$ac_ct_STRIP" = x; then
2376 STRIP=":"
2377 else
2378 case $cross_compiling:$ac_tool_warned in
2379 yes:)
2380 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2381 whose name does not start with the host triplet. If you think this
2382 configuration is useful to you, please write to autoconf@gnu.org." >&5
2383 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2384 whose name does not start with the host triplet. If you think this
2385 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2386 ac_tool_warned=yes ;;
2387 esac
2388 STRIP=$ac_ct_STRIP
2390 else
2391 STRIP="$ac_cv_prog_STRIP"
2395 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2397 # We need awk for the "check" target. The system "awk" is bad on
2398 # some platforms.
2399 # Always define AMTAR for backward compatibility.
2401 AMTAR=${AMTAR-"${am_missing_run}tar"}
2403 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2410 ac_config_headers="$ac_config_headers src/config.h"
2413 # Checks for programs.
2414 ac_ext=cpp
2415 ac_cpp='$CXXCPP $CPPFLAGS'
2416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2419 if test -z "$CXX"; then
2420 if test -n "$CCC"; then
2421 CXX=$CCC
2422 else
2423 if test -n "$ac_tool_prefix"; then
2424 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CXX+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433 if test -n "$CXX"; then
2434 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2447 done
2448 done
2449 IFS=$as_save_IFS
2453 CXX=$ac_cv_prog_CXX
2454 if test -n "$CXX"; then
2455 { echo "$as_me:$LINENO: result: $CXX" >&5
2456 echo "${ECHO_T}$CXX" >&6; }
2457 else
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2463 test -n "$CXX" && break
2464 done
2466 if test -z "$CXX"; then
2467 ac_ct_CXX=$CXX
2468 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2470 # Extract the first word of "$ac_prog", so it can be a program name with args.
2471 set dummy $ac_prog; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$ac_ct_CXX"; then
2478 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_CXX="$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2491 done
2492 done
2493 IFS=$as_save_IFS
2497 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2498 if test -n "$ac_ct_CXX"; then
2499 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2500 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2501 else
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2507 test -n "$ac_ct_CXX" && break
2508 done
2510 if test "x$ac_ct_CXX" = x; then
2511 CXX="g++"
2512 else
2513 case $cross_compiling:$ac_tool_warned in
2514 yes:)
2515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2516 whose name does not start with the host triplet. If you think this
2517 configuration is useful to you, please write to autoconf@gnu.org." >&5
2518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2519 whose name does not start with the host triplet. If you think this
2520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2521 ac_tool_warned=yes ;;
2522 esac
2523 CXX=$ac_ct_CXX
2529 # Provide some information about the compiler.
2530 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2531 ac_compiler=`set X $ac_compile; echo $2`
2532 { (ac_try="$ac_compiler --version >&5"
2533 case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_compiler --version >&5") 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }
2542 { (ac_try="$ac_compiler -v >&5"
2543 case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2546 esac
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_compiler -v >&5") 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }
2552 { (ac_try="$ac_compiler -V >&5"
2553 case "(($ac_try" in
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2556 esac
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558 (eval "$ac_compiler -V >&5") 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }
2563 cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2571 main ()
2575 return 0;
2577 _ACEOF
2578 ac_clean_files_save=$ac_clean_files
2579 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2580 # Try to create an executable without -o first, disregard a.out.
2581 # It will help us diagnose broken compilers, and finding out an intuition
2582 # of exeext.
2583 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2584 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2585 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2587 # List of possible output files, starting from the most likely.
2588 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2589 # only as a last resort. b.out is created by i960 compilers.
2590 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2592 # The IRIX 6 linker writes into existing files which may not be
2593 # executable, retaining their permissions. Remove them first so a
2594 # subsequent execution test works.
2595 ac_rmfiles=
2596 for ac_file in $ac_files
2598 case $ac_file in
2599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2600 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2601 esac
2602 done
2603 rm -f $ac_rmfiles
2605 if { (ac_try="$ac_link_default"
2606 case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_link_default") 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; then
2615 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2616 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2617 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2618 # so that the user can short-circuit this test for compilers unknown to
2619 # Autoconf.
2620 for ac_file in $ac_files ''
2622 test -f "$ac_file" || continue
2623 case $ac_file in
2624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2626 [ab].out )
2627 # We found the default executable, but exeext='' is most
2628 # certainly right.
2629 break;;
2630 *.* )
2631 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2632 then :; else
2633 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2635 # We set ac_cv_exeext here because the later test for it is not
2636 # safe: cross compilers may not add the suffix if given an `-o'
2637 # argument, so we may need to know it at that point already.
2638 # Even if this section looks crufty: it has the advantage of
2639 # actually working.
2640 break;;
2642 break;;
2643 esac
2644 done
2645 test "$ac_cv_exeext" = no && ac_cv_exeext=
2647 else
2648 ac_file=''
2651 { echo "$as_me:$LINENO: result: $ac_file" >&5
2652 echo "${ECHO_T}$ac_file" >&6; }
2653 if test -z "$ac_file"; then
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: C++ compiler cannot create executables
2660 See \`config.log' for more details." >&2;}
2661 { (exit 77); exit 77; }; }
2664 ac_exeext=$ac_cv_exeext
2666 # Check that the compiler produces executables we can run. If not, either
2667 # the compiler is broken, or we cross compile.
2668 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2669 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2670 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2671 # If not cross compiling, check that we can run a simple program.
2672 if test "$cross_compiling" != yes; then
2673 if { ac_try='./$ac_file'
2674 { (case "(($ac_try" in
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_try") 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2683 cross_compiling=no
2684 else
2685 if test "$cross_compiling" = maybe; then
2686 cross_compiling=yes
2687 else
2688 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2689 If you meant to cross compile, use \`--host'.
2690 See \`config.log' for more details." >&5
2691 echo "$as_me: error: cannot run C++ compiled programs.
2692 If you meant to cross compile, use \`--host'.
2693 See \`config.log' for more details." >&2;}
2694 { (exit 1); exit 1; }; }
2698 { echo "$as_me:$LINENO: result: yes" >&5
2699 echo "${ECHO_T}yes" >&6; }
2701 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2702 ac_clean_files=$ac_clean_files_save
2703 # Check that the compiler produces executables we can run. If not, either
2704 # the compiler is broken, or we cross compile.
2705 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2706 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2707 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2708 echo "${ECHO_T}$cross_compiling" >&6; }
2710 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2711 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2712 if { (ac_try="$ac_link"
2713 case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_link") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; then
2722 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2723 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2724 # work properly (i.e., refer to `conftest.exe'), while it won't with
2725 # `rm'.
2726 for ac_file in conftest.exe conftest conftest.*; do
2727 test -f "$ac_file" || continue
2728 case $ac_file in
2729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2730 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2731 break;;
2732 * ) break;;
2733 esac
2734 done
2735 else
2736 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2743 rm -f conftest$ac_cv_exeext
2744 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2745 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2747 rm -f conftest.$ac_ext
2748 EXEEXT=$ac_cv_exeext
2749 ac_exeext=$EXEEXT
2750 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2751 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2752 if test "${ac_cv_objext+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h. */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2763 main ()
2767 return 0;
2769 _ACEOF
2770 rm -f conftest.o conftest.obj
2771 if { (ac_try="$ac_compile"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; then
2781 for ac_file in conftest.o conftest.obj conftest.*; do
2782 test -f "$ac_file" || continue;
2783 case $ac_file in
2784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2785 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2786 break;;
2787 esac
2788 done
2789 else
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2793 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2794 See \`config.log' for more details." >&5
2795 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2796 See \`config.log' for more details." >&2;}
2797 { (exit 1); exit 1; }; }
2800 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2802 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2803 echo "${ECHO_T}$ac_cv_objext" >&6; }
2804 OBJEXT=$ac_cv_objext
2805 ac_objext=$OBJEXT
2806 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2807 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2808 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 cat >conftest.$ac_ext <<_ACEOF
2812 /* confdefs.h. */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h. */
2819 main ()
2821 #ifndef __GNUC__
2822 choke me
2823 #endif
2826 return 0;
2828 _ACEOF
2829 rm -f conftest.$ac_objext
2830 if { (ac_try="$ac_compile"
2831 case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834 esac
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_compile") 2>conftest.er1
2837 ac_status=$?
2838 grep -v '^ *+' conftest.er1 >conftest.err
2839 rm -f conftest.er1
2840 cat conftest.err >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } && {
2843 test -z "$ac_cxx_werror_flag" ||
2844 test ! -s conftest.err
2845 } && test -s conftest.$ac_objext; then
2846 ac_compiler_gnu=yes
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2851 ac_compiler_gnu=no
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2858 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2859 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2860 GXX=`test $ac_compiler_gnu = yes && echo yes`
2861 ac_test_CXXFLAGS=${CXXFLAGS+set}
2862 ac_save_CXXFLAGS=$CXXFLAGS
2863 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2864 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_cxx_g+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2869 ac_cxx_werror_flag=yes
2870 ac_cv_prog_cxx_g=no
2871 CXXFLAGS="-g"
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2880 main ()
2884 return 0;
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (ac_try="$ac_compile"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compile") 2>conftest.er1
2895 ac_status=$?
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } && {
2901 test -z "$ac_cxx_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
2904 ac_cv_prog_cxx_g=yes
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 CXXFLAGS=""
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2918 main ()
2922 return 0;
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (ac_try="$ac_compile"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compile") 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } && {
2939 test -z "$ac_cxx_werror_flag" ||
2940 test ! -s conftest.err
2941 } && test -s conftest.$ac_objext; then
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2948 CXXFLAGS="-g"
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2957 main ()
2961 return 0;
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_compile") 2>conftest.er1
2972 ac_status=$?
2973 grep -v '^ *+' conftest.er1 >conftest.err
2974 rm -f conftest.er1
2975 cat conftest.err >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } && {
2978 test -z "$ac_cxx_werror_flag" ||
2979 test ! -s conftest.err
2980 } && test -s conftest.$ac_objext; then
2981 ac_cv_prog_cxx_g=yes
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2998 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2999 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3000 if test "$ac_test_CXXFLAGS" = set; then
3001 CXXFLAGS=$ac_save_CXXFLAGS
3002 elif test $ac_cv_prog_cxx_g = yes; then
3003 if test "$GXX" = yes; then
3004 CXXFLAGS="-g -O2"
3005 else
3006 CXXFLAGS="-g"
3008 else
3009 if test "$GXX" = yes; then
3010 CXXFLAGS="-O2"
3011 else
3012 CXXFLAGS=
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 DEPDIR="${am__leading_dot}deps"
3022 ac_config_commands="$ac_config_commands depfiles"
3025 am_make=${MAKE-make}
3026 cat > confinc << 'END'
3027 am__doit:
3028 @echo done
3029 .PHONY: am__doit
3031 # If we don't find an include directive, just comment out the code.
3032 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3033 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3034 am__include="#"
3035 am__quote=
3036 _am_result=none
3037 # First try GNU make style include.
3038 echo "include confinc" > confmf
3039 # We grep out `Entering directory' and `Leaving directory'
3040 # messages which can occur if `w' ends up in MAKEFLAGS.
3041 # In particular we don't look at `^make:' because GNU make might
3042 # be invoked under some other name (usually "gmake"), in which
3043 # case it prints its new name instead of `make'.
3044 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3045 am__include=include
3046 am__quote=
3047 _am_result=GNU
3049 # Now try BSD make style include.
3050 if test "$am__include" = "#"; then
3051 echo '.include "confinc"' > confmf
3052 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3053 am__include=.include
3054 am__quote="\""
3055 _am_result=BSD
3060 { echo "$as_me:$LINENO: result: $_am_result" >&5
3061 echo "${ECHO_T}$_am_result" >&6; }
3062 rm -f confinc confmf
3064 # Check whether --enable-dependency-tracking was given.
3065 if test "${enable_dependency_tracking+set}" = set; then
3066 enableval=$enable_dependency_tracking;
3069 if test "x$enable_dependency_tracking" != xno; then
3070 am_depcomp="$ac_aux_dir/depcomp"
3071 AMDEPBACKSLASH='\'
3073 if test "x$enable_dependency_tracking" != xno; then
3074 AMDEP_TRUE=
3075 AMDEP_FALSE='#'
3076 else
3077 AMDEP_TRUE='#'
3078 AMDEP_FALSE=
3083 depcc="$CXX" am_compiler_list=
3085 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3086 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3087 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3091 # We make a subdir and do the tests there. Otherwise we can end up
3092 # making bogus files that we don't know about and never remove. For
3093 # instance it was reported that on HP-UX the gcc test will end up
3094 # making a dummy file named `D' -- because `-MD' means `put the output
3095 # in D'.
3096 mkdir conftest.dir
3097 # Copy depcomp to subdir because otherwise we won't find it if we're
3098 # using a relative directory.
3099 cp "$am_depcomp" conftest.dir
3100 cd conftest.dir
3101 # We will build objects and dependencies in a subdirectory because
3102 # it helps to detect inapplicable dependency modes. For instance
3103 # both Tru64's cc and ICC support -MD to output dependencies as a
3104 # side effect of compilation, but ICC will put the dependencies in
3105 # the current directory while Tru64 will put them in the object
3106 # directory.
3107 mkdir sub
3109 am_cv_CXX_dependencies_compiler_type=none
3110 if test "$am_compiler_list" = ""; then
3111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3113 for depmode in $am_compiler_list; do
3114 # Setup a source with many dependencies, because some compilers
3115 # like to wrap large dependency lists on column 80 (with \), and
3116 # we should not choose a depcomp mode which is confused by this.
3118 # We need to recreate these files for each test, as the compiler may
3119 # overwrite some of them when testing with obscure command lines.
3120 # This happens at least with the AIX C compiler.
3121 : > sub/conftest.c
3122 for i in 1 2 3 4 5 6; do
3123 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3124 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3125 # Solaris 8's {/usr,}/bin/sh.
3126 touch sub/conftst$i.h
3127 done
3128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3130 case $depmode in
3131 nosideeffect)
3132 # after this tag, mechanisms are not by side-effect, so they'll
3133 # only be used when explicitly requested
3134 if test "x$enable_dependency_tracking" = xyes; then
3135 continue
3136 else
3137 break
3140 none) break ;;
3141 esac
3142 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3143 # mode. It turns out that the SunPro C++ compiler does not properly
3144 # handle `-M -o', and we need to detect this.
3145 if depmode=$depmode \
3146 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3148 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3149 >/dev/null 2>conftest.err &&
3150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3152 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3154 # icc doesn't choke on unknown options, it will just issue warnings
3155 # or remarks (even with -Werror). So we grep stderr for any message
3156 # that says an option was ignored or not supported.
3157 # When given -MP, icc 7.0 and 7.1 complain thusly:
3158 # icc: Command line warning: ignoring option '-M'; no argument required
3159 # The diagnosis changed in icc 8.0:
3160 # icc: Command line remark: option '-MP' not supported
3161 if (grep 'ignoring option' conftest.err ||
3162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3163 am_cv_CXX_dependencies_compiler_type=$depmode
3164 break
3167 done
3169 cd ..
3170 rm -rf conftest.dir
3171 else
3172 am_cv_CXX_dependencies_compiler_type=none
3176 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3177 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3178 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3181 test "x$enable_dependency_tracking" != xno \
3182 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3183 am__fastdepCXX_TRUE=
3184 am__fastdepCXX_FALSE='#'
3185 else
3186 am__fastdepCXX_TRUE='#'
3187 am__fastdepCXX_FALSE=
3191 ac_ext=c
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 if test -n "$ac_tool_prefix"; then
3197 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3201 if test "${ac_cv_prog_CC+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 if test -n "$CC"; then
3205 ac_cv_prog_CC="$CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3218 done
3219 done
3220 IFS=$as_save_IFS
3224 CC=$ac_cv_prog_CC
3225 if test -n "$CC"; then
3226 { echo "$as_me:$LINENO: result: $CC" >&5
3227 echo "${ECHO_T}$CC" >&6; }
3228 else
3229 { echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6; }
3235 if test -z "$ac_cv_prog_CC"; then
3236 ac_ct_CC=$CC
3237 # Extract the first word of "gcc", so it can be a program name with args.
3238 set dummy gcc; ac_word=$2
3239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_ac_ct_CC="gcc"
3255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3258 done
3259 done
3260 IFS=$as_save_IFS
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3267 echo "${ECHO_T}$ac_ct_CC" >&6; }
3268 else
3269 { echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6; }
3273 if test "x$ac_ct_CC" = x; then
3274 CC=""
3275 else
3276 case $cross_compiling:$ac_tool_warned in
3277 yes:)
3278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3279 whose name does not start with the host triplet. If you think this
3280 configuration is useful to you, please write to autoconf@gnu.org." >&5
3281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3282 whose name does not start with the host triplet. If you think this
3283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3284 ac_tool_warned=yes ;;
3285 esac
3286 CC=$ac_ct_CC
3288 else
3289 CC="$ac_cv_prog_CC"
3292 if test -z "$CC"; then
3293 if test -n "$ac_tool_prefix"; then
3294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3295 set dummy ${ac_tool_prefix}cc; ac_word=$2
3296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3298 if test "${ac_cv_prog_CC+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC="$CC" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311 ac_cv_prog_CC="${ac_tool_prefix}cc"
3312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3315 done
3316 done
3317 IFS=$as_save_IFS
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323 { echo "$as_me:$LINENO: result: $CC" >&5
3324 echo "${ECHO_T}$CC" >&6; }
3325 else
3326 { echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6; }
3333 if test -z "$CC"; then
3334 # Extract the first word of "cc", so it can be a program name with args.
3335 set dummy cc; ac_word=$2
3336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3338 if test "${ac_cv_prog_CC+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 ac_prog_rejected=no
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3353 ac_prog_rejected=yes
3354 continue
3356 ac_cv_prog_CC="cc"
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3360 done
3361 done
3362 IFS=$as_save_IFS
3364 if test $ac_prog_rejected = yes; then
3365 # We found a bogon in the path, so make sure we never use it.
3366 set dummy $ac_cv_prog_CC
3367 shift
3368 if test $# != 0; then
3369 # We chose a different compiler from the bogus one.
3370 # However, it has the same basename, so the bogon will be chosen
3371 # first if we set CC to just the basename; use the full file name.
3372 shift
3373 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380 { echo "$as_me:$LINENO: result: $CC" >&5
3381 echo "${ECHO_T}$CC" >&6; }
3382 else
3383 { echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6; }
3389 if test -z "$CC"; then
3390 if test -n "$ac_tool_prefix"; then
3391 for ac_prog in cl.exe
3393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_CC+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3414 done
3415 done
3416 IFS=$as_save_IFS
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { echo "$as_me:$LINENO: result: $CC" >&5
3423 echo "${ECHO_T}$CC" >&6; }
3424 else
3425 { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3430 test -n "$CC" && break
3431 done
3433 if test -z "$CC"; then
3434 ac_ct_CC=$CC
3435 for ac_prog in cl.exe
3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy $ac_prog; ac_word=$2
3439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 if test -n "$ac_ct_CC"; then
3445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 ac_cv_prog_ac_ct_CC="$ac_prog"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3458 done
3459 done
3460 IFS=$as_save_IFS
3464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3465 if test -n "$ac_ct_CC"; then
3466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3467 echo "${ECHO_T}$ac_ct_CC" >&6; }
3468 else
3469 { echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6; }
3474 test -n "$ac_ct_CC" && break
3475 done
3477 if test "x$ac_ct_CC" = x; then
3478 CC=""
3479 else
3480 case $cross_compiling:$ac_tool_warned in
3481 yes:)
3482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3483 whose name does not start with the host triplet. If you think this
3484 configuration is useful to you, please write to autoconf@gnu.org." >&5
3485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3486 whose name does not start with the host triplet. If you think this
3487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3488 ac_tool_warned=yes ;;
3489 esac
3490 CC=$ac_ct_CC
3497 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3498 See \`config.log' for more details." >&5
3499 echo "$as_me: error: no acceptable C compiler found in \$PATH
3500 See \`config.log' for more details." >&2;}
3501 { (exit 1); exit 1; }; }
3503 # Provide some information about the compiler.
3504 echo "$as_me:$LINENO: checking for C compiler version" >&5
3505 ac_compiler=`set X $ac_compile; echo $2`
3506 { (ac_try="$ac_compiler --version >&5"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_compiler --version >&5") 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }
3516 { (ac_try="$ac_compiler -v >&5"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_compiler -v >&5") 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }
3526 { (ac_try="$ac_compiler -V >&5"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compiler -V >&5") 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }
3537 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3538 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3539 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542 cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h. */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3550 main ()
3552 #ifndef __GNUC__
3553 choke me
3554 #endif
3557 return 0;
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (ac_try="$ac_compile"
3562 case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565 esac
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_compile") 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } && {
3574 test -z "$ac_c_werror_flag" ||
3575 test ! -s conftest.err
3576 } && test -s conftest.$ac_objext; then
3577 ac_compiler_gnu=yes
3578 else
3579 echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3582 ac_compiler_gnu=no
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3589 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3590 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3591 GCC=`test $ac_compiler_gnu = yes && echo yes`
3592 ac_test_CFLAGS=${CFLAGS+set}
3593 ac_save_CFLAGS=$CFLAGS
3594 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3595 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3596 if test "${ac_cv_prog_cc_g+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599 ac_save_c_werror_flag=$ac_c_werror_flag
3600 ac_c_werror_flag=yes
3601 ac_cv_prog_cc_g=no
3602 CFLAGS="-g"
3603 cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h. */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h. */
3611 main ()
3615 return 0;
3617 _ACEOF
3618 rm -f conftest.$ac_objext
3619 if { (ac_try="$ac_compile"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_compile") 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } && {
3632 test -z "$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3634 } && test -s conftest.$ac_objext; then
3635 ac_cv_prog_cc_g=yes
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 CFLAGS=""
3641 cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h. */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3649 main ()
3653 return 0;
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_compile") 2>conftest.er1
3664 ac_status=$?
3665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } && {
3670 test -z "$ac_c_werror_flag" ||
3671 test ! -s conftest.err
3672 } && test -s conftest.$ac_objext; then
3674 else
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 ac_c_werror_flag=$ac_save_c_werror_flag
3679 CFLAGS="-g"
3680 cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3688 main ()
3692 return 0;
3694 _ACEOF
3695 rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_compile") 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } && {
3709 test -z "$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3711 } && test -s conftest.$ac_objext; then
3712 ac_cv_prog_cc_g=yes
3713 else
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_c_werror_flag=$ac_save_c_werror_flag
3729 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3730 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3731 if test "$ac_test_CFLAGS" = set; then
3732 CFLAGS=$ac_save_CFLAGS
3733 elif test $ac_cv_prog_cc_g = yes; then
3734 if test "$GCC" = yes; then
3735 CFLAGS="-g -O2"
3736 else
3737 CFLAGS="-g"
3739 else
3740 if test "$GCC" = yes; then
3741 CFLAGS="-O2"
3742 else
3743 CFLAGS=
3746 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3747 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3748 if test "${ac_cv_prog_cc_c89+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 ac_cv_prog_cc_c89=no
3752 ac_save_CC=$CC
3753 cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h. */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3759 #include <stdarg.h>
3760 #include <stdio.h>
3761 #include <sys/types.h>
3762 #include <sys/stat.h>
3763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3764 struct buf { int x; };
3765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3766 static char *e (p, i)
3767 char **p;
3768 int i;
3770 return p[i];
3772 static char *f (char * (*g) (char **, int), char **p, ...)
3774 char *s;
3775 va_list v;
3776 va_start (v,p);
3777 s = g (p, va_arg (v,int));
3778 va_end (v);
3779 return s;
3782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3783 function prototypes and stuff, but not '\xHH' hex character constants.
3784 These don't provoke an error unfortunately, instead are silently treated
3785 as 'x'. The following induces an error, until -std is added to get
3786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3787 array size at least. It's necessary to write '\x00'==0 to get something
3788 that's true only with -std. */
3789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3792 inside strings and character constants. */
3793 #define FOO(x) 'x'
3794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3796 int test (int i, double x);
3797 struct s1 {int (*f) (int a);};
3798 struct s2 {int (*f) (double a);};
3799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3800 int argc;
3801 char **argv;
3803 main ()
3805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3807 return 0;
3809 _ACEOF
3810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3813 CC="$ac_save_CC $ac_arg"
3814 rm -f conftest.$ac_objext
3815 if { (ac_try="$ac_compile"
3816 case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819 esac
3820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_compile") 2>conftest.er1
3822 ac_status=$?
3823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } && {
3828 test -z "$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3830 } && test -s conftest.$ac_objext; then
3831 ac_cv_prog_cc_c89=$ac_arg
3832 else
3833 echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3839 rm -f core conftest.err conftest.$ac_objext
3840 test "x$ac_cv_prog_cc_c89" != "xno" && break
3841 done
3842 rm -f conftest.$ac_ext
3843 CC=$ac_save_CC
3846 # AC_CACHE_VAL
3847 case "x$ac_cv_prog_cc_c89" in
3849 { echo "$as_me:$LINENO: result: none needed" >&5
3850 echo "${ECHO_T}none needed" >&6; } ;;
3851 xno)
3852 { echo "$as_me:$LINENO: result: unsupported" >&5
3853 echo "${ECHO_T}unsupported" >&6; } ;;
3855 CC="$CC $ac_cv_prog_cc_c89"
3856 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3857 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3858 esac
3861 ac_ext=c
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 depcc="$CC" am_compiler_list=
3869 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3870 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3871 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3875 # We make a subdir and do the tests there. Otherwise we can end up
3876 # making bogus files that we don't know about and never remove. For
3877 # instance it was reported that on HP-UX the gcc test will end up
3878 # making a dummy file named `D' -- because `-MD' means `put the output
3879 # in D'.
3880 mkdir conftest.dir
3881 # Copy depcomp to subdir because otherwise we won't find it if we're
3882 # using a relative directory.
3883 cp "$am_depcomp" conftest.dir
3884 cd conftest.dir
3885 # We will build objects and dependencies in a subdirectory because
3886 # it helps to detect inapplicable dependency modes. For instance
3887 # both Tru64's cc and ICC support -MD to output dependencies as a
3888 # side effect of compilation, but ICC will put the dependencies in
3889 # the current directory while Tru64 will put them in the object
3890 # directory.
3891 mkdir sub
3893 am_cv_CC_dependencies_compiler_type=none
3894 if test "$am_compiler_list" = ""; then
3895 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3897 for depmode in $am_compiler_list; do
3898 # Setup a source with many dependencies, because some compilers
3899 # like to wrap large dependency lists on column 80 (with \), and
3900 # we should not choose a depcomp mode which is confused by this.
3902 # We need to recreate these files for each test, as the compiler may
3903 # overwrite some of them when testing with obscure command lines.
3904 # This happens at least with the AIX C compiler.
3905 : > sub/conftest.c
3906 for i in 1 2 3 4 5 6; do
3907 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3908 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3909 # Solaris 8's {/usr,}/bin/sh.
3910 touch sub/conftst$i.h
3911 done
3912 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3914 case $depmode in
3915 nosideeffect)
3916 # after this tag, mechanisms are not by side-effect, so they'll
3917 # only be used when explicitly requested
3918 if test "x$enable_dependency_tracking" = xyes; then
3919 continue
3920 else
3921 break
3924 none) break ;;
3925 esac
3926 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3927 # mode. It turns out that the SunPro C++ compiler does not properly
3928 # handle `-M -o', and we need to detect this.
3929 if depmode=$depmode \
3930 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3931 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3933 >/dev/null 2>conftest.err &&
3934 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3936 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3938 # icc doesn't choke on unknown options, it will just issue warnings
3939 # or remarks (even with -Werror). So we grep stderr for any message
3940 # that says an option was ignored or not supported.
3941 # When given -MP, icc 7.0 and 7.1 complain thusly:
3942 # icc: Command line warning: ignoring option '-M'; no argument required
3943 # The diagnosis changed in icc 8.0:
3944 # icc: Command line remark: option '-MP' not supported
3945 if (grep 'ignoring option' conftest.err ||
3946 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3947 am_cv_CC_dependencies_compiler_type=$depmode
3948 break
3951 done
3953 cd ..
3954 rm -rf conftest.dir
3955 else
3956 am_cv_CC_dependencies_compiler_type=none
3960 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3961 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3962 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3965 test "x$enable_dependency_tracking" != xno \
3966 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3967 am__fastdepCC_TRUE=
3968 am__fastdepCC_FALSE='#'
3969 else
3970 am__fastdepCC_TRUE='#'
3971 am__fastdepCC_FALSE=
3975 # Check whether --enable-shared was given.
3976 if test "${enable_shared+set}" = set; then
3977 enableval=$enable_shared; p=${PACKAGE-default}
3978 case $enableval in
3979 yes) enable_shared=yes ;;
3980 no) enable_shared=no ;;
3982 enable_shared=no
3983 # Look at the argument we got. We use all the common list separators.
3984 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3985 for pkg in $enableval; do
3986 IFS="$lt_save_ifs"
3987 if test "X$pkg" = "X$p"; then
3988 enable_shared=yes
3990 done
3991 IFS="$lt_save_ifs"
3993 esac
3994 else
3995 enable_shared=yes
3999 # Check whether --enable-static was given.
4000 if test "${enable_static+set}" = set; then
4001 enableval=$enable_static; p=${PACKAGE-default}
4002 case $enableval in
4003 yes) enable_static=yes ;;
4004 no) enable_static=no ;;
4006 enable_static=no
4007 # Look at the argument we got. We use all the common list separators.
4008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4009 for pkg in $enableval; do
4010 IFS="$lt_save_ifs"
4011 if test "X$pkg" = "X$p"; then
4012 enable_static=yes
4014 done
4015 IFS="$lt_save_ifs"
4017 esac
4018 else
4019 enable_static=yes
4023 # Check whether --enable-fast-install was given.
4024 if test "${enable_fast_install+set}" = set; then
4025 enableval=$enable_fast_install; p=${PACKAGE-default}
4026 case $enableval in
4027 yes) enable_fast_install=yes ;;
4028 no) enable_fast_install=no ;;
4030 enable_fast_install=no
4031 # Look at the argument we got. We use all the common list separators.
4032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4033 for pkg in $enableval; do
4034 IFS="$lt_save_ifs"
4035 if test "X$pkg" = "X$p"; then
4036 enable_fast_install=yes
4038 done
4039 IFS="$lt_save_ifs"
4041 esac
4042 else
4043 enable_fast_install=yes
4047 # Make sure we can run config.sub.
4048 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4049 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4050 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4051 { (exit 1); exit 1; }; }
4053 { echo "$as_me:$LINENO: checking build system type" >&5
4054 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4055 if test "${ac_cv_build+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 ac_build_alias=$build_alias
4059 test "x$ac_build_alias" = x &&
4060 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4061 test "x$ac_build_alias" = x &&
4062 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4063 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4064 { (exit 1); exit 1; }; }
4065 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4066 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4067 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4068 { (exit 1); exit 1; }; }
4071 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4072 echo "${ECHO_T}$ac_cv_build" >&6; }
4073 case $ac_cv_build in
4074 *-*-*) ;;
4075 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4076 echo "$as_me: error: invalid value of canonical build" >&2;}
4077 { (exit 1); exit 1; }; };;
4078 esac
4079 build=$ac_cv_build
4080 ac_save_IFS=$IFS; IFS='-'
4081 set x $ac_cv_build
4082 shift
4083 build_cpu=$1
4084 build_vendor=$2
4085 shift; shift
4086 # Remember, the first character of IFS is used to create $*,
4087 # except with old shells:
4088 build_os=$*
4089 IFS=$ac_save_IFS
4090 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4093 { echo "$as_me:$LINENO: checking host system type" >&5
4094 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4095 if test "${ac_cv_host+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098 if test "x$host_alias" = x; then
4099 ac_cv_host=$ac_cv_build
4100 else
4101 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4102 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4103 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4104 { (exit 1); exit 1; }; }
4108 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4109 echo "${ECHO_T}$ac_cv_host" >&6; }
4110 case $ac_cv_host in
4111 *-*-*) ;;
4112 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4113 echo "$as_me: error: invalid value of canonical host" >&2;}
4114 { (exit 1); exit 1; }; };;
4115 esac
4116 host=$ac_cv_host
4117 ac_save_IFS=$IFS; IFS='-'
4118 set x $ac_cv_host
4119 shift
4120 host_cpu=$1
4121 host_vendor=$2
4122 shift; shift
4123 # Remember, the first character of IFS is used to create $*,
4124 # except with old shells:
4125 host_os=$*
4126 IFS=$ac_save_IFS
4127 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4130 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4131 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4132 if test "${lt_cv_path_SED+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 # Loop through the user's path and test for sed and gsed.
4136 # Then use that list of sed's as ones to test for truncation.
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for lt_ac_prog in sed gsed; do
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4145 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4147 done
4148 done
4149 done
4150 IFS=$as_save_IFS
4151 lt_ac_max=0
4152 lt_ac_count=0
4153 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4154 # along with /bin/sed that truncates output.
4155 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4156 test ! -f $lt_ac_sed && continue
4157 cat /dev/null > conftest.in
4158 lt_ac_count=0
4159 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4160 # Check for GNU sed and select it if it is found.
4161 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4162 lt_cv_path_SED=$lt_ac_sed
4163 break
4165 while true; do
4166 cat conftest.in conftest.in >conftest.tmp
4167 mv conftest.tmp conftest.in
4168 cp conftest.in conftest.nl
4169 echo >>conftest.nl
4170 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4171 cmp -s conftest.out conftest.nl || break
4172 # 10000 chars as input seems more than enough
4173 test $lt_ac_count -gt 10 && break
4174 lt_ac_count=`expr $lt_ac_count + 1`
4175 if test $lt_ac_count -gt $lt_ac_max; then
4176 lt_ac_max=$lt_ac_count
4177 lt_cv_path_SED=$lt_ac_sed
4179 done
4180 done
4184 SED=$lt_cv_path_SED
4186 { echo "$as_me:$LINENO: result: $SED" >&5
4187 echo "${ECHO_T}$SED" >&6; }
4189 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4190 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4191 if test "${ac_cv_path_GREP+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 # Extract the first word of "grep ggrep" to use in msg output
4195 if test -z "$GREP"; then
4196 set dummy grep ggrep; ac_prog_name=$2
4197 if test "${ac_cv_path_GREP+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 ac_path_GREP_found=false
4201 # Loop through the user's path and test for each of PROGNAME-LIST
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_prog in grep ggrep; do
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4210 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4211 # Check for GNU ac_path_GREP and select it if it is found.
4212 # Check for GNU $ac_path_GREP
4213 case `"$ac_path_GREP" --version 2>&1` in
4214 *GNU*)
4215 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4217 ac_count=0
4218 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4219 while :
4221 cat "conftest.in" "conftest.in" >"conftest.tmp"
4222 mv "conftest.tmp" "conftest.in"
4223 cp "conftest.in" "conftest.nl"
4224 echo 'GREP' >> "conftest.nl"
4225 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4227 ac_count=`expr $ac_count + 1`
4228 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4229 # Best one so far, save it but keep looking for a better one
4230 ac_cv_path_GREP="$ac_path_GREP"
4231 ac_path_GREP_max=$ac_count
4233 # 10*(2^10) chars as input seems more than enough
4234 test $ac_count -gt 10 && break
4235 done
4236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237 esac
4240 $ac_path_GREP_found && break 3
4241 done
4242 done
4244 done
4245 IFS=$as_save_IFS
4250 GREP="$ac_cv_path_GREP"
4251 if test -z "$GREP"; then
4252 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4253 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4254 { (exit 1); exit 1; }; }
4257 else
4258 ac_cv_path_GREP=$GREP
4263 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4264 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4265 GREP="$ac_cv_path_GREP"
4268 { echo "$as_me:$LINENO: checking for egrep" >&5
4269 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4270 if test "${ac_cv_path_EGREP+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4274 then ac_cv_path_EGREP="$GREP -E"
4275 else
4276 # Extract the first word of "egrep" to use in msg output
4277 if test -z "$EGREP"; then
4278 set dummy egrep; ac_prog_name=$2
4279 if test "${ac_cv_path_EGREP+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282 ac_path_EGREP_found=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in egrep; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4292 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4293 # Check for GNU ac_path_EGREP and select it if it is found.
4294 # Check for GNU $ac_path_EGREP
4295 case `"$ac_path_EGREP" --version 2>&1` in
4296 *GNU*)
4297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4299 ac_count=0
4300 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4301 while :
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 echo 'EGREP' >> "conftest.nl"
4307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309 ac_count=`expr $ac_count + 1`
4310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_EGREP="$ac_path_EGREP"
4313 ac_path_EGREP_max=$ac_count
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4317 done
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319 esac
4322 $ac_path_EGREP_found && break 3
4323 done
4324 done
4326 done
4327 IFS=$as_save_IFS
4332 EGREP="$ac_cv_path_EGREP"
4333 if test -z "$EGREP"; then
4334 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4335 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4336 { (exit 1); exit 1; }; }
4339 else
4340 ac_cv_path_EGREP=$EGREP
4346 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4347 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4348 EGREP="$ac_cv_path_EGREP"
4352 # Check whether --with-gnu-ld was given.
4353 if test "${with_gnu_ld+set}" = set; then
4354 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4355 else
4356 with_gnu_ld=no
4359 ac_prog=ld
4360 if test "$GCC" = yes; then
4361 # Check if gcc -print-prog-name=ld gives a path.
4362 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4363 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4364 case $host in
4365 *-*-mingw*)
4366 # gcc leaves a trailing carriage return which upsets mingw
4367 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4369 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4370 esac
4371 case $ac_prog in
4372 # Accept absolute paths.
4373 [\\/]* | ?:[\\/]*)
4374 re_direlt='/[^/][^/]*/\.\./'
4375 # Canonicalize the pathname of ld
4376 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4377 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4378 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4379 done
4380 test -z "$LD" && LD="$ac_prog"
4383 # If it fails, then pretend we aren't using GCC.
4384 ac_prog=ld
4387 # If it is relative, then search for the first ld in PATH.
4388 with_gnu_ld=unknown
4390 esac
4391 elif test "$with_gnu_ld" = yes; then
4392 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4393 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4394 else
4395 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4396 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4398 if test "${lt_cv_path_LD+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 if test -z "$LD"; then
4402 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4403 for ac_dir in $PATH; do
4404 IFS="$lt_save_ifs"
4405 test -z "$ac_dir" && ac_dir=.
4406 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4407 lt_cv_path_LD="$ac_dir/$ac_prog"
4408 # Check to see if the program is GNU ld. I'd rather use --version,
4409 # but apparently some variants of GNU ld only accept -v.
4410 # Break only if it was the GNU/non-GNU ld that we prefer.
4411 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4412 *GNU* | *'with BFD'*)
4413 test "$with_gnu_ld" != no && break
4416 test "$with_gnu_ld" != yes && break
4418 esac
4420 done
4421 IFS="$lt_save_ifs"
4422 else
4423 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4427 LD="$lt_cv_path_LD"
4428 if test -n "$LD"; then
4429 { echo "$as_me:$LINENO: result: $LD" >&5
4430 echo "${ECHO_T}$LD" >&6; }
4431 else
4432 { echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6; }
4435 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4436 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4437 { (exit 1); exit 1; }; }
4438 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4439 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4440 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4444 case `$LD -v 2>&1 </dev/null` in
4445 *GNU* | *'with BFD'*)
4446 lt_cv_prog_gnu_ld=yes
4449 lt_cv_prog_gnu_ld=no
4451 esac
4453 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4454 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4455 with_gnu_ld=$lt_cv_prog_gnu_ld
4458 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4459 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4460 if test "${lt_cv_ld_reload_flag+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463 lt_cv_ld_reload_flag='-r'
4465 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4466 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4467 reload_flag=$lt_cv_ld_reload_flag
4468 case $reload_flag in
4469 "" | " "*) ;;
4470 *) reload_flag=" $reload_flag" ;;
4471 esac
4472 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4473 case $host_os in
4474 darwin*)
4475 if test "$GCC" = yes; then
4476 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4477 else
4478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4481 esac
4483 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4484 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4485 if test "${lt_cv_path_NM+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 if test -n "$NM"; then
4489 # Let the user override the test.
4490 lt_cv_path_NM="$NM"
4491 else
4492 lt_nm_to_check="${ac_tool_prefix}nm"
4493 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4494 lt_nm_to_check="$lt_nm_to_check nm"
4496 for lt_tmp_nm in $lt_nm_to_check; do
4497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4498 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4499 IFS="$lt_save_ifs"
4500 test -z "$ac_dir" && ac_dir=.
4501 tmp_nm="$ac_dir/$lt_tmp_nm"
4502 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4503 # Check to see if the nm accepts a BSD-compat flag.
4504 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4505 # nm: unknown option "B" ignored
4506 # Tru64's nm complains that /dev/null is an invalid object file
4507 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4508 */dev/null* | *'Invalid file or object type'*)
4509 lt_cv_path_NM="$tmp_nm -B"
4510 break
4513 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4514 */dev/null*)
4515 lt_cv_path_NM="$tmp_nm -p"
4516 break
4519 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4520 continue # so that we can try to find one that supports BSD flags
4522 esac
4524 esac
4526 done
4527 IFS="$lt_save_ifs"
4528 done
4529 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4532 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4533 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4534 NM="$lt_cv_path_NM"
4536 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4537 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4538 LN_S=$as_ln_s
4539 if test "$LN_S" = "ln -s"; then
4540 { echo "$as_me:$LINENO: result: yes" >&5
4541 echo "${ECHO_T}yes" >&6; }
4542 else
4543 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4544 echo "${ECHO_T}no, using $LN_S" >&6; }
4547 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4548 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4549 if test "${lt_cv_deplibs_check_method+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552 lt_cv_file_magic_cmd='$MAGIC_CMD'
4553 lt_cv_file_magic_test_file=
4554 lt_cv_deplibs_check_method='unknown'
4555 # Need to set the preceding variable on all platforms that support
4556 # interlibrary dependencies.
4557 # 'none' -- dependencies not supported.
4558 # `unknown' -- same as none, but documents that we really don't know.
4559 # 'pass_all' -- all dependencies passed with no checks.
4560 # 'test_compile' -- check by making test program.
4561 # 'file_magic [[regex]]' -- check by looking for files in library path
4562 # which responds to the $file_magic_cmd with a given extended regex.
4563 # If you have `file' or equivalent on your system and you're not sure
4564 # whether `pass_all' will *always* work, you probably want this one.
4566 case $host_os in
4567 aix[4-9]*)
4568 lt_cv_deplibs_check_method=pass_all
4571 beos*)
4572 lt_cv_deplibs_check_method=pass_all
4575 bsdi[45]*)
4576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4577 lt_cv_file_magic_cmd='/usr/bin/file -L'
4578 lt_cv_file_magic_test_file=/shlib/libc.so
4581 cygwin*)
4582 # func_win32_libid is a shell function defined in ltmain.sh
4583 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4584 lt_cv_file_magic_cmd='func_win32_libid'
4587 mingw* | pw32*)
4588 # Base MSYS/MinGW do not provide the 'file' command needed by
4589 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4590 # unless we find 'file', for example because we are cross-compiling.
4591 if ( file / ) >/dev/null 2>&1; then
4592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4593 lt_cv_file_magic_cmd='func_win32_libid'
4594 else
4595 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4596 lt_cv_file_magic_cmd='$OBJDUMP -f'
4600 darwin* | rhapsody*)
4601 lt_cv_deplibs_check_method=pass_all
4604 freebsd* | dragonfly*)
4605 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4606 case $host_cpu in
4607 i*86 )
4608 # Not sure whether the presence of OpenBSD here was a mistake.
4609 # Let's accept both of them until this is cleared up.
4610 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4611 lt_cv_file_magic_cmd=/usr/bin/file
4612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4614 esac
4615 else
4616 lt_cv_deplibs_check_method=pass_all
4620 gnu*)
4621 lt_cv_deplibs_check_method=pass_all
4624 hpux10.20* | hpux11*)
4625 lt_cv_file_magic_cmd=/usr/bin/file
4626 case $host_cpu in
4627 ia64*)
4628 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4629 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4631 hppa*64*)
4632 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]'
4633 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4636 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4637 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4639 esac
4642 interix[3-9]*)
4643 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4647 irix5* | irix6* | nonstopux*)
4648 case $LD in
4649 *-32|*"-32 ") libmagic=32-bit;;
4650 *-n32|*"-n32 ") libmagic=N32;;
4651 *-64|*"-64 ") libmagic=64-bit;;
4652 *) libmagic=never-match;;
4653 esac
4654 lt_cv_deplibs_check_method=pass_all
4657 # This must be Linux ELF.
4658 linux* | k*bsd*-gnu)
4659 lt_cv_deplibs_check_method=pass_all
4662 netbsd*)
4663 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4665 else
4666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4670 newos6*)
4671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4672 lt_cv_file_magic_cmd=/usr/bin/file
4673 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4676 nto-qnx*)
4677 lt_cv_deplibs_check_method=unknown
4680 openbsd*)
4681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4683 else
4684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4688 osf3* | osf4* | osf5*)
4689 lt_cv_deplibs_check_method=pass_all
4692 rdos*)
4693 lt_cv_deplibs_check_method=pass_all
4696 solaris*)
4697 lt_cv_deplibs_check_method=pass_all
4700 sysv4 | sysv4.3*)
4701 case $host_vendor in
4702 motorola)
4703 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]'
4704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4706 ncr)
4707 lt_cv_deplibs_check_method=pass_all
4709 sequent)
4710 lt_cv_file_magic_cmd='/bin/file'
4711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4713 sni)
4714 lt_cv_file_magic_cmd='/bin/file'
4715 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4716 lt_cv_file_magic_test_file=/lib/libc.so
4718 siemens)
4719 lt_cv_deplibs_check_method=pass_all
4722 lt_cv_deplibs_check_method=pass_all
4724 esac
4727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4728 lt_cv_deplibs_check_method=pass_all
4730 esac
4733 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4734 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4735 file_magic_cmd=$lt_cv_file_magic_cmd
4736 deplibs_check_method=$lt_cv_deplibs_check_method
4737 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4742 # If no C compiler was specified, use CC.
4743 LTCC=${LTCC-"$CC"}
4745 # If no C compiler flags were specified, use CFLAGS.
4746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4748 # Allow CC to be a program name with arguments.
4749 compiler=$CC
4752 # Check whether --enable-libtool-lock was given.
4753 if test "${enable_libtool_lock+set}" = set; then
4754 enableval=$enable_libtool_lock;
4757 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4759 # Some flags need to be propagated to the compiler or linker for good
4760 # libtool support.
4761 case $host in
4762 ia64-*-hpux*)
4763 # Find out which ABI we are using.
4764 echo 'int i;' > conftest.$ac_ext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; then
4770 case `/usr/bin/file conftest.$ac_objext` in
4771 *ELF-32*)
4772 HPUX_IA64_MODE="32"
4774 *ELF-64*)
4775 HPUX_IA64_MODE="64"
4777 esac
4779 rm -rf conftest*
4781 *-*-irix6*)
4782 # Find out which ABI we are using.
4783 echo '#line 4783 "configure"' > conftest.$ac_ext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; then
4789 if test "$lt_cv_prog_gnu_ld" = yes; then
4790 case `/usr/bin/file conftest.$ac_objext` in
4791 *32-bit*)
4792 LD="${LD-ld} -melf32bsmip"
4794 *N32*)
4795 LD="${LD-ld} -melf32bmipn32"
4797 *64-bit*)
4798 LD="${LD-ld} -melf64bmip"
4800 esac
4801 else
4802 case `/usr/bin/file conftest.$ac_objext` in
4803 *32-bit*)
4804 LD="${LD-ld} -32"
4806 *N32*)
4807 LD="${LD-ld} -n32"
4809 *64-bit*)
4810 LD="${LD-ld} -64"
4812 esac
4815 rm -rf conftest*
4818 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4819 s390*-*linux*|sparc*-*linux*)
4820 # Find out which ABI we are using.
4821 echo 'int i;' > conftest.$ac_ext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823 (eval $ac_compile) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; then
4827 case `/usr/bin/file conftest.o` in
4828 *32-bit*)
4829 case $host in
4830 x86_64-*kfreebsd*-gnu)
4831 LD="${LD-ld} -m elf_i386_fbsd"
4833 x86_64-*linux*)
4834 LD="${LD-ld} -m elf_i386"
4836 ppc64-*linux*|powerpc64-*linux*)
4837 LD="${LD-ld} -m elf32ppclinux"
4839 s390x-*linux*)
4840 LD="${LD-ld} -m elf_s390"
4842 sparc64-*linux*)
4843 LD="${LD-ld} -m elf32_sparc"
4845 esac
4847 *64-bit*)
4848 case $host in
4849 x86_64-*kfreebsd*-gnu)
4850 LD="${LD-ld} -m elf_x86_64_fbsd"
4852 x86_64-*linux*)
4853 LD="${LD-ld} -m elf_x86_64"
4855 ppc*-*linux*|powerpc*-*linux*)
4856 LD="${LD-ld} -m elf64ppc"
4858 s390*-*linux*)
4859 LD="${LD-ld} -m elf64_s390"
4861 sparc*-*linux*)
4862 LD="${LD-ld} -m elf64_sparc"
4864 esac
4866 esac
4868 rm -rf conftest*
4871 *-*-sco3.2v5*)
4872 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4873 SAVE_CFLAGS="$CFLAGS"
4874 CFLAGS="$CFLAGS -belf"
4875 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4876 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4877 if test "${lt_cv_cc_needs_belf+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 ac_ext=c
4881 ac_cpp='$CPP $CPPFLAGS'
4882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h. */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4894 main ()
4898 return 0;
4900 _ACEOF
4901 rm -f conftest.$ac_objext conftest$ac_exeext
4902 if { (ac_try="$ac_link"
4903 case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906 esac
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_link") 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } && {
4915 test -z "$ac_c_werror_flag" ||
4916 test ! -s conftest.err
4917 } && test -s conftest$ac_exeext &&
4918 $as_test_x conftest$ac_exeext; then
4919 lt_cv_cc_needs_belf=yes
4920 else
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 lt_cv_cc_needs_belf=no
4927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4928 conftest$ac_exeext conftest.$ac_ext
4929 ac_ext=c
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4937 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4938 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4939 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4940 CFLAGS="$SAVE_CFLAGS"
4943 sparc*-*solaris*)
4944 # Find out which ABI we are using.
4945 echo 'int i;' > conftest.$ac_ext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; then
4951 case `/usr/bin/file conftest.o` in
4952 *64-bit*)
4953 case $lt_cv_prog_gnu_ld in
4954 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4956 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4957 LD="${LD-ld} -64"
4960 esac
4962 esac
4964 rm -rf conftest*
4968 esac
4970 need_locks="$enable_libtool_lock"
4973 ac_ext=c
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4979 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4980 # On Suns, sometimes $CPP names a directory.
4981 if test -n "$CPP" && test -d "$CPP"; then
4982 CPP=
4984 if test -z "$CPP"; then
4985 if test "${ac_cv_prog_CPP+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 # Double quotes because CPP needs to be expanded
4989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4991 ac_preproc_ok=false
4992 for ac_c_preproc_warn_flag in '' yes
4994 # Use a header file that comes with gcc, so configuring glibc
4995 # with a fresh cross-compiler works.
4996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997 # <limits.h> exists even on freestanding compilers.
4998 # On the NeXT, cc -E runs the code through the compiler's parser,
4999 # not just through cpp. "Syntax error" is here to catch this case.
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 #ifdef __STDC__
5007 # include <limits.h>
5008 #else
5009 # include <assert.h>
5010 #endif
5011 Syntax error
5012 _ACEOF
5013 if { (ac_try="$ac_cpp conftest.$ac_ext"
5014 case "(($ac_try" in
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5017 esac
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null && {
5026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5027 test ! -s conftest.err
5028 }; then
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 # Broken: fails on valid input.
5035 continue
5038 rm -f conftest.err conftest.$ac_ext
5040 # OK, works on sane cases. Now check whether nonexistent headers
5041 # can be detected and how.
5042 cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h. */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 #include <ac_nonexistent.h>
5049 _ACEOF
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev/null && {
5063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 }; then
5066 # Broken: success on invalid input.
5067 continue
5068 else
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 # Passes both tests.
5073 ac_preproc_ok=:
5074 break
5077 rm -f conftest.err conftest.$ac_ext
5079 done
5080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081 rm -f conftest.err conftest.$ac_ext
5082 if $ac_preproc_ok; then
5083 break
5086 done
5087 ac_cv_prog_CPP=$CPP
5090 CPP=$ac_cv_prog_CPP
5091 else
5092 ac_cv_prog_CPP=$CPP
5094 { echo "$as_me:$LINENO: result: $CPP" >&5
5095 echo "${ECHO_T}$CPP" >&6; }
5096 ac_preproc_ok=false
5097 for ac_c_preproc_warn_flag in '' yes
5099 # Use a header file that comes with gcc, so configuring glibc
5100 # with a fresh cross-compiler works.
5101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102 # <limits.h> exists even on freestanding compilers.
5103 # On the NeXT, cc -E runs the code through the compiler's parser,
5104 # not just through cpp. "Syntax error" is here to catch this case.
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 #ifdef __STDC__
5112 # include <limits.h>
5113 #else
5114 # include <assert.h>
5115 #endif
5116 Syntax error
5117 _ACEOF
5118 if { (ac_try="$ac_cpp conftest.$ac_ext"
5119 case "(($ac_try" in
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5122 esac
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev/null && {
5131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5132 test ! -s conftest.err
5133 }; then
5135 else
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 # Broken: fails on valid input.
5140 continue
5143 rm -f conftest.err conftest.$ac_ext
5145 # OK, works on sane cases. Now check whether nonexistent headers
5146 # can be detected and how.
5147 cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h. */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 #include <ac_nonexistent.h>
5154 _ACEOF
5155 if { (ac_try="$ac_cpp conftest.$ac_ext"
5156 case "(($ac_try" in
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5159 esac
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null && {
5168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 }; then
5171 # Broken: success on invalid input.
5172 continue
5173 else
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5177 # Passes both tests.
5178 ac_preproc_ok=:
5179 break
5182 rm -f conftest.err conftest.$ac_ext
5184 done
5185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186 rm -f conftest.err conftest.$ac_ext
5187 if $ac_preproc_ok; then
5189 else
5190 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5191 See \`config.log' for more details." >&5
5192 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5193 See \`config.log' for more details." >&2;}
5194 { (exit 1); exit 1; }; }
5197 ac_ext=c
5198 ac_cpp='$CPP $CPPFLAGS'
5199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5206 if test "${ac_cv_header_stdc+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <stdlib.h>
5216 #include <stdarg.h>
5217 #include <string.h>
5218 #include <float.h>
5221 main ()
5225 return 0;
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest.$ac_objext; then
5245 ac_cv_header_stdc=yes
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 ac_cv_header_stdc=no
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 if test $ac_cv_header_stdc = yes; then
5256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h. */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 #include <string.h>
5265 _ACEOF
5266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5267 $EGREP "memchr" >/dev/null 2>&1; then
5269 else
5270 ac_cv_header_stdc=no
5272 rm -f conftest*
5276 if test $ac_cv_header_stdc = yes; then
5277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h. */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #include <stdlib.h>
5286 _ACEOF
5287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "free" >/dev/null 2>&1; then
5290 else
5291 ac_cv_header_stdc=no
5293 rm -f conftest*
5297 if test $ac_cv_header_stdc = yes; then
5298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5299 if test "$cross_compiling" = yes; then
5301 else
5302 cat >conftest.$ac_ext <<_ACEOF
5303 /* confdefs.h. */
5304 _ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5308 #include <ctype.h>
5309 #include <stdlib.h>
5310 #if ((' ' & 0x0FF) == 0x020)
5311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5313 #else
5314 # define ISLOWER(c) \
5315 (('a' <= (c) && (c) <= 'i') \
5316 || ('j' <= (c) && (c) <= 'r') \
5317 || ('s' <= (c) && (c) <= 'z'))
5318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5319 #endif
5321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5323 main ()
5325 int i;
5326 for (i = 0; i < 256; i++)
5327 if (XOR (islower (i), ISLOWER (i))
5328 || toupper (i) != TOUPPER (i))
5329 return 2;
5330 return 0;
5332 _ACEOF
5333 rm -f conftest$ac_exeext
5334 if { (ac_try="$ac_link"
5335 case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338 esac
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_link") 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5354 else
5355 echo "$as_me: program exited with status $ac_status" >&5
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 ( exit $ac_status )
5360 ac_cv_header_stdc=no
5362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5368 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5369 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5370 if test $ac_cv_header_stdc = yes; then
5372 cat >>confdefs.h <<\_ACEOF
5373 #define STDC_HEADERS 1
5374 _ACEOF
5378 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5388 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5389 inttypes.h stdint.h unistd.h
5391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397 cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h. */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5403 $ac_includes_default
5405 #include <$ac_header>
5406 _ACEOF
5407 rm -f conftest.$ac_objext
5408 if { (ac_try="$ac_compile"
5409 case "(($ac_try" in
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5412 esac
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_compile") 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } && {
5421 test -z "$ac_c_werror_flag" ||
5422 test ! -s conftest.err
5423 } && test -s conftest.$ac_objext; then
5424 eval "$as_ac_Header=yes"
5425 else
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5429 eval "$as_ac_Header=no"
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434 ac_res=`eval echo '${'$as_ac_Header'}'`
5435 { echo "$as_me:$LINENO: result: $ac_res" >&5
5436 echo "${ECHO_T}$ac_res" >&6; }
5437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5438 cat >>confdefs.h <<_ACEOF
5439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5440 _ACEOF
5444 done
5448 for ac_header in dlfcn.h
5450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 ac_res=`eval echo '${'$as_ac_Header'}'`
5458 { echo "$as_me:$LINENO: result: $ac_res" >&5
5459 echo "${ECHO_T}$ac_res" >&6; }
5460 else
5461 # Is the header compilable?
5462 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5464 cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h. */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 $ac_includes_default
5471 #include <$ac_header>
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && {
5487 test -z "$ac_c_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
5490 ac_header_compiler=yes
5491 else
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5495 ac_header_compiler=no
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5500 echo "${ECHO_T}$ac_header_compiler" >&6; }
5502 # Is the header present?
5503 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5505 cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h. */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 #include <$ac_header>
5512 _ACEOF
5513 if { (ac_try="$ac_cpp conftest.$ac_ext"
5514 case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } >/dev/null && {
5526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 }; then
5529 ac_header_preproc=yes
5530 else
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 ac_header_preproc=no
5537 rm -f conftest.err conftest.$ac_ext
5538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5539 echo "${ECHO_T}$ac_header_preproc" >&6; }
5541 # So? What about this header?
5542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5543 yes:no: )
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5548 ac_header_preproc=yes
5550 no:yes:* )
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5563 ( cat <<\_ASBOX
5564 ## ------------------------------------- ##
5565 ## Report this to ahmed.badran@gmail.com ##
5566 ## ------------------------------------- ##
5567 _ASBOX
5568 ) | sed "s/^/$as_me: WARNING: /" >&2
5570 esac
5571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576 eval "$as_ac_Header=\$ac_header_preproc"
5578 ac_res=`eval echo '${'$as_ac_Header'}'`
5579 { echo "$as_me:$LINENO: result: $ac_res" >&5
5580 echo "${ECHO_T}$ac_res" >&6; }
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584 cat >>confdefs.h <<_ACEOF
5585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5586 _ACEOF
5590 done
5594 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5595 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5596 (test "X$CXX" != "Xg++"))) ; then
5597 ac_ext=cpp
5598 ac_cpp='$CXXCPP $CPPFLAGS'
5599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5602 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5603 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5604 if test -z "$CXXCPP"; then
5605 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608 # Double quotes because CXXCPP needs to be expanded
5609 for CXXCPP in "$CXX -E" "/lib/cpp"
5611 ac_preproc_ok=false
5612 for ac_cxx_preproc_warn_flag in '' yes
5614 # Use a header file that comes with gcc, so configuring glibc
5615 # with a fresh cross-compiler works.
5616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5617 # <limits.h> exists even on freestanding compilers.
5618 # On the NeXT, cc -E runs the code through the compiler's parser,
5619 # not just through cpp. "Syntax error" is here to catch this case.
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #ifdef __STDC__
5627 # include <limits.h>
5628 #else
5629 # include <assert.h>
5630 #endif
5631 Syntax error
5632 _ACEOF
5633 if { (ac_try="$ac_cpp conftest.$ac_ext"
5634 case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } >/dev/null && {
5646 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5647 test ! -s conftest.err
5648 }; then
5650 else
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 # Broken: fails on valid input.
5655 continue
5658 rm -f conftest.err conftest.$ac_ext
5660 # OK, works on sane cases. Now check whether nonexistent headers
5661 # can be detected and how.
5662 cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h. */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 #include <ac_nonexistent.h>
5669 _ACEOF
5670 if { (ac_try="$ac_cpp conftest.$ac_ext"
5671 case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } >/dev/null && {
5683 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5684 test ! -s conftest.err
5685 }; then
5686 # Broken: success on invalid input.
5687 continue
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 # Passes both tests.
5693 ac_preproc_ok=:
5694 break
5697 rm -f conftest.err conftest.$ac_ext
5699 done
5700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5701 rm -f conftest.err conftest.$ac_ext
5702 if $ac_preproc_ok; then
5703 break
5706 done
5707 ac_cv_prog_CXXCPP=$CXXCPP
5710 CXXCPP=$ac_cv_prog_CXXCPP
5711 else
5712 ac_cv_prog_CXXCPP=$CXXCPP
5714 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5715 echo "${ECHO_T}$CXXCPP" >&6; }
5716 ac_preproc_ok=false
5717 for ac_cxx_preproc_warn_flag in '' yes
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
5755 else
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 # Broken: fails on valid input.
5760 continue
5763 rm -f conftest.err conftest.$ac_ext
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
5797 # Passes both tests.
5798 ac_preproc_ok=:
5799 break
5802 rm -f conftest.err conftest.$ac_ext
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
5809 else
5810 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5811 See \`config.log' for more details." >&5
5812 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5813 See \`config.log' for more details." >&2;}
5814 { (exit 1); exit 1; }; }
5817 ac_ext=cpp
5818 ac_cpp='$CXXCPP $CPPFLAGS'
5819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5826 ac_ext=f
5827 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5828 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5829 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5830 if test -n "$ac_tool_prefix"; then
5831 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
5833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_prog_F77+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 if test -n "$F77"; then
5841 ac_cv_prog_F77="$F77" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5854 done
5855 done
5856 IFS=$as_save_IFS
5860 F77=$ac_cv_prog_F77
5861 if test -n "$F77"; then
5862 { echo "$as_me:$LINENO: result: $F77" >&5
5863 echo "${ECHO_T}$F77" >&6; }
5864 else
5865 { echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6; }
5870 test -n "$F77" && break
5871 done
5873 if test -z "$F77"; then
5874 ac_ct_F77=$F77
5875 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
5877 # Extract the first word of "$ac_prog", so it can be a program name with args.
5878 set dummy $ac_prog; ac_word=$2
5879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 if test -n "$ac_ct_F77"; then
5885 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_ac_ct_F77="$ac_prog"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5898 done
5899 done
5900 IFS=$as_save_IFS
5904 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5905 if test -n "$ac_ct_F77"; then
5906 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5907 echo "${ECHO_T}$ac_ct_F77" >&6; }
5908 else
5909 { echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6; }
5914 test -n "$ac_ct_F77" && break
5915 done
5917 if test "x$ac_ct_F77" = x; then
5918 F77=""
5919 else
5920 case $cross_compiling:$ac_tool_warned in
5921 yes:)
5922 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5923 whose name does not start with the host triplet. If you think this
5924 configuration is useful to you, please write to autoconf@gnu.org." >&5
5925 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5926 whose name does not start with the host triplet. If you think this
5927 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5928 ac_tool_warned=yes ;;
5929 esac
5930 F77=$ac_ct_F77
5935 # Provide some information about the compiler.
5936 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5937 ac_compiler=`set X $ac_compile; echo $2`
5938 { (ac_try="$ac_compiler --version >&5"
5939 case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942 esac
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_compiler --version >&5") 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }
5948 { (ac_try="$ac_compiler -v >&5"
5949 case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_compiler -v >&5") 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }
5958 { (ac_try="$ac_compiler -V >&5"
5959 case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962 esac
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_compiler -V >&5") 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }
5968 rm -f a.out
5970 # If we don't use `.F' as extension, the preprocessor is not run on the
5971 # input file. (Note that this only needs to work for GNU compilers.)
5972 ac_save_ext=$ac_ext
5973 ac_ext=F
5974 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5975 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5976 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 program main
5981 #ifndef __GNUC__
5982 choke me
5983 #endif
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (ac_try="$ac_compile"
5989 case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_compile") 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } && {
6001 test -z "$ac_f77_werror_flag" ||
6002 test ! -s conftest.err
6003 } && test -s conftest.$ac_objext; then
6004 ac_compiler_gnu=yes
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6009 ac_compiler_gnu=no
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6016 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6017 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6018 ac_ext=$ac_save_ext
6019 ac_test_FFLAGS=${FFLAGS+set}
6020 ac_save_FFLAGS=$FFLAGS
6021 FFLAGS=
6022 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6023 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6024 if test "${ac_cv_prog_f77_g+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027 FFLAGS=-g
6028 cat >conftest.$ac_ext <<_ACEOF
6029 program main
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6035 case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compile") 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_f77_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest.$ac_objext; then
6050 ac_cv_prog_f77_g=yes
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 ac_cv_prog_f77_g=no
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6062 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6063 if test "$ac_test_FFLAGS" = set; then
6064 FFLAGS=$ac_save_FFLAGS
6065 elif test $ac_cv_prog_f77_g = yes; then
6066 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6067 FFLAGS="-g -O2"
6068 else
6069 FFLAGS="-g"
6071 else
6072 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6073 FFLAGS="-O2"
6074 else
6075 FFLAGS=
6079 G77=`test $ac_compiler_gnu = yes && echo yes`
6080 ac_ext=c
6081 ac_cpp='$CPP $CPPFLAGS'
6082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6089 # find the maximum length of command line arguments
6090 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6091 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6092 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6096 teststring="ABCD"
6098 case $build_os in
6099 msdosdjgpp*)
6100 # On DJGPP, this test can blow up pretty badly due to problems in libc
6101 # (any single argument exceeding 2000 bytes causes a buffer overrun
6102 # during glob expansion). Even if it were fixed, the result of this
6103 # check would be larger than it should be.
6104 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6107 gnu*)
6108 # Under GNU Hurd, this test is not required because there is
6109 # no limit to the length of command line arguments.
6110 # Libtool will interpret -1 as no limit whatsoever
6111 lt_cv_sys_max_cmd_len=-1;
6114 cygwin* | mingw*)
6115 # On Win9x/ME, this test blows up -- it succeeds, but takes
6116 # about 5 minutes as the teststring grows exponentially.
6117 # Worse, since 9x/ME are not pre-emptively multitasking,
6118 # you end up with a "frozen" computer, even though with patience
6119 # the test eventually succeeds (with a max line length of 256k).
6120 # Instead, let's just punt: use the minimum linelength reported by
6121 # all of the supported platforms: 8192 (on NT/2K/XP).
6122 lt_cv_sys_max_cmd_len=8192;
6125 amigaos*)
6126 # On AmigaOS with pdksh, this test takes hours, literally.
6127 # So we just punt and use a minimum line length of 8192.
6128 lt_cv_sys_max_cmd_len=8192;
6131 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6132 # This has been around since 386BSD, at least. Likely further.
6133 if test -x /sbin/sysctl; then
6134 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6135 elif test -x /usr/sbin/sysctl; then
6136 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6137 else
6138 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6140 # And add a safety zone
6141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6142 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6145 interix*)
6146 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6147 lt_cv_sys_max_cmd_len=196608
6150 osf*)
6151 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6152 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6153 # nice to cause kernel panics so lets avoid the loop below.
6154 # First set a reasonable default.
6155 lt_cv_sys_max_cmd_len=16384
6157 if test -x /sbin/sysconfig; then
6158 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6159 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6160 esac
6163 sco3.2v5*)
6164 lt_cv_sys_max_cmd_len=102400
6166 sysv5* | sco5v6* | sysv4.2uw2*)
6167 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6168 if test -n "$kargmax"; then
6169 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6170 else
6171 lt_cv_sys_max_cmd_len=32768
6175 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6176 if test -n "$lt_cv_sys_max_cmd_len"; then
6177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6178 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6179 else
6180 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6181 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6182 = "XX$teststring") >/dev/null 2>&1 &&
6183 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6184 lt_cv_sys_max_cmd_len=$new_result &&
6185 test $i != 17 # 1/2 MB should be enough
6187 i=`expr $i + 1`
6188 teststring=$teststring$teststring
6189 done
6190 teststring=
6191 # Add a significant safety factor because C++ compilers can tack on massive
6192 # amounts of additional arguments before passing them to the linker.
6193 # It appears as though 1/2 is a usable value.
6194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6197 esac
6201 if test -n $lt_cv_sys_max_cmd_len ; then
6202 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6203 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6204 else
6205 { echo "$as_me:$LINENO: result: none" >&5
6206 echo "${ECHO_T}none" >&6; }
6213 # Check for command to grab the raw symbol name followed by C symbol from nm.
6214 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6215 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6216 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6220 # These are sane defaults that work on at least a few old systems.
6221 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6223 # Character class describing NM global symbol codes.
6224 symcode='[BCDEGRST]'
6226 # Regexp to match symbols that can be accessed directly from C.
6227 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6229 # Transform an extracted symbol line into a proper C declaration
6230 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6232 # Transform an extracted symbol line into symbol name and symbol address
6233 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'"
6235 # Define system-specific variables.
6236 case $host_os in
6237 aix*)
6238 symcode='[BCDT]'
6240 cygwin* | mingw* | pw32*)
6241 symcode='[ABCDGISTW]'
6243 hpux*) # Its linker distinguishes data from code symbols
6244 if test "$host_cpu" = ia64; then
6245 symcode='[ABCDEGRST]'
6247 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6248 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'"
6250 linux* | k*bsd*-gnu)
6251 if test "$host_cpu" = ia64; then
6252 symcode='[ABCDGIRSTW]'
6253 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6254 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'"
6257 irix* | nonstopux*)
6258 symcode='[BCDEGRST]'
6260 osf*)
6261 symcode='[BCDEGQRST]'
6263 solaris*)
6264 symcode='[BDRT]'
6266 sco3.2v5*)
6267 symcode='[DT]'
6269 sysv4.2uw2*)
6270 symcode='[DT]'
6272 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6273 symcode='[ABDT]'
6275 sysv4)
6276 symcode='[DFNSTU]'
6278 esac
6280 # Handle CRLF in mingw tool chain
6281 opt_cr=
6282 case $build_os in
6283 mingw*)
6284 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6286 esac
6288 # If we're using GNU nm, then use its standard symbol codes.
6289 case `$NM -V 2>&1` in
6290 *GNU* | *'with BFD'*)
6291 symcode='[ABCDGIRSTW]' ;;
6292 esac
6294 # Try without a prefix undercore, then with it.
6295 for ac_symprfx in "" "_"; do
6297 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6298 symxfrm="\\1 $ac_symprfx\\2 \\2"
6300 # Write the raw and C identifiers.
6301 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6303 # Check to see that the pipe works correctly.
6304 pipe_works=no
6306 rm -f conftest*
6307 cat > conftest.$ac_ext <<EOF
6308 #ifdef __cplusplus
6309 extern "C" {
6310 #endif
6311 char nm_test_var;
6312 void nm_test_func(){}
6313 #ifdef __cplusplus
6315 #endif
6316 int main(){nm_test_var='a';nm_test_func();return(0);}
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; then
6324 # Now try to grab the symbols.
6325 nlist=conftest.nm
6326 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6327 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } && test -s "$nlist"; then
6331 # Try sorting and uniquifying the output.
6332 if sort "$nlist" | uniq > "$nlist"T; then
6333 mv -f "$nlist"T "$nlist"
6334 else
6335 rm -f "$nlist"T
6338 # Make sure that we snagged all the symbols we need.
6339 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6340 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6341 cat <<EOF > conftest.$ac_ext
6342 #ifdef __cplusplus
6343 extern "C" {
6344 #endif
6347 # Now generate the symbol file.
6348 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6350 cat <<EOF >> conftest.$ac_ext
6351 #if defined (__STDC__) && __STDC__
6352 # define lt_ptr_t void *
6353 #else
6354 # define lt_ptr_t char *
6355 # define const
6356 #endif
6358 /* The mapping between symbol names and symbols. */
6359 const struct {
6360 const char *name;
6361 lt_ptr_t address;
6363 lt_preloaded_symbols[] =
6366 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6367 cat <<\EOF >> conftest.$ac_ext
6368 {0, (lt_ptr_t) 0}
6371 #ifdef __cplusplus
6373 #endif
6375 # Now try linking the two files.
6376 mv conftest.$ac_objext conftstm.$ac_objext
6377 lt_save_LIBS="$LIBS"
6378 lt_save_CFLAGS="$CFLAGS"
6379 LIBS="conftstm.$ac_objext"
6380 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382 (eval $ac_link) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6386 pipe_works=yes
6388 LIBS="$lt_save_LIBS"
6389 CFLAGS="$lt_save_CFLAGS"
6390 else
6391 echo "cannot find nm_test_func in $nlist" >&5
6393 else
6394 echo "cannot find nm_test_var in $nlist" >&5
6396 else
6397 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6399 else
6400 echo "$progname: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6403 rm -rf conftest* conftst*
6405 # Do not use the global_symbol_pipe unless it works.
6406 if test "$pipe_works" = yes; then
6407 break
6408 else
6409 lt_cv_sys_global_symbol_pipe=
6411 done
6415 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6416 lt_cv_sys_global_symbol_to_cdecl=
6418 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6419 { echo "$as_me:$LINENO: result: failed" >&5
6420 echo "${ECHO_T}failed" >&6; }
6421 else
6422 { echo "$as_me:$LINENO: result: ok" >&5
6423 echo "${ECHO_T}ok" >&6; }
6426 { echo "$as_me:$LINENO: checking for objdir" >&5
6427 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6428 if test "${lt_cv_objdir+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 rm -f .libs 2>/dev/null
6432 mkdir .libs 2>/dev/null
6433 if test -d .libs; then
6434 lt_cv_objdir=.libs
6435 else
6436 # MS-DOS does not allow filenames that begin with a dot.
6437 lt_cv_objdir=_libs
6439 rmdir .libs 2>/dev/null
6441 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6442 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6443 objdir=$lt_cv_objdir
6449 case $host_os in
6450 aix3*)
6451 # AIX sometimes has problems with the GCC collect2 program. For some
6452 # reason, if we set the COLLECT_NAMES environment variable, the problems
6453 # vanish in a puff of smoke.
6454 if test "X${COLLECT_NAMES+set}" != Xset; then
6455 COLLECT_NAMES=
6456 export COLLECT_NAMES
6459 esac
6461 # Sed substitution that helps us do robust quoting. It backslashifies
6462 # metacharacters that are still active within double-quoted strings.
6463 Xsed='sed -e 1s/^X//'
6464 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6466 # Same as above, but do not quote variable references.
6467 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6469 # Sed substitution to delay expansion of an escaped shell variable in a
6470 # double_quote_subst'ed string.
6471 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6473 # Sed substitution to avoid accidental globbing in evaled expressions
6474 no_glob_subst='s/\*/\\\*/g'
6476 # Constants:
6477 rm="rm -f"
6479 # Global variables:
6480 default_ofile=libtool
6481 can_build_shared=yes
6483 # All known linkers require a `.a' archive for static linking (except MSVC,
6484 # which needs '.lib').
6485 libext=a
6486 ltmain="$ac_aux_dir/ltmain.sh"
6487 ofile="$default_ofile"
6488 with_gnu_ld="$lt_cv_prog_gnu_ld"
6490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}ar; ac_word=$2
6493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6495 if test "${ac_cv_prog_AR+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498 if test -n "$AR"; then
6499 ac_cv_prog_AR="$AR" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508 ac_cv_prog_AR="${ac_tool_prefix}ar"
6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6512 done
6513 done
6514 IFS=$as_save_IFS
6518 AR=$ac_cv_prog_AR
6519 if test -n "$AR"; then
6520 { echo "$as_me:$LINENO: result: $AR" >&5
6521 echo "${ECHO_T}$AR" >&6; }
6522 else
6523 { echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6; }
6529 if test -z "$ac_cv_prog_AR"; then
6530 ac_ct_AR=$AR
6531 # Extract the first word of "ar", so it can be a program name with args.
6532 set dummy ar; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538 if test -n "$ac_ct_AR"; then
6539 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_ac_ct_AR="ar"
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6552 done
6553 done
6554 IFS=$as_save_IFS
6558 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6559 if test -n "$ac_ct_AR"; then
6560 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6561 echo "${ECHO_T}$ac_ct_AR" >&6; }
6562 else
6563 { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6567 if test "x$ac_ct_AR" = x; then
6568 AR="false"
6569 else
6570 case $cross_compiling:$ac_tool_warned in
6571 yes:)
6572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6573 whose name does not start with the host triplet. If you think this
6574 configuration is useful to you, please write to autoconf@gnu.org." >&5
6575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6576 whose name does not start with the host triplet. If you think this
6577 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6578 ac_tool_warned=yes ;;
6579 esac
6580 AR=$ac_ct_AR
6582 else
6583 AR="$ac_cv_prog_AR"
6586 if test -n "$ac_tool_prefix"; then
6587 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6588 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591 if test "${ac_cv_prog_RANLIB+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594 if test -n "$RANLIB"; then
6595 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6608 done
6609 done
6610 IFS=$as_save_IFS
6614 RANLIB=$ac_cv_prog_RANLIB
6615 if test -n "$RANLIB"; then
6616 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6617 echo "${ECHO_T}$RANLIB" >&6; }
6618 else
6619 { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6625 if test -z "$ac_cv_prog_RANLIB"; then
6626 ac_ct_RANLIB=$RANLIB
6627 # Extract the first word of "ranlib", so it can be a program name with args.
6628 set dummy ranlib; ac_word=$2
6629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634 if test -n "$ac_ct_RANLIB"; then
6635 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_ac_ct_RANLIB="ranlib"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6648 done
6649 done
6650 IFS=$as_save_IFS
6654 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6655 if test -n "$ac_ct_RANLIB"; then
6656 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6657 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6658 else
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6663 if test "x$ac_ct_RANLIB" = x; then
6664 RANLIB=":"
6665 else
6666 case $cross_compiling:$ac_tool_warned in
6667 yes:)
6668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6669 whose name does not start with the host triplet. If you think this
6670 configuration is useful to you, please write to autoconf@gnu.org." >&5
6671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6672 whose name does not start with the host triplet. If you think this
6673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6674 ac_tool_warned=yes ;;
6675 esac
6676 RANLIB=$ac_ct_RANLIB
6678 else
6679 RANLIB="$ac_cv_prog_RANLIB"
6682 if test -n "$ac_tool_prefix"; then
6683 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}strip; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_prog_STRIP+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690 if test -n "$STRIP"; then
6691 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6704 done
6705 done
6706 IFS=$as_save_IFS
6710 STRIP=$ac_cv_prog_STRIP
6711 if test -n "$STRIP"; then
6712 { echo "$as_me:$LINENO: result: $STRIP" >&5
6713 echo "${ECHO_T}$STRIP" >&6; }
6714 else
6715 { echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6; }
6721 if test -z "$ac_cv_prog_STRIP"; then
6722 ac_ct_STRIP=$STRIP
6723 # Extract the first word of "strip", so it can be a program name with args.
6724 set dummy strip; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 if test -n "$ac_ct_STRIP"; then
6731 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_ac_ct_STRIP="strip"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6744 done
6745 done
6746 IFS=$as_save_IFS
6750 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6751 if test -n "$ac_ct_STRIP"; then
6752 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6753 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6754 else
6755 { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6759 if test "x$ac_ct_STRIP" = x; then
6760 STRIP=":"
6761 else
6762 case $cross_compiling:$ac_tool_warned in
6763 yes:)
6764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6765 whose name does not start with the host triplet. If you think this
6766 configuration is useful to you, please write to autoconf@gnu.org." >&5
6767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6768 whose name does not start with the host triplet. If you think this
6769 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6770 ac_tool_warned=yes ;;
6771 esac
6772 STRIP=$ac_ct_STRIP
6774 else
6775 STRIP="$ac_cv_prog_STRIP"
6779 old_CC="$CC"
6780 old_CFLAGS="$CFLAGS"
6782 # Set sane defaults for various variables
6783 test -z "$AR" && AR=ar
6784 test -z "$AR_FLAGS" && AR_FLAGS=cru
6785 test -z "$AS" && AS=as
6786 test -z "$CC" && CC=cc
6787 test -z "$LTCC" && LTCC=$CC
6788 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6789 test -z "$DLLTOOL" && DLLTOOL=dlltool
6790 test -z "$LD" && LD=ld
6791 test -z "$LN_S" && LN_S="ln -s"
6792 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6793 test -z "$NM" && NM=nm
6794 test -z "$SED" && SED=sed
6795 test -z "$OBJDUMP" && OBJDUMP=objdump
6796 test -z "$RANLIB" && RANLIB=:
6797 test -z "$STRIP" && STRIP=:
6798 test -z "$ac_objext" && ac_objext=o
6800 # Determine commands to create old-style static archives.
6801 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6802 old_postinstall_cmds='chmod 644 $oldlib'
6803 old_postuninstall_cmds=
6805 if test -n "$RANLIB"; then
6806 case $host_os in
6807 openbsd*)
6808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6811 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6813 esac
6814 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6817 for cc_temp in $compiler""; do
6818 case $cc_temp in
6819 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6820 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6821 \-*) ;;
6822 *) break;;
6823 esac
6824 done
6825 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6828 # Only perform the check for file, if the check method requires it
6829 case $deplibs_check_method in
6830 file_magic*)
6831 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6832 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6833 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6834 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 case $MAGIC_CMD in
6838 [\\/*] | ?:[\\/]*)
6839 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6842 lt_save_MAGIC_CMD="$MAGIC_CMD"
6843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6845 for ac_dir in $ac_dummy; do
6846 IFS="$lt_save_ifs"
6847 test -z "$ac_dir" && ac_dir=.
6848 if test -f $ac_dir/${ac_tool_prefix}file; then
6849 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6850 if test -n "$file_magic_test_file"; then
6851 case $deplibs_check_method in
6852 "file_magic "*)
6853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6856 $EGREP "$file_magic_regex" > /dev/null; then
6858 else
6859 cat <<EOF 1>&2
6861 *** Warning: the command libtool uses to detect shared libraries,
6862 *** $file_magic_cmd, produces output that libtool cannot recognize.
6863 *** The result is that libtool may fail to recognize shared libraries
6864 *** as such. This will affect the creation of libtool libraries that
6865 *** depend on shared libraries, but programs linked with such libtool
6866 *** libraries will work regardless of this problem. Nevertheless, you
6867 *** may want to report the problem to your system manager and/or to
6868 *** bug-libtool@gnu.org
6871 fi ;;
6872 esac
6874 break
6876 done
6877 IFS="$lt_save_ifs"
6878 MAGIC_CMD="$lt_save_MAGIC_CMD"
6880 esac
6883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6884 if test -n "$MAGIC_CMD"; then
6885 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6886 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6887 else
6888 { echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6; }
6892 if test -z "$lt_cv_path_MAGIC_CMD"; then
6893 if test -n "$ac_tool_prefix"; then
6894 { echo "$as_me:$LINENO: checking for file" >&5
6895 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6896 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899 case $MAGIC_CMD in
6900 [\\/*] | ?:[\\/]*)
6901 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6904 lt_save_MAGIC_CMD="$MAGIC_CMD"
6905 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6906 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6907 for ac_dir in $ac_dummy; do
6908 IFS="$lt_save_ifs"
6909 test -z "$ac_dir" && ac_dir=.
6910 if test -f $ac_dir/file; then
6911 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6912 if test -n "$file_magic_test_file"; then
6913 case $deplibs_check_method in
6914 "file_magic "*)
6915 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6917 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6918 $EGREP "$file_magic_regex" > /dev/null; then
6920 else
6921 cat <<EOF 1>&2
6923 *** Warning: the command libtool uses to detect shared libraries,
6924 *** $file_magic_cmd, produces output that libtool cannot recognize.
6925 *** The result is that libtool may fail to recognize shared libraries
6926 *** as such. This will affect the creation of libtool libraries that
6927 *** depend on shared libraries, but programs linked with such libtool
6928 *** libraries will work regardless of this problem. Nevertheless, you
6929 *** may want to report the problem to your system manager and/or to
6930 *** bug-libtool@gnu.org
6933 fi ;;
6934 esac
6936 break
6938 done
6939 IFS="$lt_save_ifs"
6940 MAGIC_CMD="$lt_save_MAGIC_CMD"
6942 esac
6945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6946 if test -n "$MAGIC_CMD"; then
6947 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6948 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6949 else
6950 { echo "$as_me:$LINENO: result: no" >&5
6951 echo "${ECHO_T}no" >&6; }
6954 else
6955 MAGIC_CMD=:
6961 esac
6964 case $host_os in
6965 rhapsody* | darwin*)
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 if test -n "$DSYMUTIL"; then
6975 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6988 done
6989 done
6990 IFS=$as_save_IFS
6994 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6995 if test -n "$DSYMUTIL"; then
6996 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6997 echo "${ECHO_T}$DSYMUTIL" >&6; }
6998 else
6999 { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7005 if test -z "$ac_cv_prog_DSYMUTIL"; then
7006 ac_ct_DSYMUTIL=$DSYMUTIL
7007 # Extract the first word of "dsymutil", so it can be a program name with args.
7008 set dummy dsymutil; ac_word=$2
7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014 if test -n "$ac_ct_DSYMUTIL"; then
7015 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7028 done
7029 done
7030 IFS=$as_save_IFS
7034 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7035 if test -n "$ac_ct_DSYMUTIL"; then
7036 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7037 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7038 else
7039 { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7043 if test "x$ac_ct_DSYMUTIL" = x; then
7044 DSYMUTIL=":"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7049 whose name does not start with the host triplet. If you think this
7050 configuration is useful to you, please write to autoconf@gnu.org." >&5
7051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7052 whose name does not start with the host triplet. If you think this
7053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7054 ac_tool_warned=yes ;;
7055 esac
7056 DSYMUTIL=$ac_ct_DSYMUTIL
7058 else
7059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070 if test -n "$NMEDIT"; then
7071 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7084 done
7085 done
7086 IFS=$as_save_IFS
7090 NMEDIT=$ac_cv_prog_NMEDIT
7091 if test -n "$NMEDIT"; then
7092 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7093 echo "${ECHO_T}$NMEDIT" >&6; }
7094 else
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7101 if test -z "$ac_cv_prog_NMEDIT"; then
7102 ac_ct_NMEDIT=$NMEDIT
7103 # Extract the first word of "nmedit", so it can be a program name with args.
7104 set dummy nmedit; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 if test -n "$ac_ct_NMEDIT"; then
7111 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7124 done
7125 done
7126 IFS=$as_save_IFS
7130 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7131 if test -n "$ac_ct_NMEDIT"; then
7132 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7133 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7134 else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7139 if test "x$ac_ct_NMEDIT" = x; then
7140 NMEDIT=":"
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7145 whose name does not start with the host triplet. If you think this
7146 configuration is useful to you, please write to autoconf@gnu.org." >&5
7147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet. If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152 NMEDIT=$ac_ct_NMEDIT
7154 else
7155 NMEDIT="$ac_cv_prog_NMEDIT"
7159 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7160 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7161 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 lt_cv_apple_cc_single_mod=no
7165 if test -z "${LT_MULTI_MODULE}"; then
7166 # By default we will add the -single_module flag. You can override
7167 # by either setting the environment variable LT_MULTI_MODULE
7168 # non-empty at configure time, or by adding -multi_module to the
7169 # link flags.
7170 echo "int foo(void){return 1;}" > conftest.c
7171 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7172 -dynamiclib ${wl}-single_module conftest.c
7173 if test -f libconftest.dylib; then
7174 lt_cv_apple_cc_single_mod=yes
7175 rm -rf libconftest.dylib*
7177 rm conftest.c
7180 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7181 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7182 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7183 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7184 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187 lt_cv_ld_exported_symbols_list=no
7188 save_LDFLAGS=$LDFLAGS
7189 echo "_main" > conftest.sym
7190 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7199 main ()
7203 return 0;
7205 _ACEOF
7206 rm -f conftest.$ac_objext conftest$ac_exeext
7207 if { (ac_try="$ac_link"
7208 case "(($ac_try" in
7209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7210 *) ac_try_echo=$ac_try;;
7211 esac
7212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7213 (eval "$ac_link") 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } && {
7220 test -z "$ac_c_werror_flag" ||
7221 test ! -s conftest.err
7222 } && test -s conftest$ac_exeext &&
7223 $as_test_x conftest$ac_exeext; then
7224 lt_cv_ld_exported_symbols_list=yes
7225 else
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7229 lt_cv_ld_exported_symbols_list=no
7232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7233 conftest$ac_exeext conftest.$ac_ext
7234 LDFLAGS="$save_LDFLAGS"
7237 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7238 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7239 case $host_os in
7240 rhapsody* | darwin1.[0123])
7241 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7242 darwin1.*)
7243 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7244 darwin*)
7245 # if running on 10.5 or later, the deployment target defaults
7246 # to the OS version, if on x86, and 10.4, the deployment
7247 # target defaults to 10.4. Don't you love it?
7248 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7249 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7250 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7251 10.[012]*)
7252 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7253 10.*)
7254 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7255 esac
7257 esac
7258 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7259 _lt_dar_single_mod='$single_module'
7261 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7262 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7263 else
7264 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7266 if test "$DSYMUTIL" != ":"; then
7267 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7268 else
7269 _lt_dsymutil=
7272 esac
7275 enable_dlopen=no
7276 enable_win32_dll=no
7278 # Check whether --enable-libtool-lock was given.
7279 if test "${enable_libtool_lock+set}" = set; then
7280 enableval=$enable_libtool_lock;
7283 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7286 # Check whether --with-pic was given.
7287 if test "${with_pic+set}" = set; then
7288 withval=$with_pic; pic_mode="$withval"
7289 else
7290 pic_mode=default
7293 test -z "$pic_mode" && pic_mode=default
7295 # Use C for the default configuration in the libtool script
7296 tagname=
7297 lt_save_CC="$CC"
7298 ac_ext=c
7299 ac_cpp='$CPP $CPPFLAGS'
7300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7305 # Source file extension for C test sources.
7306 ac_ext=c
7308 # Object file extension for compiled C test sources.
7309 objext=o
7310 objext=$objext
7312 # Code to be used in simple compile tests
7313 lt_simple_compile_test_code="int some_variable = 0;"
7315 # Code to be used in simple link tests
7316 lt_simple_link_test_code='int main(){return(0);}'
7319 # If no C compiler was specified, use CC.
7320 LTCC=${LTCC-"$CC"}
7322 # If no C compiler flags were specified, use CFLAGS.
7323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7325 # Allow CC to be a program name with arguments.
7326 compiler=$CC
7329 # save warnings/boilerplate of simple test code
7330 ac_outfile=conftest.$ac_objext
7331 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7332 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7333 _lt_compiler_boilerplate=`cat conftest.err`
7334 $rm conftest*
7336 ac_outfile=conftest.$ac_objext
7337 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7338 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7339 _lt_linker_boilerplate=`cat conftest.err`
7340 $rm -r conftest*
7344 lt_prog_compiler_no_builtin_flag=
7346 if test "$GCC" = yes; then
7347 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7350 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7351 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7352 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355 lt_cv_prog_compiler_rtti_exceptions=no
7356 ac_outfile=conftest.$ac_objext
7357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7358 lt_compiler_flag="-fno-rtti -fno-exceptions"
7359 # Insert the option either (1) after the last *FLAGS variable, or
7360 # (2) before a word containing "conftest.", or (3) at the end.
7361 # Note that $ac_compile itself does not contain backslashes and begins
7362 # with a dollar sign (not a hyphen), so the echo should work correctly.
7363 # The option is referenced via a variable to avoid confusing sed.
7364 lt_compile=`echo "$ac_compile" | $SED \
7365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7367 -e 's:$: $lt_compiler_flag:'`
7368 (eval echo "\"\$as_me:7368: $lt_compile\"" >&5)
7369 (eval "$lt_compile" 2>conftest.err)
7370 ac_status=$?
7371 cat conftest.err >&5
7372 echo "$as_me:7372: \$? = $ac_status" >&5
7373 if (exit $ac_status) && test -s "$ac_outfile"; then
7374 # The compiler can only warn and ignore the option if not recognized
7375 # So say no if there are warnings other than the usual output.
7376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7379 lt_cv_prog_compiler_rtti_exceptions=yes
7382 $rm conftest*
7385 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7386 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7388 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7389 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7390 else
7396 lt_prog_compiler_wl=
7397 lt_prog_compiler_pic=
7398 lt_prog_compiler_static=
7400 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7401 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7403 if test "$GCC" = yes; then
7404 lt_prog_compiler_wl='-Wl,'
7405 lt_prog_compiler_static='-static'
7407 case $host_os in
7408 aix*)
7409 # All AIX code is PIC.
7410 if test "$host_cpu" = ia64; then
7411 # AIX 5 now supports IA64 processor
7412 lt_prog_compiler_static='-Bstatic'
7416 amigaos*)
7417 # FIXME: we need at least 68020 code to build shared libraries, but
7418 # adding the `-m68020' flag to GCC prevents building anything better,
7419 # like `-m68040'.
7420 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7423 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7424 # PIC is the default for these OSes.
7427 mingw* | cygwin* | pw32* | os2*)
7428 # This hack is so that the source file can tell whether it is being
7429 # built for inclusion in a dll (and should export symbols for example).
7430 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7431 # (--disable-auto-import) libraries
7432 lt_prog_compiler_pic='-DDLL_EXPORT'
7435 darwin* | rhapsody*)
7436 # PIC is the default on this platform
7437 # Common symbols not allowed in MH_DYLIB files
7438 lt_prog_compiler_pic='-fno-common'
7441 interix[3-9]*)
7442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7443 # Instead, we relocate shared libraries at runtime.
7446 msdosdjgpp*)
7447 # Just because we use GCC doesn't mean we suddenly get shared libraries
7448 # on systems that don't support them.
7449 lt_prog_compiler_can_build_shared=no
7450 enable_shared=no
7453 sysv4*MP*)
7454 if test -d /usr/nec; then
7455 lt_prog_compiler_pic=-Kconform_pic
7459 hpux*)
7460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7461 # not for PA HP-UX.
7462 case $host_cpu in
7463 hppa*64*|ia64*)
7464 # +Z the default
7467 lt_prog_compiler_pic='-fPIC'
7469 esac
7473 lt_prog_compiler_pic='-fPIC'
7475 esac
7476 else
7477 # PORTME Check for flag to pass linker flags through the system compiler.
7478 case $host_os in
7479 aix*)
7480 lt_prog_compiler_wl='-Wl,'
7481 if test "$host_cpu" = ia64; then
7482 # AIX 5 now supports IA64 processor
7483 lt_prog_compiler_static='-Bstatic'
7484 else
7485 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7488 darwin*)
7489 # PIC is the default on this platform
7490 # Common symbols not allowed in MH_DYLIB files
7491 case $cc_basename in
7492 xlc*)
7493 lt_prog_compiler_pic='-qnocommon'
7494 lt_prog_compiler_wl='-Wl,'
7496 esac
7499 mingw* | cygwin* | pw32* | os2*)
7500 # This hack is so that the source file can tell whether it is being
7501 # built for inclusion in a dll (and should export symbols for example).
7502 lt_prog_compiler_pic='-DDLL_EXPORT'
7505 hpux9* | hpux10* | hpux11*)
7506 lt_prog_compiler_wl='-Wl,'
7507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7508 # not for PA HP-UX.
7509 case $host_cpu in
7510 hppa*64*|ia64*)
7511 # +Z the default
7514 lt_prog_compiler_pic='+Z'
7516 esac
7517 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7518 lt_prog_compiler_static='${wl}-a ${wl}archive'
7521 irix5* | irix6* | nonstopux*)
7522 lt_prog_compiler_wl='-Wl,'
7523 # PIC (with -KPIC) is the default.
7524 lt_prog_compiler_static='-non_shared'
7527 newsos6)
7528 lt_prog_compiler_pic='-KPIC'
7529 lt_prog_compiler_static='-Bstatic'
7532 linux* | k*bsd*-gnu)
7533 case $cc_basename in
7534 icc* | ecc*)
7535 lt_prog_compiler_wl='-Wl,'
7536 lt_prog_compiler_pic='-KPIC'
7537 lt_prog_compiler_static='-static'
7539 pgcc* | pgf77* | pgf90* | pgf95*)
7540 # Portland Group compilers (*not* the Pentium gcc compiler,
7541 # which looks to be a dead project)
7542 lt_prog_compiler_wl='-Wl,'
7543 lt_prog_compiler_pic='-fpic'
7544 lt_prog_compiler_static='-Bstatic'
7546 ccc*)
7547 lt_prog_compiler_wl='-Wl,'
7548 # All Alpha code is PIC.
7549 lt_prog_compiler_static='-non_shared'
7552 case `$CC -V 2>&1 | sed 5q` in
7553 *Sun\ C*)
7554 # Sun C 5.9
7555 lt_prog_compiler_pic='-KPIC'
7556 lt_prog_compiler_static='-Bstatic'
7557 lt_prog_compiler_wl='-Wl,'
7559 *Sun\ F*)
7560 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7561 lt_prog_compiler_pic='-KPIC'
7562 lt_prog_compiler_static='-Bstatic'
7563 lt_prog_compiler_wl=''
7565 esac
7567 esac
7570 osf3* | osf4* | osf5*)
7571 lt_prog_compiler_wl='-Wl,'
7572 # All OSF/1 code is PIC.
7573 lt_prog_compiler_static='-non_shared'
7576 rdos*)
7577 lt_prog_compiler_static='-non_shared'
7580 solaris*)
7581 lt_prog_compiler_pic='-KPIC'
7582 lt_prog_compiler_static='-Bstatic'
7583 case $cc_basename in
7584 f77* | f90* | f95*)
7585 lt_prog_compiler_wl='-Qoption ld ';;
7587 lt_prog_compiler_wl='-Wl,';;
7588 esac
7591 sunos4*)
7592 lt_prog_compiler_wl='-Qoption ld '
7593 lt_prog_compiler_pic='-PIC'
7594 lt_prog_compiler_static='-Bstatic'
7597 sysv4 | sysv4.2uw2* | sysv4.3*)
7598 lt_prog_compiler_wl='-Wl,'
7599 lt_prog_compiler_pic='-KPIC'
7600 lt_prog_compiler_static='-Bstatic'
7603 sysv4*MP*)
7604 if test -d /usr/nec ;then
7605 lt_prog_compiler_pic='-Kconform_pic'
7606 lt_prog_compiler_static='-Bstatic'
7610 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7611 lt_prog_compiler_wl='-Wl,'
7612 lt_prog_compiler_pic='-KPIC'
7613 lt_prog_compiler_static='-Bstatic'
7616 unicos*)
7617 lt_prog_compiler_wl='-Wl,'
7618 lt_prog_compiler_can_build_shared=no
7621 uts4*)
7622 lt_prog_compiler_pic='-pic'
7623 lt_prog_compiler_static='-Bstatic'
7627 lt_prog_compiler_can_build_shared=no
7629 esac
7632 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7633 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7636 # Check to make sure the PIC flag actually works.
7638 if test -n "$lt_prog_compiler_pic"; then
7640 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7641 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7642 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645 lt_cv_prog_compiler_pic_works=no
7646 ac_outfile=conftest.$ac_objext
7647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7648 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7649 # Insert the option either (1) after the last *FLAGS variable, or
7650 # (2) before a word containing "conftest.", or (3) at the end.
7651 # Note that $ac_compile itself does not contain backslashes and begins
7652 # with a dollar sign (not a hyphen), so the echo should work correctly.
7653 # The option is referenced via a variable to avoid confusing sed.
7654 lt_compile=`echo "$ac_compile" | $SED \
7655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7657 -e 's:$: $lt_compiler_flag:'`
7658 (eval echo "\"\$as_me:7658: $lt_compile\"" >&5)
7659 (eval "$lt_compile" 2>conftest.err)
7660 ac_status=$?
7661 cat conftest.err >&5
7662 echo "$as_me:7662: \$? = $ac_status" >&5
7663 if (exit $ac_status) && test -s "$ac_outfile"; then
7664 # The compiler can only warn and ignore the option if not recognized
7665 # So say no if there are warnings other than the usual output.
7666 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7669 lt_cv_prog_compiler_pic_works=yes
7672 $rm conftest*
7675 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7676 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7678 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7679 case $lt_prog_compiler_pic in
7680 "" | " "*) ;;
7681 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7682 esac
7683 else
7684 lt_prog_compiler_pic=
7685 lt_prog_compiler_can_build_shared=no
7689 case $host_os in
7690 # For platforms which do not support PIC, -DPIC is meaningless:
7691 *djgpp*)
7692 lt_prog_compiler_pic=
7695 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7697 esac
7700 # Check to make sure the static flag actually works.
7702 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7703 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7704 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7705 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708 lt_cv_prog_compiler_static_works=no
7709 save_LDFLAGS="$LDFLAGS"
7710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7711 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7713 # The linker can only warn and ignore the option if not recognized
7714 # So say no if there are warnings
7715 if test -s conftest.err; then
7716 # Append any errors to the config.log.
7717 cat conftest.err 1>&5
7718 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7720 if diff conftest.exp conftest.er2 >/dev/null; then
7721 lt_cv_prog_compiler_static_works=yes
7723 else
7724 lt_cv_prog_compiler_static_works=yes
7727 $rm -r conftest*
7728 LDFLAGS="$save_LDFLAGS"
7731 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7732 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7734 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7736 else
7737 lt_prog_compiler_static=
7741 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7742 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7743 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746 lt_cv_prog_compiler_c_o=no
7747 $rm -r conftest 2>/dev/null
7748 mkdir conftest
7749 cd conftest
7750 mkdir out
7751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753 lt_compiler_flag="-o out/conftest2.$ac_objext"
7754 # Insert the option either (1) after the last *FLAGS variable, or
7755 # (2) before a word containing "conftest.", or (3) at the end.
7756 # Note that $ac_compile itself does not contain backslashes and begins
7757 # with a dollar sign (not a hyphen), so the echo should work correctly.
7758 lt_compile=`echo "$ac_compile" | $SED \
7759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7761 -e 's:$: $lt_compiler_flag:'`
7762 (eval echo "\"\$as_me:7762: $lt_compile\"" >&5)
7763 (eval "$lt_compile" 2>out/conftest.err)
7764 ac_status=$?
7765 cat out/conftest.err >&5
7766 echo "$as_me:7766: \$? = $ac_status" >&5
7767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7768 then
7769 # The compiler can only warn and ignore the option if not recognized
7770 # So say no if there are warnings
7771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7774 lt_cv_prog_compiler_c_o=yes
7777 chmod u+w . 2>&5
7778 $rm conftest*
7779 # SGI C++ compiler will create directory out/ii_files/ for
7780 # template instantiation
7781 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7782 $rm out/* && rmdir out
7783 cd ..
7784 rmdir conftest
7785 $rm conftest*
7788 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7789 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7792 hard_links="nottested"
7793 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7794 # do not overwrite the value of need_locks provided by the user
7795 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7796 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7797 hard_links=yes
7798 $rm conftest*
7799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7800 touch conftest.a
7801 ln conftest.a conftest.b 2>&5 || hard_links=no
7802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7803 { echo "$as_me:$LINENO: result: $hard_links" >&5
7804 echo "${ECHO_T}$hard_links" >&6; }
7805 if test "$hard_links" = no; then
7806 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7807 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7808 need_locks=warn
7810 else
7811 need_locks=no
7814 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7817 runpath_var=
7818 allow_undefined_flag=
7819 enable_shared_with_static_runtimes=no
7820 archive_cmds=
7821 archive_expsym_cmds=
7822 old_archive_From_new_cmds=
7823 old_archive_from_expsyms_cmds=
7824 export_dynamic_flag_spec=
7825 whole_archive_flag_spec=
7826 thread_safe_flag_spec=
7827 hardcode_libdir_flag_spec=
7828 hardcode_libdir_flag_spec_ld=
7829 hardcode_libdir_separator=
7830 hardcode_direct=no
7831 hardcode_minus_L=no
7832 hardcode_shlibpath_var=unsupported
7833 link_all_deplibs=unknown
7834 hardcode_automatic=no
7835 module_cmds=
7836 module_expsym_cmds=
7837 always_export_symbols=no
7838 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7839 # include_expsyms should be a list of space-separated symbols to be *always*
7840 # included in the symbol list
7841 include_expsyms=
7842 # exclude_expsyms can be an extended regexp of symbols to exclude
7843 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7845 # as well as any symbol that contains `d'.
7846 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7848 # platforms (ab)use it in PIC code, but their linkers get confused if
7849 # the symbol is explicitly referenced. Since portable code cannot
7850 # rely on this symbol name, it's probably fine to never include it in
7851 # preloaded symbol tables.
7852 # Exclude shared library initialization/finalization symbols.
7853 extract_expsyms_cmds=
7854 # Just being paranoid about ensuring that cc_basename is set.
7855 for cc_temp in $compiler""; do
7856 case $cc_temp in
7857 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7858 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7859 \-*) ;;
7860 *) break;;
7861 esac
7862 done
7863 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7865 case $host_os in
7866 cygwin* | mingw* | pw32*)
7867 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7868 # When not using gcc, we currently assume that we are using
7869 # Microsoft Visual C++.
7870 if test "$GCC" != yes; then
7871 with_gnu_ld=no
7874 interix*)
7875 # we just hope/assume this is gcc and not c89 (= MSVC++)
7876 with_gnu_ld=yes
7878 openbsd*)
7879 with_gnu_ld=no
7881 esac
7883 ld_shlibs=yes
7884 if test "$with_gnu_ld" = yes; then
7885 # If archive_cmds runs LD, not CC, wlarc should be empty
7886 wlarc='${wl}'
7888 # Set some defaults for GNU ld with shared library support. These
7889 # are reset later if shared libraries are not supported. Putting them
7890 # here allows them to be overridden if necessary.
7891 runpath_var=LD_RUN_PATH
7892 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7893 export_dynamic_flag_spec='${wl}--export-dynamic'
7894 # ancient GNU ld didn't support --whole-archive et. al.
7895 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7896 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7897 else
7898 whole_archive_flag_spec=
7900 supports_anon_versioning=no
7901 case `$LD -v 2>/dev/null` in
7902 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7903 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7904 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7905 *\ 2.11.*) ;; # other 2.11 versions
7906 *) supports_anon_versioning=yes ;;
7907 esac
7909 # See if GNU ld supports shared libraries.
7910 case $host_os in
7911 aix[3-9]*)
7912 # On AIX/PPC, the GNU linker is very broken
7913 if test "$host_cpu" != ia64; then
7914 ld_shlibs=no
7915 cat <<EOF 1>&2
7917 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7918 *** to be unable to reliably create shared libraries on AIX.
7919 *** Therefore, libtool is disabling shared libraries support. If you
7920 *** really care for shared libraries, you may want to modify your PATH
7921 *** so that a non-GNU linker is found, and then restart.
7927 amigaos*)
7928 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)'
7929 hardcode_libdir_flag_spec='-L$libdir'
7930 hardcode_minus_L=yes
7932 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7933 # that the semantics of dynamic libraries on AmigaOS, at least up
7934 # to version 4, is to share data among multiple programs linked
7935 # with the same dynamic library. Since this doesn't match the
7936 # behavior of shared libraries on other platforms, we can't use
7937 # them.
7938 ld_shlibs=no
7941 beos*)
7942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7943 allow_undefined_flag=unsupported
7944 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7945 # support --undefined. This deserves some investigation. FIXME
7946 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947 else
7948 ld_shlibs=no
7952 cygwin* | mingw* | pw32*)
7953 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7954 # as there is no search path for DLLs.
7955 hardcode_libdir_flag_spec='-L$libdir'
7956 allow_undefined_flag=unsupported
7957 always_export_symbols=no
7958 enable_shared_with_static_runtimes=yes
7959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7961 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7963 # If the export-symbols file already is a .def file (1st line
7964 # is EXPORTS), use it as is; otherwise, prepend...
7965 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7966 cp $export_symbols $output_objdir/$soname.def;
7967 else
7968 echo EXPORTS > $output_objdir/$soname.def;
7969 cat $export_symbols >> $output_objdir/$soname.def;
7971 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7972 else
7973 ld_shlibs=no
7977 interix[3-9]*)
7978 hardcode_direct=no
7979 hardcode_shlibpath_var=no
7980 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7981 export_dynamic_flag_spec='${wl}-E'
7982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7983 # Instead, shared libraries are loaded at an image base (0x10000000 by
7984 # default) and relocated if they conflict, which is a slow very memory
7985 # consuming and fragmenting process. To avoid this, we pick a random,
7986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7987 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7989 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'
7992 gnu* | linux* | k*bsd*-gnu)
7993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7994 tmp_addflag=
7995 case $cc_basename,$host_cpu in
7996 pgcc*) # Portland Group C compiler
7997 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'
7998 tmp_addflag=' $pic_flag'
8000 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8001 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'
8002 tmp_addflag=' $pic_flag -Mnomain' ;;
8003 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8004 tmp_addflag=' -i_dynamic' ;;
8005 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8006 tmp_addflag=' -i_dynamic -nofor_main' ;;
8007 ifc* | ifort*) # Intel Fortran compiler
8008 tmp_addflag=' -nofor_main' ;;
8009 esac
8010 case `$CC -V 2>&1 | sed 5q` in
8011 *Sun\ C*) # Sun C 5.9
8012 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8013 tmp_sharedflag='-G' ;;
8014 *Sun\ F*) # Sun Fortran 8.3
8015 tmp_sharedflag='-G' ;;
8017 tmp_sharedflag='-shared' ;;
8018 esac
8019 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8021 if test $supports_anon_versioning = yes; then
8022 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8024 $echo "local: *; };" >> $output_objdir/$libname.ver~
8025 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8027 else
8028 ld_shlibs=no
8032 netbsd*)
8033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8034 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8035 wlarc=
8036 else
8037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8042 solaris*)
8043 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8044 ld_shlibs=no
8045 cat <<EOF 1>&2
8047 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8048 *** create shared libraries on Solaris systems. Therefore, libtool
8049 *** is disabling shared libraries support. We urge you to upgrade GNU
8050 *** binutils to release 2.9.1 or newer. Another option is to modify
8051 *** your PATH or compiler configuration so that the native linker is
8052 *** used, and then restart.
8055 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8058 else
8059 ld_shlibs=no
8063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8064 case `$LD -v 2>&1` in
8065 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8066 ld_shlibs=no
8067 cat <<_LT_EOF 1>&2
8069 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8070 *** reliably create shared libraries on SCO systems. Therefore, libtool
8071 *** is disabling shared libraries support. We urge you to upgrade GNU
8072 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8073 *** your PATH or compiler configuration so that the native linker is
8074 *** used, and then restart.
8076 _LT_EOF
8079 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8080 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8082 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8083 else
8084 ld_shlibs=no
8087 esac
8090 sunos4*)
8091 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8092 wlarc=
8093 hardcode_direct=yes
8094 hardcode_shlibpath_var=no
8098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8100 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8101 else
8102 ld_shlibs=no
8105 esac
8107 if test "$ld_shlibs" = no; then
8108 runpath_var=
8109 hardcode_libdir_flag_spec=
8110 export_dynamic_flag_spec=
8111 whole_archive_flag_spec=
8113 else
8114 # PORTME fill in a description of your system's linker (not GNU ld)
8115 case $host_os in
8116 aix3*)
8117 allow_undefined_flag=unsupported
8118 always_export_symbols=yes
8119 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'
8120 # Note: this linker hardcodes the directories in LIBPATH if there
8121 # are no directories specified by -L.
8122 hardcode_minus_L=yes
8123 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8124 # Neither direct hardcoding nor static linking is supported with a
8125 # broken collect2.
8126 hardcode_direct=unsupported
8130 aix[4-9]*)
8131 if test "$host_cpu" = ia64; then
8132 # On IA64, the linker does run time linking by default, so we don't
8133 # have to do anything special.
8134 aix_use_runtimelinking=no
8135 exp_sym_flag='-Bexport'
8136 no_entry_flag=""
8137 else
8138 # If we're using GNU nm, then we don't want the "-C" option.
8139 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8140 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8141 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'
8142 else
8143 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'
8145 aix_use_runtimelinking=no
8147 # Test if we are trying to use run time linking or normal
8148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8149 # need to do runtime linking.
8150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8151 for ld_flag in $LDFLAGS; do
8152 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8153 aix_use_runtimelinking=yes
8154 break
8156 done
8158 esac
8160 exp_sym_flag='-bexport'
8161 no_entry_flag='-bnoentry'
8164 # When large executables or shared objects are built, AIX ld can
8165 # have problems creating the table of contents. If linking a library
8166 # or program results in "error TOC overflow" add -mminimal-toc to
8167 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8168 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8170 archive_cmds=''
8171 hardcode_direct=yes
8172 hardcode_libdir_separator=':'
8173 link_all_deplibs=yes
8175 if test "$GCC" = yes; then
8176 case $host_os in aix4.[012]|aix4.[012].*)
8177 # We only want to do this on AIX 4.2 and lower, the check
8178 # below for broken collect2 doesn't work under 4.3+
8179 collect2name=`${CC} -print-prog-name=collect2`
8180 if test -f "$collect2name" && \
8181 strings "$collect2name" | grep resolve_lib_name >/dev/null
8182 then
8183 # We have reworked collect2
8185 else
8186 # We have old collect2
8187 hardcode_direct=unsupported
8188 # It fails to find uninstalled libraries when the uninstalled
8189 # path is not listed in the libpath. Setting hardcode_minus_L
8190 # to unsupported forces relinking
8191 hardcode_minus_L=yes
8192 hardcode_libdir_flag_spec='-L$libdir'
8193 hardcode_libdir_separator=
8196 esac
8197 shared_flag='-shared'
8198 if test "$aix_use_runtimelinking" = yes; then
8199 shared_flag="$shared_flag "'${wl}-G'
8201 else
8202 # not using gcc
8203 if test "$host_cpu" = ia64; then
8204 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8205 # chokes on -Wl,-G. The following line is correct:
8206 shared_flag='-G'
8207 else
8208 if test "$aix_use_runtimelinking" = yes; then
8209 shared_flag='${wl}-G'
8210 else
8211 shared_flag='${wl}-bM:SRE'
8216 # It seems that -bexpall does not export symbols beginning with
8217 # underscore (_), so it is better to generate a list of symbols to export.
8218 always_export_symbols=yes
8219 if test "$aix_use_runtimelinking" = yes; then
8220 # Warning - without using the other runtime loading flags (-brtl),
8221 # -berok will link without error, but may produce a broken library.
8222 allow_undefined_flag='-berok'
8223 # Determine the default libpath from the value encoded in an empty executable.
8224 cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h. */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8232 main ()
8236 return 0;
8238 _ACEOF
8239 rm -f conftest.$ac_objext conftest$ac_exeext
8240 if { (ac_try="$ac_link"
8241 case "(($ac_try" in
8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_link") 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest$ac_exeext &&
8256 $as_test_x conftest$ac_exeext; then
8258 lt_aix_libpath_sed='
8259 /Import File Strings/,/^$/ {
8260 /^0/ {
8261 s/^0 *\(.*\)$/\1/
8265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8266 # Check for a 64-bit object if we didn't find anything.
8267 if test -z "$aix_libpath"; then
8268 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8278 conftest$ac_exeext conftest.$ac_ext
8279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8281 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8282 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"
8283 else
8284 if test "$host_cpu" = ia64; then
8285 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8286 allow_undefined_flag="-z nodefs"
8287 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"
8288 else
8289 # Determine the default libpath from the value encoded in an empty executable.
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8298 main ()
8302 return 0;
8304 _ACEOF
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (ac_try="$ac_link"
8307 case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8310 esac
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_link") 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest$ac_exeext &&
8322 $as_test_x conftest$ac_exeext; then
8324 lt_aix_libpath_sed='
8325 /Import File Strings/,/^$/ {
8326 /^0/ {
8327 s/^0 *\(.*\)$/\1/
8331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8332 # Check for a 64-bit object if we didn't find anything.
8333 if test -z "$aix_libpath"; then
8334 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8344 conftest$ac_exeext conftest.$ac_ext
8345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8347 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8348 # Warning - without using the other run time loading flags,
8349 # -berok will link without error, but may produce a broken library.
8350 no_undefined_flag=' ${wl}-bernotok'
8351 allow_undefined_flag=' ${wl}-berok'
8352 # Exported symbols can be pulled into shared objects from archives
8353 whole_archive_flag_spec='$convenience'
8354 archive_cmds_need_lc=yes
8355 # This is similar to how AIX traditionally builds its shared libraries.
8356 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'
8361 amigaos*)
8362 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)'
8363 hardcode_libdir_flag_spec='-L$libdir'
8364 hardcode_minus_L=yes
8365 # see comment about different semantics on the GNU ld section
8366 ld_shlibs=no
8369 bsdi[45]*)
8370 export_dynamic_flag_spec=-rdynamic
8373 cygwin* | mingw* | pw32*)
8374 # When not using gcc, we currently assume that we are using
8375 # Microsoft Visual C++.
8376 # hardcode_libdir_flag_spec is actually meaningless, as there is
8377 # no search path for DLLs.
8378 hardcode_libdir_flag_spec=' '
8379 allow_undefined_flag=unsupported
8380 # Tell ltmain to make .lib files, not .a files.
8381 libext=lib
8382 # Tell ltmain to make .dll files, not .so files.
8383 shrext_cmds=".dll"
8384 # FIXME: Setting linknames here is a bad hack.
8385 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8386 # The linker will automatically build a .lib file if we build a DLL.
8387 old_archive_From_new_cmds='true'
8388 # FIXME: Should let the user specify the lib program.
8389 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8390 fix_srcfile_path='`cygpath -w "$srcfile"`'
8391 enable_shared_with_static_runtimes=yes
8394 darwin* | rhapsody*)
8395 case $host_os in
8396 rhapsody* | darwin1.[012])
8397 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8399 *) # Darwin 1.3 on
8400 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8401 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8402 else
8403 case ${MACOSX_DEPLOYMENT_TARGET} in
8404 10.[012])
8405 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8407 10.*)
8408 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8410 esac
8413 esac
8414 archive_cmds_need_lc=no
8415 hardcode_direct=no
8416 hardcode_automatic=yes
8417 hardcode_shlibpath_var=unsupported
8418 whole_archive_flag_spec=''
8419 link_all_deplibs=yes
8420 if test "$GCC" = yes ; then
8421 output_verbose_link_cmd='echo'
8422 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8423 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8424 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8425 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8426 else
8427 case $cc_basename in
8428 xlc*)
8429 output_verbose_link_cmd='echo'
8430 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8431 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8432 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8433 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8434 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}'
8437 ld_shlibs=no
8439 esac
8443 dgux*)
8444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8445 hardcode_libdir_flag_spec='-L$libdir'
8446 hardcode_shlibpath_var=no
8449 freebsd1*)
8450 ld_shlibs=no
8453 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8454 # support. Future versions do this automatically, but an explicit c++rt0.o
8455 # does not break anything, and helps significantly (at the cost of a little
8456 # extra space).
8457 freebsd2.2*)
8458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8459 hardcode_libdir_flag_spec='-R$libdir'
8460 hardcode_direct=yes
8461 hardcode_shlibpath_var=no
8464 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8465 freebsd2*)
8466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8467 hardcode_direct=yes
8468 hardcode_minus_L=yes
8469 hardcode_shlibpath_var=no
8472 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8473 freebsd* | dragonfly*)
8474 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8475 hardcode_libdir_flag_spec='-R$libdir'
8476 hardcode_direct=yes
8477 hardcode_shlibpath_var=no
8480 hpux9*)
8481 if test "$GCC" = yes; then
8482 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'
8483 else
8484 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'
8486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8487 hardcode_libdir_separator=:
8488 hardcode_direct=yes
8490 # hardcode_minus_L: Not really in the search PATH,
8491 # but as the default location of the library.
8492 hardcode_minus_L=yes
8493 export_dynamic_flag_spec='${wl}-E'
8496 hpux10*)
8497 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8498 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8499 else
8500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8502 if test "$with_gnu_ld" = no; then
8503 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8504 hardcode_libdir_separator=:
8506 hardcode_direct=yes
8507 export_dynamic_flag_spec='${wl}-E'
8509 # hardcode_minus_L: Not really in the search PATH,
8510 # but as the default location of the library.
8511 hardcode_minus_L=yes
8515 hpux11*)
8516 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8517 case $host_cpu in
8518 hppa*64*)
8519 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8521 ia64*)
8522 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8525 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8527 esac
8528 else
8529 case $host_cpu in
8530 hppa*64*)
8531 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8533 ia64*)
8534 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8537 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8539 esac
8541 if test "$with_gnu_ld" = no; then
8542 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8543 hardcode_libdir_separator=:
8545 case $host_cpu in
8546 hppa*64*|ia64*)
8547 hardcode_libdir_flag_spec_ld='+b $libdir'
8548 hardcode_direct=no
8549 hardcode_shlibpath_var=no
8552 hardcode_direct=yes
8553 export_dynamic_flag_spec='${wl}-E'
8555 # hardcode_minus_L: Not really in the search PATH,
8556 # but as the default location of the library.
8557 hardcode_minus_L=yes
8559 esac
8563 irix5* | irix6* | nonstopux*)
8564 if test "$GCC" = yes; then
8565 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'
8566 else
8567 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'
8568 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8571 hardcode_libdir_separator=:
8572 link_all_deplibs=yes
8575 netbsd*)
8576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8578 else
8579 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8581 hardcode_libdir_flag_spec='-R$libdir'
8582 hardcode_direct=yes
8583 hardcode_shlibpath_var=no
8586 newsos6)
8587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8588 hardcode_direct=yes
8589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8590 hardcode_libdir_separator=:
8591 hardcode_shlibpath_var=no
8594 openbsd*)
8595 if test -f /usr/libexec/ld.so; then
8596 hardcode_direct=yes
8597 hardcode_shlibpath_var=no
8598 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8599 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8600 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8602 export_dynamic_flag_spec='${wl}-E'
8603 else
8604 case $host_os in
8605 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8607 hardcode_libdir_flag_spec='-R$libdir'
8610 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8611 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8613 esac
8615 else
8616 ld_shlibs=no
8620 os2*)
8621 hardcode_libdir_flag_spec='-L$libdir'
8622 hardcode_minus_L=yes
8623 allow_undefined_flag=unsupported
8624 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'
8625 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8628 osf3*)
8629 if test "$GCC" = yes; then
8630 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8631 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'
8632 else
8633 allow_undefined_flag=' -expect_unresolved \*'
8634 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'
8636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8637 hardcode_libdir_separator=:
8640 osf4* | osf5*) # as osf3* with the addition of -msym flag
8641 if test "$GCC" = yes; then
8642 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8643 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'
8644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8645 else
8646 allow_undefined_flag=' -expect_unresolved \*'
8647 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'
8648 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8649 $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'
8651 # Both c and cxx compiler support -rpath directly
8652 hardcode_libdir_flag_spec='-rpath $libdir'
8654 hardcode_libdir_separator=:
8657 solaris*)
8658 no_undefined_flag=' -z text'
8659 if test "$GCC" = yes; then
8660 wlarc='${wl}'
8661 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8662 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8663 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8664 else
8665 wlarc=''
8666 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8667 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8670 hardcode_libdir_flag_spec='-R$libdir'
8671 hardcode_shlibpath_var=no
8672 case $host_os in
8673 solaris2.[0-5] | solaris2.[0-5].*) ;;
8675 # The compiler driver will combine and reorder linker options,
8676 # but understands `-z linker_flag'. GCC discards it without `$wl',
8677 # but is careful enough not to reorder.
8678 # Supported since Solaris 2.6 (maybe 2.5.1?)
8679 if test "$GCC" = yes; then
8680 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8681 else
8682 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8685 esac
8686 link_all_deplibs=yes
8689 sunos4*)
8690 if test "x$host_vendor" = xsequent; then
8691 # Use $CC to link under sequent, because it throws in some extra .o
8692 # files that make .init and .fini sections work.
8693 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8694 else
8695 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8697 hardcode_libdir_flag_spec='-L$libdir'
8698 hardcode_direct=yes
8699 hardcode_minus_L=yes
8700 hardcode_shlibpath_var=no
8703 sysv4)
8704 case $host_vendor in
8705 sni)
8706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8707 hardcode_direct=yes # is this really true???
8709 siemens)
8710 ## LD is ld it makes a PLAMLIB
8711 ## CC just makes a GrossModule.
8712 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8713 reload_cmds='$CC -r -o $output$reload_objs'
8714 hardcode_direct=no
8716 motorola)
8717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8720 esac
8721 runpath_var='LD_RUN_PATH'
8722 hardcode_shlibpath_var=no
8725 sysv4.3*)
8726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8727 hardcode_shlibpath_var=no
8728 export_dynamic_flag_spec='-Bexport'
8731 sysv4*MP*)
8732 if test -d /usr/nec; then
8733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734 hardcode_shlibpath_var=no
8735 runpath_var=LD_RUN_PATH
8736 hardcode_runpath_var=yes
8737 ld_shlibs=yes
8741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8742 no_undefined_flag='${wl}-z,text'
8743 archive_cmds_need_lc=no
8744 hardcode_shlibpath_var=no
8745 runpath_var='LD_RUN_PATH'
8747 if test "$GCC" = yes; then
8748 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750 else
8751 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8752 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8756 sysv5* | sco3.2v5* | sco5v6*)
8757 # Note: We can NOT use -z defs as we might desire, because we do not
8758 # link with -lc, and that would cause any symbols used from libc to
8759 # always be unresolved, which means just about no library would
8760 # ever link correctly. If we're not using GNU ld we use -z text
8761 # though, which does catch some bad symbols but isn't as heavy-handed
8762 # as -z defs.
8763 no_undefined_flag='${wl}-z,text'
8764 allow_undefined_flag='${wl}-z,nodefs'
8765 archive_cmds_need_lc=no
8766 hardcode_shlibpath_var=no
8767 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8768 hardcode_libdir_separator=':'
8769 link_all_deplibs=yes
8770 export_dynamic_flag_spec='${wl}-Bexport'
8771 runpath_var='LD_RUN_PATH'
8773 if test "$GCC" = yes; then
8774 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8775 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776 else
8777 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8778 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8782 uts4*)
8783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_libdir_flag_spec='-L$libdir'
8785 hardcode_shlibpath_var=no
8789 ld_shlibs=no
8791 esac
8794 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8795 echo "${ECHO_T}$ld_shlibs" >&6; }
8796 test "$ld_shlibs" = no && can_build_shared=no
8799 # Do we need to explicitly link libc?
8801 case "x$archive_cmds_need_lc" in
8802 x|xyes)
8803 # Assume -lc should be added
8804 archive_cmds_need_lc=yes
8806 if test "$enable_shared" = yes && test "$GCC" = yes; then
8807 case $archive_cmds in
8808 *'~'*)
8809 # FIXME: we may have to deal with multi-command sequences.
8811 '$CC '*)
8812 # Test whether the compiler implicitly links with -lc since on some
8813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8814 # to ld, don't add -lc before -lgcc.
8815 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8816 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8817 $rm conftest*
8818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8821 (eval $ac_compile) 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } 2>conftest.err; then
8825 soname=conftest
8826 lib=conftest
8827 libobjs=conftest.$ac_objext
8828 deplibs=
8829 wl=$lt_prog_compiler_wl
8830 pic_flag=$lt_prog_compiler_pic
8831 compiler_flags=-v
8832 linker_flags=-v
8833 verstring=
8834 output_objdir=.
8835 libname=conftest
8836 lt_save_allow_undefined_flag=$allow_undefined_flag
8837 allow_undefined_flag=
8838 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8839 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }
8843 then
8844 archive_cmds_need_lc=no
8845 else
8846 archive_cmds_need_lc=yes
8848 allow_undefined_flag=$lt_save_allow_undefined_flag
8849 else
8850 cat conftest.err 1>&5
8852 $rm conftest*
8853 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8854 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8856 esac
8859 esac
8861 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8862 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8863 library_names_spec=
8864 libname_spec='lib$name'
8865 soname_spec=
8866 shrext_cmds=".so"
8867 postinstall_cmds=
8868 postuninstall_cmds=
8869 finish_cmds=
8870 finish_eval=
8871 shlibpath_var=
8872 shlibpath_overrides_runpath=unknown
8873 version_type=none
8874 dynamic_linker="$host_os ld.so"
8875 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8877 if test "$GCC" = yes; then
8878 case $host_os in
8879 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8880 *) lt_awk_arg="/^libraries:/" ;;
8881 esac
8882 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8883 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8884 # if the path contains ";" then we assume it to be the separator
8885 # otherwise default to the standard path separator (i.e. ":") - it is
8886 # assumed that no part of a normal pathname contains ";" but that should
8887 # okay in the real world where ";" in dirpaths is itself problematic.
8888 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8889 else
8890 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8892 # Ok, now we have the path, separated by spaces, we can step through it
8893 # and add multilib dir if necessary.
8894 lt_tmp_lt_search_path_spec=
8895 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8896 for lt_sys_path in $lt_search_path_spec; do
8897 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8899 else
8900 test -d "$lt_sys_path" && \
8901 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8903 done
8904 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8905 BEGIN {RS=" "; FS="/|\n";} {
8906 lt_foo="";
8907 lt_count=0;
8908 for (lt_i = NF; lt_i > 0; lt_i--) {
8909 if ($lt_i != "" && $lt_i != ".") {
8910 if ($lt_i == "..") {
8911 lt_count++;
8912 } else {
8913 if (lt_count == 0) {
8914 lt_foo="/" $lt_i lt_foo;
8915 } else {
8916 lt_count--;
8921 if (lt_foo != "") { lt_freq[lt_foo]++; }
8922 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8924 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8925 else
8926 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8928 need_lib_prefix=unknown
8929 hardcode_into_libs=no
8931 # when you set need_version to no, make sure it does not cause -set_version
8932 # flags to be left without arguments
8933 need_version=unknown
8935 case $host_os in
8936 aix3*)
8937 version_type=linux
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8939 shlibpath_var=LIBPATH
8941 # AIX 3 has no versioning support, so we append a major version to the name.
8942 soname_spec='${libname}${release}${shared_ext}$major'
8945 aix[4-9]*)
8946 version_type=linux
8947 need_lib_prefix=no
8948 need_version=no
8949 hardcode_into_libs=yes
8950 if test "$host_cpu" = ia64; then
8951 # AIX 5 supports IA64
8952 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 else
8955 # With GCC up to 2.95.x, collect2 would create an import file
8956 # for dependence libraries. The import file would start with
8957 # the line `#! .'. This would cause the generated library to
8958 # depend on `.', always an invalid library. This was fixed in
8959 # development snapshots of GCC prior to 3.0.
8960 case $host_os in
8961 aix4 | aix4.[01] | aix4.[01].*)
8962 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8963 echo ' yes '
8964 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8966 else
8967 can_build_shared=no
8970 esac
8971 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8972 # soname into executable. Probably we can add versioning support to
8973 # collect2, so additional links can be useful in future.
8974 if test "$aix_use_runtimelinking" = yes; then
8975 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8976 # instead of lib<name>.a to let people know that these are not
8977 # typical AIX shared libraries.
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 else
8980 # We preserve .a as extension for shared libraries through AIX4.2
8981 # and later when we are not doing run time linking.
8982 library_names_spec='${libname}${release}.a $libname.a'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8985 shlibpath_var=LIBPATH
8989 amigaos*)
8990 library_names_spec='$libname.ixlibrary $libname.a'
8991 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8992 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'
8995 beos*)
8996 library_names_spec='${libname}${shared_ext}'
8997 dynamic_linker="$host_os ld.so"
8998 shlibpath_var=LIBRARY_PATH
9001 bsdi[45]*)
9002 version_type=linux
9003 need_version=no
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 soname_spec='${libname}${release}${shared_ext}$major'
9006 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9009 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9010 # the default ld.so.conf also contains /usr/contrib/lib and
9011 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9012 # libtool to hard-code these into programs
9015 cygwin* | mingw* | pw32*)
9016 version_type=windows
9017 shrext_cmds=".dll"
9018 need_version=no
9019 need_lib_prefix=no
9021 case $GCC,$host_os in
9022 yes,cygwin* | yes,mingw* | yes,pw32*)
9023 library_names_spec='$libname.dll.a'
9024 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9025 postinstall_cmds='base_file=`basename \${file}`~
9026 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9027 dldir=$destdir/`dirname \$dlpath`~
9028 test -d \$dldir || mkdir -p \$dldir~
9029 $install_prog $dir/$dlname \$dldir/$dlname~
9030 chmod a+x \$dldir/$dlname'
9031 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9032 dlpath=$dir/\$dldll~
9033 $rm \$dlpath'
9034 shlibpath_overrides_runpath=yes
9036 case $host_os in
9037 cygwin*)
9038 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9039 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9040 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9042 mingw*)
9043 # MinGW DLLs use traditional 'lib' prefix
9044 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9045 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9046 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9047 # It is most probably a Windows format PATH printed by
9048 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9049 # path with ; separators, and with drive letters. We can handle the
9050 # drive letters (cygwin fileutils understands them), so leave them,
9051 # especially as we might pass files found there to a mingw objdump,
9052 # which wouldn't understand a cygwinified path. Ahh.
9053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9054 else
9055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9058 pw32*)
9059 # pw32 DLLs use 'pw' prefix rather than 'lib'
9060 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9062 esac
9066 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9068 esac
9069 dynamic_linker='Win32 ld.exe'
9070 # FIXME: first we should search . and the directory the executable is in
9071 shlibpath_var=PATH
9074 darwin* | rhapsody*)
9075 dynamic_linker="$host_os dyld"
9076 version_type=darwin
9077 need_lib_prefix=no
9078 need_version=no
9079 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9080 soname_spec='${libname}${release}${major}$shared_ext'
9081 shlibpath_overrides_runpath=yes
9082 shlibpath_var=DYLD_LIBRARY_PATH
9083 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9085 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9086 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9089 dgux*)
9090 version_type=linux
9091 need_lib_prefix=no
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9098 freebsd1*)
9099 dynamic_linker=no
9102 freebsd* | dragonfly*)
9103 # DragonFly does not have aout. When/if they implement a new
9104 # versioning mechanism, adjust this.
9105 if test -x /usr/bin/objformat; then
9106 objformat=`/usr/bin/objformat`
9107 else
9108 case $host_os in
9109 freebsd[123]*) objformat=aout ;;
9110 *) objformat=elf ;;
9111 esac
9113 version_type=freebsd-$objformat
9114 case $version_type in
9115 freebsd-elf*)
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9117 need_version=no
9118 need_lib_prefix=no
9120 freebsd-*)
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9122 need_version=yes
9124 esac
9125 shlibpath_var=LD_LIBRARY_PATH
9126 case $host_os in
9127 freebsd2*)
9128 shlibpath_overrides_runpath=yes
9130 freebsd3.[01]* | freebsdelf3.[01]*)
9131 shlibpath_overrides_runpath=yes
9132 hardcode_into_libs=yes
9134 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9135 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9136 shlibpath_overrides_runpath=no
9137 hardcode_into_libs=yes
9139 *) # from 4.6 on, and DragonFly
9140 shlibpath_overrides_runpath=yes
9141 hardcode_into_libs=yes
9143 esac
9146 gnu*)
9147 version_type=linux
9148 need_lib_prefix=no
9149 need_version=no
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 hardcode_into_libs=yes
9156 hpux9* | hpux10* | hpux11*)
9157 # Give a soname corresponding to the major version so that dld.sl refuses to
9158 # link against other versions.
9159 version_type=sunos
9160 need_lib_prefix=no
9161 need_version=no
9162 case $host_cpu in
9163 ia64*)
9164 shrext_cmds='.so'
9165 hardcode_into_libs=yes
9166 dynamic_linker="$host_os dld.so"
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 if test "X$HPUX_IA64_MODE" = X32; then
9172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9173 else
9174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9178 hppa*64*)
9179 shrext_cmds='.sl'
9180 hardcode_into_libs=yes
9181 dynamic_linker="$host_os dld.sl"
9182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9190 shrext_cmds='.sl'
9191 dynamic_linker="$host_os dld.sl"
9192 shlibpath_var=SHLIB_PATH
9193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
9197 esac
9198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9199 postinstall_cmds='chmod 555 $lib'
9202 interix[3-9]*)
9203 version_type=linux
9204 need_lib_prefix=no
9205 need_version=no
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=no
9211 hardcode_into_libs=yes
9214 irix5* | irix6* | nonstopux*)
9215 case $host_os in
9216 nonstopux*) version_type=nonstopux ;;
9218 if test "$lt_cv_prog_gnu_ld" = yes; then
9219 version_type=linux
9220 else
9221 version_type=irix
9222 fi ;;
9223 esac
9224 need_lib_prefix=no
9225 need_version=no
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9228 case $host_os in
9229 irix5* | nonstopux*)
9230 libsuff= shlibsuff=
9233 case $LD in # libtool.m4 will add one of these switches to LD
9234 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9235 libsuff= shlibsuff= libmagic=32-bit;;
9236 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9237 libsuff=32 shlibsuff=N32 libmagic=N32;;
9238 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9239 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9240 *) libsuff= shlibsuff= libmagic=never-match;;
9241 esac
9243 esac
9244 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9245 shlibpath_overrides_runpath=no
9246 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9247 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9248 hardcode_into_libs=yes
9251 # No shared lib support for Linux oldld, aout, or coff.
9252 linux*oldld* | linux*aout* | linux*coff*)
9253 dynamic_linker=no
9256 # This must be Linux ELF.
9257 linux* | k*bsd*-gnu)
9258 version_type=linux
9259 need_lib_prefix=no
9260 need_version=no
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9264 shlibpath_var=LD_LIBRARY_PATH
9265 shlibpath_overrides_runpath=no
9266 # This implies no fast_install, which is unacceptable.
9267 # Some rework will be needed to allow for fast_install
9268 # before this can be enabled.
9269 hardcode_into_libs=yes
9271 # Append ld.so.conf contents to the search path
9272 if test -f /etc/ld.so.conf; then
9273 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9274 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9277 # We used to test for /lib/ld.so.1 and disable shared libraries on
9278 # powerpc, because MkLinux only supported shared libraries with the
9279 # GNU dynamic linker. Since this was broken with cross compilers,
9280 # most powerpc-linux boxes support dynamic linking these days and
9281 # people can always --disable-shared, the test was removed, and we
9282 # assume the GNU/Linux dynamic linker is in use.
9283 dynamic_linker='GNU/Linux ld.so'
9286 netbsd*)
9287 version_type=sunos
9288 need_lib_prefix=no
9289 need_version=no
9290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9293 dynamic_linker='NetBSD (a.out) ld.so'
9294 else
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 dynamic_linker='NetBSD ld.elf_so'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=yes
9301 hardcode_into_libs=yes
9304 newsos6)
9305 version_type=linux
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 shlibpath_overrides_runpath=yes
9311 nto-qnx*)
9312 version_type=linux
9313 need_lib_prefix=no
9314 need_version=no
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=yes
9321 openbsd*)
9322 version_type=sunos
9323 sys_lib_dlsearch_path_spec="/usr/lib"
9324 need_lib_prefix=no
9325 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9326 case $host_os in
9327 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9328 *) need_version=no ;;
9329 esac
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9334 case $host_os in
9335 openbsd2.[89] | openbsd2.[89].*)
9336 shlibpath_overrides_runpath=no
9339 shlibpath_overrides_runpath=yes
9341 esac
9342 else
9343 shlibpath_overrides_runpath=yes
9347 os2*)
9348 libname_spec='$name'
9349 shrext_cmds=".dll"
9350 need_lib_prefix=no
9351 library_names_spec='$libname${shared_ext} $libname.a'
9352 dynamic_linker='OS/2 ld.exe'
9353 shlibpath_var=LIBPATH
9356 osf3* | osf4* | osf5*)
9357 version_type=osf
9358 need_lib_prefix=no
9359 need_version=no
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9367 rdos*)
9368 dynamic_linker=no
9371 solaris*)
9372 version_type=linux
9373 need_lib_prefix=no
9374 need_version=no
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376 soname_spec='${libname}${release}${shared_ext}$major'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=yes
9379 hardcode_into_libs=yes
9380 # ldd complains unless libraries are executable
9381 postinstall_cmds='chmod +x $lib'
9384 sunos4*)
9385 version_type=sunos
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=yes
9390 if test "$with_gnu_ld" = yes; then
9391 need_lib_prefix=no
9393 need_version=yes
9396 sysv4 | sysv4.3*)
9397 version_type=linux
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 case $host_vendor in
9402 sni)
9403 shlibpath_overrides_runpath=no
9404 need_lib_prefix=no
9405 export_dynamic_flag_spec='${wl}-Blargedynsym'
9406 runpath_var=LD_RUN_PATH
9408 siemens)
9409 need_lib_prefix=no
9411 motorola)
9412 need_lib_prefix=no
9413 need_version=no
9414 shlibpath_overrides_runpath=no
9415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9417 esac
9420 sysv4*MP*)
9421 if test -d /usr/nec ;then
9422 version_type=linux
9423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9424 soname_spec='$libname${shared_ext}.$major'
9425 shlibpath_var=LD_LIBRARY_PATH
9429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9430 version_type=freebsd-elf
9431 need_lib_prefix=no
9432 need_version=no
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 hardcode_into_libs=yes
9437 if test "$with_gnu_ld" = yes; then
9438 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9439 shlibpath_overrides_runpath=no
9440 else
9441 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9442 shlibpath_overrides_runpath=yes
9443 case $host_os in
9444 sco3.2v5*)
9445 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9447 esac
9449 sys_lib_dlsearch_path_spec='/usr/lib'
9452 uts4*)
9453 version_type=linux
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9460 dynamic_linker=no
9462 esac
9463 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9464 echo "${ECHO_T}$dynamic_linker" >&6; }
9465 test "$dynamic_linker" = no && can_build_shared=no
9467 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9473 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9474 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9480 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9483 if test "$GCC" = yes; then
9484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9487 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9489 hardcode_action=
9490 if test -n "$hardcode_libdir_flag_spec" || \
9491 test -n "$runpath_var" || \
9492 test "X$hardcode_automatic" = "Xyes" ; then
9494 # We can hardcode non-existant directories.
9495 if test "$hardcode_direct" != no &&
9496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9497 # have to relink, otherwise we might link with an installed library
9498 # when we should be linking with a yet-to-be-installed one
9499 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9500 test "$hardcode_minus_L" != no; then
9501 # Linking always hardcodes the temporary library directory.
9502 hardcode_action=relink
9503 else
9504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9505 hardcode_action=immediate
9507 else
9508 # We cannot hardcode anything, or else we can only hardcode existing
9509 # directories.
9510 hardcode_action=unsupported
9512 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9513 echo "${ECHO_T}$hardcode_action" >&6; }
9515 if test "$hardcode_action" = relink; then
9516 # Fast installation is not supported
9517 enable_fast_install=no
9518 elif test "$shlibpath_overrides_runpath" = yes ||
9519 test "$enable_shared" = no; then
9520 # Fast installation is not necessary
9521 enable_fast_install=needless
9524 striplib=
9525 old_striplib=
9526 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9527 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9528 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9529 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9530 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9531 { echo "$as_me:$LINENO: result: yes" >&5
9532 echo "${ECHO_T}yes" >&6; }
9533 else
9534 # FIXME - insert some real tests, host_os isn't really good enough
9535 case $host_os in
9536 darwin*)
9537 if test -n "$STRIP" ; then
9538 striplib="$STRIP -x"
9539 old_striplib="$STRIP -S"
9540 { echo "$as_me:$LINENO: result: yes" >&5
9541 echo "${ECHO_T}yes" >&6; }
9542 else
9543 { echo "$as_me:$LINENO: result: no" >&5
9544 echo "${ECHO_T}no" >&6; }
9548 { echo "$as_me:$LINENO: result: no" >&5
9549 echo "${ECHO_T}no" >&6; }
9551 esac
9554 if test "x$enable_dlopen" != xyes; then
9555 enable_dlopen=unknown
9556 enable_dlopen_self=unknown
9557 enable_dlopen_self_static=unknown
9558 else
9559 lt_cv_dlopen=no
9560 lt_cv_dlopen_libs=
9562 case $host_os in
9563 beos*)
9564 lt_cv_dlopen="load_add_on"
9565 lt_cv_dlopen_libs=
9566 lt_cv_dlopen_self=yes
9569 mingw* | pw32*)
9570 lt_cv_dlopen="LoadLibrary"
9571 lt_cv_dlopen_libs=
9574 cygwin*)
9575 lt_cv_dlopen="dlopen"
9576 lt_cv_dlopen_libs=
9579 darwin*)
9580 # if libdl is installed we need to link against it
9581 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9582 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9583 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586 ac_check_lib_save_LIBS=$LIBS
9587 LIBS="-ldl $LIBS"
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h. */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 char dlopen ();
9603 main ()
9605 return dlopen ();
9607 return 0;
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (ac_try="$ac_link"
9612 case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615 esac
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_link") 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest$ac_exeext &&
9627 $as_test_x conftest$ac_exeext; then
9628 ac_cv_lib_dl_dlopen=yes
9629 else
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9633 ac_cv_lib_dl_dlopen=no
9636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LIBS=$ac_check_lib_save_LIBS
9640 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9641 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9642 if test $ac_cv_lib_dl_dlopen = yes; then
9643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9644 else
9646 lt_cv_dlopen="dyld"
9647 lt_cv_dlopen_libs=
9648 lt_cv_dlopen_self=yes
9655 { echo "$as_me:$LINENO: checking for shl_load" >&5
9656 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9657 if test "${ac_cv_func_shl_load+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660 cat >conftest.$ac_ext <<_ACEOF
9661 /* confdefs.h. */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9668 #define shl_load innocuous_shl_load
9670 /* System header to define __stub macros and hopefully few prototypes,
9671 which can conflict with char shl_load (); below.
9672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9673 <limits.h> exists even on freestanding compilers. */
9675 #ifdef __STDC__
9676 # include <limits.h>
9677 #else
9678 # include <assert.h>
9679 #endif
9681 #undef shl_load
9683 /* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
9686 #ifdef __cplusplus
9687 extern "C"
9688 #endif
9689 char shl_load ();
9690 /* The GNU C library defines this for functions which it implements
9691 to always fail with ENOSYS. Some functions are actually named
9692 something starting with __ and the normal name is an alias. */
9693 #if defined __stub_shl_load || defined __stub___shl_load
9694 choke me
9695 #endif
9698 main ()
9700 return shl_load ();
9702 return 0;
9704 _ACEOF
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (ac_try="$ac_link"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_link") 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest$ac_exeext &&
9722 $as_test_x conftest$ac_exeext; then
9723 ac_cv_func_shl_load=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_cv_func_shl_load=no
9731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9732 conftest$ac_exeext conftest.$ac_ext
9734 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9735 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9736 if test $ac_cv_func_shl_load = yes; then
9737 lt_cv_dlopen="shl_load"
9738 else
9739 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9740 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9741 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744 ac_check_lib_save_LIBS=$LIBS
9745 LIBS="-ldld $LIBS"
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9753 /* Override any GCC internal prototype to avoid an error.
9754 Use char because int might match the return type of a GCC
9755 builtin and then its argument prototype would still apply. */
9756 #ifdef __cplusplus
9757 extern "C"
9758 #endif
9759 char shl_load ();
9761 main ()
9763 return shl_load ();
9765 return 0;
9767 _ACEOF
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (ac_try="$ac_link"
9770 case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_link") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest$ac_exeext &&
9785 $as_test_x conftest$ac_exeext; then
9786 ac_cv_lib_dld_shl_load=yes
9787 else
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_cv_lib_dld_shl_load=no
9794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9795 conftest$ac_exeext conftest.$ac_ext
9796 LIBS=$ac_check_lib_save_LIBS
9798 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9799 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9800 if test $ac_cv_lib_dld_shl_load = yes; then
9801 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9802 else
9803 { echo "$as_me:$LINENO: checking for dlopen" >&5
9804 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9805 if test "${ac_cv_func_dlopen+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h. */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9816 #define dlopen innocuous_dlopen
9818 /* System header to define __stub macros and hopefully few prototypes,
9819 which can conflict with char dlopen (); below.
9820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9821 <limits.h> exists even on freestanding compilers. */
9823 #ifdef __STDC__
9824 # include <limits.h>
9825 #else
9826 # include <assert.h>
9827 #endif
9829 #undef dlopen
9831 /* Override any GCC internal prototype to avoid an error.
9832 Use char because int might match the return type of a GCC
9833 builtin and then its argument prototype would still apply. */
9834 #ifdef __cplusplus
9835 extern "C"
9836 #endif
9837 char dlopen ();
9838 /* The GNU C library defines this for functions which it implements
9839 to always fail with ENOSYS. Some functions are actually named
9840 something starting with __ and the normal name is an alias. */
9841 #if defined __stub_dlopen || defined __stub___dlopen
9842 choke me
9843 #endif
9846 main ()
9848 return dlopen ();
9850 return 0;
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9855 case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_link") 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } && {
9867 test -z "$ac_c_werror_flag" ||
9868 test ! -s conftest.err
9869 } && test -s conftest$ac_exeext &&
9870 $as_test_x conftest$ac_exeext; then
9871 ac_cv_func_dlopen=yes
9872 else
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9876 ac_cv_func_dlopen=no
9879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9880 conftest$ac_exeext conftest.$ac_ext
9882 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9883 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9884 if test $ac_cv_func_dlopen = yes; then
9885 lt_cv_dlopen="dlopen"
9886 else
9887 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9888 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892 ac_check_lib_save_LIBS=$LIBS
9893 LIBS="-ldl $LIBS"
9894 cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h. */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9901 /* Override any GCC internal prototype to avoid an error.
9902 Use char because int might match the return type of a GCC
9903 builtin and then its argument prototype would still apply. */
9904 #ifdef __cplusplus
9905 extern "C"
9906 #endif
9907 char dlopen ();
9909 main ()
9911 return dlopen ();
9913 return 0;
9915 _ACEOF
9916 rm -f conftest.$ac_objext conftest$ac_exeext
9917 if { (ac_try="$ac_link"
9918 case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_link") 2>conftest.er1
9924 ac_status=$?
9925 grep -v '^ *+' conftest.er1 >conftest.err
9926 rm -f conftest.er1
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } && {
9930 test -z "$ac_c_werror_flag" ||
9931 test ! -s conftest.err
9932 } && test -s conftest$ac_exeext &&
9933 $as_test_x conftest$ac_exeext; then
9934 ac_cv_lib_dl_dlopen=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 ac_cv_lib_dl_dlopen=no
9942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9943 conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9948 if test $ac_cv_lib_dl_dlopen = yes; then
9949 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9950 else
9951 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9952 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9953 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956 ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-lsvld $LIBS"
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h. */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9965 /* Override any GCC internal prototype to avoid an error.
9966 Use char because int might match the return type of a GCC
9967 builtin and then its argument prototype would still apply. */
9968 #ifdef __cplusplus
9969 extern "C"
9970 #endif
9971 char dlopen ();
9973 main ()
9975 return dlopen ();
9977 return 0;
9979 _ACEOF
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (ac_try="$ac_link"
9982 case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_link") 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } && {
9994 test -z "$ac_c_werror_flag" ||
9995 test ! -s conftest.err
9996 } && test -s conftest$ac_exeext &&
9997 $as_test_x conftest$ac_exeext; then
9998 ac_cv_lib_svld_dlopen=yes
9999 else
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 ac_cv_lib_svld_dlopen=no
10006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10007 conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10010 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10011 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10012 if test $ac_cv_lib_svld_dlopen = yes; then
10013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10014 else
10015 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10016 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10017 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020 ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-ldld $LIBS"
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10029 /* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 char dld_link ();
10037 main ()
10039 return dld_link ();
10041 return 0;
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } && {
10058 test -z "$ac_c_werror_flag" ||
10059 test ! -s conftest.err
10060 } && test -s conftest$ac_exeext &&
10061 $as_test_x conftest$ac_exeext; then
10062 ac_cv_lib_dld_dld_link=yes
10063 else
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ac_cv_lib_dld_dld_link=no
10070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10071 conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_check_lib_save_LIBS
10074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10075 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10076 if test $ac_cv_lib_dld_dld_link = yes; then
10077 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10096 esac
10098 if test "x$lt_cv_dlopen" != xno; then
10099 enable_dlopen=yes
10100 else
10101 enable_dlopen=no
10104 case $lt_cv_dlopen in
10105 dlopen)
10106 save_CPPFLAGS="$CPPFLAGS"
10107 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10109 save_LDFLAGS="$LDFLAGS"
10110 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10112 save_LIBS="$LIBS"
10113 LIBS="$lt_cv_dlopen_libs $LIBS"
10115 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10116 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10117 if test "${lt_cv_dlopen_self+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120 if test "$cross_compiling" = yes; then :
10121 lt_cv_dlopen_self=cross
10122 else
10123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10124 lt_status=$lt_dlunknown
10125 cat > conftest.$ac_ext <<EOF
10126 #line 10126 "configure"
10127 #include "confdefs.h"
10129 #if HAVE_DLFCN_H
10130 #include <dlfcn.h>
10131 #endif
10133 #include <stdio.h>
10135 #ifdef RTLD_GLOBAL
10136 # define LT_DLGLOBAL RTLD_GLOBAL
10137 #else
10138 # ifdef DL_GLOBAL
10139 # define LT_DLGLOBAL DL_GLOBAL
10140 # else
10141 # define LT_DLGLOBAL 0
10142 # endif
10143 #endif
10145 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10146 find out it does not work in some platform. */
10147 #ifndef LT_DLLAZY_OR_NOW
10148 # ifdef RTLD_LAZY
10149 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10150 # else
10151 # ifdef DL_LAZY
10152 # define LT_DLLAZY_OR_NOW DL_LAZY
10153 # else
10154 # ifdef RTLD_NOW
10155 # define LT_DLLAZY_OR_NOW RTLD_NOW
10156 # else
10157 # ifdef DL_NOW
10158 # define LT_DLLAZY_OR_NOW DL_NOW
10159 # else
10160 # define LT_DLLAZY_OR_NOW 0
10161 # endif
10162 # endif
10163 # endif
10164 # endif
10165 #endif
10167 #ifdef __cplusplus
10168 extern "C" void exit (int);
10169 #endif
10171 void fnord() { int i=42;}
10172 int main ()
10174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10175 int status = $lt_dlunknown;
10177 if (self)
10179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10180 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10181 /* dlclose (self); */
10183 else
10184 puts (dlerror ());
10186 exit (status);
10189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190 (eval $ac_link) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10194 (./conftest; exit; ) >&5 2>/dev/null
10195 lt_status=$?
10196 case x$lt_status in
10197 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10198 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10199 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10200 esac
10201 else :
10202 # compilation failed
10203 lt_cv_dlopen_self=no
10206 rm -fr conftest*
10210 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10211 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10213 if test "x$lt_cv_dlopen_self" = xyes; then
10214 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10215 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10216 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10217 if test "${lt_cv_dlopen_self_static+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220 if test "$cross_compiling" = yes; then :
10221 lt_cv_dlopen_self_static=cross
10222 else
10223 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10224 lt_status=$lt_dlunknown
10225 cat > conftest.$ac_ext <<EOF
10226 #line 10226 "configure"
10227 #include "confdefs.h"
10229 #if HAVE_DLFCN_H
10230 #include <dlfcn.h>
10231 #endif
10233 #include <stdio.h>
10235 #ifdef RTLD_GLOBAL
10236 # define LT_DLGLOBAL RTLD_GLOBAL
10237 #else
10238 # ifdef DL_GLOBAL
10239 # define LT_DLGLOBAL DL_GLOBAL
10240 # else
10241 # define LT_DLGLOBAL 0
10242 # endif
10243 #endif
10245 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10246 find out it does not work in some platform. */
10247 #ifndef LT_DLLAZY_OR_NOW
10248 # ifdef RTLD_LAZY
10249 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10250 # else
10251 # ifdef DL_LAZY
10252 # define LT_DLLAZY_OR_NOW DL_LAZY
10253 # else
10254 # ifdef RTLD_NOW
10255 # define LT_DLLAZY_OR_NOW RTLD_NOW
10256 # else
10257 # ifdef DL_NOW
10258 # define LT_DLLAZY_OR_NOW DL_NOW
10259 # else
10260 # define LT_DLLAZY_OR_NOW 0
10261 # endif
10262 # endif
10263 # endif
10264 # endif
10265 #endif
10267 #ifdef __cplusplus
10268 extern "C" void exit (int);
10269 #endif
10271 void fnord() { int i=42;}
10272 int main ()
10274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10275 int status = $lt_dlunknown;
10277 if (self)
10279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10280 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10281 /* dlclose (self); */
10283 else
10284 puts (dlerror ());
10286 exit (status);
10289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290 (eval $ac_link) 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10294 (./conftest; exit; ) >&5 2>/dev/null
10295 lt_status=$?
10296 case x$lt_status in
10297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10300 esac
10301 else :
10302 # compilation failed
10303 lt_cv_dlopen_self_static=no
10306 rm -fr conftest*
10310 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10311 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10314 CPPFLAGS="$save_CPPFLAGS"
10315 LDFLAGS="$save_LDFLAGS"
10316 LIBS="$save_LIBS"
10318 esac
10320 case $lt_cv_dlopen_self in
10321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10322 *) enable_dlopen_self=unknown ;;
10323 esac
10325 case $lt_cv_dlopen_self_static in
10326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10327 *) enable_dlopen_self_static=unknown ;;
10328 esac
10332 # Report which library types will actually be built
10333 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10334 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10335 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10336 echo "${ECHO_T}$can_build_shared" >&6; }
10338 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10339 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10340 test "$can_build_shared" = "no" && enable_shared=no
10342 # On AIX, shared libraries and static libraries use the same namespace, and
10343 # are all built from PIC.
10344 case $host_os in
10345 aix3*)
10346 test "$enable_shared" = yes && enable_static=no
10347 if test -n "$RANLIB"; then
10348 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10349 postinstall_cmds='$RANLIB $lib'
10353 aix[4-9]*)
10354 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10355 test "$enable_shared" = yes && enable_static=no
10358 esac
10359 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10360 echo "${ECHO_T}$enable_shared" >&6; }
10362 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10363 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10364 # Make sure either enable_shared or enable_static is yes.
10365 test "$enable_shared" = yes || enable_static=yes
10366 { echo "$as_me:$LINENO: result: $enable_static" >&5
10367 echo "${ECHO_T}$enable_static" >&6; }
10369 # The else clause should only fire when bootstrapping the
10370 # libtool distribution, otherwise you forgot to ship ltmain.sh
10371 # with your package, and you will get complaints that there are
10372 # no rules to generate ltmain.sh.
10373 if test -f "$ltmain"; then
10374 # See if we are running on zsh, and set the options which allow our commands through
10375 # without removal of \ escapes.
10376 if test -n "${ZSH_VERSION+set}" ; then
10377 setopt NO_GLOB_SUBST
10379 # Now quote all the things that may contain metacharacters while being
10380 # careful not to overquote the AC_SUBSTed values. We take copies of the
10381 # variables and quote the copies for generation of the libtool script.
10382 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10383 SED SHELL STRIP \
10384 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10385 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10386 deplibs_check_method reload_flag reload_cmds need_locks \
10387 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10388 lt_cv_sys_global_symbol_to_c_name_address \
10389 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10390 old_postinstall_cmds old_postuninstall_cmds \
10391 compiler \
10392 CC \
10393 LD \
10394 lt_prog_compiler_wl \
10395 lt_prog_compiler_pic \
10396 lt_prog_compiler_static \
10397 lt_prog_compiler_no_builtin_flag \
10398 export_dynamic_flag_spec \
10399 thread_safe_flag_spec \
10400 whole_archive_flag_spec \
10401 enable_shared_with_static_runtimes \
10402 old_archive_cmds \
10403 old_archive_from_new_cmds \
10404 predep_objects \
10405 postdep_objects \
10406 predeps \
10407 postdeps \
10408 compiler_lib_search_path \
10409 compiler_lib_search_dirs \
10410 archive_cmds \
10411 archive_expsym_cmds \
10412 postinstall_cmds \
10413 postuninstall_cmds \
10414 old_archive_from_expsyms_cmds \
10415 allow_undefined_flag \
10416 no_undefined_flag \
10417 export_symbols_cmds \
10418 hardcode_libdir_flag_spec \
10419 hardcode_libdir_flag_spec_ld \
10420 hardcode_libdir_separator \
10421 hardcode_automatic \
10422 module_cmds \
10423 module_expsym_cmds \
10424 lt_cv_prog_compiler_c_o \
10425 fix_srcfile_path \
10426 exclude_expsyms \
10427 include_expsyms; do
10429 case $var in
10430 old_archive_cmds | \
10431 old_archive_from_new_cmds | \
10432 archive_cmds | \
10433 archive_expsym_cmds | \
10434 module_cmds | \
10435 module_expsym_cmds | \
10436 old_archive_from_expsyms_cmds | \
10437 export_symbols_cmds | \
10438 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10439 postinstall_cmds | postuninstall_cmds | \
10440 old_postinstall_cmds | old_postuninstall_cmds | \
10441 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10442 # Double-quote double-evaled strings.
10443 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10446 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10448 esac
10449 done
10451 case $lt_echo in
10452 *'\$0 --fallback-echo"')
10453 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10455 esac
10457 cfgfile="${ofile}T"
10458 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10459 $rm -f "$cfgfile"
10460 { echo "$as_me:$LINENO: creating $ofile" >&5
10461 echo "$as_me: creating $ofile" >&6;}
10463 cat <<__EOF__ >> "$cfgfile"
10464 #! $SHELL
10466 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10467 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10468 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10470 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10471 # Free Software Foundation, Inc.
10473 # This file is part of GNU Libtool:
10474 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10476 # This program is free software; you can redistribute it and/or modify
10477 # it under the terms of the GNU General Public License as published by
10478 # the Free Software Foundation; either version 2 of the License, or
10479 # (at your option) any later version.
10481 # This program is distributed in the hope that it will be useful, but
10482 # WITHOUT ANY WARRANTY; without even the implied warranty of
10483 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10484 # General Public License for more details.
10486 # You should have received a copy of the GNU General Public License
10487 # along with this program; if not, write to the Free Software
10488 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10490 # As a special exception to the GNU General Public License, if you
10491 # distribute this file as part of a program that contains a
10492 # configuration script generated by Autoconf, you may include it under
10493 # the same distribution terms that you use for the rest of that program.
10495 # A sed program that does not truncate output.
10496 SED=$lt_SED
10498 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10499 Xsed="$SED -e 1s/^X//"
10501 # The HP-UX ksh and POSIX shell print the target directory to stdout
10502 # if CDPATH is set.
10503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10505 # The names of the tagged configurations supported by this script.
10506 available_tags=
10508 # ### BEGIN LIBTOOL CONFIG
10510 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10512 # Shell to use when invoking shell scripts.
10513 SHELL=$lt_SHELL
10515 # Whether or not to build shared libraries.
10516 build_libtool_libs=$enable_shared
10518 # Whether or not to build static libraries.
10519 build_old_libs=$enable_static
10521 # Whether or not to add -lc for building shared libraries.
10522 build_libtool_need_lc=$archive_cmds_need_lc
10524 # Whether or not to disallow shared libs when runtime libs are static
10525 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10527 # Whether or not to optimize for fast installation.
10528 fast_install=$enable_fast_install
10530 # The host system.
10531 host_alias=$host_alias
10532 host=$host
10533 host_os=$host_os
10535 # The build system.
10536 build_alias=$build_alias
10537 build=$build
10538 build_os=$build_os
10540 # An echo program that does not interpret backslashes.
10541 echo=$lt_echo
10543 # The archiver.
10544 AR=$lt_AR
10545 AR_FLAGS=$lt_AR_FLAGS
10547 # A C compiler.
10548 LTCC=$lt_LTCC
10550 # LTCC compiler flags.
10551 LTCFLAGS=$lt_LTCFLAGS
10553 # A language-specific compiler.
10554 CC=$lt_compiler
10556 # Is the compiler the GNU C compiler?
10557 with_gcc=$GCC
10559 # An ERE matcher.
10560 EGREP=$lt_EGREP
10562 # The linker used to build libraries.
10563 LD=$lt_LD
10565 # Whether we need hard or soft links.
10566 LN_S=$lt_LN_S
10568 # A BSD-compatible nm program.
10569 NM=$lt_NM
10571 # A symbol stripping program
10572 STRIP=$lt_STRIP
10574 # Used to examine libraries when file_magic_cmd begins "file"
10575 MAGIC_CMD=$MAGIC_CMD
10577 # Used on cygwin: DLL creation program.
10578 DLLTOOL="$DLLTOOL"
10580 # Used on cygwin: object dumper.
10581 OBJDUMP="$OBJDUMP"
10583 # Used on cygwin: assembler.
10584 AS="$AS"
10586 # The name of the directory that contains temporary libtool files.
10587 objdir=$objdir
10589 # How to create reloadable object files.
10590 reload_flag=$lt_reload_flag
10591 reload_cmds=$lt_reload_cmds
10593 # How to pass a linker flag through the compiler.
10594 wl=$lt_lt_prog_compiler_wl
10596 # Object file suffix (normally "o").
10597 objext="$ac_objext"
10599 # Old archive suffix (normally "a").
10600 libext="$libext"
10602 # Shared library suffix (normally ".so").
10603 shrext_cmds='$shrext_cmds'
10605 # Executable file suffix (normally "").
10606 exeext="$exeext"
10608 # Additional compiler flags for building library objects.
10609 pic_flag=$lt_lt_prog_compiler_pic
10610 pic_mode=$pic_mode
10612 # What is the maximum length of a command?
10613 max_cmd_len=$lt_cv_sys_max_cmd_len
10615 # Does compiler simultaneously support -c and -o options?
10616 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10618 # Must we lock files when doing compilation?
10619 need_locks=$lt_need_locks
10621 # Do we need the lib prefix for modules?
10622 need_lib_prefix=$need_lib_prefix
10624 # Do we need a version for libraries?
10625 need_version=$need_version
10627 # Whether dlopen is supported.
10628 dlopen_support=$enable_dlopen
10630 # Whether dlopen of programs is supported.
10631 dlopen_self=$enable_dlopen_self
10633 # Whether dlopen of statically linked programs is supported.
10634 dlopen_self_static=$enable_dlopen_self_static
10636 # Compiler flag to prevent dynamic linking.
10637 link_static_flag=$lt_lt_prog_compiler_static
10639 # Compiler flag to turn off builtin functions.
10640 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10642 # Compiler flag to allow reflexive dlopens.
10643 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10645 # Compiler flag to generate shared objects directly from archives.
10646 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10648 # Compiler flag to generate thread-safe objects.
10649 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10651 # Library versioning type.
10652 version_type=$version_type
10654 # Format of library name prefix.
10655 libname_spec=$lt_libname_spec
10657 # List of archive names. First name is the real one, the rest are links.
10658 # The last name is the one that the linker finds with -lNAME.
10659 library_names_spec=$lt_library_names_spec
10661 # The coded name of the library, if different from the real name.
10662 soname_spec=$lt_soname_spec
10664 # Commands used to build and install an old-style archive.
10665 RANLIB=$lt_RANLIB
10666 old_archive_cmds=$lt_old_archive_cmds
10667 old_postinstall_cmds=$lt_old_postinstall_cmds
10668 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10670 # Create an old-style archive from a shared archive.
10671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10673 # Create a temporary old-style archive to link instead of a shared archive.
10674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10676 # Commands used to build and install a shared archive.
10677 archive_cmds=$lt_archive_cmds
10678 archive_expsym_cmds=$lt_archive_expsym_cmds
10679 postinstall_cmds=$lt_postinstall_cmds
10680 postuninstall_cmds=$lt_postuninstall_cmds
10682 # Commands used to build a loadable module (assumed same as above if empty)
10683 module_cmds=$lt_module_cmds
10684 module_expsym_cmds=$lt_module_expsym_cmds
10686 # Commands to strip libraries.
10687 old_striplib=$lt_old_striplib
10688 striplib=$lt_striplib
10690 # Dependencies to place before the objects being linked to create a
10691 # shared library.
10692 predep_objects=$lt_predep_objects
10694 # Dependencies to place after the objects being linked to create a
10695 # shared library.
10696 postdep_objects=$lt_postdep_objects
10698 # Dependencies to place before the objects being linked to create a
10699 # shared library.
10700 predeps=$lt_predeps
10702 # Dependencies to place after the objects being linked to create a
10703 # shared library.
10704 postdeps=$lt_postdeps
10706 # The directories searched by this compiler when creating a shared
10707 # library
10708 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10710 # The library search path used internally by the compiler when linking
10711 # a shared library.
10712 compiler_lib_search_path=$lt_compiler_lib_search_path
10714 # Method to check whether dependent libraries are shared objects.
10715 deplibs_check_method=$lt_deplibs_check_method
10717 # Command to use when deplibs_check_method == file_magic.
10718 file_magic_cmd=$lt_file_magic_cmd
10720 # Flag that allows shared libraries with undefined symbols to be built.
10721 allow_undefined_flag=$lt_allow_undefined_flag
10723 # Flag that forces no undefined symbols.
10724 no_undefined_flag=$lt_no_undefined_flag
10726 # Commands used to finish a libtool library installation in a directory.
10727 finish_cmds=$lt_finish_cmds
10729 # Same as above, but a single script fragment to be evaled but not shown.
10730 finish_eval=$lt_finish_eval
10732 # Take the output of nm and produce a listing of raw symbols and C names.
10733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10735 # Transform the output of nm in a proper C declaration
10736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10738 # Transform the output of nm in a C name address pair
10739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10741 # This is the shared library runtime path variable.
10742 runpath_var=$runpath_var
10744 # This is the shared library path variable.
10745 shlibpath_var=$shlibpath_var
10747 # Is shlibpath searched before the hard-coded library search path?
10748 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10750 # How to hardcode a shared library path into an executable.
10751 hardcode_action=$hardcode_action
10753 # Whether we should hardcode library paths into libraries.
10754 hardcode_into_libs=$hardcode_into_libs
10756 # Flag to hardcode \$libdir into a binary during linking.
10757 # This must work even if \$libdir does not exist.
10758 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10760 # If ld is used when linking, flag to hardcode \$libdir into
10761 # a binary during linking. This must work even if \$libdir does
10762 # not exist.
10763 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10765 # Whether we need a single -rpath flag with a separated argument.
10766 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10768 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10769 # resulting binary.
10770 hardcode_direct=$hardcode_direct
10772 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10773 # resulting binary.
10774 hardcode_minus_L=$hardcode_minus_L
10776 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10777 # the resulting binary.
10778 hardcode_shlibpath_var=$hardcode_shlibpath_var
10780 # Set to yes if building a shared library automatically hardcodes DIR into the library
10781 # and all subsequent libraries and executables linked against it.
10782 hardcode_automatic=$hardcode_automatic
10784 # Variables whose values should be saved in libtool wrapper scripts and
10785 # restored at relink time.
10786 variables_saved_for_relink="$variables_saved_for_relink"
10788 # Whether libtool must link a program against all its dependency libraries.
10789 link_all_deplibs=$link_all_deplibs
10791 # Compile-time system search path for libraries
10792 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10794 # Run-time system search path for libraries
10795 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10797 # Fix the shell variable \$srcfile for the compiler.
10798 fix_srcfile_path=$lt_fix_srcfile_path
10800 # Set to yes if exported symbols are required.
10801 always_export_symbols=$always_export_symbols
10803 # The commands to list exported symbols.
10804 export_symbols_cmds=$lt_export_symbols_cmds
10806 # The commands to extract the exported symbol list from a shared archive.
10807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10809 # Symbols that should not be listed in the preloaded symbols.
10810 exclude_expsyms=$lt_exclude_expsyms
10812 # Symbols that must always be exported.
10813 include_expsyms=$lt_include_expsyms
10815 # ### END LIBTOOL CONFIG
10817 __EOF__
10820 case $host_os in
10821 aix3*)
10822 cat <<\EOF >> "$cfgfile"
10824 # AIX sometimes has problems with the GCC collect2 program. For some
10825 # reason, if we set the COLLECT_NAMES environment variable, the problems
10826 # vanish in a puff of smoke.
10827 if test "X${COLLECT_NAMES+set}" != Xset; then
10828 COLLECT_NAMES=
10829 export COLLECT_NAMES
10833 esac
10835 # We use sed instead of cat because bash on DJGPP gets confused if
10836 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10837 # text mode, it properly converts lines to CR/LF. This bash problem
10838 # is reportedly fixed, but why not run on old versions too?
10839 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10841 mv -f "$cfgfile" "$ofile" || \
10842 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10843 chmod +x "$ofile"
10845 else
10846 # If there is no Makefile yet, we rely on a make rule to execute
10847 # `config.status --recheck' to rerun these tests and create the
10848 # libtool script then.
10849 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10850 if test -f "$ltmain_in"; then
10851 test -f Makefile && make "$ltmain"
10856 ac_ext=c
10857 ac_cpp='$CPP $CPPFLAGS'
10858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10862 CC="$lt_save_CC"
10865 # Check whether --with-tags was given.
10866 if test "${with_tags+set}" = set; then
10867 withval=$with_tags; tagnames="$withval"
10871 if test -f "$ltmain" && test -n "$tagnames"; then
10872 if test ! -f "${ofile}"; then
10873 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10874 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10877 if test -z "$LTCC"; then
10878 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10879 if test -z "$LTCC"; then
10880 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10881 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10882 else
10883 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10884 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10887 if test -z "$LTCFLAGS"; then
10888 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10891 # Extract list of available tagged configurations in $ofile.
10892 # Note that this assumes the entire list is on one line.
10893 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10896 for tagname in $tagnames; do
10897 IFS="$lt_save_ifs"
10898 # Check whether tagname contains only valid characters
10899 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10900 "") ;;
10901 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10902 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10903 { (exit 1); exit 1; }; }
10905 esac
10907 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10908 then
10909 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10910 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10911 { (exit 1); exit 1; }; }
10914 # Update the list of available tags.
10915 if test -n "$tagname"; then
10916 echo appending configuration tag \"$tagname\" to $ofile
10918 case $tagname in
10919 CXX)
10920 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10921 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10922 (test "X$CXX" != "Xg++"))) ; then
10923 ac_ext=cpp
10924 ac_cpp='$CXXCPP $CPPFLAGS'
10925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10932 archive_cmds_need_lc_CXX=no
10933 allow_undefined_flag_CXX=
10934 always_export_symbols_CXX=no
10935 archive_expsym_cmds_CXX=
10936 export_dynamic_flag_spec_CXX=
10937 hardcode_direct_CXX=no
10938 hardcode_libdir_flag_spec_CXX=
10939 hardcode_libdir_flag_spec_ld_CXX=
10940 hardcode_libdir_separator_CXX=
10941 hardcode_minus_L_CXX=no
10942 hardcode_shlibpath_var_CXX=unsupported
10943 hardcode_automatic_CXX=no
10944 module_cmds_CXX=
10945 module_expsym_cmds_CXX=
10946 link_all_deplibs_CXX=unknown
10947 old_archive_cmds_CXX=$old_archive_cmds
10948 no_undefined_flag_CXX=
10949 whole_archive_flag_spec_CXX=
10950 enable_shared_with_static_runtimes_CXX=no
10952 # Dependencies to place before and after the object being linked:
10953 predep_objects_CXX=
10954 postdep_objects_CXX=
10955 predeps_CXX=
10956 postdeps_CXX=
10957 compiler_lib_search_path_CXX=
10958 compiler_lib_search_dirs_CXX=
10960 # Source file extension for C++ test sources.
10961 ac_ext=cpp
10963 # Object file extension for compiled C++ test sources.
10964 objext=o
10965 objext_CXX=$objext
10967 # Code to be used in simple compile tests
10968 lt_simple_compile_test_code="int some_variable = 0;"
10970 # Code to be used in simple link tests
10971 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10973 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10975 # If no C compiler was specified, use CC.
10976 LTCC=${LTCC-"$CC"}
10978 # If no C compiler flags were specified, use CFLAGS.
10979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10981 # Allow CC to be a program name with arguments.
10982 compiler=$CC
10985 # save warnings/boilerplate of simple test code
10986 ac_outfile=conftest.$ac_objext
10987 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10988 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10989 _lt_compiler_boilerplate=`cat conftest.err`
10990 $rm conftest*
10992 ac_outfile=conftest.$ac_objext
10993 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10994 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10995 _lt_linker_boilerplate=`cat conftest.err`
10996 $rm -r conftest*
10999 # Allow CC to be a program name with arguments.
11000 lt_save_CC=$CC
11001 lt_save_LD=$LD
11002 lt_save_GCC=$GCC
11003 GCC=$GXX
11004 lt_save_with_gnu_ld=$with_gnu_ld
11005 lt_save_path_LD=$lt_cv_path_LD
11006 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11007 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11008 else
11009 $as_unset lt_cv_prog_gnu_ld
11011 if test -n "${lt_cv_path_LDCXX+set}"; then
11012 lt_cv_path_LD=$lt_cv_path_LDCXX
11013 else
11014 $as_unset lt_cv_path_LD
11016 test -z "${LDCXX+set}" || LD=$LDCXX
11017 CC=${CXX-"c++"}
11018 compiler=$CC
11019 compiler_CXX=$CC
11020 for cc_temp in $compiler""; do
11021 case $cc_temp in
11022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11024 \-*) ;;
11025 *) break;;
11026 esac
11027 done
11028 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11031 # We don't want -fno-exception wen compiling C++ code, so set the
11032 # no_builtin_flag separately
11033 if test "$GXX" = yes; then
11034 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11035 else
11036 lt_prog_compiler_no_builtin_flag_CXX=
11039 if test "$GXX" = yes; then
11040 # Set up default GNU C++ configuration
11043 # Check whether --with-gnu-ld was given.
11044 if test "${with_gnu_ld+set}" = set; then
11045 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11046 else
11047 with_gnu_ld=no
11050 ac_prog=ld
11051 if test "$GCC" = yes; then
11052 # Check if gcc -print-prog-name=ld gives a path.
11053 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11054 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11055 case $host in
11056 *-*-mingw*)
11057 # gcc leaves a trailing carriage return which upsets mingw
11058 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11060 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11061 esac
11062 case $ac_prog in
11063 # Accept absolute paths.
11064 [\\/]* | ?:[\\/]*)
11065 re_direlt='/[^/][^/]*/\.\./'
11066 # Canonicalize the pathname of ld
11067 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11068 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11069 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11070 done
11071 test -z "$LD" && LD="$ac_prog"
11074 # If it fails, then pretend we aren't using GCC.
11075 ac_prog=ld
11078 # If it is relative, then search for the first ld in PATH.
11079 with_gnu_ld=unknown
11081 esac
11082 elif test "$with_gnu_ld" = yes; then
11083 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11084 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11085 else
11086 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11087 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11089 if test "${lt_cv_path_LD+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092 if test -z "$LD"; then
11093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11094 for ac_dir in $PATH; do
11095 IFS="$lt_save_ifs"
11096 test -z "$ac_dir" && ac_dir=.
11097 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11098 lt_cv_path_LD="$ac_dir/$ac_prog"
11099 # Check to see if the program is GNU ld. I'd rather use --version,
11100 # but apparently some variants of GNU ld only accept -v.
11101 # Break only if it was the GNU/non-GNU ld that we prefer.
11102 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11103 *GNU* | *'with BFD'*)
11104 test "$with_gnu_ld" != no && break
11107 test "$with_gnu_ld" != yes && break
11109 esac
11111 done
11112 IFS="$lt_save_ifs"
11113 else
11114 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11118 LD="$lt_cv_path_LD"
11119 if test -n "$LD"; then
11120 { echo "$as_me:$LINENO: result: $LD" >&5
11121 echo "${ECHO_T}$LD" >&6; }
11122 else
11123 { echo "$as_me:$LINENO: result: no" >&5
11124 echo "${ECHO_T}no" >&6; }
11126 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11127 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11128 { (exit 1); exit 1; }; }
11129 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11130 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11131 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11135 case `$LD -v 2>&1 </dev/null` in
11136 *GNU* | *'with BFD'*)
11137 lt_cv_prog_gnu_ld=yes
11140 lt_cv_prog_gnu_ld=no
11142 esac
11144 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11145 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11146 with_gnu_ld=$lt_cv_prog_gnu_ld
11150 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11151 # archiving commands below assume that GNU ld is being used.
11152 if test "$with_gnu_ld" = yes; then
11153 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11154 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'
11156 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11159 # If archive_cmds runs LD, not CC, wlarc should be empty
11160 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11161 # investigate it a little bit more. (MM)
11162 wlarc='${wl}'
11164 # ancient GNU ld didn't support --whole-archive et. al.
11165 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11166 grep 'no-whole-archive' > /dev/null; then
11167 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11168 else
11169 whole_archive_flag_spec_CXX=
11171 else
11172 with_gnu_ld=no
11173 wlarc=
11175 # A generic and very simple default shared library creation
11176 # command for GNU C++ for the case where it uses the native
11177 # linker, instead of GNU ld. If possible, this setting should
11178 # overridden to take advantage of the native linker features on
11179 # the platform it is being used on.
11180 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11183 # Commands to make compiler produce verbose output that lists
11184 # what "hidden" libraries, object files and flags are used when
11185 # linking a shared library.
11186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11188 else
11189 GXX=no
11190 with_gnu_ld=no
11191 wlarc=
11194 # PORTME: fill in a description of your system's C++ link characteristics
11195 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11196 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11197 ld_shlibs_CXX=yes
11198 case $host_os in
11199 aix3*)
11200 # FIXME: insert proper C++ library support
11201 ld_shlibs_CXX=no
11203 aix[4-9]*)
11204 if test "$host_cpu" = ia64; then
11205 # On IA64, the linker does run time linking by default, so we don't
11206 # have to do anything special.
11207 aix_use_runtimelinking=no
11208 exp_sym_flag='-Bexport'
11209 no_entry_flag=""
11210 else
11211 aix_use_runtimelinking=no
11213 # Test if we are trying to use run time linking or normal
11214 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11215 # need to do runtime linking.
11216 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11217 for ld_flag in $LDFLAGS; do
11218 case $ld_flag in
11219 *-brtl*)
11220 aix_use_runtimelinking=yes
11221 break
11223 esac
11224 done
11226 esac
11228 exp_sym_flag='-bexport'
11229 no_entry_flag='-bnoentry'
11232 # When large executables or shared objects are built, AIX ld can
11233 # have problems creating the table of contents. If linking a library
11234 # or program results in "error TOC overflow" add -mminimal-toc to
11235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11238 archive_cmds_CXX=''
11239 hardcode_direct_CXX=yes
11240 hardcode_libdir_separator_CXX=':'
11241 link_all_deplibs_CXX=yes
11243 if test "$GXX" = yes; then
11244 case $host_os in aix4.[012]|aix4.[012].*)
11245 # We only want to do this on AIX 4.2 and lower, the check
11246 # below for broken collect2 doesn't work under 4.3+
11247 collect2name=`${CC} -print-prog-name=collect2`
11248 if test -f "$collect2name" && \
11249 strings "$collect2name" | grep resolve_lib_name >/dev/null
11250 then
11251 # We have reworked collect2
11253 else
11254 # We have old collect2
11255 hardcode_direct_CXX=unsupported
11256 # It fails to find uninstalled libraries when the uninstalled
11257 # path is not listed in the libpath. Setting hardcode_minus_L
11258 # to unsupported forces relinking
11259 hardcode_minus_L_CXX=yes
11260 hardcode_libdir_flag_spec_CXX='-L$libdir'
11261 hardcode_libdir_separator_CXX=
11264 esac
11265 shared_flag='-shared'
11266 if test "$aix_use_runtimelinking" = yes; then
11267 shared_flag="$shared_flag "'${wl}-G'
11269 else
11270 # not using gcc
11271 if test "$host_cpu" = ia64; then
11272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11273 # chokes on -Wl,-G. The following line is correct:
11274 shared_flag='-G'
11275 else
11276 if test "$aix_use_runtimelinking" = yes; then
11277 shared_flag='${wl}-G'
11278 else
11279 shared_flag='${wl}-bM:SRE'
11284 # It seems that -bexpall does not export symbols beginning with
11285 # underscore (_), so it is better to generate a list of symbols to export.
11286 always_export_symbols_CXX=yes
11287 if test "$aix_use_runtimelinking" = yes; then
11288 # Warning - without using the other runtime loading flags (-brtl),
11289 # -berok will link without error, but may produce a broken library.
11290 allow_undefined_flag_CXX='-berok'
11291 # Determine the default libpath from the value encoded in an empty executable.
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11300 main ()
11304 return 0;
11306 _ACEOF
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (ac_try="$ac_link"
11309 case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11312 esac
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_link") 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } && {
11321 test -z "$ac_cxx_werror_flag" ||
11322 test ! -s conftest.err
11323 } && test -s conftest$ac_exeext &&
11324 $as_test_x conftest$ac_exeext; then
11326 lt_aix_libpath_sed='
11327 /Import File Strings/,/^$/ {
11328 /^0/ {
11329 s/^0 *\(.*\)$/\1/
11333 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11334 # Check for a 64-bit object if we didn't find anything.
11335 if test -z "$aix_libpath"; then
11336 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11338 else
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11346 conftest$ac_exeext conftest.$ac_ext
11347 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11349 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11351 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"
11352 else
11353 if test "$host_cpu" = ia64; then
11354 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11355 allow_undefined_flag_CXX="-z nodefs"
11356 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"
11357 else
11358 # Determine the default libpath from the value encoded in an empty executable.
11359 cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h. */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11367 main ()
11371 return 0;
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (ac_try="$ac_link"
11376 case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379 esac
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_link") 2>conftest.er1
11382 ac_status=$?
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } && {
11388 test -z "$ac_cxx_werror_flag" ||
11389 test ! -s conftest.err
11390 } && test -s conftest$ac_exeext &&
11391 $as_test_x conftest$ac_exeext; then
11393 lt_aix_libpath_sed='
11394 /Import File Strings/,/^$/ {
11395 /^0/ {
11396 s/^0 *\(.*\)$/\1/
11400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11401 # Check for a 64-bit object if we didn't find anything.
11402 if test -z "$aix_libpath"; then
11403 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11405 else
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11413 conftest$ac_exeext conftest.$ac_ext
11414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11416 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11417 # Warning - without using the other run time loading flags,
11418 # -berok will link without error, but may produce a broken library.
11419 no_undefined_flag_CXX=' ${wl}-bernotok'
11420 allow_undefined_flag_CXX=' ${wl}-berok'
11421 # Exported symbols can be pulled into shared objects from archives
11422 whole_archive_flag_spec_CXX='$convenience'
11423 archive_cmds_need_lc_CXX=yes
11424 # This is similar to how AIX traditionally builds its shared libraries.
11425 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'
11430 beos*)
11431 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11432 allow_undefined_flag_CXX=unsupported
11433 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11434 # support --undefined. This deserves some investigation. FIXME
11435 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11436 else
11437 ld_shlibs_CXX=no
11441 chorus*)
11442 case $cc_basename in
11444 # FIXME: insert proper C++ library support
11445 ld_shlibs_CXX=no
11447 esac
11450 cygwin* | mingw* | pw32*)
11451 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11452 # as there is no search path for DLLs.
11453 hardcode_libdir_flag_spec_CXX='-L$libdir'
11454 allow_undefined_flag_CXX=unsupported
11455 always_export_symbols_CXX=no
11456 enable_shared_with_static_runtimes_CXX=yes
11458 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11459 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'
11460 # If the export-symbols file already is a .def file (1st line
11461 # is EXPORTS), use it as is; otherwise, prepend...
11462 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11463 cp $export_symbols $output_objdir/$soname.def;
11464 else
11465 echo EXPORTS > $output_objdir/$soname.def;
11466 cat $export_symbols >> $output_objdir/$soname.def;
11468 $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'
11469 else
11470 ld_shlibs_CXX=no
11473 darwin* | rhapsody*)
11474 archive_cmds_need_lc_CXX=no
11475 hardcode_direct_CXX=no
11476 hardcode_automatic_CXX=yes
11477 hardcode_shlibpath_var_CXX=unsupported
11478 whole_archive_flag_spec_CXX=''
11479 link_all_deplibs_CXX=yes
11480 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11481 if test "$GXX" = yes ; then
11482 output_verbose_link_cmd='echo'
11483 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11484 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11485 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11486 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11487 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11488 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${_lt_dsymutil}"
11489 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11491 else
11492 case $cc_basename in
11493 xlc*)
11494 output_verbose_link_cmd='echo'
11495 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11496 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11497 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11498 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11499 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}'
11502 ld_shlibs_CXX=no
11504 esac
11508 dgux*)
11509 case $cc_basename in
11510 ec++*)
11511 # FIXME: insert proper C++ library support
11512 ld_shlibs_CXX=no
11514 ghcx*)
11515 # Green Hills C++ Compiler
11516 # FIXME: insert proper C++ library support
11517 ld_shlibs_CXX=no
11520 # FIXME: insert proper C++ library support
11521 ld_shlibs_CXX=no
11523 esac
11525 freebsd[12]*)
11526 # C++ shared libraries reported to be fairly broken before switch to ELF
11527 ld_shlibs_CXX=no
11529 freebsd-elf*)
11530 archive_cmds_need_lc_CXX=no
11532 freebsd* | dragonfly*)
11533 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11534 # conventions
11535 ld_shlibs_CXX=yes
11537 gnu*)
11539 hpux9*)
11540 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11541 hardcode_libdir_separator_CXX=:
11542 export_dynamic_flag_spec_CXX='${wl}-E'
11543 hardcode_direct_CXX=yes
11544 hardcode_minus_L_CXX=yes # Not in the search PATH,
11545 # but as the default
11546 # location of the library.
11548 case $cc_basename in
11549 CC*)
11550 # FIXME: insert proper C++ library support
11551 ld_shlibs_CXX=no
11553 aCC*)
11554 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'
11555 # Commands to make compiler produce verbose output that lists
11556 # what "hidden" libraries, object files and flags are used when
11557 # linking a shared library.
11559 # There doesn't appear to be a way to prevent this compiler from
11560 # explicitly linking system object files so we need to strip them
11561 # from the output so that they don't get included in the library
11562 # dependencies.
11563 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'
11566 if test "$GXX" = yes; then
11567 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'
11568 else
11569 # FIXME: insert proper C++ library support
11570 ld_shlibs_CXX=no
11573 esac
11575 hpux10*|hpux11*)
11576 if test $with_gnu_ld = no; then
11577 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11578 hardcode_libdir_separator_CXX=:
11580 case $host_cpu in
11581 hppa*64*|ia64*) ;;
11583 export_dynamic_flag_spec_CXX='${wl}-E'
11585 esac
11587 case $host_cpu in
11588 hppa*64*|ia64*)
11589 hardcode_direct_CXX=no
11590 hardcode_shlibpath_var_CXX=no
11593 hardcode_direct_CXX=yes
11594 hardcode_minus_L_CXX=yes # Not in the search PATH,
11595 # but as the default
11596 # location of the library.
11598 esac
11600 case $cc_basename in
11601 CC*)
11602 # FIXME: insert proper C++ library support
11603 ld_shlibs_CXX=no
11605 aCC*)
11606 case $host_cpu in
11607 hppa*64*)
11608 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11610 ia64*)
11611 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11614 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11616 esac
11617 # Commands to make compiler produce verbose output that lists
11618 # what "hidden" libraries, object files and flags are used when
11619 # linking a shared library.
11621 # There doesn't appear to be a way to prevent this compiler from
11622 # explicitly linking system object files so we need to strip them
11623 # from the output so that they don't get included in the library
11624 # dependencies.
11625 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'
11628 if test "$GXX" = yes; then
11629 if test $with_gnu_ld = no; then
11630 case $host_cpu in
11631 hppa*64*)
11632 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11634 ia64*)
11635 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11638 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'
11640 esac
11642 else
11643 # FIXME: insert proper C++ library support
11644 ld_shlibs_CXX=no
11647 esac
11649 interix[3-9]*)
11650 hardcode_direct_CXX=no
11651 hardcode_shlibpath_var_CXX=no
11652 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11653 export_dynamic_flag_spec_CXX='${wl}-E'
11654 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11655 # Instead, shared libraries are loaded at an image base (0x10000000 by
11656 # default) and relocated if they conflict, which is a slow very memory
11657 # consuming and fragmenting process. To avoid this, we pick a random,
11658 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11659 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11660 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'
11661 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'
11663 irix5* | irix6*)
11664 case $cc_basename in
11665 CC*)
11666 # SGI C++
11667 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'
11669 # Archives containing C++ object files must be created using
11670 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11671 # necessary to make sure instantiated templates are included
11672 # in the archive.
11673 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11676 if test "$GXX" = yes; then
11677 if test "$with_gnu_ld" = no; then
11678 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'
11679 else
11680 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'
11683 link_all_deplibs_CXX=yes
11685 esac
11686 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11687 hardcode_libdir_separator_CXX=:
11689 linux* | k*bsd*-gnu)
11690 case $cc_basename in
11691 KCC*)
11692 # Kuck and Associates, Inc. (KAI) C++ Compiler
11694 # KCC will only create a shared library if the output file
11695 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11696 # to its proper name (with version) after linking.
11697 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'
11698 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'
11699 # Commands to make compiler produce verbose output that lists
11700 # what "hidden" libraries, object files and flags are used when
11701 # linking a shared library.
11703 # There doesn't appear to be a way to prevent this compiler from
11704 # explicitly linking system object files so we need to strip them
11705 # from the output so that they don't get included in the library
11706 # dependencies.
11707 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'
11709 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11710 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11712 # Archives containing C++ object files must be created using
11713 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11714 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11716 icpc*)
11717 # Intel C++
11718 with_gnu_ld=yes
11719 # version 8.0 and above of icpc choke on multiply defined symbols
11720 # if we add $predep_objects and $postdep_objects, however 7.1 and
11721 # earlier do not add the objects themselves.
11722 case `$CC -V 2>&1` in
11723 *"Version 7."*)
11724 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11725 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'
11727 *) # Version 8.0 or newer
11728 tmp_idyn=
11729 case $host_cpu in
11730 ia64*) tmp_idyn=' -i_dynamic';;
11731 esac
11732 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11733 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'
11735 esac
11736 archive_cmds_need_lc_CXX=no
11737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11739 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11741 pgCC* | pgcpp*)
11742 # Portland Group C++ compiler
11743 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11744 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'
11746 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11748 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'
11750 cxx*)
11751 # Compaq C++
11752 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11753 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'
11755 runpath_var=LD_RUN_PATH
11756 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11757 hardcode_libdir_separator_CXX=:
11759 # Commands to make compiler produce verbose output that lists
11760 # what "hidden" libraries, object files and flags are used when
11761 # linking a shared library.
11763 # There doesn't appear to be a way to prevent this compiler from
11764 # explicitly linking system object files so we need to strip them
11765 # from the output so that they don't get included in the library
11766 # dependencies.
11767 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; 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'
11770 case `$CC -V 2>&1 | sed 5q` in
11771 *Sun\ C*)
11772 # Sun C++ 5.9
11773 no_undefined_flag_CXX=' -zdefs'
11774 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11775 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11776 hardcode_libdir_flag_spec_CXX='-R$libdir'
11777 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11779 # Not sure whether something based on
11780 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11781 # would be better.
11782 output_verbose_link_cmd='echo'
11784 # Archives containing C++ object files must be created using
11785 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11786 # necessary to make sure instantiated templates are included
11787 # in the archive.
11788 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11790 esac
11792 esac
11794 lynxos*)
11795 # FIXME: insert proper C++ library support
11796 ld_shlibs_CXX=no
11798 m88k*)
11799 # FIXME: insert proper C++ library support
11800 ld_shlibs_CXX=no
11802 mvs*)
11803 case $cc_basename in
11804 cxx*)
11805 # FIXME: insert proper C++ library support
11806 ld_shlibs_CXX=no
11809 # FIXME: insert proper C++ library support
11810 ld_shlibs_CXX=no
11812 esac
11814 netbsd*)
11815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11816 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11817 wlarc=
11818 hardcode_libdir_flag_spec_CXX='-R$libdir'
11819 hardcode_direct_CXX=yes
11820 hardcode_shlibpath_var_CXX=no
11822 # Workaround some broken pre-1.5 toolchains
11823 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11825 openbsd2*)
11826 # C++ shared libraries are fairly broken
11827 ld_shlibs_CXX=no
11829 openbsd*)
11830 if test -f /usr/libexec/ld.so; then
11831 hardcode_direct_CXX=yes
11832 hardcode_shlibpath_var_CXX=no
11833 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11834 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11835 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11836 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11837 export_dynamic_flag_spec_CXX='${wl}-E'
11838 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11840 output_verbose_link_cmd='echo'
11841 else
11842 ld_shlibs_CXX=no
11845 osf3*)
11846 case $cc_basename in
11847 KCC*)
11848 # Kuck and Associates, Inc. (KAI) C++ Compiler
11850 # KCC will only create a shared library if the output file
11851 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11852 # to its proper name (with version) after linking.
11853 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'
11855 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11856 hardcode_libdir_separator_CXX=:
11858 # Archives containing C++ object files must be created using
11859 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11860 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11863 RCC*)
11864 # Rational C++ 2.4.1
11865 # FIXME: insert proper C++ library support
11866 ld_shlibs_CXX=no
11868 cxx*)
11869 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11870 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'
11872 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11873 hardcode_libdir_separator_CXX=:
11875 # Commands to make compiler produce verbose output that lists
11876 # what "hidden" libraries, object files and flags are used when
11877 # linking a shared library.
11879 # There doesn't appear to be a way to prevent this compiler from
11880 # explicitly linking system object files so we need to strip them
11881 # from the output so that they don't get included in the library
11882 # dependencies.
11883 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'
11886 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11887 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11888 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'
11890 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11891 hardcode_libdir_separator_CXX=:
11893 # Commands to make compiler produce verbose output that lists
11894 # what "hidden" libraries, object files and flags are used when
11895 # linking a shared library.
11896 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11898 else
11899 # FIXME: insert proper C++ library support
11900 ld_shlibs_CXX=no
11903 esac
11905 osf4* | osf5*)
11906 case $cc_basename in
11907 KCC*)
11908 # Kuck and Associates, Inc. (KAI) C++ Compiler
11910 # KCC will only create a shared library if the output file
11911 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11912 # to its proper name (with version) after linking.
11913 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'
11915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11916 hardcode_libdir_separator_CXX=:
11918 # Archives containing C++ object files must be created using
11919 # the KAI C++ compiler.
11920 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11922 RCC*)
11923 # Rational C++ 2.4.1
11924 # FIXME: insert proper C++ library support
11925 ld_shlibs_CXX=no
11927 cxx*)
11928 allow_undefined_flag_CXX=' -expect_unresolved \*'
11929 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'
11930 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11931 echo "-hidden">> $lib.exp~
11932 $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~
11933 $rm $lib.exp'
11935 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11936 hardcode_libdir_separator_CXX=:
11938 # Commands to make compiler produce verbose output that lists
11939 # what "hidden" libraries, object files and flags are used when
11940 # linking a shared library.
11942 # There doesn't appear to be a way to prevent this compiler from
11943 # explicitly linking system object files so we need to strip them
11944 # from the output so that they don't get included in the library
11945 # dependencies.
11946 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'
11949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11951 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'
11953 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11954 hardcode_libdir_separator_CXX=:
11956 # Commands to make compiler produce verbose output that lists
11957 # what "hidden" libraries, object files and flags are used when
11958 # linking a shared library.
11959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11961 else
11962 # FIXME: insert proper C++ library support
11963 ld_shlibs_CXX=no
11966 esac
11968 psos*)
11969 # FIXME: insert proper C++ library support
11970 ld_shlibs_CXX=no
11972 sunos4*)
11973 case $cc_basename in
11974 CC*)
11975 # Sun C++ 4.x
11976 # FIXME: insert proper C++ library support
11977 ld_shlibs_CXX=no
11979 lcc*)
11980 # Lucid
11981 # FIXME: insert proper C++ library support
11982 ld_shlibs_CXX=no
11985 # FIXME: insert proper C++ library support
11986 ld_shlibs_CXX=no
11988 esac
11990 solaris*)
11991 case $cc_basename in
11992 CC*)
11993 # Sun C++ 4.2, 5.x and Centerline C++
11994 archive_cmds_need_lc_CXX=yes
11995 no_undefined_flag_CXX=' -zdefs'
11996 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11997 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11998 $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'
12000 hardcode_libdir_flag_spec_CXX='-R$libdir'
12001 hardcode_shlibpath_var_CXX=no
12002 case $host_os in
12003 solaris2.[0-5] | solaris2.[0-5].*) ;;
12005 # The compiler driver will combine and reorder linker options,
12006 # but understands `-z linker_flag'.
12007 # Supported since Solaris 2.6 (maybe 2.5.1?)
12008 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12010 esac
12011 link_all_deplibs_CXX=yes
12013 output_verbose_link_cmd='echo'
12015 # Archives containing C++ object files must be created using
12016 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12017 # necessary to make sure instantiated templates are included
12018 # in the archive.
12019 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12021 gcx*)
12022 # Green Hills C++ Compiler
12023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12025 # The C++ compiler must be used to create the archive.
12026 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12029 # GNU C++ compiler with Solaris linker
12030 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12031 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12032 if $CC --version | grep -v '^2\.7' > /dev/null; then
12033 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12034 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12035 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12037 # Commands to make compiler produce verbose output that lists
12038 # what "hidden" libraries, object files and flags are used when
12039 # linking a shared library.
12040 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12041 else
12042 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12043 # platform.
12044 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12045 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12046 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12048 # Commands to make compiler produce verbose output that lists
12049 # what "hidden" libraries, object files and flags are used when
12050 # linking a shared library.
12051 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12054 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12055 case $host_os in
12056 solaris2.[0-5] | solaris2.[0-5].*) ;;
12058 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12060 esac
12063 esac
12065 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12066 no_undefined_flag_CXX='${wl}-z,text'
12067 archive_cmds_need_lc_CXX=no
12068 hardcode_shlibpath_var_CXX=no
12069 runpath_var='LD_RUN_PATH'
12071 case $cc_basename in
12072 CC*)
12073 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12074 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12077 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12078 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12080 esac
12082 sysv5* | sco3.2v5* | sco5v6*)
12083 # Note: We can NOT use -z defs as we might desire, because we do not
12084 # link with -lc, and that would cause any symbols used from libc to
12085 # always be unresolved, which means just about no library would
12086 # ever link correctly. If we're not using GNU ld we use -z text
12087 # though, which does catch some bad symbols but isn't as heavy-handed
12088 # as -z defs.
12089 # For security reasons, it is highly recommended that you always
12090 # use absolute paths for naming shared libraries, and exclude the
12091 # DT_RUNPATH tag from executables and libraries. But doing so
12092 # requires that you compile everything twice, which is a pain.
12093 # So that behaviour is only enabled if SCOABSPATH is set to a
12094 # non-empty value in the environment. Most likely only useful for
12095 # creating official distributions of packages.
12096 # This is a hack until libtool officially supports absolute path
12097 # names for shared libraries.
12098 no_undefined_flag_CXX='${wl}-z,text'
12099 allow_undefined_flag_CXX='${wl}-z,nodefs'
12100 archive_cmds_need_lc_CXX=no
12101 hardcode_shlibpath_var_CXX=no
12102 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12103 hardcode_libdir_separator_CXX=':'
12104 link_all_deplibs_CXX=yes
12105 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12106 runpath_var='LD_RUN_PATH'
12108 case $cc_basename in
12109 CC*)
12110 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12111 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12114 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12115 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12117 esac
12119 tandem*)
12120 case $cc_basename in
12121 NCC*)
12122 # NonStop-UX NCC 3.20
12123 # FIXME: insert proper C++ library support
12124 ld_shlibs_CXX=no
12127 # FIXME: insert proper C++ library support
12128 ld_shlibs_CXX=no
12130 esac
12132 vxworks*)
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12137 # FIXME: insert proper C++ library support
12138 ld_shlibs_CXX=no
12140 esac
12141 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12142 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12143 test "$ld_shlibs_CXX" = no && can_build_shared=no
12145 GCC_CXX="$GXX"
12146 LD_CXX="$LD"
12148 cat > conftest.$ac_ext <<EOF
12149 class Foo
12151 public:
12152 Foo (void) { a = 0; }
12153 private:
12154 int a;
12158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12159 (eval $ac_compile) 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; then
12163 # Parse the compiler output and extract the necessary
12164 # objects, libraries and library flags.
12166 # Sentinel used to keep track of whether or not we are before
12167 # the conftest object file.
12168 pre_test_object_deps_done=no
12170 # The `*' in the case matches for architectures that use `case' in
12171 # $output_verbose_cmd can trigger glob expansion during the loop
12172 # eval without this substitution.
12173 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12175 for p in `eval $output_verbose_link_cmd`; do
12176 case $p in
12178 -L* | -R* | -l*)
12179 # Some compilers place space between "-{L,R}" and the path.
12180 # Remove the space.
12181 if test $p = "-L" \
12182 || test $p = "-R"; then
12183 prev=$p
12184 continue
12185 else
12186 prev=
12189 if test "$pre_test_object_deps_done" = no; then
12190 case $p in
12191 -L* | -R*)
12192 # Internal compiler library paths should come after those
12193 # provided the user. The postdeps already come after the
12194 # user supplied libs so there is no need to process them.
12195 if test -z "$compiler_lib_search_path_CXX"; then
12196 compiler_lib_search_path_CXX="${prev}${p}"
12197 else
12198 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12201 # The "-l" case would never come before the object being
12202 # linked, so don't bother handling this case.
12203 esac
12204 else
12205 if test -z "$postdeps_CXX"; then
12206 postdeps_CXX="${prev}${p}"
12207 else
12208 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12213 *.$objext)
12214 # This assumes that the test object file only shows up
12215 # once in the compiler output.
12216 if test "$p" = "conftest.$objext"; then
12217 pre_test_object_deps_done=yes
12218 continue
12221 if test "$pre_test_object_deps_done" = no; then
12222 if test -z "$predep_objects_CXX"; then
12223 predep_objects_CXX="$p"
12224 else
12225 predep_objects_CXX="$predep_objects_CXX $p"
12227 else
12228 if test -z "$postdep_objects_CXX"; then
12229 postdep_objects_CXX="$p"
12230 else
12231 postdep_objects_CXX="$postdep_objects_CXX $p"
12236 *) ;; # Ignore the rest.
12238 esac
12239 done
12241 # Clean up.
12242 rm -f a.out a.exe
12243 else
12244 echo "libtool.m4: error: problem compiling CXX test program"
12247 $rm -f confest.$objext
12249 compiler_lib_search_dirs_CXX=
12250 if test -n "$compiler_lib_search_path_CXX"; then
12251 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12254 # PORTME: override above test on systems where it is broken
12255 case $host_os in
12256 interix[3-9]*)
12257 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12258 # hack all around it, let's just trust "g++" to DTRT.
12259 predep_objects_CXX=
12260 postdep_objects_CXX=
12261 postdeps_CXX=
12264 linux*)
12265 case `$CC -V 2>&1 | sed 5q` in
12266 *Sun\ C*)
12267 # Sun C++ 5.9
12269 # The more standards-conforming stlport4 library is
12270 # incompatible with the Cstd library. Avoid specifying
12271 # it if it's in CXXFLAGS. Ignore libCrun as
12272 # -library=stlport4 depends on it.
12273 case " $CXX $CXXFLAGS " in
12274 *" -library=stlport4 "*)
12275 solaris_use_stlport4=yes
12277 esac
12278 if test "$solaris_use_stlport4" != yes; then
12279 postdeps_CXX='-library=Cstd -library=Crun'
12282 esac
12285 solaris*)
12286 case $cc_basename in
12287 CC*)
12288 # The more standards-conforming stlport4 library is
12289 # incompatible with the Cstd library. Avoid specifying
12290 # it if it's in CXXFLAGS. Ignore libCrun as
12291 # -library=stlport4 depends on it.
12292 case " $CXX $CXXFLAGS " in
12293 *" -library=stlport4 "*)
12294 solaris_use_stlport4=yes
12296 esac
12298 # Adding this requires a known-good setup of shared libraries for
12299 # Sun compiler versions before 5.6, else PIC objects from an old
12300 # archive will be linked into the output, leading to subtle bugs.
12301 if test "$solaris_use_stlport4" != yes; then
12302 postdeps_CXX='-library=Cstd -library=Crun'
12305 esac
12307 esac
12309 case " $postdeps_CXX " in
12310 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12311 esac
12313 lt_prog_compiler_wl_CXX=
12314 lt_prog_compiler_pic_CXX=
12315 lt_prog_compiler_static_CXX=
12317 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12318 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12320 # C++ specific cases for pic, static, wl, etc.
12321 if test "$GXX" = yes; then
12322 lt_prog_compiler_wl_CXX='-Wl,'
12323 lt_prog_compiler_static_CXX='-static'
12325 case $host_os in
12326 aix*)
12327 # All AIX code is PIC.
12328 if test "$host_cpu" = ia64; then
12329 # AIX 5 now supports IA64 processor
12330 lt_prog_compiler_static_CXX='-Bstatic'
12333 amigaos*)
12334 # FIXME: we need at least 68020 code to build shared libraries, but
12335 # adding the `-m68020' flag to GCC prevents building anything better,
12336 # like `-m68040'.
12337 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12339 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12340 # PIC is the default for these OSes.
12342 mingw* | cygwin* | os2* | pw32*)
12343 # This hack is so that the source file can tell whether it is being
12344 # built for inclusion in a dll (and should export symbols for example).
12345 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12346 # (--disable-auto-import) libraries
12347 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12349 darwin* | rhapsody*)
12350 # PIC is the default on this platform
12351 # Common symbols not allowed in MH_DYLIB files
12352 lt_prog_compiler_pic_CXX='-fno-common'
12354 *djgpp*)
12355 # DJGPP does not support shared libraries at all
12356 lt_prog_compiler_pic_CXX=
12358 interix[3-9]*)
12359 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12360 # Instead, we relocate shared libraries at runtime.
12362 sysv4*MP*)
12363 if test -d /usr/nec; then
12364 lt_prog_compiler_pic_CXX=-Kconform_pic
12367 hpux*)
12368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12369 # not for PA HP-UX.
12370 case $host_cpu in
12371 hppa*64*|ia64*)
12374 lt_prog_compiler_pic_CXX='-fPIC'
12376 esac
12379 lt_prog_compiler_pic_CXX='-fPIC'
12381 esac
12382 else
12383 case $host_os in
12384 aix[4-9]*)
12385 # All AIX code is PIC.
12386 if test "$host_cpu" = ia64; then
12387 # AIX 5 now supports IA64 processor
12388 lt_prog_compiler_static_CXX='-Bstatic'
12389 else
12390 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12393 chorus*)
12394 case $cc_basename in
12395 cxch68*)
12396 # Green Hills C++ Compiler
12397 # _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"
12399 esac
12401 darwin*)
12402 # PIC is the default on this platform
12403 # Common symbols not allowed in MH_DYLIB files
12404 case $cc_basename in
12405 xlc*)
12406 lt_prog_compiler_pic_CXX='-qnocommon'
12407 lt_prog_compiler_wl_CXX='-Wl,'
12409 esac
12411 dgux*)
12412 case $cc_basename in
12413 ec++*)
12414 lt_prog_compiler_pic_CXX='-KPIC'
12416 ghcx*)
12417 # Green Hills C++ Compiler
12418 lt_prog_compiler_pic_CXX='-pic'
12422 esac
12424 freebsd* | dragonfly*)
12425 # FreeBSD uses GNU C++
12427 hpux9* | hpux10* | hpux11*)
12428 case $cc_basename in
12429 CC*)
12430 lt_prog_compiler_wl_CXX='-Wl,'
12431 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12432 if test "$host_cpu" != ia64; then
12433 lt_prog_compiler_pic_CXX='+Z'
12436 aCC*)
12437 lt_prog_compiler_wl_CXX='-Wl,'
12438 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12439 case $host_cpu in
12440 hppa*64*|ia64*)
12441 # +Z the default
12444 lt_prog_compiler_pic_CXX='+Z'
12446 esac
12450 esac
12452 interix*)
12453 # This is c89, which is MS Visual C++ (no shared libs)
12454 # Anyone wants to do a port?
12456 irix5* | irix6* | nonstopux*)
12457 case $cc_basename in
12458 CC*)
12459 lt_prog_compiler_wl_CXX='-Wl,'
12460 lt_prog_compiler_static_CXX='-non_shared'
12461 # CC pic flag -KPIC is the default.
12465 esac
12467 linux* | k*bsd*-gnu)
12468 case $cc_basename in
12469 KCC*)
12470 # KAI C++ Compiler
12471 lt_prog_compiler_wl_CXX='--backend -Wl,'
12472 lt_prog_compiler_pic_CXX='-fPIC'
12474 icpc* | ecpc*)
12475 # Intel C++
12476 lt_prog_compiler_wl_CXX='-Wl,'
12477 lt_prog_compiler_pic_CXX='-KPIC'
12478 lt_prog_compiler_static_CXX='-static'
12480 pgCC* | pgcpp*)
12481 # Portland Group C++ compiler.
12482 lt_prog_compiler_wl_CXX='-Wl,'
12483 lt_prog_compiler_pic_CXX='-fpic'
12484 lt_prog_compiler_static_CXX='-Bstatic'
12486 cxx*)
12487 # Compaq C++
12488 # Make sure the PIC flag is empty. It appears that all Alpha
12489 # Linux and Compaq Tru64 Unix objects are PIC.
12490 lt_prog_compiler_pic_CXX=
12491 lt_prog_compiler_static_CXX='-non_shared'
12494 case `$CC -V 2>&1 | sed 5q` in
12495 *Sun\ C*)
12496 # Sun C++ 5.9
12497 lt_prog_compiler_pic_CXX='-KPIC'
12498 lt_prog_compiler_static_CXX='-Bstatic'
12499 lt_prog_compiler_wl_CXX='-Qoption ld '
12501 esac
12503 esac
12505 lynxos*)
12507 m88k*)
12509 mvs*)
12510 case $cc_basename in
12511 cxx*)
12512 lt_prog_compiler_pic_CXX='-W c,exportall'
12516 esac
12518 netbsd*)
12520 osf3* | osf4* | osf5*)
12521 case $cc_basename in
12522 KCC*)
12523 lt_prog_compiler_wl_CXX='--backend -Wl,'
12525 RCC*)
12526 # Rational C++ 2.4.1
12527 lt_prog_compiler_pic_CXX='-pic'
12529 cxx*)
12530 # Digital/Compaq C++
12531 lt_prog_compiler_wl_CXX='-Wl,'
12532 # Make sure the PIC flag is empty. It appears that all Alpha
12533 # Linux and Compaq Tru64 Unix objects are PIC.
12534 lt_prog_compiler_pic_CXX=
12535 lt_prog_compiler_static_CXX='-non_shared'
12539 esac
12541 psos*)
12543 solaris*)
12544 case $cc_basename in
12545 CC*)
12546 # Sun C++ 4.2, 5.x and Centerline C++
12547 lt_prog_compiler_pic_CXX='-KPIC'
12548 lt_prog_compiler_static_CXX='-Bstatic'
12549 lt_prog_compiler_wl_CXX='-Qoption ld '
12551 gcx*)
12552 # Green Hills C++ Compiler
12553 lt_prog_compiler_pic_CXX='-PIC'
12557 esac
12559 sunos4*)
12560 case $cc_basename in
12561 CC*)
12562 # Sun C++ 4.x
12563 lt_prog_compiler_pic_CXX='-pic'
12564 lt_prog_compiler_static_CXX='-Bstatic'
12566 lcc*)
12567 # Lucid
12568 lt_prog_compiler_pic_CXX='-pic'
12572 esac
12574 tandem*)
12575 case $cc_basename in
12576 NCC*)
12577 # NonStop-UX NCC 3.20
12578 lt_prog_compiler_pic_CXX='-KPIC'
12582 esac
12584 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12585 case $cc_basename in
12586 CC*)
12587 lt_prog_compiler_wl_CXX='-Wl,'
12588 lt_prog_compiler_pic_CXX='-KPIC'
12589 lt_prog_compiler_static_CXX='-Bstatic'
12591 esac
12593 vxworks*)
12596 lt_prog_compiler_can_build_shared_CXX=no
12598 esac
12601 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12602 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12605 # Check to make sure the PIC flag actually works.
12607 if test -n "$lt_prog_compiler_pic_CXX"; then
12609 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12610 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12611 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614 lt_cv_prog_compiler_pic_works_CXX=no
12615 ac_outfile=conftest.$ac_objext
12616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12617 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12618 # Insert the option either (1) after the last *FLAGS variable, or
12619 # (2) before a word containing "conftest.", or (3) at the end.
12620 # Note that $ac_compile itself does not contain backslashes and begins
12621 # with a dollar sign (not a hyphen), so the echo should work correctly.
12622 # The option is referenced via a variable to avoid confusing sed.
12623 lt_compile=`echo "$ac_compile" | $SED \
12624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12626 -e 's:$: $lt_compiler_flag:'`
12627 (eval echo "\"\$as_me:12627: $lt_compile\"" >&5)
12628 (eval "$lt_compile" 2>conftest.err)
12629 ac_status=$?
12630 cat conftest.err >&5
12631 echo "$as_me:12631: \$? = $ac_status" >&5
12632 if (exit $ac_status) && test -s "$ac_outfile"; then
12633 # The compiler can only warn and ignore the option if not recognized
12634 # So say no if there are warnings other than the usual output.
12635 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12638 lt_cv_prog_compiler_pic_works_CXX=yes
12641 $rm conftest*
12644 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12645 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12647 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12648 case $lt_prog_compiler_pic_CXX in
12649 "" | " "*) ;;
12650 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12651 esac
12652 else
12653 lt_prog_compiler_pic_CXX=
12654 lt_prog_compiler_can_build_shared_CXX=no
12658 case $host_os in
12659 # For platforms which do not support PIC, -DPIC is meaningless:
12660 *djgpp*)
12661 lt_prog_compiler_pic_CXX=
12664 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12666 esac
12669 # Check to make sure the static flag actually works.
12671 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12672 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12673 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12674 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677 lt_cv_prog_compiler_static_works_CXX=no
12678 save_LDFLAGS="$LDFLAGS"
12679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12680 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12682 # The linker can only warn and ignore the option if not recognized
12683 # So say no if there are warnings
12684 if test -s conftest.err; then
12685 # Append any errors to the config.log.
12686 cat conftest.err 1>&5
12687 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12689 if diff conftest.exp conftest.er2 >/dev/null; then
12690 lt_cv_prog_compiler_static_works_CXX=yes
12692 else
12693 lt_cv_prog_compiler_static_works_CXX=yes
12696 $rm -r conftest*
12697 LDFLAGS="$save_LDFLAGS"
12700 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12701 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12703 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12705 else
12706 lt_prog_compiler_static_CXX=
12710 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12712 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715 lt_cv_prog_compiler_c_o_CXX=no
12716 $rm -r conftest 2>/dev/null
12717 mkdir conftest
12718 cd conftest
12719 mkdir out
12720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12722 lt_compiler_flag="-o out/conftest2.$ac_objext"
12723 # Insert the option either (1) after the last *FLAGS variable, or
12724 # (2) before a word containing "conftest.", or (3) at the end.
12725 # Note that $ac_compile itself does not contain backslashes and begins
12726 # with a dollar sign (not a hyphen), so the echo should work correctly.
12727 lt_compile=`echo "$ac_compile" | $SED \
12728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12730 -e 's:$: $lt_compiler_flag:'`
12731 (eval echo "\"\$as_me:12731: $lt_compile\"" >&5)
12732 (eval "$lt_compile" 2>out/conftest.err)
12733 ac_status=$?
12734 cat out/conftest.err >&5
12735 echo "$as_me:12735: \$? = $ac_status" >&5
12736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12737 then
12738 # The compiler can only warn and ignore the option if not recognized
12739 # So say no if there are warnings
12740 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12743 lt_cv_prog_compiler_c_o_CXX=yes
12746 chmod u+w . 2>&5
12747 $rm conftest*
12748 # SGI C++ compiler will create directory out/ii_files/ for
12749 # template instantiation
12750 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12751 $rm out/* && rmdir out
12752 cd ..
12753 rmdir conftest
12754 $rm conftest*
12757 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12761 hard_links="nottested"
12762 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12763 # do not overwrite the value of need_locks provided by the user
12764 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12766 hard_links=yes
12767 $rm conftest*
12768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12769 touch conftest.a
12770 ln conftest.a conftest.b 2>&5 || hard_links=no
12771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12772 { echo "$as_me:$LINENO: result: $hard_links" >&5
12773 echo "${ECHO_T}$hard_links" >&6; }
12774 if test "$hard_links" = no; then
12775 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12777 need_locks=warn
12779 else
12780 need_locks=no
12783 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12786 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12787 case $host_os in
12788 aix[4-9]*)
12789 # If we're using GNU nm, then we don't want the "-C" option.
12790 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12791 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12792 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'
12793 else
12794 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'
12797 pw32*)
12798 export_symbols_cmds_CXX="$ltdll_cmds"
12800 cygwin* | mingw*)
12801 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'
12804 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12806 esac
12807 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12809 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12810 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12811 test "$ld_shlibs_CXX" = no && can_build_shared=no
12814 # Do we need to explicitly link libc?
12816 case "x$archive_cmds_need_lc_CXX" in
12817 x|xyes)
12818 # Assume -lc should be added
12819 archive_cmds_need_lc_CXX=yes
12821 if test "$enable_shared" = yes && test "$GCC" = yes; then
12822 case $archive_cmds_CXX in
12823 *'~'*)
12824 # FIXME: we may have to deal with multi-command sequences.
12826 '$CC '*)
12827 # Test whether the compiler implicitly links with -lc since on some
12828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12829 # to ld, don't add -lc before -lgcc.
12830 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12831 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12832 $rm conftest*
12833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12836 (eval $ac_compile) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } 2>conftest.err; then
12840 soname=conftest
12841 lib=conftest
12842 libobjs=conftest.$ac_objext
12843 deplibs=
12844 wl=$lt_prog_compiler_wl_CXX
12845 pic_flag=$lt_prog_compiler_pic_CXX
12846 compiler_flags=-v
12847 linker_flags=-v
12848 verstring=
12849 output_objdir=.
12850 libname=conftest
12851 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12852 allow_undefined_flag_CXX=
12853 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12854 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }
12858 then
12859 archive_cmds_need_lc_CXX=no
12860 else
12861 archive_cmds_need_lc_CXX=yes
12863 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12864 else
12865 cat conftest.err 1>&5
12867 $rm conftest*
12868 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12869 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12871 esac
12874 esac
12876 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12877 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12878 library_names_spec=
12879 libname_spec='lib$name'
12880 soname_spec=
12881 shrext_cmds=".so"
12882 postinstall_cmds=
12883 postuninstall_cmds=
12884 finish_cmds=
12885 finish_eval=
12886 shlibpath_var=
12887 shlibpath_overrides_runpath=unknown
12888 version_type=none
12889 dynamic_linker="$host_os ld.so"
12890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12892 need_lib_prefix=unknown
12893 hardcode_into_libs=no
12895 # when you set need_version to no, make sure it does not cause -set_version
12896 # flags to be left without arguments
12897 need_version=unknown
12899 case $host_os in
12900 aix3*)
12901 version_type=linux
12902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12903 shlibpath_var=LIBPATH
12905 # AIX 3 has no versioning support, so we append a major version to the name.
12906 soname_spec='${libname}${release}${shared_ext}$major'
12909 aix[4-9]*)
12910 version_type=linux
12911 need_lib_prefix=no
12912 need_version=no
12913 hardcode_into_libs=yes
12914 if test "$host_cpu" = ia64; then
12915 # AIX 5 supports IA64
12916 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12917 shlibpath_var=LD_LIBRARY_PATH
12918 else
12919 # With GCC up to 2.95.x, collect2 would create an import file
12920 # for dependence libraries. The import file would start with
12921 # the line `#! .'. This would cause the generated library to
12922 # depend on `.', always an invalid library. This was fixed in
12923 # development snapshots of GCC prior to 3.0.
12924 case $host_os in
12925 aix4 | aix4.[01] | aix4.[01].*)
12926 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12927 echo ' yes '
12928 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12930 else
12931 can_build_shared=no
12934 esac
12935 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12936 # soname into executable. Probably we can add versioning support to
12937 # collect2, so additional links can be useful in future.
12938 if test "$aix_use_runtimelinking" = yes; then
12939 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12940 # instead of lib<name>.a to let people know that these are not
12941 # typical AIX shared libraries.
12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12943 else
12944 # We preserve .a as extension for shared libraries through AIX4.2
12945 # and later when we are not doing run time linking.
12946 library_names_spec='${libname}${release}.a $libname.a'
12947 soname_spec='${libname}${release}${shared_ext}$major'
12949 shlibpath_var=LIBPATH
12953 amigaos*)
12954 library_names_spec='$libname.ixlibrary $libname.a'
12955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12956 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'
12959 beos*)
12960 library_names_spec='${libname}${shared_ext}'
12961 dynamic_linker="$host_os ld.so"
12962 shlibpath_var=LIBRARY_PATH
12965 bsdi[45]*)
12966 version_type=linux
12967 need_version=no
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12969 soname_spec='${libname}${release}${shared_ext}$major'
12970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12971 shlibpath_var=LD_LIBRARY_PATH
12972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12974 # the default ld.so.conf also contains /usr/contrib/lib and
12975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12976 # libtool to hard-code these into programs
12979 cygwin* | mingw* | pw32*)
12980 version_type=windows
12981 shrext_cmds=".dll"
12982 need_version=no
12983 need_lib_prefix=no
12985 case $GCC,$host_os in
12986 yes,cygwin* | yes,mingw* | yes,pw32*)
12987 library_names_spec='$libname.dll.a'
12988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12989 postinstall_cmds='base_file=`basename \${file}`~
12990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12991 dldir=$destdir/`dirname \$dlpath`~
12992 test -d \$dldir || mkdir -p \$dldir~
12993 $install_prog $dir/$dlname \$dldir/$dlname~
12994 chmod a+x \$dldir/$dlname'
12995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12996 dlpath=$dir/\$dldll~
12997 $rm \$dlpath'
12998 shlibpath_overrides_runpath=yes
13000 case $host_os in
13001 cygwin*)
13002 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13003 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13004 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13006 mingw*)
13007 # MinGW DLLs use traditional 'lib' prefix
13008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13009 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13010 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13011 # It is most probably a Windows format PATH printed by
13012 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13013 # path with ; separators, and with drive letters. We can handle the
13014 # drive letters (cygwin fileutils understands them), so leave them,
13015 # especially as we might pass files found there to a mingw objdump,
13016 # which wouldn't understand a cygwinified path. Ahh.
13017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13018 else
13019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13022 pw32*)
13023 # pw32 DLLs use 'pw' prefix rather than 'lib'
13024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13026 esac
13030 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13032 esac
13033 dynamic_linker='Win32 ld.exe'
13034 # FIXME: first we should search . and the directory the executable is in
13035 shlibpath_var=PATH
13038 darwin* | rhapsody*)
13039 dynamic_linker="$host_os dyld"
13040 version_type=darwin
13041 need_lib_prefix=no
13042 need_version=no
13043 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13044 soname_spec='${libname}${release}${major}$shared_ext'
13045 shlibpath_overrides_runpath=yes
13046 shlibpath_var=DYLD_LIBRARY_PATH
13047 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13049 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13052 dgux*)
13053 version_type=linux
13054 need_lib_prefix=no
13055 need_version=no
13056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13057 soname_spec='${libname}${release}${shared_ext}$major'
13058 shlibpath_var=LD_LIBRARY_PATH
13061 freebsd1*)
13062 dynamic_linker=no
13065 freebsd* | dragonfly*)
13066 # DragonFly does not have aout. When/if they implement a new
13067 # versioning mechanism, adjust this.
13068 if test -x /usr/bin/objformat; then
13069 objformat=`/usr/bin/objformat`
13070 else
13071 case $host_os in
13072 freebsd[123]*) objformat=aout ;;
13073 *) objformat=elf ;;
13074 esac
13076 version_type=freebsd-$objformat
13077 case $version_type in
13078 freebsd-elf*)
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13080 need_version=no
13081 need_lib_prefix=no
13083 freebsd-*)
13084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13085 need_version=yes
13087 esac
13088 shlibpath_var=LD_LIBRARY_PATH
13089 case $host_os in
13090 freebsd2*)
13091 shlibpath_overrides_runpath=yes
13093 freebsd3.[01]* | freebsdelf3.[01]*)
13094 shlibpath_overrides_runpath=yes
13095 hardcode_into_libs=yes
13097 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13098 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13099 shlibpath_overrides_runpath=no
13100 hardcode_into_libs=yes
13102 *) # from 4.6 on, and DragonFly
13103 shlibpath_overrides_runpath=yes
13104 hardcode_into_libs=yes
13106 esac
13109 gnu*)
13110 version_type=linux
13111 need_lib_prefix=no
13112 need_version=no
13113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13114 soname_spec='${libname}${release}${shared_ext}$major'
13115 shlibpath_var=LD_LIBRARY_PATH
13116 hardcode_into_libs=yes
13119 hpux9* | hpux10* | hpux11*)
13120 # Give a soname corresponding to the major version so that dld.sl refuses to
13121 # link against other versions.
13122 version_type=sunos
13123 need_lib_prefix=no
13124 need_version=no
13125 case $host_cpu in
13126 ia64*)
13127 shrext_cmds='.so'
13128 hardcode_into_libs=yes
13129 dynamic_linker="$host_os dld.so"
13130 shlibpath_var=LD_LIBRARY_PATH
13131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13133 soname_spec='${libname}${release}${shared_ext}$major'
13134 if test "X$HPUX_IA64_MODE" = X32; then
13135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13136 else
13137 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13141 hppa*64*)
13142 shrext_cmds='.sl'
13143 hardcode_into_libs=yes
13144 dynamic_linker="$host_os dld.sl"
13145 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148 soname_spec='${libname}${release}${shared_ext}$major'
13149 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13153 shrext_cmds='.sl'
13154 dynamic_linker="$host_os dld.sl"
13155 shlibpath_var=SHLIB_PATH
13156 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13158 soname_spec='${libname}${release}${shared_ext}$major'
13160 esac
13161 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13162 postinstall_cmds='chmod 555 $lib'
13165 interix[3-9]*)
13166 version_type=linux
13167 need_lib_prefix=no
13168 need_version=no
13169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13170 soname_spec='${libname}${release}${shared_ext}$major'
13171 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13172 shlibpath_var=LD_LIBRARY_PATH
13173 shlibpath_overrides_runpath=no
13174 hardcode_into_libs=yes
13177 irix5* | irix6* | nonstopux*)
13178 case $host_os in
13179 nonstopux*) version_type=nonstopux ;;
13181 if test "$lt_cv_prog_gnu_ld" = yes; then
13182 version_type=linux
13183 else
13184 version_type=irix
13185 fi ;;
13186 esac
13187 need_lib_prefix=no
13188 need_version=no
13189 soname_spec='${libname}${release}${shared_ext}$major'
13190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13191 case $host_os in
13192 irix5* | nonstopux*)
13193 libsuff= shlibsuff=
13196 case $LD in # libtool.m4 will add one of these switches to LD
13197 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13198 libsuff= shlibsuff= libmagic=32-bit;;
13199 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13200 libsuff=32 shlibsuff=N32 libmagic=N32;;
13201 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13202 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13203 *) libsuff= shlibsuff= libmagic=never-match;;
13204 esac
13206 esac
13207 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13208 shlibpath_overrides_runpath=no
13209 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13210 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13211 hardcode_into_libs=yes
13214 # No shared lib support for Linux oldld, aout, or coff.
13215 linux*oldld* | linux*aout* | linux*coff*)
13216 dynamic_linker=no
13219 # This must be Linux ELF.
13220 linux* | k*bsd*-gnu)
13221 version_type=linux
13222 need_lib_prefix=no
13223 need_version=no
13224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13225 soname_spec='${libname}${release}${shared_ext}$major'
13226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13227 shlibpath_var=LD_LIBRARY_PATH
13228 shlibpath_overrides_runpath=no
13229 # This implies no fast_install, which is unacceptable.
13230 # Some rework will be needed to allow for fast_install
13231 # before this can be enabled.
13232 hardcode_into_libs=yes
13234 # Append ld.so.conf contents to the search path
13235 if test -f /etc/ld.so.conf; then
13236 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13237 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13240 # We used to test for /lib/ld.so.1 and disable shared libraries on
13241 # powerpc, because MkLinux only supported shared libraries with the
13242 # GNU dynamic linker. Since this was broken with cross compilers,
13243 # most powerpc-linux boxes support dynamic linking these days and
13244 # people can always --disable-shared, the test was removed, and we
13245 # assume the GNU/Linux dynamic linker is in use.
13246 dynamic_linker='GNU/Linux ld.so'
13249 netbsd*)
13250 version_type=sunos
13251 need_lib_prefix=no
13252 need_version=no
13253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13256 dynamic_linker='NetBSD (a.out) ld.so'
13257 else
13258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13259 soname_spec='${libname}${release}${shared_ext}$major'
13260 dynamic_linker='NetBSD ld.elf_so'
13262 shlibpath_var=LD_LIBRARY_PATH
13263 shlibpath_overrides_runpath=yes
13264 hardcode_into_libs=yes
13267 newsos6)
13268 version_type=linux
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270 shlibpath_var=LD_LIBRARY_PATH
13271 shlibpath_overrides_runpath=yes
13274 nto-qnx*)
13275 version_type=linux
13276 need_lib_prefix=no
13277 need_version=no
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 shlibpath_var=LD_LIBRARY_PATH
13281 shlibpath_overrides_runpath=yes
13284 openbsd*)
13285 version_type=sunos
13286 sys_lib_dlsearch_path_spec="/usr/lib"
13287 need_lib_prefix=no
13288 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13289 case $host_os in
13290 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13291 *) need_version=no ;;
13292 esac
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13295 shlibpath_var=LD_LIBRARY_PATH
13296 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13297 case $host_os in
13298 openbsd2.[89] | openbsd2.[89].*)
13299 shlibpath_overrides_runpath=no
13302 shlibpath_overrides_runpath=yes
13304 esac
13305 else
13306 shlibpath_overrides_runpath=yes
13310 os2*)
13311 libname_spec='$name'
13312 shrext_cmds=".dll"
13313 need_lib_prefix=no
13314 library_names_spec='$libname${shared_ext} $libname.a'
13315 dynamic_linker='OS/2 ld.exe'
13316 shlibpath_var=LIBPATH
13319 osf3* | osf4* | osf5*)
13320 version_type=osf
13321 need_lib_prefix=no
13322 need_version=no
13323 soname_spec='${libname}${release}${shared_ext}$major'
13324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13325 shlibpath_var=LD_LIBRARY_PATH
13326 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13327 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13330 rdos*)
13331 dynamic_linker=no
13334 solaris*)
13335 version_type=linux
13336 need_lib_prefix=no
13337 need_version=no
13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13339 soname_spec='${libname}${release}${shared_ext}$major'
13340 shlibpath_var=LD_LIBRARY_PATH
13341 shlibpath_overrides_runpath=yes
13342 hardcode_into_libs=yes
13343 # ldd complains unless libraries are executable
13344 postinstall_cmds='chmod +x $lib'
13347 sunos4*)
13348 version_type=sunos
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13350 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13351 shlibpath_var=LD_LIBRARY_PATH
13352 shlibpath_overrides_runpath=yes
13353 if test "$with_gnu_ld" = yes; then
13354 need_lib_prefix=no
13356 need_version=yes
13359 sysv4 | sysv4.3*)
13360 version_type=linux
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 case $host_vendor in
13365 sni)
13366 shlibpath_overrides_runpath=no
13367 need_lib_prefix=no
13368 export_dynamic_flag_spec='${wl}-Blargedynsym'
13369 runpath_var=LD_RUN_PATH
13371 siemens)
13372 need_lib_prefix=no
13374 motorola)
13375 need_lib_prefix=no
13376 need_version=no
13377 shlibpath_overrides_runpath=no
13378 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13380 esac
13383 sysv4*MP*)
13384 if test -d /usr/nec ;then
13385 version_type=linux
13386 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13387 soname_spec='$libname${shared_ext}.$major'
13388 shlibpath_var=LD_LIBRARY_PATH
13392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13393 version_type=freebsd-elf
13394 need_lib_prefix=no
13395 need_version=no
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13397 soname_spec='${libname}${release}${shared_ext}$major'
13398 shlibpath_var=LD_LIBRARY_PATH
13399 hardcode_into_libs=yes
13400 if test "$with_gnu_ld" = yes; then
13401 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13402 shlibpath_overrides_runpath=no
13403 else
13404 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13405 shlibpath_overrides_runpath=yes
13406 case $host_os in
13407 sco3.2v5*)
13408 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13410 esac
13412 sys_lib_dlsearch_path_spec='/usr/lib'
13415 uts4*)
13416 version_type=linux
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418 soname_spec='${libname}${release}${shared_ext}$major'
13419 shlibpath_var=LD_LIBRARY_PATH
13423 dynamic_linker=no
13425 esac
13426 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13427 echo "${ECHO_T}$dynamic_linker" >&6; }
13428 test "$dynamic_linker" = no && can_build_shared=no
13430 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13436 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13437 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 else
13440 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13443 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13445 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13446 if test "$GCC" = yes; then
13447 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13450 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13451 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13452 hardcode_action_CXX=
13453 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13454 test -n "$runpath_var_CXX" || \
13455 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13457 # We can hardcode non-existant directories.
13458 if test "$hardcode_direct_CXX" != no &&
13459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13460 # have to relink, otherwise we might link with an installed library
13461 # when we should be linking with a yet-to-be-installed one
13462 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13463 test "$hardcode_minus_L_CXX" != no; then
13464 # Linking always hardcodes the temporary library directory.
13465 hardcode_action_CXX=relink
13466 else
13467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13468 hardcode_action_CXX=immediate
13470 else
13471 # We cannot hardcode anything, or else we can only hardcode existing
13472 # directories.
13473 hardcode_action_CXX=unsupported
13475 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13476 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13478 if test "$hardcode_action_CXX" = relink; then
13479 # Fast installation is not supported
13480 enable_fast_install=no
13481 elif test "$shlibpath_overrides_runpath" = yes ||
13482 test "$enable_shared" = no; then
13483 # Fast installation is not necessary
13484 enable_fast_install=needless
13488 # The else clause should only fire when bootstrapping the
13489 # libtool distribution, otherwise you forgot to ship ltmain.sh
13490 # with your package, and you will get complaints that there are
13491 # no rules to generate ltmain.sh.
13492 if test -f "$ltmain"; then
13493 # See if we are running on zsh, and set the options which allow our commands through
13494 # without removal of \ escapes.
13495 if test -n "${ZSH_VERSION+set}" ; then
13496 setopt NO_GLOB_SUBST
13498 # Now quote all the things that may contain metacharacters while being
13499 # careful not to overquote the AC_SUBSTed values. We take copies of the
13500 # variables and quote the copies for generation of the libtool script.
13501 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13502 SED SHELL STRIP \
13503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13505 deplibs_check_method reload_flag reload_cmds need_locks \
13506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13507 lt_cv_sys_global_symbol_to_c_name_address \
13508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13509 old_postinstall_cmds old_postuninstall_cmds \
13510 compiler_CXX \
13511 CC_CXX \
13512 LD_CXX \
13513 lt_prog_compiler_wl_CXX \
13514 lt_prog_compiler_pic_CXX \
13515 lt_prog_compiler_static_CXX \
13516 lt_prog_compiler_no_builtin_flag_CXX \
13517 export_dynamic_flag_spec_CXX \
13518 thread_safe_flag_spec_CXX \
13519 whole_archive_flag_spec_CXX \
13520 enable_shared_with_static_runtimes_CXX \
13521 old_archive_cmds_CXX \
13522 old_archive_from_new_cmds_CXX \
13523 predep_objects_CXX \
13524 postdep_objects_CXX \
13525 predeps_CXX \
13526 postdeps_CXX \
13527 compiler_lib_search_path_CXX \
13528 compiler_lib_search_dirs_CXX \
13529 archive_cmds_CXX \
13530 archive_expsym_cmds_CXX \
13531 postinstall_cmds_CXX \
13532 postuninstall_cmds_CXX \
13533 old_archive_from_expsyms_cmds_CXX \
13534 allow_undefined_flag_CXX \
13535 no_undefined_flag_CXX \
13536 export_symbols_cmds_CXX \
13537 hardcode_libdir_flag_spec_CXX \
13538 hardcode_libdir_flag_spec_ld_CXX \
13539 hardcode_libdir_separator_CXX \
13540 hardcode_automatic_CXX \
13541 module_cmds_CXX \
13542 module_expsym_cmds_CXX \
13543 lt_cv_prog_compiler_c_o_CXX \
13544 fix_srcfile_path_CXX \
13545 exclude_expsyms_CXX \
13546 include_expsyms_CXX; do
13548 case $var in
13549 old_archive_cmds_CXX | \
13550 old_archive_from_new_cmds_CXX | \
13551 archive_cmds_CXX | \
13552 archive_expsym_cmds_CXX | \
13553 module_cmds_CXX | \
13554 module_expsym_cmds_CXX | \
13555 old_archive_from_expsyms_cmds_CXX | \
13556 export_symbols_cmds_CXX | \
13557 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13558 postinstall_cmds | postuninstall_cmds | \
13559 old_postinstall_cmds | old_postuninstall_cmds | \
13560 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13561 # Double-quote double-evaled strings.
13562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13567 esac
13568 done
13570 case $lt_echo in
13571 *'\$0 --fallback-echo"')
13572 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13574 esac
13576 cfgfile="$ofile"
13578 cat <<__EOF__ >> "$cfgfile"
13579 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13583 # Shell to use when invoking shell scripts.
13584 SHELL=$lt_SHELL
13586 # Whether or not to build shared libraries.
13587 build_libtool_libs=$enable_shared
13589 # Whether or not to build static libraries.
13590 build_old_libs=$enable_static
13592 # Whether or not to add -lc for building shared libraries.
13593 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13595 # Whether or not to disallow shared libs when runtime libs are static
13596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13598 # Whether or not to optimize for fast installation.
13599 fast_install=$enable_fast_install
13601 # The host system.
13602 host_alias=$host_alias
13603 host=$host
13604 host_os=$host_os
13606 # The build system.
13607 build_alias=$build_alias
13608 build=$build
13609 build_os=$build_os
13611 # An echo program that does not interpret backslashes.
13612 echo=$lt_echo
13614 # The archiver.
13615 AR=$lt_AR
13616 AR_FLAGS=$lt_AR_FLAGS
13618 # A C compiler.
13619 LTCC=$lt_LTCC
13621 # LTCC compiler flags.
13622 LTCFLAGS=$lt_LTCFLAGS
13624 # A language-specific compiler.
13625 CC=$lt_compiler_CXX
13627 # Is the compiler the GNU C compiler?
13628 with_gcc=$GCC_CXX
13630 # An ERE matcher.
13631 EGREP=$lt_EGREP
13633 # The linker used to build libraries.
13634 LD=$lt_LD_CXX
13636 # Whether we need hard or soft links.
13637 LN_S=$lt_LN_S
13639 # A BSD-compatible nm program.
13640 NM=$lt_NM
13642 # A symbol stripping program
13643 STRIP=$lt_STRIP
13645 # Used to examine libraries when file_magic_cmd begins "file"
13646 MAGIC_CMD=$MAGIC_CMD
13648 # Used on cygwin: DLL creation program.
13649 DLLTOOL="$DLLTOOL"
13651 # Used on cygwin: object dumper.
13652 OBJDUMP="$OBJDUMP"
13654 # Used on cygwin: assembler.
13655 AS="$AS"
13657 # The name of the directory that contains temporary libtool files.
13658 objdir=$objdir
13660 # How to create reloadable object files.
13661 reload_flag=$lt_reload_flag
13662 reload_cmds=$lt_reload_cmds
13664 # How to pass a linker flag through the compiler.
13665 wl=$lt_lt_prog_compiler_wl_CXX
13667 # Object file suffix (normally "o").
13668 objext="$ac_objext"
13670 # Old archive suffix (normally "a").
13671 libext="$libext"
13673 # Shared library suffix (normally ".so").
13674 shrext_cmds='$shrext_cmds'
13676 # Executable file suffix (normally "").
13677 exeext="$exeext"
13679 # Additional compiler flags for building library objects.
13680 pic_flag=$lt_lt_prog_compiler_pic_CXX
13681 pic_mode=$pic_mode
13683 # What is the maximum length of a command?
13684 max_cmd_len=$lt_cv_sys_max_cmd_len
13686 # Does compiler simultaneously support -c and -o options?
13687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13689 # Must we lock files when doing compilation?
13690 need_locks=$lt_need_locks
13692 # Do we need the lib prefix for modules?
13693 need_lib_prefix=$need_lib_prefix
13695 # Do we need a version for libraries?
13696 need_version=$need_version
13698 # Whether dlopen is supported.
13699 dlopen_support=$enable_dlopen
13701 # Whether dlopen of programs is supported.
13702 dlopen_self=$enable_dlopen_self
13704 # Whether dlopen of statically linked programs is supported.
13705 dlopen_self_static=$enable_dlopen_self_static
13707 # Compiler flag to prevent dynamic linking.
13708 link_static_flag=$lt_lt_prog_compiler_static_CXX
13710 # Compiler flag to turn off builtin functions.
13711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13713 # Compiler flag to allow reflexive dlopens.
13714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13716 # Compiler flag to generate shared objects directly from archives.
13717 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13719 # Compiler flag to generate thread-safe objects.
13720 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13722 # Library versioning type.
13723 version_type=$version_type
13725 # Format of library name prefix.
13726 libname_spec=$lt_libname_spec
13728 # List of archive names. First name is the real one, the rest are links.
13729 # The last name is the one that the linker finds with -lNAME.
13730 library_names_spec=$lt_library_names_spec
13732 # The coded name of the library, if different from the real name.
13733 soname_spec=$lt_soname_spec
13735 # Commands used to build and install an old-style archive.
13736 RANLIB=$lt_RANLIB
13737 old_archive_cmds=$lt_old_archive_cmds_CXX
13738 old_postinstall_cmds=$lt_old_postinstall_cmds
13739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13741 # Create an old-style archive from a shared archive.
13742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13744 # Create a temporary old-style archive to link instead of a shared archive.
13745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13747 # Commands used to build and install a shared archive.
13748 archive_cmds=$lt_archive_cmds_CXX
13749 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13750 postinstall_cmds=$lt_postinstall_cmds
13751 postuninstall_cmds=$lt_postuninstall_cmds
13753 # Commands used to build a loadable module (assumed same as above if empty)
13754 module_cmds=$lt_module_cmds_CXX
13755 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13757 # Commands to strip libraries.
13758 old_striplib=$lt_old_striplib
13759 striplib=$lt_striplib
13761 # Dependencies to place before the objects being linked to create a
13762 # shared library.
13763 predep_objects=$lt_predep_objects_CXX
13765 # Dependencies to place after the objects being linked to create a
13766 # shared library.
13767 postdep_objects=$lt_postdep_objects_CXX
13769 # Dependencies to place before the objects being linked to create a
13770 # shared library.
13771 predeps=$lt_predeps_CXX
13773 # Dependencies to place after the objects being linked to create a
13774 # shared library.
13775 postdeps=$lt_postdeps_CXX
13777 # The directories searched by this compiler when creating a shared
13778 # library
13779 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13781 # The library search path used internally by the compiler when linking
13782 # a shared library.
13783 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13785 # Method to check whether dependent libraries are shared objects.
13786 deplibs_check_method=$lt_deplibs_check_method
13788 # Command to use when deplibs_check_method == file_magic.
13789 file_magic_cmd=$lt_file_magic_cmd
13791 # Flag that allows shared libraries with undefined symbols to be built.
13792 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13794 # Flag that forces no undefined symbols.
13795 no_undefined_flag=$lt_no_undefined_flag_CXX
13797 # Commands used to finish a libtool library installation in a directory.
13798 finish_cmds=$lt_finish_cmds
13800 # Same as above, but a single script fragment to be evaled but not shown.
13801 finish_eval=$lt_finish_eval
13803 # Take the output of nm and produce a listing of raw symbols and C names.
13804 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13806 # Transform the output of nm in a proper C declaration
13807 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13809 # Transform the output of nm in a C name address pair
13810 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13812 # This is the shared library runtime path variable.
13813 runpath_var=$runpath_var
13815 # This is the shared library path variable.
13816 shlibpath_var=$shlibpath_var
13818 # Is shlibpath searched before the hard-coded library search path?
13819 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13821 # How to hardcode a shared library path into an executable.
13822 hardcode_action=$hardcode_action_CXX
13824 # Whether we should hardcode library paths into libraries.
13825 hardcode_into_libs=$hardcode_into_libs
13827 # Flag to hardcode \$libdir into a binary during linking.
13828 # This must work even if \$libdir does not exist.
13829 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13831 # If ld is used when linking, flag to hardcode \$libdir into
13832 # a binary during linking. This must work even if \$libdir does
13833 # not exist.
13834 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13836 # Whether we need a single -rpath flag with a separated argument.
13837 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13839 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13840 # resulting binary.
13841 hardcode_direct=$hardcode_direct_CXX
13843 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13844 # resulting binary.
13845 hardcode_minus_L=$hardcode_minus_L_CXX
13847 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13848 # the resulting binary.
13849 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13851 # Set to yes if building a shared library automatically hardcodes DIR into the library
13852 # and all subsequent libraries and executables linked against it.
13853 hardcode_automatic=$hardcode_automatic_CXX
13855 # Variables whose values should be saved in libtool wrapper scripts and
13856 # restored at relink time.
13857 variables_saved_for_relink="$variables_saved_for_relink"
13859 # Whether libtool must link a program against all its dependency libraries.
13860 link_all_deplibs=$link_all_deplibs_CXX
13862 # Compile-time system search path for libraries
13863 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13865 # Run-time system search path for libraries
13866 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13868 # Fix the shell variable \$srcfile for the compiler.
13869 fix_srcfile_path=$lt_fix_srcfile_path
13871 # Set to yes if exported symbols are required.
13872 always_export_symbols=$always_export_symbols_CXX
13874 # The commands to list exported symbols.
13875 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13877 # The commands to extract the exported symbol list from a shared archive.
13878 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13880 # Symbols that should not be listed in the preloaded symbols.
13881 exclude_expsyms=$lt_exclude_expsyms_CXX
13883 # Symbols that must always be exported.
13884 include_expsyms=$lt_include_expsyms_CXX
13886 # ### END LIBTOOL TAG CONFIG: $tagname
13888 __EOF__
13891 else
13892 # If there is no Makefile yet, we rely on a make rule to execute
13893 # `config.status --recheck' to rerun these tests and create the
13894 # libtool script then.
13895 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13896 if test -f "$ltmain_in"; then
13897 test -f Makefile && make "$ltmain"
13902 ac_ext=c
13903 ac_cpp='$CPP $CPPFLAGS'
13904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13908 CC=$lt_save_CC
13909 LDCXX=$LD
13910 LD=$lt_save_LD
13911 GCC=$lt_save_GCC
13912 with_gnu_ldcxx=$with_gnu_ld
13913 with_gnu_ld=$lt_save_with_gnu_ld
13914 lt_cv_path_LDCXX=$lt_cv_path_LD
13915 lt_cv_path_LD=$lt_save_path_LD
13916 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13917 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13919 else
13920 tagname=""
13924 F77)
13925 if test -n "$F77" && test "X$F77" != "Xno"; then
13927 ac_ext=f
13928 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13929 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13930 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13933 archive_cmds_need_lc_F77=no
13934 allow_undefined_flag_F77=
13935 always_export_symbols_F77=no
13936 archive_expsym_cmds_F77=
13937 export_dynamic_flag_spec_F77=
13938 hardcode_direct_F77=no
13939 hardcode_libdir_flag_spec_F77=
13940 hardcode_libdir_flag_spec_ld_F77=
13941 hardcode_libdir_separator_F77=
13942 hardcode_minus_L_F77=no
13943 hardcode_automatic_F77=no
13944 module_cmds_F77=
13945 module_expsym_cmds_F77=
13946 link_all_deplibs_F77=unknown
13947 old_archive_cmds_F77=$old_archive_cmds
13948 no_undefined_flag_F77=
13949 whole_archive_flag_spec_F77=
13950 enable_shared_with_static_runtimes_F77=no
13952 # Source file extension for f77 test sources.
13953 ac_ext=f
13955 # Object file extension for compiled f77 test sources.
13956 objext=o
13957 objext_F77=$objext
13959 # Code to be used in simple compile tests
13960 lt_simple_compile_test_code="\
13961 subroutine t
13962 return
13966 # Code to be used in simple link tests
13967 lt_simple_link_test_code="\
13968 program t
13972 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13974 # If no C compiler was specified, use CC.
13975 LTCC=${LTCC-"$CC"}
13977 # If no C compiler flags were specified, use CFLAGS.
13978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13980 # Allow CC to be a program name with arguments.
13981 compiler=$CC
13984 # save warnings/boilerplate of simple test code
13985 ac_outfile=conftest.$ac_objext
13986 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13987 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13988 _lt_compiler_boilerplate=`cat conftest.err`
13989 $rm conftest*
13991 ac_outfile=conftest.$ac_objext
13992 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13993 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13994 _lt_linker_boilerplate=`cat conftest.err`
13995 $rm -r conftest*
13998 # Allow CC to be a program name with arguments.
13999 lt_save_CC="$CC"
14000 CC=${F77-"f77"}
14001 compiler=$CC
14002 compiler_F77=$CC
14003 for cc_temp in $compiler""; do
14004 case $cc_temp in
14005 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14006 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14007 \-*) ;;
14008 *) break;;
14009 esac
14010 done
14011 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14014 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14015 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14016 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14017 echo "${ECHO_T}$can_build_shared" >&6; }
14019 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14020 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14021 test "$can_build_shared" = "no" && enable_shared=no
14023 # On AIX, shared libraries and static libraries use the same namespace, and
14024 # are all built from PIC.
14025 case $host_os in
14026 aix3*)
14027 test "$enable_shared" = yes && enable_static=no
14028 if test -n "$RANLIB"; then
14029 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14030 postinstall_cmds='$RANLIB $lib'
14033 aix[4-9]*)
14034 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14035 test "$enable_shared" = yes && enable_static=no
14038 esac
14039 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14040 echo "${ECHO_T}$enable_shared" >&6; }
14042 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14043 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14044 # Make sure either enable_shared or enable_static is yes.
14045 test "$enable_shared" = yes || enable_static=yes
14046 { echo "$as_me:$LINENO: result: $enable_static" >&5
14047 echo "${ECHO_T}$enable_static" >&6; }
14049 GCC_F77="$G77"
14050 LD_F77="$LD"
14052 lt_prog_compiler_wl_F77=
14053 lt_prog_compiler_pic_F77=
14054 lt_prog_compiler_static_F77=
14056 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14057 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14059 if test "$GCC" = yes; then
14060 lt_prog_compiler_wl_F77='-Wl,'
14061 lt_prog_compiler_static_F77='-static'
14063 case $host_os in
14064 aix*)
14065 # All AIX code is PIC.
14066 if test "$host_cpu" = ia64; then
14067 # AIX 5 now supports IA64 processor
14068 lt_prog_compiler_static_F77='-Bstatic'
14072 amigaos*)
14073 # FIXME: we need at least 68020 code to build shared libraries, but
14074 # adding the `-m68020' flag to GCC prevents building anything better,
14075 # like `-m68040'.
14076 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14079 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14080 # PIC is the default for these OSes.
14083 mingw* | cygwin* | pw32* | os2*)
14084 # This hack is so that the source file can tell whether it is being
14085 # built for inclusion in a dll (and should export symbols for example).
14086 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14087 # (--disable-auto-import) libraries
14088 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14091 darwin* | rhapsody*)
14092 # PIC is the default on this platform
14093 # Common symbols not allowed in MH_DYLIB files
14094 lt_prog_compiler_pic_F77='-fno-common'
14097 interix[3-9]*)
14098 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14099 # Instead, we relocate shared libraries at runtime.
14102 msdosdjgpp*)
14103 # Just because we use GCC doesn't mean we suddenly get shared libraries
14104 # on systems that don't support them.
14105 lt_prog_compiler_can_build_shared_F77=no
14106 enable_shared=no
14109 sysv4*MP*)
14110 if test -d /usr/nec; then
14111 lt_prog_compiler_pic_F77=-Kconform_pic
14115 hpux*)
14116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14117 # not for PA HP-UX.
14118 case $host_cpu in
14119 hppa*64*|ia64*)
14120 # +Z the default
14123 lt_prog_compiler_pic_F77='-fPIC'
14125 esac
14129 lt_prog_compiler_pic_F77='-fPIC'
14131 esac
14132 else
14133 # PORTME Check for flag to pass linker flags through the system compiler.
14134 case $host_os in
14135 aix*)
14136 lt_prog_compiler_wl_F77='-Wl,'
14137 if test "$host_cpu" = ia64; then
14138 # AIX 5 now supports IA64 processor
14139 lt_prog_compiler_static_F77='-Bstatic'
14140 else
14141 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14144 darwin*)
14145 # PIC is the default on this platform
14146 # Common symbols not allowed in MH_DYLIB files
14147 case $cc_basename in
14148 xlc*)
14149 lt_prog_compiler_pic_F77='-qnocommon'
14150 lt_prog_compiler_wl_F77='-Wl,'
14152 esac
14155 mingw* | cygwin* | pw32* | os2*)
14156 # This hack is so that the source file can tell whether it is being
14157 # built for inclusion in a dll (and should export symbols for example).
14158 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14161 hpux9* | hpux10* | hpux11*)
14162 lt_prog_compiler_wl_F77='-Wl,'
14163 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14164 # not for PA HP-UX.
14165 case $host_cpu in
14166 hppa*64*|ia64*)
14167 # +Z the default
14170 lt_prog_compiler_pic_F77='+Z'
14172 esac
14173 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14174 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14177 irix5* | irix6* | nonstopux*)
14178 lt_prog_compiler_wl_F77='-Wl,'
14179 # PIC (with -KPIC) is the default.
14180 lt_prog_compiler_static_F77='-non_shared'
14183 newsos6)
14184 lt_prog_compiler_pic_F77='-KPIC'
14185 lt_prog_compiler_static_F77='-Bstatic'
14188 linux* | k*bsd*-gnu)
14189 case $cc_basename in
14190 icc* | ecc*)
14191 lt_prog_compiler_wl_F77='-Wl,'
14192 lt_prog_compiler_pic_F77='-KPIC'
14193 lt_prog_compiler_static_F77='-static'
14195 pgcc* | pgf77* | pgf90* | pgf95*)
14196 # Portland Group compilers (*not* the Pentium gcc compiler,
14197 # which looks to be a dead project)
14198 lt_prog_compiler_wl_F77='-Wl,'
14199 lt_prog_compiler_pic_F77='-fpic'
14200 lt_prog_compiler_static_F77='-Bstatic'
14202 ccc*)
14203 lt_prog_compiler_wl_F77='-Wl,'
14204 # All Alpha code is PIC.
14205 lt_prog_compiler_static_F77='-non_shared'
14208 case `$CC -V 2>&1 | sed 5q` in
14209 *Sun\ C*)
14210 # Sun C 5.9
14211 lt_prog_compiler_pic_F77='-KPIC'
14212 lt_prog_compiler_static_F77='-Bstatic'
14213 lt_prog_compiler_wl_F77='-Wl,'
14215 *Sun\ F*)
14216 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14217 lt_prog_compiler_pic_F77='-KPIC'
14218 lt_prog_compiler_static_F77='-Bstatic'
14219 lt_prog_compiler_wl_F77=''
14221 esac
14223 esac
14226 osf3* | osf4* | osf5*)
14227 lt_prog_compiler_wl_F77='-Wl,'
14228 # All OSF/1 code is PIC.
14229 lt_prog_compiler_static_F77='-non_shared'
14232 rdos*)
14233 lt_prog_compiler_static_F77='-non_shared'
14236 solaris*)
14237 lt_prog_compiler_pic_F77='-KPIC'
14238 lt_prog_compiler_static_F77='-Bstatic'
14239 case $cc_basename in
14240 f77* | f90* | f95*)
14241 lt_prog_compiler_wl_F77='-Qoption ld ';;
14243 lt_prog_compiler_wl_F77='-Wl,';;
14244 esac
14247 sunos4*)
14248 lt_prog_compiler_wl_F77='-Qoption ld '
14249 lt_prog_compiler_pic_F77='-PIC'
14250 lt_prog_compiler_static_F77='-Bstatic'
14253 sysv4 | sysv4.2uw2* | sysv4.3*)
14254 lt_prog_compiler_wl_F77='-Wl,'
14255 lt_prog_compiler_pic_F77='-KPIC'
14256 lt_prog_compiler_static_F77='-Bstatic'
14259 sysv4*MP*)
14260 if test -d /usr/nec ;then
14261 lt_prog_compiler_pic_F77='-Kconform_pic'
14262 lt_prog_compiler_static_F77='-Bstatic'
14266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14267 lt_prog_compiler_wl_F77='-Wl,'
14268 lt_prog_compiler_pic_F77='-KPIC'
14269 lt_prog_compiler_static_F77='-Bstatic'
14272 unicos*)
14273 lt_prog_compiler_wl_F77='-Wl,'
14274 lt_prog_compiler_can_build_shared_F77=no
14277 uts4*)
14278 lt_prog_compiler_pic_F77='-pic'
14279 lt_prog_compiler_static_F77='-Bstatic'
14283 lt_prog_compiler_can_build_shared_F77=no
14285 esac
14288 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14289 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14292 # Check to make sure the PIC flag actually works.
14294 if test -n "$lt_prog_compiler_pic_F77"; then
14296 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14297 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14298 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301 lt_cv_prog_compiler_pic_works_F77=no
14302 ac_outfile=conftest.$ac_objext
14303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14304 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14305 # Insert the option either (1) after the last *FLAGS variable, or
14306 # (2) before a word containing "conftest.", or (3) at the end.
14307 # Note that $ac_compile itself does not contain backslashes and begins
14308 # with a dollar sign (not a hyphen), so the echo should work correctly.
14309 # The option is referenced via a variable to avoid confusing sed.
14310 lt_compile=`echo "$ac_compile" | $SED \
14311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14313 -e 's:$: $lt_compiler_flag:'`
14314 (eval echo "\"\$as_me:14314: $lt_compile\"" >&5)
14315 (eval "$lt_compile" 2>conftest.err)
14316 ac_status=$?
14317 cat conftest.err >&5
14318 echo "$as_me:14318: \$? = $ac_status" >&5
14319 if (exit $ac_status) && test -s "$ac_outfile"; then
14320 # The compiler can only warn and ignore the option if not recognized
14321 # So say no if there are warnings other than the usual output.
14322 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14325 lt_cv_prog_compiler_pic_works_F77=yes
14328 $rm conftest*
14331 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14332 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14334 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14335 case $lt_prog_compiler_pic_F77 in
14336 "" | " "*) ;;
14337 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14338 esac
14339 else
14340 lt_prog_compiler_pic_F77=
14341 lt_prog_compiler_can_build_shared_F77=no
14345 case $host_os in
14346 # For platforms which do not support PIC, -DPIC is meaningless:
14347 *djgpp*)
14348 lt_prog_compiler_pic_F77=
14351 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14353 esac
14356 # Check to make sure the static flag actually works.
14358 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14359 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14360 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14361 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364 lt_cv_prog_compiler_static_works_F77=no
14365 save_LDFLAGS="$LDFLAGS"
14366 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14367 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14369 # The linker can only warn and ignore the option if not recognized
14370 # So say no if there are warnings
14371 if test -s conftest.err; then
14372 # Append any errors to the config.log.
14373 cat conftest.err 1>&5
14374 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14376 if diff conftest.exp conftest.er2 >/dev/null; then
14377 lt_cv_prog_compiler_static_works_F77=yes
14379 else
14380 lt_cv_prog_compiler_static_works_F77=yes
14383 $rm -r conftest*
14384 LDFLAGS="$save_LDFLAGS"
14387 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14388 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14390 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14392 else
14393 lt_prog_compiler_static_F77=
14397 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14398 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14399 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 else
14402 lt_cv_prog_compiler_c_o_F77=no
14403 $rm -r conftest 2>/dev/null
14404 mkdir conftest
14405 cd conftest
14406 mkdir out
14407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14409 lt_compiler_flag="-o out/conftest2.$ac_objext"
14410 # Insert the option either (1) after the last *FLAGS variable, or
14411 # (2) before a word containing "conftest.", or (3) at the end.
14412 # Note that $ac_compile itself does not contain backslashes and begins
14413 # with a dollar sign (not a hyphen), so the echo should work correctly.
14414 lt_compile=`echo "$ac_compile" | $SED \
14415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14417 -e 's:$: $lt_compiler_flag:'`
14418 (eval echo "\"\$as_me:14418: $lt_compile\"" >&5)
14419 (eval "$lt_compile" 2>out/conftest.err)
14420 ac_status=$?
14421 cat out/conftest.err >&5
14422 echo "$as_me:14422: \$? = $ac_status" >&5
14423 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14424 then
14425 # The compiler can only warn and ignore the option if not recognized
14426 # So say no if there are warnings
14427 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14428 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14429 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14430 lt_cv_prog_compiler_c_o_F77=yes
14433 chmod u+w . 2>&5
14434 $rm conftest*
14435 # SGI C++ compiler will create directory out/ii_files/ for
14436 # template instantiation
14437 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14438 $rm out/* && rmdir out
14439 cd ..
14440 rmdir conftest
14441 $rm conftest*
14444 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14445 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14448 hard_links="nottested"
14449 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14450 # do not overwrite the value of need_locks provided by the user
14451 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14452 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14453 hard_links=yes
14454 $rm conftest*
14455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14456 touch conftest.a
14457 ln conftest.a conftest.b 2>&5 || hard_links=no
14458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14459 { echo "$as_me:$LINENO: result: $hard_links" >&5
14460 echo "${ECHO_T}$hard_links" >&6; }
14461 if test "$hard_links" = no; then
14462 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14463 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14464 need_locks=warn
14466 else
14467 need_locks=no
14470 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14471 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14473 runpath_var=
14474 allow_undefined_flag_F77=
14475 enable_shared_with_static_runtimes_F77=no
14476 archive_cmds_F77=
14477 archive_expsym_cmds_F77=
14478 old_archive_From_new_cmds_F77=
14479 old_archive_from_expsyms_cmds_F77=
14480 export_dynamic_flag_spec_F77=
14481 whole_archive_flag_spec_F77=
14482 thread_safe_flag_spec_F77=
14483 hardcode_libdir_flag_spec_F77=
14484 hardcode_libdir_flag_spec_ld_F77=
14485 hardcode_libdir_separator_F77=
14486 hardcode_direct_F77=no
14487 hardcode_minus_L_F77=no
14488 hardcode_shlibpath_var_F77=unsupported
14489 link_all_deplibs_F77=unknown
14490 hardcode_automatic_F77=no
14491 module_cmds_F77=
14492 module_expsym_cmds_F77=
14493 always_export_symbols_F77=no
14494 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14495 # include_expsyms should be a list of space-separated symbols to be *always*
14496 # included in the symbol list
14497 include_expsyms_F77=
14498 # exclude_expsyms can be an extended regexp of symbols to exclude
14499 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14500 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14501 # as well as any symbol that contains `d'.
14502 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14503 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14504 # platforms (ab)use it in PIC code, but their linkers get confused if
14505 # the symbol is explicitly referenced. Since portable code cannot
14506 # rely on this symbol name, it's probably fine to never include it in
14507 # preloaded symbol tables.
14508 # Exclude shared library initialization/finalization symbols.
14509 extract_expsyms_cmds=
14510 # Just being paranoid about ensuring that cc_basename is set.
14511 for cc_temp in $compiler""; do
14512 case $cc_temp in
14513 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14514 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14515 \-*) ;;
14516 *) break;;
14517 esac
14518 done
14519 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14521 case $host_os in
14522 cygwin* | mingw* | pw32*)
14523 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14524 # When not using gcc, we currently assume that we are using
14525 # Microsoft Visual C++.
14526 if test "$GCC" != yes; then
14527 with_gnu_ld=no
14530 interix*)
14531 # we just hope/assume this is gcc and not c89 (= MSVC++)
14532 with_gnu_ld=yes
14534 openbsd*)
14535 with_gnu_ld=no
14537 esac
14539 ld_shlibs_F77=yes
14540 if test "$with_gnu_ld" = yes; then
14541 # If archive_cmds runs LD, not CC, wlarc should be empty
14542 wlarc='${wl}'
14544 # Set some defaults for GNU ld with shared library support. These
14545 # are reset later if shared libraries are not supported. Putting them
14546 # here allows them to be overridden if necessary.
14547 runpath_var=LD_RUN_PATH
14548 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14549 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14550 # ancient GNU ld didn't support --whole-archive et. al.
14551 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14552 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14553 else
14554 whole_archive_flag_spec_F77=
14556 supports_anon_versioning=no
14557 case `$LD -v 2>/dev/null` in
14558 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14559 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14560 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14561 *\ 2.11.*) ;; # other 2.11 versions
14562 *) supports_anon_versioning=yes ;;
14563 esac
14565 # See if GNU ld supports shared libraries.
14566 case $host_os in
14567 aix[3-9]*)
14568 # On AIX/PPC, the GNU linker is very broken
14569 if test "$host_cpu" != ia64; then
14570 ld_shlibs_F77=no
14571 cat <<EOF 1>&2
14573 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14574 *** to be unable to reliably create shared libraries on AIX.
14575 *** Therefore, libtool is disabling shared libraries support. If you
14576 *** really care for shared libraries, you may want to modify your PATH
14577 *** so that a non-GNU linker is found, and then restart.
14583 amigaos*)
14584 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)'
14585 hardcode_libdir_flag_spec_F77='-L$libdir'
14586 hardcode_minus_L_F77=yes
14588 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14589 # that the semantics of dynamic libraries on AmigaOS, at least up
14590 # to version 4, is to share data among multiple programs linked
14591 # with the same dynamic library. Since this doesn't match the
14592 # behavior of shared libraries on other platforms, we can't use
14593 # them.
14594 ld_shlibs_F77=no
14597 beos*)
14598 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14599 allow_undefined_flag_F77=unsupported
14600 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14601 # support --undefined. This deserves some investigation. FIXME
14602 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14603 else
14604 ld_shlibs_F77=no
14608 cygwin* | mingw* | pw32*)
14609 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14610 # as there is no search path for DLLs.
14611 hardcode_libdir_flag_spec_F77='-L$libdir'
14612 allow_undefined_flag_F77=unsupported
14613 always_export_symbols_F77=no
14614 enable_shared_with_static_runtimes_F77=yes
14615 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14617 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14618 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14619 # If the export-symbols file already is a .def file (1st line
14620 # is EXPORTS), use it as is; otherwise, prepend...
14621 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14622 cp $export_symbols $output_objdir/$soname.def;
14623 else
14624 echo EXPORTS > $output_objdir/$soname.def;
14625 cat $export_symbols >> $output_objdir/$soname.def;
14627 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14628 else
14629 ld_shlibs_F77=no
14633 interix[3-9]*)
14634 hardcode_direct_F77=no
14635 hardcode_shlibpath_var_F77=no
14636 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14637 export_dynamic_flag_spec_F77='${wl}-E'
14638 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14639 # Instead, shared libraries are loaded at an image base (0x10000000 by
14640 # default) and relocated if they conflict, which is a slow very memory
14641 # consuming and fragmenting process. To avoid this, we pick a random,
14642 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14643 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14644 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'
14645 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'
14648 gnu* | linux* | k*bsd*-gnu)
14649 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14650 tmp_addflag=
14651 case $cc_basename,$host_cpu in
14652 pgcc*) # Portland Group C compiler
14653 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'
14654 tmp_addflag=' $pic_flag'
14656 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14657 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'
14658 tmp_addflag=' $pic_flag -Mnomain' ;;
14659 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14660 tmp_addflag=' -i_dynamic' ;;
14661 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14662 tmp_addflag=' -i_dynamic -nofor_main' ;;
14663 ifc* | ifort*) # Intel Fortran compiler
14664 tmp_addflag=' -nofor_main' ;;
14665 esac
14666 case `$CC -V 2>&1 | sed 5q` in
14667 *Sun\ C*) # Sun C 5.9
14668 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14669 tmp_sharedflag='-G' ;;
14670 *Sun\ F*) # Sun Fortran 8.3
14671 tmp_sharedflag='-G' ;;
14673 tmp_sharedflag='-shared' ;;
14674 esac
14675 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14677 if test $supports_anon_versioning = yes; then
14678 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14680 $echo "local: *; };" >> $output_objdir/$libname.ver~
14681 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14683 else
14684 ld_shlibs_F77=no
14688 netbsd*)
14689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14690 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14691 wlarc=
14692 else
14693 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14698 solaris*)
14699 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14700 ld_shlibs_F77=no
14701 cat <<EOF 1>&2
14703 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14704 *** create shared libraries on Solaris systems. Therefore, libtool
14705 *** is disabling shared libraries support. We urge you to upgrade GNU
14706 *** binutils to release 2.9.1 or newer. Another option is to modify
14707 *** your PATH or compiler configuration so that the native linker is
14708 *** used, and then restart.
14711 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14712 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14713 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14714 else
14715 ld_shlibs_F77=no
14719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14720 case `$LD -v 2>&1` in
14721 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14722 ld_shlibs_F77=no
14723 cat <<_LT_EOF 1>&2
14725 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14726 *** reliably create shared libraries on SCO systems. Therefore, libtool
14727 *** is disabling shared libraries support. We urge you to upgrade GNU
14728 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14729 *** your PATH or compiler configuration so that the native linker is
14730 *** used, and then restart.
14732 _LT_EOF
14735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14736 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14737 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14738 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14739 else
14740 ld_shlibs_F77=no
14743 esac
14746 sunos4*)
14747 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14748 wlarc=
14749 hardcode_direct_F77=yes
14750 hardcode_shlibpath_var_F77=no
14754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14755 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14756 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14757 else
14758 ld_shlibs_F77=no
14761 esac
14763 if test "$ld_shlibs_F77" = no; then
14764 runpath_var=
14765 hardcode_libdir_flag_spec_F77=
14766 export_dynamic_flag_spec_F77=
14767 whole_archive_flag_spec_F77=
14769 else
14770 # PORTME fill in a description of your system's linker (not GNU ld)
14771 case $host_os in
14772 aix3*)
14773 allow_undefined_flag_F77=unsupported
14774 always_export_symbols_F77=yes
14775 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'
14776 # Note: this linker hardcodes the directories in LIBPATH if there
14777 # are no directories specified by -L.
14778 hardcode_minus_L_F77=yes
14779 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14780 # Neither direct hardcoding nor static linking is supported with a
14781 # broken collect2.
14782 hardcode_direct_F77=unsupported
14786 aix[4-9]*)
14787 if test "$host_cpu" = ia64; then
14788 # On IA64, the linker does run time linking by default, so we don't
14789 # have to do anything special.
14790 aix_use_runtimelinking=no
14791 exp_sym_flag='-Bexport'
14792 no_entry_flag=""
14793 else
14794 # If we're using GNU nm, then we don't want the "-C" option.
14795 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14796 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14797 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'
14798 else
14799 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'
14801 aix_use_runtimelinking=no
14803 # Test if we are trying to use run time linking or normal
14804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14805 # need to do runtime linking.
14806 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14807 for ld_flag in $LDFLAGS; do
14808 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14809 aix_use_runtimelinking=yes
14810 break
14812 done
14814 esac
14816 exp_sym_flag='-bexport'
14817 no_entry_flag='-bnoentry'
14820 # When large executables or shared objects are built, AIX ld can
14821 # have problems creating the table of contents. If linking a library
14822 # or program results in "error TOC overflow" add -mminimal-toc to
14823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14826 archive_cmds_F77=''
14827 hardcode_direct_F77=yes
14828 hardcode_libdir_separator_F77=':'
14829 link_all_deplibs_F77=yes
14831 if test "$GCC" = yes; then
14832 case $host_os in aix4.[012]|aix4.[012].*)
14833 # We only want to do this on AIX 4.2 and lower, the check
14834 # below for broken collect2 doesn't work under 4.3+
14835 collect2name=`${CC} -print-prog-name=collect2`
14836 if test -f "$collect2name" && \
14837 strings "$collect2name" | grep resolve_lib_name >/dev/null
14838 then
14839 # We have reworked collect2
14841 else
14842 # We have old collect2
14843 hardcode_direct_F77=unsupported
14844 # It fails to find uninstalled libraries when the uninstalled
14845 # path is not listed in the libpath. Setting hardcode_minus_L
14846 # to unsupported forces relinking
14847 hardcode_minus_L_F77=yes
14848 hardcode_libdir_flag_spec_F77='-L$libdir'
14849 hardcode_libdir_separator_F77=
14852 esac
14853 shared_flag='-shared'
14854 if test "$aix_use_runtimelinking" = yes; then
14855 shared_flag="$shared_flag "'${wl}-G'
14857 else
14858 # not using gcc
14859 if test "$host_cpu" = ia64; then
14860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14861 # chokes on -Wl,-G. The following line is correct:
14862 shared_flag='-G'
14863 else
14864 if test "$aix_use_runtimelinking" = yes; then
14865 shared_flag='${wl}-G'
14866 else
14867 shared_flag='${wl}-bM:SRE'
14872 # It seems that -bexpall does not export symbols beginning with
14873 # underscore (_), so it is better to generate a list of symbols to export.
14874 always_export_symbols_F77=yes
14875 if test "$aix_use_runtimelinking" = yes; then
14876 # Warning - without using the other runtime loading flags (-brtl),
14877 # -berok will link without error, but may produce a broken library.
14878 allow_undefined_flag_F77='-berok'
14879 # Determine the default libpath from the value encoded in an empty executable.
14880 cat >conftest.$ac_ext <<_ACEOF
14881 program main
14884 _ACEOF
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (ac_try="$ac_link"
14887 case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890 esac
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_link") 2>conftest.er1
14893 ac_status=$?
14894 grep -v '^ *+' conftest.er1 >conftest.err
14895 rm -f conftest.er1
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } && {
14899 test -z "$ac_f77_werror_flag" ||
14900 test ! -s conftest.err
14901 } && test -s conftest$ac_exeext &&
14902 $as_test_x conftest$ac_exeext; then
14904 lt_aix_libpath_sed='
14905 /Import File Strings/,/^$/ {
14906 /^0/ {
14907 s/^0 *\(.*\)$/\1/
14911 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14912 # Check for a 64-bit object if we didn't find anything.
14913 if test -z "$aix_libpath"; then
14914 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14916 else
14917 echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14924 conftest$ac_exeext conftest.$ac_ext
14925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14927 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14928 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"
14929 else
14930 if test "$host_cpu" = ia64; then
14931 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14932 allow_undefined_flag_F77="-z nodefs"
14933 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"
14934 else
14935 # Determine the default libpath from the value encoded in an empty executable.
14936 cat >conftest.$ac_ext <<_ACEOF
14937 program main
14940 _ACEOF
14941 rm -f conftest.$ac_objext conftest$ac_exeext
14942 if { (ac_try="$ac_link"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946 esac
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_link") 2>conftest.er1
14949 ac_status=$?
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } && {
14955 test -z "$ac_f77_werror_flag" ||
14956 test ! -s conftest.err
14957 } && test -s conftest$ac_exeext &&
14958 $as_test_x conftest$ac_exeext; then
14960 lt_aix_libpath_sed='
14961 /Import File Strings/,/^$/ {
14962 /^0/ {
14963 s/^0 *\(.*\)$/\1/
14967 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14968 # Check for a 64-bit object if we didn't find anything.
14969 if test -z "$aix_libpath"; then
14970 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14972 else
14973 echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14980 conftest$ac_exeext conftest.$ac_ext
14981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14983 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14984 # Warning - without using the other run time loading flags,
14985 # -berok will link without error, but may produce a broken library.
14986 no_undefined_flag_F77=' ${wl}-bernotok'
14987 allow_undefined_flag_F77=' ${wl}-berok'
14988 # Exported symbols can be pulled into shared objects from archives
14989 whole_archive_flag_spec_F77='$convenience'
14990 archive_cmds_need_lc_F77=yes
14991 # This is similar to how AIX traditionally builds its shared libraries.
14992 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'
14997 amigaos*)
14998 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)'
14999 hardcode_libdir_flag_spec_F77='-L$libdir'
15000 hardcode_minus_L_F77=yes
15001 # see comment about different semantics on the GNU ld section
15002 ld_shlibs_F77=no
15005 bsdi[45]*)
15006 export_dynamic_flag_spec_F77=-rdynamic
15009 cygwin* | mingw* | pw32*)
15010 # When not using gcc, we currently assume that we are using
15011 # Microsoft Visual C++.
15012 # hardcode_libdir_flag_spec is actually meaningless, as there is
15013 # no search path for DLLs.
15014 hardcode_libdir_flag_spec_F77=' '
15015 allow_undefined_flag_F77=unsupported
15016 # Tell ltmain to make .lib files, not .a files.
15017 libext=lib
15018 # Tell ltmain to make .dll files, not .so files.
15019 shrext_cmds=".dll"
15020 # FIXME: Setting linknames here is a bad hack.
15021 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15022 # The linker will automatically build a .lib file if we build a DLL.
15023 old_archive_From_new_cmds_F77='true'
15024 # FIXME: Should let the user specify the lib program.
15025 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15026 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15027 enable_shared_with_static_runtimes_F77=yes
15030 darwin* | rhapsody*)
15031 case $host_os in
15032 rhapsody* | darwin1.[012])
15033 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15035 *) # Darwin 1.3 on
15036 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15037 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15038 else
15039 case ${MACOSX_DEPLOYMENT_TARGET} in
15040 10.[012])
15041 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15043 10.*)
15044 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15046 esac
15049 esac
15050 archive_cmds_need_lc_F77=no
15051 hardcode_direct_F77=no
15052 hardcode_automatic_F77=yes
15053 hardcode_shlibpath_var_F77=unsupported
15054 whole_archive_flag_spec_F77=''
15055 link_all_deplibs_F77=yes
15056 if test "$GCC" = yes ; then
15057 output_verbose_link_cmd='echo'
15058 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15059 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15060 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15061 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15062 else
15063 case $cc_basename in
15064 xlc*)
15065 output_verbose_link_cmd='echo'
15066 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15067 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15068 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15069 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15070 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}'
15073 ld_shlibs_F77=no
15075 esac
15079 dgux*)
15080 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15081 hardcode_libdir_flag_spec_F77='-L$libdir'
15082 hardcode_shlibpath_var_F77=no
15085 freebsd1*)
15086 ld_shlibs_F77=no
15089 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15090 # support. Future versions do this automatically, but an explicit c++rt0.o
15091 # does not break anything, and helps significantly (at the cost of a little
15092 # extra space).
15093 freebsd2.2*)
15094 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15095 hardcode_libdir_flag_spec_F77='-R$libdir'
15096 hardcode_direct_F77=yes
15097 hardcode_shlibpath_var_F77=no
15100 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15101 freebsd2*)
15102 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15103 hardcode_direct_F77=yes
15104 hardcode_minus_L_F77=yes
15105 hardcode_shlibpath_var_F77=no
15108 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15109 freebsd* | dragonfly*)
15110 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15111 hardcode_libdir_flag_spec_F77='-R$libdir'
15112 hardcode_direct_F77=yes
15113 hardcode_shlibpath_var_F77=no
15116 hpux9*)
15117 if test "$GCC" = yes; then
15118 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'
15119 else
15120 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'
15122 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15123 hardcode_libdir_separator_F77=:
15124 hardcode_direct_F77=yes
15126 # hardcode_minus_L: Not really in the search PATH,
15127 # but as the default location of the library.
15128 hardcode_minus_L_F77=yes
15129 export_dynamic_flag_spec_F77='${wl}-E'
15132 hpux10*)
15133 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15134 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15135 else
15136 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15138 if test "$with_gnu_ld" = no; then
15139 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15140 hardcode_libdir_separator_F77=:
15142 hardcode_direct_F77=yes
15143 export_dynamic_flag_spec_F77='${wl}-E'
15145 # hardcode_minus_L: Not really in the search PATH,
15146 # but as the default location of the library.
15147 hardcode_minus_L_F77=yes
15151 hpux11*)
15152 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15153 case $host_cpu in
15154 hppa*64*)
15155 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15157 ia64*)
15158 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15161 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15163 esac
15164 else
15165 case $host_cpu in
15166 hppa*64*)
15167 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15169 ia64*)
15170 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15173 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15175 esac
15177 if test "$with_gnu_ld" = no; then
15178 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15179 hardcode_libdir_separator_F77=:
15181 case $host_cpu in
15182 hppa*64*|ia64*)
15183 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15184 hardcode_direct_F77=no
15185 hardcode_shlibpath_var_F77=no
15188 hardcode_direct_F77=yes
15189 export_dynamic_flag_spec_F77='${wl}-E'
15191 # hardcode_minus_L: Not really in the search PATH,
15192 # but as the default location of the library.
15193 hardcode_minus_L_F77=yes
15195 esac
15199 irix5* | irix6* | nonstopux*)
15200 if test "$GCC" = yes; then
15201 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'
15202 else
15203 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'
15204 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15206 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15207 hardcode_libdir_separator_F77=:
15208 link_all_deplibs_F77=yes
15211 netbsd*)
15212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15213 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15214 else
15215 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15217 hardcode_libdir_flag_spec_F77='-R$libdir'
15218 hardcode_direct_F77=yes
15219 hardcode_shlibpath_var_F77=no
15222 newsos6)
15223 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15224 hardcode_direct_F77=yes
15225 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15226 hardcode_libdir_separator_F77=:
15227 hardcode_shlibpath_var_F77=no
15230 openbsd*)
15231 if test -f /usr/libexec/ld.so; then
15232 hardcode_direct_F77=yes
15233 hardcode_shlibpath_var_F77=no
15234 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15235 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15236 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15237 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15238 export_dynamic_flag_spec_F77='${wl}-E'
15239 else
15240 case $host_os in
15241 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15242 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15243 hardcode_libdir_flag_spec_F77='-R$libdir'
15246 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15247 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15249 esac
15251 else
15252 ld_shlibs_F77=no
15256 os2*)
15257 hardcode_libdir_flag_spec_F77='-L$libdir'
15258 hardcode_minus_L_F77=yes
15259 allow_undefined_flag_F77=unsupported
15260 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'
15261 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15264 osf3*)
15265 if test "$GCC" = yes; then
15266 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15267 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'
15268 else
15269 allow_undefined_flag_F77=' -expect_unresolved \*'
15270 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'
15272 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15273 hardcode_libdir_separator_F77=:
15276 osf4* | osf5*) # as osf3* with the addition of -msym flag
15277 if test "$GCC" = yes; then
15278 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15279 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'
15280 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15281 else
15282 allow_undefined_flag_F77=' -expect_unresolved \*'
15283 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'
15284 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~
15285 $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'
15287 # Both c and cxx compiler support -rpath directly
15288 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15290 hardcode_libdir_separator_F77=:
15293 solaris*)
15294 no_undefined_flag_F77=' -z text'
15295 if test "$GCC" = yes; then
15296 wlarc='${wl}'
15297 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15298 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15299 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15300 else
15301 wlarc=''
15302 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15303 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15306 hardcode_libdir_flag_spec_F77='-R$libdir'
15307 hardcode_shlibpath_var_F77=no
15308 case $host_os in
15309 solaris2.[0-5] | solaris2.[0-5].*) ;;
15311 # The compiler driver will combine and reorder linker options,
15312 # but understands `-z linker_flag'. GCC discards it without `$wl',
15313 # but is careful enough not to reorder.
15314 # Supported since Solaris 2.6 (maybe 2.5.1?)
15315 if test "$GCC" = yes; then
15316 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15317 else
15318 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15321 esac
15322 link_all_deplibs_F77=yes
15325 sunos4*)
15326 if test "x$host_vendor" = xsequent; then
15327 # Use $CC to link under sequent, because it throws in some extra .o
15328 # files that make .init and .fini sections work.
15329 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15330 else
15331 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15333 hardcode_libdir_flag_spec_F77='-L$libdir'
15334 hardcode_direct_F77=yes
15335 hardcode_minus_L_F77=yes
15336 hardcode_shlibpath_var_F77=no
15339 sysv4)
15340 case $host_vendor in
15341 sni)
15342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15343 hardcode_direct_F77=yes # is this really true???
15345 siemens)
15346 ## LD is ld it makes a PLAMLIB
15347 ## CC just makes a GrossModule.
15348 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15349 reload_cmds_F77='$CC -r -o $output$reload_objs'
15350 hardcode_direct_F77=no
15352 motorola)
15353 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15354 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15356 esac
15357 runpath_var='LD_RUN_PATH'
15358 hardcode_shlibpath_var_F77=no
15361 sysv4.3*)
15362 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15363 hardcode_shlibpath_var_F77=no
15364 export_dynamic_flag_spec_F77='-Bexport'
15367 sysv4*MP*)
15368 if test -d /usr/nec; then
15369 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15370 hardcode_shlibpath_var_F77=no
15371 runpath_var=LD_RUN_PATH
15372 hardcode_runpath_var=yes
15373 ld_shlibs_F77=yes
15377 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15378 no_undefined_flag_F77='${wl}-z,text'
15379 archive_cmds_need_lc_F77=no
15380 hardcode_shlibpath_var_F77=no
15381 runpath_var='LD_RUN_PATH'
15383 if test "$GCC" = yes; then
15384 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15385 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15386 else
15387 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15388 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15392 sysv5* | sco3.2v5* | sco5v6*)
15393 # Note: We can NOT use -z defs as we might desire, because we do not
15394 # link with -lc, and that would cause any symbols used from libc to
15395 # always be unresolved, which means just about no library would
15396 # ever link correctly. If we're not using GNU ld we use -z text
15397 # though, which does catch some bad symbols but isn't as heavy-handed
15398 # as -z defs.
15399 no_undefined_flag_F77='${wl}-z,text'
15400 allow_undefined_flag_F77='${wl}-z,nodefs'
15401 archive_cmds_need_lc_F77=no
15402 hardcode_shlibpath_var_F77=no
15403 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15404 hardcode_libdir_separator_F77=':'
15405 link_all_deplibs_F77=yes
15406 export_dynamic_flag_spec_F77='${wl}-Bexport'
15407 runpath_var='LD_RUN_PATH'
15409 if test "$GCC" = yes; then
15410 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15411 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15412 else
15413 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15414 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15418 uts4*)
15419 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15420 hardcode_libdir_flag_spec_F77='-L$libdir'
15421 hardcode_shlibpath_var_F77=no
15425 ld_shlibs_F77=no
15427 esac
15430 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15431 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15432 test "$ld_shlibs_F77" = no && can_build_shared=no
15435 # Do we need to explicitly link libc?
15437 case "x$archive_cmds_need_lc_F77" in
15438 x|xyes)
15439 # Assume -lc should be added
15440 archive_cmds_need_lc_F77=yes
15442 if test "$enable_shared" = yes && test "$GCC" = yes; then
15443 case $archive_cmds_F77 in
15444 *'~'*)
15445 # FIXME: we may have to deal with multi-command sequences.
15447 '$CC '*)
15448 # Test whether the compiler implicitly links with -lc since on some
15449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15450 # to ld, don't add -lc before -lgcc.
15451 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15452 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15453 $rm conftest*
15454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457 (eval $ac_compile) 2>&5
15458 ac_status=$?
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } 2>conftest.err; then
15461 soname=conftest
15462 lib=conftest
15463 libobjs=conftest.$ac_objext
15464 deplibs=
15465 wl=$lt_prog_compiler_wl_F77
15466 pic_flag=$lt_prog_compiler_pic_F77
15467 compiler_flags=-v
15468 linker_flags=-v
15469 verstring=
15470 output_objdir=.
15471 libname=conftest
15472 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15473 allow_undefined_flag_F77=
15474 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15475 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }
15479 then
15480 archive_cmds_need_lc_F77=no
15481 else
15482 archive_cmds_need_lc_F77=yes
15484 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15485 else
15486 cat conftest.err 1>&5
15488 $rm conftest*
15489 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15490 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15492 esac
15495 esac
15497 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15498 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15499 library_names_spec=
15500 libname_spec='lib$name'
15501 soname_spec=
15502 shrext_cmds=".so"
15503 postinstall_cmds=
15504 postuninstall_cmds=
15505 finish_cmds=
15506 finish_eval=
15507 shlibpath_var=
15508 shlibpath_overrides_runpath=unknown
15509 version_type=none
15510 dynamic_linker="$host_os ld.so"
15511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15513 need_lib_prefix=unknown
15514 hardcode_into_libs=no
15516 # when you set need_version to no, make sure it does not cause -set_version
15517 # flags to be left without arguments
15518 need_version=unknown
15520 case $host_os in
15521 aix3*)
15522 version_type=linux
15523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15524 shlibpath_var=LIBPATH
15526 # AIX 3 has no versioning support, so we append a major version to the name.
15527 soname_spec='${libname}${release}${shared_ext}$major'
15530 aix[4-9]*)
15531 version_type=linux
15532 need_lib_prefix=no
15533 need_version=no
15534 hardcode_into_libs=yes
15535 if test "$host_cpu" = ia64; then
15536 # AIX 5 supports IA64
15537 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15538 shlibpath_var=LD_LIBRARY_PATH
15539 else
15540 # With GCC up to 2.95.x, collect2 would create an import file
15541 # for dependence libraries. The import file would start with
15542 # the line `#! .'. This would cause the generated library to
15543 # depend on `.', always an invalid library. This was fixed in
15544 # development snapshots of GCC prior to 3.0.
15545 case $host_os in
15546 aix4 | aix4.[01] | aix4.[01].*)
15547 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15548 echo ' yes '
15549 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15551 else
15552 can_build_shared=no
15555 esac
15556 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15557 # soname into executable. Probably we can add versioning support to
15558 # collect2, so additional links can be useful in future.
15559 if test "$aix_use_runtimelinking" = yes; then
15560 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15561 # instead of lib<name>.a to let people know that these are not
15562 # typical AIX shared libraries.
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564 else
15565 # We preserve .a as extension for shared libraries through AIX4.2
15566 # and later when we are not doing run time linking.
15567 library_names_spec='${libname}${release}.a $libname.a'
15568 soname_spec='${libname}${release}${shared_ext}$major'
15570 shlibpath_var=LIBPATH
15574 amigaos*)
15575 library_names_spec='$libname.ixlibrary $libname.a'
15576 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15577 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'
15580 beos*)
15581 library_names_spec='${libname}${shared_ext}'
15582 dynamic_linker="$host_os ld.so"
15583 shlibpath_var=LIBRARY_PATH
15586 bsdi[45]*)
15587 version_type=linux
15588 need_version=no
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15591 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15592 shlibpath_var=LD_LIBRARY_PATH
15593 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15594 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15595 # the default ld.so.conf also contains /usr/contrib/lib and
15596 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15597 # libtool to hard-code these into programs
15600 cygwin* | mingw* | pw32*)
15601 version_type=windows
15602 shrext_cmds=".dll"
15603 need_version=no
15604 need_lib_prefix=no
15606 case $GCC,$host_os in
15607 yes,cygwin* | yes,mingw* | yes,pw32*)
15608 library_names_spec='$libname.dll.a'
15609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15610 postinstall_cmds='base_file=`basename \${file}`~
15611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15612 dldir=$destdir/`dirname \$dlpath`~
15613 test -d \$dldir || mkdir -p \$dldir~
15614 $install_prog $dir/$dlname \$dldir/$dlname~
15615 chmod a+x \$dldir/$dlname'
15616 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15617 dlpath=$dir/\$dldll~
15618 $rm \$dlpath'
15619 shlibpath_overrides_runpath=yes
15621 case $host_os in
15622 cygwin*)
15623 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15624 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15625 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15627 mingw*)
15628 # MinGW DLLs use traditional 'lib' prefix
15629 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15630 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15631 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15632 # It is most probably a Windows format PATH printed by
15633 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15634 # path with ; separators, and with drive letters. We can handle the
15635 # drive letters (cygwin fileutils understands them), so leave them,
15636 # especially as we might pass files found there to a mingw objdump,
15637 # which wouldn't understand a cygwinified path. Ahh.
15638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15639 else
15640 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15643 pw32*)
15644 # pw32 DLLs use 'pw' prefix rather than 'lib'
15645 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15647 esac
15651 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15653 esac
15654 dynamic_linker='Win32 ld.exe'
15655 # FIXME: first we should search . and the directory the executable is in
15656 shlibpath_var=PATH
15659 darwin* | rhapsody*)
15660 dynamic_linker="$host_os dyld"
15661 version_type=darwin
15662 need_lib_prefix=no
15663 need_version=no
15664 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15665 soname_spec='${libname}${release}${major}$shared_ext'
15666 shlibpath_overrides_runpath=yes
15667 shlibpath_var=DYLD_LIBRARY_PATH
15668 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15673 dgux*)
15674 version_type=linux
15675 need_lib_prefix=no
15676 need_version=no
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 shlibpath_var=LD_LIBRARY_PATH
15682 freebsd1*)
15683 dynamic_linker=no
15686 freebsd* | dragonfly*)
15687 # DragonFly does not have aout. When/if they implement a new
15688 # versioning mechanism, adjust this.
15689 if test -x /usr/bin/objformat; then
15690 objformat=`/usr/bin/objformat`
15691 else
15692 case $host_os in
15693 freebsd[123]*) objformat=aout ;;
15694 *) objformat=elf ;;
15695 esac
15697 version_type=freebsd-$objformat
15698 case $version_type in
15699 freebsd-elf*)
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15701 need_version=no
15702 need_lib_prefix=no
15704 freebsd-*)
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15706 need_version=yes
15708 esac
15709 shlibpath_var=LD_LIBRARY_PATH
15710 case $host_os in
15711 freebsd2*)
15712 shlibpath_overrides_runpath=yes
15714 freebsd3.[01]* | freebsdelf3.[01]*)
15715 shlibpath_overrides_runpath=yes
15716 hardcode_into_libs=yes
15718 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15719 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15720 shlibpath_overrides_runpath=no
15721 hardcode_into_libs=yes
15723 *) # from 4.6 on, and DragonFly
15724 shlibpath_overrides_runpath=yes
15725 hardcode_into_libs=yes
15727 esac
15730 gnu*)
15731 version_type=linux
15732 need_lib_prefix=no
15733 need_version=no
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15735 soname_spec='${libname}${release}${shared_ext}$major'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 hardcode_into_libs=yes
15740 hpux9* | hpux10* | hpux11*)
15741 # Give a soname corresponding to the major version so that dld.sl refuses to
15742 # link against other versions.
15743 version_type=sunos
15744 need_lib_prefix=no
15745 need_version=no
15746 case $host_cpu in
15747 ia64*)
15748 shrext_cmds='.so'
15749 hardcode_into_libs=yes
15750 dynamic_linker="$host_os dld.so"
15751 shlibpath_var=LD_LIBRARY_PATH
15752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754 soname_spec='${libname}${release}${shared_ext}$major'
15755 if test "X$HPUX_IA64_MODE" = X32; then
15756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15757 else
15758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15762 hppa*64*)
15763 shrext_cmds='.sl'
15764 hardcode_into_libs=yes
15765 dynamic_linker="$host_os dld.sl"
15766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769 soname_spec='${libname}${release}${shared_ext}$major'
15770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15774 shrext_cmds='.sl'
15775 dynamic_linker="$host_os dld.sl"
15776 shlibpath_var=SHLIB_PATH
15777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779 soname_spec='${libname}${release}${shared_ext}$major'
15781 esac
15782 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15783 postinstall_cmds='chmod 555 $lib'
15786 interix[3-9]*)
15787 version_type=linux
15788 need_lib_prefix=no
15789 need_version=no
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 shlibpath_overrides_runpath=no
15795 hardcode_into_libs=yes
15798 irix5* | irix6* | nonstopux*)
15799 case $host_os in
15800 nonstopux*) version_type=nonstopux ;;
15802 if test "$lt_cv_prog_gnu_ld" = yes; then
15803 version_type=linux
15804 else
15805 version_type=irix
15806 fi ;;
15807 esac
15808 need_lib_prefix=no
15809 need_version=no
15810 soname_spec='${libname}${release}${shared_ext}$major'
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15812 case $host_os in
15813 irix5* | nonstopux*)
15814 libsuff= shlibsuff=
15817 case $LD in # libtool.m4 will add one of these switches to LD
15818 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15819 libsuff= shlibsuff= libmagic=32-bit;;
15820 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15821 libsuff=32 shlibsuff=N32 libmagic=N32;;
15822 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15823 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15824 *) libsuff= shlibsuff= libmagic=never-match;;
15825 esac
15827 esac
15828 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15829 shlibpath_overrides_runpath=no
15830 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15831 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15832 hardcode_into_libs=yes
15835 # No shared lib support for Linux oldld, aout, or coff.
15836 linux*oldld* | linux*aout* | linux*coff*)
15837 dynamic_linker=no
15840 # This must be Linux ELF.
15841 linux* | k*bsd*-gnu)
15842 version_type=linux
15843 need_lib_prefix=no
15844 need_version=no
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15846 soname_spec='${libname}${release}${shared_ext}$major'
15847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15848 shlibpath_var=LD_LIBRARY_PATH
15849 shlibpath_overrides_runpath=no
15850 # This implies no fast_install, which is unacceptable.
15851 # Some rework will be needed to allow for fast_install
15852 # before this can be enabled.
15853 hardcode_into_libs=yes
15855 # Append ld.so.conf contents to the search path
15856 if test -f /etc/ld.so.conf; then
15857 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15858 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15861 # We used to test for /lib/ld.so.1 and disable shared libraries on
15862 # powerpc, because MkLinux only supported shared libraries with the
15863 # GNU dynamic linker. Since this was broken with cross compilers,
15864 # most powerpc-linux boxes support dynamic linking these days and
15865 # people can always --disable-shared, the test was removed, and we
15866 # assume the GNU/Linux dynamic linker is in use.
15867 dynamic_linker='GNU/Linux ld.so'
15870 netbsd*)
15871 version_type=sunos
15872 need_lib_prefix=no
15873 need_version=no
15874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15877 dynamic_linker='NetBSD (a.out) ld.so'
15878 else
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 dynamic_linker='NetBSD ld.elf_so'
15883 shlibpath_var=LD_LIBRARY_PATH
15884 shlibpath_overrides_runpath=yes
15885 hardcode_into_libs=yes
15888 newsos6)
15889 version_type=linux
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15891 shlibpath_var=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath=yes
15895 nto-qnx*)
15896 version_type=linux
15897 need_lib_prefix=no
15898 need_version=no
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900 soname_spec='${libname}${release}${shared_ext}$major'
15901 shlibpath_var=LD_LIBRARY_PATH
15902 shlibpath_overrides_runpath=yes
15905 openbsd*)
15906 version_type=sunos
15907 sys_lib_dlsearch_path_spec="/usr/lib"
15908 need_lib_prefix=no
15909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15910 case $host_os in
15911 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15912 *) need_version=no ;;
15913 esac
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15918 case $host_os in
15919 openbsd2.[89] | openbsd2.[89].*)
15920 shlibpath_overrides_runpath=no
15923 shlibpath_overrides_runpath=yes
15925 esac
15926 else
15927 shlibpath_overrides_runpath=yes
15931 os2*)
15932 libname_spec='$name'
15933 shrext_cmds=".dll"
15934 need_lib_prefix=no
15935 library_names_spec='$libname${shared_ext} $libname.a'
15936 dynamic_linker='OS/2 ld.exe'
15937 shlibpath_var=LIBPATH
15940 osf3* | osf4* | osf5*)
15941 version_type=osf
15942 need_lib_prefix=no
15943 need_version=no
15944 soname_spec='${libname}${release}${shared_ext}$major'
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946 shlibpath_var=LD_LIBRARY_PATH
15947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15951 rdos*)
15952 dynamic_linker=no
15955 solaris*)
15956 version_type=linux
15957 need_lib_prefix=no
15958 need_version=no
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15960 soname_spec='${libname}${release}${shared_ext}$major'
15961 shlibpath_var=LD_LIBRARY_PATH
15962 shlibpath_overrides_runpath=yes
15963 hardcode_into_libs=yes
15964 # ldd complains unless libraries are executable
15965 postinstall_cmds='chmod +x $lib'
15968 sunos4*)
15969 version_type=sunos
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15972 shlibpath_var=LD_LIBRARY_PATH
15973 shlibpath_overrides_runpath=yes
15974 if test "$with_gnu_ld" = yes; then
15975 need_lib_prefix=no
15977 need_version=yes
15980 sysv4 | sysv4.3*)
15981 version_type=linux
15982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15983 soname_spec='${libname}${release}${shared_ext}$major'
15984 shlibpath_var=LD_LIBRARY_PATH
15985 case $host_vendor in
15986 sni)
15987 shlibpath_overrides_runpath=no
15988 need_lib_prefix=no
15989 export_dynamic_flag_spec='${wl}-Blargedynsym'
15990 runpath_var=LD_RUN_PATH
15992 siemens)
15993 need_lib_prefix=no
15995 motorola)
15996 need_lib_prefix=no
15997 need_version=no
15998 shlibpath_overrides_runpath=no
15999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16001 esac
16004 sysv4*MP*)
16005 if test -d /usr/nec ;then
16006 version_type=linux
16007 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16008 soname_spec='$libname${shared_ext}.$major'
16009 shlibpath_var=LD_LIBRARY_PATH
16013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16014 version_type=freebsd-elf
16015 need_lib_prefix=no
16016 need_version=no
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16018 soname_spec='${libname}${release}${shared_ext}$major'
16019 shlibpath_var=LD_LIBRARY_PATH
16020 hardcode_into_libs=yes
16021 if test "$with_gnu_ld" = yes; then
16022 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16023 shlibpath_overrides_runpath=no
16024 else
16025 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16026 shlibpath_overrides_runpath=yes
16027 case $host_os in
16028 sco3.2v5*)
16029 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16031 esac
16033 sys_lib_dlsearch_path_spec='/usr/lib'
16036 uts4*)
16037 version_type=linux
16038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16039 soname_spec='${libname}${release}${shared_ext}$major'
16040 shlibpath_var=LD_LIBRARY_PATH
16044 dynamic_linker=no
16046 esac
16047 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16048 echo "${ECHO_T}$dynamic_linker" >&6; }
16049 test "$dynamic_linker" = no && can_build_shared=no
16051 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 else
16054 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16057 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16058 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 else
16061 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16064 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16066 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16067 if test "$GCC" = yes; then
16068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16071 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16072 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16073 hardcode_action_F77=
16074 if test -n "$hardcode_libdir_flag_spec_F77" || \
16075 test -n "$runpath_var_F77" || \
16076 test "X$hardcode_automatic_F77" = "Xyes" ; then
16078 # We can hardcode non-existant directories.
16079 if test "$hardcode_direct_F77" != no &&
16080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16081 # have to relink, otherwise we might link with an installed library
16082 # when we should be linking with a yet-to-be-installed one
16083 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16084 test "$hardcode_minus_L_F77" != no; then
16085 # Linking always hardcodes the temporary library directory.
16086 hardcode_action_F77=relink
16087 else
16088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16089 hardcode_action_F77=immediate
16091 else
16092 # We cannot hardcode anything, or else we can only hardcode existing
16093 # directories.
16094 hardcode_action_F77=unsupported
16096 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16097 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16099 if test "$hardcode_action_F77" = relink; then
16100 # Fast installation is not supported
16101 enable_fast_install=no
16102 elif test "$shlibpath_overrides_runpath" = yes ||
16103 test "$enable_shared" = no; then
16104 # Fast installation is not necessary
16105 enable_fast_install=needless
16109 # The else clause should only fire when bootstrapping the
16110 # libtool distribution, otherwise you forgot to ship ltmain.sh
16111 # with your package, and you will get complaints that there are
16112 # no rules to generate ltmain.sh.
16113 if test -f "$ltmain"; then
16114 # See if we are running on zsh, and set the options which allow our commands through
16115 # without removal of \ escapes.
16116 if test -n "${ZSH_VERSION+set}" ; then
16117 setopt NO_GLOB_SUBST
16119 # Now quote all the things that may contain metacharacters while being
16120 # careful not to overquote the AC_SUBSTed values. We take copies of the
16121 # variables and quote the copies for generation of the libtool script.
16122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16123 SED SHELL STRIP \
16124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16126 deplibs_check_method reload_flag reload_cmds need_locks \
16127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16128 lt_cv_sys_global_symbol_to_c_name_address \
16129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16130 old_postinstall_cmds old_postuninstall_cmds \
16131 compiler_F77 \
16132 CC_F77 \
16133 LD_F77 \
16134 lt_prog_compiler_wl_F77 \
16135 lt_prog_compiler_pic_F77 \
16136 lt_prog_compiler_static_F77 \
16137 lt_prog_compiler_no_builtin_flag_F77 \
16138 export_dynamic_flag_spec_F77 \
16139 thread_safe_flag_spec_F77 \
16140 whole_archive_flag_spec_F77 \
16141 enable_shared_with_static_runtimes_F77 \
16142 old_archive_cmds_F77 \
16143 old_archive_from_new_cmds_F77 \
16144 predep_objects_F77 \
16145 postdep_objects_F77 \
16146 predeps_F77 \
16147 postdeps_F77 \
16148 compiler_lib_search_path_F77 \
16149 compiler_lib_search_dirs_F77 \
16150 archive_cmds_F77 \
16151 archive_expsym_cmds_F77 \
16152 postinstall_cmds_F77 \
16153 postuninstall_cmds_F77 \
16154 old_archive_from_expsyms_cmds_F77 \
16155 allow_undefined_flag_F77 \
16156 no_undefined_flag_F77 \
16157 export_symbols_cmds_F77 \
16158 hardcode_libdir_flag_spec_F77 \
16159 hardcode_libdir_flag_spec_ld_F77 \
16160 hardcode_libdir_separator_F77 \
16161 hardcode_automatic_F77 \
16162 module_cmds_F77 \
16163 module_expsym_cmds_F77 \
16164 lt_cv_prog_compiler_c_o_F77 \
16165 fix_srcfile_path_F77 \
16166 exclude_expsyms_F77 \
16167 include_expsyms_F77; do
16169 case $var in
16170 old_archive_cmds_F77 | \
16171 old_archive_from_new_cmds_F77 | \
16172 archive_cmds_F77 | \
16173 archive_expsym_cmds_F77 | \
16174 module_cmds_F77 | \
16175 module_expsym_cmds_F77 | \
16176 old_archive_from_expsyms_cmds_F77 | \
16177 export_symbols_cmds_F77 | \
16178 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16179 postinstall_cmds | postuninstall_cmds | \
16180 old_postinstall_cmds | old_postuninstall_cmds | \
16181 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16182 # Double-quote double-evaled strings.
16183 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16188 esac
16189 done
16191 case $lt_echo in
16192 *'\$0 --fallback-echo"')
16193 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16195 esac
16197 cfgfile="$ofile"
16199 cat <<__EOF__ >> "$cfgfile"
16200 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16202 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16204 # Shell to use when invoking shell scripts.
16205 SHELL=$lt_SHELL
16207 # Whether or not to build shared libraries.
16208 build_libtool_libs=$enable_shared
16210 # Whether or not to build static libraries.
16211 build_old_libs=$enable_static
16213 # Whether or not to add -lc for building shared libraries.
16214 build_libtool_need_lc=$archive_cmds_need_lc_F77
16216 # Whether or not to disallow shared libs when runtime libs are static
16217 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16219 # Whether or not to optimize for fast installation.
16220 fast_install=$enable_fast_install
16222 # The host system.
16223 host_alias=$host_alias
16224 host=$host
16225 host_os=$host_os
16227 # The build system.
16228 build_alias=$build_alias
16229 build=$build
16230 build_os=$build_os
16232 # An echo program that does not interpret backslashes.
16233 echo=$lt_echo
16235 # The archiver.
16236 AR=$lt_AR
16237 AR_FLAGS=$lt_AR_FLAGS
16239 # A C compiler.
16240 LTCC=$lt_LTCC
16242 # LTCC compiler flags.
16243 LTCFLAGS=$lt_LTCFLAGS
16245 # A language-specific compiler.
16246 CC=$lt_compiler_F77
16248 # Is the compiler the GNU C compiler?
16249 with_gcc=$GCC_F77
16251 # An ERE matcher.
16252 EGREP=$lt_EGREP
16254 # The linker used to build libraries.
16255 LD=$lt_LD_F77
16257 # Whether we need hard or soft links.
16258 LN_S=$lt_LN_S
16260 # A BSD-compatible nm program.
16261 NM=$lt_NM
16263 # A symbol stripping program
16264 STRIP=$lt_STRIP
16266 # Used to examine libraries when file_magic_cmd begins "file"
16267 MAGIC_CMD=$MAGIC_CMD
16269 # Used on cygwin: DLL creation program.
16270 DLLTOOL="$DLLTOOL"
16272 # Used on cygwin: object dumper.
16273 OBJDUMP="$OBJDUMP"
16275 # Used on cygwin: assembler.
16276 AS="$AS"
16278 # The name of the directory that contains temporary libtool files.
16279 objdir=$objdir
16281 # How to create reloadable object files.
16282 reload_flag=$lt_reload_flag
16283 reload_cmds=$lt_reload_cmds
16285 # How to pass a linker flag through the compiler.
16286 wl=$lt_lt_prog_compiler_wl_F77
16288 # Object file suffix (normally "o").
16289 objext="$ac_objext"
16291 # Old archive suffix (normally "a").
16292 libext="$libext"
16294 # Shared library suffix (normally ".so").
16295 shrext_cmds='$shrext_cmds'
16297 # Executable file suffix (normally "").
16298 exeext="$exeext"
16300 # Additional compiler flags for building library objects.
16301 pic_flag=$lt_lt_prog_compiler_pic_F77
16302 pic_mode=$pic_mode
16304 # What is the maximum length of a command?
16305 max_cmd_len=$lt_cv_sys_max_cmd_len
16307 # Does compiler simultaneously support -c and -o options?
16308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16310 # Must we lock files when doing compilation?
16311 need_locks=$lt_need_locks
16313 # Do we need the lib prefix for modules?
16314 need_lib_prefix=$need_lib_prefix
16316 # Do we need a version for libraries?
16317 need_version=$need_version
16319 # Whether dlopen is supported.
16320 dlopen_support=$enable_dlopen
16322 # Whether dlopen of programs is supported.
16323 dlopen_self=$enable_dlopen_self
16325 # Whether dlopen of statically linked programs is supported.
16326 dlopen_self_static=$enable_dlopen_self_static
16328 # Compiler flag to prevent dynamic linking.
16329 link_static_flag=$lt_lt_prog_compiler_static_F77
16331 # Compiler flag to turn off builtin functions.
16332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16334 # Compiler flag to allow reflexive dlopens.
16335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16337 # Compiler flag to generate shared objects directly from archives.
16338 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16340 # Compiler flag to generate thread-safe objects.
16341 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16343 # Library versioning type.
16344 version_type=$version_type
16346 # Format of library name prefix.
16347 libname_spec=$lt_libname_spec
16349 # List of archive names. First name is the real one, the rest are links.
16350 # The last name is the one that the linker finds with -lNAME.
16351 library_names_spec=$lt_library_names_spec
16353 # The coded name of the library, if different from the real name.
16354 soname_spec=$lt_soname_spec
16356 # Commands used to build and install an old-style archive.
16357 RANLIB=$lt_RANLIB
16358 old_archive_cmds=$lt_old_archive_cmds_F77
16359 old_postinstall_cmds=$lt_old_postinstall_cmds
16360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16362 # Create an old-style archive from a shared archive.
16363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16365 # Create a temporary old-style archive to link instead of a shared archive.
16366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16368 # Commands used to build and install a shared archive.
16369 archive_cmds=$lt_archive_cmds_F77
16370 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16371 postinstall_cmds=$lt_postinstall_cmds
16372 postuninstall_cmds=$lt_postuninstall_cmds
16374 # Commands used to build a loadable module (assumed same as above if empty)
16375 module_cmds=$lt_module_cmds_F77
16376 module_expsym_cmds=$lt_module_expsym_cmds_F77
16378 # Commands to strip libraries.
16379 old_striplib=$lt_old_striplib
16380 striplib=$lt_striplib
16382 # Dependencies to place before the objects being linked to create a
16383 # shared library.
16384 predep_objects=$lt_predep_objects_F77
16386 # Dependencies to place after the objects being linked to create a
16387 # shared library.
16388 postdep_objects=$lt_postdep_objects_F77
16390 # Dependencies to place before the objects being linked to create a
16391 # shared library.
16392 predeps=$lt_predeps_F77
16394 # Dependencies to place after the objects being linked to create a
16395 # shared library.
16396 postdeps=$lt_postdeps_F77
16398 # The directories searched by this compiler when creating a shared
16399 # library
16400 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16402 # The library search path used internally by the compiler when linking
16403 # a shared library.
16404 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16406 # Method to check whether dependent libraries are shared objects.
16407 deplibs_check_method=$lt_deplibs_check_method
16409 # Command to use when deplibs_check_method == file_magic.
16410 file_magic_cmd=$lt_file_magic_cmd
16412 # Flag that allows shared libraries with undefined symbols to be built.
16413 allow_undefined_flag=$lt_allow_undefined_flag_F77
16415 # Flag that forces no undefined symbols.
16416 no_undefined_flag=$lt_no_undefined_flag_F77
16418 # Commands used to finish a libtool library installation in a directory.
16419 finish_cmds=$lt_finish_cmds
16421 # Same as above, but a single script fragment to be evaled but not shown.
16422 finish_eval=$lt_finish_eval
16424 # Take the output of nm and produce a listing of raw symbols and C names.
16425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16427 # Transform the output of nm in a proper C declaration
16428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16430 # Transform the output of nm in a C name address pair
16431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16433 # This is the shared library runtime path variable.
16434 runpath_var=$runpath_var
16436 # This is the shared library path variable.
16437 shlibpath_var=$shlibpath_var
16439 # Is shlibpath searched before the hard-coded library search path?
16440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16442 # How to hardcode a shared library path into an executable.
16443 hardcode_action=$hardcode_action_F77
16445 # Whether we should hardcode library paths into libraries.
16446 hardcode_into_libs=$hardcode_into_libs
16448 # Flag to hardcode \$libdir into a binary during linking.
16449 # This must work even if \$libdir does not exist.
16450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16452 # If ld is used when linking, flag to hardcode \$libdir into
16453 # a binary during linking. This must work even if \$libdir does
16454 # not exist.
16455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16457 # Whether we need a single -rpath flag with a separated argument.
16458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16460 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16461 # resulting binary.
16462 hardcode_direct=$hardcode_direct_F77
16464 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16465 # resulting binary.
16466 hardcode_minus_L=$hardcode_minus_L_F77
16468 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16469 # the resulting binary.
16470 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16472 # Set to yes if building a shared library automatically hardcodes DIR into the library
16473 # and all subsequent libraries and executables linked against it.
16474 hardcode_automatic=$hardcode_automatic_F77
16476 # Variables whose values should be saved in libtool wrapper scripts and
16477 # restored at relink time.
16478 variables_saved_for_relink="$variables_saved_for_relink"
16480 # Whether libtool must link a program against all its dependency libraries.
16481 link_all_deplibs=$link_all_deplibs_F77
16483 # Compile-time system search path for libraries
16484 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16486 # Run-time system search path for libraries
16487 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16489 # Fix the shell variable \$srcfile for the compiler.
16490 fix_srcfile_path=$lt_fix_srcfile_path
16492 # Set to yes if exported symbols are required.
16493 always_export_symbols=$always_export_symbols_F77
16495 # The commands to list exported symbols.
16496 export_symbols_cmds=$lt_export_symbols_cmds_F77
16498 # The commands to extract the exported symbol list from a shared archive.
16499 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16501 # Symbols that should not be listed in the preloaded symbols.
16502 exclude_expsyms=$lt_exclude_expsyms_F77
16504 # Symbols that must always be exported.
16505 include_expsyms=$lt_include_expsyms_F77
16507 # ### END LIBTOOL TAG CONFIG: $tagname
16509 __EOF__
16512 else
16513 # If there is no Makefile yet, we rely on a make rule to execute
16514 # `config.status --recheck' to rerun these tests and create the
16515 # libtool script then.
16516 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16517 if test -f "$ltmain_in"; then
16518 test -f Makefile && make "$ltmain"
16523 ac_ext=c
16524 ac_cpp='$CPP $CPPFLAGS'
16525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16529 CC="$lt_save_CC"
16531 else
16532 tagname=""
16536 GCJ)
16537 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16540 # Source file extension for Java test sources.
16541 ac_ext=java
16543 # Object file extension for compiled Java test sources.
16544 objext=o
16545 objext_GCJ=$objext
16547 # Code to be used in simple compile tests
16548 lt_simple_compile_test_code="class foo {}"
16550 # Code to be used in simple link tests
16551 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16553 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16555 # If no C compiler was specified, use CC.
16556 LTCC=${LTCC-"$CC"}
16558 # If no C compiler flags were specified, use CFLAGS.
16559 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16561 # Allow CC to be a program name with arguments.
16562 compiler=$CC
16565 # save warnings/boilerplate of simple test code
16566 ac_outfile=conftest.$ac_objext
16567 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16569 _lt_compiler_boilerplate=`cat conftest.err`
16570 $rm conftest*
16572 ac_outfile=conftest.$ac_objext
16573 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16575 _lt_linker_boilerplate=`cat conftest.err`
16576 $rm -r conftest*
16579 # Allow CC to be a program name with arguments.
16580 lt_save_CC="$CC"
16581 CC=${GCJ-"gcj"}
16582 compiler=$CC
16583 compiler_GCJ=$CC
16584 for cc_temp in $compiler""; do
16585 case $cc_temp in
16586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16588 \-*) ;;
16589 *) break;;
16590 esac
16591 done
16592 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16595 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16596 archive_cmds_need_lc_GCJ=no
16598 old_archive_cmds_GCJ=$old_archive_cmds
16601 lt_prog_compiler_no_builtin_flag_GCJ=
16603 if test "$GCC" = yes; then
16604 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16607 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16608 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16609 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612 lt_cv_prog_compiler_rtti_exceptions=no
16613 ac_outfile=conftest.$ac_objext
16614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16615 lt_compiler_flag="-fno-rtti -fno-exceptions"
16616 # Insert the option either (1) after the last *FLAGS variable, or
16617 # (2) before a word containing "conftest.", or (3) at the end.
16618 # Note that $ac_compile itself does not contain backslashes and begins
16619 # with a dollar sign (not a hyphen), so the echo should work correctly.
16620 # The option is referenced via a variable to avoid confusing sed.
16621 lt_compile=`echo "$ac_compile" | $SED \
16622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16624 -e 's:$: $lt_compiler_flag:'`
16625 (eval echo "\"\$as_me:16625: $lt_compile\"" >&5)
16626 (eval "$lt_compile" 2>conftest.err)
16627 ac_status=$?
16628 cat conftest.err >&5
16629 echo "$as_me:16629: \$? = $ac_status" >&5
16630 if (exit $ac_status) && test -s "$ac_outfile"; then
16631 # The compiler can only warn and ignore the option if not recognized
16632 # So say no if there are warnings other than the usual output.
16633 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16635 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16636 lt_cv_prog_compiler_rtti_exceptions=yes
16639 $rm conftest*
16642 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16643 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16645 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16646 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16647 else
16653 lt_prog_compiler_wl_GCJ=
16654 lt_prog_compiler_pic_GCJ=
16655 lt_prog_compiler_static_GCJ=
16657 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16658 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16660 if test "$GCC" = yes; then
16661 lt_prog_compiler_wl_GCJ='-Wl,'
16662 lt_prog_compiler_static_GCJ='-static'
16664 case $host_os in
16665 aix*)
16666 # All AIX code is PIC.
16667 if test "$host_cpu" = ia64; then
16668 # AIX 5 now supports IA64 processor
16669 lt_prog_compiler_static_GCJ='-Bstatic'
16673 amigaos*)
16674 # FIXME: we need at least 68020 code to build shared libraries, but
16675 # adding the `-m68020' flag to GCC prevents building anything better,
16676 # like `-m68040'.
16677 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16680 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16681 # PIC is the default for these OSes.
16684 mingw* | cygwin* | pw32* | os2*)
16685 # This hack is so that the source file can tell whether it is being
16686 # built for inclusion in a dll (and should export symbols for example).
16687 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16688 # (--disable-auto-import) libraries
16692 darwin* | rhapsody*)
16693 # PIC is the default on this platform
16694 # Common symbols not allowed in MH_DYLIB files
16695 lt_prog_compiler_pic_GCJ='-fno-common'
16698 interix[3-9]*)
16699 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16700 # Instead, we relocate shared libraries at runtime.
16703 msdosdjgpp*)
16704 # Just because we use GCC doesn't mean we suddenly get shared libraries
16705 # on systems that don't support them.
16706 lt_prog_compiler_can_build_shared_GCJ=no
16707 enable_shared=no
16710 sysv4*MP*)
16711 if test -d /usr/nec; then
16712 lt_prog_compiler_pic_GCJ=-Kconform_pic
16716 hpux*)
16717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16718 # not for PA HP-UX.
16719 case $host_cpu in
16720 hppa*64*|ia64*)
16721 # +Z the default
16724 lt_prog_compiler_pic_GCJ='-fPIC'
16726 esac
16730 lt_prog_compiler_pic_GCJ='-fPIC'
16732 esac
16733 else
16734 # PORTME Check for flag to pass linker flags through the system compiler.
16735 case $host_os in
16736 aix*)
16737 lt_prog_compiler_wl_GCJ='-Wl,'
16738 if test "$host_cpu" = ia64; then
16739 # AIX 5 now supports IA64 processor
16740 lt_prog_compiler_static_GCJ='-Bstatic'
16741 else
16742 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16745 darwin*)
16746 # PIC is the default on this platform
16747 # Common symbols not allowed in MH_DYLIB files
16748 case $cc_basename in
16749 xlc*)
16750 lt_prog_compiler_pic_GCJ='-qnocommon'
16751 lt_prog_compiler_wl_GCJ='-Wl,'
16753 esac
16756 mingw* | cygwin* | pw32* | os2*)
16757 # This hack is so that the source file can tell whether it is being
16758 # built for inclusion in a dll (and should export symbols for example).
16762 hpux9* | hpux10* | hpux11*)
16763 lt_prog_compiler_wl_GCJ='-Wl,'
16764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16765 # not for PA HP-UX.
16766 case $host_cpu in
16767 hppa*64*|ia64*)
16768 # +Z the default
16771 lt_prog_compiler_pic_GCJ='+Z'
16773 esac
16774 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16775 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16778 irix5* | irix6* | nonstopux*)
16779 lt_prog_compiler_wl_GCJ='-Wl,'
16780 # PIC (with -KPIC) is the default.
16781 lt_prog_compiler_static_GCJ='-non_shared'
16784 newsos6)
16785 lt_prog_compiler_pic_GCJ='-KPIC'
16786 lt_prog_compiler_static_GCJ='-Bstatic'
16789 linux* | k*bsd*-gnu)
16790 case $cc_basename in
16791 icc* | ecc*)
16792 lt_prog_compiler_wl_GCJ='-Wl,'
16793 lt_prog_compiler_pic_GCJ='-KPIC'
16794 lt_prog_compiler_static_GCJ='-static'
16796 pgcc* | pgf77* | pgf90* | pgf95*)
16797 # Portland Group compilers (*not* the Pentium gcc compiler,
16798 # which looks to be a dead project)
16799 lt_prog_compiler_wl_GCJ='-Wl,'
16800 lt_prog_compiler_pic_GCJ='-fpic'
16801 lt_prog_compiler_static_GCJ='-Bstatic'
16803 ccc*)
16804 lt_prog_compiler_wl_GCJ='-Wl,'
16805 # All Alpha code is PIC.
16806 lt_prog_compiler_static_GCJ='-non_shared'
16809 case `$CC -V 2>&1 | sed 5q` in
16810 *Sun\ C*)
16811 # Sun C 5.9
16812 lt_prog_compiler_pic_GCJ='-KPIC'
16813 lt_prog_compiler_static_GCJ='-Bstatic'
16814 lt_prog_compiler_wl_GCJ='-Wl,'
16816 *Sun\ F*)
16817 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16818 lt_prog_compiler_pic_GCJ='-KPIC'
16819 lt_prog_compiler_static_GCJ='-Bstatic'
16820 lt_prog_compiler_wl_GCJ=''
16822 esac
16824 esac
16827 osf3* | osf4* | osf5*)
16828 lt_prog_compiler_wl_GCJ='-Wl,'
16829 # All OSF/1 code is PIC.
16830 lt_prog_compiler_static_GCJ='-non_shared'
16833 rdos*)
16834 lt_prog_compiler_static_GCJ='-non_shared'
16837 solaris*)
16838 lt_prog_compiler_pic_GCJ='-KPIC'
16839 lt_prog_compiler_static_GCJ='-Bstatic'
16840 case $cc_basename in
16841 f77* | f90* | f95*)
16842 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16844 lt_prog_compiler_wl_GCJ='-Wl,';;
16845 esac
16848 sunos4*)
16849 lt_prog_compiler_wl_GCJ='-Qoption ld '
16850 lt_prog_compiler_pic_GCJ='-PIC'
16851 lt_prog_compiler_static_GCJ='-Bstatic'
16854 sysv4 | sysv4.2uw2* | sysv4.3*)
16855 lt_prog_compiler_wl_GCJ='-Wl,'
16856 lt_prog_compiler_pic_GCJ='-KPIC'
16857 lt_prog_compiler_static_GCJ='-Bstatic'
16860 sysv4*MP*)
16861 if test -d /usr/nec ;then
16862 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16863 lt_prog_compiler_static_GCJ='-Bstatic'
16867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16868 lt_prog_compiler_wl_GCJ='-Wl,'
16869 lt_prog_compiler_pic_GCJ='-KPIC'
16870 lt_prog_compiler_static_GCJ='-Bstatic'
16873 unicos*)
16874 lt_prog_compiler_wl_GCJ='-Wl,'
16875 lt_prog_compiler_can_build_shared_GCJ=no
16878 uts4*)
16879 lt_prog_compiler_pic_GCJ='-pic'
16880 lt_prog_compiler_static_GCJ='-Bstatic'
16884 lt_prog_compiler_can_build_shared_GCJ=no
16886 esac
16889 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16890 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16893 # Check to make sure the PIC flag actually works.
16895 if test -n "$lt_prog_compiler_pic_GCJ"; then
16897 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16898 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16899 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902 lt_cv_prog_compiler_pic_works_GCJ=no
16903 ac_outfile=conftest.$ac_objext
16904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16905 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16906 # Insert the option either (1) after the last *FLAGS variable, or
16907 # (2) before a word containing "conftest.", or (3) at the end.
16908 # Note that $ac_compile itself does not contain backslashes and begins
16909 # with a dollar sign (not a hyphen), so the echo should work correctly.
16910 # The option is referenced via a variable to avoid confusing sed.
16911 lt_compile=`echo "$ac_compile" | $SED \
16912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16914 -e 's:$: $lt_compiler_flag:'`
16915 (eval echo "\"\$as_me:16915: $lt_compile\"" >&5)
16916 (eval "$lt_compile" 2>conftest.err)
16917 ac_status=$?
16918 cat conftest.err >&5
16919 echo "$as_me:16919: \$? = $ac_status" >&5
16920 if (exit $ac_status) && test -s "$ac_outfile"; then
16921 # The compiler can only warn and ignore the option if not recognized
16922 # So say no if there are warnings other than the usual output.
16923 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16926 lt_cv_prog_compiler_pic_works_GCJ=yes
16929 $rm conftest*
16932 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16933 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16935 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16936 case $lt_prog_compiler_pic_GCJ in
16937 "" | " "*) ;;
16938 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16939 esac
16940 else
16941 lt_prog_compiler_pic_GCJ=
16942 lt_prog_compiler_can_build_shared_GCJ=no
16946 case $host_os in
16947 # For platforms which do not support PIC, -DPIC is meaningless:
16948 *djgpp*)
16949 lt_prog_compiler_pic_GCJ=
16952 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16954 esac
16957 # Check to make sure the static flag actually works.
16959 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16960 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16961 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16962 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 else
16965 lt_cv_prog_compiler_static_works_GCJ=no
16966 save_LDFLAGS="$LDFLAGS"
16967 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16968 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16970 # The linker can only warn and ignore the option if not recognized
16971 # So say no if there are warnings
16972 if test -s conftest.err; then
16973 # Append any errors to the config.log.
16974 cat conftest.err 1>&5
16975 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16977 if diff conftest.exp conftest.er2 >/dev/null; then
16978 lt_cv_prog_compiler_static_works_GCJ=yes
16980 else
16981 lt_cv_prog_compiler_static_works_GCJ=yes
16984 $rm -r conftest*
16985 LDFLAGS="$save_LDFLAGS"
16988 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16989 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16991 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16993 else
16994 lt_prog_compiler_static_GCJ=
16998 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16999 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17000 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 else
17003 lt_cv_prog_compiler_c_o_GCJ=no
17004 $rm -r conftest 2>/dev/null
17005 mkdir conftest
17006 cd conftest
17007 mkdir out
17008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17010 lt_compiler_flag="-o out/conftest2.$ac_objext"
17011 # Insert the option either (1) after the last *FLAGS variable, or
17012 # (2) before a word containing "conftest.", or (3) at the end.
17013 # Note that $ac_compile itself does not contain backslashes and begins
17014 # with a dollar sign (not a hyphen), so the echo should work correctly.
17015 lt_compile=`echo "$ac_compile" | $SED \
17016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17018 -e 's:$: $lt_compiler_flag:'`
17019 (eval echo "\"\$as_me:17019: $lt_compile\"" >&5)
17020 (eval "$lt_compile" 2>out/conftest.err)
17021 ac_status=$?
17022 cat out/conftest.err >&5
17023 echo "$as_me:17023: \$? = $ac_status" >&5
17024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17025 then
17026 # The compiler can only warn and ignore the option if not recognized
17027 # So say no if there are warnings
17028 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17031 lt_cv_prog_compiler_c_o_GCJ=yes
17034 chmod u+w . 2>&5
17035 $rm conftest*
17036 # SGI C++ compiler will create directory out/ii_files/ for
17037 # template instantiation
17038 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17039 $rm out/* && rmdir out
17040 cd ..
17041 rmdir conftest
17042 $rm conftest*
17045 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17046 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17049 hard_links="nottested"
17050 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17051 # do not overwrite the value of need_locks provided by the user
17052 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17053 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17054 hard_links=yes
17055 $rm conftest*
17056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17057 touch conftest.a
17058 ln conftest.a conftest.b 2>&5 || hard_links=no
17059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17060 { echo "$as_me:$LINENO: result: $hard_links" >&5
17061 echo "${ECHO_T}$hard_links" >&6; }
17062 if test "$hard_links" = no; then
17063 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17064 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17065 need_locks=warn
17067 else
17068 need_locks=no
17071 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17072 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17074 runpath_var=
17075 allow_undefined_flag_GCJ=
17076 enable_shared_with_static_runtimes_GCJ=no
17077 archive_cmds_GCJ=
17078 archive_expsym_cmds_GCJ=
17079 old_archive_From_new_cmds_GCJ=
17080 old_archive_from_expsyms_cmds_GCJ=
17081 export_dynamic_flag_spec_GCJ=
17082 whole_archive_flag_spec_GCJ=
17083 thread_safe_flag_spec_GCJ=
17084 hardcode_libdir_flag_spec_GCJ=
17085 hardcode_libdir_flag_spec_ld_GCJ=
17086 hardcode_libdir_separator_GCJ=
17087 hardcode_direct_GCJ=no
17088 hardcode_minus_L_GCJ=no
17089 hardcode_shlibpath_var_GCJ=unsupported
17090 link_all_deplibs_GCJ=unknown
17091 hardcode_automatic_GCJ=no
17092 module_cmds_GCJ=
17093 module_expsym_cmds_GCJ=
17094 always_export_symbols_GCJ=no
17095 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17096 # include_expsyms should be a list of space-separated symbols to be *always*
17097 # included in the symbol list
17098 include_expsyms_GCJ=
17099 # exclude_expsyms can be an extended regexp of symbols to exclude
17100 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17101 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17102 # as well as any symbol that contains `d'.
17103 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17104 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17105 # platforms (ab)use it in PIC code, but their linkers get confused if
17106 # the symbol is explicitly referenced. Since portable code cannot
17107 # rely on this symbol name, it's probably fine to never include it in
17108 # preloaded symbol tables.
17109 # Exclude shared library initialization/finalization symbols.
17110 extract_expsyms_cmds=
17111 # Just being paranoid about ensuring that cc_basename is set.
17112 for cc_temp in $compiler""; do
17113 case $cc_temp in
17114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17116 \-*) ;;
17117 *) break;;
17118 esac
17119 done
17120 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17122 case $host_os in
17123 cygwin* | mingw* | pw32*)
17124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17125 # When not using gcc, we currently assume that we are using
17126 # Microsoft Visual C++.
17127 if test "$GCC" != yes; then
17128 with_gnu_ld=no
17131 interix*)
17132 # we just hope/assume this is gcc and not c89 (= MSVC++)
17133 with_gnu_ld=yes
17135 openbsd*)
17136 with_gnu_ld=no
17138 esac
17140 ld_shlibs_GCJ=yes
17141 if test "$with_gnu_ld" = yes; then
17142 # If archive_cmds runs LD, not CC, wlarc should be empty
17143 wlarc='${wl}'
17145 # Set some defaults for GNU ld with shared library support. These
17146 # are reset later if shared libraries are not supported. Putting them
17147 # here allows them to be overridden if necessary.
17148 runpath_var=LD_RUN_PATH
17149 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17150 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17151 # ancient GNU ld didn't support --whole-archive et. al.
17152 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17153 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17154 else
17155 whole_archive_flag_spec_GCJ=
17157 supports_anon_versioning=no
17158 case `$LD -v 2>/dev/null` in
17159 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17160 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17161 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17162 *\ 2.11.*) ;; # other 2.11 versions
17163 *) supports_anon_versioning=yes ;;
17164 esac
17166 # See if GNU ld supports shared libraries.
17167 case $host_os in
17168 aix[3-9]*)
17169 # On AIX/PPC, the GNU linker is very broken
17170 if test "$host_cpu" != ia64; then
17171 ld_shlibs_GCJ=no
17172 cat <<EOF 1>&2
17174 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17175 *** to be unable to reliably create shared libraries on AIX.
17176 *** Therefore, libtool is disabling shared libraries support. If you
17177 *** really care for shared libraries, you may want to modify your PATH
17178 *** so that a non-GNU linker is found, and then restart.
17184 amigaos*)
17185 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)'
17186 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17187 hardcode_minus_L_GCJ=yes
17189 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17190 # that the semantics of dynamic libraries on AmigaOS, at least up
17191 # to version 4, is to share data among multiple programs linked
17192 # with the same dynamic library. Since this doesn't match the
17193 # behavior of shared libraries on other platforms, we can't use
17194 # them.
17195 ld_shlibs_GCJ=no
17198 beos*)
17199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17200 allow_undefined_flag_GCJ=unsupported
17201 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17202 # support --undefined. This deserves some investigation. FIXME
17203 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17204 else
17205 ld_shlibs_GCJ=no
17209 cygwin* | mingw* | pw32*)
17210 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17211 # as there is no search path for DLLs.
17212 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17213 allow_undefined_flag_GCJ=unsupported
17214 always_export_symbols_GCJ=no
17215 enable_shared_with_static_runtimes_GCJ=yes
17216 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17218 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17219 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17220 # If the export-symbols file already is a .def file (1st line
17221 # is EXPORTS), use it as is; otherwise, prepend...
17222 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17223 cp $export_symbols $output_objdir/$soname.def;
17224 else
17225 echo EXPORTS > $output_objdir/$soname.def;
17226 cat $export_symbols >> $output_objdir/$soname.def;
17228 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17229 else
17230 ld_shlibs_GCJ=no
17234 interix[3-9]*)
17235 hardcode_direct_GCJ=no
17236 hardcode_shlibpath_var_GCJ=no
17237 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17238 export_dynamic_flag_spec_GCJ='${wl}-E'
17239 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17240 # Instead, shared libraries are loaded at an image base (0x10000000 by
17241 # default) and relocated if they conflict, which is a slow very memory
17242 # consuming and fragmenting process. To avoid this, we pick a random,
17243 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17244 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17245 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'
17246 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'
17249 gnu* | linux* | k*bsd*-gnu)
17250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17251 tmp_addflag=
17252 case $cc_basename,$host_cpu in
17253 pgcc*) # Portland Group C compiler
17254 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'
17255 tmp_addflag=' $pic_flag'
17257 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17258 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'
17259 tmp_addflag=' $pic_flag -Mnomain' ;;
17260 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17261 tmp_addflag=' -i_dynamic' ;;
17262 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17263 tmp_addflag=' -i_dynamic -nofor_main' ;;
17264 ifc* | ifort*) # Intel Fortran compiler
17265 tmp_addflag=' -nofor_main' ;;
17266 esac
17267 case `$CC -V 2>&1 | sed 5q` in
17268 *Sun\ C*) # Sun C 5.9
17269 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17270 tmp_sharedflag='-G' ;;
17271 *Sun\ F*) # Sun Fortran 8.3
17272 tmp_sharedflag='-G' ;;
17274 tmp_sharedflag='-shared' ;;
17275 esac
17276 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17278 if test $supports_anon_versioning = yes; then
17279 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17280 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17281 $echo "local: *; };" >> $output_objdir/$libname.ver~
17282 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17284 else
17285 ld_shlibs_GCJ=no
17289 netbsd*)
17290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17291 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17292 wlarc=
17293 else
17294 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17295 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17299 solaris*)
17300 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17301 ld_shlibs_GCJ=no
17302 cat <<EOF 1>&2
17304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17305 *** create shared libraries on Solaris systems. Therefore, libtool
17306 *** is disabling shared libraries support. We urge you to upgrade GNU
17307 *** binutils to release 2.9.1 or newer. Another option is to modify
17308 *** your PATH or compiler configuration so that the native linker is
17309 *** used, and then restart.
17312 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17313 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17314 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17315 else
17316 ld_shlibs_GCJ=no
17320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17321 case `$LD -v 2>&1` in
17322 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17323 ld_shlibs_GCJ=no
17324 cat <<_LT_EOF 1>&2
17326 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17327 *** reliably create shared libraries on SCO systems. Therefore, libtool
17328 *** is disabling shared libraries support. We urge you to upgrade GNU
17329 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17330 *** your PATH or compiler configuration so that the native linker is
17331 *** used, and then restart.
17333 _LT_EOF
17336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17337 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17338 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17339 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17340 else
17341 ld_shlibs_GCJ=no
17344 esac
17347 sunos4*)
17348 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17349 wlarc=
17350 hardcode_direct_GCJ=yes
17351 hardcode_shlibpath_var_GCJ=no
17355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17356 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17357 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17358 else
17359 ld_shlibs_GCJ=no
17362 esac
17364 if test "$ld_shlibs_GCJ" = no; then
17365 runpath_var=
17366 hardcode_libdir_flag_spec_GCJ=
17367 export_dynamic_flag_spec_GCJ=
17368 whole_archive_flag_spec_GCJ=
17370 else
17371 # PORTME fill in a description of your system's linker (not GNU ld)
17372 case $host_os in
17373 aix3*)
17374 allow_undefined_flag_GCJ=unsupported
17375 always_export_symbols_GCJ=yes
17376 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'
17377 # Note: this linker hardcodes the directories in LIBPATH if there
17378 # are no directories specified by -L.
17379 hardcode_minus_L_GCJ=yes
17380 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17381 # Neither direct hardcoding nor static linking is supported with a
17382 # broken collect2.
17383 hardcode_direct_GCJ=unsupported
17387 aix[4-9]*)
17388 if test "$host_cpu" = ia64; then
17389 # On IA64, the linker does run time linking by default, so we don't
17390 # have to do anything special.
17391 aix_use_runtimelinking=no
17392 exp_sym_flag='-Bexport'
17393 no_entry_flag=""
17394 else
17395 # If we're using GNU nm, then we don't want the "-C" option.
17396 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17397 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17398 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'
17399 else
17400 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'
17402 aix_use_runtimelinking=no
17404 # Test if we are trying to use run time linking or normal
17405 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17406 # need to do runtime linking.
17407 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17408 for ld_flag in $LDFLAGS; do
17409 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17410 aix_use_runtimelinking=yes
17411 break
17413 done
17415 esac
17417 exp_sym_flag='-bexport'
17418 no_entry_flag='-bnoentry'
17421 # When large executables or shared objects are built, AIX ld can
17422 # have problems creating the table of contents. If linking a library
17423 # or program results in "error TOC overflow" add -mminimal-toc to
17424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17427 archive_cmds_GCJ=''
17428 hardcode_direct_GCJ=yes
17429 hardcode_libdir_separator_GCJ=':'
17430 link_all_deplibs_GCJ=yes
17432 if test "$GCC" = yes; then
17433 case $host_os in aix4.[012]|aix4.[012].*)
17434 # We only want to do this on AIX 4.2 and lower, the check
17435 # below for broken collect2 doesn't work under 4.3+
17436 collect2name=`${CC} -print-prog-name=collect2`
17437 if test -f "$collect2name" && \
17438 strings "$collect2name" | grep resolve_lib_name >/dev/null
17439 then
17440 # We have reworked collect2
17442 else
17443 # We have old collect2
17444 hardcode_direct_GCJ=unsupported
17445 # It fails to find uninstalled libraries when the uninstalled
17446 # path is not listed in the libpath. Setting hardcode_minus_L
17447 # to unsupported forces relinking
17448 hardcode_minus_L_GCJ=yes
17449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450 hardcode_libdir_separator_GCJ=
17453 esac
17454 shared_flag='-shared'
17455 if test "$aix_use_runtimelinking" = yes; then
17456 shared_flag="$shared_flag "'${wl}-G'
17458 else
17459 # not using gcc
17460 if test "$host_cpu" = ia64; then
17461 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17462 # chokes on -Wl,-G. The following line is correct:
17463 shared_flag='-G'
17464 else
17465 if test "$aix_use_runtimelinking" = yes; then
17466 shared_flag='${wl}-G'
17467 else
17468 shared_flag='${wl}-bM:SRE'
17473 # It seems that -bexpall does not export symbols beginning with
17474 # underscore (_), so it is better to generate a list of symbols to export.
17475 always_export_symbols_GCJ=yes
17476 if test "$aix_use_runtimelinking" = yes; then
17477 # Warning - without using the other runtime loading flags (-brtl),
17478 # -berok will link without error, but may produce a broken library.
17479 allow_undefined_flag_GCJ='-berok'
17480 # Determine the default libpath from the value encoded in an empty executable.
17481 cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h. */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17489 main ()
17493 return 0;
17495 _ACEOF
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_link") 2>conftest.er1
17504 ac_status=$?
17505 grep -v '^ *+' conftest.er1 >conftest.err
17506 rm -f conftest.er1
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } && {
17510 test -z "$ac_c_werror_flag" ||
17511 test ! -s conftest.err
17512 } && test -s conftest$ac_exeext &&
17513 $as_test_x conftest$ac_exeext; then
17515 lt_aix_libpath_sed='
17516 /Import File Strings/,/^$/ {
17517 /^0/ {
17518 s/^0 *\(.*\)$/\1/
17522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17523 # Check for a 64-bit object if we didn't find anything.
17524 if test -z "$aix_libpath"; then
17525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17527 else
17528 echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17535 conftest$ac_exeext conftest.$ac_ext
17536 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17538 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17539 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"
17540 else
17541 if test "$host_cpu" = ia64; then
17542 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17543 allow_undefined_flag_GCJ="-z nodefs"
17544 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"
17545 else
17546 # Determine the default libpath from the value encoded in an empty executable.
17547 cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h. */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17555 main ()
17559 return 0;
17561 _ACEOF
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (ac_try="$ac_link"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17567 esac
17568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_link") 2>conftest.er1
17570 ac_status=$?
17571 grep -v '^ *+' conftest.er1 >conftest.err
17572 rm -f conftest.er1
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } && {
17576 test -z "$ac_c_werror_flag" ||
17577 test ! -s conftest.err
17578 } && test -s conftest$ac_exeext &&
17579 $as_test_x conftest$ac_exeext; then
17581 lt_aix_libpath_sed='
17582 /Import File Strings/,/^$/ {
17583 /^0/ {
17584 s/^0 *\(.*\)$/\1/
17588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17589 # Check for a 64-bit object if we didn't find anything.
17590 if test -z "$aix_libpath"; then
17591 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17593 else
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17601 conftest$ac_exeext conftest.$ac_ext
17602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17604 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17605 # Warning - without using the other run time loading flags,
17606 # -berok will link without error, but may produce a broken library.
17607 no_undefined_flag_GCJ=' ${wl}-bernotok'
17608 allow_undefined_flag_GCJ=' ${wl}-berok'
17609 # Exported symbols can be pulled into shared objects from archives
17610 whole_archive_flag_spec_GCJ='$convenience'
17611 archive_cmds_need_lc_GCJ=yes
17612 # This is similar to how AIX traditionally builds its shared libraries.
17613 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'
17618 amigaos*)
17619 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)'
17620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17621 hardcode_minus_L_GCJ=yes
17622 # see comment about different semantics on the GNU ld section
17623 ld_shlibs_GCJ=no
17626 bsdi[45]*)
17627 export_dynamic_flag_spec_GCJ=-rdynamic
17630 cygwin* | mingw* | pw32*)
17631 # When not using gcc, we currently assume that we are using
17632 # Microsoft Visual C++.
17633 # hardcode_libdir_flag_spec is actually meaningless, as there is
17634 # no search path for DLLs.
17635 hardcode_libdir_flag_spec_GCJ=' '
17636 allow_undefined_flag_GCJ=unsupported
17637 # Tell ltmain to make .lib files, not .a files.
17638 libext=lib
17639 # Tell ltmain to make .dll files, not .so files.
17640 shrext_cmds=".dll"
17641 # FIXME: Setting linknames here is a bad hack.
17642 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17643 # The linker will automatically build a .lib file if we build a DLL.
17644 old_archive_From_new_cmds_GCJ='true'
17645 # FIXME: Should let the user specify the lib program.
17646 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17647 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17648 enable_shared_with_static_runtimes_GCJ=yes
17651 darwin* | rhapsody*)
17652 case $host_os in
17653 rhapsody* | darwin1.[012])
17654 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17656 *) # Darwin 1.3 on
17657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17658 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17659 else
17660 case ${MACOSX_DEPLOYMENT_TARGET} in
17661 10.[012])
17662 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17664 10.*)
17665 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17667 esac
17670 esac
17671 archive_cmds_need_lc_GCJ=no
17672 hardcode_direct_GCJ=no
17673 hardcode_automatic_GCJ=yes
17674 hardcode_shlibpath_var_GCJ=unsupported
17675 whole_archive_flag_spec_GCJ=''
17676 link_all_deplibs_GCJ=yes
17677 if test "$GCC" = yes ; then
17678 output_verbose_link_cmd='echo'
17679 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17680 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17681 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17682 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17683 else
17684 case $cc_basename in
17685 xlc*)
17686 output_verbose_link_cmd='echo'
17687 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17688 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17689 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17690 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17691 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}'
17694 ld_shlibs_GCJ=no
17696 esac
17700 dgux*)
17701 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17702 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17703 hardcode_shlibpath_var_GCJ=no
17706 freebsd1*)
17707 ld_shlibs_GCJ=no
17710 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17711 # support. Future versions do this automatically, but an explicit c++rt0.o
17712 # does not break anything, and helps significantly (at the cost of a little
17713 # extra space).
17714 freebsd2.2*)
17715 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17716 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17717 hardcode_direct_GCJ=yes
17718 hardcode_shlibpath_var_GCJ=no
17721 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17722 freebsd2*)
17723 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17724 hardcode_direct_GCJ=yes
17725 hardcode_minus_L_GCJ=yes
17726 hardcode_shlibpath_var_GCJ=no
17729 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17730 freebsd* | dragonfly*)
17731 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17732 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17733 hardcode_direct_GCJ=yes
17734 hardcode_shlibpath_var_GCJ=no
17737 hpux9*)
17738 if test "$GCC" = yes; then
17739 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'
17740 else
17741 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'
17743 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17744 hardcode_libdir_separator_GCJ=:
17745 hardcode_direct_GCJ=yes
17747 # hardcode_minus_L: Not really in the search PATH,
17748 # but as the default location of the library.
17749 hardcode_minus_L_GCJ=yes
17750 export_dynamic_flag_spec_GCJ='${wl}-E'
17753 hpux10*)
17754 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17755 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17756 else
17757 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17759 if test "$with_gnu_ld" = no; then
17760 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17761 hardcode_libdir_separator_GCJ=:
17763 hardcode_direct_GCJ=yes
17764 export_dynamic_flag_spec_GCJ='${wl}-E'
17766 # hardcode_minus_L: Not really in the search PATH,
17767 # but as the default location of the library.
17768 hardcode_minus_L_GCJ=yes
17772 hpux11*)
17773 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17774 case $host_cpu in
17775 hppa*64*)
17776 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17778 ia64*)
17779 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17782 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17784 esac
17785 else
17786 case $host_cpu in
17787 hppa*64*)
17788 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17790 ia64*)
17791 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17794 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17796 esac
17798 if test "$with_gnu_ld" = no; then
17799 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17800 hardcode_libdir_separator_GCJ=:
17802 case $host_cpu in
17803 hppa*64*|ia64*)
17804 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17805 hardcode_direct_GCJ=no
17806 hardcode_shlibpath_var_GCJ=no
17809 hardcode_direct_GCJ=yes
17810 export_dynamic_flag_spec_GCJ='${wl}-E'
17812 # hardcode_minus_L: Not really in the search PATH,
17813 # but as the default location of the library.
17814 hardcode_minus_L_GCJ=yes
17816 esac
17820 irix5* | irix6* | nonstopux*)
17821 if test "$GCC" = yes; then
17822 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'
17823 else
17824 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'
17825 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17827 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17828 hardcode_libdir_separator_GCJ=:
17829 link_all_deplibs_GCJ=yes
17832 netbsd*)
17833 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17834 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17835 else
17836 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17838 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17839 hardcode_direct_GCJ=yes
17840 hardcode_shlibpath_var_GCJ=no
17843 newsos6)
17844 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17845 hardcode_direct_GCJ=yes
17846 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17847 hardcode_libdir_separator_GCJ=:
17848 hardcode_shlibpath_var_GCJ=no
17851 openbsd*)
17852 if test -f /usr/libexec/ld.so; then
17853 hardcode_direct_GCJ=yes
17854 hardcode_shlibpath_var_GCJ=no
17855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17856 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17857 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17858 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17859 export_dynamic_flag_spec_GCJ='${wl}-E'
17860 else
17861 case $host_os in
17862 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17863 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17864 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17867 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17868 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17870 esac
17872 else
17873 ld_shlibs_GCJ=no
17877 os2*)
17878 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17879 hardcode_minus_L_GCJ=yes
17880 allow_undefined_flag_GCJ=unsupported
17881 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'
17882 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17885 osf3*)
17886 if test "$GCC" = yes; then
17887 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17888 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'
17889 else
17890 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17891 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'
17893 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17894 hardcode_libdir_separator_GCJ=:
17897 osf4* | osf5*) # as osf3* with the addition of -msym flag
17898 if test "$GCC" = yes; then
17899 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17900 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'
17901 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17902 else
17903 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17904 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'
17905 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~
17906 $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'
17908 # Both c and cxx compiler support -rpath directly
17909 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17911 hardcode_libdir_separator_GCJ=:
17914 solaris*)
17915 no_undefined_flag_GCJ=' -z text'
17916 if test "$GCC" = yes; then
17917 wlarc='${wl}'
17918 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17919 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17920 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17921 else
17922 wlarc=''
17923 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17924 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17925 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17927 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17928 hardcode_shlibpath_var_GCJ=no
17929 case $host_os in
17930 solaris2.[0-5] | solaris2.[0-5].*) ;;
17932 # The compiler driver will combine and reorder linker options,
17933 # but understands `-z linker_flag'. GCC discards it without `$wl',
17934 # but is careful enough not to reorder.
17935 # Supported since Solaris 2.6 (maybe 2.5.1?)
17936 if test "$GCC" = yes; then
17937 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17938 else
17939 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17942 esac
17943 link_all_deplibs_GCJ=yes
17946 sunos4*)
17947 if test "x$host_vendor" = xsequent; then
17948 # Use $CC to link under sequent, because it throws in some extra .o
17949 # files that make .init and .fini sections work.
17950 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17951 else
17952 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17955 hardcode_direct_GCJ=yes
17956 hardcode_minus_L_GCJ=yes
17957 hardcode_shlibpath_var_GCJ=no
17960 sysv4)
17961 case $host_vendor in
17962 sni)
17963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17964 hardcode_direct_GCJ=yes # is this really true???
17966 siemens)
17967 ## LD is ld it makes a PLAMLIB
17968 ## CC just makes a GrossModule.
17969 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17970 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17971 hardcode_direct_GCJ=no
17973 motorola)
17974 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17975 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17977 esac
17978 runpath_var='LD_RUN_PATH'
17979 hardcode_shlibpath_var_GCJ=no
17982 sysv4.3*)
17983 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17984 hardcode_shlibpath_var_GCJ=no
17985 export_dynamic_flag_spec_GCJ='-Bexport'
17988 sysv4*MP*)
17989 if test -d /usr/nec; then
17990 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17991 hardcode_shlibpath_var_GCJ=no
17992 runpath_var=LD_RUN_PATH
17993 hardcode_runpath_var=yes
17994 ld_shlibs_GCJ=yes
17998 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17999 no_undefined_flag_GCJ='${wl}-z,text'
18000 archive_cmds_need_lc_GCJ=no
18001 hardcode_shlibpath_var_GCJ=no
18002 runpath_var='LD_RUN_PATH'
18004 if test "$GCC" = yes; then
18005 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18006 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18007 else
18008 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18009 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18013 sysv5* | sco3.2v5* | sco5v6*)
18014 # Note: We can NOT use -z defs as we might desire, because we do not
18015 # link with -lc, and that would cause any symbols used from libc to
18016 # always be unresolved, which means just about no library would
18017 # ever link correctly. If we're not using GNU ld we use -z text
18018 # though, which does catch some bad symbols but isn't as heavy-handed
18019 # as -z defs.
18020 no_undefined_flag_GCJ='${wl}-z,text'
18021 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18022 archive_cmds_need_lc_GCJ=no
18023 hardcode_shlibpath_var_GCJ=no
18024 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18025 hardcode_libdir_separator_GCJ=':'
18026 link_all_deplibs_GCJ=yes
18027 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18028 runpath_var='LD_RUN_PATH'
18030 if test "$GCC" = yes; then
18031 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18032 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18033 else
18034 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18035 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18039 uts4*)
18040 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18042 hardcode_shlibpath_var_GCJ=no
18046 ld_shlibs_GCJ=no
18048 esac
18051 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18052 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18053 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18056 # Do we need to explicitly link libc?
18058 case "x$archive_cmds_need_lc_GCJ" in
18059 x|xyes)
18060 # Assume -lc should be added
18061 archive_cmds_need_lc_GCJ=yes
18063 if test "$enable_shared" = yes && test "$GCC" = yes; then
18064 case $archive_cmds_GCJ in
18065 *'~'*)
18066 # FIXME: we may have to deal with multi-command sequences.
18068 '$CC '*)
18069 # Test whether the compiler implicitly links with -lc since on some
18070 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18071 # to ld, don't add -lc before -lgcc.
18072 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18073 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18074 $rm conftest*
18075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18078 (eval $ac_compile) 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } 2>conftest.err; then
18082 soname=conftest
18083 lib=conftest
18084 libobjs=conftest.$ac_objext
18085 deplibs=
18086 wl=$lt_prog_compiler_wl_GCJ
18087 pic_flag=$lt_prog_compiler_pic_GCJ
18088 compiler_flags=-v
18089 linker_flags=-v
18090 verstring=
18091 output_objdir=.
18092 libname=conftest
18093 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18094 allow_undefined_flag_GCJ=
18095 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18096 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }
18100 then
18101 archive_cmds_need_lc_GCJ=no
18102 else
18103 archive_cmds_need_lc_GCJ=yes
18105 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18106 else
18107 cat conftest.err 1>&5
18109 $rm conftest*
18110 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18111 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18113 esac
18116 esac
18118 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18119 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18120 library_names_spec=
18121 libname_spec='lib$name'
18122 soname_spec=
18123 shrext_cmds=".so"
18124 postinstall_cmds=
18125 postuninstall_cmds=
18126 finish_cmds=
18127 finish_eval=
18128 shlibpath_var=
18129 shlibpath_overrides_runpath=unknown
18130 version_type=none
18131 dynamic_linker="$host_os ld.so"
18132 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18134 need_lib_prefix=unknown
18135 hardcode_into_libs=no
18137 # when you set need_version to no, make sure it does not cause -set_version
18138 # flags to be left without arguments
18139 need_version=unknown
18141 case $host_os in
18142 aix3*)
18143 version_type=linux
18144 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18145 shlibpath_var=LIBPATH
18147 # AIX 3 has no versioning support, so we append a major version to the name.
18148 soname_spec='${libname}${release}${shared_ext}$major'
18151 aix[4-9]*)
18152 version_type=linux
18153 need_lib_prefix=no
18154 need_version=no
18155 hardcode_into_libs=yes
18156 if test "$host_cpu" = ia64; then
18157 # AIX 5 supports IA64
18158 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18159 shlibpath_var=LD_LIBRARY_PATH
18160 else
18161 # With GCC up to 2.95.x, collect2 would create an import file
18162 # for dependence libraries. The import file would start with
18163 # the line `#! .'. This would cause the generated library to
18164 # depend on `.', always an invalid library. This was fixed in
18165 # development snapshots of GCC prior to 3.0.
18166 case $host_os in
18167 aix4 | aix4.[01] | aix4.[01].*)
18168 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18169 echo ' yes '
18170 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18172 else
18173 can_build_shared=no
18176 esac
18177 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18178 # soname into executable. Probably we can add versioning support to
18179 # collect2, so additional links can be useful in future.
18180 if test "$aix_use_runtimelinking" = yes; then
18181 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18182 # instead of lib<name>.a to let people know that these are not
18183 # typical AIX shared libraries.
18184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185 else
18186 # We preserve .a as extension for shared libraries through AIX4.2
18187 # and later when we are not doing run time linking.
18188 library_names_spec='${libname}${release}.a $libname.a'
18189 soname_spec='${libname}${release}${shared_ext}$major'
18191 shlibpath_var=LIBPATH
18195 amigaos*)
18196 library_names_spec='$libname.ixlibrary $libname.a'
18197 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18198 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'
18201 beos*)
18202 library_names_spec='${libname}${shared_ext}'
18203 dynamic_linker="$host_os ld.so"
18204 shlibpath_var=LIBRARY_PATH
18207 bsdi[45]*)
18208 version_type=linux
18209 need_version=no
18210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18211 soname_spec='${libname}${release}${shared_ext}$major'
18212 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18213 shlibpath_var=LD_LIBRARY_PATH
18214 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18215 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18216 # the default ld.so.conf also contains /usr/contrib/lib and
18217 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18218 # libtool to hard-code these into programs
18221 cygwin* | mingw* | pw32*)
18222 version_type=windows
18223 shrext_cmds=".dll"
18224 need_version=no
18225 need_lib_prefix=no
18227 case $GCC,$host_os in
18228 yes,cygwin* | yes,mingw* | yes,pw32*)
18229 library_names_spec='$libname.dll.a'
18230 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18231 postinstall_cmds='base_file=`basename \${file}`~
18232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18233 dldir=$destdir/`dirname \$dlpath`~
18234 test -d \$dldir || mkdir -p \$dldir~
18235 $install_prog $dir/$dlname \$dldir/$dlname~
18236 chmod a+x \$dldir/$dlname'
18237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18238 dlpath=$dir/\$dldll~
18239 $rm \$dlpath'
18240 shlibpath_overrides_runpath=yes
18242 case $host_os in
18243 cygwin*)
18244 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18245 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18246 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18248 mingw*)
18249 # MinGW DLLs use traditional 'lib' prefix
18250 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18251 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18252 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18253 # It is most probably a Windows format PATH printed by
18254 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18255 # path with ; separators, and with drive letters. We can handle the
18256 # drive letters (cygwin fileutils understands them), so leave them,
18257 # especially as we might pass files found there to a mingw objdump,
18258 # which wouldn't understand a cygwinified path. Ahh.
18259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18260 else
18261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18264 pw32*)
18265 # pw32 DLLs use 'pw' prefix rather than 'lib'
18266 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18268 esac
18272 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18274 esac
18275 dynamic_linker='Win32 ld.exe'
18276 # FIXME: first we should search . and the directory the executable is in
18277 shlibpath_var=PATH
18280 darwin* | rhapsody*)
18281 dynamic_linker="$host_os dyld"
18282 version_type=darwin
18283 need_lib_prefix=no
18284 need_version=no
18285 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18286 soname_spec='${libname}${release}${major}$shared_ext'
18287 shlibpath_overrides_runpath=yes
18288 shlibpath_var=DYLD_LIBRARY_PATH
18289 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18291 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18294 dgux*)
18295 version_type=linux
18296 need_lib_prefix=no
18297 need_version=no
18298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18299 soname_spec='${libname}${release}${shared_ext}$major'
18300 shlibpath_var=LD_LIBRARY_PATH
18303 freebsd1*)
18304 dynamic_linker=no
18307 freebsd* | dragonfly*)
18308 # DragonFly does not have aout. When/if they implement a new
18309 # versioning mechanism, adjust this.
18310 if test -x /usr/bin/objformat; then
18311 objformat=`/usr/bin/objformat`
18312 else
18313 case $host_os in
18314 freebsd[123]*) objformat=aout ;;
18315 *) objformat=elf ;;
18316 esac
18318 version_type=freebsd-$objformat
18319 case $version_type in
18320 freebsd-elf*)
18321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18322 need_version=no
18323 need_lib_prefix=no
18325 freebsd-*)
18326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18327 need_version=yes
18329 esac
18330 shlibpath_var=LD_LIBRARY_PATH
18331 case $host_os in
18332 freebsd2*)
18333 shlibpath_overrides_runpath=yes
18335 freebsd3.[01]* | freebsdelf3.[01]*)
18336 shlibpath_overrides_runpath=yes
18337 hardcode_into_libs=yes
18339 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18340 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18341 shlibpath_overrides_runpath=no
18342 hardcode_into_libs=yes
18344 *) # from 4.6 on, and DragonFly
18345 shlibpath_overrides_runpath=yes
18346 hardcode_into_libs=yes
18348 esac
18351 gnu*)
18352 version_type=linux
18353 need_lib_prefix=no
18354 need_version=no
18355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18356 soname_spec='${libname}${release}${shared_ext}$major'
18357 shlibpath_var=LD_LIBRARY_PATH
18358 hardcode_into_libs=yes
18361 hpux9* | hpux10* | hpux11*)
18362 # Give a soname corresponding to the major version so that dld.sl refuses to
18363 # link against other versions.
18364 version_type=sunos
18365 need_lib_prefix=no
18366 need_version=no
18367 case $host_cpu in
18368 ia64*)
18369 shrext_cmds='.so'
18370 hardcode_into_libs=yes
18371 dynamic_linker="$host_os dld.so"
18372 shlibpath_var=LD_LIBRARY_PATH
18373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18375 soname_spec='${libname}${release}${shared_ext}$major'
18376 if test "X$HPUX_IA64_MODE" = X32; then
18377 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18378 else
18379 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18383 hppa*64*)
18384 shrext_cmds='.sl'
18385 hardcode_into_libs=yes
18386 dynamic_linker="$host_os dld.sl"
18387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18390 soname_spec='${libname}${release}${shared_ext}$major'
18391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18395 shrext_cmds='.sl'
18396 dynamic_linker="$host_os dld.sl"
18397 shlibpath_var=SHLIB_PATH
18398 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18400 soname_spec='${libname}${release}${shared_ext}$major'
18402 esac
18403 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18404 postinstall_cmds='chmod 555 $lib'
18407 interix[3-9]*)
18408 version_type=linux
18409 need_lib_prefix=no
18410 need_version=no
18411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18412 soname_spec='${libname}${release}${shared_ext}$major'
18413 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18414 shlibpath_var=LD_LIBRARY_PATH
18415 shlibpath_overrides_runpath=no
18416 hardcode_into_libs=yes
18419 irix5* | irix6* | nonstopux*)
18420 case $host_os in
18421 nonstopux*) version_type=nonstopux ;;
18423 if test "$lt_cv_prog_gnu_ld" = yes; then
18424 version_type=linux
18425 else
18426 version_type=irix
18427 fi ;;
18428 esac
18429 need_lib_prefix=no
18430 need_version=no
18431 soname_spec='${libname}${release}${shared_ext}$major'
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18433 case $host_os in
18434 irix5* | nonstopux*)
18435 libsuff= shlibsuff=
18438 case $LD in # libtool.m4 will add one of these switches to LD
18439 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18440 libsuff= shlibsuff= libmagic=32-bit;;
18441 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18442 libsuff=32 shlibsuff=N32 libmagic=N32;;
18443 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18444 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18445 *) libsuff= shlibsuff= libmagic=never-match;;
18446 esac
18448 esac
18449 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18450 shlibpath_overrides_runpath=no
18451 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18452 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18453 hardcode_into_libs=yes
18456 # No shared lib support for Linux oldld, aout, or coff.
18457 linux*oldld* | linux*aout* | linux*coff*)
18458 dynamic_linker=no
18461 # This must be Linux ELF.
18462 linux* | k*bsd*-gnu)
18463 version_type=linux
18464 need_lib_prefix=no
18465 need_version=no
18466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18467 soname_spec='${libname}${release}${shared_ext}$major'
18468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18469 shlibpath_var=LD_LIBRARY_PATH
18470 shlibpath_overrides_runpath=no
18471 # This implies no fast_install, which is unacceptable.
18472 # Some rework will be needed to allow for fast_install
18473 # before this can be enabled.
18474 hardcode_into_libs=yes
18476 # Append ld.so.conf contents to the search path
18477 if test -f /etc/ld.so.conf; then
18478 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18479 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18482 # We used to test for /lib/ld.so.1 and disable shared libraries on
18483 # powerpc, because MkLinux only supported shared libraries with the
18484 # GNU dynamic linker. Since this was broken with cross compilers,
18485 # most powerpc-linux boxes support dynamic linking these days and
18486 # people can always --disable-shared, the test was removed, and we
18487 # assume the GNU/Linux dynamic linker is in use.
18488 dynamic_linker='GNU/Linux ld.so'
18491 netbsd*)
18492 version_type=sunos
18493 need_lib_prefix=no
18494 need_version=no
18495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18498 dynamic_linker='NetBSD (a.out) ld.so'
18499 else
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18501 soname_spec='${libname}${release}${shared_ext}$major'
18502 dynamic_linker='NetBSD ld.elf_so'
18504 shlibpath_var=LD_LIBRARY_PATH
18505 shlibpath_overrides_runpath=yes
18506 hardcode_into_libs=yes
18509 newsos6)
18510 version_type=linux
18511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18512 shlibpath_var=LD_LIBRARY_PATH
18513 shlibpath_overrides_runpath=yes
18516 nto-qnx*)
18517 version_type=linux
18518 need_lib_prefix=no
18519 need_version=no
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18521 soname_spec='${libname}${release}${shared_ext}$major'
18522 shlibpath_var=LD_LIBRARY_PATH
18523 shlibpath_overrides_runpath=yes
18526 openbsd*)
18527 version_type=sunos
18528 sys_lib_dlsearch_path_spec="/usr/lib"
18529 need_lib_prefix=no
18530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18531 case $host_os in
18532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18533 *) need_version=no ;;
18534 esac
18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18537 shlibpath_var=LD_LIBRARY_PATH
18538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18539 case $host_os in
18540 openbsd2.[89] | openbsd2.[89].*)
18541 shlibpath_overrides_runpath=no
18544 shlibpath_overrides_runpath=yes
18546 esac
18547 else
18548 shlibpath_overrides_runpath=yes
18552 os2*)
18553 libname_spec='$name'
18554 shrext_cmds=".dll"
18555 need_lib_prefix=no
18556 library_names_spec='$libname${shared_ext} $libname.a'
18557 dynamic_linker='OS/2 ld.exe'
18558 shlibpath_var=LIBPATH
18561 osf3* | osf4* | osf5*)
18562 version_type=osf
18563 need_lib_prefix=no
18564 need_version=no
18565 soname_spec='${libname}${release}${shared_ext}$major'
18566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18567 shlibpath_var=LD_LIBRARY_PATH
18568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18572 rdos*)
18573 dynamic_linker=no
18576 solaris*)
18577 version_type=linux
18578 need_lib_prefix=no
18579 need_version=no
18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581 soname_spec='${libname}${release}${shared_ext}$major'
18582 shlibpath_var=LD_LIBRARY_PATH
18583 shlibpath_overrides_runpath=yes
18584 hardcode_into_libs=yes
18585 # ldd complains unless libraries are executable
18586 postinstall_cmds='chmod +x $lib'
18589 sunos4*)
18590 version_type=sunos
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 shlibpath_overrides_runpath=yes
18595 if test "$with_gnu_ld" = yes; then
18596 need_lib_prefix=no
18598 need_version=yes
18601 sysv4 | sysv4.3*)
18602 version_type=linux
18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18604 soname_spec='${libname}${release}${shared_ext}$major'
18605 shlibpath_var=LD_LIBRARY_PATH
18606 case $host_vendor in
18607 sni)
18608 shlibpath_overrides_runpath=no
18609 need_lib_prefix=no
18610 export_dynamic_flag_spec='${wl}-Blargedynsym'
18611 runpath_var=LD_RUN_PATH
18613 siemens)
18614 need_lib_prefix=no
18616 motorola)
18617 need_lib_prefix=no
18618 need_version=no
18619 shlibpath_overrides_runpath=no
18620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18622 esac
18625 sysv4*MP*)
18626 if test -d /usr/nec ;then
18627 version_type=linux
18628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18629 soname_spec='$libname${shared_ext}.$major'
18630 shlibpath_var=LD_LIBRARY_PATH
18634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18635 version_type=freebsd-elf
18636 need_lib_prefix=no
18637 need_version=no
18638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18639 soname_spec='${libname}${release}${shared_ext}$major'
18640 shlibpath_var=LD_LIBRARY_PATH
18641 hardcode_into_libs=yes
18642 if test "$with_gnu_ld" = yes; then
18643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18644 shlibpath_overrides_runpath=no
18645 else
18646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18647 shlibpath_overrides_runpath=yes
18648 case $host_os in
18649 sco3.2v5*)
18650 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18652 esac
18654 sys_lib_dlsearch_path_spec='/usr/lib'
18657 uts4*)
18658 version_type=linux
18659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660 soname_spec='${libname}${release}${shared_ext}$major'
18661 shlibpath_var=LD_LIBRARY_PATH
18665 dynamic_linker=no
18667 esac
18668 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18669 echo "${ECHO_T}$dynamic_linker" >&6; }
18670 test "$dynamic_linker" = no && can_build_shared=no
18672 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 else
18675 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18678 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18679 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18680 echo $ECHO_N "(cached) $ECHO_C" >&6
18681 else
18682 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18685 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18687 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18688 if test "$GCC" = yes; then
18689 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18692 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18693 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18694 hardcode_action_GCJ=
18695 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18696 test -n "$runpath_var_GCJ" || \
18697 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18699 # We can hardcode non-existant directories.
18700 if test "$hardcode_direct_GCJ" != no &&
18701 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18702 # have to relink, otherwise we might link with an installed library
18703 # when we should be linking with a yet-to-be-installed one
18704 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18705 test "$hardcode_minus_L_GCJ" != no; then
18706 # Linking always hardcodes the temporary library directory.
18707 hardcode_action_GCJ=relink
18708 else
18709 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18710 hardcode_action_GCJ=immediate
18712 else
18713 # We cannot hardcode anything, or else we can only hardcode existing
18714 # directories.
18715 hardcode_action_GCJ=unsupported
18717 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18718 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18720 if test "$hardcode_action_GCJ" = relink; then
18721 # Fast installation is not supported
18722 enable_fast_install=no
18723 elif test "$shlibpath_overrides_runpath" = yes ||
18724 test "$enable_shared" = no; then
18725 # Fast installation is not necessary
18726 enable_fast_install=needless
18730 # The else clause should only fire when bootstrapping the
18731 # libtool distribution, otherwise you forgot to ship ltmain.sh
18732 # with your package, and you will get complaints that there are
18733 # no rules to generate ltmain.sh.
18734 if test -f "$ltmain"; then
18735 # See if we are running on zsh, and set the options which allow our commands through
18736 # without removal of \ escapes.
18737 if test -n "${ZSH_VERSION+set}" ; then
18738 setopt NO_GLOB_SUBST
18740 # Now quote all the things that may contain metacharacters while being
18741 # careful not to overquote the AC_SUBSTed values. We take copies of the
18742 # variables and quote the copies for generation of the libtool script.
18743 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18744 SED SHELL STRIP \
18745 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18746 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18747 deplibs_check_method reload_flag reload_cmds need_locks \
18748 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18749 lt_cv_sys_global_symbol_to_c_name_address \
18750 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18751 old_postinstall_cmds old_postuninstall_cmds \
18752 compiler_GCJ \
18753 CC_GCJ \
18754 LD_GCJ \
18755 lt_prog_compiler_wl_GCJ \
18756 lt_prog_compiler_pic_GCJ \
18757 lt_prog_compiler_static_GCJ \
18758 lt_prog_compiler_no_builtin_flag_GCJ \
18759 export_dynamic_flag_spec_GCJ \
18760 thread_safe_flag_spec_GCJ \
18761 whole_archive_flag_spec_GCJ \
18762 enable_shared_with_static_runtimes_GCJ \
18763 old_archive_cmds_GCJ \
18764 old_archive_from_new_cmds_GCJ \
18765 predep_objects_GCJ \
18766 postdep_objects_GCJ \
18767 predeps_GCJ \
18768 postdeps_GCJ \
18769 compiler_lib_search_path_GCJ \
18770 compiler_lib_search_dirs_GCJ \
18771 archive_cmds_GCJ \
18772 archive_expsym_cmds_GCJ \
18773 postinstall_cmds_GCJ \
18774 postuninstall_cmds_GCJ \
18775 old_archive_from_expsyms_cmds_GCJ \
18776 allow_undefined_flag_GCJ \
18777 no_undefined_flag_GCJ \
18778 export_symbols_cmds_GCJ \
18779 hardcode_libdir_flag_spec_GCJ \
18780 hardcode_libdir_flag_spec_ld_GCJ \
18781 hardcode_libdir_separator_GCJ \
18782 hardcode_automatic_GCJ \
18783 module_cmds_GCJ \
18784 module_expsym_cmds_GCJ \
18785 lt_cv_prog_compiler_c_o_GCJ \
18786 fix_srcfile_path_GCJ \
18787 exclude_expsyms_GCJ \
18788 include_expsyms_GCJ; do
18790 case $var in
18791 old_archive_cmds_GCJ | \
18792 old_archive_from_new_cmds_GCJ | \
18793 archive_cmds_GCJ | \
18794 archive_expsym_cmds_GCJ | \
18795 module_cmds_GCJ | \
18796 module_expsym_cmds_GCJ | \
18797 old_archive_from_expsyms_cmds_GCJ | \
18798 export_symbols_cmds_GCJ | \
18799 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18800 postinstall_cmds | postuninstall_cmds | \
18801 old_postinstall_cmds | old_postuninstall_cmds | \
18802 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18803 # Double-quote double-evaled strings.
18804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18809 esac
18810 done
18812 case $lt_echo in
18813 *'\$0 --fallback-echo"')
18814 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18816 esac
18818 cfgfile="$ofile"
18820 cat <<__EOF__ >> "$cfgfile"
18821 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18825 # Shell to use when invoking shell scripts.
18826 SHELL=$lt_SHELL
18828 # Whether or not to build shared libraries.
18829 build_libtool_libs=$enable_shared
18831 # Whether or not to build static libraries.
18832 build_old_libs=$enable_static
18834 # Whether or not to add -lc for building shared libraries.
18835 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18837 # Whether or not to disallow shared libs when runtime libs are static
18838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18840 # Whether or not to optimize for fast installation.
18841 fast_install=$enable_fast_install
18843 # The host system.
18844 host_alias=$host_alias
18845 host=$host
18846 host_os=$host_os
18848 # The build system.
18849 build_alias=$build_alias
18850 build=$build
18851 build_os=$build_os
18853 # An echo program that does not interpret backslashes.
18854 echo=$lt_echo
18856 # The archiver.
18857 AR=$lt_AR
18858 AR_FLAGS=$lt_AR_FLAGS
18860 # A C compiler.
18861 LTCC=$lt_LTCC
18863 # LTCC compiler flags.
18864 LTCFLAGS=$lt_LTCFLAGS
18866 # A language-specific compiler.
18867 CC=$lt_compiler_GCJ
18869 # Is the compiler the GNU C compiler?
18870 with_gcc=$GCC_GCJ
18872 # An ERE matcher.
18873 EGREP=$lt_EGREP
18875 # The linker used to build libraries.
18876 LD=$lt_LD_GCJ
18878 # Whether we need hard or soft links.
18879 LN_S=$lt_LN_S
18881 # A BSD-compatible nm program.
18882 NM=$lt_NM
18884 # A symbol stripping program
18885 STRIP=$lt_STRIP
18887 # Used to examine libraries when file_magic_cmd begins "file"
18888 MAGIC_CMD=$MAGIC_CMD
18890 # Used on cygwin: DLL creation program.
18891 DLLTOOL="$DLLTOOL"
18893 # Used on cygwin: object dumper.
18894 OBJDUMP="$OBJDUMP"
18896 # Used on cygwin: assembler.
18897 AS="$AS"
18899 # The name of the directory that contains temporary libtool files.
18900 objdir=$objdir
18902 # How to create reloadable object files.
18903 reload_flag=$lt_reload_flag
18904 reload_cmds=$lt_reload_cmds
18906 # How to pass a linker flag through the compiler.
18907 wl=$lt_lt_prog_compiler_wl_GCJ
18909 # Object file suffix (normally "o").
18910 objext="$ac_objext"
18912 # Old archive suffix (normally "a").
18913 libext="$libext"
18915 # Shared library suffix (normally ".so").
18916 shrext_cmds='$shrext_cmds'
18918 # Executable file suffix (normally "").
18919 exeext="$exeext"
18921 # Additional compiler flags for building library objects.
18922 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18923 pic_mode=$pic_mode
18925 # What is the maximum length of a command?
18926 max_cmd_len=$lt_cv_sys_max_cmd_len
18928 # Does compiler simultaneously support -c and -o options?
18929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18931 # Must we lock files when doing compilation?
18932 need_locks=$lt_need_locks
18934 # Do we need the lib prefix for modules?
18935 need_lib_prefix=$need_lib_prefix
18937 # Do we need a version for libraries?
18938 need_version=$need_version
18940 # Whether dlopen is supported.
18941 dlopen_support=$enable_dlopen
18943 # Whether dlopen of programs is supported.
18944 dlopen_self=$enable_dlopen_self
18946 # Whether dlopen of statically linked programs is supported.
18947 dlopen_self_static=$enable_dlopen_self_static
18949 # Compiler flag to prevent dynamic linking.
18950 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18952 # Compiler flag to turn off builtin functions.
18953 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18955 # Compiler flag to allow reflexive dlopens.
18956 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18958 # Compiler flag to generate shared objects directly from archives.
18959 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18961 # Compiler flag to generate thread-safe objects.
18962 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18964 # Library versioning type.
18965 version_type=$version_type
18967 # Format of library name prefix.
18968 libname_spec=$lt_libname_spec
18970 # List of archive names. First name is the real one, the rest are links.
18971 # The last name is the one that the linker finds with -lNAME.
18972 library_names_spec=$lt_library_names_spec
18974 # The coded name of the library, if different from the real name.
18975 soname_spec=$lt_soname_spec
18977 # Commands used to build and install an old-style archive.
18978 RANLIB=$lt_RANLIB
18979 old_archive_cmds=$lt_old_archive_cmds_GCJ
18980 old_postinstall_cmds=$lt_old_postinstall_cmds
18981 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18983 # Create an old-style archive from a shared archive.
18984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18986 # Create a temporary old-style archive to link instead of a shared archive.
18987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18989 # Commands used to build and install a shared archive.
18990 archive_cmds=$lt_archive_cmds_GCJ
18991 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18992 postinstall_cmds=$lt_postinstall_cmds
18993 postuninstall_cmds=$lt_postuninstall_cmds
18995 # Commands used to build a loadable module (assumed same as above if empty)
18996 module_cmds=$lt_module_cmds_GCJ
18997 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18999 # Commands to strip libraries.
19000 old_striplib=$lt_old_striplib
19001 striplib=$lt_striplib
19003 # Dependencies to place before the objects being linked to create a
19004 # shared library.
19005 predep_objects=$lt_predep_objects_GCJ
19007 # Dependencies to place after the objects being linked to create a
19008 # shared library.
19009 postdep_objects=$lt_postdep_objects_GCJ
19011 # Dependencies to place before the objects being linked to create a
19012 # shared library.
19013 predeps=$lt_predeps_GCJ
19015 # Dependencies to place after the objects being linked to create a
19016 # shared library.
19017 postdeps=$lt_postdeps_GCJ
19019 # The directories searched by this compiler when creating a shared
19020 # library
19021 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19023 # The library search path used internally by the compiler when linking
19024 # a shared library.
19025 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19027 # Method to check whether dependent libraries are shared objects.
19028 deplibs_check_method=$lt_deplibs_check_method
19030 # Command to use when deplibs_check_method == file_magic.
19031 file_magic_cmd=$lt_file_magic_cmd
19033 # Flag that allows shared libraries with undefined symbols to be built.
19034 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19036 # Flag that forces no undefined symbols.
19037 no_undefined_flag=$lt_no_undefined_flag_GCJ
19039 # Commands used to finish a libtool library installation in a directory.
19040 finish_cmds=$lt_finish_cmds
19042 # Same as above, but a single script fragment to be evaled but not shown.
19043 finish_eval=$lt_finish_eval
19045 # Take the output of nm and produce a listing of raw symbols and C names.
19046 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19048 # Transform the output of nm in a proper C declaration
19049 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19051 # Transform the output of nm in a C name address pair
19052 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19054 # This is the shared library runtime path variable.
19055 runpath_var=$runpath_var
19057 # This is the shared library path variable.
19058 shlibpath_var=$shlibpath_var
19060 # Is shlibpath searched before the hard-coded library search path?
19061 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19063 # How to hardcode a shared library path into an executable.
19064 hardcode_action=$hardcode_action_GCJ
19066 # Whether we should hardcode library paths into libraries.
19067 hardcode_into_libs=$hardcode_into_libs
19069 # Flag to hardcode \$libdir into a binary during linking.
19070 # This must work even if \$libdir does not exist.
19071 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19073 # If ld is used when linking, flag to hardcode \$libdir into
19074 # a binary during linking. This must work even if \$libdir does
19075 # not exist.
19076 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19078 # Whether we need a single -rpath flag with a separated argument.
19079 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19081 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19082 # resulting binary.
19083 hardcode_direct=$hardcode_direct_GCJ
19085 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19086 # resulting binary.
19087 hardcode_minus_L=$hardcode_minus_L_GCJ
19089 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19090 # the resulting binary.
19091 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19093 # Set to yes if building a shared library automatically hardcodes DIR into the library
19094 # and all subsequent libraries and executables linked against it.
19095 hardcode_automatic=$hardcode_automatic_GCJ
19097 # Variables whose values should be saved in libtool wrapper scripts and
19098 # restored at relink time.
19099 variables_saved_for_relink="$variables_saved_for_relink"
19101 # Whether libtool must link a program against all its dependency libraries.
19102 link_all_deplibs=$link_all_deplibs_GCJ
19104 # Compile-time system search path for libraries
19105 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19107 # Run-time system search path for libraries
19108 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19110 # Fix the shell variable \$srcfile for the compiler.
19111 fix_srcfile_path=$lt_fix_srcfile_path
19113 # Set to yes if exported symbols are required.
19114 always_export_symbols=$always_export_symbols_GCJ
19116 # The commands to list exported symbols.
19117 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19119 # The commands to extract the exported symbol list from a shared archive.
19120 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19122 # Symbols that should not be listed in the preloaded symbols.
19123 exclude_expsyms=$lt_exclude_expsyms_GCJ
19125 # Symbols that must always be exported.
19126 include_expsyms=$lt_include_expsyms_GCJ
19128 # ### END LIBTOOL TAG CONFIG: $tagname
19130 __EOF__
19133 else
19134 # If there is no Makefile yet, we rely on a make rule to execute
19135 # `config.status --recheck' to rerun these tests and create the
19136 # libtool script then.
19137 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19138 if test -f "$ltmain_in"; then
19139 test -f Makefile && make "$ltmain"
19144 ac_ext=c
19145 ac_cpp='$CPP $CPPFLAGS'
19146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19150 CC="$lt_save_CC"
19152 else
19153 tagname=""
19160 # Source file extension for RC test sources.
19161 ac_ext=rc
19163 # Object file extension for compiled RC test sources.
19164 objext=o
19165 objext_RC=$objext
19167 # Code to be used in simple compile tests
19168 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19170 # Code to be used in simple link tests
19171 lt_simple_link_test_code="$lt_simple_compile_test_code"
19173 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19175 # If no C compiler was specified, use CC.
19176 LTCC=${LTCC-"$CC"}
19178 # If no C compiler flags were specified, use CFLAGS.
19179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19181 # Allow CC to be a program name with arguments.
19182 compiler=$CC
19185 # save warnings/boilerplate of simple test code
19186 ac_outfile=conftest.$ac_objext
19187 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19188 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19189 _lt_compiler_boilerplate=`cat conftest.err`
19190 $rm conftest*
19192 ac_outfile=conftest.$ac_objext
19193 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19194 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19195 _lt_linker_boilerplate=`cat conftest.err`
19196 $rm -r conftest*
19199 # Allow CC to be a program name with arguments.
19200 lt_save_CC="$CC"
19201 CC=${RC-"windres"}
19202 compiler=$CC
19203 compiler_RC=$CC
19204 for cc_temp in $compiler""; do
19205 case $cc_temp in
19206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19208 \-*) ;;
19209 *) break;;
19210 esac
19211 done
19212 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19214 lt_cv_prog_compiler_c_o_RC=yes
19216 # The else clause should only fire when bootstrapping the
19217 # libtool distribution, otherwise you forgot to ship ltmain.sh
19218 # with your package, and you will get complaints that there are
19219 # no rules to generate ltmain.sh.
19220 if test -f "$ltmain"; then
19221 # See if we are running on zsh, and set the options which allow our commands through
19222 # without removal of \ escapes.
19223 if test -n "${ZSH_VERSION+set}" ; then
19224 setopt NO_GLOB_SUBST
19226 # Now quote all the things that may contain metacharacters while being
19227 # careful not to overquote the AC_SUBSTed values. We take copies of the
19228 # variables and quote the copies for generation of the libtool script.
19229 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19230 SED SHELL STRIP \
19231 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19232 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19233 deplibs_check_method reload_flag reload_cmds need_locks \
19234 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19235 lt_cv_sys_global_symbol_to_c_name_address \
19236 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19237 old_postinstall_cmds old_postuninstall_cmds \
19238 compiler_RC \
19239 CC_RC \
19240 LD_RC \
19241 lt_prog_compiler_wl_RC \
19242 lt_prog_compiler_pic_RC \
19243 lt_prog_compiler_static_RC \
19244 lt_prog_compiler_no_builtin_flag_RC \
19245 export_dynamic_flag_spec_RC \
19246 thread_safe_flag_spec_RC \
19247 whole_archive_flag_spec_RC \
19248 enable_shared_with_static_runtimes_RC \
19249 old_archive_cmds_RC \
19250 old_archive_from_new_cmds_RC \
19251 predep_objects_RC \
19252 postdep_objects_RC \
19253 predeps_RC \
19254 postdeps_RC \
19255 compiler_lib_search_path_RC \
19256 compiler_lib_search_dirs_RC \
19257 archive_cmds_RC \
19258 archive_expsym_cmds_RC \
19259 postinstall_cmds_RC \
19260 postuninstall_cmds_RC \
19261 old_archive_from_expsyms_cmds_RC \
19262 allow_undefined_flag_RC \
19263 no_undefined_flag_RC \
19264 export_symbols_cmds_RC \
19265 hardcode_libdir_flag_spec_RC \
19266 hardcode_libdir_flag_spec_ld_RC \
19267 hardcode_libdir_separator_RC \
19268 hardcode_automatic_RC \
19269 module_cmds_RC \
19270 module_expsym_cmds_RC \
19271 lt_cv_prog_compiler_c_o_RC \
19272 fix_srcfile_path_RC \
19273 exclude_expsyms_RC \
19274 include_expsyms_RC; do
19276 case $var in
19277 old_archive_cmds_RC | \
19278 old_archive_from_new_cmds_RC | \
19279 archive_cmds_RC | \
19280 archive_expsym_cmds_RC | \
19281 module_cmds_RC | \
19282 module_expsym_cmds_RC | \
19283 old_archive_from_expsyms_cmds_RC | \
19284 export_symbols_cmds_RC | \
19285 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19286 postinstall_cmds | postuninstall_cmds | \
19287 old_postinstall_cmds | old_postuninstall_cmds | \
19288 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19289 # Double-quote double-evaled strings.
19290 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19293 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19295 esac
19296 done
19298 case $lt_echo in
19299 *'\$0 --fallback-echo"')
19300 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19302 esac
19304 cfgfile="$ofile"
19306 cat <<__EOF__ >> "$cfgfile"
19307 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19309 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19311 # Shell to use when invoking shell scripts.
19312 SHELL=$lt_SHELL
19314 # Whether or not to build shared libraries.
19315 build_libtool_libs=$enable_shared
19317 # Whether or not to build static libraries.
19318 build_old_libs=$enable_static
19320 # Whether or not to add -lc for building shared libraries.
19321 build_libtool_need_lc=$archive_cmds_need_lc_RC
19323 # Whether or not to disallow shared libs when runtime libs are static
19324 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19326 # Whether or not to optimize for fast installation.
19327 fast_install=$enable_fast_install
19329 # The host system.
19330 host_alias=$host_alias
19331 host=$host
19332 host_os=$host_os
19334 # The build system.
19335 build_alias=$build_alias
19336 build=$build
19337 build_os=$build_os
19339 # An echo program that does not interpret backslashes.
19340 echo=$lt_echo
19342 # The archiver.
19343 AR=$lt_AR
19344 AR_FLAGS=$lt_AR_FLAGS
19346 # A C compiler.
19347 LTCC=$lt_LTCC
19349 # LTCC compiler flags.
19350 LTCFLAGS=$lt_LTCFLAGS
19352 # A language-specific compiler.
19353 CC=$lt_compiler_RC
19355 # Is the compiler the GNU C compiler?
19356 with_gcc=$GCC_RC
19358 # An ERE matcher.
19359 EGREP=$lt_EGREP
19361 # The linker used to build libraries.
19362 LD=$lt_LD_RC
19364 # Whether we need hard or soft links.
19365 LN_S=$lt_LN_S
19367 # A BSD-compatible nm program.
19368 NM=$lt_NM
19370 # A symbol stripping program
19371 STRIP=$lt_STRIP
19373 # Used to examine libraries when file_magic_cmd begins "file"
19374 MAGIC_CMD=$MAGIC_CMD
19376 # Used on cygwin: DLL creation program.
19377 DLLTOOL="$DLLTOOL"
19379 # Used on cygwin: object dumper.
19380 OBJDUMP="$OBJDUMP"
19382 # Used on cygwin: assembler.
19383 AS="$AS"
19385 # The name of the directory that contains temporary libtool files.
19386 objdir=$objdir
19388 # How to create reloadable object files.
19389 reload_flag=$lt_reload_flag
19390 reload_cmds=$lt_reload_cmds
19392 # How to pass a linker flag through the compiler.
19393 wl=$lt_lt_prog_compiler_wl_RC
19395 # Object file suffix (normally "o").
19396 objext="$ac_objext"
19398 # Old archive suffix (normally "a").
19399 libext="$libext"
19401 # Shared library suffix (normally ".so").
19402 shrext_cmds='$shrext_cmds'
19404 # Executable file suffix (normally "").
19405 exeext="$exeext"
19407 # Additional compiler flags for building library objects.
19408 pic_flag=$lt_lt_prog_compiler_pic_RC
19409 pic_mode=$pic_mode
19411 # What is the maximum length of a command?
19412 max_cmd_len=$lt_cv_sys_max_cmd_len
19414 # Does compiler simultaneously support -c and -o options?
19415 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19417 # Must we lock files when doing compilation?
19418 need_locks=$lt_need_locks
19420 # Do we need the lib prefix for modules?
19421 need_lib_prefix=$need_lib_prefix
19423 # Do we need a version for libraries?
19424 need_version=$need_version
19426 # Whether dlopen is supported.
19427 dlopen_support=$enable_dlopen
19429 # Whether dlopen of programs is supported.
19430 dlopen_self=$enable_dlopen_self
19432 # Whether dlopen of statically linked programs is supported.
19433 dlopen_self_static=$enable_dlopen_self_static
19435 # Compiler flag to prevent dynamic linking.
19436 link_static_flag=$lt_lt_prog_compiler_static_RC
19438 # Compiler flag to turn off builtin functions.
19439 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19441 # Compiler flag to allow reflexive dlopens.
19442 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19444 # Compiler flag to generate shared objects directly from archives.
19445 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19447 # Compiler flag to generate thread-safe objects.
19448 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19450 # Library versioning type.
19451 version_type=$version_type
19453 # Format of library name prefix.
19454 libname_spec=$lt_libname_spec
19456 # List of archive names. First name is the real one, the rest are links.
19457 # The last name is the one that the linker finds with -lNAME.
19458 library_names_spec=$lt_library_names_spec
19460 # The coded name of the library, if different from the real name.
19461 soname_spec=$lt_soname_spec
19463 # Commands used to build and install an old-style archive.
19464 RANLIB=$lt_RANLIB
19465 old_archive_cmds=$lt_old_archive_cmds_RC
19466 old_postinstall_cmds=$lt_old_postinstall_cmds
19467 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19469 # Create an old-style archive from a shared archive.
19470 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19472 # Create a temporary old-style archive to link instead of a shared archive.
19473 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19475 # Commands used to build and install a shared archive.
19476 archive_cmds=$lt_archive_cmds_RC
19477 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19478 postinstall_cmds=$lt_postinstall_cmds
19479 postuninstall_cmds=$lt_postuninstall_cmds
19481 # Commands used to build a loadable module (assumed same as above if empty)
19482 module_cmds=$lt_module_cmds_RC
19483 module_expsym_cmds=$lt_module_expsym_cmds_RC
19485 # Commands to strip libraries.
19486 old_striplib=$lt_old_striplib
19487 striplib=$lt_striplib
19489 # Dependencies to place before the objects being linked to create a
19490 # shared library.
19491 predep_objects=$lt_predep_objects_RC
19493 # Dependencies to place after the objects being linked to create a
19494 # shared library.
19495 postdep_objects=$lt_postdep_objects_RC
19497 # Dependencies to place before the objects being linked to create a
19498 # shared library.
19499 predeps=$lt_predeps_RC
19501 # Dependencies to place after the objects being linked to create a
19502 # shared library.
19503 postdeps=$lt_postdeps_RC
19505 # The directories searched by this compiler when creating a shared
19506 # library
19507 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19509 # The library search path used internally by the compiler when linking
19510 # a shared library.
19511 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19513 # Method to check whether dependent libraries are shared objects.
19514 deplibs_check_method=$lt_deplibs_check_method
19516 # Command to use when deplibs_check_method == file_magic.
19517 file_magic_cmd=$lt_file_magic_cmd
19519 # Flag that allows shared libraries with undefined symbols to be built.
19520 allow_undefined_flag=$lt_allow_undefined_flag_RC
19522 # Flag that forces no undefined symbols.
19523 no_undefined_flag=$lt_no_undefined_flag_RC
19525 # Commands used to finish a libtool library installation in a directory.
19526 finish_cmds=$lt_finish_cmds
19528 # Same as above, but a single script fragment to be evaled but not shown.
19529 finish_eval=$lt_finish_eval
19531 # Take the output of nm and produce a listing of raw symbols and C names.
19532 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19534 # Transform the output of nm in a proper C declaration
19535 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19537 # Transform the output of nm in a C name address pair
19538 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19540 # This is the shared library runtime path variable.
19541 runpath_var=$runpath_var
19543 # This is the shared library path variable.
19544 shlibpath_var=$shlibpath_var
19546 # Is shlibpath searched before the hard-coded library search path?
19547 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19549 # How to hardcode a shared library path into an executable.
19550 hardcode_action=$hardcode_action_RC
19552 # Whether we should hardcode library paths into libraries.
19553 hardcode_into_libs=$hardcode_into_libs
19555 # Flag to hardcode \$libdir into a binary during linking.
19556 # This must work even if \$libdir does not exist.
19557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19559 # If ld is used when linking, flag to hardcode \$libdir into
19560 # a binary during linking. This must work even if \$libdir does
19561 # not exist.
19562 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19564 # Whether we need a single -rpath flag with a separated argument.
19565 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19567 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19568 # resulting binary.
19569 hardcode_direct=$hardcode_direct_RC
19571 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19572 # resulting binary.
19573 hardcode_minus_L=$hardcode_minus_L_RC
19575 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19576 # the resulting binary.
19577 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19579 # Set to yes if building a shared library automatically hardcodes DIR into the library
19580 # and all subsequent libraries and executables linked against it.
19581 hardcode_automatic=$hardcode_automatic_RC
19583 # Variables whose values should be saved in libtool wrapper scripts and
19584 # restored at relink time.
19585 variables_saved_for_relink="$variables_saved_for_relink"
19587 # Whether libtool must link a program against all its dependency libraries.
19588 link_all_deplibs=$link_all_deplibs_RC
19590 # Compile-time system search path for libraries
19591 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19593 # Run-time system search path for libraries
19594 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19596 # Fix the shell variable \$srcfile for the compiler.
19597 fix_srcfile_path=$lt_fix_srcfile_path
19599 # Set to yes if exported symbols are required.
19600 always_export_symbols=$always_export_symbols_RC
19602 # The commands to list exported symbols.
19603 export_symbols_cmds=$lt_export_symbols_cmds_RC
19605 # The commands to extract the exported symbol list from a shared archive.
19606 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19608 # Symbols that should not be listed in the preloaded symbols.
19609 exclude_expsyms=$lt_exclude_expsyms_RC
19611 # Symbols that must always be exported.
19612 include_expsyms=$lt_include_expsyms_RC
19614 # ### END LIBTOOL TAG CONFIG: $tagname
19616 __EOF__
19619 else
19620 # If there is no Makefile yet, we rely on a make rule to execute
19621 # `config.status --recheck' to rerun these tests and create the
19622 # libtool script then.
19623 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19624 if test -f "$ltmain_in"; then
19625 test -f Makefile && make "$ltmain"
19630 ac_ext=c
19631 ac_cpp='$CPP $CPPFLAGS'
19632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19636 CC="$lt_save_CC"
19641 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19642 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19643 { (exit 1); exit 1; }; }
19645 esac
19647 # Append the new tag name to the list of available tags.
19648 if test -n "$tagname" ; then
19649 available_tags="$available_tags $tagname"
19652 done
19653 IFS="$lt_save_ifs"
19655 # Now substitute the updated list of available tags.
19656 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19657 mv "${ofile}T" "$ofile"
19658 chmod +x "$ofile"
19659 else
19660 rm -f "${ofile}T"
19661 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19662 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19663 { (exit 1); exit 1; }; }
19669 # This can be used to rebuild libtool when needed
19670 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19672 # Always use our own libtool.
19673 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19675 # Prevent multiple expansion
19697 # Checks for libraries.
19699 # Checks for header files.
19702 for ac_header in netdb.h sys/socket.h
19704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 ac_res=`eval echo '${'$as_ac_Header'}'`
19712 { echo "$as_me:$LINENO: result: $ac_res" >&5
19713 echo "${ECHO_T}$ac_res" >&6; }
19714 else
19715 # Is the header compilable?
19716 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19718 cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h. */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 $ac_includes_default
19725 #include <$ac_header>
19726 _ACEOF
19727 rm -f conftest.$ac_objext
19728 if { (ac_try="$ac_compile"
19729 case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_compile") 2>conftest.er1
19735 ac_status=$?
19736 grep -v '^ *+' conftest.er1 >conftest.err
19737 rm -f conftest.er1
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && {
19741 test -z "$ac_c_werror_flag" ||
19742 test ! -s conftest.err
19743 } && test -s conftest.$ac_objext; then
19744 ac_header_compiler=yes
19745 else
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_header_compiler=no
19752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19754 echo "${ECHO_T}$ac_header_compiler" >&6; }
19756 # Is the header present?
19757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19759 cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h. */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19765 #include <$ac_header>
19766 _ACEOF
19767 if { (ac_try="$ac_cpp conftest.$ac_ext"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19774 ac_status=$?
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } >/dev/null && {
19780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19781 test ! -s conftest.err
19782 }; then
19783 ac_header_preproc=yes
19784 else
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19788 ac_header_preproc=no
19791 rm -f conftest.err conftest.$ac_ext
19792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19793 echo "${ECHO_T}$ac_header_preproc" >&6; }
19795 # So? What about this header?
19796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19797 yes:no: )
19798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19802 ac_header_preproc=yes
19804 no:yes:* )
19805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19812 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19817 ( cat <<\_ASBOX
19818 ## ------------------------------------- ##
19819 ## Report this to ahmed.badran@gmail.com ##
19820 ## ------------------------------------- ##
19821 _ASBOX
19822 ) | sed "s/^/$as_me: WARNING: /" >&2
19824 esac
19825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 else
19830 eval "$as_ac_Header=\$ac_header_preproc"
19832 ac_res=`eval echo '${'$as_ac_Header'}'`
19833 { echo "$as_me:$LINENO: result: $ac_res" >&5
19834 echo "${ECHO_T}$ac_res" >&6; }
19837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19838 cat >>confdefs.h <<_ACEOF
19839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19840 _ACEOF
19844 done
19847 # Checks for typedefs, structures, and compiler characteristics.
19848 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
19849 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
19850 if test "${ac_cv_header_stdbool_h+set}" = set; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19852 else
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h. */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19860 #include <stdbool.h>
19861 #ifndef bool
19862 "error: bool is not defined"
19863 #endif
19864 #ifndef false
19865 "error: false is not defined"
19866 #endif
19867 #if false
19868 "error: false is not 0"
19869 #endif
19870 #ifndef true
19871 "error: true is not defined"
19872 #endif
19873 #if true != 1
19874 "error: true is not 1"
19875 #endif
19876 #ifndef __bool_true_false_are_defined
19877 "error: __bool_true_false_are_defined is not defined"
19878 #endif
19880 struct s { _Bool s: 1; _Bool t; } s;
19882 char a[true == 1 ? 1 : -1];
19883 char b[false == 0 ? 1 : -1];
19884 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19885 char d[(bool) 0.5 == true ? 1 : -1];
19886 bool e = &s;
19887 char f[(_Bool) 0.0 == false ? 1 : -1];
19888 char g[true];
19889 char h[sizeof (_Bool)];
19890 char i[sizeof s.t];
19891 enum { j = false, k = true, l = false * true, m = true * 256 };
19892 _Bool n[m];
19893 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19894 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19895 # if defined __xlc__ || defined __GNUC__
19896 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19897 reported by James Lemley on 2005-10-05; see
19898 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19899 This test is not quite right, since xlc is allowed to
19900 reject this program, as the initializer for xlcbug is
19901 not one of the forms that C requires support for.
19902 However, doing the test right would require a runtime
19903 test, and that would make cross-compilation harder.
19904 Let us hope that IBM fixes the xlc bug, and also adds
19905 support for this kind of constant expression. In the
19906 meantime, this test will reject xlc, which is OK, since
19907 our stdbool.h substitute should suffice. We also test
19908 this with GCC, where it should work, to detect more
19909 quickly whether someone messes up the test in the
19910 future. */
19911 char digs[] = "0123456789";
19912 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19913 # endif
19914 /* Catch a bug in an HP-UX C compiler. See
19915 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19916 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19918 _Bool q = true;
19919 _Bool *pq = &q;
19922 main ()
19925 *pq |= q;
19926 *pq |= ! q;
19927 /* Refer to every declared value, to avoid compiler optimizations. */
19928 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19929 + !m + !n + !o + !p + !q + !pq);
19932 return 0;
19934 _ACEOF
19935 rm -f conftest.$ac_objext
19936 if { (ac_try="$ac_compile"
19937 case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_compile") 2>conftest.er1
19943 ac_status=$?
19944 grep -v '^ *+' conftest.er1 >conftest.err
19945 rm -f conftest.er1
19946 cat conftest.err >&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } && {
19949 test -z "$ac_c_werror_flag" ||
19950 test ! -s conftest.err
19951 } && test -s conftest.$ac_objext; then
19952 ac_cv_header_stdbool_h=yes
19953 else
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 ac_cv_header_stdbool_h=no
19960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19962 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
19963 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
19964 { echo "$as_me:$LINENO: checking for _Bool" >&5
19965 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
19966 if test "${ac_cv_type__Bool+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 else
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h. */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19976 typedef _Bool ac__type_new_;
19978 main ()
19980 if ((ac__type_new_ *) 0)
19981 return 0;
19982 if (sizeof (ac__type_new_))
19983 return 0;
19985 return 0;
19987 _ACEOF
19988 rm -f conftest.$ac_objext
19989 if { (ac_try="$ac_compile"
19990 case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19993 esac
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 (eval "$ac_compile") 2>conftest.er1
19996 ac_status=$?
19997 grep -v '^ *+' conftest.er1 >conftest.err
19998 rm -f conftest.er1
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } && {
20002 test -z "$ac_c_werror_flag" ||
20003 test ! -s conftest.err
20004 } && test -s conftest.$ac_objext; then
20005 ac_cv_type__Bool=yes
20006 else
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 ac_cv_type__Bool=no
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20016 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
20017 if test $ac_cv_type__Bool = yes; then
20019 cat >>confdefs.h <<_ACEOF
20020 #define HAVE__BOOL 1
20021 _ACEOF
20026 if test $ac_cv_header_stdbool_h = yes; then
20028 cat >>confdefs.h <<\_ACEOF
20029 #define HAVE_STDBOOL_H 1
20030 _ACEOF
20034 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20035 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20036 if test "${ac_cv_c_const+set}" = set; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 else
20039 cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h. */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20047 main ()
20049 /* FIXME: Include the comments suggested by Paul. */
20050 #ifndef __cplusplus
20051 /* Ultrix mips cc rejects this. */
20052 typedef int charset[2];
20053 const charset cs;
20054 /* SunOS 4.1.1 cc rejects this. */
20055 char const *const *pcpcc;
20056 char **ppc;
20057 /* NEC SVR4.0.2 mips cc rejects this. */
20058 struct point {int x, y;};
20059 static struct point const zero = {0,0};
20060 /* AIX XL C 1.02.0.0 rejects this.
20061 It does not let you subtract one const X* pointer from another in
20062 an arm of an if-expression whose if-part is not a constant
20063 expression */
20064 const char *g = "string";
20065 pcpcc = &g + (g ? g-g : 0);
20066 /* HPUX 7.0 cc rejects these. */
20067 ++pcpcc;
20068 ppc = (char**) pcpcc;
20069 pcpcc = (char const *const *) ppc;
20070 { /* SCO 3.2v4 cc rejects this. */
20071 char *t;
20072 char const *s = 0 ? (char *) 0 : (char const *) 0;
20074 *t++ = 0;
20075 if (s) return 0;
20077 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20078 int x[] = {25, 17};
20079 const int *foo = &x[0];
20080 ++foo;
20082 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20083 typedef const int *iptr;
20084 iptr p = 0;
20085 ++p;
20087 { /* AIX XL C 1.02.0.0 rejects this saying
20088 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20089 struct s { int j; const int *ap[3]; };
20090 struct s *b; b->j = 5;
20092 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20093 const int foo = 10;
20094 if (!foo) return 0;
20096 return !cs[0] && !zero.x;
20097 #endif
20100 return 0;
20102 _ACEOF
20103 rm -f conftest.$ac_objext
20104 if { (ac_try="$ac_compile"
20105 case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20108 esac
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_compile") 2>conftest.er1
20111 ac_status=$?
20112 grep -v '^ *+' conftest.er1 >conftest.err
20113 rm -f conftest.er1
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } && {
20117 test -z "$ac_c_werror_flag" ||
20118 test ! -s conftest.err
20119 } && test -s conftest.$ac_objext; then
20120 ac_cv_c_const=yes
20121 else
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 ac_cv_c_const=no
20128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20130 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20131 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20132 if test $ac_cv_c_const = no; then
20134 cat >>confdefs.h <<\_ACEOF
20135 #define const
20136 _ACEOF
20140 { echo "$as_me:$LINENO: checking for unsigned char" >&5
20141 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
20142 if test "${ac_cv_type_unsigned_char+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h. */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 $ac_includes_default
20152 typedef unsigned char ac__type_new_;
20154 main ()
20156 if ((ac__type_new_ *) 0)
20157 return 0;
20158 if (sizeof (ac__type_new_))
20159 return 0;
20161 return 0;
20163 _ACEOF
20164 rm -f conftest.$ac_objext
20165 if { (ac_try="$ac_compile"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_compile") 2>conftest.er1
20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } && {
20178 test -z "$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20180 } && test -s conftest.$ac_objext; then
20181 ac_cv_type_unsigned_char=yes
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 ac_cv_type_unsigned_char=no
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20191 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
20192 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
20194 # The cast to long int works around a bug in the HP C Compiler
20195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20197 # This bug is HP SR number 8606223364.
20198 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
20199 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
20200 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 else
20203 if test "$cross_compiling" = yes; then
20204 # Depending upon the size, compute the lo and hi bounds.
20205 cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h. */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211 $ac_includes_default
20212 typedef unsigned char ac__type_sizeof_;
20214 main ()
20216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20217 test_array [0] = 0
20220 return 0;
20222 _ACEOF
20223 rm -f conftest.$ac_objext
20224 if { (ac_try="$ac_compile"
20225 case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20228 esac
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_compile") 2>conftest.er1
20231 ac_status=$?
20232 grep -v '^ *+' conftest.er1 >conftest.err
20233 rm -f conftest.er1
20234 cat conftest.err >&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } && {
20237 test -z "$ac_c_werror_flag" ||
20238 test ! -s conftest.err
20239 } && test -s conftest.$ac_objext; then
20240 ac_lo=0 ac_mid=0
20241 while :; do
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h. */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 $ac_includes_default
20249 typedef unsigned char ac__type_sizeof_;
20251 main ()
20253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20254 test_array [0] = 0
20257 return 0;
20259 _ACEOF
20260 rm -f conftest.$ac_objext
20261 if { (ac_try="$ac_compile"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_compile") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest.$ac_objext; then
20277 ac_hi=$ac_mid; break
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_lo=`expr $ac_mid + 1`
20283 if test $ac_lo -le $ac_mid; then
20284 ac_lo= ac_hi=
20285 break
20287 ac_mid=`expr 2 '*' $ac_mid + 1`
20290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20291 done
20292 else
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20296 cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h. */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302 $ac_includes_default
20303 typedef unsigned char ac__type_sizeof_;
20305 main ()
20307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20308 test_array [0] = 0
20311 return 0;
20313 _ACEOF
20314 rm -f conftest.$ac_objext
20315 if { (ac_try="$ac_compile"
20316 case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_compile") 2>conftest.er1
20322 ac_status=$?
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && {
20328 test -z "$ac_c_werror_flag" ||
20329 test ! -s conftest.err
20330 } && test -s conftest.$ac_objext; then
20331 ac_hi=-1 ac_mid=-1
20332 while :; do
20333 cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h. */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h. */
20339 $ac_includes_default
20340 typedef unsigned char ac__type_sizeof_;
20342 main ()
20344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20345 test_array [0] = 0
20348 return 0;
20350 _ACEOF
20351 rm -f conftest.$ac_objext
20352 if { (ac_try="$ac_compile"
20353 case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_compile") 2>conftest.er1
20359 ac_status=$?
20360 grep -v '^ *+' conftest.er1 >conftest.err
20361 rm -f conftest.er1
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } && {
20365 test -z "$ac_c_werror_flag" ||
20366 test ! -s conftest.err
20367 } && test -s conftest.$ac_objext; then
20368 ac_lo=$ac_mid; break
20369 else
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 ac_hi=`expr '(' $ac_mid ')' - 1`
20374 if test $ac_mid -le $ac_hi; then
20375 ac_lo= ac_hi=
20376 break
20378 ac_mid=`expr 2 '*' $ac_mid`
20381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20382 done
20383 else
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 ac_lo= ac_hi=
20390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20394 # Binary search between lo and hi bounds.
20395 while test "x$ac_lo" != "x$ac_hi"; do
20396 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20397 cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h. */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20403 $ac_includes_default
20404 typedef unsigned char ac__type_sizeof_;
20406 main ()
20408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20409 test_array [0] = 0
20412 return 0;
20414 _ACEOF
20415 rm -f conftest.$ac_objext
20416 if { (ac_try="$ac_compile"
20417 case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_compile") 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest.$ac_objext; then
20432 ac_hi=$ac_mid
20433 else
20434 echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20437 ac_lo=`expr '(' $ac_mid ')' + 1`
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441 done
20442 case $ac_lo in
20443 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
20444 '') if test "$ac_cv_type_unsigned_char" = yes; then
20445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
20446 See \`config.log' for more details." >&5
20447 echo "$as_me: error: cannot compute sizeof (unsigned char)
20448 See \`config.log' for more details." >&2;}
20449 { (exit 77); exit 77; }; }
20450 else
20451 ac_cv_sizeof_unsigned_char=0
20452 fi ;;
20453 esac
20454 else
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h. */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 $ac_includes_default
20462 typedef unsigned char ac__type_sizeof_;
20463 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20464 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20465 #include <stdio.h>
20466 #include <stdlib.h>
20468 main ()
20471 FILE *f = fopen ("conftest.val", "w");
20472 if (! f)
20473 return 1;
20474 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20476 long int i = longval ();
20477 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20478 return 1;
20479 fprintf (f, "%ld\n", i);
20481 else
20483 unsigned long int i = ulongval ();
20484 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20485 return 1;
20486 fprintf (f, "%lu\n", i);
20488 return ferror (f) || fclose (f) != 0;
20491 return 0;
20493 _ACEOF
20494 rm -f conftest$ac_exeext
20495 if { (ac_try="$ac_link"
20496 case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20499 esac
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_link") 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20505 { (case "(($ac_try" in
20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507 *) ac_try_echo=$ac_try;;
20508 esac
20509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510 (eval "$ac_try") 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; }; then
20514 ac_cv_sizeof_unsigned_char=`cat conftest.val`
20515 else
20516 echo "$as_me: program exited with status $ac_status" >&5
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 ( exit $ac_status )
20521 if test "$ac_cv_type_unsigned_char" = yes; then
20522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
20523 See \`config.log' for more details." >&5
20524 echo "$as_me: error: cannot compute sizeof (unsigned char)
20525 See \`config.log' for more details." >&2;}
20526 { (exit 77); exit 77; }; }
20527 else
20528 ac_cv_sizeof_unsigned_char=0
20531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20533 rm -f conftest.val
20535 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20536 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
20540 cat >>confdefs.h <<_ACEOF
20541 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
20542 _ACEOF
20545 { echo "$as_me:$LINENO: checking for unsigned short" >&5
20546 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
20547 if test "${ac_cv_type_unsigned_short+set}" = set; then
20548 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 else
20550 cat >conftest.$ac_ext <<_ACEOF
20551 /* confdefs.h. */
20552 _ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20556 $ac_includes_default
20557 typedef unsigned short ac__type_new_;
20559 main ()
20561 if ((ac__type_new_ *) 0)
20562 return 0;
20563 if (sizeof (ac__type_new_))
20564 return 0;
20566 return 0;
20568 _ACEOF
20569 rm -f conftest.$ac_objext
20570 if { (ac_try="$ac_compile"
20571 case "(($ac_try" in
20572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573 *) ac_try_echo=$ac_try;;
20574 esac
20575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20576 (eval "$ac_compile") 2>conftest.er1
20577 ac_status=$?
20578 grep -v '^ *+' conftest.er1 >conftest.err
20579 rm -f conftest.er1
20580 cat conftest.err >&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && {
20583 test -z "$ac_c_werror_flag" ||
20584 test ! -s conftest.err
20585 } && test -s conftest.$ac_objext; then
20586 ac_cv_type_unsigned_short=yes
20587 else
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_cv_type_unsigned_short=no
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
20597 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
20599 # The cast to long int works around a bug in the HP C Compiler
20600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20602 # This bug is HP SR number 8606223364.
20603 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
20604 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
20605 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 else
20608 if test "$cross_compiling" = yes; then
20609 # Depending upon the size, compute the lo and hi bounds.
20610 cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h. */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616 $ac_includes_default
20617 typedef unsigned short ac__type_sizeof_;
20619 main ()
20621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20622 test_array [0] = 0
20625 return 0;
20627 _ACEOF
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20633 esac
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_compile") 2>conftest.er1
20636 ac_status=$?
20637 grep -v '^ *+' conftest.er1 >conftest.err
20638 rm -f conftest.er1
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } && {
20642 test -z "$ac_c_werror_flag" ||
20643 test ! -s conftest.err
20644 } && test -s conftest.$ac_objext; then
20645 ac_lo=0 ac_mid=0
20646 while :; do
20647 cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h. */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 $ac_includes_default
20654 typedef unsigned short ac__type_sizeof_;
20656 main ()
20658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20659 test_array [0] = 0
20662 return 0;
20664 _ACEOF
20665 rm -f conftest.$ac_objext
20666 if { (ac_try="$ac_compile"
20667 case "(($ac_try" in
20668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20669 *) ac_try_echo=$ac_try;;
20670 esac
20671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20672 (eval "$ac_compile") 2>conftest.er1
20673 ac_status=$?
20674 grep -v '^ *+' conftest.er1 >conftest.err
20675 rm -f conftest.er1
20676 cat conftest.err >&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); } && {
20679 test -z "$ac_c_werror_flag" ||
20680 test ! -s conftest.err
20681 } && test -s conftest.$ac_objext; then
20682 ac_hi=$ac_mid; break
20683 else
20684 echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20687 ac_lo=`expr $ac_mid + 1`
20688 if test $ac_lo -le $ac_mid; then
20689 ac_lo= ac_hi=
20690 break
20692 ac_mid=`expr 2 '*' $ac_mid + 1`
20695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696 done
20697 else
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20701 cat >conftest.$ac_ext <<_ACEOF
20702 /* confdefs.h. */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 $ac_includes_default
20708 typedef unsigned short ac__type_sizeof_;
20710 main ()
20712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20713 test_array [0] = 0
20716 return 0;
20718 _ACEOF
20719 rm -f conftest.$ac_objext
20720 if { (ac_try="$ac_compile"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_compile") 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest.$ac_objext; then
20736 ac_hi=-1 ac_mid=-1
20737 while :; do
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 $ac_includes_default
20745 typedef unsigned short ac__type_sizeof_;
20747 main ()
20749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20750 test_array [0] = 0
20753 return 0;
20755 _ACEOF
20756 rm -f conftest.$ac_objext
20757 if { (ac_try="$ac_compile"
20758 case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20761 esac
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763 (eval "$ac_compile") 2>conftest.er1
20764 ac_status=$?
20765 grep -v '^ *+' conftest.er1 >conftest.err
20766 rm -f conftest.er1
20767 cat conftest.err >&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } && {
20770 test -z "$ac_c_werror_flag" ||
20771 test ! -s conftest.err
20772 } && test -s conftest.$ac_objext; then
20773 ac_lo=$ac_mid; break
20774 else
20775 echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20778 ac_hi=`expr '(' $ac_mid ')' - 1`
20779 if test $ac_mid -le $ac_hi; then
20780 ac_lo= ac_hi=
20781 break
20783 ac_mid=`expr 2 '*' $ac_mid`
20786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20787 done
20788 else
20789 echo "$as_me: failed program was:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20792 ac_lo= ac_hi=
20795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20799 # Binary search between lo and hi bounds.
20800 while test "x$ac_lo" != "x$ac_hi"; do
20801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20802 cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h. */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 $ac_includes_default
20809 typedef unsigned short ac__type_sizeof_;
20811 main ()
20813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20814 test_array [0] = 0
20817 return 0;
20819 _ACEOF
20820 rm -f conftest.$ac_objext
20821 if { (ac_try="$ac_compile"
20822 case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20825 esac
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_compile") 2>conftest.er1
20828 ac_status=$?
20829 grep -v '^ *+' conftest.er1 >conftest.err
20830 rm -f conftest.er1
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } && {
20834 test -z "$ac_c_werror_flag" ||
20835 test ! -s conftest.err
20836 } && test -s conftest.$ac_objext; then
20837 ac_hi=$ac_mid
20838 else
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 ac_lo=`expr '(' $ac_mid ')' + 1`
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 done
20847 case $ac_lo in
20848 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
20849 '') if test "$ac_cv_type_unsigned_short" = yes; then
20850 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
20851 See \`config.log' for more details." >&5
20852 echo "$as_me: error: cannot compute sizeof (unsigned short)
20853 See \`config.log' for more details." >&2;}
20854 { (exit 77); exit 77; }; }
20855 else
20856 ac_cv_sizeof_unsigned_short=0
20857 fi ;;
20858 esac
20859 else
20860 cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h. */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20866 $ac_includes_default
20867 typedef unsigned short ac__type_sizeof_;
20868 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20869 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20870 #include <stdio.h>
20871 #include <stdlib.h>
20873 main ()
20876 FILE *f = fopen ("conftest.val", "w");
20877 if (! f)
20878 return 1;
20879 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20881 long int i = longval ();
20882 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20883 return 1;
20884 fprintf (f, "%ld\n", i);
20886 else
20888 unsigned long int i = ulongval ();
20889 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20890 return 1;
20891 fprintf (f, "%lu\n", i);
20893 return ferror (f) || fclose (f) != 0;
20896 return 0;
20898 _ACEOF
20899 rm -f conftest$ac_exeext
20900 if { (ac_try="$ac_link"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_link") 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20910 { (case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20913 esac
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_try") 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 ac_cv_sizeof_unsigned_short=`cat conftest.val`
20920 else
20921 echo "$as_me: program exited with status $ac_status" >&5
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 ( exit $ac_status )
20926 if test "$ac_cv_type_unsigned_short" = yes; then
20927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
20928 See \`config.log' for more details." >&5
20929 echo "$as_me: error: cannot compute sizeof (unsigned short)
20930 See \`config.log' for more details." >&2;}
20931 { (exit 77); exit 77; }; }
20932 else
20933 ac_cv_sizeof_unsigned_short=0
20936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20938 rm -f conftest.val
20940 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
20941 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
20945 cat >>confdefs.h <<_ACEOF
20946 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20947 _ACEOF
20950 { echo "$as_me:$LINENO: checking for unsigned int" >&5
20951 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
20952 if test "${ac_cv_type_unsigned_int+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 else
20955 cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h. */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 $ac_includes_default
20962 typedef unsigned int ac__type_new_;
20964 main ()
20966 if ((ac__type_new_ *) 0)
20967 return 0;
20968 if (sizeof (ac__type_new_))
20969 return 0;
20971 return 0;
20973 _ACEOF
20974 rm -f conftest.$ac_objext
20975 if { (ac_try="$ac_compile"
20976 case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20979 esac
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_compile") 2>conftest.er1
20982 ac_status=$?
20983 grep -v '^ *+' conftest.er1 >conftest.err
20984 rm -f conftest.er1
20985 cat conftest.err >&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } && {
20988 test -z "$ac_c_werror_flag" ||
20989 test ! -s conftest.err
20990 } && test -s conftest.$ac_objext; then
20991 ac_cv_type_unsigned_int=yes
20992 else
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20996 ac_cv_type_unsigned_int=no
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21001 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
21002 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
21004 # The cast to long int works around a bug in the HP C Compiler
21005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21007 # This bug is HP SR number 8606223364.
21008 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
21009 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
21010 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21012 else
21013 if test "$cross_compiling" = yes; then
21014 # Depending upon the size, compute the lo and hi bounds.
21015 cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h. */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 $ac_includes_default
21022 typedef unsigned int ac__type_sizeof_;
21024 main ()
21026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21027 test_array [0] = 0
21030 return 0;
21032 _ACEOF
21033 rm -f conftest.$ac_objext
21034 if { (ac_try="$ac_compile"
21035 case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21038 esac
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_compile") 2>conftest.er1
21041 ac_status=$?
21042 grep -v '^ *+' conftest.er1 >conftest.err
21043 rm -f conftest.er1
21044 cat conftest.err >&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } && {
21047 test -z "$ac_c_werror_flag" ||
21048 test ! -s conftest.err
21049 } && test -s conftest.$ac_objext; then
21050 ac_lo=0 ac_mid=0
21051 while :; do
21052 cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h. */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 $ac_includes_default
21059 typedef unsigned int ac__type_sizeof_;
21061 main ()
21063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21064 test_array [0] = 0
21067 return 0;
21069 _ACEOF
21070 rm -f conftest.$ac_objext
21071 if { (ac_try="$ac_compile"
21072 case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_compile") 2>conftest.er1
21078 ac_status=$?
21079 grep -v '^ *+' conftest.er1 >conftest.err
21080 rm -f conftest.er1
21081 cat conftest.err >&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } && {
21084 test -z "$ac_c_werror_flag" ||
21085 test ! -s conftest.err
21086 } && test -s conftest.$ac_objext; then
21087 ac_hi=$ac_mid; break
21088 else
21089 echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21092 ac_lo=`expr $ac_mid + 1`
21093 if test $ac_lo -le $ac_mid; then
21094 ac_lo= ac_hi=
21095 break
21097 ac_mid=`expr 2 '*' $ac_mid + 1`
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101 done
21102 else
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 cat >conftest.$ac_ext <<_ACEOF
21107 /* confdefs.h. */
21108 _ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21112 $ac_includes_default
21113 typedef unsigned int ac__type_sizeof_;
21115 main ()
21117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21118 test_array [0] = 0
21121 return 0;
21123 _ACEOF
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_compile") 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && {
21138 test -z "$ac_c_werror_flag" ||
21139 test ! -s conftest.err
21140 } && test -s conftest.$ac_objext; then
21141 ac_hi=-1 ac_mid=-1
21142 while :; do
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h. */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 $ac_includes_default
21150 typedef unsigned int ac__type_sizeof_;
21152 main ()
21154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21155 test_array [0] = 0
21158 return 0;
21160 _ACEOF
21161 rm -f conftest.$ac_objext
21162 if { (ac_try="$ac_compile"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_compile") 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest.$ac_objext; then
21178 ac_lo=$ac_mid; break
21179 else
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ac_hi=`expr '(' $ac_mid ')' - 1`
21184 if test $ac_mid -le $ac_hi; then
21185 ac_lo= ac_hi=
21186 break
21188 ac_mid=`expr 2 '*' $ac_mid`
21191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21192 done
21193 else
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 ac_lo= ac_hi=
21200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21204 # Binary search between lo and hi bounds.
21205 while test "x$ac_lo" != "x$ac_hi"; do
21206 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21207 cat >conftest.$ac_ext <<_ACEOF
21208 /* confdefs.h. */
21209 _ACEOF
21210 cat confdefs.h >>conftest.$ac_ext
21211 cat >>conftest.$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21213 $ac_includes_default
21214 typedef unsigned int ac__type_sizeof_;
21216 main ()
21218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21219 test_array [0] = 0
21222 return 0;
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_compile") 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } && {
21239 test -z "$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest.$ac_objext; then
21242 ac_hi=$ac_mid
21243 else
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 ac_lo=`expr '(' $ac_mid ')' + 1`
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21251 done
21252 case $ac_lo in
21253 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
21254 '') if test "$ac_cv_type_unsigned_int" = yes; then
21255 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
21256 See \`config.log' for more details." >&5
21257 echo "$as_me: error: cannot compute sizeof (unsigned int)
21258 See \`config.log' for more details." >&2;}
21259 { (exit 77); exit 77; }; }
21260 else
21261 ac_cv_sizeof_unsigned_int=0
21262 fi ;;
21263 esac
21264 else
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h. */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 $ac_includes_default
21272 typedef unsigned int ac__type_sizeof_;
21273 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21274 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21275 #include <stdio.h>
21276 #include <stdlib.h>
21278 main ()
21281 FILE *f = fopen ("conftest.val", "w");
21282 if (! f)
21283 return 1;
21284 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21286 long int i = longval ();
21287 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21288 return 1;
21289 fprintf (f, "%ld\n", i);
21291 else
21293 unsigned long int i = ulongval ();
21294 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21295 return 1;
21296 fprintf (f, "%lu\n", i);
21298 return ferror (f) || fclose (f) != 0;
21301 return 0;
21303 _ACEOF
21304 rm -f conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_link") 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21315 { (case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_try") 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324 ac_cv_sizeof_unsigned_int=`cat conftest.val`
21325 else
21326 echo "$as_me: program exited with status $ac_status" >&5
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ( exit $ac_status )
21331 if test "$ac_cv_type_unsigned_int" = yes; then
21332 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
21333 See \`config.log' for more details." >&5
21334 echo "$as_me: error: cannot compute sizeof (unsigned int)
21335 See \`config.log' for more details." >&2;}
21336 { (exit 77); exit 77; }; }
21337 else
21338 ac_cv_sizeof_unsigned_int=0
21341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21343 rm -f conftest.val
21345 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
21346 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
21350 cat >>confdefs.h <<_ACEOF
21351 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21352 _ACEOF
21355 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
21356 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
21357 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
21358 echo $ECHO_N "(cached) $ECHO_C" >&6
21359 else
21360 cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h. */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366 $ac_includes_default
21367 typedef unsigned long long ac__type_new_;
21369 main ()
21371 if ((ac__type_new_ *) 0)
21372 return 0;
21373 if (sizeof (ac__type_new_))
21374 return 0;
21376 return 0;
21378 _ACEOF
21379 rm -f conftest.$ac_objext
21380 if { (ac_try="$ac_compile"
21381 case "(($ac_try" in
21382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383 *) ac_try_echo=$ac_try;;
21384 esac
21385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21386 (eval "$ac_compile") 2>conftest.er1
21387 ac_status=$?
21388 grep -v '^ *+' conftest.er1 >conftest.err
21389 rm -f conftest.er1
21390 cat conftest.err >&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } && {
21393 test -z "$ac_c_werror_flag" ||
21394 test ! -s conftest.err
21395 } && test -s conftest.$ac_objext; then
21396 ac_cv_type_unsigned_long_long=yes
21397 else
21398 echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 ac_cv_type_unsigned_long_long=no
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21406 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
21407 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
21409 # The cast to long int works around a bug in the HP C Compiler
21410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21412 # This bug is HP SR number 8606223364.
21413 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
21414 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
21415 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
21417 else
21418 if test "$cross_compiling" = yes; then
21419 # Depending upon the size, compute the lo and hi bounds.
21420 cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h. */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 $ac_includes_default
21427 typedef unsigned long long ac__type_sizeof_;
21429 main ()
21431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21432 test_array [0] = 0
21435 return 0;
21437 _ACEOF
21438 rm -f conftest.$ac_objext
21439 if { (ac_try="$ac_compile"
21440 case "(($ac_try" in
21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21443 esac
21444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval "$ac_compile") 2>conftest.er1
21446 ac_status=$?
21447 grep -v '^ *+' conftest.er1 >conftest.err
21448 rm -f conftest.er1
21449 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && {
21452 test -z "$ac_c_werror_flag" ||
21453 test ! -s conftest.err
21454 } && test -s conftest.$ac_objext; then
21455 ac_lo=0 ac_mid=0
21456 while :; do
21457 cat >conftest.$ac_ext <<_ACEOF
21458 /* confdefs.h. */
21459 _ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h. */
21463 $ac_includes_default
21464 typedef unsigned long long ac__type_sizeof_;
21466 main ()
21468 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21469 test_array [0] = 0
21472 return 0;
21474 _ACEOF
21475 rm -f conftest.$ac_objext
21476 if { (ac_try="$ac_compile"
21477 case "(($ac_try" in
21478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479 *) ac_try_echo=$ac_try;;
21480 esac
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482 (eval "$ac_compile") 2>conftest.er1
21483 ac_status=$?
21484 grep -v '^ *+' conftest.er1 >conftest.err
21485 rm -f conftest.er1
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } && {
21489 test -z "$ac_c_werror_flag" ||
21490 test ! -s conftest.err
21491 } && test -s conftest.$ac_objext; then
21492 ac_hi=$ac_mid; break
21493 else
21494 echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21497 ac_lo=`expr $ac_mid + 1`
21498 if test $ac_lo -le $ac_mid; then
21499 ac_lo= ac_hi=
21500 break
21502 ac_mid=`expr 2 '*' $ac_mid + 1`
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506 done
21507 else
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21511 cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h. */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21517 $ac_includes_default
21518 typedef unsigned long long ac__type_sizeof_;
21520 main ()
21522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21523 test_array [0] = 0
21526 return 0;
21528 _ACEOF
21529 rm -f conftest.$ac_objext
21530 if { (ac_try="$ac_compile"
21531 case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21534 esac
21535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_compile") 2>conftest.er1
21537 ac_status=$?
21538 grep -v '^ *+' conftest.er1 >conftest.err
21539 rm -f conftest.er1
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } && {
21543 test -z "$ac_c_werror_flag" ||
21544 test ! -s conftest.err
21545 } && test -s conftest.$ac_objext; then
21546 ac_hi=-1 ac_mid=-1
21547 while :; do
21548 cat >conftest.$ac_ext <<_ACEOF
21549 /* confdefs.h. */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 $ac_includes_default
21555 typedef unsigned long long ac__type_sizeof_;
21557 main ()
21559 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21560 test_array [0] = 0
21563 return 0;
21565 _ACEOF
21566 rm -f conftest.$ac_objext
21567 if { (ac_try="$ac_compile"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21571 esac
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_compile") 2>conftest.er1
21574 ac_status=$?
21575 grep -v '^ *+' conftest.er1 >conftest.err
21576 rm -f conftest.er1
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } && {
21580 test -z "$ac_c_werror_flag" ||
21581 test ! -s conftest.err
21582 } && test -s conftest.$ac_objext; then
21583 ac_lo=$ac_mid; break
21584 else
21585 echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 ac_hi=`expr '(' $ac_mid ')' - 1`
21589 if test $ac_mid -le $ac_hi; then
21590 ac_lo= ac_hi=
21591 break
21593 ac_mid=`expr 2 '*' $ac_mid`
21596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597 done
21598 else
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21602 ac_lo= ac_hi=
21605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21609 # Binary search between lo and hi bounds.
21610 while test "x$ac_lo" != "x$ac_hi"; do
21611 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21612 cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h. */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 $ac_includes_default
21619 typedef unsigned long long ac__type_sizeof_;
21621 main ()
21623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21624 test_array [0] = 0
21627 return 0;
21629 _ACEOF
21630 rm -f conftest.$ac_objext
21631 if { (ac_try="$ac_compile"
21632 case "(($ac_try" in
21633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21634 *) ac_try_echo=$ac_try;;
21635 esac
21636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637 (eval "$ac_compile") 2>conftest.er1
21638 ac_status=$?
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } && {
21644 test -z "$ac_c_werror_flag" ||
21645 test ! -s conftest.err
21646 } && test -s conftest.$ac_objext; then
21647 ac_hi=$ac_mid
21648 else
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 ac_lo=`expr '(' $ac_mid ')' + 1`
21655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21656 done
21657 case $ac_lo in
21658 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
21659 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
21660 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
21661 See \`config.log' for more details." >&5
21662 echo "$as_me: error: cannot compute sizeof (unsigned long long)
21663 See \`config.log' for more details." >&2;}
21664 { (exit 77); exit 77; }; }
21665 else
21666 ac_cv_sizeof_unsigned_long_long=0
21667 fi ;;
21668 esac
21669 else
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h. */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 typedef unsigned long long ac__type_sizeof_;
21678 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21679 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21680 #include <stdio.h>
21681 #include <stdlib.h>
21683 main ()
21686 FILE *f = fopen ("conftest.val", "w");
21687 if (! f)
21688 return 1;
21689 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21691 long int i = longval ();
21692 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21693 return 1;
21694 fprintf (f, "%ld\n", i);
21696 else
21698 unsigned long int i = ulongval ();
21699 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21700 return 1;
21701 fprintf (f, "%lu\n", i);
21703 return ferror (f) || fclose (f) != 0;
21706 return 0;
21708 _ACEOF
21709 rm -f conftest$ac_exeext
21710 if { (ac_try="$ac_link"
21711 case "(($ac_try" in
21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21714 esac
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716 (eval "$ac_link") 2>&5
21717 ac_status=$?
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21720 { (case "(($ac_try" in
21721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722 *) ac_try_echo=$ac_try;;
21723 esac
21724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_try") 2>&5
21726 ac_status=$?
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21729 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
21730 else
21731 echo "$as_me: program exited with status $ac_status" >&5
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21735 ( exit $ac_status )
21736 if test "$ac_cv_type_unsigned_long_long" = yes; then
21737 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
21738 See \`config.log' for more details." >&5
21739 echo "$as_me: error: cannot compute sizeof (unsigned long long)
21740 See \`config.log' for more details." >&2;}
21741 { (exit 77); exit 77; }; }
21742 else
21743 ac_cv_sizeof_unsigned_long_long=0
21746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21748 rm -f conftest.val
21750 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
21751 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
21755 cat >>confdefs.h <<_ACEOF
21756 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21757 _ACEOF
21761 # Checks for library functions.
21762 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21764 if test "${ac_cv_header_stdc+set}" = set; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21766 else
21767 cat >conftest.$ac_ext <<_ACEOF
21768 /* confdefs.h. */
21769 _ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h. */
21773 #include <stdlib.h>
21774 #include <stdarg.h>
21775 #include <string.h>
21776 #include <float.h>
21779 main ()
21783 return 0;
21785 _ACEOF
21786 rm -f conftest.$ac_objext
21787 if { (ac_try="$ac_compile"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21791 esac
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_compile") 2>conftest.er1
21794 ac_status=$?
21795 grep -v '^ *+' conftest.er1 >conftest.err
21796 rm -f conftest.er1
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && {
21800 test -z "$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 } && test -s conftest.$ac_objext; then
21803 ac_cv_header_stdc=yes
21804 else
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 ac_cv_header_stdc=no
21811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21813 if test $ac_cv_header_stdc = yes; then
21814 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21815 cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h. */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 #include <string.h>
21823 _ACEOF
21824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21825 $EGREP "memchr" >/dev/null 2>&1; then
21827 else
21828 ac_cv_header_stdc=no
21830 rm -f conftest*
21834 if test $ac_cv_header_stdc = yes; then
21835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21836 cat >conftest.$ac_ext <<_ACEOF
21837 /* confdefs.h. */
21838 _ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21842 #include <stdlib.h>
21844 _ACEOF
21845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21846 $EGREP "free" >/dev/null 2>&1; then
21848 else
21849 ac_cv_header_stdc=no
21851 rm -f conftest*
21855 if test $ac_cv_header_stdc = yes; then
21856 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21857 if test "$cross_compiling" = yes; then
21859 else
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h. */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 #include <ctype.h>
21867 #include <stdlib.h>
21868 #if ((' ' & 0x0FF) == 0x020)
21869 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21870 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21871 #else
21872 # define ISLOWER(c) \
21873 (('a' <= (c) && (c) <= 'i') \
21874 || ('j' <= (c) && (c) <= 'r') \
21875 || ('s' <= (c) && (c) <= 'z'))
21876 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21877 #endif
21879 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21881 main ()
21883 int i;
21884 for (i = 0; i < 256; i++)
21885 if (XOR (islower (i), ISLOWER (i))
21886 || toupper (i) != TOUPPER (i))
21887 return 2;
21888 return 0;
21890 _ACEOF
21891 rm -f conftest$ac_exeext
21892 if { (ac_try="$ac_link"
21893 case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21896 esac
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898 (eval "$ac_link") 2>&5
21899 ac_status=$?
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21902 { (case "(($ac_try" in
21903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904 *) ac_try_echo=$ac_try;;
21905 esac
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907 (eval "$ac_try") 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; }; then
21912 else
21913 echo "$as_me: program exited with status $ac_status" >&5
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21917 ( exit $ac_status )
21918 ac_cv_header_stdc=no
21920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21926 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21927 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21928 if test $ac_cv_header_stdc = yes; then
21930 cat >>confdefs.h <<\_ACEOF
21931 #define STDC_HEADERS 1
21932 _ACEOF
21939 for ac_func in memset socket strerror
21941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21946 else
21947 cat >conftest.$ac_ext <<_ACEOF
21948 /* confdefs.h. */
21949 _ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21955 #define $ac_func innocuous_$ac_func
21957 /* System header to define __stub macros and hopefully few prototypes,
21958 which can conflict with char $ac_func (); below.
21959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21960 <limits.h> exists even on freestanding compilers. */
21962 #ifdef __STDC__
21963 # include <limits.h>
21964 #else
21965 # include <assert.h>
21966 #endif
21968 #undef $ac_func
21970 /* Override any GCC internal prototype to avoid an error.
21971 Use char because int might match the return type of a GCC
21972 builtin and then its argument prototype would still apply. */
21973 #ifdef __cplusplus
21974 extern "C"
21975 #endif
21976 char $ac_func ();
21977 /* The GNU C library defines this for functions which it implements
21978 to always fail with ENOSYS. Some functions are actually named
21979 something starting with __ and the normal name is an alias. */
21980 #if defined __stub_$ac_func || defined __stub___$ac_func
21981 choke me
21982 #endif
21985 main ()
21987 return $ac_func ();
21989 return 0;
21991 _ACEOF
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21997 esac
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_link") 2>conftest.er1
22000 ac_status=$?
22001 grep -v '^ *+' conftest.er1 >conftest.err
22002 rm -f conftest.er1
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } && {
22006 test -z "$ac_c_werror_flag" ||
22007 test ! -s conftest.err
22008 } && test -s conftest$ac_exeext &&
22009 $as_test_x conftest$ac_exeext; then
22010 eval "$as_ac_var=yes"
22011 else
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22015 eval "$as_ac_var=no"
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019 conftest$ac_exeext conftest.$ac_ext
22021 ac_res=`eval echo '${'$as_ac_var'}'`
22022 { echo "$as_me:$LINENO: result: $ac_res" >&5
22023 echo "${ECHO_T}$ac_res" >&6; }
22024 if test `eval echo '${'$as_ac_var'}'` = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22027 _ACEOF
22030 done
22033 ac_config_files="$ac_config_files Makefile src/simple_comm.pc src/Makefile"
22035 cat >confcache <<\_ACEOF
22036 # This file is a shell script that caches the results of configure
22037 # tests run on this system so they can be shared between configure
22038 # scripts and configure runs, see configure's option --config-cache.
22039 # It is not useful on other systems. If it contains results you don't
22040 # want to keep, you may remove or edit it.
22042 # config.status only pays attention to the cache file if you give it
22043 # the --recheck option to rerun configure.
22045 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22046 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22047 # following values.
22049 _ACEOF
22051 # The following way of writing the cache mishandles newlines in values,
22052 # but we know of no workaround that is simple, portable, and efficient.
22053 # So, we kill variables containing newlines.
22054 # Ultrix sh set writes to stderr and can't be redirected directly,
22055 # and sets the high bit in the cache file unless we assign to the vars.
22057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22058 eval ac_val=\$$ac_var
22059 case $ac_val in #(
22060 *${as_nl}*)
22061 case $ac_var in #(
22062 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22063 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22064 esac
22065 case $ac_var in #(
22066 _ | IFS | as_nl) ;; #(
22067 *) $as_unset $ac_var ;;
22068 esac ;;
22069 esac
22070 done
22072 (set) 2>&1 |
22073 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22074 *${as_nl}ac_space=\ *)
22075 # `set' does not quote correctly, so add quotes (double-quote
22076 # substitution turns \\\\ into \\, and sed turns \\ into \).
22077 sed -n \
22078 "s/'/'\\\\''/g;
22079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22080 ;; #(
22082 # `set' quotes correctly as required by POSIX, so do not add quotes.
22083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22085 esac |
22086 sort
22088 sed '
22089 /^ac_cv_env_/b end
22090 t clear
22091 :clear
22092 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22093 t end
22094 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22095 :end' >>confcache
22096 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22097 if test -w "$cache_file"; then
22098 test "x$cache_file" != "x/dev/null" &&
22099 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22100 echo "$as_me: updating cache $cache_file" >&6;}
22101 cat confcache >$cache_file
22102 else
22103 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22104 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22107 rm -f confcache
22109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22110 # Let make expand exec_prefix.
22111 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22113 DEFS=-DHAVE_CONFIG_H
22115 ac_libobjs=
22116 ac_ltlibobjs=
22117 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22118 # 1. Remove the extension, and $U if already installed.
22119 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22120 ac_i=`echo "$ac_i" | sed "$ac_script"`
22121 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22122 # will be set to the directory where LIBOBJS objects are built.
22123 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22124 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22125 done
22126 LIBOBJS=$ac_libobjs
22128 LTLIBOBJS=$ac_ltlibobjs
22131 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22132 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22133 Usually this means the macro was only invoked conditionally." >&5
22134 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22135 Usually this means the macro was only invoked conditionally." >&2;}
22136 { (exit 1); exit 1; }; }
22138 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22139 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22140 Usually this means the macro was only invoked conditionally." >&5
22141 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22142 Usually this means the macro was only invoked conditionally." >&2;}
22143 { (exit 1); exit 1; }; }
22145 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22146 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22147 Usually this means the macro was only invoked conditionally." >&5
22148 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22149 Usually this means the macro was only invoked conditionally." >&2;}
22150 { (exit 1); exit 1; }; }
22153 : ${CONFIG_STATUS=./config.status}
22154 ac_clean_files_save=$ac_clean_files
22155 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22156 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22157 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22158 cat >$CONFIG_STATUS <<_ACEOF
22159 #! $SHELL
22160 # Generated by $as_me.
22161 # Run this file to recreate the current configuration.
22162 # Compiler output produced by configure, useful for debugging
22163 # configure, is in config.log if it exists.
22165 debug=false
22166 ac_cs_recheck=false
22167 ac_cs_silent=false
22168 SHELL=\${CONFIG_SHELL-$SHELL}
22169 _ACEOF
22171 cat >>$CONFIG_STATUS <<\_ACEOF
22172 ## --------------------- ##
22173 ## M4sh Initialization. ##
22174 ## --------------------- ##
22176 # Be more Bourne compatible
22177 DUALCASE=1; export DUALCASE # for MKS sh
22178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22179 emulate sh
22180 NULLCMD=:
22181 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22182 # is contrary to our usage. Disable this feature.
22183 alias -g '${1+"$@"}'='"$@"'
22184 setopt NO_GLOB_SUBST
22185 else
22186 case `(set -o) 2>/dev/null` in
22187 *posix*) set -o posix ;;
22188 esac
22195 # PATH needs CR
22196 # Avoid depending upon Character Ranges.
22197 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22198 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22199 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22200 as_cr_digits='0123456789'
22201 as_cr_alnum=$as_cr_Letters$as_cr_digits
22203 # The user is always right.
22204 if test "${PATH_SEPARATOR+set}" != set; then
22205 echo "#! /bin/sh" >conf$$.sh
22206 echo "exit 0" >>conf$$.sh
22207 chmod +x conf$$.sh
22208 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22209 PATH_SEPARATOR=';'
22210 else
22211 PATH_SEPARATOR=:
22213 rm -f conf$$.sh
22216 # Support unset when possible.
22217 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22218 as_unset=unset
22219 else
22220 as_unset=false
22224 # IFS
22225 # We need space, tab and new line, in precisely that order. Quoting is
22226 # there to prevent editors from complaining about space-tab.
22227 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22228 # splitting by setting IFS to empty value.)
22229 as_nl='
22231 IFS=" "" $as_nl"
22233 # Find who we are. Look in the path if we contain no directory separator.
22234 case $0 in
22235 *[\\/]* ) as_myself=$0 ;;
22236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22237 for as_dir in $PATH
22239 IFS=$as_save_IFS
22240 test -z "$as_dir" && as_dir=.
22241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22242 done
22243 IFS=$as_save_IFS
22246 esac
22247 # We did not find ourselves, most probably we were run as `sh COMMAND'
22248 # in which case we are not to be found in the path.
22249 if test "x$as_myself" = x; then
22250 as_myself=$0
22252 if test ! -f "$as_myself"; then
22253 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22254 { (exit 1); exit 1; }
22257 # Work around bugs in pre-3.0 UWIN ksh.
22258 for as_var in ENV MAIL MAILPATH
22259 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22260 done
22261 PS1='$ '
22262 PS2='> '
22263 PS4='+ '
22265 # NLS nuisances.
22266 for as_var in \
22267 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22268 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22269 LC_TELEPHONE LC_TIME
22271 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22272 eval $as_var=C; export $as_var
22273 else
22274 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22276 done
22278 # Required to use basename.
22279 if expr a : '\(a\)' >/dev/null 2>&1 &&
22280 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22281 as_expr=expr
22282 else
22283 as_expr=false
22286 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22287 as_basename=basename
22288 else
22289 as_basename=false
22293 # Name of the executable.
22294 as_me=`$as_basename -- "$0" ||
22295 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22296 X"$0" : 'X\(//\)$' \| \
22297 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22298 echo X/"$0" |
22299 sed '/^.*\/\([^/][^/]*\)\/*$/{
22300 s//\1/
22303 /^X\/\(\/\/\)$/{
22304 s//\1/
22307 /^X\/\(\/\).*/{
22308 s//\1/
22311 s/.*/./; q'`
22313 # CDPATH.
22314 $as_unset CDPATH
22318 as_lineno_1=$LINENO
22319 as_lineno_2=$LINENO
22320 test "x$as_lineno_1" != "x$as_lineno_2" &&
22321 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22323 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22324 # uniformly replaced by the line number. The first 'sed' inserts a
22325 # line-number line after each line using $LINENO; the second 'sed'
22326 # does the real work. The second script uses 'N' to pair each
22327 # line-number line with the line containing $LINENO, and appends
22328 # trailing '-' during substitution so that $LINENO is not a special
22329 # case at line end.
22330 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22331 # scripts with optimization help from Paolo Bonzini. Blame Lee
22332 # E. McMahon (1931-1989) for sed's syntax. :-)
22333 sed -n '
22335 /[$]LINENO/=
22336 ' <$as_myself |
22337 sed '
22338 s/[$]LINENO.*/&-/
22339 t lineno
22341 :lineno
22343 :loop
22344 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22345 t loop
22346 s/-\n.*//
22347 ' >$as_me.lineno &&
22348 chmod +x "$as_me.lineno" ||
22349 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22350 { (exit 1); exit 1; }; }
22352 # Don't try to exec as it changes $[0], causing all sort of problems
22353 # (the dirname of $[0] is not the place where we might find the
22354 # original and so on. Autoconf is especially sensitive to this).
22355 . "./$as_me.lineno"
22356 # Exit status is that of the last command.
22357 exit
22361 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22362 as_dirname=dirname
22363 else
22364 as_dirname=false
22367 ECHO_C= ECHO_N= ECHO_T=
22368 case `echo -n x` in
22369 -n*)
22370 case `echo 'x\c'` in
22371 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22372 *) ECHO_C='\c';;
22373 esac;;
22375 ECHO_N='-n';;
22376 esac
22378 if expr a : '\(a\)' >/dev/null 2>&1 &&
22379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22380 as_expr=expr
22381 else
22382 as_expr=false
22385 rm -f conf$$ conf$$.exe conf$$.file
22386 if test -d conf$$.dir; then
22387 rm -f conf$$.dir/conf$$.file
22388 else
22389 rm -f conf$$.dir
22390 mkdir conf$$.dir
22392 echo >conf$$.file
22393 if ln -s conf$$.file conf$$ 2>/dev/null; then
22394 as_ln_s='ln -s'
22395 # ... but there are two gotchas:
22396 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22397 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22398 # In both cases, we have to default to `cp -p'.
22399 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22400 as_ln_s='cp -p'
22401 elif ln conf$$.file conf$$ 2>/dev/null; then
22402 as_ln_s=ln
22403 else
22404 as_ln_s='cp -p'
22406 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22407 rmdir conf$$.dir 2>/dev/null
22409 if mkdir -p . 2>/dev/null; then
22410 as_mkdir_p=:
22411 else
22412 test -d ./-p && rmdir ./-p
22413 as_mkdir_p=false
22416 if test -x / >/dev/null 2>&1; then
22417 as_test_x='test -x'
22418 else
22419 if ls -dL / >/dev/null 2>&1; then
22420 as_ls_L_option=L
22421 else
22422 as_ls_L_option=
22424 as_test_x='
22425 eval sh -c '\''
22426 if test -d "$1"; then
22427 test -d "$1/.";
22428 else
22429 case $1 in
22430 -*)set "./$1";;
22431 esac;
22432 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22433 ???[sx]*):;;*)false;;esac;fi
22434 '\'' sh
22437 as_executable_p=$as_test_x
22439 # Sed expression to map a string onto a valid CPP name.
22440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22442 # Sed expression to map a string onto a valid variable name.
22443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22446 exec 6>&1
22448 # Save the log message, to keep $[0] and so on meaningful, and to
22449 # report actual input values of CONFIG_FILES etc. instead of their
22450 # values after options handling.
22451 ac_log="
22452 This file was extended by simple-comm $as_me 0.1, which was
22453 generated by GNU Autoconf 2.61. Invocation command line was
22455 CONFIG_FILES = $CONFIG_FILES
22456 CONFIG_HEADERS = $CONFIG_HEADERS
22457 CONFIG_LINKS = $CONFIG_LINKS
22458 CONFIG_COMMANDS = $CONFIG_COMMANDS
22459 $ $0 $@
22461 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22464 _ACEOF
22466 cat >>$CONFIG_STATUS <<_ACEOF
22467 # Files that config.status was made for.
22468 config_files="$ac_config_files"
22469 config_headers="$ac_config_headers"
22470 config_commands="$ac_config_commands"
22472 _ACEOF
22474 cat >>$CONFIG_STATUS <<\_ACEOF
22475 ac_cs_usage="\
22476 \`$as_me' instantiates files from templates according to the
22477 current configuration.
22479 Usage: $0 [OPTIONS] [FILE]...
22481 -h, --help print this help, then exit
22482 -V, --version print version number and configuration settings, then exit
22483 -q, --quiet do not print progress messages
22484 -d, --debug don't remove temporary files
22485 --recheck update $as_me by reconfiguring in the same conditions
22486 --file=FILE[:TEMPLATE]
22487 instantiate the configuration file FILE
22488 --header=FILE[:TEMPLATE]
22489 instantiate the configuration header FILE
22491 Configuration files:
22492 $config_files
22494 Configuration headers:
22495 $config_headers
22497 Configuration commands:
22498 $config_commands
22500 Report bugs to <bug-autoconf@gnu.org>."
22502 _ACEOF
22503 cat >>$CONFIG_STATUS <<_ACEOF
22504 ac_cs_version="\\
22505 simple-comm config.status 0.1
22506 configured by $0, generated by GNU Autoconf 2.61,
22507 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22509 Copyright (C) 2006 Free Software Foundation, Inc.
22510 This config.status script is free software; the Free Software Foundation
22511 gives unlimited permission to copy, distribute and modify it."
22513 ac_pwd='$ac_pwd'
22514 srcdir='$srcdir'
22515 INSTALL='$INSTALL'
22516 MKDIR_P='$MKDIR_P'
22517 _ACEOF
22519 cat >>$CONFIG_STATUS <<\_ACEOF
22520 # If no file are specified by the user, then we need to provide default
22521 # value. By we need to know if files were specified by the user.
22522 ac_need_defaults=:
22523 while test $# != 0
22525 case $1 in
22526 --*=*)
22527 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22528 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22529 ac_shift=:
22532 ac_option=$1
22533 ac_optarg=$2
22534 ac_shift=shift
22536 esac
22538 case $ac_option in
22539 # Handling of the options.
22540 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22541 ac_cs_recheck=: ;;
22542 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22543 echo "$ac_cs_version"; exit ;;
22544 --debug | --debu | --deb | --de | --d | -d )
22545 debug=: ;;
22546 --file | --fil | --fi | --f )
22547 $ac_shift
22548 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22549 ac_need_defaults=false;;
22550 --header | --heade | --head | --hea )
22551 $ac_shift
22552 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22553 ac_need_defaults=false;;
22554 --he | --h)
22555 # Conflict between --help and --header
22556 { echo "$as_me: error: ambiguous option: $1
22557 Try \`$0 --help' for more information." >&2
22558 { (exit 1); exit 1; }; };;
22559 --help | --hel | -h )
22560 echo "$ac_cs_usage"; exit ;;
22561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22562 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22563 ac_cs_silent=: ;;
22565 # This is an error.
22566 -*) { echo "$as_me: error: unrecognized option: $1
22567 Try \`$0 --help' for more information." >&2
22568 { (exit 1); exit 1; }; } ;;
22570 *) ac_config_targets="$ac_config_targets $1"
22571 ac_need_defaults=false ;;
22573 esac
22574 shift
22575 done
22577 ac_configure_extra_args=
22579 if $ac_cs_silent; then
22580 exec 6>/dev/null
22581 ac_configure_extra_args="$ac_configure_extra_args --silent"
22584 _ACEOF
22585 cat >>$CONFIG_STATUS <<_ACEOF
22586 if \$ac_cs_recheck; then
22587 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22588 CONFIG_SHELL=$SHELL
22589 export CONFIG_SHELL
22590 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22593 _ACEOF
22594 cat >>$CONFIG_STATUS <<\_ACEOF
22595 exec 5>>config.log
22597 echo
22598 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22599 ## Running $as_me. ##
22600 _ASBOX
22601 echo "$ac_log"
22602 } >&5
22604 _ACEOF
22605 cat >>$CONFIG_STATUS <<_ACEOF
22607 # INIT-COMMANDS
22609 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22611 _ACEOF
22613 cat >>$CONFIG_STATUS <<\_ACEOF
22615 # Handling of arguments.
22616 for ac_config_target in $ac_config_targets
22618 case $ac_config_target in
22619 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22620 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22621 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22622 "src/simple_comm.pc") CONFIG_FILES="$CONFIG_FILES src/simple_comm.pc" ;;
22623 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22625 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22626 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22627 { (exit 1); exit 1; }; };;
22628 esac
22629 done
22632 # If the user did not use the arguments to specify the items to instantiate,
22633 # then the envvar interface is used. Set only those that are not.
22634 # We use the long form for the default assignment because of an extremely
22635 # bizarre bug on SunOS 4.1.3.
22636 if $ac_need_defaults; then
22637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22642 # Have a temporary directory for convenience. Make it in the build tree
22643 # simply because there is no reason against having it here, and in addition,
22644 # creating and moving files from /tmp can sometimes cause problems.
22645 # Hook for its removal unless debugging.
22646 # Note that there is a small window in which the directory will not be cleaned:
22647 # after its creation but before its name has been assigned to `$tmp'.
22648 $debug ||
22650 tmp=
22651 trap 'exit_status=$?
22652 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22654 trap '{ (exit 1); exit 1; }' 1 2 13 15
22656 # Create a (secure) tmp directory for tmp files.
22659 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22660 test -n "$tmp" && test -d "$tmp"
22661 } ||
22663 tmp=./conf$$-$RANDOM
22664 (umask 077 && mkdir "$tmp")
22665 } ||
22667 echo "$me: cannot create a temporary directory in ." >&2
22668 { (exit 1); exit 1; }
22672 # Set up the sed scripts for CONFIG_FILES section.
22675 # No need to generate the scripts if there are no CONFIG_FILES.
22676 # This happens for instance when ./config.status config.h
22677 if test -n "$CONFIG_FILES"; then
22679 _ACEOF
22683 ac_delim='%!_!# '
22684 for ac_last_try in false false false false false :; do
22685 cat >conf$$subs.sed <<_ACEOF
22686 SHELL!$SHELL$ac_delim
22687 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22688 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22689 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22690 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22691 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22692 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22693 exec_prefix!$exec_prefix$ac_delim
22694 prefix!$prefix$ac_delim
22695 program_transform_name!$program_transform_name$ac_delim
22696 bindir!$bindir$ac_delim
22697 sbindir!$sbindir$ac_delim
22698 libexecdir!$libexecdir$ac_delim
22699 datarootdir!$datarootdir$ac_delim
22700 datadir!$datadir$ac_delim
22701 sysconfdir!$sysconfdir$ac_delim
22702 sharedstatedir!$sharedstatedir$ac_delim
22703 localstatedir!$localstatedir$ac_delim
22704 includedir!$includedir$ac_delim
22705 oldincludedir!$oldincludedir$ac_delim
22706 docdir!$docdir$ac_delim
22707 infodir!$infodir$ac_delim
22708 htmldir!$htmldir$ac_delim
22709 dvidir!$dvidir$ac_delim
22710 pdfdir!$pdfdir$ac_delim
22711 psdir!$psdir$ac_delim
22712 libdir!$libdir$ac_delim
22713 localedir!$localedir$ac_delim
22714 mandir!$mandir$ac_delim
22715 DEFS!$DEFS$ac_delim
22716 ECHO_C!$ECHO_C$ac_delim
22717 ECHO_N!$ECHO_N$ac_delim
22718 ECHO_T!$ECHO_T$ac_delim
22719 LIBS!$LIBS$ac_delim
22720 build_alias!$build_alias$ac_delim
22721 host_alias!$host_alias$ac_delim
22722 target_alias!$target_alias$ac_delim
22723 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22724 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22725 INSTALL_DATA!$INSTALL_DATA$ac_delim
22726 am__isrc!$am__isrc$ac_delim
22727 CYGPATH_W!$CYGPATH_W$ac_delim
22728 PACKAGE!$PACKAGE$ac_delim
22729 VERSION!$VERSION$ac_delim
22730 ACLOCAL!$ACLOCAL$ac_delim
22731 AUTOCONF!$AUTOCONF$ac_delim
22732 AUTOMAKE!$AUTOMAKE$ac_delim
22733 AUTOHEADER!$AUTOHEADER$ac_delim
22734 MAKEINFO!$MAKEINFO$ac_delim
22735 install_sh!$install_sh$ac_delim
22736 STRIP!$STRIP$ac_delim
22737 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22738 mkdir_p!$mkdir_p$ac_delim
22739 AWK!$AWK$ac_delim
22740 SET_MAKE!$SET_MAKE$ac_delim
22741 am__leading_dot!$am__leading_dot$ac_delim
22742 AMTAR!$AMTAR$ac_delim
22743 am__tar!$am__tar$ac_delim
22744 am__untar!$am__untar$ac_delim
22745 CXX!$CXX$ac_delim
22746 CXXFLAGS!$CXXFLAGS$ac_delim
22747 LDFLAGS!$LDFLAGS$ac_delim
22748 CPPFLAGS!$CPPFLAGS$ac_delim
22749 ac_ct_CXX!$ac_ct_CXX$ac_delim
22750 EXEEXT!$EXEEXT$ac_delim
22751 OBJEXT!$OBJEXT$ac_delim
22752 DEPDIR!$DEPDIR$ac_delim
22753 am__include!$am__include$ac_delim
22754 am__quote!$am__quote$ac_delim
22755 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22756 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22757 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22758 CXXDEPMODE!$CXXDEPMODE$ac_delim
22759 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22760 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22761 CC!$CC$ac_delim
22762 CFLAGS!$CFLAGS$ac_delim
22763 ac_ct_CC!$ac_ct_CC$ac_delim
22764 CCDEPMODE!$CCDEPMODE$ac_delim
22765 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22766 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22767 build!$build$ac_delim
22768 build_cpu!$build_cpu$ac_delim
22769 build_vendor!$build_vendor$ac_delim
22770 build_os!$build_os$ac_delim
22771 host!$host$ac_delim
22772 host_cpu!$host_cpu$ac_delim
22773 host_vendor!$host_vendor$ac_delim
22774 host_os!$host_os$ac_delim
22775 SED!$SED$ac_delim
22776 GREP!$GREP$ac_delim
22777 EGREP!$EGREP$ac_delim
22778 LN_S!$LN_S$ac_delim
22779 ECHO!$ECHO$ac_delim
22780 AR!$AR$ac_delim
22781 RANLIB!$RANLIB$ac_delim
22782 DSYMUTIL!$DSYMUTIL$ac_delim
22783 _ACEOF
22785 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22786 break
22787 elif $ac_last_try; then
22788 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22789 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22790 { (exit 1); exit 1; }; }
22791 else
22792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22794 done
22796 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22797 if test -n "$ac_eof"; then
22798 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22799 ac_eof=`expr $ac_eof + 1`
22802 cat >>$CONFIG_STATUS <<_ACEOF
22803 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22805 _ACEOF
22806 sed '
22807 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22808 s/^/s,@/; s/!/@,|#_!!_#|/
22811 s/'"$ac_delim"'$/,g/; t
22812 s/$/\\/; p
22813 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22814 ' >>$CONFIG_STATUS <conf$$subs.sed
22815 rm -f conf$$subs.sed
22816 cat >>$CONFIG_STATUS <<_ACEOF
22817 CEOF$ac_eof
22818 _ACEOF
22821 ac_delim='%!_!# '
22822 for ac_last_try in false false false false false :; do
22823 cat >conf$$subs.sed <<_ACEOF
22824 NMEDIT!$NMEDIT$ac_delim
22825 CPP!$CPP$ac_delim
22826 CXXCPP!$CXXCPP$ac_delim
22827 F77!$F77$ac_delim
22828 FFLAGS!$FFLAGS$ac_delim
22829 ac_ct_F77!$ac_ct_F77$ac_delim
22830 LIBTOOL!$LIBTOOL$ac_delim
22831 LIBOBJS!$LIBOBJS$ac_delim
22832 LTLIBOBJS!$LTLIBOBJS$ac_delim
22833 _ACEOF
22835 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
22836 break
22837 elif $ac_last_try; then
22838 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22839 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22840 { (exit 1); exit 1; }; }
22841 else
22842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22844 done
22846 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22847 if test -n "$ac_eof"; then
22848 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22849 ac_eof=`expr $ac_eof + 1`
22852 cat >>$CONFIG_STATUS <<_ACEOF
22853 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22855 _ACEOF
22856 sed '
22857 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22858 s/^/s,@/; s/!/@,|#_!!_#|/
22861 s/'"$ac_delim"'$/,g/; t
22862 s/$/\\/; p
22863 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22864 ' >>$CONFIG_STATUS <conf$$subs.sed
22865 rm -f conf$$subs.sed
22866 cat >>$CONFIG_STATUS <<_ACEOF
22867 :end
22868 s/|#_!!_#|//g
22869 CEOF$ac_eof
22870 _ACEOF
22873 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22874 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22875 # trailing colons and then remove the whole line if VPATH becomes empty
22876 # (actually we leave an empty line to preserve line numbers).
22877 if test "x$srcdir" = x.; then
22878 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22879 s/:*\$(srcdir):*/:/
22880 s/:*\${srcdir}:*/:/
22881 s/:*@srcdir@:*/:/
22882 s/^\([^=]*=[ ]*\):*/\1/
22883 s/:*$//
22884 s/^[^=]*=[ ]*$//
22888 cat >>$CONFIG_STATUS <<\_ACEOF
22889 fi # test -n "$CONFIG_FILES"
22892 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22894 case $ac_tag in
22895 :[FHLC]) ac_mode=$ac_tag; continue;;
22896 esac
22897 case $ac_mode$ac_tag in
22898 :[FHL]*:*);;
22899 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22900 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22901 { (exit 1); exit 1; }; };;
22902 :[FH]-) ac_tag=-:-;;
22903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22904 esac
22905 ac_save_IFS=$IFS
22906 IFS=:
22907 set x $ac_tag
22908 IFS=$ac_save_IFS
22909 shift
22910 ac_file=$1
22911 shift
22913 case $ac_mode in
22914 :L) ac_source=$1;;
22915 :[FH])
22916 ac_file_inputs=
22917 for ac_f
22919 case $ac_f in
22920 -) ac_f="$tmp/stdin";;
22921 *) # Look for the file first in the build tree, then in the source tree
22922 # (if the path is not absolute). The absolute path cannot be DOS-style,
22923 # because $ac_f cannot contain `:'.
22924 test -f "$ac_f" ||
22925 case $ac_f in
22926 [\\/$]*) false;;
22927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22928 esac ||
22929 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22930 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22931 { (exit 1); exit 1; }; };;
22932 esac
22933 ac_file_inputs="$ac_file_inputs $ac_f"
22934 done
22936 # Let's still pretend it is `configure' which instantiates (i.e., don't
22937 # use $as_me), people would be surprised to read:
22938 # /* config.h. Generated by config.status. */
22939 configure_input="Generated from "`IFS=:
22940 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22941 if test x"$ac_file" != x-; then
22942 configure_input="$ac_file. $configure_input"
22943 { echo "$as_me:$LINENO: creating $ac_file" >&5
22944 echo "$as_me: creating $ac_file" >&6;}
22947 case $ac_tag in
22948 *:-:* | *:-) cat >"$tmp/stdin";;
22949 esac
22951 esac
22953 ac_dir=`$as_dirname -- "$ac_file" ||
22954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22955 X"$ac_file" : 'X\(//\)[^/]' \| \
22956 X"$ac_file" : 'X\(//\)$' \| \
22957 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22958 echo X"$ac_file" |
22959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22960 s//\1/
22963 /^X\(\/\/\)[^/].*/{
22964 s//\1/
22967 /^X\(\/\/\)$/{
22968 s//\1/
22971 /^X\(\/\).*/{
22972 s//\1/
22975 s/.*/./; q'`
22976 { as_dir="$ac_dir"
22977 case $as_dir in #(
22978 -*) as_dir=./$as_dir;;
22979 esac
22980 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22981 as_dirs=
22982 while :; do
22983 case $as_dir in #(
22984 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22985 *) as_qdir=$as_dir;;
22986 esac
22987 as_dirs="'$as_qdir' $as_dirs"
22988 as_dir=`$as_dirname -- "$as_dir" ||
22989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22990 X"$as_dir" : 'X\(//\)[^/]' \| \
22991 X"$as_dir" : 'X\(//\)$' \| \
22992 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22993 echo X"$as_dir" |
22994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22995 s//\1/
22998 /^X\(\/\/\)[^/].*/{
22999 s//\1/
23002 /^X\(\/\/\)$/{
23003 s//\1/
23006 /^X\(\/\).*/{
23007 s//\1/
23010 s/.*/./; q'`
23011 test -d "$as_dir" && break
23012 done
23013 test -z "$as_dirs" || eval "mkdir $as_dirs"
23014 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23015 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23016 { (exit 1); exit 1; }; }; }
23017 ac_builddir=.
23019 case "$ac_dir" in
23020 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23022 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23023 # A ".." for each directory in $ac_dir_suffix.
23024 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23025 case $ac_top_builddir_sub in
23026 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23027 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23028 esac ;;
23029 esac
23030 ac_abs_top_builddir=$ac_pwd
23031 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23032 # for backward compatibility:
23033 ac_top_builddir=$ac_top_build_prefix
23035 case $srcdir in
23036 .) # We are building in place.
23037 ac_srcdir=.
23038 ac_top_srcdir=$ac_top_builddir_sub
23039 ac_abs_top_srcdir=$ac_pwd ;;
23040 [\\/]* | ?:[\\/]* ) # Absolute name.
23041 ac_srcdir=$srcdir$ac_dir_suffix;
23042 ac_top_srcdir=$srcdir
23043 ac_abs_top_srcdir=$srcdir ;;
23044 *) # Relative name.
23045 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23046 ac_top_srcdir=$ac_top_build_prefix$srcdir
23047 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23048 esac
23049 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23052 case $ac_mode in
23055 # CONFIG_FILE
23058 case $INSTALL in
23059 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23060 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23061 esac
23062 ac_MKDIR_P=$MKDIR_P
23063 case $MKDIR_P in
23064 [\\/$]* | ?:[\\/]* ) ;;
23065 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23066 esac
23067 _ACEOF
23069 cat >>$CONFIG_STATUS <<\_ACEOF
23070 # If the template does not know about datarootdir, expand it.
23071 # FIXME: This hack should be removed a few years after 2.60.
23072 ac_datarootdir_hack=; ac_datarootdir_seen=
23074 case `sed -n '/datarootdir/ {
23078 /@datadir@/p
23079 /@docdir@/p
23080 /@infodir@/p
23081 /@localedir@/p
23082 /@mandir@/p
23083 ' $ac_file_inputs` in
23084 *datarootdir*) ac_datarootdir_seen=yes;;
23085 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23086 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23087 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23088 _ACEOF
23089 cat >>$CONFIG_STATUS <<_ACEOF
23090 ac_datarootdir_hack='
23091 s&@datadir@&$datadir&g
23092 s&@docdir@&$docdir&g
23093 s&@infodir@&$infodir&g
23094 s&@localedir@&$localedir&g
23095 s&@mandir@&$mandir&g
23096 s&\\\${datarootdir}&$datarootdir&g' ;;
23097 esac
23098 _ACEOF
23100 # Neutralize VPATH when `$srcdir' = `.'.
23101 # Shell code in configure.ac might set extrasub.
23102 # FIXME: do we really want to maintain this feature?
23103 cat >>$CONFIG_STATUS <<_ACEOF
23104 sed "$ac_vpsub
23105 $extrasub
23106 _ACEOF
23107 cat >>$CONFIG_STATUS <<\_ACEOF
23109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23110 s&@configure_input@&$configure_input&;t t
23111 s&@top_builddir@&$ac_top_builddir_sub&;t t
23112 s&@srcdir@&$ac_srcdir&;t t
23113 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23114 s&@top_srcdir@&$ac_top_srcdir&;t t
23115 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23116 s&@builddir@&$ac_builddir&;t t
23117 s&@abs_builddir@&$ac_abs_builddir&;t t
23118 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23119 s&@INSTALL@&$ac_INSTALL&;t t
23120 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23121 $ac_datarootdir_hack
23122 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23124 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23125 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23127 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23128 which seems to be undefined. Please make sure it is defined." >&5
23129 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23130 which seems to be undefined. Please make sure it is defined." >&2;}
23132 rm -f "$tmp/stdin"
23133 case $ac_file in
23134 -) cat "$tmp/out"; rm -f "$tmp/out";;
23135 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23136 esac
23140 # CONFIG_HEADER
23142 _ACEOF
23144 # Transform confdefs.h into a sed script `conftest.defines', that
23145 # substitutes the proper values into config.h.in to produce config.h.
23146 rm -f conftest.defines conftest.tail
23147 # First, append a space to every undef/define line, to ease matching.
23148 echo 's/$/ /' >conftest.defines
23149 # Then, protect against being on the right side of a sed subst, or in
23150 # an unquoted here document, in config.status. If some macros were
23151 # called several times there might be several #defines for the same
23152 # symbol, which is useless. But do not sort them, since the last
23153 # AC_DEFINE must be honored.
23154 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23155 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23156 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23157 # PARAMS is the parameter list in the macro definition--in most cases, it's
23158 # just an empty string.
23159 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23160 ac_dB='\\)[ (].*,\\1define\\2'
23161 ac_dC=' '
23162 ac_dD=' ,'
23164 uniq confdefs.h |
23165 sed -n '
23166 t rset
23167 :rset
23168 s/^[ ]*#[ ]*define[ ][ ]*//
23169 t ok
23172 s/[\\&,]/\\&/g
23173 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23174 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23175 ' >>conftest.defines
23177 # Remove the space that was appended to ease matching.
23178 # Then replace #undef with comments. This is necessary, for
23179 # example, in the case of _POSIX_SOURCE, which is predefined and required
23180 # on some systems where configure will not decide to define it.
23181 # (The regexp can be short, since the line contains either #define or #undef.)
23182 echo 's/ $//
23183 s,^[ #]*u.*,/* & */,' >>conftest.defines
23185 # Break up conftest.defines:
23186 ac_max_sed_lines=50
23188 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23189 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23190 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23191 # et cetera.
23192 ac_in='$ac_file_inputs'
23193 ac_out='"$tmp/out1"'
23194 ac_nxt='"$tmp/out2"'
23196 while :
23198 # Write a here document:
23199 cat >>$CONFIG_STATUS <<_ACEOF
23200 # First, check the format of the line:
23201 cat >"\$tmp/defines.sed" <<\\CEOF
23202 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23203 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23205 :def
23206 _ACEOF
23207 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23208 echo 'CEOF
23209 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23210 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23211 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23212 grep . conftest.tail >/dev/null || break
23213 rm -f conftest.defines
23214 mv conftest.tail conftest.defines
23215 done
23216 rm -f conftest.defines conftest.tail
23218 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23219 cat >>$CONFIG_STATUS <<\_ACEOF
23220 if test x"$ac_file" != x-; then
23221 echo "/* $configure_input */" >"$tmp/config.h"
23222 cat "$ac_result" >>"$tmp/config.h"
23223 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23224 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23225 echo "$as_me: $ac_file is unchanged" >&6;}
23226 else
23227 rm -f $ac_file
23228 mv "$tmp/config.h" $ac_file
23230 else
23231 echo "/* $configure_input */"
23232 cat "$ac_result"
23234 rm -f "$tmp/out12"
23235 # Compute $ac_file's index in $config_headers.
23236 _am_arg=$ac_file
23237 _am_stamp_count=1
23238 for _am_header in $config_headers :; do
23239 case $_am_header in
23240 $_am_arg | $_am_arg:* )
23241 break ;;
23243 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23244 esac
23245 done
23246 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23247 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23248 X"$_am_arg" : 'X\(//\)[^/]' \| \
23249 X"$_am_arg" : 'X\(//\)$' \| \
23250 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23251 echo X"$_am_arg" |
23252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23253 s//\1/
23256 /^X\(\/\/\)[^/].*/{
23257 s//\1/
23260 /^X\(\/\/\)$/{
23261 s//\1/
23264 /^X\(\/\).*/{
23265 s//\1/
23268 s/.*/./; q'`/stamp-h$_am_stamp_count
23271 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23272 echo "$as_me: executing $ac_file commands" >&6;}
23274 esac
23277 case $ac_file$ac_mode in
23278 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23279 # Strip MF so we end up with the name of the file.
23280 mf=`echo "$mf" | sed -e 's/:.*$//'`
23281 # Check whether this is an Automake generated Makefile or not.
23282 # We used to match only the files named `Makefile.in', but
23283 # some people rename them; so instead we look at the file content.
23284 # Grep'ing the first line is not enough: some people post-process
23285 # each Makefile.in and add a new line on top of each file to say so.
23286 # Grep'ing the whole file is not good either: AIX grep has a line
23287 # limit of 2048, but all sed's we know have understand at least 4000.
23288 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23289 dirpart=`$as_dirname -- "$mf" ||
23290 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23291 X"$mf" : 'X\(//\)[^/]' \| \
23292 X"$mf" : 'X\(//\)$' \| \
23293 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23294 echo X"$mf" |
23295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23296 s//\1/
23299 /^X\(\/\/\)[^/].*/{
23300 s//\1/
23303 /^X\(\/\/\)$/{
23304 s//\1/
23307 /^X\(\/\).*/{
23308 s//\1/
23311 s/.*/./; q'`
23312 else
23313 continue
23315 # Extract the definition of DEPDIR, am__include, and am__quote
23316 # from the Makefile without running `make'.
23317 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23318 test -z "$DEPDIR" && continue
23319 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23320 test -z "am__include" && continue
23321 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23322 # When using ansi2knr, U may be empty or an underscore; expand it
23323 U=`sed -n 's/^U = //p' < "$mf"`
23324 # Find all dependency output files, they are included files with
23325 # $(DEPDIR) in their names. We invoke sed twice because it is the
23326 # simplest approach to changing $(DEPDIR) to its actual value in the
23327 # expansion.
23328 for file in `sed -n "
23329 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23330 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23331 # Make sure the directory exists.
23332 test -f "$dirpart/$file" && continue
23333 fdir=`$as_dirname -- "$file" ||
23334 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23335 X"$file" : 'X\(//\)[^/]' \| \
23336 X"$file" : 'X\(//\)$' \| \
23337 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23338 echo X"$file" |
23339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23340 s//\1/
23343 /^X\(\/\/\)[^/].*/{
23344 s//\1/
23347 /^X\(\/\/\)$/{
23348 s//\1/
23351 /^X\(\/\).*/{
23352 s//\1/
23355 s/.*/./; q'`
23356 { as_dir=$dirpart/$fdir
23357 case $as_dir in #(
23358 -*) as_dir=./$as_dir;;
23359 esac
23360 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23361 as_dirs=
23362 while :; do
23363 case $as_dir in #(
23364 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23365 *) as_qdir=$as_dir;;
23366 esac
23367 as_dirs="'$as_qdir' $as_dirs"
23368 as_dir=`$as_dirname -- "$as_dir" ||
23369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23370 X"$as_dir" : 'X\(//\)[^/]' \| \
23371 X"$as_dir" : 'X\(//\)$' \| \
23372 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23373 echo X"$as_dir" |
23374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23375 s//\1/
23378 /^X\(\/\/\)[^/].*/{
23379 s//\1/
23382 /^X\(\/\/\)$/{
23383 s//\1/
23386 /^X\(\/\).*/{
23387 s//\1/
23390 s/.*/./; q'`
23391 test -d "$as_dir" && break
23392 done
23393 test -z "$as_dirs" || eval "mkdir $as_dirs"
23394 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23395 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23396 { (exit 1); exit 1; }; }; }
23397 # echo "creating $dirpart/$file"
23398 echo '# dummy' > "$dirpart/$file"
23399 done
23400 done
23403 esac
23404 done # for ac_tag
23407 { (exit 0); exit 0; }
23408 _ACEOF
23409 chmod +x $CONFIG_STATUS
23410 ac_clean_files=$ac_clean_files_save
23413 # configure is writing to config.log, and then calls config.status.
23414 # config.status does its own redirection, appending to config.log.
23415 # Unfortunately, on DOS this fails, as config.log is still kept open
23416 # by configure, so config.status won't be able to write to it; its
23417 # output is simply discarded. So we exec the FD to /dev/null,
23418 # effectively closing config.log, so it can be properly (re)opened and
23419 # appended to by config.status. When coming back to configure, we
23420 # need to make the FD available again.
23421 if test "$no_create" != yes; then
23422 ac_cs_success=:
23423 ac_config_status_args=
23424 test "$silent" = yes &&
23425 ac_config_status_args="$ac_config_status_args --quiet"
23426 exec 5>/dev/null
23427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23428 exec 5>>config.log
23429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23430 # would make configure fail if this is the last instruction.
23431 $ac_cs_success || { (exit 1); exit 1; }