AVR32 port by Leen Toelen slightly cleaned up
[jamvm-avr32-jem.git] / configure
blob27bf0866e86b17d36a86b32dcc7c012b5fa96196
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
602 done
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
626 done
627 IFS="$lt_save_ifs"
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
675 prev="$cmd"
676 done
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
733 ac_unique_file="src/jam.c"
734 ac_default_prefix=/usr/local/jamvm
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 # include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 # include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 am__isrc
812 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
830 build
831 build_cpu
832 build_vendor
833 build_os
834 host
835 host_cpu
836 host_vendor
837 host_os
838 arch
840 interp_cflags
841 COMPILE_TIME_RELOC_CHECKS_TRUE
842 COMPILE_TIME_RELOC_CHECKS_FALSE
843 with_classpath_install_dir
845 CFLAGS
846 LDFLAGS
847 CPPFLAGS
848 ac_ct_CC
849 EXEEXT
850 OBJEXT
851 DEPDIR
852 am__include
853 am__quote
854 AMDEP_TRUE
855 AMDEP_FALSE
856 AMDEPBACKSLASH
857 CCDEPMODE
858 am__fastdepCC_TRUE
859 am__fastdepCC_FALSE
861 GREP
862 EGREP
863 LN_S
864 ECHO
866 RANLIB
869 CXXFLAGS
870 ac_ct_CXX
871 CXXDEPMODE
872 am__fastdepCXX_TRUE
873 am__fastdepCXX_FALSE
874 CXXCPP
876 FFLAGS
877 ac_ct_F77
878 LIBTOOL
879 CCAS
880 CCASFLAGS
881 CCASDEPMODE
882 am__fastdepCCAS_TRUE
883 am__fastdepCCAS_FALSE
884 JAVAC
885 use_zip_yes
886 use_zip_no
887 ALLOCA
888 MAINTAINER_MODE_TRUE
889 MAINTAINER_MODE_FALSE
890 MAINT
891 LIBOBJS
892 LTLIBOBJS'
893 ac_subst_files=''
894 ac_precious_vars='build_alias
895 host_alias
896 target_alias
898 CFLAGS
899 LDFLAGS
900 LIBS
901 CPPFLAGS
904 CXXFLAGS
906 CXXCPP
908 FFLAGS
909 CCAS
910 CCASFLAGS'
913 # Initialize some variables set by options.
914 ac_init_help=
915 ac_init_version=false
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
918 cache_file=/dev/null
919 exec_prefix=NONE
920 no_create=
921 no_recursion=
922 prefix=NONE
923 program_prefix=NONE
924 program_suffix=NONE
925 program_transform_name=s,x,x,
926 silent=
927 site=
928 srcdir=
929 verbose=
930 x_includes=NONE
931 x_libraries=NONE
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE}'
950 infodir='${datarootdir}/info'
951 htmldir='${docdir}'
952 dvidir='${docdir}'
953 pdfdir='${docdir}'
954 psdir='${docdir}'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
959 ac_prev=
960 ac_dashdash=
961 for ac_option
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
966 ac_prev=
967 continue
970 case $ac_option in
971 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *) ac_optarg=yes ;;
973 esac
975 # Accept the important Cygnus configure options, so we can diagnose typos.
977 case $ac_dashdash$ac_option in
979 ac_dashdash=yes ;;
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 bindir=$ac_optarg ;;
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
998 --config-cache | -C)
999 cache_file=config.cache ;;
1001 -datadir | --datadir | --datadi | --datad)
1002 ac_prev=datadir ;;
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1013 -disable-* | --disable-*)
1014 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020 eval enable_$ac_feature=no ;;
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1032 -enable-* | --enable-*)
1033 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039 eval enable_$ac_feature=\$ac_optarg ;;
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1052 with_gas=yes ;;
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 ac_prev=htmldir ;;
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 | --ht=*)
1070 htmldir=$ac_optarg ;;
1072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 ac_prev=infodir ;;
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1084 -libdir | --libdir | --libdi | --libd)
1085 ac_prev=libdir ;;
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1101 -localstatedir | --localstatedir | --localstatedi | --localstated \
1102 | --localstate | --localstat | --localsta | --localst | --locals)
1103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106 localstatedir=$ac_optarg ;;
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 ac_prev=mandir ;;
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1115 with_fp=no ;;
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1119 no_create=yes ;;
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 no_recursion=yes ;;
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 ac_prev=prefix ;;
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1153 -program-transform-name | --program-transform-name \
1154 | --program-transform-nam | --program-transform-na \
1155 | --program-transform-n | --program-transform- \
1156 | --program-transform | --program-transfor \
1157 | --program-transfo | --program-transf \
1158 | --program-trans | --program-tran \
1159 | --progr-tra | --program-tr | --program-t)
1160 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 ac_prev=pdfdir ;;
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1175 -psdir | --psdir | --psdi | --psd | --ps)
1176 ac_prev=psdir ;;
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 psdir=$ac_optarg ;;
1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1182 silent=yes ;;
1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 ac_prev=sbindir ;;
1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 | --sbi=* | --sb=*)
1188 sbindir=$ac_optarg ;;
1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192 | --sharedst | --shareds | --shared | --share | --shar \
1193 | --sha | --sh)
1194 ac_prev=sharedstatedir ;;
1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 | --sha=* | --sh=*)
1199 sharedstatedir=$ac_optarg ;;
1201 -site | --site | --sit)
1202 ac_prev=site ;;
1203 -site=* | --site=* | --sit=*)
1204 site=$ac_optarg ;;
1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 ac_prev=srcdir ;;
1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209 srcdir=$ac_optarg ;;
1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212 | --syscon | --sysco | --sysc | --sys | --sy)
1213 ac_prev=sysconfdir ;;
1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216 sysconfdir=$ac_optarg ;;
1218 -target | --target | --targe | --targ | --tar | --ta | --t)
1219 ac_prev=target_alias ;;
1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221 target_alias=$ac_optarg ;;
1223 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 verbose=yes ;;
1226 -version | --version | --versio | --versi | --vers | -V)
1227 ac_init_version=: ;;
1229 -with-* | --with-*)
1230 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236 eval with_$ac_package=\$ac_optarg ;;
1238 -without-* | --without-*)
1239 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid package name: $ac_package" >&2
1243 { (exit 1); exit 1; }; }
1244 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245 eval with_$ac_package=no ;;
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1265 -*) { echo "$as_me: error: unrecognized option: $ac_option
1266 Try \`$0 --help' for more information." >&2
1267 { (exit 1); exit 1; }; }
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275 { (exit 1); exit 1; }; }
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1280 # FIXME: should be removed in autoconf 3.0.
1281 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 esac
1288 done
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 { echo "$as_me: error: missing argument to $ac_option" >&2
1293 { (exit 1); exit 1; }; }
1296 # Be sure to have absolute directory names.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1302 eval ac_val=\$$ac_var
1303 case $ac_val in
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306 esac
1307 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1309 done
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1325 cross_compiling=yes
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { echo "$as_me: error: Working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$0" ||
1350 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$0" : 'X\(//\)[^/]' \| \
1352 X"$0" : 'X\(//\)$' \| \
1353 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1354 echo X"$0" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 s//\1/
1359 /^X\(\/\/\)[^/].*/{
1360 s//\1/
1363 /^X\(\/\/\)$/{
1364 s//\1/
1367 /^X\(\/\).*/{
1368 s//\1/
1371 s/.*/./; q'`
1372 srcdir=$ac_confdir
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 srcdir=..
1376 else
1377 ac_srcdir_defaulted=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1388 pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
1413 \`configure' configures this package to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1422 Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 [PREFIX]
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1466 _ACEOF
1468 cat <<\_ACEOF
1470 Program names:
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1475 System types:
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1481 if test -n "$ac_init_help"; then
1483 cat <<\_ACEOF
1485 Optional Features:
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-tracegc add gc tracing (for debugging)
1489 --enable-tracealloc add object allocation tracing (for debugging)
1490 --enable-tracefnlz add object finalisation tracing (for debugging)
1491 --enable-tracedll add library loading/lookup tracing (for debugging)
1492 --enable-tracelock add object locking tracing (for debugging)
1493 --enable-tracethread add thread creation tracing (for debugging)
1494 --enable-tracecompact add GC compaction phase tracing (for debugging)
1495 --enable-tracedirect add interpreter direct-mode tracing (for debugging)
1496 --enable-traceinlining add interpreter inlining tracing (for debugging)
1497 --enable-trace add all tracing (for debugging)
1498 --enable-int-threading enable threaded version of the interpreter (default
1499 enabled)
1500 --enable-int-direct enable direct threaded version of the interpreter
1501 (default enabled)
1502 --enable-int-caching enable stack-caching version of the interpreter
1503 (disabled by default on x86-64, enabled otherwise)
1504 --enable-int-prefetch enable prefetching version of the interpreter (by
1505 default enabled on powerpc, disabled otherwise)
1506 --enable-runtime-reloc-checks
1507 compute relocatability at runtime (inlining
1508 interpreter)
1509 --enable-int-inlining enable inline threaded version of the interpreter
1510 (by default enabled on x86_64, i386 and powerpc,
1511 disabled otherwise)
1512 --enable-ffi use libffi to call native methods
1513 --disable-zip turn-off zip support in the bootstrap loader
1514 --enable-static[=PKGS] build static libraries [default=no]
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-fast-install[=PKGS]
1517 optimize for fast installation [default=yes]
1518 --disable-dependency-tracking speeds up one-time build
1519 --enable-dependency-tracking do not reject slow dependency extractors
1520 --disable-libtool-lock avoid locking (might break parallel builds)
1521 --enable-maintainer-mode enable make rules and dependencies not useful
1522 (and sometimes confusing) to the casual installer
1524 Optional Packages:
1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1527 --with-classpath-install-dir=<dir>
1528 installation directory of GNU classpath (default
1529 /usr/local/classpath)
1530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1531 --with-pic try to use only PIC/non-PIC objects [default=use
1532 both]
1533 --with-tags[=TAGS] include additional configurations [automatic]
1535 Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
1540 LIBS libraries to pass to the linker, e.g. -l<library>
1541 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1543 CPP C preprocessor
1544 CXX C++ compiler command
1545 CXXFLAGS C++ compiler flags
1546 CXXCPP C++ preprocessor
1547 F77 Fortran 77 compiler command
1548 FFLAGS Fortran 77 compiler flags
1549 CCAS assembler compiler command (defaults to CC)
1550 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1555 _ACEOF
1556 ac_status=$?
1559 if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" || continue
1563 ac_builddir=.
1565 case "$ac_dir" in
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 esac ;;
1575 esac
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1581 case $srcdir in
1582 .) # We are building in place.
1583 ac_srcdir=.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1590 *) # Relative name.
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 esac
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1605 else
1606 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 fi || ac_status=$?
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1609 done
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1614 cat <<\_ACEOF
1615 configure
1616 generated by GNU Autoconf 2.61
1618 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1619 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1620 This configure script is free software; the Free Software Foundation
1621 gives unlimited permission to copy, distribute and modify it.
1622 _ACEOF
1623 exit
1625 cat >config.log <<_ACEOF
1626 This file contains any messages produced by compilers while
1627 running configure, to aid debugging if configure makes a mistake.
1629 It was created by $as_me, which was
1630 generated by GNU Autoconf 2.61. Invocation command line was
1632 $ $0 $@
1634 _ACEOF
1635 exec 5>>config.log
1637 cat <<_ASUNAME
1638 ## --------- ##
1639 ## Platform. ##
1640 ## --------- ##
1642 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1643 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1644 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1645 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1646 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1648 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1649 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1651 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1652 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1653 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1654 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1655 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1656 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1657 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1659 _ASUNAME
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 echo "PATH: $as_dir"
1667 done
1668 IFS=$as_save_IFS
1670 } >&5
1672 cat >&5 <<_ACEOF
1675 ## ----------- ##
1676 ## Core tests. ##
1677 ## ----------- ##
1679 _ACEOF
1682 # Keep a trace of the command line.
1683 # Strip out --no-create and --no-recursion so they do not pile up.
1684 # Strip out --silent because we don't want to record it for future runs.
1685 # Also quote any args containing shell meta-characters.
1686 # Make two passes to allow for proper duplicate-argument suppression.
1687 ac_configure_args=
1688 ac_configure_args0=
1689 ac_configure_args1=
1690 ac_must_keep_next=false
1691 for ac_pass in 1 2
1693 for ac_arg
1695 case $ac_arg in
1696 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1698 | -silent | --silent | --silen | --sile | --sil)
1699 continue ;;
1700 *\'*)
1701 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1702 esac
1703 case $ac_pass in
1704 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1706 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1707 if test $ac_must_keep_next = true; then
1708 ac_must_keep_next=false # Got value, back to normal.
1709 else
1710 case $ac_arg in
1711 *=* | --config-cache | -C | -disable-* | --disable-* \
1712 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1713 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1714 | -with-* | --with-* | -without-* | --without-* | --x)
1715 case "$ac_configure_args0 " in
1716 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1717 esac
1719 -* ) ac_must_keep_next=true ;;
1720 esac
1722 ac_configure_args="$ac_configure_args '$ac_arg'"
1724 esac
1725 done
1726 done
1727 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1728 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1730 # When interrupted or exit'd, cleanup temporary files, and complete
1731 # config.log. We remove comments because anyway the quotes in there
1732 # would cause problems or look ugly.
1733 # WARNING: Use '\'' to represent an apostrophe within the trap.
1734 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1735 trap 'exit_status=$?
1736 # Save into config.log some information that might help in debugging.
1738 echo
1740 cat <<\_ASBOX
1741 ## ---------------- ##
1742 ## Cache variables. ##
1743 ## ---------------- ##
1744 _ASBOX
1745 echo
1746 # The following way of writing the cache mishandles newlines in values,
1748 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1749 eval ac_val=\$$ac_var
1750 case $ac_val in #(
1751 *${as_nl}*)
1752 case $ac_var in #(
1753 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1754 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1755 esac
1756 case $ac_var in #(
1757 _ | IFS | as_nl) ;; #(
1758 *) $as_unset $ac_var ;;
1759 esac ;;
1760 esac
1761 done
1762 (set) 2>&1 |
1763 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1764 *${as_nl}ac_space=\ *)
1765 sed -n \
1766 "s/'\''/'\''\\\\'\'''\''/g;
1767 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1768 ;; #(
1770 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1772 esac |
1773 sort
1775 echo
1777 cat <<\_ASBOX
1778 ## ----------------- ##
1779 ## Output variables. ##
1780 ## ----------------- ##
1781 _ASBOX
1782 echo
1783 for ac_var in $ac_subst_vars
1785 eval ac_val=\$$ac_var
1786 case $ac_val in
1787 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1788 esac
1789 echo "$ac_var='\''$ac_val'\''"
1790 done | sort
1791 echo
1793 if test -n "$ac_subst_files"; then
1794 cat <<\_ASBOX
1795 ## ------------------- ##
1796 ## File substitutions. ##
1797 ## ------------------- ##
1798 _ASBOX
1799 echo
1800 for ac_var in $ac_subst_files
1802 eval ac_val=\$$ac_var
1803 case $ac_val in
1804 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805 esac
1806 echo "$ac_var='\''$ac_val'\''"
1807 done | sort
1808 echo
1811 if test -s confdefs.h; then
1812 cat <<\_ASBOX
1813 ## ----------- ##
1814 ## confdefs.h. ##
1815 ## ----------- ##
1816 _ASBOX
1817 echo
1818 cat confdefs.h
1819 echo
1821 test "$ac_signal" != 0 &&
1822 echo "$as_me: caught signal $ac_signal"
1823 echo "$as_me: exit $exit_status"
1824 } >&5
1825 rm -f core *.core core.conftest.* &&
1826 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1827 exit $exit_status
1829 for ac_signal in 1 2 13 15; do
1830 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1831 done
1832 ac_signal=0
1834 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1835 rm -f -r conftest* confdefs.h
1837 # Predefined preprocessor variables.
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_NAME "$PACKAGE_NAME"
1841 _ACEOF
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1846 _ACEOF
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1851 _ACEOF
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_STRING "$PACKAGE_STRING"
1856 _ACEOF
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1861 _ACEOF
1864 # Let the site file select an alternate cache file if it wants to.
1865 # Prefer explicitly selected file to automatically selected ones.
1866 if test -n "$CONFIG_SITE"; then
1867 set x "$CONFIG_SITE"
1868 elif test "x$prefix" != xNONE; then
1869 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1870 else
1871 set x "$ac_default_prefix/share/config.site" \
1872 "$ac_default_prefix/etc/config.site"
1874 shift
1875 for ac_site_file
1877 if test -r "$ac_site_file"; then
1878 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1879 echo "$as_me: loading site script $ac_site_file" >&6;}
1880 sed 's/^/| /' "$ac_site_file" >&5
1881 . "$ac_site_file"
1883 done
1885 if test -r "$cache_file"; then
1886 # Some versions of bash will fail to source /dev/null (special
1887 # files actually), so we avoid doing that.
1888 if test -f "$cache_file"; then
1889 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1890 echo "$as_me: loading cache $cache_file" >&6;}
1891 case $cache_file in
1892 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1893 *) . "./$cache_file";;
1894 esac
1896 else
1897 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1898 echo "$as_me: creating cache $cache_file" >&6;}
1899 >$cache_file
1902 # Check that the precious variables saved in the cache have kept the same
1903 # value.
1904 ac_cache_corrupted=false
1905 for ac_var in $ac_precious_vars; do
1906 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1907 eval ac_new_set=\$ac_env_${ac_var}_set
1908 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1909 eval ac_new_val=\$ac_env_${ac_var}_value
1910 case $ac_old_set,$ac_new_set in
1911 set,)
1912 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1913 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1914 ac_cache_corrupted=: ;;
1915 ,set)
1916 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1917 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1918 ac_cache_corrupted=: ;;
1919 ,);;
1921 if test "x$ac_old_val" != "x$ac_new_val"; then
1922 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1923 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1924 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1925 echo "$as_me: former value: $ac_old_val" >&2;}
1926 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1927 echo "$as_me: current value: $ac_new_val" >&2;}
1928 ac_cache_corrupted=:
1929 fi;;
1930 esac
1931 # Pass precious variables to config.status.
1932 if test "$ac_new_set" = set; then
1933 case $ac_new_val in
1934 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 *) ac_arg=$ac_var=$ac_new_val ;;
1936 esac
1937 case " $ac_configure_args " in
1938 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1939 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1940 esac
1942 done
1943 if $ac_cache_corrupted; then
1944 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1945 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1946 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1947 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1948 { (exit 1); exit 1; }; }
1967 ac_ext=c
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 am__api_version='1.10'
1976 ac_aux_dir=
1977 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1978 if test -f "$ac_dir/install-sh"; then
1979 ac_aux_dir=$ac_dir
1980 ac_install_sh="$ac_aux_dir/install-sh -c"
1981 break
1982 elif test -f "$ac_dir/install.sh"; then
1983 ac_aux_dir=$ac_dir
1984 ac_install_sh="$ac_aux_dir/install.sh -c"
1985 break
1986 elif test -f "$ac_dir/shtool"; then
1987 ac_aux_dir=$ac_dir
1988 ac_install_sh="$ac_aux_dir/shtool install -c"
1989 break
1991 done
1992 if test -z "$ac_aux_dir"; then
1993 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1994 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1995 { (exit 1); exit 1; }; }
1998 # These three variables are undocumented and unsupported,
1999 # and are intended to be withdrawn in a future Autoconf release.
2000 # They can cause serious problems if a builder's source tree is in a directory
2001 # whose full name contains unusual characters.
2002 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2003 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2004 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2007 # Find a good install program. We prefer a C program (faster),
2008 # so one script is as good as another. But avoid the broken or
2009 # incompatible versions:
2010 # SysV /etc/install, /usr/sbin/install
2011 # SunOS /usr/etc/install
2012 # IRIX /sbin/install
2013 # AIX /bin/install
2014 # AmigaOS /C/install, which installs bootblocks on floppy discs
2015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2018 # OS/2's system install, which has a completely different semantic
2019 # ./install, which can be erroneously created by make from ./install.sh.
2020 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2021 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2022 if test -z "$INSTALL"; then
2023 if test "${ac_cv_path_install+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 # Account for people who put trailing slashes in PATH elements.
2032 case $as_dir/ in
2033 ./ | .// | /cC/* | \
2034 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2035 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2036 /usr/ucb/* ) ;;
2038 # OSF1 and SCO ODT 3.0 have their own names for install.
2039 # Don't use installbsd from OSF since it installs stuff as root
2040 # by default.
2041 for ac_prog in ginstall scoinst install; do
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2044 if test $ac_prog = install &&
2045 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046 # AIX install. It has an incompatible calling convention.
2048 elif test $ac_prog = install &&
2049 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2050 # program-specific install script used by HP pwplus--don't use.
2052 else
2053 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2054 break 3
2057 done
2058 done
2060 esac
2061 done
2062 IFS=$as_save_IFS
2066 if test "${ac_cv_path_install+set}" = set; then
2067 INSTALL=$ac_cv_path_install
2068 else
2069 # As a last resort, use the slow shell script. Don't cache a
2070 # value for INSTALL within a source directory, because that will
2071 # break other packages using the cache if that directory is
2072 # removed, or if the value is a relative name.
2073 INSTALL=$ac_install_sh
2076 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2077 echo "${ECHO_T}$INSTALL" >&6; }
2079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2080 # It thinks the first close brace ends the variable substitution.
2081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2087 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2088 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2089 # Just in case
2090 sleep 1
2091 echo timestamp > conftest.file
2092 # Do `set' in a subshell so we don't clobber the current shell's
2093 # arguments. Must try -L first in case configure is actually a
2094 # symlink; some systems play weird games with the mod time of symlinks
2095 # (eg FreeBSD returns the mod time of the symlink's containing
2096 # directory).
2097 if (
2098 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2099 if test "$*" = "X"; then
2100 # -L didn't work.
2101 set X `ls -t $srcdir/configure conftest.file`
2103 rm -f conftest.file
2104 if test "$*" != "X $srcdir/configure conftest.file" \
2105 && test "$*" != "X conftest.file $srcdir/configure"; then
2107 # If neither matched, then we have a broken ls. This can happen
2108 # if, for instance, CONFIG_SHELL is bash and it inherits a
2109 # broken ls alias from the environment. This has actually
2110 # happened. Such a system could not be considered "sane".
2111 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2112 alias in your environment" >&5
2113 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2114 alias in your environment" >&2;}
2115 { (exit 1); exit 1; }; }
2118 test "$2" = conftest.file
2120 then
2121 # Ok.
2123 else
2124 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2125 Check your system clock" >&5
2126 echo "$as_me: error: newly created file is older than distributed files!
2127 Check your system clock" >&2;}
2128 { (exit 1); exit 1; }; }
2130 { echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6; }
2132 test "$program_prefix" != NONE &&
2133 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2134 # Use a double $ so make ignores it.
2135 test "$program_suffix" != NONE &&
2136 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2137 # Double any \ or $. echo might interpret backslashes.
2138 # By default was `s,x,x', remove it if useless.
2139 cat <<\_ACEOF >conftest.sed
2140 s/[\\$]/&&/g;s/;s,x,x,$//
2141 _ACEOF
2142 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2143 rm -f conftest.sed
2145 # expand $ac_aux_dir to an absolute path
2146 am_aux_dir=`cd $ac_aux_dir && pwd`
2148 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2149 # Use eval to expand $SHELL
2150 if eval "$MISSING --run true"; then
2151 am_missing_run="$MISSING --run "
2152 else
2153 am_missing_run=
2154 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2155 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2158 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2159 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2160 if test -z "$MKDIR_P"; then
2161 if test "${ac_cv_path_mkdir+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_prog in mkdir gmkdir; do
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2172 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2173 'mkdir (GNU coreutils) '* | \
2174 'mkdir (coreutils) '* | \
2175 'mkdir (fileutils) '4.1*)
2176 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2177 break 3;;
2178 esac
2179 done
2180 done
2181 done
2182 IFS=$as_save_IFS
2186 if test "${ac_cv_path_mkdir+set}" = set; then
2187 MKDIR_P="$ac_cv_path_mkdir -p"
2188 else
2189 # As a last resort, use the slow shell script. Don't cache a
2190 # value for MKDIR_P within a source directory, because that will
2191 # break other packages using the cache if that directory is
2192 # removed, or if the value is a relative name.
2193 test -d ./--version && rmdir ./--version
2194 MKDIR_P="$ac_install_sh -d"
2197 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2198 echo "${ECHO_T}$MKDIR_P" >&6; }
2200 mkdir_p="$MKDIR_P"
2201 case $mkdir_p in
2202 [\\/$]* | ?:[\\/]*) ;;
2203 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2204 esac
2206 for ac_prog in gawk mawk nawk awk
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_AWK+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 if test -n "$AWK"; then
2216 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_AWK="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2229 done
2230 done
2231 IFS=$as_save_IFS
2235 AWK=$ac_cv_prog_AWK
2236 if test -n "$AWK"; then
2237 { echo "$as_me:$LINENO: result: $AWK" >&5
2238 echo "${ECHO_T}$AWK" >&6; }
2239 else
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2245 test -n "$AWK" && break
2246 done
2248 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2250 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254 cat >conftest.make <<\_ACEOF
2255 SHELL = /bin/sh
2256 all:
2257 @echo '@@@%%%=$(MAKE)=@@@%%%'
2258 _ACEOF
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2261 *@@@%%%=?*=@@@%%%*)
2262 eval ac_cv_prog_make_${ac_make}_set=yes;;
2264 eval ac_cv_prog_make_${ac_make}_set=no;;
2265 esac
2266 rm -f conftest.make
2268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269 { echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6; }
2271 SET_MAKE=
2272 else
2273 { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275 SET_MAKE="MAKE=${MAKE-make}"
2278 rm -rf .tst 2>/dev/null
2279 mkdir .tst 2>/dev/null
2280 if test -d .tst; then
2281 am__leading_dot=.
2282 else
2283 am__leading_dot=_
2285 rmdir .tst 2>/dev/null
2287 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2288 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2289 # is not polluted with repeated "-I."
2290 am__isrc=' -I$(srcdir)'
2291 # test to see if srcdir already configured
2292 if test -f $srcdir/config.status; then
2293 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2294 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2295 { (exit 1); exit 1; }; }
2299 # test whether we have cygpath
2300 if test -z "$CYGPATH_W"; then
2301 if (cygpath --version) >/dev/null 2>/dev/null; then
2302 CYGPATH_W='cygpath -w'
2303 else
2304 CYGPATH_W=echo
2309 # Define the identity of the package.
2310 PACKAGE=jamvm
2311 VERSION=1.5.0
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE "$PACKAGE"
2316 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define VERSION "$VERSION"
2321 _ACEOF
2323 # Some tools Automake needs.
2325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2339 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2341 # Installed binaries are usually stripped using `strip' when the user
2342 # run `make install-strip'. However `strip' might not be the right
2343 # tool to use in cross-compilation environments, therefore Automake
2344 # will honor the `STRIP' environment variable to overrule this program.
2345 if test "$cross_compiling" != no; then
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}strip; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 if test -n "$STRIP"; then
2355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2368 done
2369 done
2370 IFS=$as_save_IFS
2374 STRIP=$ac_cv_prog_STRIP
2375 if test -n "$STRIP"; then
2376 { echo "$as_me:$LINENO: result: $STRIP" >&5
2377 echo "${ECHO_T}$STRIP" >&6; }
2378 else
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2385 if test -z "$ac_cv_prog_STRIP"; then
2386 ac_ct_STRIP=$STRIP
2387 # Extract the first word of "strip", so it can be a program name with args.
2388 set dummy strip; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394 if test -n "$ac_ct_STRIP"; then
2395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_ac_ct_STRIP="strip"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2408 done
2409 done
2410 IFS=$as_save_IFS
2414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415 if test -n "$ac_ct_STRIP"; then
2416 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2418 else
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2423 if test "x$ac_ct_STRIP" = x; then
2424 STRIP=":"
2425 else
2426 case $cross_compiling:$ac_tool_warned in
2427 yes:)
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2435 esac
2436 STRIP=$ac_ct_STRIP
2438 else
2439 STRIP="$ac_cv_prog_STRIP"
2443 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2445 # We need awk for the "check" target. The system "awk" is bad on
2446 # some platforms.
2447 # Always define AMTAR for backward compatibility.
2449 AMTAR=${AMTAR-"${am_missing_run}tar"}
2451 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2457 ac_config_headers="$ac_config_headers src/config.h"
2461 # Make sure we can run config.sub.
2462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2463 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2464 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2465 { (exit 1); exit 1; }; }
2467 { echo "$as_me:$LINENO: checking build system type" >&5
2468 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2469 if test "${ac_cv_build+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472 ac_build_alias=$build_alias
2473 test "x$ac_build_alias" = x &&
2474 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2475 test "x$ac_build_alias" = x &&
2476 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2477 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2478 { (exit 1); exit 1; }; }
2479 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2480 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2481 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2482 { (exit 1); exit 1; }; }
2485 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2486 echo "${ECHO_T}$ac_cv_build" >&6; }
2487 case $ac_cv_build in
2488 *-*-*) ;;
2489 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2490 echo "$as_me: error: invalid value of canonical build" >&2;}
2491 { (exit 1); exit 1; }; };;
2492 esac
2493 build=$ac_cv_build
2494 ac_save_IFS=$IFS; IFS='-'
2495 set x $ac_cv_build
2496 shift
2497 build_cpu=$1
2498 build_vendor=$2
2499 shift; shift
2500 # Remember, the first character of IFS is used to create $*,
2501 # except with old shells:
2502 build_os=$*
2503 IFS=$ac_save_IFS
2504 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2507 { echo "$as_me:$LINENO: checking host system type" >&5
2508 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2509 if test "${ac_cv_host+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 if test "x$host_alias" = x; then
2513 ac_cv_host=$ac_cv_build
2514 else
2515 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2516 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2517 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2518 { (exit 1); exit 1; }; }
2522 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2523 echo "${ECHO_T}$ac_cv_host" >&6; }
2524 case $ac_cv_host in
2525 *-*-*) ;;
2526 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2527 echo "$as_me: error: invalid value of canonical host" >&2;}
2528 { (exit 1); exit 1; }; };;
2529 esac
2530 host=$ac_cv_host
2531 ac_save_IFS=$IFS; IFS='-'
2532 set x $ac_cv_host
2533 shift
2534 host_cpu=$1
2535 host_vendor=$2
2536 shift; shift
2537 # Remember, the first character of IFS is used to create $*,
2538 # except with old shells:
2539 host_os=$*
2540 IFS=$ac_save_IFS
2541 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2545 case "$host" in
2546 i[3456]86-*-linux*) host_cpu=i386 host_os=linux ;;
2547 i[3456]86-*-kfreebsd*) host_cpu=i386 host_os=linux ;;
2548 i[3456]86-*-darwin*) host_cpu=i386 host_os=darwin ;;
2549 i386-*-openbsd*) host_os=bsd libdl_needed=no ;;
2550 i386-*-freebsd*) host_os=bsd libdl_needed=no ;;
2551 x86_64-*-linux*) host_os=linux ;;
2552 hppa*-*-linux*) host_cpu=parisc host_os=linux ;;
2553 avr32*-*-linux*) host_cpu=avr32 host_os=linux ;;
2554 mipsel-*-linux*) host_cpu=mips host_os=linux ;;
2555 amd64-*-openbsd*) host_os=bsd libdl_needed=no ;;
2556 amd64-*-freebsd*) host_os=bsd libdl_needed=no ;;
2557 arm*-*-linux*) host_cpu=arm host_os=linux ;;
2558 arm*-*-openbsd*) host_cpu=arm host_os=bsd libdl_needed=no ;;
2559 arm*-*-freebsd*) host_cpu=arm host_os=bsd libdl_needed=no ;;
2560 powerpc*-*-linux*) host_cpu=powerpc host_os=linux ;;
2561 powerpc*-*-openbsd*) host_cpu=powerpc host_os=bsd libdl_needed=no ;;
2562 powerpc*-*-freebsd*) host_cpu=powerpc host_os=bsd libdl_needed=no ;;
2563 powerpc-*-darwin*) host_os=darwin ;;
2564 *) { { echo "$as_me:$LINENO: error: $host not supported" >&5
2565 echo "$as_me: error: $host not supported" >&2;}
2566 { (exit 1); exit 1; }; } ;;
2567 esac
2569 arch=$host_cpu
2570 os=$host_os
2574 # Check whether --enable-tracegc was given.
2575 if test "${enable_tracegc+set}" = set; then
2576 enableval=$enable_tracegc; if test "$enableval" != no; then
2578 cat >>confdefs.h <<\_ACEOF
2579 #define TRACEGC 1
2580 _ACEOF
2586 # Check whether --enable-tracealloc was given.
2587 if test "${enable_tracealloc+set}" = set; then
2588 enableval=$enable_tracealloc; if test "$enableval" != no; then
2590 cat >>confdefs.h <<\_ACEOF
2591 #define TRACEALLOC 1
2592 _ACEOF
2598 # Check whether --enable-tracefnlz was given.
2599 if test "${enable_tracefnlz+set}" = set; then
2600 enableval=$enable_tracefnlz; if test "$enableval" != no; then
2602 cat >>confdefs.h <<\_ACEOF
2603 #define TRACEFNLZ 1
2604 _ACEOF
2610 # Check whether --enable-tracedll was given.
2611 if test "${enable_tracedll+set}" = set; then
2612 enableval=$enable_tracedll; if test "$enableval" != no; then
2614 cat >>confdefs.h <<\_ACEOF
2615 #define TRACEDLL 1
2616 _ACEOF
2622 # Check whether --enable-tracelock was given.
2623 if test "${enable_tracelock+set}" = set; then
2624 enableval=$enable_tracelock; if test "$enableval" != no; then
2626 cat >>confdefs.h <<\_ACEOF
2627 #define TRACELOCK 1
2628 _ACEOF
2634 # Check whether --enable-tracethread was given.
2635 if test "${enable_tracethread+set}" = set; then
2636 enableval=$enable_tracethread; if test "$enableval" != no; then
2638 cat >>confdefs.h <<\_ACEOF
2639 #define TRACETHREAD 1
2640 _ACEOF
2646 # Check whether --enable-tracecompact was given.
2647 if test "${enable_tracecompact+set}" = set; then
2648 enableval=$enable_tracecompact; if test "$enableval" != no; then
2650 cat >>confdefs.h <<\_ACEOF
2651 #define TRACECOMPACT 1
2652 _ACEOF
2658 # Check whether --enable-tracedirect was given.
2659 if test "${enable_tracedirect+set}" = set; then
2660 enableval=$enable_tracedirect; if test "$enableval" != no; then
2662 cat >>confdefs.h <<\_ACEOF
2663 #define TRACEDIRECT 1
2664 _ACEOF
2670 # Check whether --enable-traceinlining was given.
2671 if test "${enable_traceinlining+set}" = set; then
2672 enableval=$enable_traceinlining; if test "$enableval" != no; then
2674 cat >>confdefs.h <<\_ACEOF
2675 #define TRACEINLINING 1
2676 _ACEOF
2682 # Check whether --enable-trace was given.
2683 if test "${enable_trace+set}" = set; then
2684 enableval=$enable_trace; if test "$enableval" != no; then
2686 cat >>confdefs.h <<\_ACEOF
2687 #define TRACEGC 1
2688 _ACEOF
2691 cat >>confdefs.h <<\_ACEOF
2692 #define TRACEALLOC 1
2693 _ACEOF
2696 cat >>confdefs.h <<\_ACEOF
2697 #define TRACEFNLZ 1
2698 _ACEOF
2701 cat >>confdefs.h <<\_ACEOF
2702 #define TRACEDLL 1
2703 _ACEOF
2706 cat >>confdefs.h <<\_ACEOF
2707 #define TRACELOCK 1
2708 _ACEOF
2711 cat >>confdefs.h <<\_ACEOF
2712 #define TRACETHREAD 1
2713 _ACEOF
2716 cat >>confdefs.h <<\_ACEOF
2717 #define TRACECOMPACT 1
2718 _ACEOF
2721 cat >>confdefs.h <<\_ACEOF
2722 #define TRACEDIRECT 1
2723 _ACEOF
2726 cat >>confdefs.h <<\_ACEOF
2727 #define TRACEINLINING 1
2728 _ACEOF
2734 # Check whether --enable-int-threading was given.
2735 if test "${enable_int_threading+set}" = set; then
2736 enableval=$enable_int_threading;
2740 # Check whether --enable-int-direct was given.
2741 if test "${enable_int_direct+set}" = set; then
2742 enableval=$enable_int_direct;
2746 # Check whether --enable-int-caching was given.
2747 if test "${enable_int_caching+set}" = set; then
2748 enableval=$enable_int_caching;
2749 else
2750 if test "$host_cpu" = x86_64; then
2751 enable_int_caching=no
2756 # Check whether --enable-int-prefetch was given.
2757 if test "${enable_int_prefetch+set}" = set; then
2758 enableval=$enable_int_prefetch;
2759 else
2760 if test "$host_cpu" != powerpc; then
2761 enable_int_prefetch=no
2766 # Check whether --enable-runtime-reloc-checks was given.
2767 if test "${enable_runtime_reloc_checks+set}" = set; then
2768 enableval=$enable_runtime_reloc_checks;
2769 else
2770 enable_runtime_reloc_checks=no
2774 # Check whether --enable-int-inlining was given.
2775 if test "${enable_int_inlining+set}" = set; then
2776 enableval=$enable_int_inlining;
2777 else
2778 if test "$host_cpu" = x86_64 -o "$host_cpu" = i386 -o "$host_cpu" = powerpc && \
2779 test "$cross_compiling" = no -o "$enable_runtime_reloc_checks" != no; then
2780 enable_int_inlining=yes
2781 else
2782 enable_int_inlining=no
2787 if test "$enable_int_threading" != no; then
2789 cat >>confdefs.h <<\_ACEOF
2790 #define THREADED 1
2791 _ACEOF
2794 if test "$enable_int_caching" != no; then
2796 cat >>confdefs.h <<\_ACEOF
2797 #define USE_CACHE 1
2798 _ACEOF
2802 if test "$enable_int_direct" != no; then
2804 cat >>confdefs.h <<\_ACEOF
2805 #define DIRECT 1
2806 _ACEOF
2809 if test "$enable_int_prefetch" != no; then
2811 cat >>confdefs.h <<\_ACEOF
2812 #define PREFETCH 1
2813 _ACEOF
2817 if test "$enable_int_inlining" != no; then
2819 cat >>confdefs.h <<\_ACEOF
2820 #define INLINING 1
2821 _ACEOF
2823 interp_cflags=-fno-reorder-blocks
2825 if test "$enable_runtime_reloc_checks" != no; then
2827 cat >>confdefs.h <<\_ACEOF
2828 #define RUNTIME_RELOC_CHECKS 1
2829 _ACEOF
2831 else
2832 compile_time_reloc_checks=yes
2839 if test "$compile_time_reloc_checks" = yes; then
2840 COMPILE_TIME_RELOC_CHECKS_TRUE=
2841 COMPILE_TIME_RELOC_CHECKS_FALSE='#'
2842 else
2843 COMPILE_TIME_RELOC_CHECKS_TRUE='#'
2844 COMPILE_TIME_RELOC_CHECKS_FALSE=
2848 # Check whether --enable-ffi was given.
2849 if test "${enable_ffi+set}" = set; then
2850 enableval=$enable_ffi;
2851 else
2852 if test "$host_cpu" != x86_64 -a "$host_cpu" != parisc; then
2853 enable_ffi=no
2859 # Check whether --with-classpath-install-dir was given.
2860 if test "${with_classpath_install_dir+set}" = set; then
2861 withval=$with_classpath_install_dir;
2862 else
2863 with_classpath_install_dir=/usr/local/classpath
2868 cat >>confdefs.h <<_ACEOF
2869 #define CLASSPATH_INSTALL_DIR "$with_classpath_install_dir"
2870 _ACEOF
2875 if test "$prefix" = "NONE"; then
2876 install_dir=$ac_default_prefix
2877 else
2878 install_dir=$prefix
2881 cat >>confdefs.h <<_ACEOF
2882 #define INSTALL_DIR "$install_dir"
2883 _ACEOF
2886 # Check whether --enable-zip was given.
2887 if test "${enable_zip+set}" = set; then
2888 enableval=$enable_zip;
2892 # Check whether --enable-static was given.
2893 if test "${enable_static+set}" = set; then
2894 enableval=$enable_static; p=${PACKAGE-default}
2895 case $enableval in
2896 yes) enable_static=yes ;;
2897 no) enable_static=no ;;
2899 enable_static=no
2900 # Look at the argument we got. We use all the common list separators.
2901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2902 for pkg in $enableval; do
2903 IFS="$lt_save_ifs"
2904 if test "X$pkg" = "X$p"; then
2905 enable_static=yes
2907 done
2908 IFS="$lt_save_ifs"
2910 esac
2911 else
2912 enable_static=no
2917 # Check whether --enable-shared was given.
2918 if test "${enable_shared+set}" = set; then
2919 enableval=$enable_shared; p=${PACKAGE-default}
2920 case $enableval in
2921 yes) enable_shared=yes ;;
2922 no) enable_shared=no ;;
2924 enable_shared=no
2925 # Look at the argument we got. We use all the common list separators.
2926 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2927 for pkg in $enableval; do
2928 IFS="$lt_save_ifs"
2929 if test "X$pkg" = "X$p"; then
2930 enable_shared=yes
2932 done
2933 IFS="$lt_save_ifs"
2935 esac
2936 else
2937 enable_shared=yes
2941 # Check whether --enable-fast-install was given.
2942 if test "${enable_fast_install+set}" = set; then
2943 enableval=$enable_fast_install; p=${PACKAGE-default}
2944 case $enableval in
2945 yes) enable_fast_install=yes ;;
2946 no) enable_fast_install=no ;;
2948 enable_fast_install=no
2949 # Look at the argument we got. We use all the common list separators.
2950 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2951 for pkg in $enableval; do
2952 IFS="$lt_save_ifs"
2953 if test "X$pkg" = "X$p"; then
2954 enable_fast_install=yes
2956 done
2957 IFS="$lt_save_ifs"
2959 esac
2960 else
2961 enable_fast_install=yes
2965 DEPDIR="${am__leading_dot}deps"
2967 ac_config_commands="$ac_config_commands depfiles"
2970 am_make=${MAKE-make}
2971 cat > confinc << 'END'
2972 am__doit:
2973 @echo done
2974 .PHONY: am__doit
2976 # If we don't find an include directive, just comment out the code.
2977 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2978 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2979 am__include="#"
2980 am__quote=
2981 _am_result=none
2982 # First try GNU make style include.
2983 echo "include confinc" > confmf
2984 # We grep out `Entering directory' and `Leaving directory'
2985 # messages which can occur if `w' ends up in MAKEFLAGS.
2986 # In particular we don't look at `^make:' because GNU make might
2987 # be invoked under some other name (usually "gmake"), in which
2988 # case it prints its new name instead of `make'.
2989 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2990 am__include=include
2991 am__quote=
2992 _am_result=GNU
2994 # Now try BSD make style include.
2995 if test "$am__include" = "#"; then
2996 echo '.include "confinc"' > confmf
2997 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2998 am__include=.include
2999 am__quote="\""
3000 _am_result=BSD
3005 { echo "$as_me:$LINENO: result: $_am_result" >&5
3006 echo "${ECHO_T}$_am_result" >&6; }
3007 rm -f confinc confmf
3009 # Check whether --enable-dependency-tracking was given.
3010 if test "${enable_dependency_tracking+set}" = set; then
3011 enableval=$enable_dependency_tracking;
3014 if test "x$enable_dependency_tracking" != xno; then
3015 am_depcomp="$ac_aux_dir/depcomp"
3016 AMDEPBACKSLASH='\'
3018 if test "x$enable_dependency_tracking" != xno; then
3019 AMDEP_TRUE=
3020 AMDEP_FALSE='#'
3021 else
3022 AMDEP_TRUE='#'
3023 AMDEP_FALSE=
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3037 if test "${ac_cv_prog_CC+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3054 done
3055 done
3056 IFS=$as_save_IFS
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062 { echo "$as_me:$LINENO: result: $CC" >&5
3063 echo "${ECHO_T}$CC" >&6; }
3064 else
3065 { echo "$as_me:$LINENO: result: no" >&5
3066 echo "${ECHO_T}no" >&6; }
3071 if test -z "$ac_cv_prog_CC"; then
3072 ac_ct_CC=$CC
3073 # Extract the first word of "gcc", so it can be a program name with args.
3074 set dummy gcc; ac_word=$2
3075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_ac_ct_CC="gcc"
3091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3094 done
3095 done
3096 IFS=$as_save_IFS
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3103 echo "${ECHO_T}$ac_ct_CC" >&6; }
3104 else
3105 { echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6; }
3109 if test "x$ac_ct_CC" = x; then
3110 CC=""
3111 else
3112 case $cross_compiling:$ac_tool_warned in
3113 yes:)
3114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3115 whose name does not start with the host triplet. If you think this
3116 configuration is useful to you, please write to autoconf@gnu.org." >&5
3117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3118 whose name does not start with the host triplet. If you think this
3119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3120 ac_tool_warned=yes ;;
3121 esac
3122 CC=$ac_ct_CC
3124 else
3125 CC="$ac_cv_prog_CC"
3128 if test -z "$CC"; then
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}cc; ac_word=$2
3132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_CC="${ac_tool_prefix}cc"
3148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3151 done
3152 done
3153 IFS=$as_save_IFS
3157 CC=$ac_cv_prog_CC
3158 if test -n "$CC"; then
3159 { echo "$as_me:$LINENO: result: $CC" >&5
3160 echo "${ECHO_T}$CC" >&6; }
3161 else
3162 { echo "$as_me:$LINENO: result: no" >&5
3163 echo "${ECHO_T}no" >&6; }
3169 if test -z "$CC"; then
3170 # Extract the first word of "cc", so it can be a program name with args.
3171 set dummy cc; ac_word=$2
3172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3174 if test "${ac_cv_prog_CC+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180 ac_prog_rejected=no
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3189 ac_prog_rejected=yes
3190 continue
3192 ac_cv_prog_CC="cc"
3193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3196 done
3197 done
3198 IFS=$as_save_IFS
3200 if test $ac_prog_rejected = yes; then
3201 # We found a bogon in the path, so make sure we never use it.
3202 set dummy $ac_cv_prog_CC
3203 shift
3204 if test $# != 0; then
3205 # We chose a different compiler from the bogus one.
3206 # However, it has the same basename, so the bogon will be chosen
3207 # first if we set CC to just the basename; use the full file name.
3208 shift
3209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3214 CC=$ac_cv_prog_CC
3215 if test -n "$CC"; then
3216 { echo "$as_me:$LINENO: result: $CC" >&5
3217 echo "${ECHO_T}$CC" >&6; }
3218 else
3219 { echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6; }
3225 if test -z "$CC"; then
3226 if test -n "$ac_tool_prefix"; then
3227 for ac_prog in cl.exe
3229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_CC+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 if test -n "$CC"; then
3237 ac_cv_prog_CC="$CC" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3250 done
3251 done
3252 IFS=$as_save_IFS
3256 CC=$ac_cv_prog_CC
3257 if test -n "$CC"; then
3258 { echo "$as_me:$LINENO: result: $CC" >&5
3259 echo "${ECHO_T}$CC" >&6; }
3260 else
3261 { echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6; }
3266 test -n "$CC" && break
3267 done
3269 if test -z "$CC"; then
3270 ac_ct_CC=$CC
3271 for ac_prog in cl.exe
3273 # Extract the first word of "$ac_prog", so it can be a program name with args.
3274 set dummy $ac_prog; ac_word=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_ac_ct_CC="$ac_prog"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3294 done
3295 done
3296 IFS=$as_save_IFS
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3303 echo "${ECHO_T}$ac_ct_CC" >&6; }
3304 else
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3310 test -n "$ac_ct_CC" && break
3311 done
3313 if test "x$ac_ct_CC" = x; then
3314 CC=""
3315 else
3316 case $cross_compiling:$ac_tool_warned in
3317 yes:)
3318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3319 whose name does not start with the host triplet. If you think this
3320 configuration is useful to you, please write to autoconf@gnu.org." >&5
3321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3322 whose name does not start with the host triplet. If you think this
3323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3324 ac_tool_warned=yes ;;
3325 esac
3326 CC=$ac_ct_CC
3333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3334 See \`config.log' for more details." >&5
3335 echo "$as_me: error: no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details." >&2;}
3337 { (exit 1); exit 1; }; }
3339 # Provide some information about the compiler.
3340 echo "$as_me:$LINENO: checking for C compiler version" >&5
3341 ac_compiler=`set X $ac_compile; echo $2`
3342 { (ac_try="$ac_compiler --version >&5"
3343 case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_compiler --version >&5") 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }
3352 { (ac_try="$ac_compiler -v >&5"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_compiler -v >&5") 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362 { (ac_try="$ac_compiler -V >&5"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compiler -V >&5") 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3381 main ()
3385 return 0;
3387 _ACEOF
3388 ac_clean_files_save=$ac_clean_files
3389 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3390 # Try to create an executable without -o first, disregard a.out.
3391 # It will help us diagnose broken compilers, and finding out an intuition
3392 # of exeext.
3393 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3394 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3395 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3397 # List of possible output files, starting from the most likely.
3398 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3399 # only as a last resort. b.out is created by i960 compilers.
3400 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3402 # The IRIX 6 linker writes into existing files which may not be
3403 # executable, retaining their permissions. Remove them first so a
3404 # subsequent execution test works.
3405 ac_rmfiles=
3406 for ac_file in $ac_files
3408 case $ac_file in
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3410 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3411 esac
3412 done
3413 rm -f $ac_rmfiles
3415 if { (ac_try="$ac_link_default"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_link_default") 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; then
3425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3427 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3428 # so that the user can short-circuit this test for compilers unknown to
3429 # Autoconf.
3430 for ac_file in $ac_files ''
3432 test -f "$ac_file" || continue
3433 case $ac_file in
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3436 [ab].out )
3437 # We found the default executable, but exeext='' is most
3438 # certainly right.
3439 break;;
3440 *.* )
3441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3442 then :; else
3443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445 # We set ac_cv_exeext here because the later test for it is not
3446 # safe: cross compilers may not add the suffix if given an `-o'
3447 # argument, so we may need to know it at that point already.
3448 # Even if this section looks crufty: it has the advantage of
3449 # actually working.
3450 break;;
3452 break;;
3453 esac
3454 done
3455 test "$ac_cv_exeext" = no && ac_cv_exeext=
3457 else
3458 ac_file=''
3461 { echo "$as_me:$LINENO: result: $ac_file" >&5
3462 echo "${ECHO_T}$ac_file" >&6; }
3463 if test -z "$ac_file"; then
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3468 See \`config.log' for more details." >&5
3469 echo "$as_me: error: C compiler cannot create executables
3470 See \`config.log' for more details." >&2;}
3471 { (exit 77); exit 77; }; }
3474 ac_exeext=$ac_cv_exeext
3476 # Check that the compiler produces executables we can run. If not, either
3477 # the compiler is broken, or we cross compile.
3478 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3481 # If not cross compiling, check that we can run a simple program.
3482 if test "$cross_compiling" != yes; then
3483 if { ac_try='./$ac_file'
3484 { (case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_try") 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; }; then
3493 cross_compiling=no
3494 else
3495 if test "$cross_compiling" = maybe; then
3496 cross_compiling=yes
3497 else
3498 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3499 If you meant to cross compile, use \`--host'.
3500 See \`config.log' for more details." >&5
3501 echo "$as_me: error: cannot run C compiled programs.
3502 If you meant to cross compile, use \`--host'.
3503 See \`config.log' for more details." >&2;}
3504 { (exit 1); exit 1; }; }
3508 { echo "$as_me:$LINENO: result: yes" >&5
3509 echo "${ECHO_T}yes" >&6; }
3511 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3512 ac_clean_files=$ac_clean_files_save
3513 # Check that the compiler produces executables we can run. If not, either
3514 # the compiler is broken, or we cross compile.
3515 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3516 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3517 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3518 echo "${ECHO_T}$cross_compiling" >&6; }
3520 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3521 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3522 if { (ac_try="$ac_link"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_link") 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; then
3532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3534 # work properly (i.e., refer to `conftest.exe'), while it won't with
3535 # `rm'.
3536 for ac_file in conftest.exe conftest conftest.*; do
3537 test -f "$ac_file" || continue
3538 case $ac_file in
3539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3541 break;;
3542 * ) break;;
3543 esac
3544 done
3545 else
3546 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3547 See \`config.log' for more details." >&5
3548 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3549 See \`config.log' for more details." >&2;}
3550 { (exit 1); exit 1; }; }
3553 rm -f conftest$ac_cv_exeext
3554 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3555 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3557 rm -f conftest.$ac_ext
3558 EXEEXT=$ac_cv_exeext
3559 ac_exeext=$EXEEXT
3560 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3561 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3562 if test "${ac_cv_objext+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565 cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h. */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3573 main ()
3577 return 0;
3579 _ACEOF
3580 rm -f conftest.o conftest.obj
3581 if { (ac_try="$ac_compile"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_compile") 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; then
3591 for ac_file in conftest.o conftest.obj conftest.*; do
3592 test -f "$ac_file" || continue;
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3596 break;;
3597 esac
3598 done
3599 else
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3604 See \`config.log' for more details." >&5
3605 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }
3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3612 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3613 echo "${ECHO_T}$ac_cv_objext" >&6; }
3614 OBJEXT=$ac_cv_objext
3615 ac_objext=$OBJEXT
3616 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3629 main ()
3631 #ifndef __GNUC__
3632 choke me
3633 #endif
3636 return 0;
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3656 ac_compiler_gnu=yes
3657 else
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 ac_compiler_gnu=no
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3668 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3670 GCC=`test $ac_compiler_gnu = yes && echo yes`
3671 ac_test_CFLAGS=${CFLAGS+set}
3672 ac_save_CFLAGS=$CFLAGS
3673 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3675 if test "${ac_cv_prog_cc_g+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678 ac_save_c_werror_flag=$ac_c_werror_flag
3679 ac_c_werror_flag=yes
3680 ac_cv_prog_cc_g=no
3681 CFLAGS="-g"
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3690 main ()
3694 return 0;
3696 _ACEOF
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3714 ac_cv_prog_cc_g=yes
3715 else
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 CFLAGS=""
3720 cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h. */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3728 main ()
3732 return 0;
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (ac_try="$ac_compile"
3737 case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3740 esac
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742 (eval "$ac_compile") 2>conftest.er1
3743 ac_status=$?
3744 grep -v '^ *+' conftest.er1 >conftest.err
3745 rm -f conftest.er1
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } && {
3749 test -z "$ac_c_werror_flag" ||
3750 test ! -s conftest.err
3751 } && test -s conftest.$ac_objext; then
3753 else
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 ac_c_werror_flag=$ac_save_c_werror_flag
3758 CFLAGS="-g"
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3767 main ()
3771 return 0;
3773 _ACEOF
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3791 ac_cv_prog_cc_g=yes
3792 else
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3814 CFLAGS="-g -O2"
3815 else
3816 CFLAGS="-g"
3818 else
3819 if test "$GCC" = yes; then
3820 CFLAGS="-O2"
3821 else
3822 CFLAGS=
3825 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3826 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3827 if test "${ac_cv_prog_cc_c89+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 ac_cv_prog_cc_c89=no
3831 ac_save_CC=$CC
3832 cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <stdarg.h>
3839 #include <stdio.h>
3840 #include <sys/types.h>
3841 #include <sys/stat.h>
3842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3843 struct buf { int x; };
3844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3845 static char *e (p, i)
3846 char **p;
3847 int i;
3849 return p[i];
3851 static char *f (char * (*g) (char **, int), char **p, ...)
3853 char *s;
3854 va_list v;
3855 va_start (v,p);
3856 s = g (p, va_arg (v,int));
3857 va_end (v);
3858 return s;
3861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3862 function prototypes and stuff, but not '\xHH' hex character constants.
3863 These don't provoke an error unfortunately, instead are silently treated
3864 as 'x'. The following induces an error, until -std is added to get
3865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3866 array size at least. It's necessary to write '\x00'==0 to get something
3867 that's true only with -std. */
3868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3871 inside strings and character constants. */
3872 #define FOO(x) 'x'
3873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3875 int test (int i, double x);
3876 struct s1 {int (*f) (int a);};
3877 struct s2 {int (*f) (double a);};
3878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3879 int argc;
3880 char **argv;
3882 main ()
3884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3886 return 0;
3888 _ACEOF
3889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3892 CC="$ac_save_CC $ac_arg"
3893 rm -f conftest.$ac_objext
3894 if { (ac_try="$ac_compile"
3895 case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_compile") 2>conftest.er1
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } && {
3907 test -z "$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 } && test -s conftest.$ac_objext; then
3910 ac_cv_prog_cc_c89=$ac_arg
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3918 rm -f core conftest.err conftest.$ac_objext
3919 test "x$ac_cv_prog_cc_c89" != "xno" && break
3920 done
3921 rm -f conftest.$ac_ext
3922 CC=$ac_save_CC
3925 # AC_CACHE_VAL
3926 case "x$ac_cv_prog_cc_c89" in
3928 { echo "$as_me:$LINENO: result: none needed" >&5
3929 echo "${ECHO_T}none needed" >&6; } ;;
3930 xno)
3931 { echo "$as_me:$LINENO: result: unsupported" >&5
3932 echo "${ECHO_T}unsupported" >&6; } ;;
3934 CC="$CC $ac_cv_prog_cc_c89"
3935 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3936 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3937 esac
3940 ac_ext=c
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 depcc="$CC" am_compiler_list=
3948 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3949 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3954 # We make a subdir and do the tests there. Otherwise we can end up
3955 # making bogus files that we don't know about and never remove. For
3956 # instance it was reported that on HP-UX the gcc test will end up
3957 # making a dummy file named `D' -- because `-MD' means `put the output
3958 # in D'.
3959 mkdir conftest.dir
3960 # Copy depcomp to subdir because otherwise we won't find it if we're
3961 # using a relative directory.
3962 cp "$am_depcomp" conftest.dir
3963 cd conftest.dir
3964 # We will build objects and dependencies in a subdirectory because
3965 # it helps to detect inapplicable dependency modes. For instance
3966 # both Tru64's cc and ICC support -MD to output dependencies as a
3967 # side effect of compilation, but ICC will put the dependencies in
3968 # the current directory while Tru64 will put them in the object
3969 # directory.
3970 mkdir sub
3972 am_cv_CC_dependencies_compiler_type=none
3973 if test "$am_compiler_list" = ""; then
3974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3976 for depmode in $am_compiler_list; do
3977 # Setup a source with many dependencies, because some compilers
3978 # like to wrap large dependency lists on column 80 (with \), and
3979 # we should not choose a depcomp mode which is confused by this.
3981 # We need to recreate these files for each test, as the compiler may
3982 # overwrite some of them when testing with obscure command lines.
3983 # This happens at least with the AIX C compiler.
3984 : > sub/conftest.c
3985 for i in 1 2 3 4 5 6; do
3986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3988 # Solaris 8's {/usr,}/bin/sh.
3989 touch sub/conftst$i.h
3990 done
3991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3993 case $depmode in
3994 nosideeffect)
3995 # after this tag, mechanisms are not by side-effect, so they'll
3996 # only be used when explicitly requested
3997 if test "x$enable_dependency_tracking" = xyes; then
3998 continue
3999 else
4000 break
4003 none) break ;;
4004 esac
4005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4006 # mode. It turns out that the SunPro C++ compiler does not properly
4007 # handle `-M -o', and we need to detect this.
4008 if depmode=$depmode \
4009 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4011 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4012 >/dev/null 2>conftest.err &&
4013 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4014 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4015 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4016 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4017 # icc doesn't choke on unknown options, it will just issue warnings
4018 # or remarks (even with -Werror). So we grep stderr for any message
4019 # that says an option was ignored or not supported.
4020 # When given -MP, icc 7.0 and 7.1 complain thusly:
4021 # icc: Command line warning: ignoring option '-M'; no argument required
4022 # The diagnosis changed in icc 8.0:
4023 # icc: Command line remark: option '-MP' not supported
4024 if (grep 'ignoring option' conftest.err ||
4025 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4026 am_cv_CC_dependencies_compiler_type=$depmode
4027 break
4030 done
4032 cd ..
4033 rm -rf conftest.dir
4034 else
4035 am_cv_CC_dependencies_compiler_type=none
4039 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4040 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4041 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4044 test "x$enable_dependency_tracking" != xno \
4045 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4046 am__fastdepCC_TRUE=
4047 am__fastdepCC_FALSE='#'
4048 else
4049 am__fastdepCC_TRUE='#'
4050 am__fastdepCC_FALSE=
4054 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4055 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4056 if test "${lt_cv_path_SED+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 # Loop through the user's path and test for sed and gsed.
4060 # Then use that list of sed's as ones to test for truncation.
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for lt_ac_prog in sed gsed; do
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4069 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4071 done
4072 done
4073 done
4074 IFS=$as_save_IFS
4075 lt_ac_max=0
4076 lt_ac_count=0
4077 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4078 # along with /bin/sed that truncates output.
4079 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4080 test ! -f $lt_ac_sed && continue
4081 cat /dev/null > conftest.in
4082 lt_ac_count=0
4083 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4084 # Check for GNU sed and select it if it is found.
4085 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4086 lt_cv_path_SED=$lt_ac_sed
4087 break
4089 while true; do
4090 cat conftest.in conftest.in >conftest.tmp
4091 mv conftest.tmp conftest.in
4092 cp conftest.in conftest.nl
4093 echo >>conftest.nl
4094 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4095 cmp -s conftest.out conftest.nl || break
4096 # 10000 chars as input seems more than enough
4097 test $lt_ac_count -gt 10 && break
4098 lt_ac_count=`expr $lt_ac_count + 1`
4099 if test $lt_ac_count -gt $lt_ac_max; then
4100 lt_ac_max=$lt_ac_count
4101 lt_cv_path_SED=$lt_ac_sed
4103 done
4104 done
4108 SED=$lt_cv_path_SED
4110 { echo "$as_me:$LINENO: result: $SED" >&5
4111 echo "${ECHO_T}$SED" >&6; }
4113 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4114 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4115 if test "${ac_cv_path_GREP+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 # Extract the first word of "grep ggrep" to use in msg output
4119 if test -z "$GREP"; then
4120 set dummy grep ggrep; ac_prog_name=$2
4121 if test "${ac_cv_path_GREP+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 ac_path_GREP_found=false
4125 # Loop through the user's path and test for each of PROGNAME-LIST
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_prog in grep ggrep; do
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4135 # Check for GNU ac_path_GREP and select it if it is found.
4136 # Check for GNU $ac_path_GREP
4137 case `"$ac_path_GREP" --version 2>&1` in
4138 *GNU*)
4139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4141 ac_count=0
4142 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4143 while :
4145 cat "conftest.in" "conftest.in" >"conftest.tmp"
4146 mv "conftest.tmp" "conftest.in"
4147 cp "conftest.in" "conftest.nl"
4148 echo 'GREP' >> "conftest.nl"
4149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4151 ac_count=`expr $ac_count + 1`
4152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4153 # Best one so far, save it but keep looking for a better one
4154 ac_cv_path_GREP="$ac_path_GREP"
4155 ac_path_GREP_max=$ac_count
4157 # 10*(2^10) chars as input seems more than enough
4158 test $ac_count -gt 10 && break
4159 done
4160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161 esac
4164 $ac_path_GREP_found && break 3
4165 done
4166 done
4168 done
4169 IFS=$as_save_IFS
4174 GREP="$ac_cv_path_GREP"
4175 if test -z "$GREP"; then
4176 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4177 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4178 { (exit 1); exit 1; }; }
4181 else
4182 ac_cv_path_GREP=$GREP
4187 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4188 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4189 GREP="$ac_cv_path_GREP"
4192 { echo "$as_me:$LINENO: checking for egrep" >&5
4193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4194 if test "${ac_cv_path_EGREP+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4198 then ac_cv_path_EGREP="$GREP -E"
4199 else
4200 # Extract the first word of "egrep" to use in msg output
4201 if test -z "$EGREP"; then
4202 set dummy egrep; ac_prog_name=$2
4203 if test "${ac_cv_path_EGREP+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 ac_path_EGREP_found=false
4207 # Loop through the user's path and test for each of PROGNAME-LIST
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_prog in egrep; do
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4216 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4217 # Check for GNU ac_path_EGREP and select it if it is found.
4218 # Check for GNU $ac_path_EGREP
4219 case `"$ac_path_EGREP" --version 2>&1` in
4220 *GNU*)
4221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4223 ac_count=0
4224 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4225 while :
4227 cat "conftest.in" "conftest.in" >"conftest.tmp"
4228 mv "conftest.tmp" "conftest.in"
4229 cp "conftest.in" "conftest.nl"
4230 echo 'EGREP' >> "conftest.nl"
4231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4233 ac_count=`expr $ac_count + 1`
4234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4235 # Best one so far, save it but keep looking for a better one
4236 ac_cv_path_EGREP="$ac_path_EGREP"
4237 ac_path_EGREP_max=$ac_count
4239 # 10*(2^10) chars as input seems more than enough
4240 test $ac_count -gt 10 && break
4241 done
4242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4243 esac
4246 $ac_path_EGREP_found && break 3
4247 done
4248 done
4250 done
4251 IFS=$as_save_IFS
4256 EGREP="$ac_cv_path_EGREP"
4257 if test -z "$EGREP"; then
4258 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4260 { (exit 1); exit 1; }; }
4263 else
4264 ac_cv_path_EGREP=$EGREP
4270 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4271 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4272 EGREP="$ac_cv_path_EGREP"
4276 # Check whether --with-gnu-ld was given.
4277 if test "${with_gnu_ld+set}" = set; then
4278 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4279 else
4280 with_gnu_ld=no
4283 ac_prog=ld
4284 if test "$GCC" = yes; then
4285 # Check if gcc -print-prog-name=ld gives a path.
4286 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4287 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4288 case $host in
4289 *-*-mingw*)
4290 # gcc leaves a trailing carriage return which upsets mingw
4291 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4293 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4294 esac
4295 case $ac_prog in
4296 # Accept absolute paths.
4297 [\\/]* | ?:[\\/]*)
4298 re_direlt='/[^/][^/]*/\.\./'
4299 # Canonicalize the pathname of ld
4300 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4301 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4302 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4303 done
4304 test -z "$LD" && LD="$ac_prog"
4307 # If it fails, then pretend we aren't using GCC.
4308 ac_prog=ld
4311 # If it is relative, then search for the first ld in PATH.
4312 with_gnu_ld=unknown
4314 esac
4315 elif test "$with_gnu_ld" = yes; then
4316 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4317 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4318 else
4319 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4320 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4322 if test "${lt_cv_path_LD+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else
4325 if test -z "$LD"; then
4326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4327 for ac_dir in $PATH; do
4328 IFS="$lt_save_ifs"
4329 test -z "$ac_dir" && ac_dir=.
4330 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4331 lt_cv_path_LD="$ac_dir/$ac_prog"
4332 # Check to see if the program is GNU ld. I'd rather use --version,
4333 # but apparently some variants of GNU ld only accept -v.
4334 # Break only if it was the GNU/non-GNU ld that we prefer.
4335 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4336 *GNU* | *'with BFD'*)
4337 test "$with_gnu_ld" != no && break
4340 test "$with_gnu_ld" != yes && break
4342 esac
4344 done
4345 IFS="$lt_save_ifs"
4346 else
4347 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4351 LD="$lt_cv_path_LD"
4352 if test -n "$LD"; then
4353 { echo "$as_me:$LINENO: result: $LD" >&5
4354 echo "${ECHO_T}$LD" >&6; }
4355 else
4356 { echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6; }
4359 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4360 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4361 { (exit 1); exit 1; }; }
4362 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4363 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4364 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4368 case `$LD -v 2>&1 </dev/null` in
4369 *GNU* | *'with BFD'*)
4370 lt_cv_prog_gnu_ld=yes
4373 lt_cv_prog_gnu_ld=no
4375 esac
4377 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4378 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4379 with_gnu_ld=$lt_cv_prog_gnu_ld
4382 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4383 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4384 if test "${lt_cv_ld_reload_flag+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 lt_cv_ld_reload_flag='-r'
4389 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4390 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4391 reload_flag=$lt_cv_ld_reload_flag
4392 case $reload_flag in
4393 "" | " "*) ;;
4394 *) reload_flag=" $reload_flag" ;;
4395 esac
4396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4397 case $host_os in
4398 darwin*)
4399 if test "$GCC" = yes; then
4400 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4401 else
4402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4405 esac
4407 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4408 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4409 if test "${lt_cv_path_NM+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 if test -n "$NM"; then
4413 # Let the user override the test.
4414 lt_cv_path_NM="$NM"
4415 else
4416 lt_nm_to_check="${ac_tool_prefix}nm"
4417 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4418 lt_nm_to_check="$lt_nm_to_check nm"
4420 for lt_tmp_nm in $lt_nm_to_check; do
4421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4422 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4423 IFS="$lt_save_ifs"
4424 test -z "$ac_dir" && ac_dir=.
4425 tmp_nm="$ac_dir/$lt_tmp_nm"
4426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4427 # Check to see if the nm accepts a BSD-compat flag.
4428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4429 # nm: unknown option "B" ignored
4430 # Tru64's nm complains that /dev/null is an invalid object file
4431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4432 */dev/null* | *'Invalid file or object type'*)
4433 lt_cv_path_NM="$tmp_nm -B"
4434 break
4437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4438 */dev/null*)
4439 lt_cv_path_NM="$tmp_nm -p"
4440 break
4443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4444 continue # so that we can try to find one that supports BSD flags
4446 esac
4448 esac
4450 done
4451 IFS="$lt_save_ifs"
4452 done
4453 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4456 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4457 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4458 NM="$lt_cv_path_NM"
4460 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4461 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4462 LN_S=$as_ln_s
4463 if test "$LN_S" = "ln -s"; then
4464 { echo "$as_me:$LINENO: result: yes" >&5
4465 echo "${ECHO_T}yes" >&6; }
4466 else
4467 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4468 echo "${ECHO_T}no, using $LN_S" >&6; }
4471 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4472 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4473 if test "${lt_cv_deplibs_check_method+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476 lt_cv_file_magic_cmd='$MAGIC_CMD'
4477 lt_cv_file_magic_test_file=
4478 lt_cv_deplibs_check_method='unknown'
4479 # Need to set the preceding variable on all platforms that support
4480 # interlibrary dependencies.
4481 # 'none' -- dependencies not supported.
4482 # `unknown' -- same as none, but documents that we really don't know.
4483 # 'pass_all' -- all dependencies passed with no checks.
4484 # 'test_compile' -- check by making test program.
4485 # 'file_magic [[regex]]' -- check by looking for files in library path
4486 # which responds to the $file_magic_cmd with a given extended regex.
4487 # If you have `file' or equivalent on your system and you're not sure
4488 # whether `pass_all' will *always* work, you probably want this one.
4490 case $host_os in
4491 aix4* | aix5*)
4492 lt_cv_deplibs_check_method=pass_all
4495 beos*)
4496 lt_cv_deplibs_check_method=pass_all
4499 bsdi[45]*)
4500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4501 lt_cv_file_magic_cmd='/usr/bin/file -L'
4502 lt_cv_file_magic_test_file=/shlib/libc.so
4505 cygwin*)
4506 # func_win32_libid is a shell function defined in ltmain.sh
4507 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4508 lt_cv_file_magic_cmd='func_win32_libid'
4511 mingw* | pw32*)
4512 # Base MSYS/MinGW do not provide the 'file' command needed by
4513 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4514 # unless we find 'file', for example because we are cross-compiling.
4515 if ( file / ) >/dev/null 2>&1; then
4516 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4517 lt_cv_file_magic_cmd='func_win32_libid'
4518 else
4519 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4520 lt_cv_file_magic_cmd='$OBJDUMP -f'
4524 darwin* | rhapsody*)
4525 lt_cv_deplibs_check_method=pass_all
4528 freebsd* | dragonfly*)
4529 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4530 case $host_cpu in
4531 i*86 )
4532 # Not sure whether the presence of OpenBSD here was a mistake.
4533 # Let's accept both of them until this is cleared up.
4534 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4535 lt_cv_file_magic_cmd=/usr/bin/file
4536 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4538 esac
4539 else
4540 lt_cv_deplibs_check_method=pass_all
4544 gnu*)
4545 lt_cv_deplibs_check_method=pass_all
4548 hpux10.20* | hpux11*)
4549 lt_cv_file_magic_cmd=/usr/bin/file
4550 case $host_cpu in
4551 ia64*)
4552 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4553 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4555 hppa*64*)
4556 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]'
4557 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4560 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4561 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4563 esac
4566 interix[3-9]*)
4567 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4571 irix5* | irix6* | nonstopux*)
4572 case $LD in
4573 *-32|*"-32 ") libmagic=32-bit;;
4574 *-n32|*"-n32 ") libmagic=N32;;
4575 *-64|*"-64 ") libmagic=64-bit;;
4576 *) libmagic=never-match;;
4577 esac
4578 lt_cv_deplibs_check_method=pass_all
4581 # This must be Linux ELF.
4582 linux* | k*bsd*-gnu)
4583 lt_cv_deplibs_check_method=pass_all
4586 netbsd* | netbsdelf*-gnu)
4587 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4589 else
4590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4594 newos6*)
4595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4596 lt_cv_file_magic_cmd=/usr/bin/file
4597 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4600 nto-qnx*)
4601 lt_cv_deplibs_check_method=unknown
4604 openbsd*)
4605 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4607 else
4608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4612 osf3* | osf4* | osf5*)
4613 lt_cv_deplibs_check_method=pass_all
4616 rdos*)
4617 lt_cv_deplibs_check_method=pass_all
4620 solaris*)
4621 lt_cv_deplibs_check_method=pass_all
4624 sysv4 | sysv4.3*)
4625 case $host_vendor in
4626 motorola)
4627 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]'
4628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4630 ncr)
4631 lt_cv_deplibs_check_method=pass_all
4633 sequent)
4634 lt_cv_file_magic_cmd='/bin/file'
4635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4637 sni)
4638 lt_cv_file_magic_cmd='/bin/file'
4639 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4640 lt_cv_file_magic_test_file=/lib/libc.so
4642 siemens)
4643 lt_cv_deplibs_check_method=pass_all
4646 lt_cv_deplibs_check_method=pass_all
4648 esac
4651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4652 lt_cv_deplibs_check_method=pass_all
4654 esac
4657 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4658 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4659 file_magic_cmd=$lt_cv_file_magic_cmd
4660 deplibs_check_method=$lt_cv_deplibs_check_method
4661 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4666 # If no C compiler was specified, use CC.
4667 LTCC=${LTCC-"$CC"}
4669 # If no C compiler flags were specified, use CFLAGS.
4670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4672 # Allow CC to be a program name with arguments.
4673 compiler=$CC
4676 # Check whether --enable-libtool-lock was given.
4677 if test "${enable_libtool_lock+set}" = set; then
4678 enableval=$enable_libtool_lock;
4681 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4683 # Some flags need to be propagated to the compiler or linker for good
4684 # libtool support.
4685 case $host in
4686 ia64-*-hpux*)
4687 # Find out which ABI we are using.
4688 echo 'int i;' > conftest.$ac_ext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; then
4694 case `/usr/bin/file conftest.$ac_objext` in
4695 *ELF-32*)
4696 HPUX_IA64_MODE="32"
4698 *ELF-64*)
4699 HPUX_IA64_MODE="64"
4701 esac
4703 rm -rf conftest*
4705 *-*-irix6*)
4706 # Find out which ABI we are using.
4707 echo '#line 4706 "configure"' > conftest.$ac_ext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709 (eval $ac_compile) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; then
4713 if test "$lt_cv_prog_gnu_ld" = yes; then
4714 case `/usr/bin/file conftest.$ac_objext` in
4715 *32-bit*)
4716 LD="${LD-ld} -melf32bsmip"
4718 *N32*)
4719 LD="${LD-ld} -melf32bmipn32"
4721 *64-bit*)
4722 LD="${LD-ld} -melf64bmip"
4724 esac
4725 else
4726 case `/usr/bin/file conftest.$ac_objext` in
4727 *32-bit*)
4728 LD="${LD-ld} -32"
4730 *N32*)
4731 LD="${LD-ld} -n32"
4733 *64-bit*)
4734 LD="${LD-ld} -64"
4736 esac
4739 rm -rf conftest*
4742 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4743 s390*-*linux*|sparc*-*linux*)
4744 # Find out which ABI we are using.
4745 echo 'int i;' > conftest.$ac_ext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; then
4751 case `/usr/bin/file conftest.o` in
4752 *32-bit*)
4753 case $host in
4754 x86_64-*kfreebsd*-gnu)
4755 LD="${LD-ld} -m elf_i386_fbsd"
4757 x86_64-*linux*)
4758 LD="${LD-ld} -m elf_i386"
4760 ppc64-*linux*|powerpc64-*linux*)
4761 LD="${LD-ld} -m elf32ppclinux"
4763 s390x-*linux*)
4764 LD="${LD-ld} -m elf_s390"
4766 sparc64-*linux*)
4767 LD="${LD-ld} -m elf32_sparc"
4769 esac
4771 *64-bit*)
4772 case $host in
4773 x86_64-*kfreebsd*-gnu)
4774 LD="${LD-ld} -m elf_x86_64_fbsd"
4776 x86_64-*linux*)
4777 LD="${LD-ld} -m elf_x86_64"
4779 ppc*-*linux*|powerpc*-*linux*)
4780 LD="${LD-ld} -m elf64ppc"
4782 s390*-*linux*)
4783 LD="${LD-ld} -m elf64_s390"
4785 sparc*-*linux*)
4786 LD="${LD-ld} -m elf64_sparc"
4788 esac
4790 esac
4792 rm -rf conftest*
4795 *-*-sco3.2v5*)
4796 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4797 SAVE_CFLAGS="$CFLAGS"
4798 CFLAGS="$CFLAGS -belf"
4799 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4800 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4801 if test "${lt_cv_cc_needs_belf+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 ac_ext=c
4805 ac_cpp='$CPP $CPPFLAGS'
4806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4818 main ()
4822 return 0;
4824 _ACEOF
4825 rm -f conftest.$ac_objext conftest$ac_exeext
4826 if { (ac_try="$ac_link"
4827 case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830 esac
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_link") 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest$ac_exeext &&
4842 $as_test_x conftest$ac_exeext; then
4843 lt_cv_cc_needs_belf=yes
4844 else
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 lt_cv_cc_needs_belf=no
4851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4852 conftest$ac_exeext conftest.$ac_ext
4853 ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4860 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4861 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4862 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4863 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4864 CFLAGS="$SAVE_CFLAGS"
4867 sparc*-*solaris*)
4868 # Find out which ABI we are using.
4869 echo 'int i;' > conftest.$ac_ext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; then
4875 case `/usr/bin/file conftest.o` in
4876 *64-bit*)
4877 case $lt_cv_prog_gnu_ld in
4878 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4879 *) LD="${LD-ld} -64" ;;
4880 esac
4882 esac
4884 rm -rf conftest*
4888 esac
4890 need_locks="$enable_libtool_lock"
4893 ac_ext=c
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4899 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4900 # On Suns, sometimes $CPP names a directory.
4901 if test -n "$CPP" && test -d "$CPP"; then
4902 CPP=
4904 if test -z "$CPP"; then
4905 if test "${ac_cv_prog_CPP+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 # Double quotes because CPP needs to be expanded
4909 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4911 ac_preproc_ok=false
4912 for ac_c_preproc_warn_flag in '' yes
4914 # Use a header file that comes with gcc, so configuring glibc
4915 # with a fresh cross-compiler works.
4916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4917 # <limits.h> exists even on freestanding compilers.
4918 # On the NeXT, cc -E runs the code through the compiler's parser,
4919 # not just through cpp. "Syntax error" is here to catch this case.
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 #ifdef __STDC__
4927 # include <limits.h>
4928 #else
4929 # include <assert.h>
4930 #endif
4931 Syntax error
4932 _ACEOF
4933 if { (ac_try="$ac_cpp conftest.$ac_ext"
4934 case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4937 esac
4938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } >/dev/null && {
4946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 }; then
4950 else
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 # Broken: fails on valid input.
4955 continue
4958 rm -f conftest.err conftest.$ac_ext
4960 # OK, works on sane cases. Now check whether nonexistent headers
4961 # can be detected and how.
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 #include <ac_nonexistent.h>
4969 _ACEOF
4970 if { (ac_try="$ac_cpp conftest.$ac_ext"
4971 case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974 esac
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } >/dev/null && {
4983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 }; then
4986 # Broken: success on invalid input.
4987 continue
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 # Passes both tests.
4993 ac_preproc_ok=:
4994 break
4997 rm -f conftest.err conftest.$ac_ext
4999 done
5000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5001 rm -f conftest.err conftest.$ac_ext
5002 if $ac_preproc_ok; then
5003 break
5006 done
5007 ac_cv_prog_CPP=$CPP
5010 CPP=$ac_cv_prog_CPP
5011 else
5012 ac_cv_prog_CPP=$CPP
5014 { echo "$as_me:$LINENO: result: $CPP" >&5
5015 echo "${ECHO_T}$CPP" >&6; }
5016 ac_preproc_ok=false
5017 for ac_c_preproc_warn_flag in '' yes
5019 # Use a header file that comes with gcc, so configuring glibc
5020 # with a fresh cross-compiler works.
5021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022 # <limits.h> exists even on freestanding compilers.
5023 # On the NeXT, cc -E runs the code through the compiler's parser,
5024 # not just through cpp. "Syntax error" is here to catch this case.
5025 cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5031 #ifdef __STDC__
5032 # include <limits.h>
5033 #else
5034 # include <assert.h>
5035 #endif
5036 Syntax error
5037 _ACEOF
5038 if { (ac_try="$ac_cpp conftest.$ac_ext"
5039 case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5045 ac_status=$?
5046 grep -v '^ *+' conftest.er1 >conftest.err
5047 rm -f conftest.er1
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } >/dev/null && {
5051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5052 test ! -s conftest.err
5053 }; then
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 # Broken: fails on valid input.
5060 continue
5063 rm -f conftest.err conftest.$ac_ext
5065 # OK, works on sane cases. Now check whether nonexistent headers
5066 # can be detected and how.
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #include <ac_nonexistent.h>
5074 _ACEOF
5075 if { (ac_try="$ac_cpp conftest.$ac_ext"
5076 case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079 esac
5080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } >/dev/null && {
5088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5089 test ! -s conftest.err
5090 }; then
5091 # Broken: success on invalid input.
5092 continue
5093 else
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5097 # Passes both tests.
5098 ac_preproc_ok=:
5099 break
5102 rm -f conftest.err conftest.$ac_ext
5104 done
5105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5106 rm -f conftest.err conftest.$ac_ext
5107 if $ac_preproc_ok; then
5109 else
5110 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5113 See \`config.log' for more details." >&2;}
5114 { (exit 1); exit 1; }; }
5117 ac_ext=c
5118 ac_cpp='$CPP $CPPFLAGS'
5119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5125 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5126 if test "${ac_cv_header_stdc+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <stdlib.h>
5136 #include <stdarg.h>
5137 #include <string.h>
5138 #include <float.h>
5141 main ()
5145 return 0;
5147 _ACEOF
5148 rm -f conftest.$ac_objext
5149 if { (ac_try="$ac_compile"
5150 case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153 esac
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_compile") 2>conftest.er1
5156 ac_status=$?
5157 grep -v '^ *+' conftest.er1 >conftest.err
5158 rm -f conftest.er1
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } && {
5162 test -z "$ac_c_werror_flag" ||
5163 test ! -s conftest.err
5164 } && test -s conftest.$ac_objext; then
5165 ac_cv_header_stdc=yes
5166 else
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5170 ac_cv_header_stdc=no
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175 if test $ac_cv_header_stdc = yes; then
5176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 #include <string.h>
5185 _ACEOF
5186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5187 $EGREP "memchr" >/dev/null 2>&1; then
5189 else
5190 ac_cv_header_stdc=no
5192 rm -f conftest*
5196 if test $ac_cv_header_stdc = yes; then
5197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5198 cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h. */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 #include <stdlib.h>
5206 _ACEOF
5207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5208 $EGREP "free" >/dev/null 2>&1; then
5210 else
5211 ac_cv_header_stdc=no
5213 rm -f conftest*
5217 if test $ac_cv_header_stdc = yes; then
5218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5219 if test "$cross_compiling" = yes; then
5221 else
5222 cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h. */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5228 #include <ctype.h>
5229 #include <stdlib.h>
5230 #if ((' ' & 0x0FF) == 0x020)
5231 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5232 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5233 #else
5234 # define ISLOWER(c) \
5235 (('a' <= (c) && (c) <= 'i') \
5236 || ('j' <= (c) && (c) <= 'r') \
5237 || ('s' <= (c) && (c) <= 'z'))
5238 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5239 #endif
5241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5243 main ()
5245 int i;
5246 for (i = 0; i < 256; i++)
5247 if (XOR (islower (i), ISLOWER (i))
5248 || toupper (i) != TOUPPER (i))
5249 return 2;
5250 return 0;
5252 _ACEOF
5253 rm -f conftest$ac_exeext
5254 if { (ac_try="$ac_link"
5255 case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258 esac
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_link") 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5264 { (case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_try") 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5274 else
5275 echo "$as_me: program exited with status $ac_status" >&5
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 ( exit $ac_status )
5280 ac_cv_header_stdc=no
5282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5288 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5289 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5290 if test $ac_cv_header_stdc = yes; then
5292 cat >>confdefs.h <<\_ACEOF
5293 #define STDC_HEADERS 1
5294 _ACEOF
5298 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5308 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5309 inttypes.h stdint.h unistd.h
5311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h. */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 $ac_includes_default
5325 #include <$ac_header>
5326 _ACEOF
5327 rm -f conftest.$ac_objext
5328 if { (ac_try="$ac_compile"
5329 case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_compile") 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } && {
5341 test -z "$ac_c_werror_flag" ||
5342 test ! -s conftest.err
5343 } && test -s conftest.$ac_objext; then
5344 eval "$as_ac_Header=yes"
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 eval "$as_ac_Header=no"
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 ac_res=`eval echo '${'$as_ac_Header'}'`
5355 { echo "$as_me:$LINENO: result: $ac_res" >&5
5356 echo "${ECHO_T}$ac_res" >&6; }
5357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5358 cat >>confdefs.h <<_ACEOF
5359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5360 _ACEOF
5364 done
5368 for ac_header in dlfcn.h
5370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 ac_res=`eval echo '${'$as_ac_Header'}'`
5378 { echo "$as_me:$LINENO: result: $ac_res" >&5
5379 echo "${ECHO_T}$ac_res" >&6; }
5380 else
5381 # Is the header compilable?
5382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 $ac_includes_default
5391 #include <$ac_header>
5392 _ACEOF
5393 rm -f conftest.$ac_objext
5394 if { (ac_try="$ac_compile"
5395 case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398 esac
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_compile") 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && {
5407 test -z "$ac_c_werror_flag" ||
5408 test ! -s conftest.err
5409 } && test -s conftest.$ac_objext; then
5410 ac_header_compiler=yes
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 ac_header_compiler=no
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5420 echo "${ECHO_T}$ac_header_compiler" >&6; }
5422 # Is the header present?
5423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <$ac_header>
5432 _ACEOF
5433 if { (ac_try="$ac_cpp conftest.$ac_ext"
5434 case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437 esac
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } >/dev/null && {
5446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5447 test ! -s conftest.err
5448 }; then
5449 ac_header_preproc=yes
5450 else
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5454 ac_header_preproc=no
5457 rm -f conftest.err conftest.$ac_ext
5458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5459 echo "${ECHO_T}$ac_header_preproc" >&6; }
5461 # So? What about this header?
5462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5463 yes:no: )
5464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5468 ac_header_preproc=yes
5470 no:yes:* )
5471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5485 esac
5486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491 eval "$as_ac_Header=\$ac_header_preproc"
5493 ac_res=`eval echo '${'$as_ac_Header'}'`
5494 { echo "$as_me:$LINENO: result: $ac_res" >&5
5495 echo "${ECHO_T}$ac_res" >&6; }
5498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5499 cat >>confdefs.h <<_ACEOF
5500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5501 _ACEOF
5505 done
5507 ac_ext=cpp
5508 ac_cpp='$CXXCPP $CPPFLAGS'
5509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5512 if test -z "$CXX"; then
5513 if test -n "$CCC"; then
5514 CXX=$CCC
5515 else
5516 if test -n "$ac_tool_prefix"; then
5517 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523 if test "${ac_cv_prog_CXX+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 if test -n "$CXX"; then
5527 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5540 done
5541 done
5542 IFS=$as_save_IFS
5546 CXX=$ac_cv_prog_CXX
5547 if test -n "$CXX"; then
5548 { echo "$as_me:$LINENO: result: $CXX" >&5
5549 echo "${ECHO_T}$CXX" >&6; }
5550 else
5551 { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5556 test -n "$CXX" && break
5557 done
5559 if test -z "$CXX"; then
5560 ac_ct_CXX=$CXX
5561 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5567 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570 if test -n "$ac_ct_CXX"; then
5571 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580 ac_cv_prog_ac_ct_CXX="$ac_prog"
5581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5584 done
5585 done
5586 IFS=$as_save_IFS
5590 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5591 if test -n "$ac_ct_CXX"; then
5592 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5593 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5594 else
5595 { echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6; }
5600 test -n "$ac_ct_CXX" && break
5601 done
5603 if test "x$ac_ct_CXX" = x; then
5604 CXX="g++"
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5609 whose name does not start with the host triplet. If you think this
5610 configuration is useful to you, please write to autoconf@gnu.org." >&5
5611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5612 whose name does not start with the host triplet. If you think this
5613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616 CXX=$ac_ct_CXX
5622 # Provide some information about the compiler.
5623 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5624 ac_compiler=`set X $ac_compile; echo $2`
5625 { (ac_try="$ac_compiler --version >&5"
5626 case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compiler --version >&5") 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }
5635 { (ac_try="$ac_compiler -v >&5"
5636 case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639 esac
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_compiler -v >&5") 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }
5645 { (ac_try="$ac_compiler -V >&5"
5646 case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compiler -V >&5") 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }
5656 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5657 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5658 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5669 main ()
5671 #ifndef __GNUC__
5672 choke me
5673 #endif
5676 return 0;
5678 _ACEOF
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5681 case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_cxx_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_compiler_gnu=yes
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5701 ac_compiler_gnu=no
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5708 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5709 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5710 GXX=`test $ac_compiler_gnu = yes && echo yes`
5711 ac_test_CXXFLAGS=${CXXFLAGS+set}
5712 ac_save_CXXFLAGS=$CXXFLAGS
5713 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5714 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5715 if test "${ac_cv_prog_cxx_g+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5719 ac_cxx_werror_flag=yes
5720 ac_cv_prog_cxx_g=no
5721 CXXFLAGS="-g"
5722 cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h. */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5730 main ()
5734 return 0;
5736 _ACEOF
5737 rm -f conftest.$ac_objext
5738 if { (ac_try="$ac_compile"
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_compile") 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); } && {
5751 test -z "$ac_cxx_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest.$ac_objext; then
5754 ac_cv_prog_cxx_g=yes
5755 else
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 CXXFLAGS=""
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5768 main ()
5772 return 0;
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5777 case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_cxx_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5798 CXXFLAGS="-g"
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5807 main ()
5811 return 0;
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } && {
5828 test -z "$ac_cxx_werror_flag" ||
5829 test ! -s conftest.err
5830 } && test -s conftest.$ac_objext; then
5831 ac_cv_prog_cxx_g=yes
5832 else
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5848 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5849 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5850 if test "$ac_test_CXXFLAGS" = set; then
5851 CXXFLAGS=$ac_save_CXXFLAGS
5852 elif test $ac_cv_prog_cxx_g = yes; then
5853 if test "$GXX" = yes; then
5854 CXXFLAGS="-g -O2"
5855 else
5856 CXXFLAGS="-g"
5858 else
5859 if test "$GXX" = yes; then
5860 CXXFLAGS="-O2"
5861 else
5862 CXXFLAGS=
5865 ac_ext=cpp
5866 ac_cpp='$CXXCPP $CPPFLAGS'
5867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5871 depcc="$CXX" am_compiler_list=
5873 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5874 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5875 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5879 # We make a subdir and do the tests there. Otherwise we can end up
5880 # making bogus files that we don't know about and never remove. For
5881 # instance it was reported that on HP-UX the gcc test will end up
5882 # making a dummy file named `D' -- because `-MD' means `put the output
5883 # in D'.
5884 mkdir conftest.dir
5885 # Copy depcomp to subdir because otherwise we won't find it if we're
5886 # using a relative directory.
5887 cp "$am_depcomp" conftest.dir
5888 cd conftest.dir
5889 # We will build objects and dependencies in a subdirectory because
5890 # it helps to detect inapplicable dependency modes. For instance
5891 # both Tru64's cc and ICC support -MD to output dependencies as a
5892 # side effect of compilation, but ICC will put the dependencies in
5893 # the current directory while Tru64 will put them in the object
5894 # directory.
5895 mkdir sub
5897 am_cv_CXX_dependencies_compiler_type=none
5898 if test "$am_compiler_list" = ""; then
5899 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5901 for depmode in $am_compiler_list; do
5902 # Setup a source with many dependencies, because some compilers
5903 # like to wrap large dependency lists on column 80 (with \), and
5904 # we should not choose a depcomp mode which is confused by this.
5906 # We need to recreate these files for each test, as the compiler may
5907 # overwrite some of them when testing with obscure command lines.
5908 # This happens at least with the AIX C compiler.
5909 : > sub/conftest.c
5910 for i in 1 2 3 4 5 6; do
5911 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5912 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5913 # Solaris 8's {/usr,}/bin/sh.
5914 touch sub/conftst$i.h
5915 done
5916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5918 case $depmode in
5919 nosideeffect)
5920 # after this tag, mechanisms are not by side-effect, so they'll
5921 # only be used when explicitly requested
5922 if test "x$enable_dependency_tracking" = xyes; then
5923 continue
5924 else
5925 break
5928 none) break ;;
5929 esac
5930 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5931 # mode. It turns out that the SunPro C++ compiler does not properly
5932 # handle `-M -o', and we need to detect this.
5933 if depmode=$depmode \
5934 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5935 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5936 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5937 >/dev/null 2>conftest.err &&
5938 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5939 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5940 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5941 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5942 # icc doesn't choke on unknown options, it will just issue warnings
5943 # or remarks (even with -Werror). So we grep stderr for any message
5944 # that says an option was ignored or not supported.
5945 # When given -MP, icc 7.0 and 7.1 complain thusly:
5946 # icc: Command line warning: ignoring option '-M'; no argument required
5947 # The diagnosis changed in icc 8.0:
5948 # icc: Command line remark: option '-MP' not supported
5949 if (grep 'ignoring option' conftest.err ||
5950 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5951 am_cv_CXX_dependencies_compiler_type=$depmode
5952 break
5955 done
5957 cd ..
5958 rm -rf conftest.dir
5959 else
5960 am_cv_CXX_dependencies_compiler_type=none
5964 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5965 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5966 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5969 test "x$enable_dependency_tracking" != xno \
5970 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5971 am__fastdepCXX_TRUE=
5972 am__fastdepCXX_FALSE='#'
5973 else
5974 am__fastdepCXX_TRUE='#'
5975 am__fastdepCXX_FALSE=
5981 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5982 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5983 (test "X$CXX" != "Xg++"))) ; then
5984 ac_ext=cpp
5985 ac_cpp='$CXXCPP $CPPFLAGS'
5986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5989 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5990 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5991 if test -z "$CXXCPP"; then
5992 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 # Double quotes because CXXCPP needs to be expanded
5996 for CXXCPP in "$CXX -E" "/lib/cpp"
5998 ac_preproc_ok=false
5999 for ac_cxx_preproc_warn_flag in '' yes
6001 # Use a header file that comes with gcc, so configuring glibc
6002 # with a fresh cross-compiler works.
6003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 # <limits.h> exists even on freestanding compilers.
6005 # On the NeXT, cc -E runs the code through the compiler's parser,
6006 # not just through cpp. "Syntax error" is here to catch this case.
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h. */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #ifdef __STDC__
6014 # include <limits.h>
6015 #else
6016 # include <assert.h>
6017 #endif
6018 Syntax error
6019 _ACEOF
6020 if { (ac_try="$ac_cpp conftest.$ac_ext"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } >/dev/null && {
6033 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6034 test ! -s conftest.err
6035 }; then
6037 else
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 # Broken: fails on valid input.
6042 continue
6045 rm -f conftest.err conftest.$ac_ext
6047 # OK, works on sane cases. Now check whether nonexistent headers
6048 # can be detected and how.
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #include <ac_nonexistent.h>
6056 _ACEOF
6057 if { (ac_try="$ac_cpp conftest.$ac_ext"
6058 case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061 esac
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } >/dev/null && {
6070 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6071 test ! -s conftest.err
6072 }; then
6073 # Broken: success on invalid input.
6074 continue
6075 else
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 # Passes both tests.
6080 ac_preproc_ok=:
6081 break
6084 rm -f conftest.err conftest.$ac_ext
6086 done
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.err conftest.$ac_ext
6089 if $ac_preproc_ok; then
6090 break
6093 done
6094 ac_cv_prog_CXXCPP=$CXXCPP
6097 CXXCPP=$ac_cv_prog_CXXCPP
6098 else
6099 ac_cv_prog_CXXCPP=$CXXCPP
6101 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6102 echo "${ECHO_T}$CXXCPP" >&6; }
6103 ac_preproc_ok=false
6104 for ac_cxx_preproc_warn_flag in '' yes
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h. */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 #ifdef __STDC__
6119 # include <limits.h>
6120 #else
6121 # include <assert.h>
6122 #endif
6123 Syntax error
6124 _ACEOF
6125 if { (ac_try="$ac_cpp conftest.$ac_ext"
6126 case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129 esac
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } >/dev/null && {
6138 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6139 test ! -s conftest.err
6140 }; then
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 # Broken: fails on valid input.
6147 continue
6150 rm -f conftest.err conftest.$ac_ext
6152 # OK, works on sane cases. Now check whether nonexistent headers
6153 # can be detected and how.
6154 cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h. */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 #include <ac_nonexistent.h>
6161 _ACEOF
6162 if { (ac_try="$ac_cpp conftest.$ac_ext"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } >/dev/null && {
6175 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6176 test ! -s conftest.err
6177 }; then
6178 # Broken: success on invalid input.
6179 continue
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6184 # Passes both tests.
6185 ac_preproc_ok=:
6186 break
6189 rm -f conftest.err conftest.$ac_ext
6191 done
6192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193 rm -f conftest.err conftest.$ac_ext
6194 if $ac_preproc_ok; then
6196 else
6197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6198 See \`config.log' for more details." >&5
6199 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6200 See \`config.log' for more details." >&2;}
6201 { (exit 1); exit 1; }; }
6204 ac_ext=cpp
6205 ac_cpp='$CXXCPP $CPPFLAGS'
6206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6213 ac_ext=f
6214 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6215 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6217 if test -n "$ac_tool_prefix"; then
6218 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
6220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_prog_F77+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227 if test -n "$F77"; then
6228 ac_cv_prog_F77="$F77" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6241 done
6242 done
6243 IFS=$as_save_IFS
6247 F77=$ac_cv_prog_F77
6248 if test -n "$F77"; then
6249 { echo "$as_me:$LINENO: result: $F77" >&5
6250 echo "${ECHO_T}$F77" >&6; }
6251 else
6252 { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6257 test -n "$F77" && break
6258 done
6260 if test -z "$F77"; then
6261 ac_ct_F77=$F77
6262 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
6264 # Extract the first word of "$ac_prog", so it can be a program name with args.
6265 set dummy $ac_prog; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271 if test -n "$ac_ct_F77"; then
6272 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_ac_ct_F77="$ac_prog"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6285 done
6286 done
6287 IFS=$as_save_IFS
6291 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6292 if test -n "$ac_ct_F77"; then
6293 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6294 echo "${ECHO_T}$ac_ct_F77" >&6; }
6295 else
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6301 test -n "$ac_ct_F77" && break
6302 done
6304 if test "x$ac_ct_F77" = x; then
6305 F77=""
6306 else
6307 case $cross_compiling:$ac_tool_warned in
6308 yes:)
6309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6310 whose name does not start with the host triplet. If you think this
6311 configuration is useful to you, please write to autoconf@gnu.org." >&5
6312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6313 whose name does not start with the host triplet. If you think this
6314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6315 ac_tool_warned=yes ;;
6316 esac
6317 F77=$ac_ct_F77
6322 # Provide some information about the compiler.
6323 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6324 ac_compiler=`set X $ac_compile; echo $2`
6325 { (ac_try="$ac_compiler --version >&5"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compiler --version >&5") 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }
6335 { (ac_try="$ac_compiler -v >&5"
6336 case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_compiler -v >&5") 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }
6345 { (ac_try="$ac_compiler -V >&5"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compiler -V >&5") 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }
6355 rm -f a.out
6357 # If we don't use `.F' as extension, the preprocessor is not run on the
6358 # input file. (Note that this only needs to work for GNU compilers.)
6359 ac_save_ext=$ac_ext
6360 ac_ext=F
6361 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6362 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6363 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366 cat >conftest.$ac_ext <<_ACEOF
6367 program main
6368 #ifndef __GNUC__
6369 choke me
6370 #endif
6373 _ACEOF
6374 rm -f conftest.$ac_objext
6375 if { (ac_try="$ac_compile"
6376 case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compile") 2>conftest.er1
6382 ac_status=$?
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } && {
6388 test -z "$ac_f77_werror_flag" ||
6389 test ! -s conftest.err
6390 } && test -s conftest.$ac_objext; then
6391 ac_compiler_gnu=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6396 ac_compiler_gnu=no
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6403 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6404 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6405 ac_ext=$ac_save_ext
6406 ac_test_FFLAGS=${FFLAGS+set}
6407 ac_save_FFLAGS=$FFLAGS
6408 FFLAGS=
6409 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6410 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6411 if test "${ac_cv_prog_f77_g+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414 FFLAGS=-g
6415 cat >conftest.$ac_ext <<_ACEOF
6416 program main
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (ac_try="$ac_compile"
6422 case "(($ac_try" in
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6425 esac
6426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427 (eval "$ac_compile") 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && {
6434 test -z "$ac_f77_werror_flag" ||
6435 test ! -s conftest.err
6436 } && test -s conftest.$ac_objext; then
6437 ac_cv_prog_f77_g=yes
6438 else
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_cv_prog_f77_g=no
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6449 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6450 if test "$ac_test_FFLAGS" = set; then
6451 FFLAGS=$ac_save_FFLAGS
6452 elif test $ac_cv_prog_f77_g = yes; then
6453 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6454 FFLAGS="-g -O2"
6455 else
6456 FFLAGS="-g"
6458 else
6459 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6460 FFLAGS="-O2"
6461 else
6462 FFLAGS=
6466 G77=`test $ac_compiler_gnu = yes && echo yes`
6467 ac_ext=c
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6475 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6477 # find the maximum length of command line arguments
6478 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6479 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6484 teststring="ABCD"
6486 case $build_os in
6487 msdosdjgpp*)
6488 # On DJGPP, this test can blow up pretty badly due to problems in libc
6489 # (any single argument exceeding 2000 bytes causes a buffer overrun
6490 # during glob expansion). Even if it were fixed, the result of this
6491 # check would be larger than it should be.
6492 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6495 gnu*)
6496 # Under GNU Hurd, this test is not required because there is
6497 # no limit to the length of command line arguments.
6498 # Libtool will interpret -1 as no limit whatsoever
6499 lt_cv_sys_max_cmd_len=-1;
6502 cygwin* | mingw*)
6503 # On Win9x/ME, this test blows up -- it succeeds, but takes
6504 # about 5 minutes as the teststring grows exponentially.
6505 # Worse, since 9x/ME are not pre-emptively multitasking,
6506 # you end up with a "frozen" computer, even though with patience
6507 # the test eventually succeeds (with a max line length of 256k).
6508 # Instead, let's just punt: use the minimum linelength reported by
6509 # all of the supported platforms: 8192 (on NT/2K/XP).
6510 lt_cv_sys_max_cmd_len=8192;
6513 amigaos*)
6514 # On AmigaOS with pdksh, this test takes hours, literally.
6515 # So we just punt and use a minimum line length of 8192.
6516 lt_cv_sys_max_cmd_len=8192;
6519 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6520 # This has been around since 386BSD, at least. Likely further.
6521 if test -x /sbin/sysctl; then
6522 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6523 elif test -x /usr/sbin/sysctl; then
6524 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6525 else
6526 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6528 # And add a safety zone
6529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6533 interix*)
6534 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6535 lt_cv_sys_max_cmd_len=196608
6538 osf*)
6539 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6540 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6541 # nice to cause kernel panics so lets avoid the loop below.
6542 # First set a reasonable default.
6543 lt_cv_sys_max_cmd_len=16384
6545 if test -x /sbin/sysconfig; then
6546 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6547 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6548 esac
6551 sco3.2v5*)
6552 lt_cv_sys_max_cmd_len=102400
6554 sysv5* | sco5v6* | sysv4.2uw2*)
6555 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6556 if test -n "$kargmax"; then
6557 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6558 else
6559 lt_cv_sys_max_cmd_len=32768
6563 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6564 if test -n "$lt_cv_sys_max_cmd_len"; then
6565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6567 else
6568 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6569 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6570 = "XX$teststring") >/dev/null 2>&1 &&
6571 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6572 lt_cv_sys_max_cmd_len=$new_result &&
6573 test $i != 17 # 1/2 MB should be enough
6575 i=`expr $i + 1`
6576 teststring=$teststring$teststring
6577 done
6578 teststring=
6579 # Add a significant safety factor because C++ compilers can tack on massive
6580 # amounts of additional arguments before passing them to the linker.
6581 # It appears as though 1/2 is a usable value.
6582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6585 esac
6589 if test -n $lt_cv_sys_max_cmd_len ; then
6590 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6591 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6592 else
6593 { echo "$as_me:$LINENO: result: none" >&5
6594 echo "${ECHO_T}none" >&6; }
6601 # Check for command to grab the raw symbol name followed by C symbol from nm.
6602 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6603 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6604 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6608 # These are sane defaults that work on at least a few old systems.
6609 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6611 # Character class describing NM global symbol codes.
6612 symcode='[BCDEGRST]'
6614 # Regexp to match symbols that can be accessed directly from C.
6615 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6617 # Transform an extracted symbol line into a proper C declaration
6618 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6620 # Transform an extracted symbol line into symbol name and symbol address
6621 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'"
6623 # Define system-specific variables.
6624 case $host_os in
6625 aix*)
6626 symcode='[BCDT]'
6628 cygwin* | mingw* | pw32*)
6629 symcode='[ABCDGISTW]'
6631 hpux*) # Its linker distinguishes data from code symbols
6632 if test "$host_cpu" = ia64; then
6633 symcode='[ABCDEGRST]'
6635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6636 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'"
6638 linux* | k*bsd*-gnu)
6639 if test "$host_cpu" = ia64; then
6640 symcode='[ABCDGIRSTW]'
6641 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6642 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'"
6645 irix* | nonstopux*)
6646 symcode='[BCDEGRST]'
6648 osf*)
6649 symcode='[BCDEGQRST]'
6651 solaris*)
6652 symcode='[BDRT]'
6654 sco3.2v5*)
6655 symcode='[DT]'
6657 sysv4.2uw2*)
6658 symcode='[DT]'
6660 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6661 symcode='[ABDT]'
6663 sysv4)
6664 symcode='[DFNSTU]'
6666 esac
6668 # Handle CRLF in mingw tool chain
6669 opt_cr=
6670 case $build_os in
6671 mingw*)
6672 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6674 esac
6676 # If we're using GNU nm, then use its standard symbol codes.
6677 case `$NM -V 2>&1` in
6678 *GNU* | *'with BFD'*)
6679 symcode='[ABCDGIRSTW]' ;;
6680 esac
6682 # Try without a prefix undercore, then with it.
6683 for ac_symprfx in "" "_"; do
6685 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6686 symxfrm="\\1 $ac_symprfx\\2 \\2"
6688 # Write the raw and C identifiers.
6689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6691 # Check to see that the pipe works correctly.
6692 pipe_works=no
6694 rm -f conftest*
6695 cat > conftest.$ac_ext <<EOF
6696 #ifdef __cplusplus
6697 extern "C" {
6698 #endif
6699 char nm_test_var;
6700 void nm_test_func(){}
6701 #ifdef __cplusplus
6703 #endif
6704 int main(){nm_test_var='a';nm_test_func();return(0);}
6707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6708 (eval $ac_compile) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; then
6712 # Now try to grab the symbols.
6713 nlist=conftest.nm
6714 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6715 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && test -s "$nlist"; then
6719 # Try sorting and uniquifying the output.
6720 if sort "$nlist" | uniq > "$nlist"T; then
6721 mv -f "$nlist"T "$nlist"
6722 else
6723 rm -f "$nlist"T
6726 # Make sure that we snagged all the symbols we need.
6727 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6728 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6729 cat <<EOF > conftest.$ac_ext
6730 #ifdef __cplusplus
6731 extern "C" {
6732 #endif
6735 # Now generate the symbol file.
6736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6738 cat <<EOF >> conftest.$ac_ext
6739 #if defined (__STDC__) && __STDC__
6740 # define lt_ptr_t void *
6741 #else
6742 # define lt_ptr_t char *
6743 # define const
6744 #endif
6746 /* The mapping between symbol names and symbols. */
6747 const struct {
6748 const char *name;
6749 lt_ptr_t address;
6751 lt_preloaded_symbols[] =
6754 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6755 cat <<\EOF >> conftest.$ac_ext
6756 {0, (lt_ptr_t) 0}
6759 #ifdef __cplusplus
6761 #endif
6763 # Now try linking the two files.
6764 mv conftest.$ac_objext conftstm.$ac_objext
6765 lt_save_LIBS="$LIBS"
6766 lt_save_CFLAGS="$CFLAGS"
6767 LIBS="conftstm.$ac_objext"
6768 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6774 pipe_works=yes
6776 LIBS="$lt_save_LIBS"
6777 CFLAGS="$lt_save_CFLAGS"
6778 else
6779 echo "cannot find nm_test_func in $nlist" >&5
6781 else
6782 echo "cannot find nm_test_var in $nlist" >&5
6784 else
6785 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6787 else
6788 echo "$progname: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6791 rm -f conftest* conftst*
6793 # Do not use the global_symbol_pipe unless it works.
6794 if test "$pipe_works" = yes; then
6795 break
6796 else
6797 lt_cv_sys_global_symbol_pipe=
6799 done
6803 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6804 lt_cv_sys_global_symbol_to_cdecl=
6806 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6807 { echo "$as_me:$LINENO: result: failed" >&5
6808 echo "${ECHO_T}failed" >&6; }
6809 else
6810 { echo "$as_me:$LINENO: result: ok" >&5
6811 echo "${ECHO_T}ok" >&6; }
6814 { echo "$as_me:$LINENO: checking for objdir" >&5
6815 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6816 if test "${lt_cv_objdir+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 rm -f .libs 2>/dev/null
6820 mkdir .libs 2>/dev/null
6821 if test -d .libs; then
6822 lt_cv_objdir=.libs
6823 else
6824 # MS-DOS does not allow filenames that begin with a dot.
6825 lt_cv_objdir=_libs
6827 rmdir .libs 2>/dev/null
6829 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6830 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6831 objdir=$lt_cv_objdir
6837 case $host_os in
6838 aix3*)
6839 # AIX sometimes has problems with the GCC collect2 program. For some
6840 # reason, if we set the COLLECT_NAMES environment variable, the problems
6841 # vanish in a puff of smoke.
6842 if test "X${COLLECT_NAMES+set}" != Xset; then
6843 COLLECT_NAMES=
6844 export COLLECT_NAMES
6847 esac
6849 # Sed substitution that helps us do robust quoting. It backslashifies
6850 # metacharacters that are still active within double-quoted strings.
6851 Xsed='sed -e 1s/^X//'
6852 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6854 # Same as above, but do not quote variable references.
6855 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6857 # Sed substitution to delay expansion of an escaped shell variable in a
6858 # double_quote_subst'ed string.
6859 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6861 # Sed substitution to avoid accidental globbing in evaled expressions
6862 no_glob_subst='s/\*/\\\*/g'
6864 # Constants:
6865 rm="rm -f"
6867 # Global variables:
6868 default_ofile=libtool
6869 can_build_shared=yes
6871 # All known linkers require a `.a' archive for static linking (except MSVC,
6872 # which needs '.lib').
6873 libext=a
6874 ltmain="$ac_aux_dir/ltmain.sh"
6875 ofile="$default_ofile"
6876 with_gnu_ld="$lt_cv_prog_gnu_ld"
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6880 set dummy ${ac_tool_prefix}ar; ac_word=$2
6881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6883 if test "${ac_cv_prog_AR+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886 if test -n "$AR"; then
6887 ac_cv_prog_AR="$AR" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_AR="${ac_tool_prefix}ar"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6900 done
6901 done
6902 IFS=$as_save_IFS
6906 AR=$ac_cv_prog_AR
6907 if test -n "$AR"; then
6908 { echo "$as_me:$LINENO: result: $AR" >&5
6909 echo "${ECHO_T}$AR" >&6; }
6910 else
6911 { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6917 if test -z "$ac_cv_prog_AR"; then
6918 ac_ct_AR=$AR
6919 # Extract the first word of "ar", so it can be a program name with args.
6920 set dummy ar; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 if test -n "$ac_ct_AR"; then
6927 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_ac_ct_AR="ar"
6937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6940 done
6941 done
6942 IFS=$as_save_IFS
6946 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6947 if test -n "$ac_ct_AR"; then
6948 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6949 echo "${ECHO_T}$ac_ct_AR" >&6; }
6950 else
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6955 if test "x$ac_ct_AR" = x; then
6956 AR="false"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959 yes:)
6960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6961 whose name does not start with the host triplet. If you think this
6962 configuration is useful to you, please write to autoconf@gnu.org." >&5
6963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6964 whose name does not start with the host triplet. If you think this
6965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 AR=$ac_ct_AR
6970 else
6971 AR="$ac_cv_prog_AR"
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6976 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6979 if test "${ac_cv_prog_RANLIB+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 if test -n "$RANLIB"; then
6983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6992 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6996 done
6997 done
6998 IFS=$as_save_IFS
7002 RANLIB=$ac_cv_prog_RANLIB
7003 if test -n "$RANLIB"; then
7004 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7005 echo "${ECHO_T}$RANLIB" >&6; }
7006 else
7007 { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7013 if test -z "$ac_cv_prog_RANLIB"; then
7014 ac_ct_RANLIB=$RANLIB
7015 # Extract the first word of "ranlib", so it can be a program name with args.
7016 set dummy ranlib; ac_word=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 if test -n "$ac_ct_RANLIB"; then
7023 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_prog_ac_ct_RANLIB="ranlib"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7036 done
7037 done
7038 IFS=$as_save_IFS
7042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7043 if test -n "$ac_ct_RANLIB"; then
7044 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7045 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7046 else
7047 { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7051 if test "x$ac_ct_RANLIB" = x; then
7052 RANLIB=":"
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055 yes:)
7056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7057 whose name does not start with the host triplet. If you think this
7058 configuration is useful to you, please write to autoconf@gnu.org." >&5
7059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7060 whose name does not start with the host triplet. If you think this
7061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7062 ac_tool_warned=yes ;;
7063 esac
7064 RANLIB=$ac_ct_RANLIB
7066 else
7067 RANLIB="$ac_cv_prog_RANLIB"
7070 if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7072 set dummy ${ac_tool_prefix}strip; ac_word=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_prog_STRIP+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078 if test -n "$STRIP"; then
7079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7092 done
7093 done
7094 IFS=$as_save_IFS
7098 STRIP=$ac_cv_prog_STRIP
7099 if test -n "$STRIP"; then
7100 { echo "$as_me:$LINENO: result: $STRIP" >&5
7101 echo "${ECHO_T}$STRIP" >&6; }
7102 else
7103 { echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6; }
7109 if test -z "$ac_cv_prog_STRIP"; then
7110 ac_ct_STRIP=$STRIP
7111 # Extract the first word of "strip", so it can be a program name with args.
7112 set dummy strip; ac_word=$2
7113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 if test -n "$ac_ct_STRIP"; then
7119 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7120 else
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_prog_ac_ct_STRIP="strip"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 break 2
7132 done
7133 done
7134 IFS=$as_save_IFS
7138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7139 if test -n "$ac_ct_STRIP"; then
7140 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7141 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7142 else
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7147 if test "x$ac_ct_STRIP" = x; then
7148 STRIP=":"
7149 else
7150 case $cross_compiling:$ac_tool_warned in
7151 yes:)
7152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7153 whose name does not start with the host triplet. If you think this
7154 configuration is useful to you, please write to autoconf@gnu.org." >&5
7155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7156 whose name does not start with the host triplet. If you think this
7157 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7158 ac_tool_warned=yes ;;
7159 esac
7160 STRIP=$ac_ct_STRIP
7162 else
7163 STRIP="$ac_cv_prog_STRIP"
7167 old_CC="$CC"
7168 old_CFLAGS="$CFLAGS"
7170 # Set sane defaults for various variables
7171 test -z "$AR" && AR=ar
7172 test -z "$AR_FLAGS" && AR_FLAGS=cru
7173 test -z "$AS" && AS=as
7174 test -z "$CC" && CC=cc
7175 test -z "$LTCC" && LTCC=$CC
7176 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7177 test -z "$DLLTOOL" && DLLTOOL=dlltool
7178 test -z "$LD" && LD=ld
7179 test -z "$LN_S" && LN_S="ln -s"
7180 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7181 test -z "$NM" && NM=nm
7182 test -z "$SED" && SED=sed
7183 test -z "$OBJDUMP" && OBJDUMP=objdump
7184 test -z "$RANLIB" && RANLIB=:
7185 test -z "$STRIP" && STRIP=:
7186 test -z "$ac_objext" && ac_objext=o
7188 # Determine commands to create old-style static archives.
7189 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7190 old_postinstall_cmds='chmod 644 $oldlib'
7191 old_postuninstall_cmds=
7193 if test -n "$RANLIB"; then
7194 case $host_os in
7195 openbsd*)
7196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7201 esac
7202 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7205 for cc_temp in $compiler""; do
7206 case $cc_temp in
7207 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7208 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7209 \-*) ;;
7210 *) break;;
7211 esac
7212 done
7213 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7216 # Only perform the check for file, if the check method requires it
7217 case $deplibs_check_method in
7218 file_magic*)
7219 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7220 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7221 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225 case $MAGIC_CMD in
7226 [\\/*] | ?:[\\/]*)
7227 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7230 lt_save_MAGIC_CMD="$MAGIC_CMD"
7231 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7232 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7233 for ac_dir in $ac_dummy; do
7234 IFS="$lt_save_ifs"
7235 test -z "$ac_dir" && ac_dir=.
7236 if test -f $ac_dir/${ac_tool_prefix}file; then
7237 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7238 if test -n "$file_magic_test_file"; then
7239 case $deplibs_check_method in
7240 "file_magic "*)
7241 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7242 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7243 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7244 $EGREP "$file_magic_regex" > /dev/null; then
7246 else
7247 cat <<EOF 1>&2
7249 *** Warning: the command libtool uses to detect shared libraries,
7250 *** $file_magic_cmd, produces output that libtool cannot recognize.
7251 *** The result is that libtool may fail to recognize shared libraries
7252 *** as such. This will affect the creation of libtool libraries that
7253 *** depend on shared libraries, but programs linked with such libtool
7254 *** libraries will work regardless of this problem. Nevertheless, you
7255 *** may want to report the problem to your system manager and/or to
7256 *** bug-libtool@gnu.org
7259 fi ;;
7260 esac
7262 break
7264 done
7265 IFS="$lt_save_ifs"
7266 MAGIC_CMD="$lt_save_MAGIC_CMD"
7268 esac
7271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7272 if test -n "$MAGIC_CMD"; then
7273 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7274 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7275 else
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7280 if test -z "$lt_cv_path_MAGIC_CMD"; then
7281 if test -n "$ac_tool_prefix"; then
7282 { echo "$as_me:$LINENO: checking for file" >&5
7283 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287 case $MAGIC_CMD in
7288 [\\/*] | ?:[\\/]*)
7289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7292 lt_save_MAGIC_CMD="$MAGIC_CMD"
7293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7295 for ac_dir in $ac_dummy; do
7296 IFS="$lt_save_ifs"
7297 test -z "$ac_dir" && ac_dir=.
7298 if test -f $ac_dir/file; then
7299 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7300 if test -n "$file_magic_test_file"; then
7301 case $deplibs_check_method in
7302 "file_magic "*)
7303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7306 $EGREP "$file_magic_regex" > /dev/null; then
7308 else
7309 cat <<EOF 1>&2
7311 *** Warning: the command libtool uses to detect shared libraries,
7312 *** $file_magic_cmd, produces output that libtool cannot recognize.
7313 *** The result is that libtool may fail to recognize shared libraries
7314 *** as such. This will affect the creation of libtool libraries that
7315 *** depend on shared libraries, but programs linked with such libtool
7316 *** libraries will work regardless of this problem. Nevertheless, you
7317 *** may want to report the problem to your system manager and/or to
7318 *** bug-libtool@gnu.org
7321 fi ;;
7322 esac
7324 break
7326 done
7327 IFS="$lt_save_ifs"
7328 MAGIC_CMD="$lt_save_MAGIC_CMD"
7330 esac
7333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7334 if test -n "$MAGIC_CMD"; then
7335 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7337 else
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7342 else
7343 MAGIC_CMD=:
7349 esac
7351 enable_dlopen=no
7352 enable_win32_dll=no
7354 # Check whether --enable-libtool-lock was given.
7355 if test "${enable_libtool_lock+set}" = set; then
7356 enableval=$enable_libtool_lock;
7359 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7362 # Check whether --with-pic was given.
7363 if test "${with_pic+set}" = set; then
7364 withval=$with_pic; pic_mode="$withval"
7365 else
7366 pic_mode=default
7369 test -z "$pic_mode" && pic_mode=default
7371 # Use C for the default configuration in the libtool script
7372 tagname=
7373 lt_save_CC="$CC"
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7381 # Source file extension for C test sources.
7382 ac_ext=c
7384 # Object file extension for compiled C test sources.
7385 objext=o
7386 objext=$objext
7388 # Code to be used in simple compile tests
7389 lt_simple_compile_test_code="int some_variable = 0;"
7391 # Code to be used in simple link tests
7392 lt_simple_link_test_code='int main(){return(0);}'
7395 # If no C compiler was specified, use CC.
7396 LTCC=${LTCC-"$CC"}
7398 # If no C compiler flags were specified, use CFLAGS.
7399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7401 # Allow CC to be a program name with arguments.
7402 compiler=$CC
7405 # save warnings/boilerplate of simple test code
7406 ac_outfile=conftest.$ac_objext
7407 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7408 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7409 _lt_compiler_boilerplate=`cat conftest.err`
7410 $rm conftest*
7412 ac_outfile=conftest.$ac_objext
7413 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7414 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7415 _lt_linker_boilerplate=`cat conftest.err`
7416 $rm conftest*
7420 lt_prog_compiler_no_builtin_flag=
7422 if test "$GCC" = yes; then
7423 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7426 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7427 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7428 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431 lt_cv_prog_compiler_rtti_exceptions=no
7432 ac_outfile=conftest.$ac_objext
7433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7434 lt_compiler_flag="-fno-rtti -fno-exceptions"
7435 # Insert the option either (1) after the last *FLAGS variable, or
7436 # (2) before a word containing "conftest.", or (3) at the end.
7437 # Note that $ac_compile itself does not contain backslashes and begins
7438 # with a dollar sign (not a hyphen), so the echo should work correctly.
7439 # The option is referenced via a variable to avoid confusing sed.
7440 lt_compile=`echo "$ac_compile" | $SED \
7441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7443 -e 's:$: $lt_compiler_flag:'`
7444 (eval echo "\"\$as_me:7443: $lt_compile\"" >&5)
7445 (eval "$lt_compile" 2>conftest.err)
7446 ac_status=$?
7447 cat conftest.err >&5
7448 echo "$as_me:7447: \$? = $ac_status" >&5
7449 if (exit $ac_status) && test -s "$ac_outfile"; then
7450 # The compiler can only warn and ignore the option if not recognized
7451 # So say no if there are warnings other than the usual output.
7452 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7454 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7455 lt_cv_prog_compiler_rtti_exceptions=yes
7458 $rm conftest*
7461 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7462 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7464 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7465 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7466 else
7472 lt_prog_compiler_wl=
7473 lt_prog_compiler_pic=
7474 lt_prog_compiler_static=
7476 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7477 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7479 if test "$GCC" = yes; then
7480 lt_prog_compiler_wl='-Wl,'
7481 lt_prog_compiler_static='-static'
7483 case $host_os in
7484 aix*)
7485 # All AIX code is PIC.
7486 if test "$host_cpu" = ia64; then
7487 # AIX 5 now supports IA64 processor
7488 lt_prog_compiler_static='-Bstatic'
7492 amigaos*)
7493 # FIXME: we need at least 68020 code to build shared libraries, but
7494 # adding the `-m68020' flag to GCC prevents building anything better,
7495 # like `-m68040'.
7496 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7499 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7500 # PIC is the default for these OSes.
7503 mingw* | cygwin* | pw32* | os2*)
7504 # This hack is so that the source file can tell whether it is being
7505 # built for inclusion in a dll (and should export symbols for example).
7506 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7507 # (--disable-auto-import) libraries
7508 lt_prog_compiler_pic='-DDLL_EXPORT'
7511 darwin* | rhapsody*)
7512 # PIC is the default on this platform
7513 # Common symbols not allowed in MH_DYLIB files
7514 lt_prog_compiler_pic='-fno-common'
7517 interix[3-9]*)
7518 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7519 # Instead, we relocate shared libraries at runtime.
7522 msdosdjgpp*)
7523 # Just because we use GCC doesn't mean we suddenly get shared libraries
7524 # on systems that don't support them.
7525 lt_prog_compiler_can_build_shared=no
7526 enable_shared=no
7529 sysv4*MP*)
7530 if test -d /usr/nec; then
7531 lt_prog_compiler_pic=-Kconform_pic
7535 hpux*)
7536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7537 # not for PA HP-UX.
7538 case $host_cpu in
7539 hppa*64*|ia64*)
7540 # +Z the default
7543 lt_prog_compiler_pic='-fPIC'
7545 esac
7549 lt_prog_compiler_pic='-fPIC'
7551 esac
7552 else
7553 # PORTME Check for flag to pass linker flags through the system compiler.
7554 case $host_os in
7555 aix*)
7556 lt_prog_compiler_wl='-Wl,'
7557 if test "$host_cpu" = ia64; then
7558 # AIX 5 now supports IA64 processor
7559 lt_prog_compiler_static='-Bstatic'
7560 else
7561 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7564 darwin*)
7565 # PIC is the default on this platform
7566 # Common symbols not allowed in MH_DYLIB files
7567 case $cc_basename in
7568 xlc*)
7569 lt_prog_compiler_pic='-qnocommon'
7570 lt_prog_compiler_wl='-Wl,'
7572 esac
7575 mingw* | cygwin* | pw32* | os2*)
7576 # This hack is so that the source file can tell whether it is being
7577 # built for inclusion in a dll (and should export symbols for example).
7578 lt_prog_compiler_pic='-DDLL_EXPORT'
7581 hpux9* | hpux10* | hpux11*)
7582 lt_prog_compiler_wl='-Wl,'
7583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7584 # not for PA HP-UX.
7585 case $host_cpu in
7586 hppa*64*|ia64*)
7587 # +Z the default
7590 lt_prog_compiler_pic='+Z'
7592 esac
7593 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7594 lt_prog_compiler_static='${wl}-a ${wl}archive'
7597 irix5* | irix6* | nonstopux*)
7598 lt_prog_compiler_wl='-Wl,'
7599 # PIC (with -KPIC) is the default.
7600 lt_prog_compiler_static='-non_shared'
7603 newsos6)
7604 lt_prog_compiler_pic='-KPIC'
7605 lt_prog_compiler_static='-Bstatic'
7608 linux* | k*bsd*-gnu)
7609 case $cc_basename in
7610 icc* | ecc*)
7611 lt_prog_compiler_wl='-Wl,'
7612 lt_prog_compiler_pic='-KPIC'
7613 lt_prog_compiler_static='-static'
7615 pgcc* | pgf77* | pgf90* | pgf95*)
7616 # Portland Group compilers (*not* the Pentium gcc compiler,
7617 # which looks to be a dead project)
7618 lt_prog_compiler_wl='-Wl,'
7619 lt_prog_compiler_pic='-fpic'
7620 lt_prog_compiler_static='-Bstatic'
7622 ccc*)
7623 lt_prog_compiler_wl='-Wl,'
7624 # All Alpha code is PIC.
7625 lt_prog_compiler_static='-non_shared'
7628 case `$CC -V 2>&1 | sed 5q` in
7629 *Sun\ C*)
7630 # Sun C 5.9
7631 lt_prog_compiler_pic='-KPIC'
7632 lt_prog_compiler_static='-Bstatic'
7633 lt_prog_compiler_wl='-Wl,'
7635 *Sun\ F*)
7636 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7637 lt_prog_compiler_pic='-KPIC'
7638 lt_prog_compiler_static='-Bstatic'
7639 lt_prog_compiler_wl=''
7641 esac
7643 esac
7646 osf3* | osf4* | osf5*)
7647 lt_prog_compiler_wl='-Wl,'
7648 # All OSF/1 code is PIC.
7649 lt_prog_compiler_static='-non_shared'
7652 rdos*)
7653 lt_prog_compiler_static='-non_shared'
7656 solaris*)
7657 lt_prog_compiler_pic='-KPIC'
7658 lt_prog_compiler_static='-Bstatic'
7659 case $cc_basename in
7660 f77* | f90* | f95*)
7661 lt_prog_compiler_wl='-Qoption ld ';;
7663 lt_prog_compiler_wl='-Wl,';;
7664 esac
7667 sunos4*)
7668 lt_prog_compiler_wl='-Qoption ld '
7669 lt_prog_compiler_pic='-PIC'
7670 lt_prog_compiler_static='-Bstatic'
7673 sysv4 | sysv4.2uw2* | sysv4.3*)
7674 lt_prog_compiler_wl='-Wl,'
7675 lt_prog_compiler_pic='-KPIC'
7676 lt_prog_compiler_static='-Bstatic'
7679 sysv4*MP*)
7680 if test -d /usr/nec ;then
7681 lt_prog_compiler_pic='-Kconform_pic'
7682 lt_prog_compiler_static='-Bstatic'
7686 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7687 lt_prog_compiler_wl='-Wl,'
7688 lt_prog_compiler_pic='-KPIC'
7689 lt_prog_compiler_static='-Bstatic'
7692 unicos*)
7693 lt_prog_compiler_wl='-Wl,'
7694 lt_prog_compiler_can_build_shared=no
7697 uts4*)
7698 lt_prog_compiler_pic='-pic'
7699 lt_prog_compiler_static='-Bstatic'
7703 lt_prog_compiler_can_build_shared=no
7705 esac
7708 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7709 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7712 # Check to make sure the PIC flag actually works.
7714 if test -n "$lt_prog_compiler_pic"; then
7716 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7717 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7718 if test "${lt_prog_compiler_pic_works+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721 lt_prog_compiler_pic_works=no
7722 ac_outfile=conftest.$ac_objext
7723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7724 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7725 # Insert the option either (1) after the last *FLAGS variable, or
7726 # (2) before a word containing "conftest.", or (3) at the end.
7727 # Note that $ac_compile itself does not contain backslashes and begins
7728 # with a dollar sign (not a hyphen), so the echo should work correctly.
7729 # The option is referenced via a variable to avoid confusing sed.
7730 lt_compile=`echo "$ac_compile" | $SED \
7731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7733 -e 's:$: $lt_compiler_flag:'`
7734 (eval echo "\"\$as_me:7733: $lt_compile\"" >&5)
7735 (eval "$lt_compile" 2>conftest.err)
7736 ac_status=$?
7737 cat conftest.err >&5
7738 echo "$as_me:7737: \$? = $ac_status" >&5
7739 if (exit $ac_status) && test -s "$ac_outfile"; then
7740 # The compiler can only warn and ignore the option if not recognized
7741 # So say no if there are warnings other than the usual output.
7742 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7745 lt_prog_compiler_pic_works=yes
7748 $rm conftest*
7751 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7752 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7754 if test x"$lt_prog_compiler_pic_works" = xyes; then
7755 case $lt_prog_compiler_pic in
7756 "" | " "*) ;;
7757 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7758 esac
7759 else
7760 lt_prog_compiler_pic=
7761 lt_prog_compiler_can_build_shared=no
7765 case $host_os in
7766 # For platforms which do not support PIC, -DPIC is meaningless:
7767 *djgpp*)
7768 lt_prog_compiler_pic=
7771 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7773 esac
7776 # Check to make sure the static flag actually works.
7778 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7779 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7780 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7781 if test "${lt_prog_compiler_static_works+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 lt_prog_compiler_static_works=no
7785 save_LDFLAGS="$LDFLAGS"
7786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7789 # The linker can only warn and ignore the option if not recognized
7790 # So say no if there are warnings
7791 if test -s conftest.err; then
7792 # Append any errors to the config.log.
7793 cat conftest.err 1>&5
7794 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7796 if diff conftest.exp conftest.er2 >/dev/null; then
7797 lt_prog_compiler_static_works=yes
7799 else
7800 lt_prog_compiler_static_works=yes
7803 $rm conftest*
7804 LDFLAGS="$save_LDFLAGS"
7807 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7808 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7810 if test x"$lt_prog_compiler_static_works" = xyes; then
7812 else
7813 lt_prog_compiler_static=
7817 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7819 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822 lt_cv_prog_compiler_c_o=no
7823 $rm -r conftest 2>/dev/null
7824 mkdir conftest
7825 cd conftest
7826 mkdir out
7827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7829 lt_compiler_flag="-o out/conftest2.$ac_objext"
7830 # Insert the option either (1) after the last *FLAGS variable, or
7831 # (2) before a word containing "conftest.", or (3) at the end.
7832 # Note that $ac_compile itself does not contain backslashes and begins
7833 # with a dollar sign (not a hyphen), so the echo should work correctly.
7834 lt_compile=`echo "$ac_compile" | $SED \
7835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7837 -e 's:$: $lt_compiler_flag:'`
7838 (eval echo "\"\$as_me:7837: $lt_compile\"" >&5)
7839 (eval "$lt_compile" 2>out/conftest.err)
7840 ac_status=$?
7841 cat out/conftest.err >&5
7842 echo "$as_me:7841: \$? = $ac_status" >&5
7843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7844 then
7845 # The compiler can only warn and ignore the option if not recognized
7846 # So say no if there are warnings
7847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7850 lt_cv_prog_compiler_c_o=yes
7853 chmod u+w . 2>&5
7854 $rm conftest*
7855 # SGI C++ compiler will create directory out/ii_files/ for
7856 # template instantiation
7857 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7858 $rm out/* && rmdir out
7859 cd ..
7860 rmdir conftest
7861 $rm conftest*
7864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7868 hard_links="nottested"
7869 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7870 # do not overwrite the value of need_locks provided by the user
7871 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7873 hard_links=yes
7874 $rm conftest*
7875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7876 touch conftest.a
7877 ln conftest.a conftest.b 2>&5 || hard_links=no
7878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7879 { echo "$as_me:$LINENO: result: $hard_links" >&5
7880 echo "${ECHO_T}$hard_links" >&6; }
7881 if test "$hard_links" = no; then
7882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7884 need_locks=warn
7886 else
7887 need_locks=no
7890 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7893 runpath_var=
7894 allow_undefined_flag=
7895 enable_shared_with_static_runtimes=no
7896 archive_cmds=
7897 archive_expsym_cmds=
7898 old_archive_From_new_cmds=
7899 old_archive_from_expsyms_cmds=
7900 export_dynamic_flag_spec=
7901 whole_archive_flag_spec=
7902 thread_safe_flag_spec=
7903 hardcode_libdir_flag_spec=
7904 hardcode_libdir_flag_spec_ld=
7905 hardcode_libdir_separator=
7906 hardcode_direct=no
7907 hardcode_minus_L=no
7908 hardcode_shlibpath_var=unsupported
7909 link_all_deplibs=unknown
7910 hardcode_automatic=no
7911 module_cmds=
7912 module_expsym_cmds=
7913 always_export_symbols=no
7914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7915 # include_expsyms should be a list of space-separated symbols to be *always*
7916 # included in the symbol list
7917 include_expsyms=
7918 # exclude_expsyms can be an extended regexp of symbols to exclude
7919 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7920 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7921 # as well as any symbol that contains `d'.
7922 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7924 # platforms (ab)use it in PIC code, but their linkers get confused if
7925 # the symbol is explicitly referenced. Since portable code cannot
7926 # rely on this symbol name, it's probably fine to never include it in
7927 # preloaded symbol tables.
7928 extract_expsyms_cmds=
7929 # Just being paranoid about ensuring that cc_basename is set.
7930 for cc_temp in $compiler""; do
7931 case $cc_temp in
7932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7934 \-*) ;;
7935 *) break;;
7936 esac
7937 done
7938 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7940 case $host_os in
7941 cygwin* | mingw* | pw32*)
7942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7943 # When not using gcc, we currently assume that we are using
7944 # Microsoft Visual C++.
7945 if test "$GCC" != yes; then
7946 with_gnu_ld=no
7949 interix*)
7950 # we just hope/assume this is gcc and not c89 (= MSVC++)
7951 with_gnu_ld=yes
7953 openbsd*)
7954 with_gnu_ld=no
7956 esac
7958 ld_shlibs=yes
7959 if test "$with_gnu_ld" = yes; then
7960 # If archive_cmds runs LD, not CC, wlarc should be empty
7961 wlarc='${wl}'
7963 # Set some defaults for GNU ld with shared library support. These
7964 # are reset later if shared libraries are not supported. Putting them
7965 # here allows them to be overridden if necessary.
7966 runpath_var=LD_RUN_PATH
7967 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7968 export_dynamic_flag_spec='${wl}--export-dynamic'
7969 # ancient GNU ld didn't support --whole-archive et. al.
7970 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7971 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7972 else
7973 whole_archive_flag_spec=
7975 supports_anon_versioning=no
7976 case `$LD -v 2>/dev/null` in
7977 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7978 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7979 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7980 *\ 2.11.*) ;; # other 2.11 versions
7981 *) supports_anon_versioning=yes ;;
7982 esac
7984 # See if GNU ld supports shared libraries.
7985 case $host_os in
7986 aix3* | aix4* | aix5*)
7987 # On AIX/PPC, the GNU linker is very broken
7988 if test "$host_cpu" != ia64; then
7989 ld_shlibs=no
7990 cat <<EOF 1>&2
7992 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7993 *** to be unable to reliably create shared libraries on AIX.
7994 *** Therefore, libtool is disabling shared libraries support. If you
7995 *** really care for shared libraries, you may want to modify your PATH
7996 *** so that a non-GNU linker is found, and then restart.
8002 amigaos*)
8003 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)'
8004 hardcode_libdir_flag_spec='-L$libdir'
8005 hardcode_minus_L=yes
8007 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8008 # that the semantics of dynamic libraries on AmigaOS, at least up
8009 # to version 4, is to share data among multiple programs linked
8010 # with the same dynamic library. Since this doesn't match the
8011 # behavior of shared libraries on other platforms, we can't use
8012 # them.
8013 ld_shlibs=no
8016 beos*)
8017 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8018 allow_undefined_flag=unsupported
8019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8020 # support --undefined. This deserves some investigation. FIXME
8021 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8022 else
8023 ld_shlibs=no
8027 cygwin* | mingw* | pw32*)
8028 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8029 # as there is no search path for DLLs.
8030 hardcode_libdir_flag_spec='-L$libdir'
8031 allow_undefined_flag=unsupported
8032 always_export_symbols=no
8033 enable_shared_with_static_runtimes=yes
8034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8036 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8038 # If the export-symbols file already is a .def file (1st line
8039 # is EXPORTS), use it as is; otherwise, prepend...
8040 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8041 cp $export_symbols $output_objdir/$soname.def;
8042 else
8043 echo EXPORTS > $output_objdir/$soname.def;
8044 cat $export_symbols >> $output_objdir/$soname.def;
8046 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8047 else
8048 ld_shlibs=no
8052 interix[3-9]*)
8053 hardcode_direct=no
8054 hardcode_shlibpath_var=no
8055 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8056 export_dynamic_flag_spec='${wl}-E'
8057 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8058 # Instead, shared libraries are loaded at an image base (0x10000000 by
8059 # default) and relocated if they conflict, which is a slow very memory
8060 # consuming and fragmenting process. To avoid this, we pick a random,
8061 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8062 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8063 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8064 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'
8067 gnu* | linux* | k*bsd*-gnu)
8068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8069 tmp_addflag=
8070 case $cc_basename,$host_cpu in
8071 pgcc*) # Portland Group C compiler
8072 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'
8073 tmp_addflag=' $pic_flag'
8075 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8076 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'
8077 tmp_addflag=' $pic_flag -Mnomain' ;;
8078 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8079 tmp_addflag=' -i_dynamic' ;;
8080 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8081 tmp_addflag=' -i_dynamic -nofor_main' ;;
8082 ifc* | ifort*) # Intel Fortran compiler
8083 tmp_addflag=' -nofor_main' ;;
8084 esac
8085 case `$CC -V 2>&1 | sed 5q` in
8086 *Sun\ C*) # Sun C 5.9
8087 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'
8088 tmp_sharedflag='-G' ;;
8089 *Sun\ F*) # Sun Fortran 8.3
8090 tmp_sharedflag='-G' ;;
8092 tmp_sharedflag='-shared' ;;
8093 esac
8094 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096 if test $supports_anon_versioning = yes; then
8097 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8099 $echo "local: *; };" >> $output_objdir/$libname.ver~
8100 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8102 link_all_deplibs=no
8103 else
8104 ld_shlibs=no
8108 netbsd* | netbsdelf*-gnu)
8109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8110 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8111 wlarc=
8112 else
8113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8118 solaris*)
8119 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8120 ld_shlibs=no
8121 cat <<EOF 1>&2
8123 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8124 *** create shared libraries on Solaris systems. Therefore, libtool
8125 *** is disabling shared libraries support. We urge you to upgrade GNU
8126 *** binutils to release 2.9.1 or newer. Another option is to modify
8127 *** your PATH or compiler configuration so that the native linker is
8128 *** used, and then restart.
8131 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8134 else
8135 ld_shlibs=no
8139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8140 case `$LD -v 2>&1` in
8141 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8142 ld_shlibs=no
8143 cat <<_LT_EOF 1>&2
8145 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8146 *** reliably create shared libraries on SCO systems. Therefore, libtool
8147 *** is disabling shared libraries support. We urge you to upgrade GNU
8148 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8149 *** your PATH or compiler configuration so that the native linker is
8150 *** used, and then restart.
8152 _LT_EOF
8155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8156 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8158 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8159 else
8160 ld_shlibs=no
8163 esac
8166 sunos4*)
8167 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8168 wlarc=
8169 hardcode_direct=yes
8170 hardcode_shlibpath_var=no
8174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8177 else
8178 ld_shlibs=no
8181 esac
8183 if test "$ld_shlibs" = no; then
8184 runpath_var=
8185 hardcode_libdir_flag_spec=
8186 export_dynamic_flag_spec=
8187 whole_archive_flag_spec=
8189 else
8190 # PORTME fill in a description of your system's linker (not GNU ld)
8191 case $host_os in
8192 aix3*)
8193 allow_undefined_flag=unsupported
8194 always_export_symbols=yes
8195 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'
8196 # Note: this linker hardcodes the directories in LIBPATH if there
8197 # are no directories specified by -L.
8198 hardcode_minus_L=yes
8199 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8200 # Neither direct hardcoding nor static linking is supported with a
8201 # broken collect2.
8202 hardcode_direct=unsupported
8206 aix4* | aix5*)
8207 if test "$host_cpu" = ia64; then
8208 # On IA64, the linker does run time linking by default, so we don't
8209 # have to do anything special.
8210 aix_use_runtimelinking=no
8211 exp_sym_flag='-Bexport'
8212 no_entry_flag=""
8213 else
8214 # If we're using GNU nm, then we don't want the "-C" option.
8215 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8216 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8217 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'
8218 else
8219 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'
8221 aix_use_runtimelinking=no
8223 # Test if we are trying to use run time linking or normal
8224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8225 # need to do runtime linking.
8226 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8227 for ld_flag in $LDFLAGS; do
8228 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8229 aix_use_runtimelinking=yes
8230 break
8232 done
8234 esac
8236 exp_sym_flag='-bexport'
8237 no_entry_flag='-bnoentry'
8240 # When large executables or shared objects are built, AIX ld can
8241 # have problems creating the table of contents. If linking a library
8242 # or program results in "error TOC overflow" add -mminimal-toc to
8243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8246 archive_cmds=''
8247 hardcode_direct=yes
8248 hardcode_libdir_separator=':'
8249 link_all_deplibs=yes
8251 if test "$GCC" = yes; then
8252 case $host_os in aix4.[012]|aix4.[012].*)
8253 # We only want to do this on AIX 4.2 and lower, the check
8254 # below for broken collect2 doesn't work under 4.3+
8255 collect2name=`${CC} -print-prog-name=collect2`
8256 if test -f "$collect2name" && \
8257 strings "$collect2name" | grep resolve_lib_name >/dev/null
8258 then
8259 # We have reworked collect2
8261 else
8262 # We have old collect2
8263 hardcode_direct=unsupported
8264 # It fails to find uninstalled libraries when the uninstalled
8265 # path is not listed in the libpath. Setting hardcode_minus_L
8266 # to unsupported forces relinking
8267 hardcode_minus_L=yes
8268 hardcode_libdir_flag_spec='-L$libdir'
8269 hardcode_libdir_separator=
8272 esac
8273 shared_flag='-shared'
8274 if test "$aix_use_runtimelinking" = yes; then
8275 shared_flag="$shared_flag "'${wl}-G'
8277 else
8278 # not using gcc
8279 if test "$host_cpu" = ia64; then
8280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8281 # chokes on -Wl,-G. The following line is correct:
8282 shared_flag='-G'
8283 else
8284 if test "$aix_use_runtimelinking" = yes; then
8285 shared_flag='${wl}-G'
8286 else
8287 shared_flag='${wl}-bM:SRE'
8292 # It seems that -bexpall does not export symbols beginning with
8293 # underscore (_), so it is better to generate a list of symbols to export.
8294 always_export_symbols=yes
8295 if test "$aix_use_runtimelinking" = yes; then
8296 # Warning - without using the other runtime loading flags (-brtl),
8297 # -berok will link without error, but may produce a broken library.
8298 allow_undefined_flag='-berok'
8299 # Determine the default libpath from the value encoded in an empty executable.
8300 cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h. */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8308 main ()
8312 return 0;
8314 _ACEOF
8315 rm -f conftest.$ac_objext conftest$ac_exeext
8316 if { (ac_try="$ac_link"
8317 case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320 esac
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_link") 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest$ac_exeext &&
8332 $as_test_x conftest$ac_exeext; then
8334 lt_aix_libpath_sed='
8335 /Import File Strings/,/^$/ {
8336 /^0/ {
8337 s/^0 *\(.*\)$/\1/
8341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8342 # Check for a 64-bit object if we didn't find anything.
8343 if test -z "$aix_libpath"; then
8344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8346 else
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8354 conftest$ac_exeext conftest.$ac_ext
8355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8357 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8358 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"
8359 else
8360 if test "$host_cpu" = ia64; then
8361 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8362 allow_undefined_flag="-z nodefs"
8363 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"
8364 else
8365 # Determine the default libpath from the value encoded in an empty executable.
8366 cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h. */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8374 main ()
8378 return 0;
8380 _ACEOF
8381 rm -f conftest.$ac_objext conftest$ac_exeext
8382 if { (ac_try="$ac_link"
8383 case "(($ac_try" in
8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 *) ac_try_echo=$ac_try;;
8386 esac
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_link") 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } && {
8395 test -z "$ac_c_werror_flag" ||
8396 test ! -s conftest.err
8397 } && test -s conftest$ac_exeext &&
8398 $as_test_x conftest$ac_exeext; then
8400 lt_aix_libpath_sed='
8401 /Import File Strings/,/^$/ {
8402 /^0/ {
8403 s/^0 *\(.*\)$/\1/
8407 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8408 # Check for a 64-bit object if we didn't find anything.
8409 if test -z "$aix_libpath"; then
8410 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8412 else
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8420 conftest$ac_exeext conftest.$ac_ext
8421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8423 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8424 # Warning - without using the other run time loading flags,
8425 # -berok will link without error, but may produce a broken library.
8426 no_undefined_flag=' ${wl}-bernotok'
8427 allow_undefined_flag=' ${wl}-berok'
8428 # Exported symbols can be pulled into shared objects from archives
8429 whole_archive_flag_spec='$convenience'
8430 archive_cmds_need_lc=yes
8431 # This is similar to how AIX traditionally builds its shared libraries.
8432 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'
8437 amigaos*)
8438 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)'
8439 hardcode_libdir_flag_spec='-L$libdir'
8440 hardcode_minus_L=yes
8441 # see comment about different semantics on the GNU ld section
8442 ld_shlibs=no
8445 bsdi[45]*)
8446 export_dynamic_flag_spec=-rdynamic
8449 cygwin* | mingw* | pw32*)
8450 # When not using gcc, we currently assume that we are using
8451 # Microsoft Visual C++.
8452 # hardcode_libdir_flag_spec is actually meaningless, as there is
8453 # no search path for DLLs.
8454 hardcode_libdir_flag_spec=' '
8455 allow_undefined_flag=unsupported
8456 # Tell ltmain to make .lib files, not .a files.
8457 libext=lib
8458 # Tell ltmain to make .dll files, not .so files.
8459 shrext_cmds=".dll"
8460 # FIXME: Setting linknames here is a bad hack.
8461 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8462 # The linker will automatically build a .lib file if we build a DLL.
8463 old_archive_From_new_cmds='true'
8464 # FIXME: Should let the user specify the lib program.
8465 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8466 fix_srcfile_path='`cygpath -w "$srcfile"`'
8467 enable_shared_with_static_runtimes=yes
8470 darwin* | rhapsody*)
8471 case $host_os in
8472 rhapsody* | darwin1.[012])
8473 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8475 *) # Darwin 1.3 on
8476 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8477 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8478 else
8479 case ${MACOSX_DEPLOYMENT_TARGET} in
8480 10.[012])
8481 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8483 10.*)
8484 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8486 esac
8489 esac
8490 archive_cmds_need_lc=no
8491 hardcode_direct=no
8492 hardcode_automatic=yes
8493 hardcode_shlibpath_var=unsupported
8494 whole_archive_flag_spec=''
8495 link_all_deplibs=yes
8496 if test "$GCC" = yes ; then
8497 output_verbose_link_cmd='echo'
8498 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8499 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8501 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8502 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}'
8503 else
8504 case $cc_basename in
8505 xlc*)
8506 output_verbose_link_cmd='echo'
8507 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8508 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8509 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8510 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}'
8511 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}'
8514 ld_shlibs=no
8516 esac
8520 dgux*)
8521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8522 hardcode_libdir_flag_spec='-L$libdir'
8523 hardcode_shlibpath_var=no
8526 freebsd1*)
8527 ld_shlibs=no
8530 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8531 # support. Future versions do this automatically, but an explicit c++rt0.o
8532 # does not break anything, and helps significantly (at the cost of a little
8533 # extra space).
8534 freebsd2.2*)
8535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8536 hardcode_libdir_flag_spec='-R$libdir'
8537 hardcode_direct=yes
8538 hardcode_shlibpath_var=no
8541 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8542 freebsd2*)
8543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8544 hardcode_direct=yes
8545 hardcode_minus_L=yes
8546 hardcode_shlibpath_var=no
8549 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8550 freebsd* | dragonfly*)
8551 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8552 hardcode_libdir_flag_spec='-R$libdir'
8553 hardcode_direct=yes
8554 hardcode_shlibpath_var=no
8557 hpux9*)
8558 if test "$GCC" = yes; then
8559 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'
8560 else
8561 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'
8563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8564 hardcode_libdir_separator=:
8565 hardcode_direct=yes
8567 # hardcode_minus_L: Not really in the search PATH,
8568 # but as the default location of the library.
8569 hardcode_minus_L=yes
8570 export_dynamic_flag_spec='${wl}-E'
8573 hpux10*)
8574 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8575 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8576 else
8577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8579 if test "$with_gnu_ld" = no; then
8580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8581 hardcode_libdir_separator=:
8583 hardcode_direct=yes
8584 export_dynamic_flag_spec='${wl}-E'
8586 # hardcode_minus_L: Not really in the search PATH,
8587 # but as the default location of the library.
8588 hardcode_minus_L=yes
8592 hpux11*)
8593 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8594 case $host_cpu in
8595 hppa*64*)
8596 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8598 ia64*)
8599 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8602 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8604 esac
8605 else
8606 case $host_cpu in
8607 hppa*64*)
8608 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610 ia64*)
8611 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8614 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8616 esac
8618 if test "$with_gnu_ld" = no; then
8619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8620 hardcode_libdir_separator=:
8622 case $host_cpu in
8623 hppa*64*|ia64*)
8624 hardcode_libdir_flag_spec_ld='+b $libdir'
8625 hardcode_direct=no
8626 hardcode_shlibpath_var=no
8629 hardcode_direct=yes
8630 export_dynamic_flag_spec='${wl}-E'
8632 # hardcode_minus_L: Not really in the search PATH,
8633 # but as the default location of the library.
8634 hardcode_minus_L=yes
8636 esac
8640 irix5* | irix6* | nonstopux*)
8641 if test "$GCC" = yes; then
8642 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'
8643 else
8644 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'
8645 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648 hardcode_libdir_separator=:
8649 link_all_deplibs=yes
8652 netbsd* | netbsdelf*-gnu)
8653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8655 else
8656 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8658 hardcode_libdir_flag_spec='-R$libdir'
8659 hardcode_direct=yes
8660 hardcode_shlibpath_var=no
8663 newsos6)
8664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665 hardcode_direct=yes
8666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8667 hardcode_libdir_separator=:
8668 hardcode_shlibpath_var=no
8671 openbsd*)
8672 if test -f /usr/libexec/ld.so; then
8673 hardcode_direct=yes
8674 hardcode_shlibpath_var=no
8675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8679 export_dynamic_flag_spec='${wl}-E'
8680 else
8681 case $host_os in
8682 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8684 hardcode_libdir_flag_spec='-R$libdir'
8687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8688 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8690 esac
8692 else
8693 ld_shlibs=no
8697 os2*)
8698 hardcode_libdir_flag_spec='-L$libdir'
8699 hardcode_minus_L=yes
8700 allow_undefined_flag=unsupported
8701 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'
8702 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8705 osf3*)
8706 if test "$GCC" = yes; then
8707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8708 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'
8709 else
8710 allow_undefined_flag=' -expect_unresolved \*'
8711 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'
8713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8714 hardcode_libdir_separator=:
8717 osf4* | osf5*) # as osf3* with the addition of -msym flag
8718 if test "$GCC" = yes; then
8719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8720 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'
8721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8722 else
8723 allow_undefined_flag=' -expect_unresolved \*'
8724 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'
8725 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8726 $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'
8728 # Both c and cxx compiler support -rpath directly
8729 hardcode_libdir_flag_spec='-rpath $libdir'
8731 hardcode_libdir_separator=:
8734 solaris*)
8735 no_undefined_flag=' -z text'
8736 if test "$GCC" = yes; then
8737 wlarc='${wl}'
8738 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8739 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8740 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8741 else
8742 wlarc=''
8743 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8744 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8747 hardcode_libdir_flag_spec='-R$libdir'
8748 hardcode_shlibpath_var=no
8749 case $host_os in
8750 solaris2.[0-5] | solaris2.[0-5].*) ;;
8752 # The compiler driver will combine and reorder linker options,
8753 # but understands `-z linker_flag'. GCC discards it without `$wl',
8754 # but is careful enough not to reorder.
8755 # Supported since Solaris 2.6 (maybe 2.5.1?)
8756 if test "$GCC" = yes; then
8757 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8758 else
8759 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8762 esac
8763 link_all_deplibs=yes
8766 sunos4*)
8767 if test "x$host_vendor" = xsequent; then
8768 # Use $CC to link under sequent, because it throws in some extra .o
8769 # files that make .init and .fini sections work.
8770 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8771 else
8772 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8774 hardcode_libdir_flag_spec='-L$libdir'
8775 hardcode_direct=yes
8776 hardcode_minus_L=yes
8777 hardcode_shlibpath_var=no
8780 sysv4)
8781 case $host_vendor in
8782 sni)
8783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_direct=yes # is this really true???
8786 siemens)
8787 ## LD is ld it makes a PLAMLIB
8788 ## CC just makes a GrossModule.
8789 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8790 reload_cmds='$CC -r -o $output$reload_objs'
8791 hardcode_direct=no
8793 motorola)
8794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8797 esac
8798 runpath_var='LD_RUN_PATH'
8799 hardcode_shlibpath_var=no
8802 sysv4.3*)
8803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8804 hardcode_shlibpath_var=no
8805 export_dynamic_flag_spec='-Bexport'
8808 sysv4*MP*)
8809 if test -d /usr/nec; then
8810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811 hardcode_shlibpath_var=no
8812 runpath_var=LD_RUN_PATH
8813 hardcode_runpath_var=yes
8814 ld_shlibs=yes
8818 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8819 no_undefined_flag='${wl}-z,text'
8820 archive_cmds_need_lc=no
8821 hardcode_shlibpath_var=no
8822 runpath_var='LD_RUN_PATH'
8824 if test "$GCC" = yes; then
8825 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 else
8828 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8833 sysv5* | sco3.2v5* | sco5v6*)
8834 # Note: We can NOT use -z defs as we might desire, because we do not
8835 # link with -lc, and that would cause any symbols used from libc to
8836 # always be unresolved, which means just about no library would
8837 # ever link correctly. If we're not using GNU ld we use -z text
8838 # though, which does catch some bad symbols but isn't as heavy-handed
8839 # as -z defs.
8840 no_undefined_flag='${wl}-z,text'
8841 allow_undefined_flag='${wl}-z,nodefs'
8842 archive_cmds_need_lc=no
8843 hardcode_shlibpath_var=no
8844 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8845 hardcode_libdir_separator=':'
8846 link_all_deplibs=yes
8847 export_dynamic_flag_spec='${wl}-Bexport'
8848 runpath_var='LD_RUN_PATH'
8850 if test "$GCC" = yes; then
8851 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 else
8854 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8855 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8859 uts4*)
8860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8861 hardcode_libdir_flag_spec='-L$libdir'
8862 hardcode_shlibpath_var=no
8866 ld_shlibs=no
8868 esac
8871 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8872 echo "${ECHO_T}$ld_shlibs" >&6; }
8873 test "$ld_shlibs" = no && can_build_shared=no
8876 # Do we need to explicitly link libc?
8878 case "x$archive_cmds_need_lc" in
8879 x|xyes)
8880 # Assume -lc should be added
8881 archive_cmds_need_lc=yes
8883 if test "$enable_shared" = yes && test "$GCC" = yes; then
8884 case $archive_cmds in
8885 *'~'*)
8886 # FIXME: we may have to deal with multi-command sequences.
8888 '$CC '*)
8889 # Test whether the compiler implicitly links with -lc since on some
8890 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8891 # to ld, don't add -lc before -lgcc.
8892 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8893 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8894 $rm conftest*
8895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8898 (eval $ac_compile) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } 2>conftest.err; then
8902 soname=conftest
8903 lib=conftest
8904 libobjs=conftest.$ac_objext
8905 deplibs=
8906 wl=$lt_prog_compiler_wl
8907 pic_flag=$lt_prog_compiler_pic
8908 compiler_flags=-v
8909 linker_flags=-v
8910 verstring=
8911 output_objdir=.
8912 libname=conftest
8913 lt_save_allow_undefined_flag=$allow_undefined_flag
8914 allow_undefined_flag=
8915 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8916 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }
8920 then
8921 archive_cmds_need_lc=no
8922 else
8923 archive_cmds_need_lc=yes
8925 allow_undefined_flag=$lt_save_allow_undefined_flag
8926 else
8927 cat conftest.err 1>&5
8929 $rm conftest*
8930 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8931 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8933 esac
8936 esac
8938 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8939 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8940 library_names_spec=
8941 libname_spec='lib$name'
8942 soname_spec=
8943 shrext_cmds=".so"
8944 postinstall_cmds=
8945 postuninstall_cmds=
8946 finish_cmds=
8947 finish_eval=
8948 shlibpath_var=
8949 shlibpath_overrides_runpath=unknown
8950 version_type=none
8951 dynamic_linker="$host_os ld.so"
8952 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8954 if test "$GCC" = yes; then
8955 case $host_os in
8956 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8957 *) lt_awk_arg="/^libraries:/" ;;
8958 esac
8959 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8960 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8961 # if the path contains ";" then we assume it to be the separator
8962 # otherwise default to the standard path separator (i.e. ":") - it is
8963 # assumed that no part of a normal pathname contains ";" but that should
8964 # okay in the real world where ";" in dirpaths is itself problematic.
8965 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8966 else
8967 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8969 # Ok, now we have the path, separated by spaces, we can step through it
8970 # and add multilib dir if necessary.
8971 lt_tmp_lt_search_path_spec=
8972 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8973 for lt_sys_path in $lt_search_path_spec; do
8974 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8976 else
8977 test -d "$lt_sys_path" && \
8978 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8980 done
8981 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8982 BEGIN {RS=" "; FS="/|\n";} {
8983 lt_foo="";
8984 lt_count=0;
8985 for (lt_i = NF; lt_i > 0; lt_i--) {
8986 if ($lt_i != "" && $lt_i != ".") {
8987 if ($lt_i == "..") {
8988 lt_count++;
8989 } else {
8990 if (lt_count == 0) {
8991 lt_foo="/" $lt_i lt_foo;
8992 } else {
8993 lt_count--;
8998 if (lt_foo != "") { lt_freq[lt_foo]++; }
8999 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9001 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9002 else
9003 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9005 need_lib_prefix=unknown
9006 hardcode_into_libs=no
9008 # when you set need_version to no, make sure it does not cause -set_version
9009 # flags to be left without arguments
9010 need_version=unknown
9012 case $host_os in
9013 aix3*)
9014 version_type=linux
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9016 shlibpath_var=LIBPATH
9018 # AIX 3 has no versioning support, so we append a major version to the name.
9019 soname_spec='${libname}${release}${shared_ext}$major'
9022 aix4* | aix5*)
9023 version_type=linux
9024 need_lib_prefix=no
9025 need_version=no
9026 hardcode_into_libs=yes
9027 if test "$host_cpu" = ia64; then
9028 # AIX 5 supports IA64
9029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 else
9032 # With GCC up to 2.95.x, collect2 would create an import file
9033 # for dependence libraries. The import file would start with
9034 # the line `#! .'. This would cause the generated library to
9035 # depend on `.', always an invalid library. This was fixed in
9036 # development snapshots of GCC prior to 3.0.
9037 case $host_os in
9038 aix4 | aix4.[01] | aix4.[01].*)
9039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9040 echo ' yes '
9041 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9043 else
9044 can_build_shared=no
9047 esac
9048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9049 # soname into executable. Probably we can add versioning support to
9050 # collect2, so additional links can be useful in future.
9051 if test "$aix_use_runtimelinking" = yes; then
9052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9053 # instead of lib<name>.a to let people know that these are not
9054 # typical AIX shared libraries.
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 else
9057 # We preserve .a as extension for shared libraries through AIX4.2
9058 # and later when we are not doing run time linking.
9059 library_names_spec='${libname}${release}.a $libname.a'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LIBPATH
9066 amigaos*)
9067 library_names_spec='$libname.ixlibrary $libname.a'
9068 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9069 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'
9072 beos*)
9073 library_names_spec='${libname}${shared_ext}'
9074 dynamic_linker="$host_os ld.so"
9075 shlibpath_var=LIBRARY_PATH
9078 bsdi[45]*)
9079 version_type=linux
9080 need_version=no
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9087 # the default ld.so.conf also contains /usr/contrib/lib and
9088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9089 # libtool to hard-code these into programs
9092 cygwin* | mingw* | pw32*)
9093 version_type=windows
9094 shrext_cmds=".dll"
9095 need_version=no
9096 need_lib_prefix=no
9098 case $GCC,$host_os in
9099 yes,cygwin* | yes,mingw* | yes,pw32*)
9100 library_names_spec='$libname.dll.a'
9101 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9102 postinstall_cmds='base_file=`basename \${file}`~
9103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9104 dldir=$destdir/`dirname \$dlpath`~
9105 test -d \$dldir || mkdir -p \$dldir~
9106 $install_prog $dir/$dlname \$dldir/$dlname~
9107 chmod a+x \$dldir/$dlname'
9108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9109 dlpath=$dir/\$dldll~
9110 $rm \$dlpath'
9111 shlibpath_overrides_runpath=yes
9113 case $host_os in
9114 cygwin*)
9115 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9116 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9117 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9119 mingw*)
9120 # MinGW DLLs use traditional 'lib' prefix
9121 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9123 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9124 # It is most probably a Windows format PATH printed by
9125 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9126 # path with ; separators, and with drive letters. We can handle the
9127 # drive letters (cygwin fileutils understands them), so leave them,
9128 # especially as we might pass files found there to a mingw objdump,
9129 # which wouldn't understand a cygwinified path. Ahh.
9130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9131 else
9132 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9135 pw32*)
9136 # pw32 DLLs use 'pw' prefix rather than 'lib'
9137 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9139 esac
9143 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9145 esac
9146 dynamic_linker='Win32 ld.exe'
9147 # FIXME: first we should search . and the directory the executable is in
9148 shlibpath_var=PATH
9151 darwin* | rhapsody*)
9152 dynamic_linker="$host_os dyld"
9153 version_type=darwin
9154 need_lib_prefix=no
9155 need_version=no
9156 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9157 soname_spec='${libname}${release}${major}$shared_ext'
9158 shlibpath_overrides_runpath=yes
9159 shlibpath_var=DYLD_LIBRARY_PATH
9160 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9162 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9163 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9166 dgux*)
9167 version_type=linux
9168 need_lib_prefix=no
9169 need_version=no
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 shlibpath_var=LD_LIBRARY_PATH
9175 freebsd1*)
9176 dynamic_linker=no
9179 freebsd* | dragonfly*)
9180 # DragonFly does not have aout. When/if they implement a new
9181 # versioning mechanism, adjust this.
9182 if test -x /usr/bin/objformat; then
9183 objformat=`/usr/bin/objformat`
9184 else
9185 case $host_os in
9186 freebsd[123]*) objformat=aout ;;
9187 *) objformat=elf ;;
9188 esac
9190 version_type=freebsd-$objformat
9191 case $version_type in
9192 freebsd-elf*)
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9194 need_version=no
9195 need_lib_prefix=no
9197 freebsd-*)
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9199 need_version=yes
9201 esac
9202 shlibpath_var=LD_LIBRARY_PATH
9203 case $host_os in
9204 freebsd2*)
9205 shlibpath_overrides_runpath=yes
9207 freebsd3.[01]* | freebsdelf3.[01]*)
9208 shlibpath_overrides_runpath=yes
9209 hardcode_into_libs=yes
9211 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9212 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9213 shlibpath_overrides_runpath=no
9214 hardcode_into_libs=yes
9216 *) # from 4.6 on, and DragonFly
9217 shlibpath_overrides_runpath=yes
9218 hardcode_into_libs=yes
9220 esac
9223 gnu*)
9224 version_type=linux
9225 need_lib_prefix=no
9226 need_version=no
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 hardcode_into_libs=yes
9233 hpux9* | hpux10* | hpux11*)
9234 # Give a soname corresponding to the major version so that dld.sl refuses to
9235 # link against other versions.
9236 version_type=sunos
9237 need_lib_prefix=no
9238 need_version=no
9239 case $host_cpu in
9240 ia64*)
9241 shrext_cmds='.so'
9242 hardcode_into_libs=yes
9243 dynamic_linker="$host_os dld.so"
9244 shlibpath_var=LD_LIBRARY_PATH
9245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 if test "X$HPUX_IA64_MODE" = X32; then
9249 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9250 else
9251 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9255 hppa*64*)
9256 shrext_cmds='.sl'
9257 hardcode_into_libs=yes
9258 dynamic_linker="$host_os dld.sl"
9259 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9267 shrext_cmds='.sl'
9268 dynamic_linker="$host_os dld.sl"
9269 shlibpath_var=SHLIB_PATH
9270 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9274 esac
9275 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9276 postinstall_cmds='chmod 555 $lib'
9279 interix[3-9]*)
9280 version_type=linux
9281 need_lib_prefix=no
9282 need_version=no
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9286 shlibpath_var=LD_LIBRARY_PATH
9287 shlibpath_overrides_runpath=no
9288 hardcode_into_libs=yes
9291 irix5* | irix6* | nonstopux*)
9292 case $host_os in
9293 nonstopux*) version_type=nonstopux ;;
9295 if test "$lt_cv_prog_gnu_ld" = yes; then
9296 version_type=linux
9297 else
9298 version_type=irix
9299 fi ;;
9300 esac
9301 need_lib_prefix=no
9302 need_version=no
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9305 case $host_os in
9306 irix5* | nonstopux*)
9307 libsuff= shlibsuff=
9310 case $LD in # libtool.m4 will add one of these switches to LD
9311 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9312 libsuff= shlibsuff= libmagic=32-bit;;
9313 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9314 libsuff=32 shlibsuff=N32 libmagic=N32;;
9315 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9316 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9317 *) libsuff= shlibsuff= libmagic=never-match;;
9318 esac
9320 esac
9321 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9322 shlibpath_overrides_runpath=no
9323 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9324 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9325 hardcode_into_libs=yes
9328 # No shared lib support for Linux oldld, aout, or coff.
9329 linux*oldld* | linux*aout* | linux*coff*)
9330 dynamic_linker=no
9333 # This must be Linux ELF.
9334 linux* | k*bsd*-gnu)
9335 version_type=linux
9336 need_lib_prefix=no
9337 need_version=no
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 shlibpath_overrides_runpath=no
9343 # This implies no fast_install, which is unacceptable.
9344 # Some rework will be needed to allow for fast_install
9345 # before this can be enabled.
9346 hardcode_into_libs=yes
9348 # Append ld.so.conf contents to the search path
9349 if test -f /etc/ld.so.conf; then
9350 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' ' '`
9351 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9354 # We used to test for /lib/ld.so.1 and disable shared libraries on
9355 # powerpc, because MkLinux only supported shared libraries with the
9356 # GNU dynamic linker. Since this was broken with cross compilers,
9357 # most powerpc-linux boxes support dynamic linking these days and
9358 # people can always --disable-shared, the test was removed, and we
9359 # assume the GNU/Linux dynamic linker is in use.
9360 dynamic_linker='GNU/Linux ld.so'
9363 netbsdelf*-gnu)
9364 version_type=linux
9365 need_lib_prefix=no
9366 need_version=no
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 shlibpath_overrides_runpath=no
9371 hardcode_into_libs=yes
9372 dynamic_linker='NetBSD ld.elf_so'
9375 netbsd*)
9376 version_type=sunos
9377 need_lib_prefix=no
9378 need_version=no
9379 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9382 dynamic_linker='NetBSD (a.out) ld.so'
9383 else
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 dynamic_linker='NetBSD ld.elf_so'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=yes
9390 hardcode_into_libs=yes
9393 newsos6)
9394 version_type=linux
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath=yes
9400 nto-qnx*)
9401 version_type=linux
9402 need_lib_prefix=no
9403 need_version=no
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 shlibpath_var=LD_LIBRARY_PATH
9407 shlibpath_overrides_runpath=yes
9410 openbsd*)
9411 version_type=sunos
9412 sys_lib_dlsearch_path_spec="/usr/lib"
9413 need_lib_prefix=no
9414 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9415 case $host_os in
9416 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9417 *) need_version=no ;;
9418 esac
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9421 shlibpath_var=LD_LIBRARY_PATH
9422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9423 case $host_os in
9424 openbsd2.[89] | openbsd2.[89].*)
9425 shlibpath_overrides_runpath=no
9428 shlibpath_overrides_runpath=yes
9430 esac
9431 else
9432 shlibpath_overrides_runpath=yes
9436 os2*)
9437 libname_spec='$name'
9438 shrext_cmds=".dll"
9439 need_lib_prefix=no
9440 library_names_spec='$libname${shared_ext} $libname.a'
9441 dynamic_linker='OS/2 ld.exe'
9442 shlibpath_var=LIBPATH
9445 osf3* | osf4* | osf5*)
9446 version_type=osf
9447 need_lib_prefix=no
9448 need_version=no
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451 shlibpath_var=LD_LIBRARY_PATH
9452 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9453 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9456 rdos*)
9457 dynamic_linker=no
9460 solaris*)
9461 version_type=linux
9462 need_lib_prefix=no
9463 need_version=no
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=yes
9468 hardcode_into_libs=yes
9469 # ldd complains unless libraries are executable
9470 postinstall_cmds='chmod +x $lib'
9473 sunos4*)
9474 version_type=sunos
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath=yes
9479 if test "$with_gnu_ld" = yes; then
9480 need_lib_prefix=no
9482 need_version=yes
9485 sysv4 | sysv4.3*)
9486 version_type=linux
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 soname_spec='${libname}${release}${shared_ext}$major'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 case $host_vendor in
9491 sni)
9492 shlibpath_overrides_runpath=no
9493 need_lib_prefix=no
9494 export_dynamic_flag_spec='${wl}-Blargedynsym'
9495 runpath_var=LD_RUN_PATH
9497 siemens)
9498 need_lib_prefix=no
9500 motorola)
9501 need_lib_prefix=no
9502 need_version=no
9503 shlibpath_overrides_runpath=no
9504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9506 esac
9509 sysv4*MP*)
9510 if test -d /usr/nec ;then
9511 version_type=linux
9512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9513 soname_spec='$libname${shared_ext}.$major'
9514 shlibpath_var=LD_LIBRARY_PATH
9518 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9519 version_type=freebsd-elf
9520 need_lib_prefix=no
9521 need_version=no
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 shlibpath_var=LD_LIBRARY_PATH
9525 hardcode_into_libs=yes
9526 if test "$with_gnu_ld" = yes; then
9527 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9528 shlibpath_overrides_runpath=no
9529 else
9530 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9531 shlibpath_overrides_runpath=yes
9532 case $host_os in
9533 sco3.2v5*)
9534 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9536 esac
9538 sys_lib_dlsearch_path_spec='/usr/lib'
9541 uts4*)
9542 version_type=linux
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544 soname_spec='${libname}${release}${shared_ext}$major'
9545 shlibpath_var=LD_LIBRARY_PATH
9549 dynamic_linker=no
9551 esac
9552 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9553 echo "${ECHO_T}$dynamic_linker" >&6; }
9554 test "$dynamic_linker" = no && can_build_shared=no
9556 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9557 if test "$GCC" = yes; then
9558 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9561 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9562 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9563 hardcode_action=
9564 if test -n "$hardcode_libdir_flag_spec" || \
9565 test -n "$runpath_var" || \
9566 test "X$hardcode_automatic" = "Xyes" ; then
9568 # We can hardcode non-existant directories.
9569 if test "$hardcode_direct" != no &&
9570 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9571 # have to relink, otherwise we might link with an installed library
9572 # when we should be linking with a yet-to-be-installed one
9573 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9574 test "$hardcode_minus_L" != no; then
9575 # Linking always hardcodes the temporary library directory.
9576 hardcode_action=relink
9577 else
9578 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9579 hardcode_action=immediate
9581 else
9582 # We cannot hardcode anything, or else we can only hardcode existing
9583 # directories.
9584 hardcode_action=unsupported
9586 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9587 echo "${ECHO_T}$hardcode_action" >&6; }
9589 if test "$hardcode_action" = relink; then
9590 # Fast installation is not supported
9591 enable_fast_install=no
9592 elif test "$shlibpath_overrides_runpath" = yes ||
9593 test "$enable_shared" = no; then
9594 # Fast installation is not necessary
9595 enable_fast_install=needless
9598 striplib=
9599 old_striplib=
9600 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9601 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9602 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9603 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9604 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9605 { echo "$as_me:$LINENO: result: yes" >&5
9606 echo "${ECHO_T}yes" >&6; }
9607 else
9608 # FIXME - insert some real tests, host_os isn't really good enough
9609 case $host_os in
9610 darwin*)
9611 if test -n "$STRIP" ; then
9612 striplib="$STRIP -x"
9613 old_striplib="$STRIP -S"
9614 { echo "$as_me:$LINENO: result: yes" >&5
9615 echo "${ECHO_T}yes" >&6; }
9616 else
9617 { echo "$as_me:$LINENO: result: no" >&5
9618 echo "${ECHO_T}no" >&6; }
9622 { echo "$as_me:$LINENO: result: no" >&5
9623 echo "${ECHO_T}no" >&6; }
9625 esac
9628 if test "x$enable_dlopen" != xyes; then
9629 enable_dlopen=unknown
9630 enable_dlopen_self=unknown
9631 enable_dlopen_self_static=unknown
9632 else
9633 lt_cv_dlopen=no
9634 lt_cv_dlopen_libs=
9636 case $host_os in
9637 beos*)
9638 lt_cv_dlopen="load_add_on"
9639 lt_cv_dlopen_libs=
9640 lt_cv_dlopen_self=yes
9643 mingw* | pw32*)
9644 lt_cv_dlopen="LoadLibrary"
9645 lt_cv_dlopen_libs=
9648 cygwin*)
9649 lt_cv_dlopen="dlopen"
9650 lt_cv_dlopen_libs=
9653 darwin*)
9654 # if libdl is installed we need to link against it
9655 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660 ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-ldl $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9672 #ifdef __cplusplus
9673 extern "C"
9674 #endif
9675 char dlopen ();
9677 main ()
9679 return dlopen ();
9681 return 0;
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9686 case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_link") 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && {
9698 test -z "$ac_c_werror_flag" ||
9699 test ! -s conftest.err
9700 } && test -s conftest$ac_exeext &&
9701 $as_test_x conftest$ac_exeext; then
9702 ac_cv_lib_dl_dlopen=yes
9703 else
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 ac_cv_lib_dl_dlopen=no
9710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9711 conftest$ac_exeext conftest.$ac_ext
9712 LIBS=$ac_check_lib_save_LIBS
9714 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9715 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9716 if test $ac_cv_lib_dl_dlopen = yes; then
9717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9718 else
9720 lt_cv_dlopen="dyld"
9721 lt_cv_dlopen_libs=
9722 lt_cv_dlopen_self=yes
9729 { echo "$as_me:$LINENO: checking for shl_load" >&5
9730 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9731 if test "${ac_cv_func_shl_load+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9742 #define shl_load innocuous_shl_load
9744 /* System header to define __stub macros and hopefully few prototypes,
9745 which can conflict with char shl_load (); below.
9746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9747 <limits.h> exists even on freestanding compilers. */
9749 #ifdef __STDC__
9750 # include <limits.h>
9751 #else
9752 # include <assert.h>
9753 #endif
9755 #undef shl_load
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9760 #ifdef __cplusplus
9761 extern "C"
9762 #endif
9763 char shl_load ();
9764 /* The GNU C library defines this for functions which it implements
9765 to always fail with ENOSYS. Some functions are actually named
9766 something starting with __ and the normal name is an alias. */
9767 #if defined __stub_shl_load || defined __stub___shl_load
9768 choke me
9769 #endif
9772 main ()
9774 return shl_load ();
9776 return 0;
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (ac_try="$ac_link"
9781 case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_link") 2>conftest.er1
9787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } && {
9793 test -z "$ac_c_werror_flag" ||
9794 test ! -s conftest.err
9795 } && test -s conftest$ac_exeext &&
9796 $as_test_x conftest$ac_exeext; then
9797 ac_cv_func_shl_load=yes
9798 else
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9802 ac_cv_func_shl_load=no
9805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9806 conftest$ac_exeext conftest.$ac_ext
9808 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9809 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9810 if test $ac_cv_func_shl_load = yes; then
9811 lt_cv_dlopen="shl_load"
9812 else
9813 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9814 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9815 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 ac_check_lib_save_LIBS=$LIBS
9819 LIBS="-ldld $LIBS"
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9827 /* Override any GCC internal prototype to avoid an error.
9828 Use char because int might match the return type of a GCC
9829 builtin and then its argument prototype would still apply. */
9830 #ifdef __cplusplus
9831 extern "C"
9832 #endif
9833 char shl_load ();
9835 main ()
9837 return shl_load ();
9839 return 0;
9841 _ACEOF
9842 rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (ac_try="$ac_link"
9844 case "(($ac_try" in
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9847 esac
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_link") 2>conftest.er1
9850 ac_status=$?
9851 grep -v '^ *+' conftest.er1 >conftest.err
9852 rm -f conftest.er1
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } && {
9856 test -z "$ac_c_werror_flag" ||
9857 test ! -s conftest.err
9858 } && test -s conftest$ac_exeext &&
9859 $as_test_x conftest$ac_exeext; then
9860 ac_cv_lib_dld_shl_load=yes
9861 else
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9865 ac_cv_lib_dld_shl_load=no
9868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9869 conftest$ac_exeext conftest.$ac_ext
9870 LIBS=$ac_check_lib_save_LIBS
9872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9873 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9874 if test $ac_cv_lib_dld_shl_load = yes; then
9875 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9876 else
9877 { echo "$as_me:$LINENO: checking for dlopen" >&5
9878 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9879 if test "${ac_cv_func_dlopen+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 else
9882 cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h. */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9890 #define dlopen innocuous_dlopen
9892 /* System header to define __stub macros and hopefully few prototypes,
9893 which can conflict with char dlopen (); below.
9894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9895 <limits.h> exists even on freestanding compilers. */
9897 #ifdef __STDC__
9898 # include <limits.h>
9899 #else
9900 # include <assert.h>
9901 #endif
9903 #undef dlopen
9905 /* Override any GCC internal prototype to avoid an error.
9906 Use char because int might match the return type of a GCC
9907 builtin and then its argument prototype would still apply. */
9908 #ifdef __cplusplus
9909 extern "C"
9910 #endif
9911 char dlopen ();
9912 /* The GNU C library defines this for functions which it implements
9913 to always fail with ENOSYS. Some functions are actually named
9914 something starting with __ and the normal name is an alias. */
9915 #if defined __stub_dlopen || defined __stub___dlopen
9916 choke me
9917 #endif
9920 main ()
9922 return dlopen ();
9924 return 0;
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9929 case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_link") 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } && {
9941 test -z "$ac_c_werror_flag" ||
9942 test ! -s conftest.err
9943 } && test -s conftest$ac_exeext &&
9944 $as_test_x conftest$ac_exeext; then
9945 ac_cv_func_dlopen=yes
9946 else
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_cv_func_dlopen=no
9953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9954 conftest$ac_exeext conftest.$ac_ext
9956 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9957 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9958 if test $ac_cv_func_dlopen = yes; then
9959 lt_cv_dlopen="dlopen"
9960 else
9961 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9962 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966 ac_check_lib_save_LIBS=$LIBS
9967 LIBS="-ldl $LIBS"
9968 cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h. */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9975 /* Override any GCC internal prototype to avoid an error.
9976 Use char because int might match the return type of a GCC
9977 builtin and then its argument prototype would still apply. */
9978 #ifdef __cplusplus
9979 extern "C"
9980 #endif
9981 char dlopen ();
9983 main ()
9985 return dlopen ();
9987 return 0;
9989 _ACEOF
9990 rm -f conftest.$ac_objext conftest$ac_exeext
9991 if { (ac_try="$ac_link"
9992 case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_link") 2>conftest.er1
9998 ac_status=$?
9999 grep -v '^ *+' conftest.er1 >conftest.err
10000 rm -f conftest.er1
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && {
10004 test -z "$ac_c_werror_flag" ||
10005 test ! -s conftest.err
10006 } && test -s conftest$ac_exeext &&
10007 $as_test_x conftest$ac_exeext; then
10008 ac_cv_lib_dl_dlopen=yes
10009 else
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_cv_lib_dl_dlopen=no
10016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10017 conftest$ac_exeext conftest.$ac_ext
10018 LIBS=$ac_check_lib_save_LIBS
10020 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10021 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10022 if test $ac_cv_lib_dl_dlopen = yes; then
10023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10024 else
10025 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10026 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10027 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 else
10030 ac_check_lib_save_LIBS=$LIBS
10031 LIBS="-lsvld $LIBS"
10032 cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h. */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10042 #ifdef __cplusplus
10043 extern "C"
10044 #endif
10045 char dlopen ();
10047 main ()
10049 return dlopen ();
10051 return 0;
10053 _ACEOF
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (ac_try="$ac_link"
10056 case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10059 esac
10060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_link") 2>conftest.er1
10062 ac_status=$?
10063 grep -v '^ *+' conftest.er1 >conftest.err
10064 rm -f conftest.er1
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } && {
10068 test -z "$ac_c_werror_flag" ||
10069 test ! -s conftest.err
10070 } && test -s conftest$ac_exeext &&
10071 $as_test_x conftest$ac_exeext; then
10072 ac_cv_lib_svld_dlopen=yes
10073 else
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 ac_cv_lib_svld_dlopen=no
10080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10081 conftest$ac_exeext conftest.$ac_ext
10082 LIBS=$ac_check_lib_save_LIBS
10084 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10085 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10086 if test $ac_cv_lib_svld_dlopen = yes; then
10087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10088 else
10089 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10090 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10091 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 else
10094 ac_check_lib_save_LIBS=$LIBS
10095 LIBS="-ldld $LIBS"
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 char dld_link ();
10111 main ()
10113 return dld_link ();
10115 return 0;
10117 _ACEOF
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (ac_try="$ac_link"
10120 case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_link") 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } && {
10132 test -z "$ac_c_werror_flag" ||
10133 test ! -s conftest.err
10134 } && test -s conftest$ac_exeext &&
10135 $as_test_x conftest$ac_exeext; then
10136 ac_cv_lib_dld_dld_link=yes
10137 else
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_cv_lib_dld_dld_link=no
10144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10145 conftest$ac_exeext conftest.$ac_ext
10146 LIBS=$ac_check_lib_save_LIBS
10148 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10149 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10150 if test $ac_cv_lib_dld_dld_link = yes; then
10151 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10170 esac
10172 if test "x$lt_cv_dlopen" != xno; then
10173 enable_dlopen=yes
10174 else
10175 enable_dlopen=no
10178 case $lt_cv_dlopen in
10179 dlopen)
10180 save_CPPFLAGS="$CPPFLAGS"
10181 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10183 save_LDFLAGS="$LDFLAGS"
10184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10186 save_LIBS="$LIBS"
10187 LIBS="$lt_cv_dlopen_libs $LIBS"
10189 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10190 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10191 if test "${lt_cv_dlopen_self+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 else
10194 if test "$cross_compiling" = yes; then :
10195 lt_cv_dlopen_self=cross
10196 else
10197 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10198 lt_status=$lt_dlunknown
10199 cat > conftest.$ac_ext <<EOF
10200 #line 10199 "configure"
10201 #include "confdefs.h"
10203 #if HAVE_DLFCN_H
10204 #include <dlfcn.h>
10205 #endif
10207 #include <stdio.h>
10209 #ifdef RTLD_GLOBAL
10210 # define LT_DLGLOBAL RTLD_GLOBAL
10211 #else
10212 # ifdef DL_GLOBAL
10213 # define LT_DLGLOBAL DL_GLOBAL
10214 # else
10215 # define LT_DLGLOBAL 0
10216 # endif
10217 #endif
10219 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10220 find out it does not work in some platform. */
10221 #ifndef LT_DLLAZY_OR_NOW
10222 # ifdef RTLD_LAZY
10223 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10224 # else
10225 # ifdef DL_LAZY
10226 # define LT_DLLAZY_OR_NOW DL_LAZY
10227 # else
10228 # ifdef RTLD_NOW
10229 # define LT_DLLAZY_OR_NOW RTLD_NOW
10230 # else
10231 # ifdef DL_NOW
10232 # define LT_DLLAZY_OR_NOW DL_NOW
10233 # else
10234 # define LT_DLLAZY_OR_NOW 0
10235 # endif
10236 # endif
10237 # endif
10238 # endif
10239 #endif
10241 #ifdef __cplusplus
10242 extern "C" void exit (int);
10243 #endif
10245 void fnord() { int i=42;}
10246 int main ()
10248 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10249 int status = $lt_dlunknown;
10251 if (self)
10253 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10254 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10255 /* dlclose (self); */
10257 else
10258 puts (dlerror ());
10260 exit (status);
10263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10264 (eval $ac_link) 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10268 (./conftest; exit; ) >&5 2>/dev/null
10269 lt_status=$?
10270 case x$lt_status in
10271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10273 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10274 esac
10275 else :
10276 # compilation failed
10277 lt_cv_dlopen_self=no
10280 rm -fr conftest*
10284 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10285 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10287 if test "x$lt_cv_dlopen_self" = xyes; then
10288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10289 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10290 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10291 if test "${lt_cv_dlopen_self_static+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294 if test "$cross_compiling" = yes; then :
10295 lt_cv_dlopen_self_static=cross
10296 else
10297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298 lt_status=$lt_dlunknown
10299 cat > conftest.$ac_ext <<EOF
10300 #line 10299 "configure"
10301 #include "confdefs.h"
10303 #if HAVE_DLFCN_H
10304 #include <dlfcn.h>
10305 #endif
10307 #include <stdio.h>
10309 #ifdef RTLD_GLOBAL
10310 # define LT_DLGLOBAL RTLD_GLOBAL
10311 #else
10312 # ifdef DL_GLOBAL
10313 # define LT_DLGLOBAL DL_GLOBAL
10314 # else
10315 # define LT_DLGLOBAL 0
10316 # endif
10317 #endif
10319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320 find out it does not work in some platform. */
10321 #ifndef LT_DLLAZY_OR_NOW
10322 # ifdef RTLD_LAZY
10323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10324 # else
10325 # ifdef DL_LAZY
10326 # define LT_DLLAZY_OR_NOW DL_LAZY
10327 # else
10328 # ifdef RTLD_NOW
10329 # define LT_DLLAZY_OR_NOW RTLD_NOW
10330 # else
10331 # ifdef DL_NOW
10332 # define LT_DLLAZY_OR_NOW DL_NOW
10333 # else
10334 # define LT_DLLAZY_OR_NOW 0
10335 # endif
10336 # endif
10337 # endif
10338 # endif
10339 #endif
10341 #ifdef __cplusplus
10342 extern "C" void exit (int);
10343 #endif
10345 void fnord() { int i=42;}
10346 int main ()
10348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10349 int status = $lt_dlunknown;
10351 if (self)
10353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10355 /* dlclose (self); */
10357 else
10358 puts (dlerror ());
10360 exit (status);
10363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364 (eval $ac_link) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10368 (./conftest; exit; ) >&5 2>/dev/null
10369 lt_status=$?
10370 case x$lt_status in
10371 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10372 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10373 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10374 esac
10375 else :
10376 # compilation failed
10377 lt_cv_dlopen_self_static=no
10380 rm -fr conftest*
10384 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10388 CPPFLAGS="$save_CPPFLAGS"
10389 LDFLAGS="$save_LDFLAGS"
10390 LIBS="$save_LIBS"
10392 esac
10394 case $lt_cv_dlopen_self in
10395 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10396 *) enable_dlopen_self=unknown ;;
10397 esac
10399 case $lt_cv_dlopen_self_static in
10400 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10401 *) enable_dlopen_self_static=unknown ;;
10402 esac
10406 # Report which library types will actually be built
10407 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10409 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10410 echo "${ECHO_T}$can_build_shared" >&6; }
10412 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10414 test "$can_build_shared" = "no" && enable_shared=no
10416 # On AIX, shared libraries and static libraries use the same namespace, and
10417 # are all built from PIC.
10418 case $host_os in
10419 aix3*)
10420 test "$enable_shared" = yes && enable_static=no
10421 if test -n "$RANLIB"; then
10422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10423 postinstall_cmds='$RANLIB $lib'
10427 aix4* | aix5*)
10428 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10429 test "$enable_shared" = yes && enable_static=no
10432 esac
10433 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10434 echo "${ECHO_T}$enable_shared" >&6; }
10436 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10437 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10438 # Make sure either enable_shared or enable_static is yes.
10439 test "$enable_shared" = yes || enable_static=yes
10440 { echo "$as_me:$LINENO: result: $enable_static" >&5
10441 echo "${ECHO_T}$enable_static" >&6; }
10443 # The else clause should only fire when bootstrapping the
10444 # libtool distribution, otherwise you forgot to ship ltmain.sh
10445 # with your package, and you will get complaints that there are
10446 # no rules to generate ltmain.sh.
10447 if test -f "$ltmain"; then
10448 # See if we are running on zsh, and set the options which allow our commands through
10449 # without removal of \ escapes.
10450 if test -n "${ZSH_VERSION+set}" ; then
10451 setopt NO_GLOB_SUBST
10453 # Now quote all the things that may contain metacharacters while being
10454 # careful not to overquote the AC_SUBSTed values. We take copies of the
10455 # variables and quote the copies for generation of the libtool script.
10456 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10457 SED SHELL STRIP \
10458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10460 deplibs_check_method reload_flag reload_cmds need_locks \
10461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10462 lt_cv_sys_global_symbol_to_c_name_address \
10463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10464 old_postinstall_cmds old_postuninstall_cmds \
10465 compiler \
10466 CC \
10467 LD \
10468 lt_prog_compiler_wl \
10469 lt_prog_compiler_pic \
10470 lt_prog_compiler_static \
10471 lt_prog_compiler_no_builtin_flag \
10472 export_dynamic_flag_spec \
10473 thread_safe_flag_spec \
10474 whole_archive_flag_spec \
10475 enable_shared_with_static_runtimes \
10476 old_archive_cmds \
10477 old_archive_from_new_cmds \
10478 predep_objects \
10479 postdep_objects \
10480 predeps \
10481 postdeps \
10482 compiler_lib_search_path \
10483 archive_cmds \
10484 archive_expsym_cmds \
10485 postinstall_cmds \
10486 postuninstall_cmds \
10487 old_archive_from_expsyms_cmds \
10488 allow_undefined_flag \
10489 no_undefined_flag \
10490 export_symbols_cmds \
10491 hardcode_libdir_flag_spec \
10492 hardcode_libdir_flag_spec_ld \
10493 hardcode_libdir_separator \
10494 hardcode_automatic \
10495 module_cmds \
10496 module_expsym_cmds \
10497 lt_cv_prog_compiler_c_o \
10498 fix_srcfile_path \
10499 exclude_expsyms \
10500 include_expsyms; do
10502 case $var in
10503 old_archive_cmds | \
10504 old_archive_from_new_cmds | \
10505 archive_cmds | \
10506 archive_expsym_cmds | \
10507 module_cmds | \
10508 module_expsym_cmds | \
10509 old_archive_from_expsyms_cmds | \
10510 export_symbols_cmds | \
10511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10512 postinstall_cmds | postuninstall_cmds | \
10513 old_postinstall_cmds | old_postuninstall_cmds | \
10514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10515 # Double-quote double-evaled strings.
10516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10521 esac
10522 done
10524 case $lt_echo in
10525 *'\$0 --fallback-echo"')
10526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10528 esac
10530 cfgfile="${ofile}T"
10531 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10532 $rm -f "$cfgfile"
10533 { echo "$as_me:$LINENO: creating $ofile" >&5
10534 echo "$as_me: creating $ofile" >&6;}
10536 cat <<__EOF__ >> "$cfgfile"
10537 #! $SHELL
10539 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10540 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10541 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10543 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10544 # Free Software Foundation, Inc.
10546 # This file is part of GNU Libtool:
10547 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10549 # This program is free software; you can redistribute it and/or modify
10550 # it under the terms of the GNU General Public License as published by
10551 # the Free Software Foundation; either version 2 of the License, or
10552 # (at your option) any later version.
10554 # This program is distributed in the hope that it will be useful, but
10555 # WITHOUT ANY WARRANTY; without even the implied warranty of
10556 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10557 # General Public License for more details.
10559 # You should have received a copy of the GNU General Public License
10560 # along with this program; if not, write to the Free Software
10561 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10563 # As a special exception to the GNU General Public License, if you
10564 # distribute this file as part of a program that contains a
10565 # configuration script generated by Autoconf, you may include it under
10566 # the same distribution terms that you use for the rest of that program.
10568 # A sed program that does not truncate output.
10569 SED=$lt_SED
10571 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10572 Xsed="$SED -e 1s/^X//"
10574 # The HP-UX ksh and POSIX shell print the target directory to stdout
10575 # if CDPATH is set.
10576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10578 # The names of the tagged configurations supported by this script.
10579 available_tags=
10581 # ### BEGIN LIBTOOL CONFIG
10583 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10585 # Shell to use when invoking shell scripts.
10586 SHELL=$lt_SHELL
10588 # Whether or not to build shared libraries.
10589 build_libtool_libs=$enable_shared
10591 # Whether or not to build static libraries.
10592 build_old_libs=$enable_static
10594 # Whether or not to add -lc for building shared libraries.
10595 build_libtool_need_lc=$archive_cmds_need_lc
10597 # Whether or not to disallow shared libs when runtime libs are static
10598 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10600 # Whether or not to optimize for fast installation.
10601 fast_install=$enable_fast_install
10603 # The host system.
10604 host_alias=$host_alias
10605 host=$host
10606 host_os=$host_os
10608 # The build system.
10609 build_alias=$build_alias
10610 build=$build
10611 build_os=$build_os
10613 # An echo program that does not interpret backslashes.
10614 echo=$lt_echo
10616 # The archiver.
10617 AR=$lt_AR
10618 AR_FLAGS=$lt_AR_FLAGS
10620 # A C compiler.
10621 LTCC=$lt_LTCC
10623 # LTCC compiler flags.
10624 LTCFLAGS=$lt_LTCFLAGS
10626 # A language-specific compiler.
10627 CC=$lt_compiler
10629 # Is the compiler the GNU C compiler?
10630 with_gcc=$GCC
10632 # An ERE matcher.
10633 EGREP=$lt_EGREP
10635 # The linker used to build libraries.
10636 LD=$lt_LD
10638 # Whether we need hard or soft links.
10639 LN_S=$lt_LN_S
10641 # A BSD-compatible nm program.
10642 NM=$lt_NM
10644 # A symbol stripping program
10645 STRIP=$lt_STRIP
10647 # Used to examine libraries when file_magic_cmd begins "file"
10648 MAGIC_CMD=$MAGIC_CMD
10650 # Used on cygwin: DLL creation program.
10651 DLLTOOL="$DLLTOOL"
10653 # Used on cygwin: object dumper.
10654 OBJDUMP="$OBJDUMP"
10656 # Used on cygwin: assembler.
10657 AS="$AS"
10659 # The name of the directory that contains temporary libtool files.
10660 objdir=$objdir
10662 # How to create reloadable object files.
10663 reload_flag=$lt_reload_flag
10664 reload_cmds=$lt_reload_cmds
10666 # How to pass a linker flag through the compiler.
10667 wl=$lt_lt_prog_compiler_wl
10669 # Object file suffix (normally "o").
10670 objext="$ac_objext"
10672 # Old archive suffix (normally "a").
10673 libext="$libext"
10675 # Shared library suffix (normally ".so").
10676 shrext_cmds='$shrext_cmds'
10678 # Executable file suffix (normally "").
10679 exeext="$exeext"
10681 # Additional compiler flags for building library objects.
10682 pic_flag=$lt_lt_prog_compiler_pic
10683 pic_mode=$pic_mode
10685 # What is the maximum length of a command?
10686 max_cmd_len=$lt_cv_sys_max_cmd_len
10688 # Does compiler simultaneously support -c and -o options?
10689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10691 # Must we lock files when doing compilation?
10692 need_locks=$lt_need_locks
10694 # Do we need the lib prefix for modules?
10695 need_lib_prefix=$need_lib_prefix
10697 # Do we need a version for libraries?
10698 need_version=$need_version
10700 # Whether dlopen is supported.
10701 dlopen_support=$enable_dlopen
10703 # Whether dlopen of programs is supported.
10704 dlopen_self=$enable_dlopen_self
10706 # Whether dlopen of statically linked programs is supported.
10707 dlopen_self_static=$enable_dlopen_self_static
10709 # Compiler flag to prevent dynamic linking.
10710 link_static_flag=$lt_lt_prog_compiler_static
10712 # Compiler flag to turn off builtin functions.
10713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10715 # Compiler flag to allow reflexive dlopens.
10716 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10718 # Compiler flag to generate shared objects directly from archives.
10719 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10721 # Compiler flag to generate thread-safe objects.
10722 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10724 # Library versioning type.
10725 version_type=$version_type
10727 # Format of library name prefix.
10728 libname_spec=$lt_libname_spec
10730 # List of archive names. First name is the real one, the rest are links.
10731 # The last name is the one that the linker finds with -lNAME.
10732 library_names_spec=$lt_library_names_spec
10734 # The coded name of the library, if different from the real name.
10735 soname_spec=$lt_soname_spec
10737 # Commands used to build and install an old-style archive.
10738 RANLIB=$lt_RANLIB
10739 old_archive_cmds=$lt_old_archive_cmds
10740 old_postinstall_cmds=$lt_old_postinstall_cmds
10741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10743 # Create an old-style archive from a shared archive.
10744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10746 # Create a temporary old-style archive to link instead of a shared archive.
10747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10749 # Commands used to build and install a shared archive.
10750 archive_cmds=$lt_archive_cmds
10751 archive_expsym_cmds=$lt_archive_expsym_cmds
10752 postinstall_cmds=$lt_postinstall_cmds
10753 postuninstall_cmds=$lt_postuninstall_cmds
10755 # Commands used to build a loadable module (assumed same as above if empty)
10756 module_cmds=$lt_module_cmds
10757 module_expsym_cmds=$lt_module_expsym_cmds
10759 # Commands to strip libraries.
10760 old_striplib=$lt_old_striplib
10761 striplib=$lt_striplib
10763 # Dependencies to place before the objects being linked to create a
10764 # shared library.
10765 predep_objects=$lt_predep_objects
10767 # Dependencies to place after the objects being linked to create a
10768 # shared library.
10769 postdep_objects=$lt_postdep_objects
10771 # Dependencies to place before the objects being linked to create a
10772 # shared library.
10773 predeps=$lt_predeps
10775 # Dependencies to place after the objects being linked to create a
10776 # shared library.
10777 postdeps=$lt_postdeps
10779 # The library search path used internally by the compiler when linking
10780 # a shared library.
10781 compiler_lib_search_path=$lt_compiler_lib_search_path
10783 # Method to check whether dependent libraries are shared objects.
10784 deplibs_check_method=$lt_deplibs_check_method
10786 # Command to use when deplibs_check_method == file_magic.
10787 file_magic_cmd=$lt_file_magic_cmd
10789 # Flag that allows shared libraries with undefined symbols to be built.
10790 allow_undefined_flag=$lt_allow_undefined_flag
10792 # Flag that forces no undefined symbols.
10793 no_undefined_flag=$lt_no_undefined_flag
10795 # Commands used to finish a libtool library installation in a directory.
10796 finish_cmds=$lt_finish_cmds
10798 # Same as above, but a single script fragment to be evaled but not shown.
10799 finish_eval=$lt_finish_eval
10801 # Take the output of nm and produce a listing of raw symbols and C names.
10802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10804 # Transform the output of nm in a proper C declaration
10805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10807 # Transform the output of nm in a C name address pair
10808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10810 # This is the shared library runtime path variable.
10811 runpath_var=$runpath_var
10813 # This is the shared library path variable.
10814 shlibpath_var=$shlibpath_var
10816 # Is shlibpath searched before the hard-coded library search path?
10817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10819 # How to hardcode a shared library path into an executable.
10820 hardcode_action=$hardcode_action
10822 # Whether we should hardcode library paths into libraries.
10823 hardcode_into_libs=$hardcode_into_libs
10825 # Flag to hardcode \$libdir into a binary during linking.
10826 # This must work even if \$libdir does not exist.
10827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10829 # If ld is used when linking, flag to hardcode \$libdir into
10830 # a binary during linking. This must work even if \$libdir does
10831 # not exist.
10832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10834 # Whether we need a single -rpath flag with a separated argument.
10835 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10838 # resulting binary.
10839 hardcode_direct=$hardcode_direct
10841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10842 # resulting binary.
10843 hardcode_minus_L=$hardcode_minus_L
10845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10846 # the resulting binary.
10847 hardcode_shlibpath_var=$hardcode_shlibpath_var
10849 # Set to yes if building a shared library automatically hardcodes DIR into the library
10850 # and all subsequent libraries and executables linked against it.
10851 hardcode_automatic=$hardcode_automatic
10853 # Variables whose values should be saved in libtool wrapper scripts and
10854 # restored at relink time.
10855 variables_saved_for_relink="$variables_saved_for_relink"
10857 # Whether libtool must link a program against all its dependency libraries.
10858 link_all_deplibs=$link_all_deplibs
10860 # Compile-time system search path for libraries
10861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10863 # Run-time system search path for libraries
10864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10866 # Fix the shell variable \$srcfile for the compiler.
10867 fix_srcfile_path=$lt_fix_srcfile_path
10869 # Set to yes if exported symbols are required.
10870 always_export_symbols=$always_export_symbols
10872 # The commands to list exported symbols.
10873 export_symbols_cmds=$lt_export_symbols_cmds
10875 # The commands to extract the exported symbol list from a shared archive.
10876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10878 # Symbols that should not be listed in the preloaded symbols.
10879 exclude_expsyms=$lt_exclude_expsyms
10881 # Symbols that must always be exported.
10882 include_expsyms=$lt_include_expsyms
10884 # ### END LIBTOOL CONFIG
10886 __EOF__
10889 case $host_os in
10890 aix3*)
10891 cat <<\EOF >> "$cfgfile"
10893 # AIX sometimes has problems with the GCC collect2 program. For some
10894 # reason, if we set the COLLECT_NAMES environment variable, the problems
10895 # vanish in a puff of smoke.
10896 if test "X${COLLECT_NAMES+set}" != Xset; then
10897 COLLECT_NAMES=
10898 export COLLECT_NAMES
10902 esac
10904 # We use sed instead of cat because bash on DJGPP gets confused if
10905 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10906 # text mode, it properly converts lines to CR/LF. This bash problem
10907 # is reportedly fixed, but why not run on old versions too?
10908 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10910 mv -f "$cfgfile" "$ofile" || \
10911 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10912 chmod +x "$ofile"
10914 else
10915 # If there is no Makefile yet, we rely on a make rule to execute
10916 # `config.status --recheck' to rerun these tests and create the
10917 # libtool script then.
10918 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10919 if test -f "$ltmain_in"; then
10920 test -f Makefile && make "$ltmain"
10925 ac_ext=c
10926 ac_cpp='$CPP $CPPFLAGS'
10927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10931 CC="$lt_save_CC"
10934 # Check whether --with-tags was given.
10935 if test "${with_tags+set}" = set; then
10936 withval=$with_tags; tagnames="$withval"
10940 if test -f "$ltmain" && test -n "$tagnames"; then
10941 if test ! -f "${ofile}"; then
10942 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10943 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10946 if test -z "$LTCC"; then
10947 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10948 if test -z "$LTCC"; then
10949 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10950 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10951 else
10952 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10953 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10956 if test -z "$LTCFLAGS"; then
10957 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10960 # Extract list of available tagged configurations in $ofile.
10961 # Note that this assumes the entire list is on one line.
10962 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10965 for tagname in $tagnames; do
10966 IFS="$lt_save_ifs"
10967 # Check whether tagname contains only valid characters
10968 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10969 "") ;;
10970 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10971 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10972 { (exit 1); exit 1; }; }
10974 esac
10976 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10977 then
10978 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10979 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10980 { (exit 1); exit 1; }; }
10983 # Update the list of available tags.
10984 if test -n "$tagname"; then
10985 echo appending configuration tag \"$tagname\" to $ofile
10987 case $tagname in
10988 CXX)
10989 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10990 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10991 (test "X$CXX" != "Xg++"))) ; then
10992 ac_ext=cpp
10993 ac_cpp='$CXXCPP $CPPFLAGS'
10994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11001 archive_cmds_need_lc_CXX=no
11002 allow_undefined_flag_CXX=
11003 always_export_symbols_CXX=no
11004 archive_expsym_cmds_CXX=
11005 export_dynamic_flag_spec_CXX=
11006 hardcode_direct_CXX=no
11007 hardcode_libdir_flag_spec_CXX=
11008 hardcode_libdir_flag_spec_ld_CXX=
11009 hardcode_libdir_separator_CXX=
11010 hardcode_minus_L_CXX=no
11011 hardcode_shlibpath_var_CXX=unsupported
11012 hardcode_automatic_CXX=no
11013 module_cmds_CXX=
11014 module_expsym_cmds_CXX=
11015 link_all_deplibs_CXX=unknown
11016 old_archive_cmds_CXX=$old_archive_cmds
11017 no_undefined_flag_CXX=
11018 whole_archive_flag_spec_CXX=
11019 enable_shared_with_static_runtimes_CXX=no
11021 # Dependencies to place before and after the object being linked:
11022 predep_objects_CXX=
11023 postdep_objects_CXX=
11024 predeps_CXX=
11025 postdeps_CXX=
11026 compiler_lib_search_path_CXX=
11028 # Source file extension for C++ test sources.
11029 ac_ext=cpp
11031 # Object file extension for compiled C++ test sources.
11032 objext=o
11033 objext_CXX=$objext
11035 # Code to be used in simple compile tests
11036 lt_simple_compile_test_code="int some_variable = 0;"
11038 # Code to be used in simple link tests
11039 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11041 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11043 # If no C compiler was specified, use CC.
11044 LTCC=${LTCC-"$CC"}
11046 # If no C compiler flags were specified, use CFLAGS.
11047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11049 # Allow CC to be a program name with arguments.
11050 compiler=$CC
11053 # save warnings/boilerplate of simple test code
11054 ac_outfile=conftest.$ac_objext
11055 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11056 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11057 _lt_compiler_boilerplate=`cat conftest.err`
11058 $rm conftest*
11060 ac_outfile=conftest.$ac_objext
11061 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11062 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11063 _lt_linker_boilerplate=`cat conftest.err`
11064 $rm conftest*
11067 # Allow CC to be a program name with arguments.
11068 lt_save_CC=$CC
11069 lt_save_LD=$LD
11070 lt_save_GCC=$GCC
11071 GCC=$GXX
11072 lt_save_with_gnu_ld=$with_gnu_ld
11073 lt_save_path_LD=$lt_cv_path_LD
11074 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11075 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11076 else
11077 $as_unset lt_cv_prog_gnu_ld
11079 if test -n "${lt_cv_path_LDCXX+set}"; then
11080 lt_cv_path_LD=$lt_cv_path_LDCXX
11081 else
11082 $as_unset lt_cv_path_LD
11084 test -z "${LDCXX+set}" || LD=$LDCXX
11085 CC=${CXX-"c++"}
11086 compiler=$CC
11087 compiler_CXX=$CC
11088 for cc_temp in $compiler""; do
11089 case $cc_temp in
11090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11092 \-*) ;;
11093 *) break;;
11094 esac
11095 done
11096 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11099 # We don't want -fno-exception wen compiling C++ code, so set the
11100 # no_builtin_flag separately
11101 if test "$GXX" = yes; then
11102 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11103 else
11104 lt_prog_compiler_no_builtin_flag_CXX=
11107 if test "$GXX" = yes; then
11108 # Set up default GNU C++ configuration
11111 # Check whether --with-gnu-ld was given.
11112 if test "${with_gnu_ld+set}" = set; then
11113 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11114 else
11115 with_gnu_ld=no
11118 ac_prog=ld
11119 if test "$GCC" = yes; then
11120 # Check if gcc -print-prog-name=ld gives a path.
11121 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11123 case $host in
11124 *-*-mingw*)
11125 # gcc leaves a trailing carriage return which upsets mingw
11126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11129 esac
11130 case $ac_prog in
11131 # Accept absolute paths.
11132 [\\/]* | ?:[\\/]*)
11133 re_direlt='/[^/][^/]*/\.\./'
11134 # Canonicalize the pathname of ld
11135 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11136 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11137 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11138 done
11139 test -z "$LD" && LD="$ac_prog"
11142 # If it fails, then pretend we aren't using GCC.
11143 ac_prog=ld
11146 # If it is relative, then search for the first ld in PATH.
11147 with_gnu_ld=unknown
11149 esac
11150 elif test "$with_gnu_ld" = yes; then
11151 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11153 else
11154 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11157 if test "${lt_cv_path_LD+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160 if test -z "$LD"; then
11161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11162 for ac_dir in $PATH; do
11163 IFS="$lt_save_ifs"
11164 test -z "$ac_dir" && ac_dir=.
11165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11166 lt_cv_path_LD="$ac_dir/$ac_prog"
11167 # Check to see if the program is GNU ld. I'd rather use --version,
11168 # but apparently some variants of GNU ld only accept -v.
11169 # Break only if it was the GNU/non-GNU ld that we prefer.
11170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11171 *GNU* | *'with BFD'*)
11172 test "$with_gnu_ld" != no && break
11175 test "$with_gnu_ld" != yes && break
11177 esac
11179 done
11180 IFS="$lt_save_ifs"
11181 else
11182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11186 LD="$lt_cv_path_LD"
11187 if test -n "$LD"; then
11188 { echo "$as_me:$LINENO: result: $LD" >&5
11189 echo "${ECHO_T}$LD" >&6; }
11190 else
11191 { echo "$as_me:$LINENO: result: no" >&5
11192 echo "${ECHO_T}no" >&6; }
11194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11196 { (exit 1); exit 1; }; }
11197 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 else
11202 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11203 case `$LD -v 2>&1 </dev/null` in
11204 *GNU* | *'with BFD'*)
11205 lt_cv_prog_gnu_ld=yes
11208 lt_cv_prog_gnu_ld=no
11210 esac
11212 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11214 with_gnu_ld=$lt_cv_prog_gnu_ld
11218 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11219 # archiving commands below assume that GNU ld is being used.
11220 if test "$with_gnu_ld" = yes; then
11221 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11222 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'
11224 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11225 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11227 # If archive_cmds runs LD, not CC, wlarc should be empty
11228 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11229 # investigate it a little bit more. (MM)
11230 wlarc='${wl}'
11232 # ancient GNU ld didn't support --whole-archive et. al.
11233 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11234 grep 'no-whole-archive' > /dev/null; then
11235 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11236 else
11237 whole_archive_flag_spec_CXX=
11239 else
11240 with_gnu_ld=no
11241 wlarc=
11243 # A generic and very simple default shared library creation
11244 # command for GNU C++ for the case where it uses the native
11245 # linker, instead of GNU ld. If possible, this setting should
11246 # overridden to take advantage of the native linker features on
11247 # the platform it is being used on.
11248 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11251 # Commands to make compiler produce verbose output that lists
11252 # what "hidden" libraries, object files and flags are used when
11253 # linking a shared library.
11254 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11256 else
11257 GXX=no
11258 with_gnu_ld=no
11259 wlarc=
11262 # PORTME: fill in a description of your system's C++ link characteristics
11263 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11264 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11265 ld_shlibs_CXX=yes
11266 case $host_os in
11267 aix3*)
11268 # FIXME: insert proper C++ library support
11269 ld_shlibs_CXX=no
11271 aix4* | aix5*)
11272 if test "$host_cpu" = ia64; then
11273 # On IA64, the linker does run time linking by default, so we don't
11274 # have to do anything special.
11275 aix_use_runtimelinking=no
11276 exp_sym_flag='-Bexport'
11277 no_entry_flag=""
11278 else
11279 aix_use_runtimelinking=no
11281 # Test if we are trying to use run time linking or normal
11282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11283 # need to do runtime linking.
11284 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11285 for ld_flag in $LDFLAGS; do
11286 case $ld_flag in
11287 *-brtl*)
11288 aix_use_runtimelinking=yes
11289 break
11291 esac
11292 done
11294 esac
11296 exp_sym_flag='-bexport'
11297 no_entry_flag='-bnoentry'
11300 # When large executables or shared objects are built, AIX ld can
11301 # have problems creating the table of contents. If linking a library
11302 # or program results in "error TOC overflow" add -mminimal-toc to
11303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11306 archive_cmds_CXX=''
11307 hardcode_direct_CXX=yes
11308 hardcode_libdir_separator_CXX=':'
11309 link_all_deplibs_CXX=yes
11311 if test "$GXX" = yes; then
11312 case $host_os in aix4.[012]|aix4.[012].*)
11313 # We only want to do this on AIX 4.2 and lower, the check
11314 # below for broken collect2 doesn't work under 4.3+
11315 collect2name=`${CC} -print-prog-name=collect2`
11316 if test -f "$collect2name" && \
11317 strings "$collect2name" | grep resolve_lib_name >/dev/null
11318 then
11319 # We have reworked collect2
11321 else
11322 # We have old collect2
11323 hardcode_direct_CXX=unsupported
11324 # It fails to find uninstalled libraries when the uninstalled
11325 # path is not listed in the libpath. Setting hardcode_minus_L
11326 # to unsupported forces relinking
11327 hardcode_minus_L_CXX=yes
11328 hardcode_libdir_flag_spec_CXX='-L$libdir'
11329 hardcode_libdir_separator_CXX=
11332 esac
11333 shared_flag='-shared'
11334 if test "$aix_use_runtimelinking" = yes; then
11335 shared_flag="$shared_flag "'${wl}-G'
11337 else
11338 # not using gcc
11339 if test "$host_cpu" = ia64; then
11340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11341 # chokes on -Wl,-G. The following line is correct:
11342 shared_flag='-G'
11343 else
11344 if test "$aix_use_runtimelinking" = yes; then
11345 shared_flag='${wl}-G'
11346 else
11347 shared_flag='${wl}-bM:SRE'
11352 # It seems that -bexpall does not export symbols beginning with
11353 # underscore (_), so it is better to generate a list of symbols to export.
11354 always_export_symbols_CXX=yes
11355 if test "$aix_use_runtimelinking" = yes; then
11356 # Warning - without using the other runtime loading flags (-brtl),
11357 # -berok will link without error, but may produce a broken library.
11358 allow_undefined_flag_CXX='-berok'
11359 # Determine the default libpath from the value encoded in an empty executable.
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h. */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11368 main ()
11372 return 0;
11374 _ACEOF
11375 rm -f conftest.$ac_objext conftest$ac_exeext
11376 if { (ac_try="$ac_link"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_link") 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_cxx_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest$ac_exeext &&
11392 $as_test_x conftest$ac_exeext; then
11394 lt_aix_libpath_sed='
11395 /Import File Strings/,/^$/ {
11396 /^0/ {
11397 s/^0 *\(.*\)$/\1/
11401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11402 # Check for a 64-bit object if we didn't find anything.
11403 if test -z "$aix_libpath"; then
11404 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11406 else
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11414 conftest$ac_exeext conftest.$ac_ext
11415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11417 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11419 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"
11420 else
11421 if test "$host_cpu" = ia64; then
11422 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11423 allow_undefined_flag_CXX="-z nodefs"
11424 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"
11425 else
11426 # Determine the default libpath from the value encoded in an empty executable.
11427 cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h. */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11435 main ()
11439 return 0;
11441 _ACEOF
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (ac_try="$ac_link"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_link") 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_cxx_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest$ac_exeext &&
11459 $as_test_x conftest$ac_exeext; then
11461 lt_aix_libpath_sed='
11462 /Import File Strings/,/^$/ {
11463 /^0/ {
11464 s/^0 *\(.*\)$/\1/
11468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11469 # Check for a 64-bit object if we didn't find anything.
11470 if test -z "$aix_libpath"; then
11471 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11473 else
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11481 conftest$ac_exeext conftest.$ac_ext
11482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11484 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11485 # Warning - without using the other run time loading flags,
11486 # -berok will link without error, but may produce a broken library.
11487 no_undefined_flag_CXX=' ${wl}-bernotok'
11488 allow_undefined_flag_CXX=' ${wl}-berok'
11489 # Exported symbols can be pulled into shared objects from archives
11490 whole_archive_flag_spec_CXX='$convenience'
11491 archive_cmds_need_lc_CXX=yes
11492 # This is similar to how AIX traditionally builds its shared libraries.
11493 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'
11498 beos*)
11499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11500 allow_undefined_flag_CXX=unsupported
11501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11502 # support --undefined. This deserves some investigation. FIXME
11503 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11504 else
11505 ld_shlibs_CXX=no
11509 chorus*)
11510 case $cc_basename in
11512 # FIXME: insert proper C++ library support
11513 ld_shlibs_CXX=no
11515 esac
11518 cygwin* | mingw* | pw32*)
11519 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11520 # as there is no search path for DLLs.
11521 hardcode_libdir_flag_spec_CXX='-L$libdir'
11522 allow_undefined_flag_CXX=unsupported
11523 always_export_symbols_CXX=no
11524 enable_shared_with_static_runtimes_CXX=yes
11526 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11527 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'
11528 # If the export-symbols file already is a .def file (1st line
11529 # is EXPORTS), use it as is; otherwise, prepend...
11530 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11531 cp $export_symbols $output_objdir/$soname.def;
11532 else
11533 echo EXPORTS > $output_objdir/$soname.def;
11534 cat $export_symbols >> $output_objdir/$soname.def;
11536 $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'
11537 else
11538 ld_shlibs_CXX=no
11541 darwin* | rhapsody*)
11542 case $host_os in
11543 rhapsody* | darwin1.[012])
11544 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11546 *) # Darwin 1.3 on
11547 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11548 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11549 else
11550 case ${MACOSX_DEPLOYMENT_TARGET} in
11551 10.[012])
11552 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11554 10.*)
11555 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11557 esac
11560 esac
11561 archive_cmds_need_lc_CXX=no
11562 hardcode_direct_CXX=no
11563 hardcode_automatic_CXX=yes
11564 hardcode_shlibpath_var_CXX=unsupported
11565 whole_archive_flag_spec_CXX=''
11566 link_all_deplibs_CXX=yes
11568 if test "$GXX" = yes ; then
11569 lt_int_apple_cc_single_mod=no
11570 output_verbose_link_cmd='echo'
11571 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11572 lt_int_apple_cc_single_mod=yes
11574 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11575 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11576 else
11577 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'
11579 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11580 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11581 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11582 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11583 else
11584 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11586 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}'
11587 else
11588 case $cc_basename in
11589 xlc*)
11590 output_verbose_link_cmd='echo'
11591 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'
11592 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11594 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}'
11595 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}'
11598 ld_shlibs_CXX=no
11600 esac
11604 dgux*)
11605 case $cc_basename in
11606 ec++*)
11607 # FIXME: insert proper C++ library support
11608 ld_shlibs_CXX=no
11610 ghcx*)
11611 # Green Hills C++ Compiler
11612 # FIXME: insert proper C++ library support
11613 ld_shlibs_CXX=no
11616 # FIXME: insert proper C++ library support
11617 ld_shlibs_CXX=no
11619 esac
11621 freebsd[12]*)
11622 # C++ shared libraries reported to be fairly broken before switch to ELF
11623 ld_shlibs_CXX=no
11625 freebsd-elf*)
11626 archive_cmds_need_lc_CXX=no
11628 freebsd* | dragonfly*)
11629 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11630 # conventions
11631 ld_shlibs_CXX=yes
11633 gnu*)
11635 hpux9*)
11636 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11637 hardcode_libdir_separator_CXX=:
11638 export_dynamic_flag_spec_CXX='${wl}-E'
11639 hardcode_direct_CXX=yes
11640 hardcode_minus_L_CXX=yes # Not in the search PATH,
11641 # but as the default
11642 # location of the library.
11644 case $cc_basename in
11645 CC*)
11646 # FIXME: insert proper C++ library support
11647 ld_shlibs_CXX=no
11649 aCC*)
11650 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'
11651 # Commands to make compiler produce verbose output that lists
11652 # what "hidden" libraries, object files and flags are used when
11653 # linking a shared library.
11655 # There doesn't appear to be a way to prevent this compiler from
11656 # explicitly linking system object files so we need to strip them
11657 # from the output so that they don't get included in the library
11658 # dependencies.
11659 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'
11662 if test "$GXX" = yes; then
11663 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'
11664 else
11665 # FIXME: insert proper C++ library support
11666 ld_shlibs_CXX=no
11669 esac
11671 hpux10*|hpux11*)
11672 if test $with_gnu_ld = no; then
11673 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11674 hardcode_libdir_separator_CXX=:
11676 case $host_cpu in
11677 hppa*64*|ia64*) ;;
11679 export_dynamic_flag_spec_CXX='${wl}-E'
11681 esac
11683 case $host_cpu in
11684 hppa*64*|ia64*)
11685 hardcode_direct_CXX=no
11686 hardcode_shlibpath_var_CXX=no
11689 hardcode_direct_CXX=yes
11690 hardcode_minus_L_CXX=yes # Not in the search PATH,
11691 # but as the default
11692 # location of the library.
11694 esac
11696 case $cc_basename in
11697 CC*)
11698 # FIXME: insert proper C++ library support
11699 ld_shlibs_CXX=no
11701 aCC*)
11702 case $host_cpu in
11703 hppa*64*)
11704 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11706 ia64*)
11707 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11712 esac
11713 # Commands to make compiler produce verbose output that lists
11714 # what "hidden" libraries, object files and flags are used when
11715 # linking a shared library.
11717 # There doesn't appear to be a way to prevent this compiler from
11718 # explicitly linking system object files so we need to strip them
11719 # from the output so that they don't get included in the library
11720 # dependencies.
11721 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'
11724 if test "$GXX" = yes; then
11725 if test $with_gnu_ld = no; then
11726 case $host_cpu in
11727 hppa*64*)
11728 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11730 ia64*)
11731 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11734 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'
11736 esac
11738 else
11739 # FIXME: insert proper C++ library support
11740 ld_shlibs_CXX=no
11743 esac
11745 interix[3-9]*)
11746 hardcode_direct_CXX=no
11747 hardcode_shlibpath_var_CXX=no
11748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11749 export_dynamic_flag_spec_CXX='${wl}-E'
11750 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11751 # Instead, shared libraries are loaded at an image base (0x10000000 by
11752 # default) and relocated if they conflict, which is a slow very memory
11753 # consuming and fragmenting process. To avoid this, we pick a random,
11754 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11755 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11756 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'
11757 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'
11759 irix5* | irix6*)
11760 case $cc_basename in
11761 CC*)
11762 # SGI C++
11763 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'
11765 # Archives containing C++ object files must be created using
11766 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11767 # necessary to make sure instantiated templates are included
11768 # in the archive.
11769 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11772 if test "$GXX" = yes; then
11773 if test "$with_gnu_ld" = no; then
11774 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'
11775 else
11776 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'
11779 link_all_deplibs_CXX=yes
11781 esac
11782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11783 hardcode_libdir_separator_CXX=:
11785 linux* | k*bsd*-gnu)
11786 case $cc_basename in
11787 KCC*)
11788 # Kuck and Associates, Inc. (KAI) C++ Compiler
11790 # KCC will only create a shared library if the output file
11791 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11792 # to its proper name (with version) after linking.
11793 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'
11794 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'
11795 # Commands to make compiler produce verbose output that lists
11796 # what "hidden" libraries, object files and flags are used when
11797 # linking a shared library.
11799 # There doesn't appear to be a way to prevent this compiler from
11800 # explicitly linking system object files so we need to strip them
11801 # from the output so that they don't get included in the library
11802 # dependencies.
11803 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'
11805 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11806 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11808 # Archives containing C++ object files must be created using
11809 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11810 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11812 icpc*)
11813 # Intel C++
11814 with_gnu_ld=yes
11815 # version 8.0 and above of icpc choke on multiply defined symbols
11816 # if we add $predep_objects and $postdep_objects, however 7.1 and
11817 # earlier do not add the objects themselves.
11818 case `$CC -V 2>&1` in
11819 *"Version 7."*)
11820 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11821 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'
11823 *) # Version 8.0 or newer
11824 tmp_idyn=
11825 case $host_cpu in
11826 ia64*) tmp_idyn=' -i_dynamic';;
11827 esac
11828 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11829 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'
11831 esac
11832 archive_cmds_need_lc_CXX=no
11833 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11834 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11835 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11837 pgCC*)
11838 # Portland Group C++ compiler
11839 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11840 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'
11842 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11843 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11844 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'
11846 cxx*)
11847 # Compaq C++
11848 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11849 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'
11851 runpath_var=LD_RUN_PATH
11852 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11853 hardcode_libdir_separator_CXX=:
11855 # Commands to make compiler produce verbose output that lists
11856 # what "hidden" libraries, object files and flags are used when
11857 # linking a shared library.
11859 # There doesn't appear to be a way to prevent this compiler from
11860 # explicitly linking system object files so we need to strip them
11861 # from the output so that they don't get included in the library
11862 # dependencies.
11863 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'
11866 case `$CC -V 2>&1 | sed 5q` in
11867 *Sun\ C*)
11868 # Sun C++ 5.9
11869 no_undefined_flag_CXX=' -zdefs'
11870 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11871 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'
11872 hardcode_libdir_flag_spec_CXX='-R$libdir'
11873 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'
11875 # Not sure whether something based on
11876 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11877 # would be better.
11878 output_verbose_link_cmd='echo'
11880 # Archives containing C++ object files must be created using
11881 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11882 # necessary to make sure instantiated templates are included
11883 # in the archive.
11884 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11886 esac
11888 esac
11890 lynxos*)
11891 # FIXME: insert proper C++ library support
11892 ld_shlibs_CXX=no
11894 m88k*)
11895 # FIXME: insert proper C++ library support
11896 ld_shlibs_CXX=no
11898 mvs*)
11899 case $cc_basename in
11900 cxx*)
11901 # FIXME: insert proper C++ library support
11902 ld_shlibs_CXX=no
11905 # FIXME: insert proper C++ library support
11906 ld_shlibs_CXX=no
11908 esac
11910 netbsd* | netbsdelf*-gnu)
11911 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11912 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11913 wlarc=
11914 hardcode_libdir_flag_spec_CXX='-R$libdir'
11915 hardcode_direct_CXX=yes
11916 hardcode_shlibpath_var_CXX=no
11918 # Workaround some broken pre-1.5 toolchains
11919 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11921 openbsd2*)
11922 # C++ shared libraries are fairly broken
11923 ld_shlibs_CXX=no
11925 openbsd*)
11926 if test -f /usr/libexec/ld.so; then
11927 hardcode_direct_CXX=yes
11928 hardcode_shlibpath_var_CXX=no
11929 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11930 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11932 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11933 export_dynamic_flag_spec_CXX='${wl}-E'
11934 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11936 output_verbose_link_cmd='echo'
11937 else
11938 ld_shlibs_CXX=no
11941 osf3*)
11942 case $cc_basename in
11943 KCC*)
11944 # Kuck and Associates, Inc. (KAI) C++ Compiler
11946 # KCC will only create a shared library if the output file
11947 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11948 # to its proper name (with version) after linking.
11949 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'
11951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11952 hardcode_libdir_separator_CXX=:
11954 # Archives containing C++ object files must be created using
11955 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11956 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11959 RCC*)
11960 # Rational C++ 2.4.1
11961 # FIXME: insert proper C++ library support
11962 ld_shlibs_CXX=no
11964 cxx*)
11965 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11966 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'
11968 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11969 hardcode_libdir_separator_CXX=:
11971 # Commands to make compiler produce verbose output that lists
11972 # what "hidden" libraries, object files and flags are used when
11973 # linking a shared library.
11975 # There doesn't appear to be a way to prevent this compiler from
11976 # explicitly linking system object files so we need to strip them
11977 # from the output so that they don't get included in the library
11978 # dependencies.
11979 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'
11982 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11983 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11984 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'
11986 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11987 hardcode_libdir_separator_CXX=:
11989 # Commands to make compiler produce verbose output that lists
11990 # what "hidden" libraries, object files and flags are used when
11991 # linking a shared library.
11992 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11994 else
11995 # FIXME: insert proper C++ library support
11996 ld_shlibs_CXX=no
11999 esac
12001 osf4* | osf5*)
12002 case $cc_basename in
12003 KCC*)
12004 # Kuck and Associates, Inc. (KAI) C++ Compiler
12006 # KCC will only create a shared library if the output file
12007 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12008 # to its proper name (with version) after linking.
12009 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'
12011 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12012 hardcode_libdir_separator_CXX=:
12014 # Archives containing C++ object files must be created using
12015 # the KAI C++ compiler.
12016 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12018 RCC*)
12019 # Rational C++ 2.4.1
12020 # FIXME: insert proper C++ library support
12021 ld_shlibs_CXX=no
12023 cxx*)
12024 allow_undefined_flag_CXX=' -expect_unresolved \*'
12025 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'
12026 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12027 echo "-hidden">> $lib.exp~
12028 $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~
12029 $rm $lib.exp'
12031 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12032 hardcode_libdir_separator_CXX=:
12034 # Commands to make compiler produce verbose output that lists
12035 # what "hidden" libraries, object files and flags are used when
12036 # linking a shared library.
12038 # There doesn't appear to be a way to prevent this compiler from
12039 # explicitly linking system object files so we need to strip them
12040 # from the output so that they don't get included in the library
12041 # dependencies.
12042 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'
12045 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12046 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12047 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'
12049 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12050 hardcode_libdir_separator_CXX=:
12052 # Commands to make compiler produce verbose output that lists
12053 # what "hidden" libraries, object files and flags are used when
12054 # linking a shared library.
12055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12057 else
12058 # FIXME: insert proper C++ library support
12059 ld_shlibs_CXX=no
12062 esac
12064 psos*)
12065 # FIXME: insert proper C++ library support
12066 ld_shlibs_CXX=no
12068 sunos4*)
12069 case $cc_basename in
12070 CC*)
12071 # Sun C++ 4.x
12072 # FIXME: insert proper C++ library support
12073 ld_shlibs_CXX=no
12075 lcc*)
12076 # Lucid
12077 # FIXME: insert proper C++ library support
12078 ld_shlibs_CXX=no
12081 # FIXME: insert proper C++ library support
12082 ld_shlibs_CXX=no
12084 esac
12086 solaris*)
12087 case $cc_basename in
12088 CC*)
12089 # Sun C++ 4.2, 5.x and Centerline C++
12090 archive_cmds_need_lc_CXX=yes
12091 no_undefined_flag_CXX=' -zdefs'
12092 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12093 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12094 $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'
12096 hardcode_libdir_flag_spec_CXX='-R$libdir'
12097 hardcode_shlibpath_var_CXX=no
12098 case $host_os in
12099 solaris2.[0-5] | solaris2.[0-5].*) ;;
12101 # The compiler driver will combine and reorder linker options,
12102 # but understands `-z linker_flag'.
12103 # Supported since Solaris 2.6 (maybe 2.5.1?)
12104 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12106 esac
12107 link_all_deplibs_CXX=yes
12109 output_verbose_link_cmd='echo'
12111 # Archives containing C++ object files must be created using
12112 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12113 # necessary to make sure instantiated templates are included
12114 # in the archive.
12115 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12117 gcx*)
12118 # Green Hills C++ Compiler
12119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12121 # The C++ compiler must be used to create the archive.
12122 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12125 # GNU C++ compiler with Solaris linker
12126 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12127 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12128 if $CC --version | grep -v '^2\.7' > /dev/null; then
12129 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12130 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12131 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12133 # Commands to make compiler produce verbose output that lists
12134 # what "hidden" libraries, object files and flags are used when
12135 # linking a shared library.
12136 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12137 else
12138 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12139 # platform.
12140 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12141 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12142 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12144 # Commands to make compiler produce verbose output that lists
12145 # what "hidden" libraries, object files and flags are used when
12146 # linking a shared library.
12147 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12150 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12151 case $host_os in
12152 solaris2.[0-5] | solaris2.[0-5].*) ;;
12154 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12156 esac
12159 esac
12161 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12162 no_undefined_flag_CXX='${wl}-z,text'
12163 archive_cmds_need_lc_CXX=no
12164 hardcode_shlibpath_var_CXX=no
12165 runpath_var='LD_RUN_PATH'
12167 case $cc_basename in
12168 CC*)
12169 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12170 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12173 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12174 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 esac
12178 sysv5* | sco3.2v5* | sco5v6*)
12179 # Note: We can NOT use -z defs as we might desire, because we do not
12180 # link with -lc, and that would cause any symbols used from libc to
12181 # always be unresolved, which means just about no library would
12182 # ever link correctly. If we're not using GNU ld we use -z text
12183 # though, which does catch some bad symbols but isn't as heavy-handed
12184 # as -z defs.
12185 # For security reasons, it is highly recommended that you always
12186 # use absolute paths for naming shared libraries, and exclude the
12187 # DT_RUNPATH tag from executables and libraries. But doing so
12188 # requires that you compile everything twice, which is a pain.
12189 # So that behaviour is only enabled if SCOABSPATH is set to a
12190 # non-empty value in the environment. Most likely only useful for
12191 # creating official distributions of packages.
12192 # This is a hack until libtool officially supports absolute path
12193 # names for shared libraries.
12194 no_undefined_flag_CXX='${wl}-z,text'
12195 allow_undefined_flag_CXX='${wl}-z,nodefs'
12196 archive_cmds_need_lc_CXX=no
12197 hardcode_shlibpath_var_CXX=no
12198 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12199 hardcode_libdir_separator_CXX=':'
12200 link_all_deplibs_CXX=yes
12201 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12202 runpath_var='LD_RUN_PATH'
12204 case $cc_basename in
12205 CC*)
12206 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12207 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12210 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12211 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12213 esac
12215 tandem*)
12216 case $cc_basename in
12217 NCC*)
12218 # NonStop-UX NCC 3.20
12219 # FIXME: insert proper C++ library support
12220 ld_shlibs_CXX=no
12223 # FIXME: insert proper C++ library support
12224 ld_shlibs_CXX=no
12226 esac
12228 vxworks*)
12229 # FIXME: insert proper C++ library support
12230 ld_shlibs_CXX=no
12233 # FIXME: insert proper C++ library support
12234 ld_shlibs_CXX=no
12236 esac
12237 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12238 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12239 test "$ld_shlibs_CXX" = no && can_build_shared=no
12241 GCC_CXX="$GXX"
12242 LD_CXX="$LD"
12245 cat > conftest.$ac_ext <<EOF
12246 class Foo
12248 public:
12249 Foo (void) { a = 0; }
12250 private:
12251 int a;
12255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12256 (eval $ac_compile) 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; then
12260 # Parse the compiler output and extract the necessary
12261 # objects, libraries and library flags.
12263 # Sentinel used to keep track of whether or not we are before
12264 # the conftest object file.
12265 pre_test_object_deps_done=no
12267 # The `*' in the case matches for architectures that use `case' in
12268 # $output_verbose_cmd can trigger glob expansion during the loop
12269 # eval without this substitution.
12270 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12272 for p in `eval $output_verbose_link_cmd`; do
12273 case $p in
12275 -L* | -R* | -l*)
12276 # Some compilers place space between "-{L,R}" and the path.
12277 # Remove the space.
12278 if test $p = "-L" \
12279 || test $p = "-R"; then
12280 prev=$p
12281 continue
12282 else
12283 prev=
12286 if test "$pre_test_object_deps_done" = no; then
12287 case $p in
12288 -L* | -R*)
12289 # Internal compiler library paths should come after those
12290 # provided the user. The postdeps already come after the
12291 # user supplied libs so there is no need to process them.
12292 if test -z "$compiler_lib_search_path_CXX"; then
12293 compiler_lib_search_path_CXX="${prev}${p}"
12294 else
12295 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12298 # The "-l" case would never come before the object being
12299 # linked, so don't bother handling this case.
12300 esac
12301 else
12302 if test -z "$postdeps_CXX"; then
12303 postdeps_CXX="${prev}${p}"
12304 else
12305 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12310 *.$objext)
12311 # This assumes that the test object file only shows up
12312 # once in the compiler output.
12313 if test "$p" = "conftest.$objext"; then
12314 pre_test_object_deps_done=yes
12315 continue
12318 if test "$pre_test_object_deps_done" = no; then
12319 if test -z "$predep_objects_CXX"; then
12320 predep_objects_CXX="$p"
12321 else
12322 predep_objects_CXX="$predep_objects_CXX $p"
12324 else
12325 if test -z "$postdep_objects_CXX"; then
12326 postdep_objects_CXX="$p"
12327 else
12328 postdep_objects_CXX="$postdep_objects_CXX $p"
12333 *) ;; # Ignore the rest.
12335 esac
12336 done
12338 # Clean up.
12339 rm -f a.out a.exe
12340 else
12341 echo "libtool.m4: error: problem compiling CXX test program"
12344 $rm -f confest.$objext
12346 # PORTME: override above test on systems where it is broken
12347 case $host_os in
12348 interix[3-9]*)
12349 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12350 # hack all around it, let's just trust "g++" to DTRT.
12351 predep_objects_CXX=
12352 postdep_objects_CXX=
12353 postdeps_CXX=
12356 linux*)
12357 case `$CC -V 2>&1 | sed 5q` in
12358 *Sun\ C*)
12359 # Sun C++ 5.9
12361 # The more standards-conforming stlport4 library is
12362 # incompatible with the Cstd library. Avoid specifying
12363 # it if it's in CXXFLAGS. Ignore libCrun as
12364 # -library=stlport4 depends on it.
12365 case " $CXX $CXXFLAGS " in
12366 *" -library=stlport4 "*)
12367 solaris_use_stlport4=yes
12369 esac
12370 if test "$solaris_use_stlport4" != yes; then
12371 postdeps_CXX='-library=Cstd -library=Crun'
12374 esac
12377 solaris*)
12378 case $cc_basename in
12379 CC*)
12380 # The more standards-conforming stlport4 library is
12381 # incompatible with the Cstd library. Avoid specifying
12382 # it if it's in CXXFLAGS. Ignore libCrun as
12383 # -library=stlport4 depends on it.
12384 case " $CXX $CXXFLAGS " in
12385 *" -library=stlport4 "*)
12386 solaris_use_stlport4=yes
12388 esac
12390 # Adding this requires a known-good setup of shared libraries for
12391 # Sun compiler versions before 5.6, else PIC objects from an old
12392 # archive will be linked into the output, leading to subtle bugs.
12393 if test "$solaris_use_stlport4" != yes; then
12394 postdeps_CXX='-library=Cstd -library=Crun'
12397 esac
12399 esac
12402 case " $postdeps_CXX " in
12403 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12404 esac
12406 lt_prog_compiler_wl_CXX=
12407 lt_prog_compiler_pic_CXX=
12408 lt_prog_compiler_static_CXX=
12410 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12411 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12413 # C++ specific cases for pic, static, wl, etc.
12414 if test "$GXX" = yes; then
12415 lt_prog_compiler_wl_CXX='-Wl,'
12416 lt_prog_compiler_static_CXX='-static'
12418 case $host_os in
12419 aix*)
12420 # All AIX code is PIC.
12421 if test "$host_cpu" = ia64; then
12422 # AIX 5 now supports IA64 processor
12423 lt_prog_compiler_static_CXX='-Bstatic'
12426 amigaos*)
12427 # FIXME: we need at least 68020 code to build shared libraries, but
12428 # adding the `-m68020' flag to GCC prevents building anything better,
12429 # like `-m68040'.
12430 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12432 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12433 # PIC is the default for these OSes.
12435 mingw* | cygwin* | os2* | pw32*)
12436 # This hack is so that the source file can tell whether it is being
12437 # built for inclusion in a dll (and should export symbols for example).
12438 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12439 # (--disable-auto-import) libraries
12440 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12442 darwin* | rhapsody*)
12443 # PIC is the default on this platform
12444 # Common symbols not allowed in MH_DYLIB files
12445 lt_prog_compiler_pic_CXX='-fno-common'
12447 *djgpp*)
12448 # DJGPP does not support shared libraries at all
12449 lt_prog_compiler_pic_CXX=
12451 interix[3-9]*)
12452 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12453 # Instead, we relocate shared libraries at runtime.
12455 sysv4*MP*)
12456 if test -d /usr/nec; then
12457 lt_prog_compiler_pic_CXX=-Kconform_pic
12460 hpux*)
12461 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12462 # not for PA HP-UX.
12463 case $host_cpu in
12464 hppa*64*|ia64*)
12467 lt_prog_compiler_pic_CXX='-fPIC'
12469 esac
12472 lt_prog_compiler_pic_CXX='-fPIC'
12474 esac
12475 else
12476 case $host_os in
12477 aix4* | aix5*)
12478 # All AIX code is PIC.
12479 if test "$host_cpu" = ia64; then
12480 # AIX 5 now supports IA64 processor
12481 lt_prog_compiler_static_CXX='-Bstatic'
12482 else
12483 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12486 chorus*)
12487 case $cc_basename in
12488 cxch68*)
12489 # Green Hills C++ Compiler
12490 # _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"
12492 esac
12494 darwin*)
12495 # PIC is the default on this platform
12496 # Common symbols not allowed in MH_DYLIB files
12497 case $cc_basename in
12498 xlc*)
12499 lt_prog_compiler_pic_CXX='-qnocommon'
12500 lt_prog_compiler_wl_CXX='-Wl,'
12502 esac
12504 dgux*)
12505 case $cc_basename in
12506 ec++*)
12507 lt_prog_compiler_pic_CXX='-KPIC'
12509 ghcx*)
12510 # Green Hills C++ Compiler
12511 lt_prog_compiler_pic_CXX='-pic'
12515 esac
12517 freebsd* | dragonfly*)
12518 # FreeBSD uses GNU C++
12520 hpux9* | hpux10* | hpux11*)
12521 case $cc_basename in
12522 CC*)
12523 lt_prog_compiler_wl_CXX='-Wl,'
12524 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12525 if test "$host_cpu" != ia64; then
12526 lt_prog_compiler_pic_CXX='+Z'
12529 aCC*)
12530 lt_prog_compiler_wl_CXX='-Wl,'
12531 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12532 case $host_cpu in
12533 hppa*64*|ia64*)
12534 # +Z the default
12537 lt_prog_compiler_pic_CXX='+Z'
12539 esac
12543 esac
12545 interix*)
12546 # This is c89, which is MS Visual C++ (no shared libs)
12547 # Anyone wants to do a port?
12549 irix5* | irix6* | nonstopux*)
12550 case $cc_basename in
12551 CC*)
12552 lt_prog_compiler_wl_CXX='-Wl,'
12553 lt_prog_compiler_static_CXX='-non_shared'
12554 # CC pic flag -KPIC is the default.
12558 esac
12560 linux* | k*bsd*-gnu)
12561 case $cc_basename in
12562 KCC*)
12563 # KAI C++ Compiler
12564 lt_prog_compiler_wl_CXX='--backend -Wl,'
12565 lt_prog_compiler_pic_CXX='-fPIC'
12567 icpc* | ecpc*)
12568 # Intel C++
12569 lt_prog_compiler_wl_CXX='-Wl,'
12570 lt_prog_compiler_pic_CXX='-KPIC'
12571 lt_prog_compiler_static_CXX='-static'
12573 pgCC*)
12574 # Portland Group C++ compiler.
12575 lt_prog_compiler_wl_CXX='-Wl,'
12576 lt_prog_compiler_pic_CXX='-fpic'
12577 lt_prog_compiler_static_CXX='-Bstatic'
12579 cxx*)
12580 # Compaq C++
12581 # Make sure the PIC flag is empty. It appears that all Alpha
12582 # Linux and Compaq Tru64 Unix objects are PIC.
12583 lt_prog_compiler_pic_CXX=
12584 lt_prog_compiler_static_CXX='-non_shared'
12587 case `$CC -V 2>&1 | sed 5q` in
12588 *Sun\ C*)
12589 # Sun C++ 5.9
12590 lt_prog_compiler_pic_CXX='-KPIC'
12591 lt_prog_compiler_static_CXX='-Bstatic'
12592 lt_prog_compiler_wl_CXX='-Qoption ld '
12594 esac
12596 esac
12598 lynxos*)
12600 m88k*)
12602 mvs*)
12603 case $cc_basename in
12604 cxx*)
12605 lt_prog_compiler_pic_CXX='-W c,exportall'
12609 esac
12611 netbsd* | netbsdelf*-gnu)
12613 osf3* | osf4* | osf5*)
12614 case $cc_basename in
12615 KCC*)
12616 lt_prog_compiler_wl_CXX='--backend -Wl,'
12618 RCC*)
12619 # Rational C++ 2.4.1
12620 lt_prog_compiler_pic_CXX='-pic'
12622 cxx*)
12623 # Digital/Compaq C++
12624 lt_prog_compiler_wl_CXX='-Wl,'
12625 # Make sure the PIC flag is empty. It appears that all Alpha
12626 # Linux and Compaq Tru64 Unix objects are PIC.
12627 lt_prog_compiler_pic_CXX=
12628 lt_prog_compiler_static_CXX='-non_shared'
12632 esac
12634 psos*)
12636 solaris*)
12637 case $cc_basename in
12638 CC*)
12639 # Sun C++ 4.2, 5.x and Centerline C++
12640 lt_prog_compiler_pic_CXX='-KPIC'
12641 lt_prog_compiler_static_CXX='-Bstatic'
12642 lt_prog_compiler_wl_CXX='-Qoption ld '
12644 gcx*)
12645 # Green Hills C++ Compiler
12646 lt_prog_compiler_pic_CXX='-PIC'
12650 esac
12652 sunos4*)
12653 case $cc_basename in
12654 CC*)
12655 # Sun C++ 4.x
12656 lt_prog_compiler_pic_CXX='-pic'
12657 lt_prog_compiler_static_CXX='-Bstatic'
12659 lcc*)
12660 # Lucid
12661 lt_prog_compiler_pic_CXX='-pic'
12665 esac
12667 tandem*)
12668 case $cc_basename in
12669 NCC*)
12670 # NonStop-UX NCC 3.20
12671 lt_prog_compiler_pic_CXX='-KPIC'
12675 esac
12677 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12678 case $cc_basename in
12679 CC*)
12680 lt_prog_compiler_wl_CXX='-Wl,'
12681 lt_prog_compiler_pic_CXX='-KPIC'
12682 lt_prog_compiler_static_CXX='-Bstatic'
12684 esac
12686 vxworks*)
12689 lt_prog_compiler_can_build_shared_CXX=no
12691 esac
12694 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12695 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12698 # Check to make sure the PIC flag actually works.
12700 if test -n "$lt_prog_compiler_pic_CXX"; then
12702 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12703 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12704 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707 lt_prog_compiler_pic_works_CXX=no
12708 ac_outfile=conftest.$ac_objext
12709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12710 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12711 # Insert the option either (1) after the last *FLAGS variable, or
12712 # (2) before a word containing "conftest.", or (3) at the end.
12713 # Note that $ac_compile itself does not contain backslashes and begins
12714 # with a dollar sign (not a hyphen), so the echo should work correctly.
12715 # The option is referenced via a variable to avoid confusing sed.
12716 lt_compile=`echo "$ac_compile" | $SED \
12717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12719 -e 's:$: $lt_compiler_flag:'`
12720 (eval echo "\"\$as_me:12719: $lt_compile\"" >&5)
12721 (eval "$lt_compile" 2>conftest.err)
12722 ac_status=$?
12723 cat conftest.err >&5
12724 echo "$as_me:12723: \$? = $ac_status" >&5
12725 if (exit $ac_status) && test -s "$ac_outfile"; then
12726 # The compiler can only warn and ignore the option if not recognized
12727 # So say no if there are warnings other than the usual output.
12728 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12731 lt_prog_compiler_pic_works_CXX=yes
12734 $rm conftest*
12737 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12738 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12740 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12741 case $lt_prog_compiler_pic_CXX in
12742 "" | " "*) ;;
12743 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12744 esac
12745 else
12746 lt_prog_compiler_pic_CXX=
12747 lt_prog_compiler_can_build_shared_CXX=no
12751 case $host_os in
12752 # For platforms which do not support PIC, -DPIC is meaningless:
12753 *djgpp*)
12754 lt_prog_compiler_pic_CXX=
12757 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12759 esac
12762 # Check to make sure the static flag actually works.
12764 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12765 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12766 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12767 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770 lt_prog_compiler_static_works_CXX=no
12771 save_LDFLAGS="$LDFLAGS"
12772 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12773 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12774 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12775 # The linker can only warn and ignore the option if not recognized
12776 # So say no if there are warnings
12777 if test -s conftest.err; then
12778 # Append any errors to the config.log.
12779 cat conftest.err 1>&5
12780 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12782 if diff conftest.exp conftest.er2 >/dev/null; then
12783 lt_prog_compiler_static_works_CXX=yes
12785 else
12786 lt_prog_compiler_static_works_CXX=yes
12789 $rm conftest*
12790 LDFLAGS="$save_LDFLAGS"
12793 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12794 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12796 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12798 else
12799 lt_prog_compiler_static_CXX=
12803 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12805 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 else
12808 lt_cv_prog_compiler_c_o_CXX=no
12809 $rm -r conftest 2>/dev/null
12810 mkdir conftest
12811 cd conftest
12812 mkdir out
12813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12815 lt_compiler_flag="-o out/conftest2.$ac_objext"
12816 # Insert the option either (1) after the last *FLAGS variable, or
12817 # (2) before a word containing "conftest.", or (3) at the end.
12818 # Note that $ac_compile itself does not contain backslashes and begins
12819 # with a dollar sign (not a hyphen), so the echo should work correctly.
12820 lt_compile=`echo "$ac_compile" | $SED \
12821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12823 -e 's:$: $lt_compiler_flag:'`
12824 (eval echo "\"\$as_me:12823: $lt_compile\"" >&5)
12825 (eval "$lt_compile" 2>out/conftest.err)
12826 ac_status=$?
12827 cat out/conftest.err >&5
12828 echo "$as_me:12827: \$? = $ac_status" >&5
12829 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12830 then
12831 # The compiler can only warn and ignore the option if not recognized
12832 # So say no if there are warnings
12833 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12834 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12835 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12836 lt_cv_prog_compiler_c_o_CXX=yes
12839 chmod u+w . 2>&5
12840 $rm conftest*
12841 # SGI C++ compiler will create directory out/ii_files/ for
12842 # template instantiation
12843 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12844 $rm out/* && rmdir out
12845 cd ..
12846 rmdir conftest
12847 $rm conftest*
12850 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12851 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12854 hard_links="nottested"
12855 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12856 # do not overwrite the value of need_locks provided by the user
12857 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12858 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12859 hard_links=yes
12860 $rm conftest*
12861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12862 touch conftest.a
12863 ln conftest.a conftest.b 2>&5 || hard_links=no
12864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12865 { echo "$as_me:$LINENO: result: $hard_links" >&5
12866 echo "${ECHO_T}$hard_links" >&6; }
12867 if test "$hard_links" = no; then
12868 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12869 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12870 need_locks=warn
12872 else
12873 need_locks=no
12876 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12877 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12879 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12880 case $host_os in
12881 aix4* | aix5*)
12882 # If we're using GNU nm, then we don't want the "-C" option.
12883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12884 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12885 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'
12886 else
12887 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'
12890 pw32*)
12891 export_symbols_cmds_CXX="$ltdll_cmds"
12893 cygwin* | mingw*)
12894 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'
12896 linux* | k*bsd*-gnu)
12897 link_all_deplibs_CXX=no
12900 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12902 esac
12904 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12905 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12906 test "$ld_shlibs_CXX" = no && can_build_shared=no
12909 # Do we need to explicitly link libc?
12911 case "x$archive_cmds_need_lc_CXX" in
12912 x|xyes)
12913 # Assume -lc should be added
12914 archive_cmds_need_lc_CXX=yes
12916 if test "$enable_shared" = yes && test "$GCC" = yes; then
12917 case $archive_cmds_CXX in
12918 *'~'*)
12919 # FIXME: we may have to deal with multi-command sequences.
12921 '$CC '*)
12922 # Test whether the compiler implicitly links with -lc since on some
12923 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12924 # to ld, don't add -lc before -lgcc.
12925 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12926 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12927 $rm conftest*
12928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12931 (eval $ac_compile) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } 2>conftest.err; then
12935 soname=conftest
12936 lib=conftest
12937 libobjs=conftest.$ac_objext
12938 deplibs=
12939 wl=$lt_prog_compiler_wl_CXX
12940 pic_flag=$lt_prog_compiler_pic_CXX
12941 compiler_flags=-v
12942 linker_flags=-v
12943 verstring=
12944 output_objdir=.
12945 libname=conftest
12946 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12947 allow_undefined_flag_CXX=
12948 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12949 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }
12953 then
12954 archive_cmds_need_lc_CXX=no
12955 else
12956 archive_cmds_need_lc_CXX=yes
12958 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12959 else
12960 cat conftest.err 1>&5
12962 $rm conftest*
12963 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12964 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12966 esac
12969 esac
12971 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12972 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12973 library_names_spec=
12974 libname_spec='lib$name'
12975 soname_spec=
12976 shrext_cmds=".so"
12977 postinstall_cmds=
12978 postuninstall_cmds=
12979 finish_cmds=
12980 finish_eval=
12981 shlibpath_var=
12982 shlibpath_overrides_runpath=unknown
12983 version_type=none
12984 dynamic_linker="$host_os ld.so"
12985 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12987 need_lib_prefix=unknown
12988 hardcode_into_libs=no
12990 # when you set need_version to no, make sure it does not cause -set_version
12991 # flags to be left without arguments
12992 need_version=unknown
12994 case $host_os in
12995 aix3*)
12996 version_type=linux
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12998 shlibpath_var=LIBPATH
13000 # AIX 3 has no versioning support, so we append a major version to the name.
13001 soname_spec='${libname}${release}${shared_ext}$major'
13004 aix4* | aix5*)
13005 version_type=linux
13006 need_lib_prefix=no
13007 need_version=no
13008 hardcode_into_libs=yes
13009 if test "$host_cpu" = ia64; then
13010 # AIX 5 supports IA64
13011 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13012 shlibpath_var=LD_LIBRARY_PATH
13013 else
13014 # With GCC up to 2.95.x, collect2 would create an import file
13015 # for dependence libraries. The import file would start with
13016 # the line `#! .'. This would cause the generated library to
13017 # depend on `.', always an invalid library. This was fixed in
13018 # development snapshots of GCC prior to 3.0.
13019 case $host_os in
13020 aix4 | aix4.[01] | aix4.[01].*)
13021 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13022 echo ' yes '
13023 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13025 else
13026 can_build_shared=no
13029 esac
13030 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13031 # soname into executable. Probably we can add versioning support to
13032 # collect2, so additional links can be useful in future.
13033 if test "$aix_use_runtimelinking" = yes; then
13034 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13035 # instead of lib<name>.a to let people know that these are not
13036 # typical AIX shared libraries.
13037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13038 else
13039 # We preserve .a as extension for shared libraries through AIX4.2
13040 # and later when we are not doing run time linking.
13041 library_names_spec='${libname}${release}.a $libname.a'
13042 soname_spec='${libname}${release}${shared_ext}$major'
13044 shlibpath_var=LIBPATH
13048 amigaos*)
13049 library_names_spec='$libname.ixlibrary $libname.a'
13050 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13051 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'
13054 beos*)
13055 library_names_spec='${libname}${shared_ext}'
13056 dynamic_linker="$host_os ld.so"
13057 shlibpath_var=LIBRARY_PATH
13060 bsdi[45]*)
13061 version_type=linux
13062 need_version=no
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13064 soname_spec='${libname}${release}${shared_ext}$major'
13065 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13068 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13069 # the default ld.so.conf also contains /usr/contrib/lib and
13070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13071 # libtool to hard-code these into programs
13074 cygwin* | mingw* | pw32*)
13075 version_type=windows
13076 shrext_cmds=".dll"
13077 need_version=no
13078 need_lib_prefix=no
13080 case $GCC,$host_os in
13081 yes,cygwin* | yes,mingw* | yes,pw32*)
13082 library_names_spec='$libname.dll.a'
13083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13084 postinstall_cmds='base_file=`basename \${file}`~
13085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13086 dldir=$destdir/`dirname \$dlpath`~
13087 test -d \$dldir || mkdir -p \$dldir~
13088 $install_prog $dir/$dlname \$dldir/$dlname~
13089 chmod a+x \$dldir/$dlname'
13090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13091 dlpath=$dir/\$dldll~
13092 $rm \$dlpath'
13093 shlibpath_overrides_runpath=yes
13095 case $host_os in
13096 cygwin*)
13097 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13098 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13099 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13101 mingw*)
13102 # MinGW DLLs use traditional 'lib' prefix
13103 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13104 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13105 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13106 # It is most probably a Windows format PATH printed by
13107 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13108 # path with ; separators, and with drive letters. We can handle the
13109 # drive letters (cygwin fileutils understands them), so leave them,
13110 # especially as we might pass files found there to a mingw objdump,
13111 # which wouldn't understand a cygwinified path. Ahh.
13112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13113 else
13114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13117 pw32*)
13118 # pw32 DLLs use 'pw' prefix rather than 'lib'
13119 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13121 esac
13125 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13127 esac
13128 dynamic_linker='Win32 ld.exe'
13129 # FIXME: first we should search . and the directory the executable is in
13130 shlibpath_var=PATH
13133 darwin* | rhapsody*)
13134 dynamic_linker="$host_os dyld"
13135 version_type=darwin
13136 need_lib_prefix=no
13137 need_version=no
13138 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13139 soname_spec='${libname}${release}${major}$shared_ext'
13140 shlibpath_overrides_runpath=yes
13141 shlibpath_var=DYLD_LIBRARY_PATH
13142 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13144 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13147 dgux*)
13148 version_type=linux
13149 need_lib_prefix=no
13150 need_version=no
13151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13152 soname_spec='${libname}${release}${shared_ext}$major'
13153 shlibpath_var=LD_LIBRARY_PATH
13156 freebsd1*)
13157 dynamic_linker=no
13160 freebsd* | dragonfly*)
13161 # DragonFly does not have aout. When/if they implement a new
13162 # versioning mechanism, adjust this.
13163 if test -x /usr/bin/objformat; then
13164 objformat=`/usr/bin/objformat`
13165 else
13166 case $host_os in
13167 freebsd[123]*) objformat=aout ;;
13168 *) objformat=elf ;;
13169 esac
13171 version_type=freebsd-$objformat
13172 case $version_type in
13173 freebsd-elf*)
13174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13175 need_version=no
13176 need_lib_prefix=no
13178 freebsd-*)
13179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13180 need_version=yes
13182 esac
13183 shlibpath_var=LD_LIBRARY_PATH
13184 case $host_os in
13185 freebsd2*)
13186 shlibpath_overrides_runpath=yes
13188 freebsd3.[01]* | freebsdelf3.[01]*)
13189 shlibpath_overrides_runpath=yes
13190 hardcode_into_libs=yes
13192 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13193 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13194 shlibpath_overrides_runpath=no
13195 hardcode_into_libs=yes
13197 *) # from 4.6 on, and DragonFly
13198 shlibpath_overrides_runpath=yes
13199 hardcode_into_libs=yes
13201 esac
13204 gnu*)
13205 version_type=linux
13206 need_lib_prefix=no
13207 need_version=no
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13209 soname_spec='${libname}${release}${shared_ext}$major'
13210 shlibpath_var=LD_LIBRARY_PATH
13211 hardcode_into_libs=yes
13214 hpux9* | hpux10* | hpux11*)
13215 # Give a soname corresponding to the major version so that dld.sl refuses to
13216 # link against other versions.
13217 version_type=sunos
13218 need_lib_prefix=no
13219 need_version=no
13220 case $host_cpu in
13221 ia64*)
13222 shrext_cmds='.so'
13223 hardcode_into_libs=yes
13224 dynamic_linker="$host_os dld.so"
13225 shlibpath_var=LD_LIBRARY_PATH
13226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228 soname_spec='${libname}${release}${shared_ext}$major'
13229 if test "X$HPUX_IA64_MODE" = X32; then
13230 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13231 else
13232 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13236 hppa*64*)
13237 shrext_cmds='.sl'
13238 hardcode_into_libs=yes
13239 dynamic_linker="$host_os dld.sl"
13240 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13243 soname_spec='${libname}${release}${shared_ext}$major'
13244 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13248 shrext_cmds='.sl'
13249 dynamic_linker="$host_os dld.sl"
13250 shlibpath_var=SHLIB_PATH
13251 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13253 soname_spec='${libname}${release}${shared_ext}$major'
13255 esac
13256 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13257 postinstall_cmds='chmod 555 $lib'
13260 interix[3-9]*)
13261 version_type=linux
13262 need_lib_prefix=no
13263 need_version=no
13264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13265 soname_spec='${libname}${release}${shared_ext}$major'
13266 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13267 shlibpath_var=LD_LIBRARY_PATH
13268 shlibpath_overrides_runpath=no
13269 hardcode_into_libs=yes
13272 irix5* | irix6* | nonstopux*)
13273 case $host_os in
13274 nonstopux*) version_type=nonstopux ;;
13276 if test "$lt_cv_prog_gnu_ld" = yes; then
13277 version_type=linux
13278 else
13279 version_type=irix
13280 fi ;;
13281 esac
13282 need_lib_prefix=no
13283 need_version=no
13284 soname_spec='${libname}${release}${shared_ext}$major'
13285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13286 case $host_os in
13287 irix5* | nonstopux*)
13288 libsuff= shlibsuff=
13291 case $LD in # libtool.m4 will add one of these switches to LD
13292 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13293 libsuff= shlibsuff= libmagic=32-bit;;
13294 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13295 libsuff=32 shlibsuff=N32 libmagic=N32;;
13296 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13297 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13298 *) libsuff= shlibsuff= libmagic=never-match;;
13299 esac
13301 esac
13302 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13303 shlibpath_overrides_runpath=no
13304 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13305 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13306 hardcode_into_libs=yes
13309 # No shared lib support for Linux oldld, aout, or coff.
13310 linux*oldld* | linux*aout* | linux*coff*)
13311 dynamic_linker=no
13314 # This must be Linux ELF.
13315 linux* | k*bsd*-gnu)
13316 version_type=linux
13317 need_lib_prefix=no
13318 need_version=no
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13322 shlibpath_var=LD_LIBRARY_PATH
13323 shlibpath_overrides_runpath=no
13324 # This implies no fast_install, which is unacceptable.
13325 # Some rework will be needed to allow for fast_install
13326 # before this can be enabled.
13327 hardcode_into_libs=yes
13329 # Append ld.so.conf contents to the search path
13330 if test -f /etc/ld.so.conf; then
13331 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' ' '`
13332 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13335 # We used to test for /lib/ld.so.1 and disable shared libraries on
13336 # powerpc, because MkLinux only supported shared libraries with the
13337 # GNU dynamic linker. Since this was broken with cross compilers,
13338 # most powerpc-linux boxes support dynamic linking these days and
13339 # people can always --disable-shared, the test was removed, and we
13340 # assume the GNU/Linux dynamic linker is in use.
13341 dynamic_linker='GNU/Linux ld.so'
13344 netbsdelf*-gnu)
13345 version_type=linux
13346 need_lib_prefix=no
13347 need_version=no
13348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13349 soname_spec='${libname}${release}${shared_ext}$major'
13350 shlibpath_var=LD_LIBRARY_PATH
13351 shlibpath_overrides_runpath=no
13352 hardcode_into_libs=yes
13353 dynamic_linker='NetBSD ld.elf_so'
13356 netbsd*)
13357 version_type=sunos
13358 need_lib_prefix=no
13359 need_version=no
13360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13363 dynamic_linker='NetBSD (a.out) ld.so'
13364 else
13365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13366 soname_spec='${libname}${release}${shared_ext}$major'
13367 dynamic_linker='NetBSD ld.elf_so'
13369 shlibpath_var=LD_LIBRARY_PATH
13370 shlibpath_overrides_runpath=yes
13371 hardcode_into_libs=yes
13374 newsos6)
13375 version_type=linux
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13377 shlibpath_var=LD_LIBRARY_PATH
13378 shlibpath_overrides_runpath=yes
13381 nto-qnx*)
13382 version_type=linux
13383 need_lib_prefix=no
13384 need_version=no
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13386 soname_spec='${libname}${release}${shared_ext}$major'
13387 shlibpath_var=LD_LIBRARY_PATH
13388 shlibpath_overrides_runpath=yes
13391 openbsd*)
13392 version_type=sunos
13393 sys_lib_dlsearch_path_spec="/usr/lib"
13394 need_lib_prefix=no
13395 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13396 case $host_os in
13397 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13398 *) need_version=no ;;
13399 esac
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13402 shlibpath_var=LD_LIBRARY_PATH
13403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13404 case $host_os in
13405 openbsd2.[89] | openbsd2.[89].*)
13406 shlibpath_overrides_runpath=no
13409 shlibpath_overrides_runpath=yes
13411 esac
13412 else
13413 shlibpath_overrides_runpath=yes
13417 os2*)
13418 libname_spec='$name'
13419 shrext_cmds=".dll"
13420 need_lib_prefix=no
13421 library_names_spec='$libname${shared_ext} $libname.a'
13422 dynamic_linker='OS/2 ld.exe'
13423 shlibpath_var=LIBPATH
13426 osf3* | osf4* | osf5*)
13427 version_type=osf
13428 need_lib_prefix=no
13429 need_version=no
13430 soname_spec='${libname}${release}${shared_ext}$major'
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13432 shlibpath_var=LD_LIBRARY_PATH
13433 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13434 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13437 rdos*)
13438 dynamic_linker=no
13441 solaris*)
13442 version_type=linux
13443 need_lib_prefix=no
13444 need_version=no
13445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13446 soname_spec='${libname}${release}${shared_ext}$major'
13447 shlibpath_var=LD_LIBRARY_PATH
13448 shlibpath_overrides_runpath=yes
13449 hardcode_into_libs=yes
13450 # ldd complains unless libraries are executable
13451 postinstall_cmds='chmod +x $lib'
13454 sunos4*)
13455 version_type=sunos
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13457 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13458 shlibpath_var=LD_LIBRARY_PATH
13459 shlibpath_overrides_runpath=yes
13460 if test "$with_gnu_ld" = yes; then
13461 need_lib_prefix=no
13463 need_version=yes
13466 sysv4 | sysv4.3*)
13467 version_type=linux
13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469 soname_spec='${libname}${release}${shared_ext}$major'
13470 shlibpath_var=LD_LIBRARY_PATH
13471 case $host_vendor in
13472 sni)
13473 shlibpath_overrides_runpath=no
13474 need_lib_prefix=no
13475 export_dynamic_flag_spec='${wl}-Blargedynsym'
13476 runpath_var=LD_RUN_PATH
13478 siemens)
13479 need_lib_prefix=no
13481 motorola)
13482 need_lib_prefix=no
13483 need_version=no
13484 shlibpath_overrides_runpath=no
13485 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13487 esac
13490 sysv4*MP*)
13491 if test -d /usr/nec ;then
13492 version_type=linux
13493 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13494 soname_spec='$libname${shared_ext}.$major'
13495 shlibpath_var=LD_LIBRARY_PATH
13499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13500 version_type=freebsd-elf
13501 need_lib_prefix=no
13502 need_version=no
13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13504 soname_spec='${libname}${release}${shared_ext}$major'
13505 shlibpath_var=LD_LIBRARY_PATH
13506 hardcode_into_libs=yes
13507 if test "$with_gnu_ld" = yes; then
13508 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13509 shlibpath_overrides_runpath=no
13510 else
13511 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13512 shlibpath_overrides_runpath=yes
13513 case $host_os in
13514 sco3.2v5*)
13515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13517 esac
13519 sys_lib_dlsearch_path_spec='/usr/lib'
13522 uts4*)
13523 version_type=linux
13524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13525 soname_spec='${libname}${release}${shared_ext}$major'
13526 shlibpath_var=LD_LIBRARY_PATH
13530 dynamic_linker=no
13532 esac
13533 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13534 echo "${ECHO_T}$dynamic_linker" >&6; }
13535 test "$dynamic_linker" = no && can_build_shared=no
13537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13538 if test "$GCC" = yes; then
13539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13544 hardcode_action_CXX=
13545 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13546 test -n "$runpath_var_CXX" || \
13547 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13549 # We can hardcode non-existant directories.
13550 if test "$hardcode_direct_CXX" != no &&
13551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13552 # have to relink, otherwise we might link with an installed library
13553 # when we should be linking with a yet-to-be-installed one
13554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13555 test "$hardcode_minus_L_CXX" != no; then
13556 # Linking always hardcodes the temporary library directory.
13557 hardcode_action_CXX=relink
13558 else
13559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13560 hardcode_action_CXX=immediate
13562 else
13563 # We cannot hardcode anything, or else we can only hardcode existing
13564 # directories.
13565 hardcode_action_CXX=unsupported
13567 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13568 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13570 if test "$hardcode_action_CXX" = relink; then
13571 # Fast installation is not supported
13572 enable_fast_install=no
13573 elif test "$shlibpath_overrides_runpath" = yes ||
13574 test "$enable_shared" = no; then
13575 # Fast installation is not necessary
13576 enable_fast_install=needless
13580 # The else clause should only fire when bootstrapping the
13581 # libtool distribution, otherwise you forgot to ship ltmain.sh
13582 # with your package, and you will get complaints that there are
13583 # no rules to generate ltmain.sh.
13584 if test -f "$ltmain"; then
13585 # See if we are running on zsh, and set the options which allow our commands through
13586 # without removal of \ escapes.
13587 if test -n "${ZSH_VERSION+set}" ; then
13588 setopt NO_GLOB_SUBST
13590 # Now quote all the things that may contain metacharacters while being
13591 # careful not to overquote the AC_SUBSTed values. We take copies of the
13592 # variables and quote the copies for generation of the libtool script.
13593 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13594 SED SHELL STRIP \
13595 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13596 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13597 deplibs_check_method reload_flag reload_cmds need_locks \
13598 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13599 lt_cv_sys_global_symbol_to_c_name_address \
13600 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13601 old_postinstall_cmds old_postuninstall_cmds \
13602 compiler_CXX \
13603 CC_CXX \
13604 LD_CXX \
13605 lt_prog_compiler_wl_CXX \
13606 lt_prog_compiler_pic_CXX \
13607 lt_prog_compiler_static_CXX \
13608 lt_prog_compiler_no_builtin_flag_CXX \
13609 export_dynamic_flag_spec_CXX \
13610 thread_safe_flag_spec_CXX \
13611 whole_archive_flag_spec_CXX \
13612 enable_shared_with_static_runtimes_CXX \
13613 old_archive_cmds_CXX \
13614 old_archive_from_new_cmds_CXX \
13615 predep_objects_CXX \
13616 postdep_objects_CXX \
13617 predeps_CXX \
13618 postdeps_CXX \
13619 compiler_lib_search_path_CXX \
13620 archive_cmds_CXX \
13621 archive_expsym_cmds_CXX \
13622 postinstall_cmds_CXX \
13623 postuninstall_cmds_CXX \
13624 old_archive_from_expsyms_cmds_CXX \
13625 allow_undefined_flag_CXX \
13626 no_undefined_flag_CXX \
13627 export_symbols_cmds_CXX \
13628 hardcode_libdir_flag_spec_CXX \
13629 hardcode_libdir_flag_spec_ld_CXX \
13630 hardcode_libdir_separator_CXX \
13631 hardcode_automatic_CXX \
13632 module_cmds_CXX \
13633 module_expsym_cmds_CXX \
13634 lt_cv_prog_compiler_c_o_CXX \
13635 fix_srcfile_path_CXX \
13636 exclude_expsyms_CXX \
13637 include_expsyms_CXX; do
13639 case $var in
13640 old_archive_cmds_CXX | \
13641 old_archive_from_new_cmds_CXX | \
13642 archive_cmds_CXX | \
13643 archive_expsym_cmds_CXX | \
13644 module_cmds_CXX | \
13645 module_expsym_cmds_CXX | \
13646 old_archive_from_expsyms_cmds_CXX | \
13647 export_symbols_cmds_CXX | \
13648 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13649 postinstall_cmds | postuninstall_cmds | \
13650 old_postinstall_cmds | old_postuninstall_cmds | \
13651 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13652 # Double-quote double-evaled strings.
13653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13658 esac
13659 done
13661 case $lt_echo in
13662 *'\$0 --fallback-echo"')
13663 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13665 esac
13667 cfgfile="$ofile"
13669 cat <<__EOF__ >> "$cfgfile"
13670 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13674 # Shell to use when invoking shell scripts.
13675 SHELL=$lt_SHELL
13677 # Whether or not to build shared libraries.
13678 build_libtool_libs=$enable_shared
13680 # Whether or not to build static libraries.
13681 build_old_libs=$enable_static
13683 # Whether or not to add -lc for building shared libraries.
13684 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13686 # Whether or not to disallow shared libs when runtime libs are static
13687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13689 # Whether or not to optimize for fast installation.
13690 fast_install=$enable_fast_install
13692 # The host system.
13693 host_alias=$host_alias
13694 host=$host
13695 host_os=$host_os
13697 # The build system.
13698 build_alias=$build_alias
13699 build=$build
13700 build_os=$build_os
13702 # An echo program that does not interpret backslashes.
13703 echo=$lt_echo
13705 # The archiver.
13706 AR=$lt_AR
13707 AR_FLAGS=$lt_AR_FLAGS
13709 # A C compiler.
13710 LTCC=$lt_LTCC
13712 # LTCC compiler flags.
13713 LTCFLAGS=$lt_LTCFLAGS
13715 # A language-specific compiler.
13716 CC=$lt_compiler_CXX
13718 # Is the compiler the GNU C compiler?
13719 with_gcc=$GCC_CXX
13721 # An ERE matcher.
13722 EGREP=$lt_EGREP
13724 # The linker used to build libraries.
13725 LD=$lt_LD_CXX
13727 # Whether we need hard or soft links.
13728 LN_S=$lt_LN_S
13730 # A BSD-compatible nm program.
13731 NM=$lt_NM
13733 # A symbol stripping program
13734 STRIP=$lt_STRIP
13736 # Used to examine libraries when file_magic_cmd begins "file"
13737 MAGIC_CMD=$MAGIC_CMD
13739 # Used on cygwin: DLL creation program.
13740 DLLTOOL="$DLLTOOL"
13742 # Used on cygwin: object dumper.
13743 OBJDUMP="$OBJDUMP"
13745 # Used on cygwin: assembler.
13746 AS="$AS"
13748 # The name of the directory that contains temporary libtool files.
13749 objdir=$objdir
13751 # How to create reloadable object files.
13752 reload_flag=$lt_reload_flag
13753 reload_cmds=$lt_reload_cmds
13755 # How to pass a linker flag through the compiler.
13756 wl=$lt_lt_prog_compiler_wl_CXX
13758 # Object file suffix (normally "o").
13759 objext="$ac_objext"
13761 # Old archive suffix (normally "a").
13762 libext="$libext"
13764 # Shared library suffix (normally ".so").
13765 shrext_cmds='$shrext_cmds'
13767 # Executable file suffix (normally "").
13768 exeext="$exeext"
13770 # Additional compiler flags for building library objects.
13771 pic_flag=$lt_lt_prog_compiler_pic_CXX
13772 pic_mode=$pic_mode
13774 # What is the maximum length of a command?
13775 max_cmd_len=$lt_cv_sys_max_cmd_len
13777 # Does compiler simultaneously support -c and -o options?
13778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13780 # Must we lock files when doing compilation?
13781 need_locks=$lt_need_locks
13783 # Do we need the lib prefix for modules?
13784 need_lib_prefix=$need_lib_prefix
13786 # Do we need a version for libraries?
13787 need_version=$need_version
13789 # Whether dlopen is supported.
13790 dlopen_support=$enable_dlopen
13792 # Whether dlopen of programs is supported.
13793 dlopen_self=$enable_dlopen_self
13795 # Whether dlopen of statically linked programs is supported.
13796 dlopen_self_static=$enable_dlopen_self_static
13798 # Compiler flag to prevent dynamic linking.
13799 link_static_flag=$lt_lt_prog_compiler_static_CXX
13801 # Compiler flag to turn off builtin functions.
13802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13804 # Compiler flag to allow reflexive dlopens.
13805 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13807 # Compiler flag to generate shared objects directly from archives.
13808 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13810 # Compiler flag to generate thread-safe objects.
13811 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13813 # Library versioning type.
13814 version_type=$version_type
13816 # Format of library name prefix.
13817 libname_spec=$lt_libname_spec
13819 # List of archive names. First name is the real one, the rest are links.
13820 # The last name is the one that the linker finds with -lNAME.
13821 library_names_spec=$lt_library_names_spec
13823 # The coded name of the library, if different from the real name.
13824 soname_spec=$lt_soname_spec
13826 # Commands used to build and install an old-style archive.
13827 RANLIB=$lt_RANLIB
13828 old_archive_cmds=$lt_old_archive_cmds_CXX
13829 old_postinstall_cmds=$lt_old_postinstall_cmds
13830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13832 # Create an old-style archive from a shared archive.
13833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13835 # Create a temporary old-style archive to link instead of a shared archive.
13836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13838 # Commands used to build and install a shared archive.
13839 archive_cmds=$lt_archive_cmds_CXX
13840 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13841 postinstall_cmds=$lt_postinstall_cmds
13842 postuninstall_cmds=$lt_postuninstall_cmds
13844 # Commands used to build a loadable module (assumed same as above if empty)
13845 module_cmds=$lt_module_cmds_CXX
13846 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13848 # Commands to strip libraries.
13849 old_striplib=$lt_old_striplib
13850 striplib=$lt_striplib
13852 # Dependencies to place before the objects being linked to create a
13853 # shared library.
13854 predep_objects=$lt_predep_objects_CXX
13856 # Dependencies to place after the objects being linked to create a
13857 # shared library.
13858 postdep_objects=$lt_postdep_objects_CXX
13860 # Dependencies to place before the objects being linked to create a
13861 # shared library.
13862 predeps=$lt_predeps_CXX
13864 # Dependencies to place after the objects being linked to create a
13865 # shared library.
13866 postdeps=$lt_postdeps_CXX
13868 # The library search path used internally by the compiler when linking
13869 # a shared library.
13870 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13872 # Method to check whether dependent libraries are shared objects.
13873 deplibs_check_method=$lt_deplibs_check_method
13875 # Command to use when deplibs_check_method == file_magic.
13876 file_magic_cmd=$lt_file_magic_cmd
13878 # Flag that allows shared libraries with undefined symbols to be built.
13879 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13881 # Flag that forces no undefined symbols.
13882 no_undefined_flag=$lt_no_undefined_flag_CXX
13884 # Commands used to finish a libtool library installation in a directory.
13885 finish_cmds=$lt_finish_cmds
13887 # Same as above, but a single script fragment to be evaled but not shown.
13888 finish_eval=$lt_finish_eval
13890 # Take the output of nm and produce a listing of raw symbols and C names.
13891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13893 # Transform the output of nm in a proper C declaration
13894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13896 # Transform the output of nm in a C name address pair
13897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13899 # This is the shared library runtime path variable.
13900 runpath_var=$runpath_var
13902 # This is the shared library path variable.
13903 shlibpath_var=$shlibpath_var
13905 # Is shlibpath searched before the hard-coded library search path?
13906 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13908 # How to hardcode a shared library path into an executable.
13909 hardcode_action=$hardcode_action_CXX
13911 # Whether we should hardcode library paths into libraries.
13912 hardcode_into_libs=$hardcode_into_libs
13914 # Flag to hardcode \$libdir into a binary during linking.
13915 # This must work even if \$libdir does not exist.
13916 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13918 # If ld is used when linking, flag to hardcode \$libdir into
13919 # a binary during linking. This must work even if \$libdir does
13920 # not exist.
13921 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13923 # Whether we need a single -rpath flag with a separated argument.
13924 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13926 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13927 # resulting binary.
13928 hardcode_direct=$hardcode_direct_CXX
13930 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13931 # resulting binary.
13932 hardcode_minus_L=$hardcode_minus_L_CXX
13934 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13935 # the resulting binary.
13936 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13938 # Set to yes if building a shared library automatically hardcodes DIR into the library
13939 # and all subsequent libraries and executables linked against it.
13940 hardcode_automatic=$hardcode_automatic_CXX
13942 # Variables whose values should be saved in libtool wrapper scripts and
13943 # restored at relink time.
13944 variables_saved_for_relink="$variables_saved_for_relink"
13946 # Whether libtool must link a program against all its dependency libraries.
13947 link_all_deplibs=$link_all_deplibs_CXX
13949 # Compile-time system search path for libraries
13950 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13952 # Run-time system search path for libraries
13953 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13955 # Fix the shell variable \$srcfile for the compiler.
13956 fix_srcfile_path=$lt_fix_srcfile_path
13958 # Set to yes if exported symbols are required.
13959 always_export_symbols=$always_export_symbols_CXX
13961 # The commands to list exported symbols.
13962 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13964 # The commands to extract the exported symbol list from a shared archive.
13965 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13967 # Symbols that should not be listed in the preloaded symbols.
13968 exclude_expsyms=$lt_exclude_expsyms_CXX
13970 # Symbols that must always be exported.
13971 include_expsyms=$lt_include_expsyms_CXX
13973 # ### END LIBTOOL TAG CONFIG: $tagname
13975 __EOF__
13978 else
13979 # If there is no Makefile yet, we rely on a make rule to execute
13980 # `config.status --recheck' to rerun these tests and create the
13981 # libtool script then.
13982 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13983 if test -f "$ltmain_in"; then
13984 test -f Makefile && make "$ltmain"
13989 ac_ext=c
13990 ac_cpp='$CPP $CPPFLAGS'
13991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13995 CC=$lt_save_CC
13996 LDCXX=$LD
13997 LD=$lt_save_LD
13998 GCC=$lt_save_GCC
13999 with_gnu_ldcxx=$with_gnu_ld
14000 with_gnu_ld=$lt_save_with_gnu_ld
14001 lt_cv_path_LDCXX=$lt_cv_path_LD
14002 lt_cv_path_LD=$lt_save_path_LD
14003 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14004 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14006 else
14007 tagname=""
14011 F77)
14012 if test -n "$F77" && test "X$F77" != "Xno"; then
14014 ac_ext=f
14015 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14016 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14020 archive_cmds_need_lc_F77=no
14021 allow_undefined_flag_F77=
14022 always_export_symbols_F77=no
14023 archive_expsym_cmds_F77=
14024 export_dynamic_flag_spec_F77=
14025 hardcode_direct_F77=no
14026 hardcode_libdir_flag_spec_F77=
14027 hardcode_libdir_flag_spec_ld_F77=
14028 hardcode_libdir_separator_F77=
14029 hardcode_minus_L_F77=no
14030 hardcode_automatic_F77=no
14031 module_cmds_F77=
14032 module_expsym_cmds_F77=
14033 link_all_deplibs_F77=unknown
14034 old_archive_cmds_F77=$old_archive_cmds
14035 no_undefined_flag_F77=
14036 whole_archive_flag_spec_F77=
14037 enable_shared_with_static_runtimes_F77=no
14039 # Source file extension for f77 test sources.
14040 ac_ext=f
14042 # Object file extension for compiled f77 test sources.
14043 objext=o
14044 objext_F77=$objext
14046 # Code to be used in simple compile tests
14047 lt_simple_compile_test_code="\
14048 subroutine t
14049 return
14053 # Code to be used in simple link tests
14054 lt_simple_link_test_code="\
14055 program t
14059 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14061 # If no C compiler was specified, use CC.
14062 LTCC=${LTCC-"$CC"}
14064 # If no C compiler flags were specified, use CFLAGS.
14065 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14067 # Allow CC to be a program name with arguments.
14068 compiler=$CC
14071 # save warnings/boilerplate of simple test code
14072 ac_outfile=conftest.$ac_objext
14073 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14074 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14075 _lt_compiler_boilerplate=`cat conftest.err`
14076 $rm conftest*
14078 ac_outfile=conftest.$ac_objext
14079 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14080 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14081 _lt_linker_boilerplate=`cat conftest.err`
14082 $rm conftest*
14085 # Allow CC to be a program name with arguments.
14086 lt_save_CC="$CC"
14087 CC=${F77-"f77"}
14088 compiler=$CC
14089 compiler_F77=$CC
14090 for cc_temp in $compiler""; do
14091 case $cc_temp in
14092 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14093 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14094 \-*) ;;
14095 *) break;;
14096 esac
14097 done
14098 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14101 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14102 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14103 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14104 echo "${ECHO_T}$can_build_shared" >&6; }
14106 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14107 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14108 test "$can_build_shared" = "no" && enable_shared=no
14110 # On AIX, shared libraries and static libraries use the same namespace, and
14111 # are all built from PIC.
14112 case $host_os in
14113 aix3*)
14114 test "$enable_shared" = yes && enable_static=no
14115 if test -n "$RANLIB"; then
14116 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14117 postinstall_cmds='$RANLIB $lib'
14120 aix4* | aix5*)
14121 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14122 test "$enable_shared" = yes && enable_static=no
14125 esac
14126 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14127 echo "${ECHO_T}$enable_shared" >&6; }
14129 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14130 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14131 # Make sure either enable_shared or enable_static is yes.
14132 test "$enable_shared" = yes || enable_static=yes
14133 { echo "$as_me:$LINENO: result: $enable_static" >&5
14134 echo "${ECHO_T}$enable_static" >&6; }
14136 GCC_F77="$G77"
14137 LD_F77="$LD"
14139 lt_prog_compiler_wl_F77=
14140 lt_prog_compiler_pic_F77=
14141 lt_prog_compiler_static_F77=
14143 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14144 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14146 if test "$GCC" = yes; then
14147 lt_prog_compiler_wl_F77='-Wl,'
14148 lt_prog_compiler_static_F77='-static'
14150 case $host_os in
14151 aix*)
14152 # All AIX code is PIC.
14153 if test "$host_cpu" = ia64; then
14154 # AIX 5 now supports IA64 processor
14155 lt_prog_compiler_static_F77='-Bstatic'
14159 amigaos*)
14160 # FIXME: we need at least 68020 code to build shared libraries, but
14161 # adding the `-m68020' flag to GCC prevents building anything better,
14162 # like `-m68040'.
14163 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14166 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14167 # PIC is the default for these OSes.
14170 mingw* | cygwin* | pw32* | os2*)
14171 # This hack is so that the source file can tell whether it is being
14172 # built for inclusion in a dll (and should export symbols for example).
14173 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14174 # (--disable-auto-import) libraries
14175 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14178 darwin* | rhapsody*)
14179 # PIC is the default on this platform
14180 # Common symbols not allowed in MH_DYLIB files
14181 lt_prog_compiler_pic_F77='-fno-common'
14184 interix[3-9]*)
14185 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14186 # Instead, we relocate shared libraries at runtime.
14189 msdosdjgpp*)
14190 # Just because we use GCC doesn't mean we suddenly get shared libraries
14191 # on systems that don't support them.
14192 lt_prog_compiler_can_build_shared_F77=no
14193 enable_shared=no
14196 sysv4*MP*)
14197 if test -d /usr/nec; then
14198 lt_prog_compiler_pic_F77=-Kconform_pic
14202 hpux*)
14203 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14204 # not for PA HP-UX.
14205 case $host_cpu in
14206 hppa*64*|ia64*)
14207 # +Z the default
14210 lt_prog_compiler_pic_F77='-fPIC'
14212 esac
14216 lt_prog_compiler_pic_F77='-fPIC'
14218 esac
14219 else
14220 # PORTME Check for flag to pass linker flags through the system compiler.
14221 case $host_os in
14222 aix*)
14223 lt_prog_compiler_wl_F77='-Wl,'
14224 if test "$host_cpu" = ia64; then
14225 # AIX 5 now supports IA64 processor
14226 lt_prog_compiler_static_F77='-Bstatic'
14227 else
14228 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14231 darwin*)
14232 # PIC is the default on this platform
14233 # Common symbols not allowed in MH_DYLIB files
14234 case $cc_basename in
14235 xlc*)
14236 lt_prog_compiler_pic_F77='-qnocommon'
14237 lt_prog_compiler_wl_F77='-Wl,'
14239 esac
14242 mingw* | cygwin* | pw32* | os2*)
14243 # This hack is so that the source file can tell whether it is being
14244 # built for inclusion in a dll (and should export symbols for example).
14245 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14248 hpux9* | hpux10* | hpux11*)
14249 lt_prog_compiler_wl_F77='-Wl,'
14250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14251 # not for PA HP-UX.
14252 case $host_cpu in
14253 hppa*64*|ia64*)
14254 # +Z the default
14257 lt_prog_compiler_pic_F77='+Z'
14259 esac
14260 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14261 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14264 irix5* | irix6* | nonstopux*)
14265 lt_prog_compiler_wl_F77='-Wl,'
14266 # PIC (with -KPIC) is the default.
14267 lt_prog_compiler_static_F77='-non_shared'
14270 newsos6)
14271 lt_prog_compiler_pic_F77='-KPIC'
14272 lt_prog_compiler_static_F77='-Bstatic'
14275 linux* | k*bsd*-gnu)
14276 case $cc_basename in
14277 icc* | ecc*)
14278 lt_prog_compiler_wl_F77='-Wl,'
14279 lt_prog_compiler_pic_F77='-KPIC'
14280 lt_prog_compiler_static_F77='-static'
14282 pgcc* | pgf77* | pgf90* | pgf95*)
14283 # Portland Group compilers (*not* the Pentium gcc compiler,
14284 # which looks to be a dead project)
14285 lt_prog_compiler_wl_F77='-Wl,'
14286 lt_prog_compiler_pic_F77='-fpic'
14287 lt_prog_compiler_static_F77='-Bstatic'
14289 ccc*)
14290 lt_prog_compiler_wl_F77='-Wl,'
14291 # All Alpha code is PIC.
14292 lt_prog_compiler_static_F77='-non_shared'
14295 case `$CC -V 2>&1 | sed 5q` in
14296 *Sun\ C*)
14297 # Sun C 5.9
14298 lt_prog_compiler_pic_F77='-KPIC'
14299 lt_prog_compiler_static_F77='-Bstatic'
14300 lt_prog_compiler_wl_F77='-Wl,'
14302 *Sun\ F*)
14303 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14304 lt_prog_compiler_pic_F77='-KPIC'
14305 lt_prog_compiler_static_F77='-Bstatic'
14306 lt_prog_compiler_wl_F77=''
14308 esac
14310 esac
14313 osf3* | osf4* | osf5*)
14314 lt_prog_compiler_wl_F77='-Wl,'
14315 # All OSF/1 code is PIC.
14316 lt_prog_compiler_static_F77='-non_shared'
14319 rdos*)
14320 lt_prog_compiler_static_F77='-non_shared'
14323 solaris*)
14324 lt_prog_compiler_pic_F77='-KPIC'
14325 lt_prog_compiler_static_F77='-Bstatic'
14326 case $cc_basename in
14327 f77* | f90* | f95*)
14328 lt_prog_compiler_wl_F77='-Qoption ld ';;
14330 lt_prog_compiler_wl_F77='-Wl,';;
14331 esac
14334 sunos4*)
14335 lt_prog_compiler_wl_F77='-Qoption ld '
14336 lt_prog_compiler_pic_F77='-PIC'
14337 lt_prog_compiler_static_F77='-Bstatic'
14340 sysv4 | sysv4.2uw2* | sysv4.3*)
14341 lt_prog_compiler_wl_F77='-Wl,'
14342 lt_prog_compiler_pic_F77='-KPIC'
14343 lt_prog_compiler_static_F77='-Bstatic'
14346 sysv4*MP*)
14347 if test -d /usr/nec ;then
14348 lt_prog_compiler_pic_F77='-Kconform_pic'
14349 lt_prog_compiler_static_F77='-Bstatic'
14353 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14354 lt_prog_compiler_wl_F77='-Wl,'
14355 lt_prog_compiler_pic_F77='-KPIC'
14356 lt_prog_compiler_static_F77='-Bstatic'
14359 unicos*)
14360 lt_prog_compiler_wl_F77='-Wl,'
14361 lt_prog_compiler_can_build_shared_F77=no
14364 uts4*)
14365 lt_prog_compiler_pic_F77='-pic'
14366 lt_prog_compiler_static_F77='-Bstatic'
14370 lt_prog_compiler_can_build_shared_F77=no
14372 esac
14375 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14376 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14379 # Check to make sure the PIC flag actually works.
14381 if test -n "$lt_prog_compiler_pic_F77"; then
14383 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14384 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14385 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388 lt_prog_compiler_pic_works_F77=no
14389 ac_outfile=conftest.$ac_objext
14390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14391 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14392 # Insert the option either (1) after the last *FLAGS variable, or
14393 # (2) before a word containing "conftest.", or (3) at the end.
14394 # Note that $ac_compile itself does not contain backslashes and begins
14395 # with a dollar sign (not a hyphen), so the echo should work correctly.
14396 # The option is referenced via a variable to avoid confusing sed.
14397 lt_compile=`echo "$ac_compile" | $SED \
14398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14400 -e 's:$: $lt_compiler_flag:'`
14401 (eval echo "\"\$as_me:14400: $lt_compile\"" >&5)
14402 (eval "$lt_compile" 2>conftest.err)
14403 ac_status=$?
14404 cat conftest.err >&5
14405 echo "$as_me:14404: \$? = $ac_status" >&5
14406 if (exit $ac_status) && test -s "$ac_outfile"; then
14407 # The compiler can only warn and ignore the option if not recognized
14408 # So say no if there are warnings other than the usual output.
14409 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14412 lt_prog_compiler_pic_works_F77=yes
14415 $rm conftest*
14418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14419 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14421 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14422 case $lt_prog_compiler_pic_F77 in
14423 "" | " "*) ;;
14424 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14425 esac
14426 else
14427 lt_prog_compiler_pic_F77=
14428 lt_prog_compiler_can_build_shared_F77=no
14432 case $host_os in
14433 # For platforms which do not support PIC, -DPIC is meaningless:
14434 *djgpp*)
14435 lt_prog_compiler_pic_F77=
14438 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14440 esac
14443 # Check to make sure the static flag actually works.
14445 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14446 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14447 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14448 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 else
14451 lt_prog_compiler_static_works_F77=no
14452 save_LDFLAGS="$LDFLAGS"
14453 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14454 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14455 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14456 # The linker can only warn and ignore the option if not recognized
14457 # So say no if there are warnings
14458 if test -s conftest.err; then
14459 # Append any errors to the config.log.
14460 cat conftest.err 1>&5
14461 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14463 if diff conftest.exp conftest.er2 >/dev/null; then
14464 lt_prog_compiler_static_works_F77=yes
14466 else
14467 lt_prog_compiler_static_works_F77=yes
14470 $rm conftest*
14471 LDFLAGS="$save_LDFLAGS"
14474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14475 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14477 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14479 else
14480 lt_prog_compiler_static_F77=
14484 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14485 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14486 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489 lt_cv_prog_compiler_c_o_F77=no
14490 $rm -r conftest 2>/dev/null
14491 mkdir conftest
14492 cd conftest
14493 mkdir out
14494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14496 lt_compiler_flag="-o out/conftest2.$ac_objext"
14497 # Insert the option either (1) after the last *FLAGS variable, or
14498 # (2) before a word containing "conftest.", or (3) at the end.
14499 # Note that $ac_compile itself does not contain backslashes and begins
14500 # with a dollar sign (not a hyphen), so the echo should work correctly.
14501 lt_compile=`echo "$ac_compile" | $SED \
14502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14504 -e 's:$: $lt_compiler_flag:'`
14505 (eval echo "\"\$as_me:14504: $lt_compile\"" >&5)
14506 (eval "$lt_compile" 2>out/conftest.err)
14507 ac_status=$?
14508 cat out/conftest.err >&5
14509 echo "$as_me:14508: \$? = $ac_status" >&5
14510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14511 then
14512 # The compiler can only warn and ignore the option if not recognized
14513 # So say no if there are warnings
14514 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14517 lt_cv_prog_compiler_c_o_F77=yes
14520 chmod u+w . 2>&5
14521 $rm conftest*
14522 # SGI C++ compiler will create directory out/ii_files/ for
14523 # template instantiation
14524 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14525 $rm out/* && rmdir out
14526 cd ..
14527 rmdir conftest
14528 $rm conftest*
14531 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14532 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14535 hard_links="nottested"
14536 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14537 # do not overwrite the value of need_locks provided by the user
14538 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14539 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14540 hard_links=yes
14541 $rm conftest*
14542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14543 touch conftest.a
14544 ln conftest.a conftest.b 2>&5 || hard_links=no
14545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14546 { echo "$as_me:$LINENO: result: $hard_links" >&5
14547 echo "${ECHO_T}$hard_links" >&6; }
14548 if test "$hard_links" = no; then
14549 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14550 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14551 need_locks=warn
14553 else
14554 need_locks=no
14557 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14558 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14560 runpath_var=
14561 allow_undefined_flag_F77=
14562 enable_shared_with_static_runtimes_F77=no
14563 archive_cmds_F77=
14564 archive_expsym_cmds_F77=
14565 old_archive_From_new_cmds_F77=
14566 old_archive_from_expsyms_cmds_F77=
14567 export_dynamic_flag_spec_F77=
14568 whole_archive_flag_spec_F77=
14569 thread_safe_flag_spec_F77=
14570 hardcode_libdir_flag_spec_F77=
14571 hardcode_libdir_flag_spec_ld_F77=
14572 hardcode_libdir_separator_F77=
14573 hardcode_direct_F77=no
14574 hardcode_minus_L_F77=no
14575 hardcode_shlibpath_var_F77=unsupported
14576 link_all_deplibs_F77=unknown
14577 hardcode_automatic_F77=no
14578 module_cmds_F77=
14579 module_expsym_cmds_F77=
14580 always_export_symbols_F77=no
14581 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14582 # include_expsyms should be a list of space-separated symbols to be *always*
14583 # included in the symbol list
14584 include_expsyms_F77=
14585 # exclude_expsyms can be an extended regexp of symbols to exclude
14586 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14587 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14588 # as well as any symbol that contains `d'.
14589 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14590 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14591 # platforms (ab)use it in PIC code, but their linkers get confused if
14592 # the symbol is explicitly referenced. Since portable code cannot
14593 # rely on this symbol name, it's probably fine to never include it in
14594 # preloaded symbol tables.
14595 extract_expsyms_cmds=
14596 # Just being paranoid about ensuring that cc_basename is set.
14597 for cc_temp in $compiler""; do
14598 case $cc_temp in
14599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14601 \-*) ;;
14602 *) break;;
14603 esac
14604 done
14605 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14607 case $host_os in
14608 cygwin* | mingw* | pw32*)
14609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14610 # When not using gcc, we currently assume that we are using
14611 # Microsoft Visual C++.
14612 if test "$GCC" != yes; then
14613 with_gnu_ld=no
14616 interix*)
14617 # we just hope/assume this is gcc and not c89 (= MSVC++)
14618 with_gnu_ld=yes
14620 openbsd*)
14621 with_gnu_ld=no
14623 esac
14625 ld_shlibs_F77=yes
14626 if test "$with_gnu_ld" = yes; then
14627 # If archive_cmds runs LD, not CC, wlarc should be empty
14628 wlarc='${wl}'
14630 # Set some defaults for GNU ld with shared library support. These
14631 # are reset later if shared libraries are not supported. Putting them
14632 # here allows them to be overridden if necessary.
14633 runpath_var=LD_RUN_PATH
14634 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14635 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14636 # ancient GNU ld didn't support --whole-archive et. al.
14637 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14638 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14639 else
14640 whole_archive_flag_spec_F77=
14642 supports_anon_versioning=no
14643 case `$LD -v 2>/dev/null` in
14644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14647 *\ 2.11.*) ;; # other 2.11 versions
14648 *) supports_anon_versioning=yes ;;
14649 esac
14651 # See if GNU ld supports shared libraries.
14652 case $host_os in
14653 aix3* | aix4* | aix5*)
14654 # On AIX/PPC, the GNU linker is very broken
14655 if test "$host_cpu" != ia64; then
14656 ld_shlibs_F77=no
14657 cat <<EOF 1>&2
14659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14660 *** to be unable to reliably create shared libraries on AIX.
14661 *** Therefore, libtool is disabling shared libraries support. If you
14662 *** really care for shared libraries, you may want to modify your PATH
14663 *** so that a non-GNU linker is found, and then restart.
14669 amigaos*)
14670 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)'
14671 hardcode_libdir_flag_spec_F77='-L$libdir'
14672 hardcode_minus_L_F77=yes
14674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14675 # that the semantics of dynamic libraries on AmigaOS, at least up
14676 # to version 4, is to share data among multiple programs linked
14677 # with the same dynamic library. Since this doesn't match the
14678 # behavior of shared libraries on other platforms, we can't use
14679 # them.
14680 ld_shlibs_F77=no
14683 beos*)
14684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14685 allow_undefined_flag_F77=unsupported
14686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14687 # support --undefined. This deserves some investigation. FIXME
14688 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14689 else
14690 ld_shlibs_F77=no
14694 cygwin* | mingw* | pw32*)
14695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14696 # as there is no search path for DLLs.
14697 hardcode_libdir_flag_spec_F77='-L$libdir'
14698 allow_undefined_flag_F77=unsupported
14699 always_export_symbols_F77=no
14700 enable_shared_with_static_runtimes_F77=yes
14701 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14705 # If the export-symbols file already is a .def file (1st line
14706 # is EXPORTS), use it as is; otherwise, prepend...
14707 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14708 cp $export_symbols $output_objdir/$soname.def;
14709 else
14710 echo EXPORTS > $output_objdir/$soname.def;
14711 cat $export_symbols >> $output_objdir/$soname.def;
14713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14714 else
14715 ld_shlibs_F77=no
14719 interix[3-9]*)
14720 hardcode_direct_F77=no
14721 hardcode_shlibpath_var_F77=no
14722 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14723 export_dynamic_flag_spec_F77='${wl}-E'
14724 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14725 # Instead, shared libraries are loaded at an image base (0x10000000 by
14726 # default) and relocated if they conflict, which is a slow very memory
14727 # consuming and fragmenting process. To avoid this, we pick a random,
14728 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14729 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14730 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'
14731 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'
14734 gnu* | linux* | k*bsd*-gnu)
14735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14736 tmp_addflag=
14737 case $cc_basename,$host_cpu in
14738 pgcc*) # Portland Group C compiler
14739 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'
14740 tmp_addflag=' $pic_flag'
14742 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14743 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'
14744 tmp_addflag=' $pic_flag -Mnomain' ;;
14745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14746 tmp_addflag=' -i_dynamic' ;;
14747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14748 tmp_addflag=' -i_dynamic -nofor_main' ;;
14749 ifc* | ifort*) # Intel Fortran compiler
14750 tmp_addflag=' -nofor_main' ;;
14751 esac
14752 case `$CC -V 2>&1 | sed 5q` in
14753 *Sun\ C*) # Sun C 5.9
14754 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'
14755 tmp_sharedflag='-G' ;;
14756 *Sun\ F*) # Sun Fortran 8.3
14757 tmp_sharedflag='-G' ;;
14759 tmp_sharedflag='-shared' ;;
14760 esac
14761 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763 if test $supports_anon_versioning = yes; then
14764 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14766 $echo "local: *; };" >> $output_objdir/$libname.ver~
14767 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14769 link_all_deplibs_F77=no
14770 else
14771 ld_shlibs_F77=no
14775 netbsd* | netbsdelf*-gnu)
14776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14777 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14778 wlarc=
14779 else
14780 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14781 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14785 solaris*)
14786 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14787 ld_shlibs_F77=no
14788 cat <<EOF 1>&2
14790 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14791 *** create shared libraries on Solaris systems. Therefore, libtool
14792 *** is disabling shared libraries support. We urge you to upgrade GNU
14793 *** binutils to release 2.9.1 or newer. Another option is to modify
14794 *** your PATH or compiler configuration so that the native linker is
14795 *** used, and then restart.
14798 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14799 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14800 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14801 else
14802 ld_shlibs_F77=no
14806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14807 case `$LD -v 2>&1` in
14808 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14809 ld_shlibs_F77=no
14810 cat <<_LT_EOF 1>&2
14812 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14813 *** reliably create shared libraries on SCO systems. Therefore, libtool
14814 *** is disabling shared libraries support. We urge you to upgrade GNU
14815 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14816 *** your PATH or compiler configuration so that the native linker is
14817 *** used, and then restart.
14819 _LT_EOF
14822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14823 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14824 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14825 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14826 else
14827 ld_shlibs_F77=no
14830 esac
14833 sunos4*)
14834 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14835 wlarc=
14836 hardcode_direct_F77=yes
14837 hardcode_shlibpath_var_F77=no
14841 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14842 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14843 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14844 else
14845 ld_shlibs_F77=no
14848 esac
14850 if test "$ld_shlibs_F77" = no; then
14851 runpath_var=
14852 hardcode_libdir_flag_spec_F77=
14853 export_dynamic_flag_spec_F77=
14854 whole_archive_flag_spec_F77=
14856 else
14857 # PORTME fill in a description of your system's linker (not GNU ld)
14858 case $host_os in
14859 aix3*)
14860 allow_undefined_flag_F77=unsupported
14861 always_export_symbols_F77=yes
14862 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'
14863 # Note: this linker hardcodes the directories in LIBPATH if there
14864 # are no directories specified by -L.
14865 hardcode_minus_L_F77=yes
14866 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14867 # Neither direct hardcoding nor static linking is supported with a
14868 # broken collect2.
14869 hardcode_direct_F77=unsupported
14873 aix4* | aix5*)
14874 if test "$host_cpu" = ia64; then
14875 # On IA64, the linker does run time linking by default, so we don't
14876 # have to do anything special.
14877 aix_use_runtimelinking=no
14878 exp_sym_flag='-Bexport'
14879 no_entry_flag=""
14880 else
14881 # If we're using GNU nm, then we don't want the "-C" option.
14882 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14883 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14884 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'
14885 else
14886 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'
14888 aix_use_runtimelinking=no
14890 # Test if we are trying to use run time linking or normal
14891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14892 # need to do runtime linking.
14893 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14894 for ld_flag in $LDFLAGS; do
14895 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14896 aix_use_runtimelinking=yes
14897 break
14899 done
14901 esac
14903 exp_sym_flag='-bexport'
14904 no_entry_flag='-bnoentry'
14907 # When large executables or shared objects are built, AIX ld can
14908 # have problems creating the table of contents. If linking a library
14909 # or program results in "error TOC overflow" add -mminimal-toc to
14910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14913 archive_cmds_F77=''
14914 hardcode_direct_F77=yes
14915 hardcode_libdir_separator_F77=':'
14916 link_all_deplibs_F77=yes
14918 if test "$GCC" = yes; then
14919 case $host_os in aix4.[012]|aix4.[012].*)
14920 # We only want to do this on AIX 4.2 and lower, the check
14921 # below for broken collect2 doesn't work under 4.3+
14922 collect2name=`${CC} -print-prog-name=collect2`
14923 if test -f "$collect2name" && \
14924 strings "$collect2name" | grep resolve_lib_name >/dev/null
14925 then
14926 # We have reworked collect2
14928 else
14929 # We have old collect2
14930 hardcode_direct_F77=unsupported
14931 # It fails to find uninstalled libraries when the uninstalled
14932 # path is not listed in the libpath. Setting hardcode_minus_L
14933 # to unsupported forces relinking
14934 hardcode_minus_L_F77=yes
14935 hardcode_libdir_flag_spec_F77='-L$libdir'
14936 hardcode_libdir_separator_F77=
14939 esac
14940 shared_flag='-shared'
14941 if test "$aix_use_runtimelinking" = yes; then
14942 shared_flag="$shared_flag "'${wl}-G'
14944 else
14945 # not using gcc
14946 if test "$host_cpu" = ia64; then
14947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14948 # chokes on -Wl,-G. The following line is correct:
14949 shared_flag='-G'
14950 else
14951 if test "$aix_use_runtimelinking" = yes; then
14952 shared_flag='${wl}-G'
14953 else
14954 shared_flag='${wl}-bM:SRE'
14959 # It seems that -bexpall does not export symbols beginning with
14960 # underscore (_), so it is better to generate a list of symbols to export.
14961 always_export_symbols_F77=yes
14962 if test "$aix_use_runtimelinking" = yes; then
14963 # Warning - without using the other runtime loading flags (-brtl),
14964 # -berok will link without error, but may produce a broken library.
14965 allow_undefined_flag_F77='-berok'
14966 # Determine the default libpath from the value encoded in an empty executable.
14967 cat >conftest.$ac_ext <<_ACEOF
14968 program main
14971 _ACEOF
14972 rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (ac_try="$ac_link"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_link") 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } && {
14986 test -z "$ac_f77_werror_flag" ||
14987 test ! -s conftest.err
14988 } && test -s conftest$ac_exeext &&
14989 $as_test_x conftest$ac_exeext; then
14991 lt_aix_libpath_sed='
14992 /Import File Strings/,/^$/ {
14993 /^0/ {
14994 s/^0 *\(.*\)$/\1/
14998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14999 # Check for a 64-bit object if we didn't find anything.
15000 if test -z "$aix_libpath"; then
15001 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15003 else
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15011 conftest$ac_exeext conftest.$ac_ext
15012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15014 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15015 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"
15016 else
15017 if test "$host_cpu" = ia64; then
15018 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15019 allow_undefined_flag_F77="-z nodefs"
15020 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"
15021 else
15022 # Determine the default libpath from the value encoded in an empty executable.
15023 cat >conftest.$ac_ext <<_ACEOF
15024 program main
15027 _ACEOF
15028 rm -f conftest.$ac_objext conftest$ac_exeext
15029 if { (ac_try="$ac_link"
15030 case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15033 esac
15034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_link") 2>conftest.er1
15036 ac_status=$?
15037 grep -v '^ *+' conftest.er1 >conftest.err
15038 rm -f conftest.er1
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } && {
15042 test -z "$ac_f77_werror_flag" ||
15043 test ! -s conftest.err
15044 } && test -s conftest$ac_exeext &&
15045 $as_test_x conftest$ac_exeext; then
15047 lt_aix_libpath_sed='
15048 /Import File Strings/,/^$/ {
15049 /^0/ {
15050 s/^0 *\(.*\)$/\1/
15054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15055 # Check for a 64-bit object if we didn't find anything.
15056 if test -z "$aix_libpath"; then
15057 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15059 else
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15067 conftest$ac_exeext conftest.$ac_ext
15068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15070 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15071 # Warning - without using the other run time loading flags,
15072 # -berok will link without error, but may produce a broken library.
15073 no_undefined_flag_F77=' ${wl}-bernotok'
15074 allow_undefined_flag_F77=' ${wl}-berok'
15075 # Exported symbols can be pulled into shared objects from archives
15076 whole_archive_flag_spec_F77='$convenience'
15077 archive_cmds_need_lc_F77=yes
15078 # This is similar to how AIX traditionally builds its shared libraries.
15079 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'
15084 amigaos*)
15085 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)'
15086 hardcode_libdir_flag_spec_F77='-L$libdir'
15087 hardcode_minus_L_F77=yes
15088 # see comment about different semantics on the GNU ld section
15089 ld_shlibs_F77=no
15092 bsdi[45]*)
15093 export_dynamic_flag_spec_F77=-rdynamic
15096 cygwin* | mingw* | pw32*)
15097 # When not using gcc, we currently assume that we are using
15098 # Microsoft Visual C++.
15099 # hardcode_libdir_flag_spec is actually meaningless, as there is
15100 # no search path for DLLs.
15101 hardcode_libdir_flag_spec_F77=' '
15102 allow_undefined_flag_F77=unsupported
15103 # Tell ltmain to make .lib files, not .a files.
15104 libext=lib
15105 # Tell ltmain to make .dll files, not .so files.
15106 shrext_cmds=".dll"
15107 # FIXME: Setting linknames here is a bad hack.
15108 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15109 # The linker will automatically build a .lib file if we build a DLL.
15110 old_archive_From_new_cmds_F77='true'
15111 # FIXME: Should let the user specify the lib program.
15112 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15113 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15114 enable_shared_with_static_runtimes_F77=yes
15117 darwin* | rhapsody*)
15118 case $host_os in
15119 rhapsody* | darwin1.[012])
15120 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15122 *) # Darwin 1.3 on
15123 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15124 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15125 else
15126 case ${MACOSX_DEPLOYMENT_TARGET} in
15127 10.[012])
15128 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15130 10.*)
15131 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15133 esac
15136 esac
15137 archive_cmds_need_lc_F77=no
15138 hardcode_direct_F77=no
15139 hardcode_automatic_F77=yes
15140 hardcode_shlibpath_var_F77=unsupported
15141 whole_archive_flag_spec_F77=''
15142 link_all_deplibs_F77=yes
15143 if test "$GCC" = yes ; then
15144 output_verbose_link_cmd='echo'
15145 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15146 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15148 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15149 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}'
15150 else
15151 case $cc_basename in
15152 xlc*)
15153 output_verbose_link_cmd='echo'
15154 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15155 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15157 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}'
15158 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}'
15161 ld_shlibs_F77=no
15163 esac
15167 dgux*)
15168 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15169 hardcode_libdir_flag_spec_F77='-L$libdir'
15170 hardcode_shlibpath_var_F77=no
15173 freebsd1*)
15174 ld_shlibs_F77=no
15177 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15178 # support. Future versions do this automatically, but an explicit c++rt0.o
15179 # does not break anything, and helps significantly (at the cost of a little
15180 # extra space).
15181 freebsd2.2*)
15182 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15183 hardcode_libdir_flag_spec_F77='-R$libdir'
15184 hardcode_direct_F77=yes
15185 hardcode_shlibpath_var_F77=no
15188 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15189 freebsd2*)
15190 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15191 hardcode_direct_F77=yes
15192 hardcode_minus_L_F77=yes
15193 hardcode_shlibpath_var_F77=no
15196 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15197 freebsd* | dragonfly*)
15198 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15199 hardcode_libdir_flag_spec_F77='-R$libdir'
15200 hardcode_direct_F77=yes
15201 hardcode_shlibpath_var_F77=no
15204 hpux9*)
15205 if test "$GCC" = yes; then
15206 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'
15207 else
15208 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'
15210 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15211 hardcode_libdir_separator_F77=:
15212 hardcode_direct_F77=yes
15214 # hardcode_minus_L: Not really in the search PATH,
15215 # but as the default location of the library.
15216 hardcode_minus_L_F77=yes
15217 export_dynamic_flag_spec_F77='${wl}-E'
15220 hpux10*)
15221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15222 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15223 else
15224 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15226 if test "$with_gnu_ld" = no; then
15227 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15228 hardcode_libdir_separator_F77=:
15230 hardcode_direct_F77=yes
15231 export_dynamic_flag_spec_F77='${wl}-E'
15233 # hardcode_minus_L: Not really in the search PATH,
15234 # but as the default location of the library.
15235 hardcode_minus_L_F77=yes
15239 hpux11*)
15240 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15241 case $host_cpu in
15242 hppa*64*)
15243 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15245 ia64*)
15246 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15249 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15251 esac
15252 else
15253 case $host_cpu in
15254 hppa*64*)
15255 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15257 ia64*)
15258 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15261 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15263 esac
15265 if test "$with_gnu_ld" = no; then
15266 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15267 hardcode_libdir_separator_F77=:
15269 case $host_cpu in
15270 hppa*64*|ia64*)
15271 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15272 hardcode_direct_F77=no
15273 hardcode_shlibpath_var_F77=no
15276 hardcode_direct_F77=yes
15277 export_dynamic_flag_spec_F77='${wl}-E'
15279 # hardcode_minus_L: Not really in the search PATH,
15280 # but as the default location of the library.
15281 hardcode_minus_L_F77=yes
15283 esac
15287 irix5* | irix6* | nonstopux*)
15288 if test "$GCC" = yes; then
15289 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'
15290 else
15291 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'
15292 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15294 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15295 hardcode_libdir_separator_F77=:
15296 link_all_deplibs_F77=yes
15299 netbsd* | netbsdelf*-gnu)
15300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15301 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15302 else
15303 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15305 hardcode_libdir_flag_spec_F77='-R$libdir'
15306 hardcode_direct_F77=yes
15307 hardcode_shlibpath_var_F77=no
15310 newsos6)
15311 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15312 hardcode_direct_F77=yes
15313 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15314 hardcode_libdir_separator_F77=:
15315 hardcode_shlibpath_var_F77=no
15318 openbsd*)
15319 if test -f /usr/libexec/ld.so; then
15320 hardcode_direct_F77=yes
15321 hardcode_shlibpath_var_F77=no
15322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15323 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15324 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15325 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15326 export_dynamic_flag_spec_F77='${wl}-E'
15327 else
15328 case $host_os in
15329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15330 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15331 hardcode_libdir_flag_spec_F77='-R$libdir'
15334 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15335 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15337 esac
15339 else
15340 ld_shlibs_F77=no
15344 os2*)
15345 hardcode_libdir_flag_spec_F77='-L$libdir'
15346 hardcode_minus_L_F77=yes
15347 allow_undefined_flag_F77=unsupported
15348 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'
15349 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15352 osf3*)
15353 if test "$GCC" = yes; then
15354 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15355 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'
15356 else
15357 allow_undefined_flag_F77=' -expect_unresolved \*'
15358 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'
15360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15361 hardcode_libdir_separator_F77=:
15364 osf4* | osf5*) # as osf3* with the addition of -msym flag
15365 if test "$GCC" = yes; then
15366 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15367 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'
15368 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15369 else
15370 allow_undefined_flag_F77=' -expect_unresolved \*'
15371 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'
15372 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~
15373 $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'
15375 # Both c and cxx compiler support -rpath directly
15376 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15378 hardcode_libdir_separator_F77=:
15381 solaris*)
15382 no_undefined_flag_F77=' -z text'
15383 if test "$GCC" = yes; then
15384 wlarc='${wl}'
15385 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15386 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15387 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15388 else
15389 wlarc=''
15390 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15391 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15392 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15394 hardcode_libdir_flag_spec_F77='-R$libdir'
15395 hardcode_shlibpath_var_F77=no
15396 case $host_os in
15397 solaris2.[0-5] | solaris2.[0-5].*) ;;
15399 # The compiler driver will combine and reorder linker options,
15400 # but understands `-z linker_flag'. GCC discards it without `$wl',
15401 # but is careful enough not to reorder.
15402 # Supported since Solaris 2.6 (maybe 2.5.1?)
15403 if test "$GCC" = yes; then
15404 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15405 else
15406 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15409 esac
15410 link_all_deplibs_F77=yes
15413 sunos4*)
15414 if test "x$host_vendor" = xsequent; then
15415 # Use $CC to link under sequent, because it throws in some extra .o
15416 # files that make .init and .fini sections work.
15417 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15418 else
15419 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15421 hardcode_libdir_flag_spec_F77='-L$libdir'
15422 hardcode_direct_F77=yes
15423 hardcode_minus_L_F77=yes
15424 hardcode_shlibpath_var_F77=no
15427 sysv4)
15428 case $host_vendor in
15429 sni)
15430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15431 hardcode_direct_F77=yes # is this really true???
15433 siemens)
15434 ## LD is ld it makes a PLAMLIB
15435 ## CC just makes a GrossModule.
15436 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15437 reload_cmds_F77='$CC -r -o $output$reload_objs'
15438 hardcode_direct_F77=no
15440 motorola)
15441 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15442 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15444 esac
15445 runpath_var='LD_RUN_PATH'
15446 hardcode_shlibpath_var_F77=no
15449 sysv4.3*)
15450 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15451 hardcode_shlibpath_var_F77=no
15452 export_dynamic_flag_spec_F77='-Bexport'
15455 sysv4*MP*)
15456 if test -d /usr/nec; then
15457 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15458 hardcode_shlibpath_var_F77=no
15459 runpath_var=LD_RUN_PATH
15460 hardcode_runpath_var=yes
15461 ld_shlibs_F77=yes
15465 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15466 no_undefined_flag_F77='${wl}-z,text'
15467 archive_cmds_need_lc_F77=no
15468 hardcode_shlibpath_var_F77=no
15469 runpath_var='LD_RUN_PATH'
15471 if test "$GCC" = yes; then
15472 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15473 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15474 else
15475 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15476 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15480 sysv5* | sco3.2v5* | sco5v6*)
15481 # Note: We can NOT use -z defs as we might desire, because we do not
15482 # link with -lc, and that would cause any symbols used from libc to
15483 # always be unresolved, which means just about no library would
15484 # ever link correctly. If we're not using GNU ld we use -z text
15485 # though, which does catch some bad symbols but isn't as heavy-handed
15486 # as -z defs.
15487 no_undefined_flag_F77='${wl}-z,text'
15488 allow_undefined_flag_F77='${wl}-z,nodefs'
15489 archive_cmds_need_lc_F77=no
15490 hardcode_shlibpath_var_F77=no
15491 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15492 hardcode_libdir_separator_F77=':'
15493 link_all_deplibs_F77=yes
15494 export_dynamic_flag_spec_F77='${wl}-Bexport'
15495 runpath_var='LD_RUN_PATH'
15497 if test "$GCC" = yes; then
15498 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15499 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15500 else
15501 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15502 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506 uts4*)
15507 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15508 hardcode_libdir_flag_spec_F77='-L$libdir'
15509 hardcode_shlibpath_var_F77=no
15513 ld_shlibs_F77=no
15515 esac
15518 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15519 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15520 test "$ld_shlibs_F77" = no && can_build_shared=no
15523 # Do we need to explicitly link libc?
15525 case "x$archive_cmds_need_lc_F77" in
15526 x|xyes)
15527 # Assume -lc should be added
15528 archive_cmds_need_lc_F77=yes
15530 if test "$enable_shared" = yes && test "$GCC" = yes; then
15531 case $archive_cmds_F77 in
15532 *'~'*)
15533 # FIXME: we may have to deal with multi-command sequences.
15535 '$CC '*)
15536 # Test whether the compiler implicitly links with -lc since on some
15537 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15538 # to ld, don't add -lc before -lgcc.
15539 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15540 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15541 $rm conftest*
15542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15545 (eval $ac_compile) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } 2>conftest.err; then
15549 soname=conftest
15550 lib=conftest
15551 libobjs=conftest.$ac_objext
15552 deplibs=
15553 wl=$lt_prog_compiler_wl_F77
15554 pic_flag=$lt_prog_compiler_pic_F77
15555 compiler_flags=-v
15556 linker_flags=-v
15557 verstring=
15558 output_objdir=.
15559 libname=conftest
15560 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15561 allow_undefined_flag_F77=
15562 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15563 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }
15567 then
15568 archive_cmds_need_lc_F77=no
15569 else
15570 archive_cmds_need_lc_F77=yes
15572 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15573 else
15574 cat conftest.err 1>&5
15576 $rm conftest*
15577 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15578 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15580 esac
15583 esac
15585 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15586 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15587 library_names_spec=
15588 libname_spec='lib$name'
15589 soname_spec=
15590 shrext_cmds=".so"
15591 postinstall_cmds=
15592 postuninstall_cmds=
15593 finish_cmds=
15594 finish_eval=
15595 shlibpath_var=
15596 shlibpath_overrides_runpath=unknown
15597 version_type=none
15598 dynamic_linker="$host_os ld.so"
15599 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15601 need_lib_prefix=unknown
15602 hardcode_into_libs=no
15604 # when you set need_version to no, make sure it does not cause -set_version
15605 # flags to be left without arguments
15606 need_version=unknown
15608 case $host_os in
15609 aix3*)
15610 version_type=linux
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15612 shlibpath_var=LIBPATH
15614 # AIX 3 has no versioning support, so we append a major version to the name.
15615 soname_spec='${libname}${release}${shared_ext}$major'
15618 aix4* | aix5*)
15619 version_type=linux
15620 need_lib_prefix=no
15621 need_version=no
15622 hardcode_into_libs=yes
15623 if test "$host_cpu" = ia64; then
15624 # AIX 5 supports IA64
15625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 else
15628 # With GCC up to 2.95.x, collect2 would create an import file
15629 # for dependence libraries. The import file would start with
15630 # the line `#! .'. This would cause the generated library to
15631 # depend on `.', always an invalid library. This was fixed in
15632 # development snapshots of GCC prior to 3.0.
15633 case $host_os in
15634 aix4 | aix4.[01] | aix4.[01].*)
15635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15636 echo ' yes '
15637 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15639 else
15640 can_build_shared=no
15643 esac
15644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15645 # soname into executable. Probably we can add versioning support to
15646 # collect2, so additional links can be useful in future.
15647 if test "$aix_use_runtimelinking" = yes; then
15648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15649 # instead of lib<name>.a to let people know that these are not
15650 # typical AIX shared libraries.
15651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15652 else
15653 # We preserve .a as extension for shared libraries through AIX4.2
15654 # and later when we are not doing run time linking.
15655 library_names_spec='${libname}${release}.a $libname.a'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15658 shlibpath_var=LIBPATH
15662 amigaos*)
15663 library_names_spec='$libname.ixlibrary $libname.a'
15664 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15665 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'
15668 beos*)
15669 library_names_spec='${libname}${shared_ext}'
15670 dynamic_linker="$host_os ld.so"
15671 shlibpath_var=LIBRARY_PATH
15674 bsdi[45]*)
15675 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15683 # the default ld.so.conf also contains /usr/contrib/lib and
15684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15685 # libtool to hard-code these into programs
15688 cygwin* | mingw* | pw32*)
15689 version_type=windows
15690 shrext_cmds=".dll"
15691 need_version=no
15692 need_lib_prefix=no
15694 case $GCC,$host_os in
15695 yes,cygwin* | yes,mingw* | yes,pw32*)
15696 library_names_spec='$libname.dll.a'
15697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15698 postinstall_cmds='base_file=`basename \${file}`~
15699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15700 dldir=$destdir/`dirname \$dlpath`~
15701 test -d \$dldir || mkdir -p \$dldir~
15702 $install_prog $dir/$dlname \$dldir/$dlname~
15703 chmod a+x \$dldir/$dlname'
15704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15705 dlpath=$dir/\$dldll~
15706 $rm \$dlpath'
15707 shlibpath_overrides_runpath=yes
15709 case $host_os in
15710 cygwin*)
15711 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15712 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15713 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15715 mingw*)
15716 # MinGW DLLs use traditional 'lib' prefix
15717 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15719 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15720 # It is most probably a Windows format PATH printed by
15721 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15722 # path with ; separators, and with drive letters. We can handle the
15723 # drive letters (cygwin fileutils understands them), so leave them,
15724 # especially as we might pass files found there to a mingw objdump,
15725 # which wouldn't understand a cygwinified path. Ahh.
15726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15727 else
15728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15731 pw32*)
15732 # pw32 DLLs use 'pw' prefix rather than 'lib'
15733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15735 esac
15739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15741 esac
15742 dynamic_linker='Win32 ld.exe'
15743 # FIXME: first we should search . and the directory the executable is in
15744 shlibpath_var=PATH
15747 darwin* | rhapsody*)
15748 dynamic_linker="$host_os dyld"
15749 version_type=darwin
15750 need_lib_prefix=no
15751 need_version=no
15752 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15753 soname_spec='${libname}${release}${major}$shared_ext'
15754 shlibpath_overrides_runpath=yes
15755 shlibpath_var=DYLD_LIBRARY_PATH
15756 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15758 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15761 dgux*)
15762 version_type=linux
15763 need_lib_prefix=no
15764 need_version=no
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15766 soname_spec='${libname}${release}${shared_ext}$major'
15767 shlibpath_var=LD_LIBRARY_PATH
15770 freebsd1*)
15771 dynamic_linker=no
15774 freebsd* | dragonfly*)
15775 # DragonFly does not have aout. When/if they implement a new
15776 # versioning mechanism, adjust this.
15777 if test -x /usr/bin/objformat; then
15778 objformat=`/usr/bin/objformat`
15779 else
15780 case $host_os in
15781 freebsd[123]*) objformat=aout ;;
15782 *) objformat=elf ;;
15783 esac
15785 version_type=freebsd-$objformat
15786 case $version_type in
15787 freebsd-elf*)
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15789 need_version=no
15790 need_lib_prefix=no
15792 freebsd-*)
15793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15794 need_version=yes
15796 esac
15797 shlibpath_var=LD_LIBRARY_PATH
15798 case $host_os in
15799 freebsd2*)
15800 shlibpath_overrides_runpath=yes
15802 freebsd3.[01]* | freebsdelf3.[01]*)
15803 shlibpath_overrides_runpath=yes
15804 hardcode_into_libs=yes
15806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15808 shlibpath_overrides_runpath=no
15809 hardcode_into_libs=yes
15811 *) # from 4.6 on, and DragonFly
15812 shlibpath_overrides_runpath=yes
15813 hardcode_into_libs=yes
15815 esac
15818 gnu*)
15819 version_type=linux
15820 need_lib_prefix=no
15821 need_version=no
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 hardcode_into_libs=yes
15828 hpux9* | hpux10* | hpux11*)
15829 # Give a soname corresponding to the major version so that dld.sl refuses to
15830 # link against other versions.
15831 version_type=sunos
15832 need_lib_prefix=no
15833 need_version=no
15834 case $host_cpu in
15835 ia64*)
15836 shrext_cmds='.so'
15837 hardcode_into_libs=yes
15838 dynamic_linker="$host_os dld.so"
15839 shlibpath_var=LD_LIBRARY_PATH
15840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 if test "X$HPUX_IA64_MODE" = X32; then
15844 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15845 else
15846 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15850 hppa*64*)
15851 shrext_cmds='.sl'
15852 hardcode_into_libs=yes
15853 dynamic_linker="$host_os dld.sl"
15854 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15862 shrext_cmds='.sl'
15863 dynamic_linker="$host_os dld.sl"
15864 shlibpath_var=SHLIB_PATH
15865 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15867 soname_spec='${libname}${release}${shared_ext}$major'
15869 esac
15870 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15871 postinstall_cmds='chmod 555 $lib'
15874 interix[3-9]*)
15875 version_type=linux
15876 need_lib_prefix=no
15877 need_version=no
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15881 shlibpath_var=LD_LIBRARY_PATH
15882 shlibpath_overrides_runpath=no
15883 hardcode_into_libs=yes
15886 irix5* | irix6* | nonstopux*)
15887 case $host_os in
15888 nonstopux*) version_type=nonstopux ;;
15890 if test "$lt_cv_prog_gnu_ld" = yes; then
15891 version_type=linux
15892 else
15893 version_type=irix
15894 fi ;;
15895 esac
15896 need_lib_prefix=no
15897 need_version=no
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15900 case $host_os in
15901 irix5* | nonstopux*)
15902 libsuff= shlibsuff=
15905 case $LD in # libtool.m4 will add one of these switches to LD
15906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15907 libsuff= shlibsuff= libmagic=32-bit;;
15908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15909 libsuff=32 shlibsuff=N32 libmagic=N32;;
15910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15911 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15912 *) libsuff= shlibsuff= libmagic=never-match;;
15913 esac
15915 esac
15916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15917 shlibpath_overrides_runpath=no
15918 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15919 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15920 hardcode_into_libs=yes
15923 # No shared lib support for Linux oldld, aout, or coff.
15924 linux*oldld* | linux*aout* | linux*coff*)
15925 dynamic_linker=no
15928 # This must be Linux ELF.
15929 linux* | k*bsd*-gnu)
15930 version_type=linux
15931 need_lib_prefix=no
15932 need_version=no
15933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15934 soname_spec='${libname}${release}${shared_ext}$major'
15935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15936 shlibpath_var=LD_LIBRARY_PATH
15937 shlibpath_overrides_runpath=no
15938 # This implies no fast_install, which is unacceptable.
15939 # Some rework will be needed to allow for fast_install
15940 # before this can be enabled.
15941 hardcode_into_libs=yes
15943 # Append ld.so.conf contents to the search path
15944 if test -f /etc/ld.so.conf; then
15945 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' ' '`
15946 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15949 # We used to test for /lib/ld.so.1 and disable shared libraries on
15950 # powerpc, because MkLinux only supported shared libraries with the
15951 # GNU dynamic linker. Since this was broken with cross compilers,
15952 # most powerpc-linux boxes support dynamic linking these days and
15953 # people can always --disable-shared, the test was removed, and we
15954 # assume the GNU/Linux dynamic linker is in use.
15955 dynamic_linker='GNU/Linux ld.so'
15958 netbsdelf*-gnu)
15959 version_type=linux
15960 need_lib_prefix=no
15961 need_version=no
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 shlibpath_var=LD_LIBRARY_PATH
15965 shlibpath_overrides_runpath=no
15966 hardcode_into_libs=yes
15967 dynamic_linker='NetBSD ld.elf_so'
15970 netbsd*)
15971 version_type=sunos
15972 need_lib_prefix=no
15973 need_version=no
15974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15977 dynamic_linker='NetBSD (a.out) ld.so'
15978 else
15979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15980 soname_spec='${libname}${release}${shared_ext}$major'
15981 dynamic_linker='NetBSD ld.elf_so'
15983 shlibpath_var=LD_LIBRARY_PATH
15984 shlibpath_overrides_runpath=yes
15985 hardcode_into_libs=yes
15988 newsos6)
15989 version_type=linux
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991 shlibpath_var=LD_LIBRARY_PATH
15992 shlibpath_overrides_runpath=yes
15995 nto-qnx*)
15996 version_type=linux
15997 need_lib_prefix=no
15998 need_version=no
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16000 soname_spec='${libname}${release}${shared_ext}$major'
16001 shlibpath_var=LD_LIBRARY_PATH
16002 shlibpath_overrides_runpath=yes
16005 openbsd*)
16006 version_type=sunos
16007 sys_lib_dlsearch_path_spec="/usr/lib"
16008 need_lib_prefix=no
16009 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16010 case $host_os in
16011 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16012 *) need_version=no ;;
16013 esac
16014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16016 shlibpath_var=LD_LIBRARY_PATH
16017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16018 case $host_os in
16019 openbsd2.[89] | openbsd2.[89].*)
16020 shlibpath_overrides_runpath=no
16023 shlibpath_overrides_runpath=yes
16025 esac
16026 else
16027 shlibpath_overrides_runpath=yes
16031 os2*)
16032 libname_spec='$name'
16033 shrext_cmds=".dll"
16034 need_lib_prefix=no
16035 library_names_spec='$libname${shared_ext} $libname.a'
16036 dynamic_linker='OS/2 ld.exe'
16037 shlibpath_var=LIBPATH
16040 osf3* | osf4* | osf5*)
16041 version_type=osf
16042 need_lib_prefix=no
16043 need_version=no
16044 soname_spec='${libname}${release}${shared_ext}$major'
16045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 shlibpath_var=LD_LIBRARY_PATH
16047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16048 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16051 rdos*)
16052 dynamic_linker=no
16055 solaris*)
16056 version_type=linux
16057 need_lib_prefix=no
16058 need_version=no
16059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060 soname_spec='${libname}${release}${shared_ext}$major'
16061 shlibpath_var=LD_LIBRARY_PATH
16062 shlibpath_overrides_runpath=yes
16063 hardcode_into_libs=yes
16064 # ldd complains unless libraries are executable
16065 postinstall_cmds='chmod +x $lib'
16068 sunos4*)
16069 version_type=sunos
16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16072 shlibpath_var=LD_LIBRARY_PATH
16073 shlibpath_overrides_runpath=yes
16074 if test "$with_gnu_ld" = yes; then
16075 need_lib_prefix=no
16077 need_version=yes
16080 sysv4 | sysv4.3*)
16081 version_type=linux
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16083 soname_spec='${libname}${release}${shared_ext}$major'
16084 shlibpath_var=LD_LIBRARY_PATH
16085 case $host_vendor in
16086 sni)
16087 shlibpath_overrides_runpath=no
16088 need_lib_prefix=no
16089 export_dynamic_flag_spec='${wl}-Blargedynsym'
16090 runpath_var=LD_RUN_PATH
16092 siemens)
16093 need_lib_prefix=no
16095 motorola)
16096 need_lib_prefix=no
16097 need_version=no
16098 shlibpath_overrides_runpath=no
16099 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16101 esac
16104 sysv4*MP*)
16105 if test -d /usr/nec ;then
16106 version_type=linux
16107 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16108 soname_spec='$libname${shared_ext}.$major'
16109 shlibpath_var=LD_LIBRARY_PATH
16113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16114 version_type=freebsd-elf
16115 need_lib_prefix=no
16116 need_version=no
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16118 soname_spec='${libname}${release}${shared_ext}$major'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 hardcode_into_libs=yes
16121 if test "$with_gnu_ld" = yes; then
16122 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16123 shlibpath_overrides_runpath=no
16124 else
16125 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16126 shlibpath_overrides_runpath=yes
16127 case $host_os in
16128 sco3.2v5*)
16129 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16131 esac
16133 sys_lib_dlsearch_path_spec='/usr/lib'
16136 uts4*)
16137 version_type=linux
16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139 soname_spec='${libname}${release}${shared_ext}$major'
16140 shlibpath_var=LD_LIBRARY_PATH
16144 dynamic_linker=no
16146 esac
16147 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16148 echo "${ECHO_T}$dynamic_linker" >&6; }
16149 test "$dynamic_linker" = no && can_build_shared=no
16151 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16152 if test "$GCC" = yes; then
16153 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16156 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16157 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16158 hardcode_action_F77=
16159 if test -n "$hardcode_libdir_flag_spec_F77" || \
16160 test -n "$runpath_var_F77" || \
16161 test "X$hardcode_automatic_F77" = "Xyes" ; then
16163 # We can hardcode non-existant directories.
16164 if test "$hardcode_direct_F77" != no &&
16165 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16166 # have to relink, otherwise we might link with an installed library
16167 # when we should be linking with a yet-to-be-installed one
16168 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16169 test "$hardcode_minus_L_F77" != no; then
16170 # Linking always hardcodes the temporary library directory.
16171 hardcode_action_F77=relink
16172 else
16173 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16174 hardcode_action_F77=immediate
16176 else
16177 # We cannot hardcode anything, or else we can only hardcode existing
16178 # directories.
16179 hardcode_action_F77=unsupported
16181 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16182 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16184 if test "$hardcode_action_F77" = relink; then
16185 # Fast installation is not supported
16186 enable_fast_install=no
16187 elif test "$shlibpath_overrides_runpath" = yes ||
16188 test "$enable_shared" = no; then
16189 # Fast installation is not necessary
16190 enable_fast_install=needless
16194 # The else clause should only fire when bootstrapping the
16195 # libtool distribution, otherwise you forgot to ship ltmain.sh
16196 # with your package, and you will get complaints that there are
16197 # no rules to generate ltmain.sh.
16198 if test -f "$ltmain"; then
16199 # See if we are running on zsh, and set the options which allow our commands through
16200 # without removal of \ escapes.
16201 if test -n "${ZSH_VERSION+set}" ; then
16202 setopt NO_GLOB_SUBST
16204 # Now quote all the things that may contain metacharacters while being
16205 # careful not to overquote the AC_SUBSTed values. We take copies of the
16206 # variables and quote the copies for generation of the libtool script.
16207 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16208 SED SHELL STRIP \
16209 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16210 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16211 deplibs_check_method reload_flag reload_cmds need_locks \
16212 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16213 lt_cv_sys_global_symbol_to_c_name_address \
16214 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16215 old_postinstall_cmds old_postuninstall_cmds \
16216 compiler_F77 \
16217 CC_F77 \
16218 LD_F77 \
16219 lt_prog_compiler_wl_F77 \
16220 lt_prog_compiler_pic_F77 \
16221 lt_prog_compiler_static_F77 \
16222 lt_prog_compiler_no_builtin_flag_F77 \
16223 export_dynamic_flag_spec_F77 \
16224 thread_safe_flag_spec_F77 \
16225 whole_archive_flag_spec_F77 \
16226 enable_shared_with_static_runtimes_F77 \
16227 old_archive_cmds_F77 \
16228 old_archive_from_new_cmds_F77 \
16229 predep_objects_F77 \
16230 postdep_objects_F77 \
16231 predeps_F77 \
16232 postdeps_F77 \
16233 compiler_lib_search_path_F77 \
16234 archive_cmds_F77 \
16235 archive_expsym_cmds_F77 \
16236 postinstall_cmds_F77 \
16237 postuninstall_cmds_F77 \
16238 old_archive_from_expsyms_cmds_F77 \
16239 allow_undefined_flag_F77 \
16240 no_undefined_flag_F77 \
16241 export_symbols_cmds_F77 \
16242 hardcode_libdir_flag_spec_F77 \
16243 hardcode_libdir_flag_spec_ld_F77 \
16244 hardcode_libdir_separator_F77 \
16245 hardcode_automatic_F77 \
16246 module_cmds_F77 \
16247 module_expsym_cmds_F77 \
16248 lt_cv_prog_compiler_c_o_F77 \
16249 fix_srcfile_path_F77 \
16250 exclude_expsyms_F77 \
16251 include_expsyms_F77; do
16253 case $var in
16254 old_archive_cmds_F77 | \
16255 old_archive_from_new_cmds_F77 | \
16256 archive_cmds_F77 | \
16257 archive_expsym_cmds_F77 | \
16258 module_cmds_F77 | \
16259 module_expsym_cmds_F77 | \
16260 old_archive_from_expsyms_cmds_F77 | \
16261 export_symbols_cmds_F77 | \
16262 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16263 postinstall_cmds | postuninstall_cmds | \
16264 old_postinstall_cmds | old_postuninstall_cmds | \
16265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16266 # Double-quote double-evaled strings.
16267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16272 esac
16273 done
16275 case $lt_echo in
16276 *'\$0 --fallback-echo"')
16277 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16279 esac
16281 cfgfile="$ofile"
16283 cat <<__EOF__ >> "$cfgfile"
16284 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16288 # Shell to use when invoking shell scripts.
16289 SHELL=$lt_SHELL
16291 # Whether or not to build shared libraries.
16292 build_libtool_libs=$enable_shared
16294 # Whether or not to build static libraries.
16295 build_old_libs=$enable_static
16297 # Whether or not to add -lc for building shared libraries.
16298 build_libtool_need_lc=$archive_cmds_need_lc_F77
16300 # Whether or not to disallow shared libs when runtime libs are static
16301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16303 # Whether or not to optimize for fast installation.
16304 fast_install=$enable_fast_install
16306 # The host system.
16307 host_alias=$host_alias
16308 host=$host
16309 host_os=$host_os
16311 # The build system.
16312 build_alias=$build_alias
16313 build=$build
16314 build_os=$build_os
16316 # An echo program that does not interpret backslashes.
16317 echo=$lt_echo
16319 # The archiver.
16320 AR=$lt_AR
16321 AR_FLAGS=$lt_AR_FLAGS
16323 # A C compiler.
16324 LTCC=$lt_LTCC
16326 # LTCC compiler flags.
16327 LTCFLAGS=$lt_LTCFLAGS
16329 # A language-specific compiler.
16330 CC=$lt_compiler_F77
16332 # Is the compiler the GNU C compiler?
16333 with_gcc=$GCC_F77
16335 # An ERE matcher.
16336 EGREP=$lt_EGREP
16338 # The linker used to build libraries.
16339 LD=$lt_LD_F77
16341 # Whether we need hard or soft links.
16342 LN_S=$lt_LN_S
16344 # A BSD-compatible nm program.
16345 NM=$lt_NM
16347 # A symbol stripping program
16348 STRIP=$lt_STRIP
16350 # Used to examine libraries when file_magic_cmd begins "file"
16351 MAGIC_CMD=$MAGIC_CMD
16353 # Used on cygwin: DLL creation program.
16354 DLLTOOL="$DLLTOOL"
16356 # Used on cygwin: object dumper.
16357 OBJDUMP="$OBJDUMP"
16359 # Used on cygwin: assembler.
16360 AS="$AS"
16362 # The name of the directory that contains temporary libtool files.
16363 objdir=$objdir
16365 # How to create reloadable object files.
16366 reload_flag=$lt_reload_flag
16367 reload_cmds=$lt_reload_cmds
16369 # How to pass a linker flag through the compiler.
16370 wl=$lt_lt_prog_compiler_wl_F77
16372 # Object file suffix (normally "o").
16373 objext="$ac_objext"
16375 # Old archive suffix (normally "a").
16376 libext="$libext"
16378 # Shared library suffix (normally ".so").
16379 shrext_cmds='$shrext_cmds'
16381 # Executable file suffix (normally "").
16382 exeext="$exeext"
16384 # Additional compiler flags for building library objects.
16385 pic_flag=$lt_lt_prog_compiler_pic_F77
16386 pic_mode=$pic_mode
16388 # What is the maximum length of a command?
16389 max_cmd_len=$lt_cv_sys_max_cmd_len
16391 # Does compiler simultaneously support -c and -o options?
16392 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16394 # Must we lock files when doing compilation?
16395 need_locks=$lt_need_locks
16397 # Do we need the lib prefix for modules?
16398 need_lib_prefix=$need_lib_prefix
16400 # Do we need a version for libraries?
16401 need_version=$need_version
16403 # Whether dlopen is supported.
16404 dlopen_support=$enable_dlopen
16406 # Whether dlopen of programs is supported.
16407 dlopen_self=$enable_dlopen_self
16409 # Whether dlopen of statically linked programs is supported.
16410 dlopen_self_static=$enable_dlopen_self_static
16412 # Compiler flag to prevent dynamic linking.
16413 link_static_flag=$lt_lt_prog_compiler_static_F77
16415 # Compiler flag to turn off builtin functions.
16416 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16418 # Compiler flag to allow reflexive dlopens.
16419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16421 # Compiler flag to generate shared objects directly from archives.
16422 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16424 # Compiler flag to generate thread-safe objects.
16425 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16427 # Library versioning type.
16428 version_type=$version_type
16430 # Format of library name prefix.
16431 libname_spec=$lt_libname_spec
16433 # List of archive names. First name is the real one, the rest are links.
16434 # The last name is the one that the linker finds with -lNAME.
16435 library_names_spec=$lt_library_names_spec
16437 # The coded name of the library, if different from the real name.
16438 soname_spec=$lt_soname_spec
16440 # Commands used to build and install an old-style archive.
16441 RANLIB=$lt_RANLIB
16442 old_archive_cmds=$lt_old_archive_cmds_F77
16443 old_postinstall_cmds=$lt_old_postinstall_cmds
16444 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16446 # Create an old-style archive from a shared archive.
16447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16449 # Create a temporary old-style archive to link instead of a shared archive.
16450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16452 # Commands used to build and install a shared archive.
16453 archive_cmds=$lt_archive_cmds_F77
16454 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16455 postinstall_cmds=$lt_postinstall_cmds
16456 postuninstall_cmds=$lt_postuninstall_cmds
16458 # Commands used to build a loadable module (assumed same as above if empty)
16459 module_cmds=$lt_module_cmds_F77
16460 module_expsym_cmds=$lt_module_expsym_cmds_F77
16462 # Commands to strip libraries.
16463 old_striplib=$lt_old_striplib
16464 striplib=$lt_striplib
16466 # Dependencies to place before the objects being linked to create a
16467 # shared library.
16468 predep_objects=$lt_predep_objects_F77
16470 # Dependencies to place after the objects being linked to create a
16471 # shared library.
16472 postdep_objects=$lt_postdep_objects_F77
16474 # Dependencies to place before the objects being linked to create a
16475 # shared library.
16476 predeps=$lt_predeps_F77
16478 # Dependencies to place after the objects being linked to create a
16479 # shared library.
16480 postdeps=$lt_postdeps_F77
16482 # The library search path used internally by the compiler when linking
16483 # a shared library.
16484 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16486 # Method to check whether dependent libraries are shared objects.
16487 deplibs_check_method=$lt_deplibs_check_method
16489 # Command to use when deplibs_check_method == file_magic.
16490 file_magic_cmd=$lt_file_magic_cmd
16492 # Flag that allows shared libraries with undefined symbols to be built.
16493 allow_undefined_flag=$lt_allow_undefined_flag_F77
16495 # Flag that forces no undefined symbols.
16496 no_undefined_flag=$lt_no_undefined_flag_F77
16498 # Commands used to finish a libtool library installation in a directory.
16499 finish_cmds=$lt_finish_cmds
16501 # Same as above, but a single script fragment to be evaled but not shown.
16502 finish_eval=$lt_finish_eval
16504 # Take the output of nm and produce a listing of raw symbols and C names.
16505 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16507 # Transform the output of nm in a proper C declaration
16508 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16510 # Transform the output of nm in a C name address pair
16511 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16513 # This is the shared library runtime path variable.
16514 runpath_var=$runpath_var
16516 # This is the shared library path variable.
16517 shlibpath_var=$shlibpath_var
16519 # Is shlibpath searched before the hard-coded library search path?
16520 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16522 # How to hardcode a shared library path into an executable.
16523 hardcode_action=$hardcode_action_F77
16525 # Whether we should hardcode library paths into libraries.
16526 hardcode_into_libs=$hardcode_into_libs
16528 # Flag to hardcode \$libdir into a binary during linking.
16529 # This must work even if \$libdir does not exist.
16530 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16532 # If ld is used when linking, flag to hardcode \$libdir into
16533 # a binary during linking. This must work even if \$libdir does
16534 # not exist.
16535 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16537 # Whether we need a single -rpath flag with a separated argument.
16538 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16540 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16541 # resulting binary.
16542 hardcode_direct=$hardcode_direct_F77
16544 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16545 # resulting binary.
16546 hardcode_minus_L=$hardcode_minus_L_F77
16548 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16549 # the resulting binary.
16550 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16552 # Set to yes if building a shared library automatically hardcodes DIR into the library
16553 # and all subsequent libraries and executables linked against it.
16554 hardcode_automatic=$hardcode_automatic_F77
16556 # Variables whose values should be saved in libtool wrapper scripts and
16557 # restored at relink time.
16558 variables_saved_for_relink="$variables_saved_for_relink"
16560 # Whether libtool must link a program against all its dependency libraries.
16561 link_all_deplibs=$link_all_deplibs_F77
16563 # Compile-time system search path for libraries
16564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16566 # Run-time system search path for libraries
16567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16569 # Fix the shell variable \$srcfile for the compiler.
16570 fix_srcfile_path=$lt_fix_srcfile_path
16572 # Set to yes if exported symbols are required.
16573 always_export_symbols=$always_export_symbols_F77
16575 # The commands to list exported symbols.
16576 export_symbols_cmds=$lt_export_symbols_cmds_F77
16578 # The commands to extract the exported symbol list from a shared archive.
16579 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16581 # Symbols that should not be listed in the preloaded symbols.
16582 exclude_expsyms=$lt_exclude_expsyms_F77
16584 # Symbols that must always be exported.
16585 include_expsyms=$lt_include_expsyms_F77
16587 # ### END LIBTOOL TAG CONFIG: $tagname
16589 __EOF__
16592 else
16593 # If there is no Makefile yet, we rely on a make rule to execute
16594 # `config.status --recheck' to rerun these tests and create the
16595 # libtool script then.
16596 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16597 if test -f "$ltmain_in"; then
16598 test -f Makefile && make "$ltmain"
16603 ac_ext=c
16604 ac_cpp='$CPP $CPPFLAGS'
16605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16609 CC="$lt_save_CC"
16611 else
16612 tagname=""
16616 GCJ)
16617 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16620 # Source file extension for Java test sources.
16621 ac_ext=java
16623 # Object file extension for compiled Java test sources.
16624 objext=o
16625 objext_GCJ=$objext
16627 # Code to be used in simple compile tests
16628 lt_simple_compile_test_code="class foo {}"
16630 # Code to be used in simple link tests
16631 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16633 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16635 # If no C compiler was specified, use CC.
16636 LTCC=${LTCC-"$CC"}
16638 # If no C compiler flags were specified, use CFLAGS.
16639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16641 # Allow CC to be a program name with arguments.
16642 compiler=$CC
16645 # save warnings/boilerplate of simple test code
16646 ac_outfile=conftest.$ac_objext
16647 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16648 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16649 _lt_compiler_boilerplate=`cat conftest.err`
16650 $rm conftest*
16652 ac_outfile=conftest.$ac_objext
16653 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16654 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16655 _lt_linker_boilerplate=`cat conftest.err`
16656 $rm conftest*
16659 # Allow CC to be a program name with arguments.
16660 lt_save_CC="$CC"
16661 CC=${GCJ-"gcj"}
16662 compiler=$CC
16663 compiler_GCJ=$CC
16664 for cc_temp in $compiler""; do
16665 case $cc_temp in
16666 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16667 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16668 \-*) ;;
16669 *) break;;
16670 esac
16671 done
16672 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16675 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16676 archive_cmds_need_lc_GCJ=no
16678 old_archive_cmds_GCJ=$old_archive_cmds
16681 lt_prog_compiler_no_builtin_flag_GCJ=
16683 if test "$GCC" = yes; then
16684 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16687 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16688 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16689 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692 lt_cv_prog_compiler_rtti_exceptions=no
16693 ac_outfile=conftest.$ac_objext
16694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16695 lt_compiler_flag="-fno-rtti -fno-exceptions"
16696 # Insert the option either (1) after the last *FLAGS variable, or
16697 # (2) before a word containing "conftest.", or (3) at the end.
16698 # Note that $ac_compile itself does not contain backslashes and begins
16699 # with a dollar sign (not a hyphen), so the echo should work correctly.
16700 # The option is referenced via a variable to avoid confusing sed.
16701 lt_compile=`echo "$ac_compile" | $SED \
16702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16704 -e 's:$: $lt_compiler_flag:'`
16705 (eval echo "\"\$as_me:16704: $lt_compile\"" >&5)
16706 (eval "$lt_compile" 2>conftest.err)
16707 ac_status=$?
16708 cat conftest.err >&5
16709 echo "$as_me:16708: \$? = $ac_status" >&5
16710 if (exit $ac_status) && test -s "$ac_outfile"; then
16711 # The compiler can only warn and ignore the option if not recognized
16712 # So say no if there are warnings other than the usual output.
16713 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16716 lt_cv_prog_compiler_rtti_exceptions=yes
16719 $rm conftest*
16722 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16723 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16725 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16726 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16727 else
16733 lt_prog_compiler_wl_GCJ=
16734 lt_prog_compiler_pic_GCJ=
16735 lt_prog_compiler_static_GCJ=
16737 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16738 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16740 if test "$GCC" = yes; then
16741 lt_prog_compiler_wl_GCJ='-Wl,'
16742 lt_prog_compiler_static_GCJ='-static'
16744 case $host_os in
16745 aix*)
16746 # All AIX code is PIC.
16747 if test "$host_cpu" = ia64; then
16748 # AIX 5 now supports IA64 processor
16749 lt_prog_compiler_static_GCJ='-Bstatic'
16753 amigaos*)
16754 # FIXME: we need at least 68020 code to build shared libraries, but
16755 # adding the `-m68020' flag to GCC prevents building anything better,
16756 # like `-m68040'.
16757 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16760 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16761 # PIC is the default for these OSes.
16764 mingw* | cygwin* | pw32* | os2*)
16765 # This hack is so that the source file can tell whether it is being
16766 # built for inclusion in a dll (and should export symbols for example).
16767 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16768 # (--disable-auto-import) libraries
16769 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16772 darwin* | rhapsody*)
16773 # PIC is the default on this platform
16774 # Common symbols not allowed in MH_DYLIB files
16775 lt_prog_compiler_pic_GCJ='-fno-common'
16778 interix[3-9]*)
16779 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16780 # Instead, we relocate shared libraries at runtime.
16783 msdosdjgpp*)
16784 # Just because we use GCC doesn't mean we suddenly get shared libraries
16785 # on systems that don't support them.
16786 lt_prog_compiler_can_build_shared_GCJ=no
16787 enable_shared=no
16790 sysv4*MP*)
16791 if test -d /usr/nec; then
16792 lt_prog_compiler_pic_GCJ=-Kconform_pic
16796 hpux*)
16797 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16798 # not for PA HP-UX.
16799 case $host_cpu in
16800 hppa*64*|ia64*)
16801 # +Z the default
16804 lt_prog_compiler_pic_GCJ='-fPIC'
16806 esac
16810 lt_prog_compiler_pic_GCJ='-fPIC'
16812 esac
16813 else
16814 # PORTME Check for flag to pass linker flags through the system compiler.
16815 case $host_os in
16816 aix*)
16817 lt_prog_compiler_wl_GCJ='-Wl,'
16818 if test "$host_cpu" = ia64; then
16819 # AIX 5 now supports IA64 processor
16820 lt_prog_compiler_static_GCJ='-Bstatic'
16821 else
16822 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16825 darwin*)
16826 # PIC is the default on this platform
16827 # Common symbols not allowed in MH_DYLIB files
16828 case $cc_basename in
16829 xlc*)
16830 lt_prog_compiler_pic_GCJ='-qnocommon'
16831 lt_prog_compiler_wl_GCJ='-Wl,'
16833 esac
16836 mingw* | cygwin* | pw32* | os2*)
16837 # This hack is so that the source file can tell whether it is being
16838 # built for inclusion in a dll (and should export symbols for example).
16839 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16842 hpux9* | hpux10* | hpux11*)
16843 lt_prog_compiler_wl_GCJ='-Wl,'
16844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16845 # not for PA HP-UX.
16846 case $host_cpu in
16847 hppa*64*|ia64*)
16848 # +Z the default
16851 lt_prog_compiler_pic_GCJ='+Z'
16853 esac
16854 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16855 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16858 irix5* | irix6* | nonstopux*)
16859 lt_prog_compiler_wl_GCJ='-Wl,'
16860 # PIC (with -KPIC) is the default.
16861 lt_prog_compiler_static_GCJ='-non_shared'
16864 newsos6)
16865 lt_prog_compiler_pic_GCJ='-KPIC'
16866 lt_prog_compiler_static_GCJ='-Bstatic'
16869 linux* | k*bsd*-gnu)
16870 case $cc_basename in
16871 icc* | ecc*)
16872 lt_prog_compiler_wl_GCJ='-Wl,'
16873 lt_prog_compiler_pic_GCJ='-KPIC'
16874 lt_prog_compiler_static_GCJ='-static'
16876 pgcc* | pgf77* | pgf90* | pgf95*)
16877 # Portland Group compilers (*not* the Pentium gcc compiler,
16878 # which looks to be a dead project)
16879 lt_prog_compiler_wl_GCJ='-Wl,'
16880 lt_prog_compiler_pic_GCJ='-fpic'
16881 lt_prog_compiler_static_GCJ='-Bstatic'
16883 ccc*)
16884 lt_prog_compiler_wl_GCJ='-Wl,'
16885 # All Alpha code is PIC.
16886 lt_prog_compiler_static_GCJ='-non_shared'
16889 case `$CC -V 2>&1 | sed 5q` in
16890 *Sun\ C*)
16891 # Sun C 5.9
16892 lt_prog_compiler_pic_GCJ='-KPIC'
16893 lt_prog_compiler_static_GCJ='-Bstatic'
16894 lt_prog_compiler_wl_GCJ='-Wl,'
16896 *Sun\ F*)
16897 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16898 lt_prog_compiler_pic_GCJ='-KPIC'
16899 lt_prog_compiler_static_GCJ='-Bstatic'
16900 lt_prog_compiler_wl_GCJ=''
16902 esac
16904 esac
16907 osf3* | osf4* | osf5*)
16908 lt_prog_compiler_wl_GCJ='-Wl,'
16909 # All OSF/1 code is PIC.
16910 lt_prog_compiler_static_GCJ='-non_shared'
16913 rdos*)
16914 lt_prog_compiler_static_GCJ='-non_shared'
16917 solaris*)
16918 lt_prog_compiler_pic_GCJ='-KPIC'
16919 lt_prog_compiler_static_GCJ='-Bstatic'
16920 case $cc_basename in
16921 f77* | f90* | f95*)
16922 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16924 lt_prog_compiler_wl_GCJ='-Wl,';;
16925 esac
16928 sunos4*)
16929 lt_prog_compiler_wl_GCJ='-Qoption ld '
16930 lt_prog_compiler_pic_GCJ='-PIC'
16931 lt_prog_compiler_static_GCJ='-Bstatic'
16934 sysv4 | sysv4.2uw2* | sysv4.3*)
16935 lt_prog_compiler_wl_GCJ='-Wl,'
16936 lt_prog_compiler_pic_GCJ='-KPIC'
16937 lt_prog_compiler_static_GCJ='-Bstatic'
16940 sysv4*MP*)
16941 if test -d /usr/nec ;then
16942 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16943 lt_prog_compiler_static_GCJ='-Bstatic'
16947 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16948 lt_prog_compiler_wl_GCJ='-Wl,'
16949 lt_prog_compiler_pic_GCJ='-KPIC'
16950 lt_prog_compiler_static_GCJ='-Bstatic'
16953 unicos*)
16954 lt_prog_compiler_wl_GCJ='-Wl,'
16955 lt_prog_compiler_can_build_shared_GCJ=no
16958 uts4*)
16959 lt_prog_compiler_pic_GCJ='-pic'
16960 lt_prog_compiler_static_GCJ='-Bstatic'
16964 lt_prog_compiler_can_build_shared_GCJ=no
16966 esac
16969 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16970 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16973 # Check to make sure the PIC flag actually works.
16975 if test -n "$lt_prog_compiler_pic_GCJ"; then
16977 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16978 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16979 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982 lt_prog_compiler_pic_works_GCJ=no
16983 ac_outfile=conftest.$ac_objext
16984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16985 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16986 # Insert the option either (1) after the last *FLAGS variable, or
16987 # (2) before a word containing "conftest.", or (3) at the end.
16988 # Note that $ac_compile itself does not contain backslashes and begins
16989 # with a dollar sign (not a hyphen), so the echo should work correctly.
16990 # The option is referenced via a variable to avoid confusing sed.
16991 lt_compile=`echo "$ac_compile" | $SED \
16992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16994 -e 's:$: $lt_compiler_flag:'`
16995 (eval echo "\"\$as_me:16994: $lt_compile\"" >&5)
16996 (eval "$lt_compile" 2>conftest.err)
16997 ac_status=$?
16998 cat conftest.err >&5
16999 echo "$as_me:16998: \$? = $ac_status" >&5
17000 if (exit $ac_status) && test -s "$ac_outfile"; then
17001 # The compiler can only warn and ignore the option if not recognized
17002 # So say no if there are warnings other than the usual output.
17003 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17006 lt_prog_compiler_pic_works_GCJ=yes
17009 $rm conftest*
17012 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17013 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17015 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17016 case $lt_prog_compiler_pic_GCJ in
17017 "" | " "*) ;;
17018 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17019 esac
17020 else
17021 lt_prog_compiler_pic_GCJ=
17022 lt_prog_compiler_can_build_shared_GCJ=no
17026 case $host_os in
17027 # For platforms which do not support PIC, -DPIC is meaningless:
17028 *djgpp*)
17029 lt_prog_compiler_pic_GCJ=
17032 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17034 esac
17037 # Check to make sure the static flag actually works.
17039 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17040 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17041 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17042 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17044 else
17045 lt_prog_compiler_static_works_GCJ=no
17046 save_LDFLAGS="$LDFLAGS"
17047 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17048 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17050 # The linker can only warn and ignore the option if not recognized
17051 # So say no if there are warnings
17052 if test -s conftest.err; then
17053 # Append any errors to the config.log.
17054 cat conftest.err 1>&5
17055 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17057 if diff conftest.exp conftest.er2 >/dev/null; then
17058 lt_prog_compiler_static_works_GCJ=yes
17060 else
17061 lt_prog_compiler_static_works_GCJ=yes
17064 $rm conftest*
17065 LDFLAGS="$save_LDFLAGS"
17068 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17069 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17071 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17073 else
17074 lt_prog_compiler_static_GCJ=
17078 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17079 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17080 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17082 else
17083 lt_cv_prog_compiler_c_o_GCJ=no
17084 $rm -r conftest 2>/dev/null
17085 mkdir conftest
17086 cd conftest
17087 mkdir out
17088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17090 lt_compiler_flag="-o out/conftest2.$ac_objext"
17091 # Insert the option either (1) after the last *FLAGS variable, or
17092 # (2) before a word containing "conftest.", or (3) at the end.
17093 # Note that $ac_compile itself does not contain backslashes and begins
17094 # with a dollar sign (not a hyphen), so the echo should work correctly.
17095 lt_compile=`echo "$ac_compile" | $SED \
17096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17098 -e 's:$: $lt_compiler_flag:'`
17099 (eval echo "\"\$as_me:17098: $lt_compile\"" >&5)
17100 (eval "$lt_compile" 2>out/conftest.err)
17101 ac_status=$?
17102 cat out/conftest.err >&5
17103 echo "$as_me:17102: \$? = $ac_status" >&5
17104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17105 then
17106 # The compiler can only warn and ignore the option if not recognized
17107 # So say no if there are warnings
17108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17111 lt_cv_prog_compiler_c_o_GCJ=yes
17114 chmod u+w . 2>&5
17115 $rm conftest*
17116 # SGI C++ compiler will create directory out/ii_files/ for
17117 # template instantiation
17118 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17119 $rm out/* && rmdir out
17120 cd ..
17121 rmdir conftest
17122 $rm conftest*
17125 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17126 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17129 hard_links="nottested"
17130 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17131 # do not overwrite the value of need_locks provided by the user
17132 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17133 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17134 hard_links=yes
17135 $rm conftest*
17136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17137 touch conftest.a
17138 ln conftest.a conftest.b 2>&5 || hard_links=no
17139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17140 { echo "$as_me:$LINENO: result: $hard_links" >&5
17141 echo "${ECHO_T}$hard_links" >&6; }
17142 if test "$hard_links" = no; then
17143 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17144 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17145 need_locks=warn
17147 else
17148 need_locks=no
17151 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17152 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17154 runpath_var=
17155 allow_undefined_flag_GCJ=
17156 enable_shared_with_static_runtimes_GCJ=no
17157 archive_cmds_GCJ=
17158 archive_expsym_cmds_GCJ=
17159 old_archive_From_new_cmds_GCJ=
17160 old_archive_from_expsyms_cmds_GCJ=
17161 export_dynamic_flag_spec_GCJ=
17162 whole_archive_flag_spec_GCJ=
17163 thread_safe_flag_spec_GCJ=
17164 hardcode_libdir_flag_spec_GCJ=
17165 hardcode_libdir_flag_spec_ld_GCJ=
17166 hardcode_libdir_separator_GCJ=
17167 hardcode_direct_GCJ=no
17168 hardcode_minus_L_GCJ=no
17169 hardcode_shlibpath_var_GCJ=unsupported
17170 link_all_deplibs_GCJ=unknown
17171 hardcode_automatic_GCJ=no
17172 module_cmds_GCJ=
17173 module_expsym_cmds_GCJ=
17174 always_export_symbols_GCJ=no
17175 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17176 # include_expsyms should be a list of space-separated symbols to be *always*
17177 # included in the symbol list
17178 include_expsyms_GCJ=
17179 # exclude_expsyms can be an extended regexp of symbols to exclude
17180 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17181 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17182 # as well as any symbol that contains `d'.
17183 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17184 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17185 # platforms (ab)use it in PIC code, but their linkers get confused if
17186 # the symbol is explicitly referenced. Since portable code cannot
17187 # rely on this symbol name, it's probably fine to never include it in
17188 # preloaded symbol tables.
17189 extract_expsyms_cmds=
17190 # Just being paranoid about ensuring that cc_basename is set.
17191 for cc_temp in $compiler""; do
17192 case $cc_temp in
17193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17195 \-*) ;;
17196 *) break;;
17197 esac
17198 done
17199 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17201 case $host_os in
17202 cygwin* | mingw* | pw32*)
17203 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17204 # When not using gcc, we currently assume that we are using
17205 # Microsoft Visual C++.
17206 if test "$GCC" != yes; then
17207 with_gnu_ld=no
17210 interix*)
17211 # we just hope/assume this is gcc and not c89 (= MSVC++)
17212 with_gnu_ld=yes
17214 openbsd*)
17215 with_gnu_ld=no
17217 esac
17219 ld_shlibs_GCJ=yes
17220 if test "$with_gnu_ld" = yes; then
17221 # If archive_cmds runs LD, not CC, wlarc should be empty
17222 wlarc='${wl}'
17224 # Set some defaults for GNU ld with shared library support. These
17225 # are reset later if shared libraries are not supported. Putting them
17226 # here allows them to be overridden if necessary.
17227 runpath_var=LD_RUN_PATH
17228 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17229 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17230 # ancient GNU ld didn't support --whole-archive et. al.
17231 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17232 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17233 else
17234 whole_archive_flag_spec_GCJ=
17236 supports_anon_versioning=no
17237 case `$LD -v 2>/dev/null` in
17238 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17239 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17240 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17241 *\ 2.11.*) ;; # other 2.11 versions
17242 *) supports_anon_versioning=yes ;;
17243 esac
17245 # See if GNU ld supports shared libraries.
17246 case $host_os in
17247 aix3* | aix4* | aix5*)
17248 # On AIX/PPC, the GNU linker is very broken
17249 if test "$host_cpu" != ia64; then
17250 ld_shlibs_GCJ=no
17251 cat <<EOF 1>&2
17253 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17254 *** to be unable to reliably create shared libraries on AIX.
17255 *** Therefore, libtool is disabling shared libraries support. If you
17256 *** really care for shared libraries, you may want to modify your PATH
17257 *** so that a non-GNU linker is found, and then restart.
17263 amigaos*)
17264 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)'
17265 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17266 hardcode_minus_L_GCJ=yes
17268 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17269 # that the semantics of dynamic libraries on AmigaOS, at least up
17270 # to version 4, is to share data among multiple programs linked
17271 # with the same dynamic library. Since this doesn't match the
17272 # behavior of shared libraries on other platforms, we can't use
17273 # them.
17274 ld_shlibs_GCJ=no
17277 beos*)
17278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17279 allow_undefined_flag_GCJ=unsupported
17280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17281 # support --undefined. This deserves some investigation. FIXME
17282 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17283 else
17284 ld_shlibs_GCJ=no
17288 cygwin* | mingw* | pw32*)
17289 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17290 # as there is no search path for DLLs.
17291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17292 allow_undefined_flag_GCJ=unsupported
17293 always_export_symbols_GCJ=no
17294 enable_shared_with_static_runtimes_GCJ=yes
17295 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17297 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17298 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17299 # If the export-symbols file already is a .def file (1st line
17300 # is EXPORTS), use it as is; otherwise, prepend...
17301 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17302 cp $export_symbols $output_objdir/$soname.def;
17303 else
17304 echo EXPORTS > $output_objdir/$soname.def;
17305 cat $export_symbols >> $output_objdir/$soname.def;
17307 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17308 else
17309 ld_shlibs_GCJ=no
17313 interix[3-9]*)
17314 hardcode_direct_GCJ=no
17315 hardcode_shlibpath_var_GCJ=no
17316 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17317 export_dynamic_flag_spec_GCJ='${wl}-E'
17318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17319 # Instead, shared libraries are loaded at an image base (0x10000000 by
17320 # default) and relocated if they conflict, which is a slow very memory
17321 # consuming and fragmenting process. To avoid this, we pick a random,
17322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17324 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'
17325 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'
17328 gnu* | linux* | k*bsd*-gnu)
17329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17330 tmp_addflag=
17331 case $cc_basename,$host_cpu in
17332 pgcc*) # Portland Group C compiler
17333 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'
17334 tmp_addflag=' $pic_flag'
17336 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17337 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'
17338 tmp_addflag=' $pic_flag -Mnomain' ;;
17339 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17340 tmp_addflag=' -i_dynamic' ;;
17341 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17342 tmp_addflag=' -i_dynamic -nofor_main' ;;
17343 ifc* | ifort*) # Intel Fortran compiler
17344 tmp_addflag=' -nofor_main' ;;
17345 esac
17346 case `$CC -V 2>&1 | sed 5q` in
17347 *Sun\ C*) # Sun C 5.9
17348 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'
17349 tmp_sharedflag='-G' ;;
17350 *Sun\ F*) # Sun Fortran 8.3
17351 tmp_sharedflag='-G' ;;
17353 tmp_sharedflag='-shared' ;;
17354 esac
17355 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17357 if test $supports_anon_versioning = yes; then
17358 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17360 $echo "local: *; };" >> $output_objdir/$libname.ver~
17361 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17363 link_all_deplibs_GCJ=no
17364 else
17365 ld_shlibs_GCJ=no
17369 netbsd* | netbsdelf*-gnu)
17370 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17371 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17372 wlarc=
17373 else
17374 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17375 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17379 solaris*)
17380 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17381 ld_shlibs_GCJ=no
17382 cat <<EOF 1>&2
17384 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17385 *** create shared libraries on Solaris systems. Therefore, libtool
17386 *** is disabling shared libraries support. We urge you to upgrade GNU
17387 *** binutils to release 2.9.1 or newer. Another option is to modify
17388 *** your PATH or compiler configuration so that the native linker is
17389 *** used, and then restart.
17392 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17393 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17394 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17395 else
17396 ld_shlibs_GCJ=no
17400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17401 case `$LD -v 2>&1` in
17402 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17403 ld_shlibs_GCJ=no
17404 cat <<_LT_EOF 1>&2
17406 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17407 *** reliably create shared libraries on SCO systems. Therefore, libtool
17408 *** is disabling shared libraries support. We urge you to upgrade GNU
17409 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17410 *** your PATH or compiler configuration so that the native linker is
17411 *** used, and then restart.
17413 _LT_EOF
17416 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17417 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17418 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17419 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17420 else
17421 ld_shlibs_GCJ=no
17424 esac
17427 sunos4*)
17428 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17429 wlarc=
17430 hardcode_direct_GCJ=yes
17431 hardcode_shlibpath_var_GCJ=no
17435 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17436 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17437 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17438 else
17439 ld_shlibs_GCJ=no
17442 esac
17444 if test "$ld_shlibs_GCJ" = no; then
17445 runpath_var=
17446 hardcode_libdir_flag_spec_GCJ=
17447 export_dynamic_flag_spec_GCJ=
17448 whole_archive_flag_spec_GCJ=
17450 else
17451 # PORTME fill in a description of your system's linker (not GNU ld)
17452 case $host_os in
17453 aix3*)
17454 allow_undefined_flag_GCJ=unsupported
17455 always_export_symbols_GCJ=yes
17456 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'
17457 # Note: this linker hardcodes the directories in LIBPATH if there
17458 # are no directories specified by -L.
17459 hardcode_minus_L_GCJ=yes
17460 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17461 # Neither direct hardcoding nor static linking is supported with a
17462 # broken collect2.
17463 hardcode_direct_GCJ=unsupported
17467 aix4* | aix5*)
17468 if test "$host_cpu" = ia64; then
17469 # On IA64, the linker does run time linking by default, so we don't
17470 # have to do anything special.
17471 aix_use_runtimelinking=no
17472 exp_sym_flag='-Bexport'
17473 no_entry_flag=""
17474 else
17475 # If we're using GNU nm, then we don't want the "-C" option.
17476 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17477 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17478 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'
17479 else
17480 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'
17482 aix_use_runtimelinking=no
17484 # Test if we are trying to use run time linking or normal
17485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17486 # need to do runtime linking.
17487 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17488 for ld_flag in $LDFLAGS; do
17489 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17490 aix_use_runtimelinking=yes
17491 break
17493 done
17495 esac
17497 exp_sym_flag='-bexport'
17498 no_entry_flag='-bnoentry'
17501 # When large executables or shared objects are built, AIX ld can
17502 # have problems creating the table of contents. If linking a library
17503 # or program results in "error TOC overflow" add -mminimal-toc to
17504 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17505 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17507 archive_cmds_GCJ=''
17508 hardcode_direct_GCJ=yes
17509 hardcode_libdir_separator_GCJ=':'
17510 link_all_deplibs_GCJ=yes
17512 if test "$GCC" = yes; then
17513 case $host_os in aix4.[012]|aix4.[012].*)
17514 # We only want to do this on AIX 4.2 and lower, the check
17515 # below for broken collect2 doesn't work under 4.3+
17516 collect2name=`${CC} -print-prog-name=collect2`
17517 if test -f "$collect2name" && \
17518 strings "$collect2name" | grep resolve_lib_name >/dev/null
17519 then
17520 # We have reworked collect2
17522 else
17523 # We have old collect2
17524 hardcode_direct_GCJ=unsupported
17525 # It fails to find uninstalled libraries when the uninstalled
17526 # path is not listed in the libpath. Setting hardcode_minus_L
17527 # to unsupported forces relinking
17528 hardcode_minus_L_GCJ=yes
17529 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17530 hardcode_libdir_separator_GCJ=
17533 esac
17534 shared_flag='-shared'
17535 if test "$aix_use_runtimelinking" = yes; then
17536 shared_flag="$shared_flag "'${wl}-G'
17538 else
17539 # not using gcc
17540 if test "$host_cpu" = ia64; then
17541 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17542 # chokes on -Wl,-G. The following line is correct:
17543 shared_flag='-G'
17544 else
17545 if test "$aix_use_runtimelinking" = yes; then
17546 shared_flag='${wl}-G'
17547 else
17548 shared_flag='${wl}-bM:SRE'
17553 # It seems that -bexpall does not export symbols beginning with
17554 # underscore (_), so it is better to generate a list of symbols to export.
17555 always_export_symbols_GCJ=yes
17556 if test "$aix_use_runtimelinking" = yes; then
17557 # Warning - without using the other runtime loading flags (-brtl),
17558 # -berok will link without error, but may produce a broken library.
17559 allow_undefined_flag_GCJ='-berok'
17560 # Determine the default libpath from the value encoded in an empty executable.
17561 cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h. */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17569 main ()
17573 return 0;
17575 _ACEOF
17576 rm -f conftest.$ac_objext conftest$ac_exeext
17577 if { (ac_try="$ac_link"
17578 case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_link") 2>conftest.er1
17584 ac_status=$?
17585 grep -v '^ *+' conftest.er1 >conftest.err
17586 rm -f conftest.er1
17587 cat conftest.err >&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } && {
17590 test -z "$ac_c_werror_flag" ||
17591 test ! -s conftest.err
17592 } && test -s conftest$ac_exeext &&
17593 $as_test_x conftest$ac_exeext; then
17595 lt_aix_libpath_sed='
17596 /Import File Strings/,/^$/ {
17597 /^0/ {
17598 s/^0 *\(.*\)$/\1/
17602 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17603 # Check for a 64-bit object if we didn't find anything.
17604 if test -z "$aix_libpath"; then
17605 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17607 else
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17615 conftest$ac_exeext conftest.$ac_ext
17616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17618 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17619 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"
17620 else
17621 if test "$host_cpu" = ia64; then
17622 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17623 allow_undefined_flag_GCJ="-z nodefs"
17624 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"
17625 else
17626 # Determine the default libpath from the value encoded in an empty executable.
17627 cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h. */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17635 main ()
17639 return 0;
17641 _ACEOF
17642 rm -f conftest.$ac_objext conftest$ac_exeext
17643 if { (ac_try="$ac_link"
17644 case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17647 esac
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_link") 2>conftest.er1
17650 ac_status=$?
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } && {
17656 test -z "$ac_c_werror_flag" ||
17657 test ! -s conftest.err
17658 } && test -s conftest$ac_exeext &&
17659 $as_test_x conftest$ac_exeext; then
17661 lt_aix_libpath_sed='
17662 /Import File Strings/,/^$/ {
17663 /^0/ {
17664 s/^0 *\(.*\)$/\1/
17668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17669 # Check for a 64-bit object if we didn't find anything.
17670 if test -z "$aix_libpath"; then
17671 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17673 else
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17681 conftest$ac_exeext conftest.$ac_ext
17682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17684 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17685 # Warning - without using the other run time loading flags,
17686 # -berok will link without error, but may produce a broken library.
17687 no_undefined_flag_GCJ=' ${wl}-bernotok'
17688 allow_undefined_flag_GCJ=' ${wl}-berok'
17689 # Exported symbols can be pulled into shared objects from archives
17690 whole_archive_flag_spec_GCJ='$convenience'
17691 archive_cmds_need_lc_GCJ=yes
17692 # This is similar to how AIX traditionally builds its shared libraries.
17693 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'
17698 amigaos*)
17699 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)'
17700 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17701 hardcode_minus_L_GCJ=yes
17702 # see comment about different semantics on the GNU ld section
17703 ld_shlibs_GCJ=no
17706 bsdi[45]*)
17707 export_dynamic_flag_spec_GCJ=-rdynamic
17710 cygwin* | mingw* | pw32*)
17711 # When not using gcc, we currently assume that we are using
17712 # Microsoft Visual C++.
17713 # hardcode_libdir_flag_spec is actually meaningless, as there is
17714 # no search path for DLLs.
17715 hardcode_libdir_flag_spec_GCJ=' '
17716 allow_undefined_flag_GCJ=unsupported
17717 # Tell ltmain to make .lib files, not .a files.
17718 libext=lib
17719 # Tell ltmain to make .dll files, not .so files.
17720 shrext_cmds=".dll"
17721 # FIXME: Setting linknames here is a bad hack.
17722 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17723 # The linker will automatically build a .lib file if we build a DLL.
17724 old_archive_From_new_cmds_GCJ='true'
17725 # FIXME: Should let the user specify the lib program.
17726 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17727 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17728 enable_shared_with_static_runtimes_GCJ=yes
17731 darwin* | rhapsody*)
17732 case $host_os in
17733 rhapsody* | darwin1.[012])
17734 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17736 *) # Darwin 1.3 on
17737 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17738 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17739 else
17740 case ${MACOSX_DEPLOYMENT_TARGET} in
17741 10.[012])
17742 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17744 10.*)
17745 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17747 esac
17750 esac
17751 archive_cmds_need_lc_GCJ=no
17752 hardcode_direct_GCJ=no
17753 hardcode_automatic_GCJ=yes
17754 hardcode_shlibpath_var_GCJ=unsupported
17755 whole_archive_flag_spec_GCJ=''
17756 link_all_deplibs_GCJ=yes
17757 if test "$GCC" = yes ; then
17758 output_verbose_link_cmd='echo'
17759 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17760 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17761 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17762 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17763 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}'
17764 else
17765 case $cc_basename in
17766 xlc*)
17767 output_verbose_link_cmd='echo'
17768 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17769 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17770 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17771 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}'
17772 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}'
17775 ld_shlibs_GCJ=no
17777 esac
17781 dgux*)
17782 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17783 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17784 hardcode_shlibpath_var_GCJ=no
17787 freebsd1*)
17788 ld_shlibs_GCJ=no
17791 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17792 # support. Future versions do this automatically, but an explicit c++rt0.o
17793 # does not break anything, and helps significantly (at the cost of a little
17794 # extra space).
17795 freebsd2.2*)
17796 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17797 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17798 hardcode_direct_GCJ=yes
17799 hardcode_shlibpath_var_GCJ=no
17802 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17803 freebsd2*)
17804 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17805 hardcode_direct_GCJ=yes
17806 hardcode_minus_L_GCJ=yes
17807 hardcode_shlibpath_var_GCJ=no
17810 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17811 freebsd* | dragonfly*)
17812 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17813 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17814 hardcode_direct_GCJ=yes
17815 hardcode_shlibpath_var_GCJ=no
17818 hpux9*)
17819 if test "$GCC" = yes; then
17820 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'
17821 else
17822 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'
17824 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17825 hardcode_libdir_separator_GCJ=:
17826 hardcode_direct_GCJ=yes
17828 # hardcode_minus_L: Not really in the search PATH,
17829 # but as the default location of the library.
17830 hardcode_minus_L_GCJ=yes
17831 export_dynamic_flag_spec_GCJ='${wl}-E'
17834 hpux10*)
17835 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17836 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17837 else
17838 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17840 if test "$with_gnu_ld" = no; then
17841 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17842 hardcode_libdir_separator_GCJ=:
17844 hardcode_direct_GCJ=yes
17845 export_dynamic_flag_spec_GCJ='${wl}-E'
17847 # hardcode_minus_L: Not really in the search PATH,
17848 # but as the default location of the library.
17849 hardcode_minus_L_GCJ=yes
17853 hpux11*)
17854 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17855 case $host_cpu in
17856 hppa*64*)
17857 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17859 ia64*)
17860 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17863 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17865 esac
17866 else
17867 case $host_cpu in
17868 hppa*64*)
17869 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17871 ia64*)
17872 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17875 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17877 esac
17879 if test "$with_gnu_ld" = no; then
17880 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17881 hardcode_libdir_separator_GCJ=:
17883 case $host_cpu in
17884 hppa*64*|ia64*)
17885 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17886 hardcode_direct_GCJ=no
17887 hardcode_shlibpath_var_GCJ=no
17890 hardcode_direct_GCJ=yes
17891 export_dynamic_flag_spec_GCJ='${wl}-E'
17893 # hardcode_minus_L: Not really in the search PATH,
17894 # but as the default location of the library.
17895 hardcode_minus_L_GCJ=yes
17897 esac
17901 irix5* | irix6* | nonstopux*)
17902 if test "$GCC" = yes; then
17903 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'
17904 else
17905 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'
17906 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17908 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17909 hardcode_libdir_separator_GCJ=:
17910 link_all_deplibs_GCJ=yes
17913 netbsd* | netbsdelf*-gnu)
17914 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17915 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17916 else
17917 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17919 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17920 hardcode_direct_GCJ=yes
17921 hardcode_shlibpath_var_GCJ=no
17924 newsos6)
17925 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17926 hardcode_direct_GCJ=yes
17927 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17928 hardcode_libdir_separator_GCJ=:
17929 hardcode_shlibpath_var_GCJ=no
17932 openbsd*)
17933 if test -f /usr/libexec/ld.so; then
17934 hardcode_direct_GCJ=yes
17935 hardcode_shlibpath_var_GCJ=no
17936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17937 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17938 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17939 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17940 export_dynamic_flag_spec_GCJ='${wl}-E'
17941 else
17942 case $host_os in
17943 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17944 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17945 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17948 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17949 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17951 esac
17953 else
17954 ld_shlibs_GCJ=no
17958 os2*)
17959 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17960 hardcode_minus_L_GCJ=yes
17961 allow_undefined_flag_GCJ=unsupported
17962 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'
17963 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17966 osf3*)
17967 if test "$GCC" = yes; then
17968 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17969 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'
17970 else
17971 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17972 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'
17974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17975 hardcode_libdir_separator_GCJ=:
17978 osf4* | osf5*) # as osf3* with the addition of -msym flag
17979 if test "$GCC" = yes; then
17980 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17981 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'
17982 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17983 else
17984 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17985 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'
17986 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~
17987 $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'
17989 # Both c and cxx compiler support -rpath directly
17990 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17992 hardcode_libdir_separator_GCJ=:
17995 solaris*)
17996 no_undefined_flag_GCJ=' -z text'
17997 if test "$GCC" = yes; then
17998 wlarc='${wl}'
17999 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18000 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18001 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18002 else
18003 wlarc=''
18004 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18005 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18006 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18008 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18009 hardcode_shlibpath_var_GCJ=no
18010 case $host_os in
18011 solaris2.[0-5] | solaris2.[0-5].*) ;;
18013 # The compiler driver will combine and reorder linker options,
18014 # but understands `-z linker_flag'. GCC discards it without `$wl',
18015 # but is careful enough not to reorder.
18016 # Supported since Solaris 2.6 (maybe 2.5.1?)
18017 if test "$GCC" = yes; then
18018 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18019 else
18020 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18023 esac
18024 link_all_deplibs_GCJ=yes
18027 sunos4*)
18028 if test "x$host_vendor" = xsequent; then
18029 # Use $CC to link under sequent, because it throws in some extra .o
18030 # files that make .init and .fini sections work.
18031 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18032 else
18033 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18035 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18036 hardcode_direct_GCJ=yes
18037 hardcode_minus_L_GCJ=yes
18038 hardcode_shlibpath_var_GCJ=no
18041 sysv4)
18042 case $host_vendor in
18043 sni)
18044 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18045 hardcode_direct_GCJ=yes # is this really true???
18047 siemens)
18048 ## LD is ld it makes a PLAMLIB
18049 ## CC just makes a GrossModule.
18050 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18051 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18052 hardcode_direct_GCJ=no
18054 motorola)
18055 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18056 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18058 esac
18059 runpath_var='LD_RUN_PATH'
18060 hardcode_shlibpath_var_GCJ=no
18063 sysv4.3*)
18064 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18065 hardcode_shlibpath_var_GCJ=no
18066 export_dynamic_flag_spec_GCJ='-Bexport'
18069 sysv4*MP*)
18070 if test -d /usr/nec; then
18071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18072 hardcode_shlibpath_var_GCJ=no
18073 runpath_var=LD_RUN_PATH
18074 hardcode_runpath_var=yes
18075 ld_shlibs_GCJ=yes
18079 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18080 no_undefined_flag_GCJ='${wl}-z,text'
18081 archive_cmds_need_lc_GCJ=no
18082 hardcode_shlibpath_var_GCJ=no
18083 runpath_var='LD_RUN_PATH'
18085 if test "$GCC" = yes; then
18086 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18087 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18088 else
18089 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18090 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18094 sysv5* | sco3.2v5* | sco5v6*)
18095 # Note: We can NOT use -z defs as we might desire, because we do not
18096 # link with -lc, and that would cause any symbols used from libc to
18097 # always be unresolved, which means just about no library would
18098 # ever link correctly. If we're not using GNU ld we use -z text
18099 # though, which does catch some bad symbols but isn't as heavy-handed
18100 # as -z defs.
18101 no_undefined_flag_GCJ='${wl}-z,text'
18102 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18103 archive_cmds_need_lc_GCJ=no
18104 hardcode_shlibpath_var_GCJ=no
18105 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18106 hardcode_libdir_separator_GCJ=':'
18107 link_all_deplibs_GCJ=yes
18108 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18109 runpath_var='LD_RUN_PATH'
18111 if test "$GCC" = yes; then
18112 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18113 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18114 else
18115 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18116 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18120 uts4*)
18121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18123 hardcode_shlibpath_var_GCJ=no
18127 ld_shlibs_GCJ=no
18129 esac
18132 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18133 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18134 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18137 # Do we need to explicitly link libc?
18139 case "x$archive_cmds_need_lc_GCJ" in
18140 x|xyes)
18141 # Assume -lc should be added
18142 archive_cmds_need_lc_GCJ=yes
18144 if test "$enable_shared" = yes && test "$GCC" = yes; then
18145 case $archive_cmds_GCJ in
18146 *'~'*)
18147 # FIXME: we may have to deal with multi-command sequences.
18149 '$CC '*)
18150 # Test whether the compiler implicitly links with -lc since on some
18151 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18152 # to ld, don't add -lc before -lgcc.
18153 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18154 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18155 $rm conftest*
18156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18159 (eval $ac_compile) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } 2>conftest.err; then
18163 soname=conftest
18164 lib=conftest
18165 libobjs=conftest.$ac_objext
18166 deplibs=
18167 wl=$lt_prog_compiler_wl_GCJ
18168 pic_flag=$lt_prog_compiler_pic_GCJ
18169 compiler_flags=-v
18170 linker_flags=-v
18171 verstring=
18172 output_objdir=.
18173 libname=conftest
18174 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18175 allow_undefined_flag_GCJ=
18176 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18177 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18178 ac_status=$?
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }
18181 then
18182 archive_cmds_need_lc_GCJ=no
18183 else
18184 archive_cmds_need_lc_GCJ=yes
18186 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18187 else
18188 cat conftest.err 1>&5
18190 $rm conftest*
18191 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18192 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18194 esac
18197 esac
18199 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18200 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18201 library_names_spec=
18202 libname_spec='lib$name'
18203 soname_spec=
18204 shrext_cmds=".so"
18205 postinstall_cmds=
18206 postuninstall_cmds=
18207 finish_cmds=
18208 finish_eval=
18209 shlibpath_var=
18210 shlibpath_overrides_runpath=unknown
18211 version_type=none
18212 dynamic_linker="$host_os ld.so"
18213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18215 need_lib_prefix=unknown
18216 hardcode_into_libs=no
18218 # when you set need_version to no, make sure it does not cause -set_version
18219 # flags to be left without arguments
18220 need_version=unknown
18222 case $host_os in
18223 aix3*)
18224 version_type=linux
18225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18226 shlibpath_var=LIBPATH
18228 # AIX 3 has no versioning support, so we append a major version to the name.
18229 soname_spec='${libname}${release}${shared_ext}$major'
18232 aix4* | aix5*)
18233 version_type=linux
18234 need_lib_prefix=no
18235 need_version=no
18236 hardcode_into_libs=yes
18237 if test "$host_cpu" = ia64; then
18238 # AIX 5 supports IA64
18239 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18240 shlibpath_var=LD_LIBRARY_PATH
18241 else
18242 # With GCC up to 2.95.x, collect2 would create an import file
18243 # for dependence libraries. The import file would start with
18244 # the line `#! .'. This would cause the generated library to
18245 # depend on `.', always an invalid library. This was fixed in
18246 # development snapshots of GCC prior to 3.0.
18247 case $host_os in
18248 aix4 | aix4.[01] | aix4.[01].*)
18249 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18250 echo ' yes '
18251 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18253 else
18254 can_build_shared=no
18257 esac
18258 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18259 # soname into executable. Probably we can add versioning support to
18260 # collect2, so additional links can be useful in future.
18261 if test "$aix_use_runtimelinking" = yes; then
18262 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18263 # instead of lib<name>.a to let people know that these are not
18264 # typical AIX shared libraries.
18265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18266 else
18267 # We preserve .a as extension for shared libraries through AIX4.2
18268 # and later when we are not doing run time linking.
18269 library_names_spec='${libname}${release}.a $libname.a'
18270 soname_spec='${libname}${release}${shared_ext}$major'
18272 shlibpath_var=LIBPATH
18276 amigaos*)
18277 library_names_spec='$libname.ixlibrary $libname.a'
18278 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18279 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'
18282 beos*)
18283 library_names_spec='${libname}${shared_ext}'
18284 dynamic_linker="$host_os ld.so"
18285 shlibpath_var=LIBRARY_PATH
18288 bsdi[45]*)
18289 version_type=linux
18290 need_version=no
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292 soname_spec='${libname}${release}${shared_ext}$major'
18293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18294 shlibpath_var=LD_LIBRARY_PATH
18295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18297 # the default ld.so.conf also contains /usr/contrib/lib and
18298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18299 # libtool to hard-code these into programs
18302 cygwin* | mingw* | pw32*)
18303 version_type=windows
18304 shrext_cmds=".dll"
18305 need_version=no
18306 need_lib_prefix=no
18308 case $GCC,$host_os in
18309 yes,cygwin* | yes,mingw* | yes,pw32*)
18310 library_names_spec='$libname.dll.a'
18311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18312 postinstall_cmds='base_file=`basename \${file}`~
18313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18314 dldir=$destdir/`dirname \$dlpath`~
18315 test -d \$dldir || mkdir -p \$dldir~
18316 $install_prog $dir/$dlname \$dldir/$dlname~
18317 chmod a+x \$dldir/$dlname'
18318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18319 dlpath=$dir/\$dldll~
18320 $rm \$dlpath'
18321 shlibpath_overrides_runpath=yes
18323 case $host_os in
18324 cygwin*)
18325 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18326 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18327 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18329 mingw*)
18330 # MinGW DLLs use traditional 'lib' prefix
18331 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18332 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18333 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18334 # It is most probably a Windows format PATH printed by
18335 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18336 # path with ; separators, and with drive letters. We can handle the
18337 # drive letters (cygwin fileutils understands them), so leave them,
18338 # especially as we might pass files found there to a mingw objdump,
18339 # which wouldn't understand a cygwinified path. Ahh.
18340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18341 else
18342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18345 pw32*)
18346 # pw32 DLLs use 'pw' prefix rather than 'lib'
18347 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18349 esac
18353 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18355 esac
18356 dynamic_linker='Win32 ld.exe'
18357 # FIXME: first we should search . and the directory the executable is in
18358 shlibpath_var=PATH
18361 darwin* | rhapsody*)
18362 dynamic_linker="$host_os dyld"
18363 version_type=darwin
18364 need_lib_prefix=no
18365 need_version=no
18366 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18367 soname_spec='${libname}${release}${major}$shared_ext'
18368 shlibpath_overrides_runpath=yes
18369 shlibpath_var=DYLD_LIBRARY_PATH
18370 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18372 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18375 dgux*)
18376 version_type=linux
18377 need_lib_prefix=no
18378 need_version=no
18379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18380 soname_spec='${libname}${release}${shared_ext}$major'
18381 shlibpath_var=LD_LIBRARY_PATH
18384 freebsd1*)
18385 dynamic_linker=no
18388 freebsd* | dragonfly*)
18389 # DragonFly does not have aout. When/if they implement a new
18390 # versioning mechanism, adjust this.
18391 if test -x /usr/bin/objformat; then
18392 objformat=`/usr/bin/objformat`
18393 else
18394 case $host_os in
18395 freebsd[123]*) objformat=aout ;;
18396 *) objformat=elf ;;
18397 esac
18399 version_type=freebsd-$objformat
18400 case $version_type in
18401 freebsd-elf*)
18402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18403 need_version=no
18404 need_lib_prefix=no
18406 freebsd-*)
18407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18408 need_version=yes
18410 esac
18411 shlibpath_var=LD_LIBRARY_PATH
18412 case $host_os in
18413 freebsd2*)
18414 shlibpath_overrides_runpath=yes
18416 freebsd3.[01]* | freebsdelf3.[01]*)
18417 shlibpath_overrides_runpath=yes
18418 hardcode_into_libs=yes
18420 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18421 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18422 shlibpath_overrides_runpath=no
18423 hardcode_into_libs=yes
18425 *) # from 4.6 on, and DragonFly
18426 shlibpath_overrides_runpath=yes
18427 hardcode_into_libs=yes
18429 esac
18432 gnu*)
18433 version_type=linux
18434 need_lib_prefix=no
18435 need_version=no
18436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18437 soname_spec='${libname}${release}${shared_ext}$major'
18438 shlibpath_var=LD_LIBRARY_PATH
18439 hardcode_into_libs=yes
18442 hpux9* | hpux10* | hpux11*)
18443 # Give a soname corresponding to the major version so that dld.sl refuses to
18444 # link against other versions.
18445 version_type=sunos
18446 need_lib_prefix=no
18447 need_version=no
18448 case $host_cpu in
18449 ia64*)
18450 shrext_cmds='.so'
18451 hardcode_into_libs=yes
18452 dynamic_linker="$host_os dld.so"
18453 shlibpath_var=LD_LIBRARY_PATH
18454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456 soname_spec='${libname}${release}${shared_ext}$major'
18457 if test "X$HPUX_IA64_MODE" = X32; then
18458 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18459 else
18460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18464 hppa*64*)
18465 shrext_cmds='.sl'
18466 hardcode_into_libs=yes
18467 dynamic_linker="$host_os dld.sl"
18468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18471 soname_spec='${libname}${release}${shared_ext}$major'
18472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18476 shrext_cmds='.sl'
18477 dynamic_linker="$host_os dld.sl"
18478 shlibpath_var=SHLIB_PATH
18479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481 soname_spec='${libname}${release}${shared_ext}$major'
18483 esac
18484 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18485 postinstall_cmds='chmod 555 $lib'
18488 interix[3-9]*)
18489 version_type=linux
18490 need_lib_prefix=no
18491 need_version=no
18492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18493 soname_spec='${libname}${release}${shared_ext}$major'
18494 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18495 shlibpath_var=LD_LIBRARY_PATH
18496 shlibpath_overrides_runpath=no
18497 hardcode_into_libs=yes
18500 irix5* | irix6* | nonstopux*)
18501 case $host_os in
18502 nonstopux*) version_type=nonstopux ;;
18504 if test "$lt_cv_prog_gnu_ld" = yes; then
18505 version_type=linux
18506 else
18507 version_type=irix
18508 fi ;;
18509 esac
18510 need_lib_prefix=no
18511 need_version=no
18512 soname_spec='${libname}${release}${shared_ext}$major'
18513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18514 case $host_os in
18515 irix5* | nonstopux*)
18516 libsuff= shlibsuff=
18519 case $LD in # libtool.m4 will add one of these switches to LD
18520 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18521 libsuff= shlibsuff= libmagic=32-bit;;
18522 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18523 libsuff=32 shlibsuff=N32 libmagic=N32;;
18524 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18525 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18526 *) libsuff= shlibsuff= libmagic=never-match;;
18527 esac
18529 esac
18530 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18531 shlibpath_overrides_runpath=no
18532 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18533 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18534 hardcode_into_libs=yes
18537 # No shared lib support for Linux oldld, aout, or coff.
18538 linux*oldld* | linux*aout* | linux*coff*)
18539 dynamic_linker=no
18542 # This must be Linux ELF.
18543 linux* | k*bsd*-gnu)
18544 version_type=linux
18545 need_lib_prefix=no
18546 need_version=no
18547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18548 soname_spec='${libname}${release}${shared_ext}$major'
18549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18550 shlibpath_var=LD_LIBRARY_PATH
18551 shlibpath_overrides_runpath=no
18552 # This implies no fast_install, which is unacceptable.
18553 # Some rework will be needed to allow for fast_install
18554 # before this can be enabled.
18555 hardcode_into_libs=yes
18557 # Append ld.so.conf contents to the search path
18558 if test -f /etc/ld.so.conf; then
18559 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' ' '`
18560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18563 # We used to test for /lib/ld.so.1 and disable shared libraries on
18564 # powerpc, because MkLinux only supported shared libraries with the
18565 # GNU dynamic linker. Since this was broken with cross compilers,
18566 # most powerpc-linux boxes support dynamic linking these days and
18567 # people can always --disable-shared, the test was removed, and we
18568 # assume the GNU/Linux dynamic linker is in use.
18569 dynamic_linker='GNU/Linux ld.so'
18572 netbsdelf*-gnu)
18573 version_type=linux
18574 need_lib_prefix=no
18575 need_version=no
18576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18577 soname_spec='${libname}${release}${shared_ext}$major'
18578 shlibpath_var=LD_LIBRARY_PATH
18579 shlibpath_overrides_runpath=no
18580 hardcode_into_libs=yes
18581 dynamic_linker='NetBSD ld.elf_so'
18584 netbsd*)
18585 version_type=sunos
18586 need_lib_prefix=no
18587 need_version=no
18588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18591 dynamic_linker='NetBSD (a.out) ld.so'
18592 else
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18594 soname_spec='${libname}${release}${shared_ext}$major'
18595 dynamic_linker='NetBSD ld.elf_so'
18597 shlibpath_var=LD_LIBRARY_PATH
18598 shlibpath_overrides_runpath=yes
18599 hardcode_into_libs=yes
18602 newsos6)
18603 version_type=linux
18604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18605 shlibpath_var=LD_LIBRARY_PATH
18606 shlibpath_overrides_runpath=yes
18609 nto-qnx*)
18610 version_type=linux
18611 need_lib_prefix=no
18612 need_version=no
18613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18614 soname_spec='${libname}${release}${shared_ext}$major'
18615 shlibpath_var=LD_LIBRARY_PATH
18616 shlibpath_overrides_runpath=yes
18619 openbsd*)
18620 version_type=sunos
18621 sys_lib_dlsearch_path_spec="/usr/lib"
18622 need_lib_prefix=no
18623 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18624 case $host_os in
18625 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18626 *) need_version=no ;;
18627 esac
18628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18630 shlibpath_var=LD_LIBRARY_PATH
18631 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18632 case $host_os in
18633 openbsd2.[89] | openbsd2.[89].*)
18634 shlibpath_overrides_runpath=no
18637 shlibpath_overrides_runpath=yes
18639 esac
18640 else
18641 shlibpath_overrides_runpath=yes
18645 os2*)
18646 libname_spec='$name'
18647 shrext_cmds=".dll"
18648 need_lib_prefix=no
18649 library_names_spec='$libname${shared_ext} $libname.a'
18650 dynamic_linker='OS/2 ld.exe'
18651 shlibpath_var=LIBPATH
18654 osf3* | osf4* | osf5*)
18655 version_type=osf
18656 need_lib_prefix=no
18657 need_version=no
18658 soname_spec='${libname}${release}${shared_ext}$major'
18659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660 shlibpath_var=LD_LIBRARY_PATH
18661 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18662 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18665 rdos*)
18666 dynamic_linker=no
18669 solaris*)
18670 version_type=linux
18671 need_lib_prefix=no
18672 need_version=no
18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674 soname_spec='${libname}${release}${shared_ext}$major'
18675 shlibpath_var=LD_LIBRARY_PATH
18676 shlibpath_overrides_runpath=yes
18677 hardcode_into_libs=yes
18678 # ldd complains unless libraries are executable
18679 postinstall_cmds='chmod +x $lib'
18682 sunos4*)
18683 version_type=sunos
18684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18685 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18686 shlibpath_var=LD_LIBRARY_PATH
18687 shlibpath_overrides_runpath=yes
18688 if test "$with_gnu_ld" = yes; then
18689 need_lib_prefix=no
18691 need_version=yes
18694 sysv4 | sysv4.3*)
18695 version_type=linux
18696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18697 soname_spec='${libname}${release}${shared_ext}$major'
18698 shlibpath_var=LD_LIBRARY_PATH
18699 case $host_vendor in
18700 sni)
18701 shlibpath_overrides_runpath=no
18702 need_lib_prefix=no
18703 export_dynamic_flag_spec='${wl}-Blargedynsym'
18704 runpath_var=LD_RUN_PATH
18706 siemens)
18707 need_lib_prefix=no
18709 motorola)
18710 need_lib_prefix=no
18711 need_version=no
18712 shlibpath_overrides_runpath=no
18713 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18715 esac
18718 sysv4*MP*)
18719 if test -d /usr/nec ;then
18720 version_type=linux
18721 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18722 soname_spec='$libname${shared_ext}.$major'
18723 shlibpath_var=LD_LIBRARY_PATH
18727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18728 version_type=freebsd-elf
18729 need_lib_prefix=no
18730 need_version=no
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18732 soname_spec='${libname}${release}${shared_ext}$major'
18733 shlibpath_var=LD_LIBRARY_PATH
18734 hardcode_into_libs=yes
18735 if test "$with_gnu_ld" = yes; then
18736 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18737 shlibpath_overrides_runpath=no
18738 else
18739 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18740 shlibpath_overrides_runpath=yes
18741 case $host_os in
18742 sco3.2v5*)
18743 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18745 esac
18747 sys_lib_dlsearch_path_spec='/usr/lib'
18750 uts4*)
18751 version_type=linux
18752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18753 soname_spec='${libname}${release}${shared_ext}$major'
18754 shlibpath_var=LD_LIBRARY_PATH
18758 dynamic_linker=no
18760 esac
18761 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18762 echo "${ECHO_T}$dynamic_linker" >&6; }
18763 test "$dynamic_linker" = no && can_build_shared=no
18765 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18766 if test "$GCC" = yes; then
18767 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18770 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18771 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18772 hardcode_action_GCJ=
18773 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18774 test -n "$runpath_var_GCJ" || \
18775 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18777 # We can hardcode non-existant directories.
18778 if test "$hardcode_direct_GCJ" != no &&
18779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18780 # have to relink, otherwise we might link with an installed library
18781 # when we should be linking with a yet-to-be-installed one
18782 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18783 test "$hardcode_minus_L_GCJ" != no; then
18784 # Linking always hardcodes the temporary library directory.
18785 hardcode_action_GCJ=relink
18786 else
18787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18788 hardcode_action_GCJ=immediate
18790 else
18791 # We cannot hardcode anything, or else we can only hardcode existing
18792 # directories.
18793 hardcode_action_GCJ=unsupported
18795 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18796 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18798 if test "$hardcode_action_GCJ" = relink; then
18799 # Fast installation is not supported
18800 enable_fast_install=no
18801 elif test "$shlibpath_overrides_runpath" = yes ||
18802 test "$enable_shared" = no; then
18803 # Fast installation is not necessary
18804 enable_fast_install=needless
18808 # The else clause should only fire when bootstrapping the
18809 # libtool distribution, otherwise you forgot to ship ltmain.sh
18810 # with your package, and you will get complaints that there are
18811 # no rules to generate ltmain.sh.
18812 if test -f "$ltmain"; then
18813 # See if we are running on zsh, and set the options which allow our commands through
18814 # without removal of \ escapes.
18815 if test -n "${ZSH_VERSION+set}" ; then
18816 setopt NO_GLOB_SUBST
18818 # Now quote all the things that may contain metacharacters while being
18819 # careful not to overquote the AC_SUBSTed values. We take copies of the
18820 # variables and quote the copies for generation of the libtool script.
18821 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18822 SED SHELL STRIP \
18823 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18824 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18825 deplibs_check_method reload_flag reload_cmds need_locks \
18826 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18827 lt_cv_sys_global_symbol_to_c_name_address \
18828 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18829 old_postinstall_cmds old_postuninstall_cmds \
18830 compiler_GCJ \
18831 CC_GCJ \
18832 LD_GCJ \
18833 lt_prog_compiler_wl_GCJ \
18834 lt_prog_compiler_pic_GCJ \
18835 lt_prog_compiler_static_GCJ \
18836 lt_prog_compiler_no_builtin_flag_GCJ \
18837 export_dynamic_flag_spec_GCJ \
18838 thread_safe_flag_spec_GCJ \
18839 whole_archive_flag_spec_GCJ \
18840 enable_shared_with_static_runtimes_GCJ \
18841 old_archive_cmds_GCJ \
18842 old_archive_from_new_cmds_GCJ \
18843 predep_objects_GCJ \
18844 postdep_objects_GCJ \
18845 predeps_GCJ \
18846 postdeps_GCJ \
18847 compiler_lib_search_path_GCJ \
18848 archive_cmds_GCJ \
18849 archive_expsym_cmds_GCJ \
18850 postinstall_cmds_GCJ \
18851 postuninstall_cmds_GCJ \
18852 old_archive_from_expsyms_cmds_GCJ \
18853 allow_undefined_flag_GCJ \
18854 no_undefined_flag_GCJ \
18855 export_symbols_cmds_GCJ \
18856 hardcode_libdir_flag_spec_GCJ \
18857 hardcode_libdir_flag_spec_ld_GCJ \
18858 hardcode_libdir_separator_GCJ \
18859 hardcode_automatic_GCJ \
18860 module_cmds_GCJ \
18861 module_expsym_cmds_GCJ \
18862 lt_cv_prog_compiler_c_o_GCJ \
18863 fix_srcfile_path_GCJ \
18864 exclude_expsyms_GCJ \
18865 include_expsyms_GCJ; do
18867 case $var in
18868 old_archive_cmds_GCJ | \
18869 old_archive_from_new_cmds_GCJ | \
18870 archive_cmds_GCJ | \
18871 archive_expsym_cmds_GCJ | \
18872 module_cmds_GCJ | \
18873 module_expsym_cmds_GCJ | \
18874 old_archive_from_expsyms_cmds_GCJ | \
18875 export_symbols_cmds_GCJ | \
18876 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18877 postinstall_cmds | postuninstall_cmds | \
18878 old_postinstall_cmds | old_postuninstall_cmds | \
18879 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18880 # Double-quote double-evaled strings.
18881 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18884 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18886 esac
18887 done
18889 case $lt_echo in
18890 *'\$0 --fallback-echo"')
18891 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18893 esac
18895 cfgfile="$ofile"
18897 cat <<__EOF__ >> "$cfgfile"
18898 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18902 # Shell to use when invoking shell scripts.
18903 SHELL=$lt_SHELL
18905 # Whether or not to build shared libraries.
18906 build_libtool_libs=$enable_shared
18908 # Whether or not to build static libraries.
18909 build_old_libs=$enable_static
18911 # Whether or not to add -lc for building shared libraries.
18912 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18914 # Whether or not to disallow shared libs when runtime libs are static
18915 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18917 # Whether or not to optimize for fast installation.
18918 fast_install=$enable_fast_install
18920 # The host system.
18921 host_alias=$host_alias
18922 host=$host
18923 host_os=$host_os
18925 # The build system.
18926 build_alias=$build_alias
18927 build=$build
18928 build_os=$build_os
18930 # An echo program that does not interpret backslashes.
18931 echo=$lt_echo
18933 # The archiver.
18934 AR=$lt_AR
18935 AR_FLAGS=$lt_AR_FLAGS
18937 # A C compiler.
18938 LTCC=$lt_LTCC
18940 # LTCC compiler flags.
18941 LTCFLAGS=$lt_LTCFLAGS
18943 # A language-specific compiler.
18944 CC=$lt_compiler_GCJ
18946 # Is the compiler the GNU C compiler?
18947 with_gcc=$GCC_GCJ
18949 # An ERE matcher.
18950 EGREP=$lt_EGREP
18952 # The linker used to build libraries.
18953 LD=$lt_LD_GCJ
18955 # Whether we need hard or soft links.
18956 LN_S=$lt_LN_S
18958 # A BSD-compatible nm program.
18959 NM=$lt_NM
18961 # A symbol stripping program
18962 STRIP=$lt_STRIP
18964 # Used to examine libraries when file_magic_cmd begins "file"
18965 MAGIC_CMD=$MAGIC_CMD
18967 # Used on cygwin: DLL creation program.
18968 DLLTOOL="$DLLTOOL"
18970 # Used on cygwin: object dumper.
18971 OBJDUMP="$OBJDUMP"
18973 # Used on cygwin: assembler.
18974 AS="$AS"
18976 # The name of the directory that contains temporary libtool files.
18977 objdir=$objdir
18979 # How to create reloadable object files.
18980 reload_flag=$lt_reload_flag
18981 reload_cmds=$lt_reload_cmds
18983 # How to pass a linker flag through the compiler.
18984 wl=$lt_lt_prog_compiler_wl_GCJ
18986 # Object file suffix (normally "o").
18987 objext="$ac_objext"
18989 # Old archive suffix (normally "a").
18990 libext="$libext"
18992 # Shared library suffix (normally ".so").
18993 shrext_cmds='$shrext_cmds'
18995 # Executable file suffix (normally "").
18996 exeext="$exeext"
18998 # Additional compiler flags for building library objects.
18999 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19000 pic_mode=$pic_mode
19002 # What is the maximum length of a command?
19003 max_cmd_len=$lt_cv_sys_max_cmd_len
19005 # Does compiler simultaneously support -c and -o options?
19006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19008 # Must we lock files when doing compilation?
19009 need_locks=$lt_need_locks
19011 # Do we need the lib prefix for modules?
19012 need_lib_prefix=$need_lib_prefix
19014 # Do we need a version for libraries?
19015 need_version=$need_version
19017 # Whether dlopen is supported.
19018 dlopen_support=$enable_dlopen
19020 # Whether dlopen of programs is supported.
19021 dlopen_self=$enable_dlopen_self
19023 # Whether dlopen of statically linked programs is supported.
19024 dlopen_self_static=$enable_dlopen_self_static
19026 # Compiler flag to prevent dynamic linking.
19027 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19029 # Compiler flag to turn off builtin functions.
19030 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19032 # Compiler flag to allow reflexive dlopens.
19033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19035 # Compiler flag to generate shared objects directly from archives.
19036 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19038 # Compiler flag to generate thread-safe objects.
19039 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19041 # Library versioning type.
19042 version_type=$version_type
19044 # Format of library name prefix.
19045 libname_spec=$lt_libname_spec
19047 # List of archive names. First name is the real one, the rest are links.
19048 # The last name is the one that the linker finds with -lNAME.
19049 library_names_spec=$lt_library_names_spec
19051 # The coded name of the library, if different from the real name.
19052 soname_spec=$lt_soname_spec
19054 # Commands used to build and install an old-style archive.
19055 RANLIB=$lt_RANLIB
19056 old_archive_cmds=$lt_old_archive_cmds_GCJ
19057 old_postinstall_cmds=$lt_old_postinstall_cmds
19058 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19060 # Create an old-style archive from a shared archive.
19061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19063 # Create a temporary old-style archive to link instead of a shared archive.
19064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19066 # Commands used to build and install a shared archive.
19067 archive_cmds=$lt_archive_cmds_GCJ
19068 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19069 postinstall_cmds=$lt_postinstall_cmds
19070 postuninstall_cmds=$lt_postuninstall_cmds
19072 # Commands used to build a loadable module (assumed same as above if empty)
19073 module_cmds=$lt_module_cmds_GCJ
19074 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19076 # Commands to strip libraries.
19077 old_striplib=$lt_old_striplib
19078 striplib=$lt_striplib
19080 # Dependencies to place before the objects being linked to create a
19081 # shared library.
19082 predep_objects=$lt_predep_objects_GCJ
19084 # Dependencies to place after the objects being linked to create a
19085 # shared library.
19086 postdep_objects=$lt_postdep_objects_GCJ
19088 # Dependencies to place before the objects being linked to create a
19089 # shared library.
19090 predeps=$lt_predeps_GCJ
19092 # Dependencies to place after the objects being linked to create a
19093 # shared library.
19094 postdeps=$lt_postdeps_GCJ
19096 # The library search path used internally by the compiler when linking
19097 # a shared library.
19098 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19100 # Method to check whether dependent libraries are shared objects.
19101 deplibs_check_method=$lt_deplibs_check_method
19103 # Command to use when deplibs_check_method == file_magic.
19104 file_magic_cmd=$lt_file_magic_cmd
19106 # Flag that allows shared libraries with undefined symbols to be built.
19107 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19109 # Flag that forces no undefined symbols.
19110 no_undefined_flag=$lt_no_undefined_flag_GCJ
19112 # Commands used to finish a libtool library installation in a directory.
19113 finish_cmds=$lt_finish_cmds
19115 # Same as above, but a single script fragment to be evaled but not shown.
19116 finish_eval=$lt_finish_eval
19118 # Take the output of nm and produce a listing of raw symbols and C names.
19119 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19121 # Transform the output of nm in a proper C declaration
19122 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19124 # Transform the output of nm in a C name address pair
19125 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19127 # This is the shared library runtime path variable.
19128 runpath_var=$runpath_var
19130 # This is the shared library path variable.
19131 shlibpath_var=$shlibpath_var
19133 # Is shlibpath searched before the hard-coded library search path?
19134 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19136 # How to hardcode a shared library path into an executable.
19137 hardcode_action=$hardcode_action_GCJ
19139 # Whether we should hardcode library paths into libraries.
19140 hardcode_into_libs=$hardcode_into_libs
19142 # Flag to hardcode \$libdir into a binary during linking.
19143 # This must work even if \$libdir does not exist.
19144 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19146 # If ld is used when linking, flag to hardcode \$libdir into
19147 # a binary during linking. This must work even if \$libdir does
19148 # not exist.
19149 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19151 # Whether we need a single -rpath flag with a separated argument.
19152 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19154 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19155 # resulting binary.
19156 hardcode_direct=$hardcode_direct_GCJ
19158 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19159 # resulting binary.
19160 hardcode_minus_L=$hardcode_minus_L_GCJ
19162 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19163 # the resulting binary.
19164 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19166 # Set to yes if building a shared library automatically hardcodes DIR into the library
19167 # and all subsequent libraries and executables linked against it.
19168 hardcode_automatic=$hardcode_automatic_GCJ
19170 # Variables whose values should be saved in libtool wrapper scripts and
19171 # restored at relink time.
19172 variables_saved_for_relink="$variables_saved_for_relink"
19174 # Whether libtool must link a program against all its dependency libraries.
19175 link_all_deplibs=$link_all_deplibs_GCJ
19177 # Compile-time system search path for libraries
19178 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19180 # Run-time system search path for libraries
19181 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19183 # Fix the shell variable \$srcfile for the compiler.
19184 fix_srcfile_path=$lt_fix_srcfile_path
19186 # Set to yes if exported symbols are required.
19187 always_export_symbols=$always_export_symbols_GCJ
19189 # The commands to list exported symbols.
19190 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19192 # The commands to extract the exported symbol list from a shared archive.
19193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19195 # Symbols that should not be listed in the preloaded symbols.
19196 exclude_expsyms=$lt_exclude_expsyms_GCJ
19198 # Symbols that must always be exported.
19199 include_expsyms=$lt_include_expsyms_GCJ
19201 # ### END LIBTOOL TAG CONFIG: $tagname
19203 __EOF__
19206 else
19207 # If there is no Makefile yet, we rely on a make rule to execute
19208 # `config.status --recheck' to rerun these tests and create the
19209 # libtool script then.
19210 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19211 if test -f "$ltmain_in"; then
19212 test -f Makefile && make "$ltmain"
19217 ac_ext=c
19218 ac_cpp='$CPP $CPPFLAGS'
19219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19223 CC="$lt_save_CC"
19225 else
19226 tagname=""
19233 # Source file extension for RC test sources.
19234 ac_ext=rc
19236 # Object file extension for compiled RC test sources.
19237 objext=o
19238 objext_RC=$objext
19240 # Code to be used in simple compile tests
19241 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19243 # Code to be used in simple link tests
19244 lt_simple_link_test_code="$lt_simple_compile_test_code"
19246 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19248 # If no C compiler was specified, use CC.
19249 LTCC=${LTCC-"$CC"}
19251 # If no C compiler flags were specified, use CFLAGS.
19252 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19254 # Allow CC to be a program name with arguments.
19255 compiler=$CC
19258 # save warnings/boilerplate of simple test code
19259 ac_outfile=conftest.$ac_objext
19260 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19261 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19262 _lt_compiler_boilerplate=`cat conftest.err`
19263 $rm conftest*
19265 ac_outfile=conftest.$ac_objext
19266 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19267 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19268 _lt_linker_boilerplate=`cat conftest.err`
19269 $rm conftest*
19272 # Allow CC to be a program name with arguments.
19273 lt_save_CC="$CC"
19274 CC=${RC-"windres"}
19275 compiler=$CC
19276 compiler_RC=$CC
19277 for cc_temp in $compiler""; do
19278 case $cc_temp in
19279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19281 \-*) ;;
19282 *) break;;
19283 esac
19284 done
19285 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19287 lt_cv_prog_compiler_c_o_RC=yes
19289 # The else clause should only fire when bootstrapping the
19290 # libtool distribution, otherwise you forgot to ship ltmain.sh
19291 # with your package, and you will get complaints that there are
19292 # no rules to generate ltmain.sh.
19293 if test -f "$ltmain"; then
19294 # See if we are running on zsh, and set the options which allow our commands through
19295 # without removal of \ escapes.
19296 if test -n "${ZSH_VERSION+set}" ; then
19297 setopt NO_GLOB_SUBST
19299 # Now quote all the things that may contain metacharacters while being
19300 # careful not to overquote the AC_SUBSTed values. We take copies of the
19301 # variables and quote the copies for generation of the libtool script.
19302 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19303 SED SHELL STRIP \
19304 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19305 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19306 deplibs_check_method reload_flag reload_cmds need_locks \
19307 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19308 lt_cv_sys_global_symbol_to_c_name_address \
19309 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19310 old_postinstall_cmds old_postuninstall_cmds \
19311 compiler_RC \
19312 CC_RC \
19313 LD_RC \
19314 lt_prog_compiler_wl_RC \
19315 lt_prog_compiler_pic_RC \
19316 lt_prog_compiler_static_RC \
19317 lt_prog_compiler_no_builtin_flag_RC \
19318 export_dynamic_flag_spec_RC \
19319 thread_safe_flag_spec_RC \
19320 whole_archive_flag_spec_RC \
19321 enable_shared_with_static_runtimes_RC \
19322 old_archive_cmds_RC \
19323 old_archive_from_new_cmds_RC \
19324 predep_objects_RC \
19325 postdep_objects_RC \
19326 predeps_RC \
19327 postdeps_RC \
19328 compiler_lib_search_path_RC \
19329 archive_cmds_RC \
19330 archive_expsym_cmds_RC \
19331 postinstall_cmds_RC \
19332 postuninstall_cmds_RC \
19333 old_archive_from_expsyms_cmds_RC \
19334 allow_undefined_flag_RC \
19335 no_undefined_flag_RC \
19336 export_symbols_cmds_RC \
19337 hardcode_libdir_flag_spec_RC \
19338 hardcode_libdir_flag_spec_ld_RC \
19339 hardcode_libdir_separator_RC \
19340 hardcode_automatic_RC \
19341 module_cmds_RC \
19342 module_expsym_cmds_RC \
19343 lt_cv_prog_compiler_c_o_RC \
19344 fix_srcfile_path_RC \
19345 exclude_expsyms_RC \
19346 include_expsyms_RC; do
19348 case $var in
19349 old_archive_cmds_RC | \
19350 old_archive_from_new_cmds_RC | \
19351 archive_cmds_RC | \
19352 archive_expsym_cmds_RC | \
19353 module_cmds_RC | \
19354 module_expsym_cmds_RC | \
19355 old_archive_from_expsyms_cmds_RC | \
19356 export_symbols_cmds_RC | \
19357 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19358 postinstall_cmds | postuninstall_cmds | \
19359 old_postinstall_cmds | old_postuninstall_cmds | \
19360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19361 # Double-quote double-evaled strings.
19362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19367 esac
19368 done
19370 case $lt_echo in
19371 *'\$0 --fallback-echo"')
19372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19374 esac
19376 cfgfile="$ofile"
19378 cat <<__EOF__ >> "$cfgfile"
19379 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19381 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19383 # Shell to use when invoking shell scripts.
19384 SHELL=$lt_SHELL
19386 # Whether or not to build shared libraries.
19387 build_libtool_libs=$enable_shared
19389 # Whether or not to build static libraries.
19390 build_old_libs=$enable_static
19392 # Whether or not to add -lc for building shared libraries.
19393 build_libtool_need_lc=$archive_cmds_need_lc_RC
19395 # Whether or not to disallow shared libs when runtime libs are static
19396 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19398 # Whether or not to optimize for fast installation.
19399 fast_install=$enable_fast_install
19401 # The host system.
19402 host_alias=$host_alias
19403 host=$host
19404 host_os=$host_os
19406 # The build system.
19407 build_alias=$build_alias
19408 build=$build
19409 build_os=$build_os
19411 # An echo program that does not interpret backslashes.
19412 echo=$lt_echo
19414 # The archiver.
19415 AR=$lt_AR
19416 AR_FLAGS=$lt_AR_FLAGS
19418 # A C compiler.
19419 LTCC=$lt_LTCC
19421 # LTCC compiler flags.
19422 LTCFLAGS=$lt_LTCFLAGS
19424 # A language-specific compiler.
19425 CC=$lt_compiler_RC
19427 # Is the compiler the GNU C compiler?
19428 with_gcc=$GCC_RC
19430 # An ERE matcher.
19431 EGREP=$lt_EGREP
19433 # The linker used to build libraries.
19434 LD=$lt_LD_RC
19436 # Whether we need hard or soft links.
19437 LN_S=$lt_LN_S
19439 # A BSD-compatible nm program.
19440 NM=$lt_NM
19442 # A symbol stripping program
19443 STRIP=$lt_STRIP
19445 # Used to examine libraries when file_magic_cmd begins "file"
19446 MAGIC_CMD=$MAGIC_CMD
19448 # Used on cygwin: DLL creation program.
19449 DLLTOOL="$DLLTOOL"
19451 # Used on cygwin: object dumper.
19452 OBJDUMP="$OBJDUMP"
19454 # Used on cygwin: assembler.
19455 AS="$AS"
19457 # The name of the directory that contains temporary libtool files.
19458 objdir=$objdir
19460 # How to create reloadable object files.
19461 reload_flag=$lt_reload_flag
19462 reload_cmds=$lt_reload_cmds
19464 # How to pass a linker flag through the compiler.
19465 wl=$lt_lt_prog_compiler_wl_RC
19467 # Object file suffix (normally "o").
19468 objext="$ac_objext"
19470 # Old archive suffix (normally "a").
19471 libext="$libext"
19473 # Shared library suffix (normally ".so").
19474 shrext_cmds='$shrext_cmds'
19476 # Executable file suffix (normally "").
19477 exeext="$exeext"
19479 # Additional compiler flags for building library objects.
19480 pic_flag=$lt_lt_prog_compiler_pic_RC
19481 pic_mode=$pic_mode
19483 # What is the maximum length of a command?
19484 max_cmd_len=$lt_cv_sys_max_cmd_len
19486 # Does compiler simultaneously support -c and -o options?
19487 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19489 # Must we lock files when doing compilation?
19490 need_locks=$lt_need_locks
19492 # Do we need the lib prefix for modules?
19493 need_lib_prefix=$need_lib_prefix
19495 # Do we need a version for libraries?
19496 need_version=$need_version
19498 # Whether dlopen is supported.
19499 dlopen_support=$enable_dlopen
19501 # Whether dlopen of programs is supported.
19502 dlopen_self=$enable_dlopen_self
19504 # Whether dlopen of statically linked programs is supported.
19505 dlopen_self_static=$enable_dlopen_self_static
19507 # Compiler flag to prevent dynamic linking.
19508 link_static_flag=$lt_lt_prog_compiler_static_RC
19510 # Compiler flag to turn off builtin functions.
19511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19513 # Compiler flag to allow reflexive dlopens.
19514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19516 # Compiler flag to generate shared objects directly from archives.
19517 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19519 # Compiler flag to generate thread-safe objects.
19520 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19522 # Library versioning type.
19523 version_type=$version_type
19525 # Format of library name prefix.
19526 libname_spec=$lt_libname_spec
19528 # List of archive names. First name is the real one, the rest are links.
19529 # The last name is the one that the linker finds with -lNAME.
19530 library_names_spec=$lt_library_names_spec
19532 # The coded name of the library, if different from the real name.
19533 soname_spec=$lt_soname_spec
19535 # Commands used to build and install an old-style archive.
19536 RANLIB=$lt_RANLIB
19537 old_archive_cmds=$lt_old_archive_cmds_RC
19538 old_postinstall_cmds=$lt_old_postinstall_cmds
19539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19541 # Create an old-style archive from a shared archive.
19542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19544 # Create a temporary old-style archive to link instead of a shared archive.
19545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19547 # Commands used to build and install a shared archive.
19548 archive_cmds=$lt_archive_cmds_RC
19549 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19550 postinstall_cmds=$lt_postinstall_cmds
19551 postuninstall_cmds=$lt_postuninstall_cmds
19553 # Commands used to build a loadable module (assumed same as above if empty)
19554 module_cmds=$lt_module_cmds_RC
19555 module_expsym_cmds=$lt_module_expsym_cmds_RC
19557 # Commands to strip libraries.
19558 old_striplib=$lt_old_striplib
19559 striplib=$lt_striplib
19561 # Dependencies to place before the objects being linked to create a
19562 # shared library.
19563 predep_objects=$lt_predep_objects_RC
19565 # Dependencies to place after the objects being linked to create a
19566 # shared library.
19567 postdep_objects=$lt_postdep_objects_RC
19569 # Dependencies to place before the objects being linked to create a
19570 # shared library.
19571 predeps=$lt_predeps_RC
19573 # Dependencies to place after the objects being linked to create a
19574 # shared library.
19575 postdeps=$lt_postdeps_RC
19577 # The library search path used internally by the compiler when linking
19578 # a shared library.
19579 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19581 # Method to check whether dependent libraries are shared objects.
19582 deplibs_check_method=$lt_deplibs_check_method
19584 # Command to use when deplibs_check_method == file_magic.
19585 file_magic_cmd=$lt_file_magic_cmd
19587 # Flag that allows shared libraries with undefined symbols to be built.
19588 allow_undefined_flag=$lt_allow_undefined_flag_RC
19590 # Flag that forces no undefined symbols.
19591 no_undefined_flag=$lt_no_undefined_flag_RC
19593 # Commands used to finish a libtool library installation in a directory.
19594 finish_cmds=$lt_finish_cmds
19596 # Same as above, but a single script fragment to be evaled but not shown.
19597 finish_eval=$lt_finish_eval
19599 # Take the output of nm and produce a listing of raw symbols and C names.
19600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19602 # Transform the output of nm in a proper C declaration
19603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19605 # Transform the output of nm in a C name address pair
19606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19608 # This is the shared library runtime path variable.
19609 runpath_var=$runpath_var
19611 # This is the shared library path variable.
19612 shlibpath_var=$shlibpath_var
19614 # Is shlibpath searched before the hard-coded library search path?
19615 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19617 # How to hardcode a shared library path into an executable.
19618 hardcode_action=$hardcode_action_RC
19620 # Whether we should hardcode library paths into libraries.
19621 hardcode_into_libs=$hardcode_into_libs
19623 # Flag to hardcode \$libdir into a binary during linking.
19624 # This must work even if \$libdir does not exist.
19625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19627 # If ld is used when linking, flag to hardcode \$libdir into
19628 # a binary during linking. This must work even if \$libdir does
19629 # not exist.
19630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19632 # Whether we need a single -rpath flag with a separated argument.
19633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19635 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19636 # resulting binary.
19637 hardcode_direct=$hardcode_direct_RC
19639 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19640 # resulting binary.
19641 hardcode_minus_L=$hardcode_minus_L_RC
19643 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19644 # the resulting binary.
19645 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19647 # Set to yes if building a shared library automatically hardcodes DIR into the library
19648 # and all subsequent libraries and executables linked against it.
19649 hardcode_automatic=$hardcode_automatic_RC
19651 # Variables whose values should be saved in libtool wrapper scripts and
19652 # restored at relink time.
19653 variables_saved_for_relink="$variables_saved_for_relink"
19655 # Whether libtool must link a program against all its dependency libraries.
19656 link_all_deplibs=$link_all_deplibs_RC
19658 # Compile-time system search path for libraries
19659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19661 # Run-time system search path for libraries
19662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19664 # Fix the shell variable \$srcfile for the compiler.
19665 fix_srcfile_path=$lt_fix_srcfile_path
19667 # Set to yes if exported symbols are required.
19668 always_export_symbols=$always_export_symbols_RC
19670 # The commands to list exported symbols.
19671 export_symbols_cmds=$lt_export_symbols_cmds_RC
19673 # The commands to extract the exported symbol list from a shared archive.
19674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19676 # Symbols that should not be listed in the preloaded symbols.
19677 exclude_expsyms=$lt_exclude_expsyms_RC
19679 # Symbols that must always be exported.
19680 include_expsyms=$lt_include_expsyms_RC
19682 # ### END LIBTOOL TAG CONFIG: $tagname
19684 __EOF__
19687 else
19688 # If there is no Makefile yet, we rely on a make rule to execute
19689 # `config.status --recheck' to rerun these tests and create the
19690 # libtool script then.
19691 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19692 if test -f "$ltmain_in"; then
19693 test -f Makefile && make "$ltmain"
19698 ac_ext=c
19699 ac_cpp='$CPP $CPPFLAGS'
19700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19704 CC="$lt_save_CC"
19709 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19710 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19711 { (exit 1); exit 1; }; }
19713 esac
19715 # Append the new tag name to the list of available tags.
19716 if test -n "$tagname" ; then
19717 available_tags="$available_tags $tagname"
19720 done
19721 IFS="$lt_save_ifs"
19723 # Now substitute the updated list of available tags.
19724 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19725 mv "${ofile}T" "$ofile"
19726 chmod +x "$ofile"
19727 else
19728 rm -f "${ofile}T"
19729 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19730 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19731 { (exit 1); exit 1; }; }
19737 # This can be used to rebuild libtool when needed
19738 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19740 # Always use our own libtool.
19741 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19743 # Prevent multiple expansion
19765 ac_ext=c
19766 ac_cpp='$CPP $CPPFLAGS'
19767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19770 if test -n "$ac_tool_prefix"; then
19771 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19772 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19775 if test "${ac_cv_prog_CC+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778 if test -n "$CC"; then
19779 ac_cv_prog_CC="$CC" # Let the user override the test.
19780 else
19781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19782 for as_dir in $PATH
19784 IFS=$as_save_IFS
19785 test -z "$as_dir" && as_dir=.
19786 for ac_exec_ext in '' $ac_executable_extensions; do
19787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19788 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19790 break 2
19792 done
19793 done
19794 IFS=$as_save_IFS
19798 CC=$ac_cv_prog_CC
19799 if test -n "$CC"; then
19800 { echo "$as_me:$LINENO: result: $CC" >&5
19801 echo "${ECHO_T}$CC" >&6; }
19802 else
19803 { echo "$as_me:$LINENO: result: no" >&5
19804 echo "${ECHO_T}no" >&6; }
19809 if test -z "$ac_cv_prog_CC"; then
19810 ac_ct_CC=$CC
19811 # Extract the first word of "gcc", so it can be a program name with args.
19812 set dummy gcc; ac_word=$2
19813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19815 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 else
19818 if test -n "$ac_ct_CC"; then
19819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19820 else
19821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19822 for as_dir in $PATH
19824 IFS=$as_save_IFS
19825 test -z "$as_dir" && as_dir=.
19826 for ac_exec_ext in '' $ac_executable_extensions; do
19827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19828 ac_cv_prog_ac_ct_CC="gcc"
19829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19830 break 2
19832 done
19833 done
19834 IFS=$as_save_IFS
19838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19839 if test -n "$ac_ct_CC"; then
19840 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19841 echo "${ECHO_T}$ac_ct_CC" >&6; }
19842 else
19843 { echo "$as_me:$LINENO: result: no" >&5
19844 echo "${ECHO_T}no" >&6; }
19847 if test "x$ac_ct_CC" = x; then
19848 CC=""
19849 else
19850 case $cross_compiling:$ac_tool_warned in
19851 yes:)
19852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19853 whose name does not start with the host triplet. If you think this
19854 configuration is useful to you, please write to autoconf@gnu.org." >&5
19855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19856 whose name does not start with the host triplet. If you think this
19857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19858 ac_tool_warned=yes ;;
19859 esac
19860 CC=$ac_ct_CC
19862 else
19863 CC="$ac_cv_prog_CC"
19866 if test -z "$CC"; then
19867 if test -n "$ac_tool_prefix"; then
19868 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19869 set dummy ${ac_tool_prefix}cc; ac_word=$2
19870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19872 if test "${ac_cv_prog_CC+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875 if test -n "$CC"; then
19876 ac_cv_prog_CC="$CC" # Let the user override the test.
19877 else
19878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19879 for as_dir in $PATH
19881 IFS=$as_save_IFS
19882 test -z "$as_dir" && as_dir=.
19883 for ac_exec_ext in '' $ac_executable_extensions; do
19884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19885 ac_cv_prog_CC="${ac_tool_prefix}cc"
19886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19887 break 2
19889 done
19890 done
19891 IFS=$as_save_IFS
19895 CC=$ac_cv_prog_CC
19896 if test -n "$CC"; then
19897 { echo "$as_me:$LINENO: result: $CC" >&5
19898 echo "${ECHO_T}$CC" >&6; }
19899 else
19900 { echo "$as_me:$LINENO: result: no" >&5
19901 echo "${ECHO_T}no" >&6; }
19907 if test -z "$CC"; then
19908 # Extract the first word of "cc", so it can be a program name with args.
19909 set dummy cc; ac_word=$2
19910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19912 if test "${ac_cv_prog_CC+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19915 if test -n "$CC"; then
19916 ac_cv_prog_CC="$CC" # Let the user override the test.
19917 else
19918 ac_prog_rejected=no
19919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19920 for as_dir in $PATH
19922 IFS=$as_save_IFS
19923 test -z "$as_dir" && as_dir=.
19924 for ac_exec_ext in '' $ac_executable_extensions; do
19925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19927 ac_prog_rejected=yes
19928 continue
19930 ac_cv_prog_CC="cc"
19931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19932 break 2
19934 done
19935 done
19936 IFS=$as_save_IFS
19938 if test $ac_prog_rejected = yes; then
19939 # We found a bogon in the path, so make sure we never use it.
19940 set dummy $ac_cv_prog_CC
19941 shift
19942 if test $# != 0; then
19943 # We chose a different compiler from the bogus one.
19944 # However, it has the same basename, so the bogon will be chosen
19945 # first if we set CC to just the basename; use the full file name.
19946 shift
19947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19952 CC=$ac_cv_prog_CC
19953 if test -n "$CC"; then
19954 { echo "$as_me:$LINENO: result: $CC" >&5
19955 echo "${ECHO_T}$CC" >&6; }
19956 else
19957 { echo "$as_me:$LINENO: result: no" >&5
19958 echo "${ECHO_T}no" >&6; }
19963 if test -z "$CC"; then
19964 if test -n "$ac_tool_prefix"; then
19965 for ac_prog in cl.exe
19967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19971 if test "${ac_cv_prog_CC+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 else
19974 if test -n "$CC"; then
19975 ac_cv_prog_CC="$CC" # Let the user override the test.
19976 else
19977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19978 for as_dir in $PATH
19980 IFS=$as_save_IFS
19981 test -z "$as_dir" && as_dir=.
19982 for ac_exec_ext in '' $ac_executable_extensions; do
19983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19986 break 2
19988 done
19989 done
19990 IFS=$as_save_IFS
19994 CC=$ac_cv_prog_CC
19995 if test -n "$CC"; then
19996 { echo "$as_me:$LINENO: result: $CC" >&5
19997 echo "${ECHO_T}$CC" >&6; }
19998 else
19999 { echo "$as_me:$LINENO: result: no" >&5
20000 echo "${ECHO_T}no" >&6; }
20004 test -n "$CC" && break
20005 done
20007 if test -z "$CC"; then
20008 ac_ct_CC=$CC
20009 for ac_prog in cl.exe
20011 # Extract the first word of "$ac_prog", so it can be a program name with args.
20012 set dummy $ac_prog; ac_word=$2
20013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018 if test -n "$ac_ct_CC"; then
20019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20020 else
20021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20022 for as_dir in $PATH
20024 IFS=$as_save_IFS
20025 test -z "$as_dir" && as_dir=.
20026 for ac_exec_ext in '' $ac_executable_extensions; do
20027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20028 ac_cv_prog_ac_ct_CC="$ac_prog"
20029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20030 break 2
20032 done
20033 done
20034 IFS=$as_save_IFS
20038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20039 if test -n "$ac_ct_CC"; then
20040 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20041 echo "${ECHO_T}$ac_ct_CC" >&6; }
20042 else
20043 { echo "$as_me:$LINENO: result: no" >&5
20044 echo "${ECHO_T}no" >&6; }
20048 test -n "$ac_ct_CC" && break
20049 done
20051 if test "x$ac_ct_CC" = x; then
20052 CC=""
20053 else
20054 case $cross_compiling:$ac_tool_warned in
20055 yes:)
20056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20057 whose name does not start with the host triplet. If you think this
20058 configuration is useful to you, please write to autoconf@gnu.org." >&5
20059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20060 whose name does not start with the host triplet. If you think this
20061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20062 ac_tool_warned=yes ;;
20063 esac
20064 CC=$ac_ct_CC
20071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20072 See \`config.log' for more details." >&5
20073 echo "$as_me: error: no acceptable C compiler found in \$PATH
20074 See \`config.log' for more details." >&2;}
20075 { (exit 1); exit 1; }; }
20077 # Provide some information about the compiler.
20078 echo "$as_me:$LINENO: checking for C compiler version" >&5
20079 ac_compiler=`set X $ac_compile; echo $2`
20080 { (ac_try="$ac_compiler --version >&5"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_compiler --version >&5") 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }
20090 { (ac_try="$ac_compiler -v >&5"
20091 case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094 esac
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_compiler -v >&5") 2>&5
20097 ac_status=$?
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }
20100 { (ac_try="$ac_compiler -V >&5"
20101 case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20104 esac
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_compiler -V >&5") 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }
20111 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20112 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20113 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116 cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h. */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20124 main ()
20126 #ifndef __GNUC__
20127 choke me
20128 #endif
20131 return 0;
20133 _ACEOF
20134 rm -f conftest.$ac_objext
20135 if { (ac_try="$ac_compile"
20136 case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20139 esac
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_compile") 2>conftest.er1
20142 ac_status=$?
20143 grep -v '^ *+' conftest.er1 >conftest.err
20144 rm -f conftest.er1
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && {
20148 test -z "$ac_c_werror_flag" ||
20149 test ! -s conftest.err
20150 } && test -s conftest.$ac_objext; then
20151 ac_compiler_gnu=yes
20152 else
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ac_compiler_gnu=no
20159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20163 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20164 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20165 GCC=`test $ac_compiler_gnu = yes && echo yes`
20166 ac_test_CFLAGS=${CFLAGS+set}
20167 ac_save_CFLAGS=$CFLAGS
20168 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20169 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20170 if test "${ac_cv_prog_cc_g+set}" = set; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 else
20173 ac_save_c_werror_flag=$ac_c_werror_flag
20174 ac_c_werror_flag=yes
20175 ac_cv_prog_cc_g=no
20176 CFLAGS="-g"
20177 cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h. */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20185 main ()
20189 return 0;
20191 _ACEOF
20192 rm -f conftest.$ac_objext
20193 if { (ac_try="$ac_compile"
20194 case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_compile") 2>conftest.er1
20200 ac_status=$?
20201 grep -v '^ *+' conftest.er1 >conftest.err
20202 rm -f conftest.er1
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } && {
20206 test -z "$ac_c_werror_flag" ||
20207 test ! -s conftest.err
20208 } && test -s conftest.$ac_objext; then
20209 ac_cv_prog_cc_g=yes
20210 else
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 CFLAGS=""
20215 cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h. */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20223 main ()
20227 return 0;
20229 _ACEOF
20230 rm -f conftest.$ac_objext
20231 if { (ac_try="$ac_compile"
20232 case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20235 esac
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_compile") 2>conftest.er1
20238 ac_status=$?
20239 grep -v '^ *+' conftest.er1 >conftest.err
20240 rm -f conftest.er1
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } && {
20244 test -z "$ac_c_werror_flag" ||
20245 test ! -s conftest.err
20246 } && test -s conftest.$ac_objext; then
20248 else
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ac_c_werror_flag=$ac_save_c_werror_flag
20253 CFLAGS="-g"
20254 cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h. */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20262 main ()
20266 return 0;
20268 _ACEOF
20269 rm -f conftest.$ac_objext
20270 if { (ac_try="$ac_compile"
20271 case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20277 ac_status=$?
20278 grep -v '^ *+' conftest.er1 >conftest.err
20279 rm -f conftest.er1
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
20286 ac_cv_prog_cc_g=yes
20287 else
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20301 ac_c_werror_flag=$ac_save_c_werror_flag
20303 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20304 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20305 if test "$ac_test_CFLAGS" = set; then
20306 CFLAGS=$ac_save_CFLAGS
20307 elif test $ac_cv_prog_cc_g = yes; then
20308 if test "$GCC" = yes; then
20309 CFLAGS="-g -O2"
20310 else
20311 CFLAGS="-g"
20313 else
20314 if test "$GCC" = yes; then
20315 CFLAGS="-O2"
20316 else
20317 CFLAGS=
20320 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20321 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20322 if test "${ac_cv_prog_cc_c89+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325 ac_cv_prog_cc_c89=no
20326 ac_save_CC=$CC
20327 cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h. */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20333 #include <stdarg.h>
20334 #include <stdio.h>
20335 #include <sys/types.h>
20336 #include <sys/stat.h>
20337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20338 struct buf { int x; };
20339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20340 static char *e (p, i)
20341 char **p;
20342 int i;
20344 return p[i];
20346 static char *f (char * (*g) (char **, int), char **p, ...)
20348 char *s;
20349 va_list v;
20350 va_start (v,p);
20351 s = g (p, va_arg (v,int));
20352 va_end (v);
20353 return s;
20356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20357 function prototypes and stuff, but not '\xHH' hex character constants.
20358 These don't provoke an error unfortunately, instead are silently treated
20359 as 'x'. The following induces an error, until -std is added to get
20360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20361 array size at least. It's necessary to write '\x00'==0 to get something
20362 that's true only with -std. */
20363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20366 inside strings and character constants. */
20367 #define FOO(x) 'x'
20368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20370 int test (int i, double x);
20371 struct s1 {int (*f) (int a);};
20372 struct s2 {int (*f) (double a);};
20373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20374 int argc;
20375 char **argv;
20377 main ()
20379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20381 return 0;
20383 _ACEOF
20384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20387 CC="$ac_save_CC $ac_arg"
20388 rm -f conftest.$ac_objext
20389 if { (ac_try="$ac_compile"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393 esac
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_compile") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest.$ac_objext; then
20405 ac_cv_prog_cc_c89=$ac_arg
20406 else
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20413 rm -f core conftest.err conftest.$ac_objext
20414 test "x$ac_cv_prog_cc_c89" != "xno" && break
20415 done
20416 rm -f conftest.$ac_ext
20417 CC=$ac_save_CC
20420 # AC_CACHE_VAL
20421 case "x$ac_cv_prog_cc_c89" in
20423 { echo "$as_me:$LINENO: result: none needed" >&5
20424 echo "${ECHO_T}none needed" >&6; } ;;
20425 xno)
20426 { echo "$as_me:$LINENO: result: unsupported" >&5
20427 echo "${ECHO_T}unsupported" >&6; } ;;
20429 CC="$CC $ac_cv_prog_cc_c89"
20430 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20431 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20432 esac
20435 ac_ext=c
20436 ac_cpp='$CPP $CPPFLAGS'
20437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20441 depcc="$CC" am_compiler_list=
20443 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20444 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20445 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20449 # We make a subdir and do the tests there. Otherwise we can end up
20450 # making bogus files that we don't know about and never remove. For
20451 # instance it was reported that on HP-UX the gcc test will end up
20452 # making a dummy file named `D' -- because `-MD' means `put the output
20453 # in D'.
20454 mkdir conftest.dir
20455 # Copy depcomp to subdir because otherwise we won't find it if we're
20456 # using a relative directory.
20457 cp "$am_depcomp" conftest.dir
20458 cd conftest.dir
20459 # We will build objects and dependencies in a subdirectory because
20460 # it helps to detect inapplicable dependency modes. For instance
20461 # both Tru64's cc and ICC support -MD to output dependencies as a
20462 # side effect of compilation, but ICC will put the dependencies in
20463 # the current directory while Tru64 will put them in the object
20464 # directory.
20465 mkdir sub
20467 am_cv_CC_dependencies_compiler_type=none
20468 if test "$am_compiler_list" = ""; then
20469 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20471 for depmode in $am_compiler_list; do
20472 # Setup a source with many dependencies, because some compilers
20473 # like to wrap large dependency lists on column 80 (with \), and
20474 # we should not choose a depcomp mode which is confused by this.
20476 # We need to recreate these files for each test, as the compiler may
20477 # overwrite some of them when testing with obscure command lines.
20478 # This happens at least with the AIX C compiler.
20479 : > sub/conftest.c
20480 for i in 1 2 3 4 5 6; do
20481 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20482 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20483 # Solaris 8's {/usr,}/bin/sh.
20484 touch sub/conftst$i.h
20485 done
20486 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20488 case $depmode in
20489 nosideeffect)
20490 # after this tag, mechanisms are not by side-effect, so they'll
20491 # only be used when explicitly requested
20492 if test "x$enable_dependency_tracking" = xyes; then
20493 continue
20494 else
20495 break
20498 none) break ;;
20499 esac
20500 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20501 # mode. It turns out that the SunPro C++ compiler does not properly
20502 # handle `-M -o', and we need to detect this.
20503 if depmode=$depmode \
20504 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20506 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20507 >/dev/null 2>conftest.err &&
20508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20510 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20512 # icc doesn't choke on unknown options, it will just issue warnings
20513 # or remarks (even with -Werror). So we grep stderr for any message
20514 # that says an option was ignored or not supported.
20515 # When given -MP, icc 7.0 and 7.1 complain thusly:
20516 # icc: Command line warning: ignoring option '-M'; no argument required
20517 # The diagnosis changed in icc 8.0:
20518 # icc: Command line remark: option '-MP' not supported
20519 if (grep 'ignoring option' conftest.err ||
20520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20521 am_cv_CC_dependencies_compiler_type=$depmode
20522 break
20525 done
20527 cd ..
20528 rm -rf conftest.dir
20529 else
20530 am_cv_CC_dependencies_compiler_type=none
20534 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20535 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20536 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20539 test "x$enable_dependency_tracking" != xno \
20540 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20541 am__fastdepCC_TRUE=
20542 am__fastdepCC_FALSE='#'
20543 else
20544 am__fastdepCC_TRUE='#'
20545 am__fastdepCC_FALSE=
20549 # By default we simply use the C compiler to build assembly code.
20551 test "${CCAS+set}" = set || CCAS=$CC
20552 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
20556 depcc="$CCAS" am_compiler_list=
20558 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20559 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20560 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20564 # We make a subdir and do the tests there. Otherwise we can end up
20565 # making bogus files that we don't know about and never remove. For
20566 # instance it was reported that on HP-UX the gcc test will end up
20567 # making a dummy file named `D' -- because `-MD' means `put the output
20568 # in D'.
20569 mkdir conftest.dir
20570 # Copy depcomp to subdir because otherwise we won't find it if we're
20571 # using a relative directory.
20572 cp "$am_depcomp" conftest.dir
20573 cd conftest.dir
20574 # We will build objects and dependencies in a subdirectory because
20575 # it helps to detect inapplicable dependency modes. For instance
20576 # both Tru64's cc and ICC support -MD to output dependencies as a
20577 # side effect of compilation, but ICC will put the dependencies in
20578 # the current directory while Tru64 will put them in the object
20579 # directory.
20580 mkdir sub
20582 am_cv_CCAS_dependencies_compiler_type=none
20583 if test "$am_compiler_list" = ""; then
20584 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20586 for depmode in $am_compiler_list; do
20587 # Setup a source with many dependencies, because some compilers
20588 # like to wrap large dependency lists on column 80 (with \), and
20589 # we should not choose a depcomp mode which is confused by this.
20591 # We need to recreate these files for each test, as the compiler may
20592 # overwrite some of them when testing with obscure command lines.
20593 # This happens at least with the AIX C compiler.
20594 : > sub/conftest.c
20595 for i in 1 2 3 4 5 6; do
20596 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20597 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20598 # Solaris 8's {/usr,}/bin/sh.
20599 touch sub/conftst$i.h
20600 done
20601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20603 case $depmode in
20604 nosideeffect)
20605 # after this tag, mechanisms are not by side-effect, so they'll
20606 # only be used when explicitly requested
20607 if test "x$enable_dependency_tracking" = xyes; then
20608 continue
20609 else
20610 break
20613 none) break ;;
20614 esac
20615 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20616 # mode. It turns out that the SunPro C++ compiler does not properly
20617 # handle `-M -o', and we need to detect this.
20618 if depmode=$depmode \
20619 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20621 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20622 >/dev/null 2>conftest.err &&
20623 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20624 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20625 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20626 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20627 # icc doesn't choke on unknown options, it will just issue warnings
20628 # or remarks (even with -Werror). So we grep stderr for any message
20629 # that says an option was ignored or not supported.
20630 # When given -MP, icc 7.0 and 7.1 complain thusly:
20631 # icc: Command line warning: ignoring option '-M'; no argument required
20632 # The diagnosis changed in icc 8.0:
20633 # icc: Command line remark: option '-MP' not supported
20634 if (grep 'ignoring option' conftest.err ||
20635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20636 am_cv_CCAS_dependencies_compiler_type=$depmode
20637 break
20640 done
20642 cd ..
20643 rm -rf conftest.dir
20644 else
20645 am_cv_CCAS_dependencies_compiler_type=none
20649 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
20650 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
20651 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
20654 test "x$enable_dependency_tracking" != xno \
20655 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
20656 am__fastdepCCAS_TRUE=
20657 am__fastdepCCAS_FALSE='#'
20658 else
20659 am__fastdepCCAS_TRUE='#'
20660 am__fastdepCCAS_FALSE=
20665 for ac_prog in ecj jikes "gcj -C" javac
20667 # Extract the first word of "$ac_prog", so it can be a program name with args.
20668 set dummy $ac_prog; ac_word=$2
20669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20671 if test "${ac_cv_prog_JAVAC+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674 if test -n "$JAVAC"; then
20675 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
20676 else
20677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20678 for as_dir in $PATH
20680 IFS=$as_save_IFS
20681 test -z "$as_dir" && as_dir=.
20682 for ac_exec_ext in '' $ac_executable_extensions; do
20683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20684 ac_cv_prog_JAVAC="$ac_prog"
20685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20686 break 2
20688 done
20689 done
20690 IFS=$as_save_IFS
20694 JAVAC=$ac_cv_prog_JAVAC
20695 if test -n "$JAVAC"; then
20696 { echo "$as_me:$LINENO: result: $JAVAC" >&5
20697 echo "${ECHO_T}$JAVAC" >&6; }
20698 else
20699 { echo "$as_me:$LINENO: result: no" >&5
20700 echo "${ECHO_T}no" >&6; }
20704 test -n "$JAVAC" && break
20705 done
20710 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
20711 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
20712 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 else
20715 ac_check_lib_save_LIBS=$LIBS
20716 LIBS="-lpthread $LIBS"
20717 cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h. */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20724 /* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20727 #ifdef __cplusplus
20728 extern "C"
20729 #endif
20730 char pthread_self ();
20732 main ()
20734 return pthread_self ();
20736 return 0;
20738 _ACEOF
20739 rm -f conftest.$ac_objext conftest$ac_exeext
20740 if { (ac_try="$ac_link"
20741 case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20744 esac
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_link") 2>conftest.er1
20747 ac_status=$?
20748 grep -v '^ *+' conftest.er1 >conftest.err
20749 rm -f conftest.er1
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && {
20753 test -z "$ac_c_werror_flag" ||
20754 test ! -s conftest.err
20755 } && test -s conftest$ac_exeext &&
20756 $as_test_x conftest$ac_exeext; then
20757 ac_cv_lib_pthread_pthread_self=yes
20758 else
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20762 ac_cv_lib_pthread_pthread_self=no
20765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20766 conftest$ac_exeext conftest.$ac_ext
20767 LIBS=$ac_check_lib_save_LIBS
20769 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
20770 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
20771 if test $ac_cv_lib_pthread_pthread_self = yes; then
20772 cat >>confdefs.h <<_ACEOF
20773 #define HAVE_LIBPTHREAD 1
20774 _ACEOF
20776 LIBS="-lpthread $LIBS"
20778 else
20779 { { echo "$as_me:$LINENO: error: libpthread is missing" >&5
20780 echo "$as_me: error: libpthread is missing" >&2;}
20781 { (exit 1); exit 1; }; }
20785 { echo "$as_me:$LINENO: checking for fmod in -lm" >&5
20786 echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; }
20787 if test "${ac_cv_lib_m_fmod+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790 ac_check_lib_save_LIBS=$LIBS
20791 LIBS="-lm $LIBS"
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h. */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 /* Override any GCC internal prototype to avoid an error.
20800 Use char because int might match the return type of a GCC
20801 builtin and then its argument prototype would still apply. */
20802 #ifdef __cplusplus
20803 extern "C"
20804 #endif
20805 char fmod ();
20807 main ()
20809 return fmod ();
20811 return 0;
20813 _ACEOF
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (ac_try="$ac_link"
20816 case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20819 esac
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_link") 2>conftest.er1
20822 ac_status=$?
20823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && {
20828 test -z "$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 } && test -s conftest$ac_exeext &&
20831 $as_test_x conftest$ac_exeext; then
20832 ac_cv_lib_m_fmod=yes
20833 else
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 ac_cv_lib_m_fmod=no
20840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20841 conftest$ac_exeext conftest.$ac_ext
20842 LIBS=$ac_check_lib_save_LIBS
20844 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
20845 echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; }
20846 if test $ac_cv_lib_m_fmod = yes; then
20847 cat >>confdefs.h <<_ACEOF
20848 #define HAVE_LIBM 1
20849 _ACEOF
20851 LIBS="-lm $LIBS"
20853 else
20854 { { echo "$as_me:$LINENO: error: libm is missing" >&5
20855 echo "$as_me: error: libm is missing" >&2;}
20856 { (exit 1); exit 1; }; }
20860 if test "$libdl_needed" != no; then
20862 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20863 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20864 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867 ac_check_lib_save_LIBS=$LIBS
20868 LIBS="-ldl $LIBS"
20869 cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h. */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20876 /* Override any GCC internal prototype to avoid an error.
20877 Use char because int might match the return type of a GCC
20878 builtin and then its argument prototype would still apply. */
20879 #ifdef __cplusplus
20880 extern "C"
20881 #endif
20882 char dlopen ();
20884 main ()
20886 return dlopen ();
20888 return 0;
20890 _ACEOF
20891 rm -f conftest.$ac_objext conftest$ac_exeext
20892 if { (ac_try="$ac_link"
20893 case "(($ac_try" in
20894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895 *) ac_try_echo=$ac_try;;
20896 esac
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898 (eval "$ac_link") 2>conftest.er1
20899 ac_status=$?
20900 grep -v '^ *+' conftest.er1 >conftest.err
20901 rm -f conftest.er1
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } && {
20905 test -z "$ac_c_werror_flag" ||
20906 test ! -s conftest.err
20907 } && test -s conftest$ac_exeext &&
20908 $as_test_x conftest$ac_exeext; then
20909 ac_cv_lib_dl_dlopen=yes
20910 else
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ac_cv_lib_dl_dlopen=no
20917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20918 conftest$ac_exeext conftest.$ac_ext
20919 LIBS=$ac_check_lib_save_LIBS
20921 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20923 if test $ac_cv_lib_dl_dlopen = yes; then
20924 cat >>confdefs.h <<_ACEOF
20925 #define HAVE_LIBDL 1
20926 _ACEOF
20928 LIBS="-ldl $LIBS"
20930 else
20931 { { echo "$as_me:$LINENO: error: libdl is missing" >&5
20932 echo "$as_me: error: libdl is missing" >&2;}
20933 { (exit 1); exit 1; }; }
20939 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
20940 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
20941 if test "${ac_cv_lib_z_inflate+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944 ac_check_lib_save_LIBS=$LIBS
20945 LIBS="-lz $LIBS"
20946 cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h. */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20953 /* Override any GCC internal prototype to avoid an error.
20954 Use char because int might match the return type of a GCC
20955 builtin and then its argument prototype would still apply. */
20956 #ifdef __cplusplus
20957 extern "C"
20958 #endif
20959 char inflate ();
20961 main ()
20963 return inflate ();
20965 return 0;
20967 _ACEOF
20968 rm -f conftest.$ac_objext conftest$ac_exeext
20969 if { (ac_try="$ac_link"
20970 case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_link") 2>conftest.er1
20976 ac_status=$?
20977 grep -v '^ *+' conftest.er1 >conftest.err
20978 rm -f conftest.er1
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } && {
20982 test -z "$ac_c_werror_flag" ||
20983 test ! -s conftest.err
20984 } && test -s conftest$ac_exeext &&
20985 $as_test_x conftest$ac_exeext; then
20986 ac_cv_lib_z_inflate=yes
20987 else
20988 echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20991 ac_cv_lib_z_inflate=no
20994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20995 conftest$ac_exeext conftest.$ac_ext
20996 LIBS=$ac_check_lib_save_LIBS
20998 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
20999 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
21000 if test $ac_cv_lib_z_inflate = yes; then
21001 cat >>confdefs.h <<_ACEOF
21002 #define HAVE_LIBZ 1
21003 _ACEOF
21005 LIBS="-lz $LIBS"
21007 else
21008 if test "$enable_zip" != no; then
21009 { echo "$as_me:$LINENO: WARNING: cannot find libz -- zip/jar support in bootclasspath is disabled" >&5
21010 echo "$as_me: WARNING: cannot find libz -- zip/jar support in bootclasspath is disabled" >&2;}
21011 enable_zip=no
21017 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
21018 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
21019 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21021 else
21022 ac_check_lib_save_LIBS=$LIBS
21023 LIBS="-lffi $LIBS"
21024 cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h. */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21031 /* Override any GCC internal prototype to avoid an error.
21032 Use char because int might match the return type of a GCC
21033 builtin and then its argument prototype would still apply. */
21034 #ifdef __cplusplus
21035 extern "C"
21036 #endif
21037 char ffi_call ();
21039 main ()
21041 return ffi_call ();
21043 return 0;
21045 _ACEOF
21046 rm -f conftest.$ac_objext conftest$ac_exeext
21047 if { (ac_try="$ac_link"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_link") 2>conftest.er1
21054 ac_status=$?
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest$ac_exeext &&
21063 $as_test_x conftest$ac_exeext; then
21064 ac_cv_lib_ffi_ffi_call=yes
21065 else
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_cv_lib_ffi_ffi_call=no
21072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21073 conftest$ac_exeext conftest.$ac_ext
21074 LIBS=$ac_check_lib_save_LIBS
21076 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
21077 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
21078 if test $ac_cv_lib_ffi_ffi_call = yes; then
21079 cat >>confdefs.h <<_ACEOF
21080 #define HAVE_LIBFFI 1
21081 _ACEOF
21083 LIBS="-lffi $LIBS"
21085 else
21086 if test "$enable_ffi" != no; then
21087 { { echo "$as_me:$LINENO: error: cannot find libffi" >&5
21088 echo "$as_me: error: cannot find libffi" >&2;}
21089 { (exit 1); exit 1; }; }
21094 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21095 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21096 if test "${ac_cv_header_stdc+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099 cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h. */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 #include <stdlib.h>
21106 #include <stdarg.h>
21107 #include <string.h>
21108 #include <float.h>
21111 main ()
21115 return 0;
21117 _ACEOF
21118 rm -f conftest.$ac_objext
21119 if { (ac_try="$ac_compile"
21120 case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21123 esac
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_compile") 2>conftest.er1
21126 ac_status=$?
21127 grep -v '^ *+' conftest.er1 >conftest.err
21128 rm -f conftest.er1
21129 cat conftest.err >&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest.$ac_objext; then
21135 ac_cv_header_stdc=yes
21136 else
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ac_cv_header_stdc=no
21143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21145 if test $ac_cv_header_stdc = yes; then
21146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21147 cat >conftest.$ac_ext <<_ACEOF
21148 /* confdefs.h. */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h. */
21153 #include <string.h>
21155 _ACEOF
21156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21157 $EGREP "memchr" >/dev/null 2>&1; then
21159 else
21160 ac_cv_header_stdc=no
21162 rm -f conftest*
21166 if test $ac_cv_header_stdc = yes; then
21167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21168 cat >conftest.$ac_ext <<_ACEOF
21169 /* confdefs.h. */
21170 _ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h. */
21174 #include <stdlib.h>
21176 _ACEOF
21177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21178 $EGREP "free" >/dev/null 2>&1; then
21180 else
21181 ac_cv_header_stdc=no
21183 rm -f conftest*
21187 if test $ac_cv_header_stdc = yes; then
21188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21189 if test "$cross_compiling" = yes; then
21191 else
21192 cat >conftest.$ac_ext <<_ACEOF
21193 /* confdefs.h. */
21194 _ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21198 #include <ctype.h>
21199 #include <stdlib.h>
21200 #if ((' ' & 0x0FF) == 0x020)
21201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21203 #else
21204 # define ISLOWER(c) \
21205 (('a' <= (c) && (c) <= 'i') \
21206 || ('j' <= (c) && (c) <= 'r') \
21207 || ('s' <= (c) && (c) <= 'z'))
21208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21209 #endif
21211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21213 main ()
21215 int i;
21216 for (i = 0; i < 256; i++)
21217 if (XOR (islower (i), ISLOWER (i))
21218 || toupper (i) != TOUPPER (i))
21219 return 2;
21220 return 0;
21222 _ACEOF
21223 rm -f conftest$ac_exeext
21224 if { (ac_try="$ac_link"
21225 case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21228 esac
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_link") 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21234 { (case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_try") 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21244 else
21245 echo "$as_me: program exited with status $ac_status" >&5
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ( exit $ac_status )
21250 ac_cv_header_stdc=no
21252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21258 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21259 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21260 if test $ac_cv_header_stdc = yes; then
21262 cat >>confdefs.h <<\_ACEOF
21263 #define STDC_HEADERS 1
21264 _ACEOF
21269 if test "${ac_cv_header_zlib_h+set}" = set; then
21270 { echo "$as_me:$LINENO: checking for zlib.h" >&5
21271 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
21272 if test "${ac_cv_header_zlib_h+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21276 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
21277 else
21278 # Is the header compilable?
21279 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
21280 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
21281 cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h. */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 $ac_includes_default
21288 #include <zlib.h>
21289 _ACEOF
21290 rm -f conftest.$ac_objext
21291 if { (ac_try="$ac_compile"
21292 case "(($ac_try" in
21293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294 *) ac_try_echo=$ac_try;;
21295 esac
21296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21297 (eval "$ac_compile") 2>conftest.er1
21298 ac_status=$?
21299 grep -v '^ *+' conftest.er1 >conftest.err
21300 rm -f conftest.er1
21301 cat conftest.err >&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } && {
21304 test -z "$ac_c_werror_flag" ||
21305 test ! -s conftest.err
21306 } && test -s conftest.$ac_objext; then
21307 ac_header_compiler=yes
21308 else
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21312 ac_header_compiler=no
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21317 echo "${ECHO_T}$ac_header_compiler" >&6; }
21319 # Is the header present?
21320 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
21321 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
21322 cat >conftest.$ac_ext <<_ACEOF
21323 /* confdefs.h. */
21324 _ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21328 #include <zlib.h>
21329 _ACEOF
21330 if { (ac_try="$ac_cpp conftest.$ac_ext"
21331 case "(($ac_try" in
21332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333 *) ac_try_echo=$ac_try;;
21334 esac
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21337 ac_status=$?
21338 grep -v '^ *+' conftest.er1 >conftest.err
21339 rm -f conftest.er1
21340 cat conftest.err >&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } >/dev/null && {
21343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21344 test ! -s conftest.err
21345 }; then
21346 ac_header_preproc=yes
21347 else
21348 echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21351 ac_header_preproc=no
21354 rm -f conftest.err conftest.$ac_ext
21355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21356 echo "${ECHO_T}$ac_header_preproc" >&6; }
21358 # So? What about this header?
21359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21360 yes:no: )
21361 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21362 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21363 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21364 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21365 ac_header_preproc=yes
21367 no:yes:* )
21368 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21369 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
21370 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21371 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21372 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21373 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21375 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21377 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21379 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
21382 esac
21383 { echo "$as_me:$LINENO: checking for zlib.h" >&5
21384 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
21385 if test "${ac_cv_header_zlib_h+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 else
21388 ac_cv_header_zlib_h=$ac_header_preproc
21390 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21391 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
21394 if test $ac_cv_header_zlib_h = yes; then
21396 else
21397 if test "$enable_zip" != no; then
21398 { echo "$as_me:$LINENO: WARNING: cannot find zlib.h -- zip/jar support in bootclasspath is disabled" >&5
21399 echo "$as_me: WARNING: cannot find zlib.h -- zip/jar support in bootclasspath is disabled" >&2;}
21400 enable_zip=no
21406 if test "${ac_cv_header_ffi_h+set}" = set; then
21407 { echo "$as_me:$LINENO: checking for ffi.h" >&5
21408 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
21409 if test "${ac_cv_header_ffi_h+set}" = set; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21412 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
21413 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
21414 else
21415 # Is the header compilable?
21416 { echo "$as_me:$LINENO: checking ffi.h usability" >&5
21417 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
21418 cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h. */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 $ac_includes_default
21425 #include <ffi.h>
21426 _ACEOF
21427 rm -f conftest.$ac_objext
21428 if { (ac_try="$ac_compile"
21429 case "(($ac_try" in
21430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431 *) ac_try_echo=$ac_try;;
21432 esac
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434 (eval "$ac_compile") 2>conftest.er1
21435 ac_status=$?
21436 grep -v '^ *+' conftest.er1 >conftest.err
21437 rm -f conftest.er1
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && {
21441 test -z "$ac_c_werror_flag" ||
21442 test ! -s conftest.err
21443 } && test -s conftest.$ac_objext; then
21444 ac_header_compiler=yes
21445 else
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21449 ac_header_compiler=no
21452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21454 echo "${ECHO_T}$ac_header_compiler" >&6; }
21456 # Is the header present?
21457 { echo "$as_me:$LINENO: checking ffi.h presence" >&5
21458 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h. */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 #include <ffi.h>
21466 _ACEOF
21467 if { (ac_try="$ac_cpp conftest.$ac_ext"
21468 case "(($ac_try" in
21469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470 *) ac_try_echo=$ac_try;;
21471 esac
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21474 ac_status=$?
21475 grep -v '^ *+' conftest.er1 >conftest.err
21476 rm -f conftest.er1
21477 cat conftest.err >&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } >/dev/null && {
21480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21481 test ! -s conftest.err
21482 }; then
21483 ac_header_preproc=yes
21484 else
21485 echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21488 ac_header_preproc=no
21491 rm -f conftest.err conftest.$ac_ext
21492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21493 echo "${ECHO_T}$ac_header_preproc" >&6; }
21495 # So? What about this header?
21496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21497 yes:no: )
21498 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
21499 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
21501 echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
21502 ac_header_preproc=yes
21504 no:yes:* )
21505 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
21506 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
21508 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
21510 echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
21512 echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
21514 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
21516 echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
21519 esac
21520 { echo "$as_me:$LINENO: checking for ffi.h" >&5
21521 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
21522 if test "${ac_cv_header_ffi_h+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21524 else
21525 ac_cv_header_ffi_h=$ac_header_preproc
21527 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
21528 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
21531 if test $ac_cv_header_ffi_h = yes; then
21533 else
21534 if test "$enable_ffi" != no; then
21535 { { echo "$as_me:$LINENO: error: cannot find ffi.h" >&5
21536 echo "$as_me: error: cannot find ffi.h" >&2;}
21537 { (exit 1); exit 1; }; }
21543 if test "$enable_zip" != no; then
21545 cat >>confdefs.h <<\_ACEOF
21546 #define USE_ZIP 1
21547 _ACEOF
21549 use_zip_yes=
21550 use_zip_no='#'
21551 else
21552 use_zip_yes='#'
21553 use_zip_no=
21559 if test "$enable_ffi" != no; then
21561 cat >>confdefs.h <<\_ACEOF
21562 #define USE_FFI 1
21563 _ACEOF
21572 for ac_header in sys/time.h unistd.h endian.h sys/param.h locale.h
21574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 ac_res=`eval echo '${'$as_ac_Header'}'`
21582 { echo "$as_me:$LINENO: result: $ac_res" >&5
21583 echo "${ECHO_T}$ac_res" >&6; }
21584 else
21585 # Is the header compilable?
21586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21588 cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h. */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 $ac_includes_default
21595 #include <$ac_header>
21596 _ACEOF
21597 rm -f conftest.$ac_objext
21598 if { (ac_try="$ac_compile"
21599 case "(($ac_try" in
21600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601 *) ac_try_echo=$ac_try;;
21602 esac
21603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604 (eval "$ac_compile") 2>conftest.er1
21605 ac_status=$?
21606 grep -v '^ *+' conftest.er1 >conftest.err
21607 rm -f conftest.er1
21608 cat conftest.err >&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } && {
21611 test -z "$ac_c_werror_flag" ||
21612 test ! -s conftest.err
21613 } && test -s conftest.$ac_objext; then
21614 ac_header_compiler=yes
21615 else
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21619 ac_header_compiler=no
21622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21624 echo "${ECHO_T}$ac_header_compiler" >&6; }
21626 # Is the header present?
21627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21629 cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h. */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635 #include <$ac_header>
21636 _ACEOF
21637 if { (ac_try="$ac_cpp conftest.$ac_ext"
21638 case "(($ac_try" in
21639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640 *) ac_try_echo=$ac_try;;
21641 esac
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21644 ac_status=$?
21645 grep -v '^ *+' conftest.er1 >conftest.err
21646 rm -f conftest.er1
21647 cat conftest.err >&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } >/dev/null && {
21650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21651 test ! -s conftest.err
21652 }; then
21653 ac_header_preproc=yes
21654 else
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21658 ac_header_preproc=no
21661 rm -f conftest.err conftest.$ac_ext
21662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21663 echo "${ECHO_T}$ac_header_preproc" >&6; }
21665 # So? What about this header?
21666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21667 yes:no: )
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21672 ac_header_preproc=yes
21674 no:yes:* )
21675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21689 esac
21690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21693 echo $ECHO_N "(cached) $ECHO_C" >&6
21694 else
21695 eval "$as_ac_Header=\$ac_header_preproc"
21697 ac_res=`eval echo '${'$as_ac_Header'}'`
21698 { echo "$as_me:$LINENO: result: $ac_res" >&5
21699 echo "${ECHO_T}$ac_res" >&6; }
21702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21703 cat >>confdefs.h <<_ACEOF
21704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21705 _ACEOF
21709 done
21712 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21713 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21714 if test "${ac_cv_c_const+set}" = set; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21716 else
21717 cat >conftest.$ac_ext <<_ACEOF
21718 /* confdefs.h. */
21719 _ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21725 main ()
21727 /* FIXME: Include the comments suggested by Paul. */
21728 #ifndef __cplusplus
21729 /* Ultrix mips cc rejects this. */
21730 typedef int charset[2];
21731 const charset cs;
21732 /* SunOS 4.1.1 cc rejects this. */
21733 char const *const *pcpcc;
21734 char **ppc;
21735 /* NEC SVR4.0.2 mips cc rejects this. */
21736 struct point {int x, y;};
21737 static struct point const zero = {0,0};
21738 /* AIX XL C 1.02.0.0 rejects this.
21739 It does not let you subtract one const X* pointer from another in
21740 an arm of an if-expression whose if-part is not a constant
21741 expression */
21742 const char *g = "string";
21743 pcpcc = &g + (g ? g-g : 0);
21744 /* HPUX 7.0 cc rejects these. */
21745 ++pcpcc;
21746 ppc = (char**) pcpcc;
21747 pcpcc = (char const *const *) ppc;
21748 { /* SCO 3.2v4 cc rejects this. */
21749 char *t;
21750 char const *s = 0 ? (char *) 0 : (char const *) 0;
21752 *t++ = 0;
21753 if (s) return 0;
21755 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21756 int x[] = {25, 17};
21757 const int *foo = &x[0];
21758 ++foo;
21760 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21761 typedef const int *iptr;
21762 iptr p = 0;
21763 ++p;
21765 { /* AIX XL C 1.02.0.0 rejects this saying
21766 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21767 struct s { int j; const int *ap[3]; };
21768 struct s *b; b->j = 5;
21770 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21771 const int foo = 10;
21772 if (!foo) return 0;
21774 return !cs[0] && !zero.x;
21775 #endif
21778 return 0;
21780 _ACEOF
21781 rm -f conftest.$ac_objext
21782 if { (ac_try="$ac_compile"
21783 case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21786 esac
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_compile") 2>conftest.er1
21789 ac_status=$?
21790 grep -v '^ *+' conftest.er1 >conftest.err
21791 rm -f conftest.er1
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } && {
21795 test -z "$ac_c_werror_flag" ||
21796 test ! -s conftest.err
21797 } && test -s conftest.$ac_objext; then
21798 ac_cv_c_const=yes
21799 else
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21803 ac_cv_c_const=no
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21809 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21810 if test $ac_cv_c_const = no; then
21812 cat >>confdefs.h <<\_ACEOF
21813 #define const
21814 _ACEOF
21818 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21819 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21820 if test "${ac_cv_header_time+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 else
21823 cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h. */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 #include <sys/types.h>
21830 #include <sys/time.h>
21831 #include <time.h>
21834 main ()
21836 if ((struct tm *) 0)
21837 return 0;
21839 return 0;
21841 _ACEOF
21842 rm -f conftest.$ac_objext
21843 if { (ac_try="$ac_compile"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_compile") 2>conftest.er1
21850 ac_status=$?
21851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest.$ac_objext; then
21859 ac_cv_header_time=yes
21860 else
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 ac_cv_header_time=no
21867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21870 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21871 if test $ac_cv_header_time = yes; then
21873 cat >>confdefs.h <<\_ACEOF
21874 #define TIME_WITH_SYS_TIME 1
21875 _ACEOF
21880 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21881 # for constant arguments. Useless!
21882 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
21883 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
21884 if test "${ac_cv_working_alloca_h+set}" = set; then
21885 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 else
21887 cat >conftest.$ac_ext <<_ACEOF
21888 /* confdefs.h. */
21889 _ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21893 #include <alloca.h>
21895 main ()
21897 char *p = (char *) alloca (2 * sizeof (int));
21898 if (p) return 0;
21900 return 0;
21902 _ACEOF
21903 rm -f conftest.$ac_objext conftest$ac_exeext
21904 if { (ac_try="$ac_link"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908 esac
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_link") 2>conftest.er1
21911 ac_status=$?
21912 grep -v '^ *+' conftest.er1 >conftest.err
21913 rm -f conftest.er1
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest$ac_exeext &&
21920 $as_test_x conftest$ac_exeext; then
21921 ac_cv_working_alloca_h=yes
21922 else
21923 echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21926 ac_cv_working_alloca_h=no
21929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21930 conftest$ac_exeext conftest.$ac_ext
21932 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21933 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
21934 if test $ac_cv_working_alloca_h = yes; then
21936 cat >>confdefs.h <<\_ACEOF
21937 #define HAVE_ALLOCA_H 1
21938 _ACEOF
21942 { echo "$as_me:$LINENO: checking for alloca" >&5
21943 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
21944 if test "${ac_cv_func_alloca_works+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 #ifdef __GNUC__
21954 # define alloca __builtin_alloca
21955 #else
21956 # ifdef _MSC_VER
21957 # include <malloc.h>
21958 # define alloca _alloca
21959 # else
21960 # ifdef HAVE_ALLOCA_H
21961 # include <alloca.h>
21962 # else
21963 # ifdef _AIX
21964 #pragma alloca
21965 # else
21966 # ifndef alloca /* predefined by HP cc +Olibcalls */
21967 char *alloca ();
21968 # endif
21969 # endif
21970 # endif
21971 # endif
21972 #endif
21975 main ()
21977 char *p = (char *) alloca (1);
21978 if (p) return 0;
21980 return 0;
21982 _ACEOF
21983 rm -f conftest.$ac_objext conftest$ac_exeext
21984 if { (ac_try="$ac_link"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21988 esac
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_link") 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } && {
21997 test -z "$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 } && test -s conftest$ac_exeext &&
22000 $as_test_x conftest$ac_exeext; then
22001 ac_cv_func_alloca_works=yes
22002 else
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 ac_cv_func_alloca_works=no
22009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22010 conftest$ac_exeext conftest.$ac_ext
22012 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22013 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
22015 if test $ac_cv_func_alloca_works = yes; then
22017 cat >>confdefs.h <<\_ACEOF
22018 #define HAVE_ALLOCA 1
22019 _ACEOF
22021 else
22022 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22023 # that cause trouble. Some versions do not even contain alloca or
22024 # contain a buggy version. If you still want to use their alloca,
22025 # use ar to extract alloca.o from them instead of compiling alloca.c.
22027 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22029 cat >>confdefs.h <<\_ACEOF
22030 #define C_ALLOCA 1
22031 _ACEOF
22034 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22035 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
22036 if test "${ac_cv_os_cray+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039 cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h. */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 #if defined CRAY && ! defined CRAY2
22046 webecray
22047 #else
22048 wenotbecray
22049 #endif
22051 _ACEOF
22052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22053 $EGREP "webecray" >/dev/null 2>&1; then
22054 ac_cv_os_cray=yes
22055 else
22056 ac_cv_os_cray=no
22058 rm -f conftest*
22061 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22062 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
22063 if test $ac_cv_os_cray = yes; then
22064 for ac_func in _getb67 GETB67 getb67; do
22065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 else
22071 cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h. */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22079 #define $ac_func innocuous_$ac_func
22081 /* System header to define __stub macros and hopefully few prototypes,
22082 which can conflict with char $ac_func (); below.
22083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22084 <limits.h> exists even on freestanding compilers. */
22086 #ifdef __STDC__
22087 # include <limits.h>
22088 #else
22089 # include <assert.h>
22090 #endif
22092 #undef $ac_func
22094 /* Override any GCC internal prototype to avoid an error.
22095 Use char because int might match the return type of a GCC
22096 builtin and then its argument prototype would still apply. */
22097 #ifdef __cplusplus
22098 extern "C"
22099 #endif
22100 char $ac_func ();
22101 /* The GNU C library defines this for functions which it implements
22102 to always fail with ENOSYS. Some functions are actually named
22103 something starting with __ and the normal name is an alias. */
22104 #if defined __stub_$ac_func || defined __stub___$ac_func
22105 choke me
22106 #endif
22109 main ()
22111 return $ac_func ();
22113 return 0;
22115 _ACEOF
22116 rm -f conftest.$ac_objext conftest$ac_exeext
22117 if { (ac_try="$ac_link"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_link") 2>conftest.er1
22124 ac_status=$?
22125 grep -v '^ *+' conftest.er1 >conftest.err
22126 rm -f conftest.er1
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest$ac_exeext &&
22133 $as_test_x conftest$ac_exeext; then
22134 eval "$as_ac_var=yes"
22135 else
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22139 eval "$as_ac_var=no"
22142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22143 conftest$ac_exeext conftest.$ac_ext
22145 ac_res=`eval echo '${'$as_ac_var'}'`
22146 { echo "$as_me:$LINENO: result: $ac_res" >&5
22147 echo "${ECHO_T}$ac_res" >&6; }
22148 if test `eval echo '${'$as_ac_var'}'` = yes; then
22150 cat >>confdefs.h <<_ACEOF
22151 #define CRAY_STACKSEG_END $ac_func
22152 _ACEOF
22154 break
22157 done
22160 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22161 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
22162 if test "${ac_cv_c_stack_direction+set}" = set; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
22164 else
22165 if test "$cross_compiling" = yes; then
22166 ac_cv_c_stack_direction=0
22167 else
22168 cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h. */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174 $ac_includes_default
22176 find_stack_direction ()
22178 static char *addr = 0;
22179 auto char dummy;
22180 if (addr == 0)
22182 addr = &dummy;
22183 return find_stack_direction ();
22185 else
22186 return (&dummy > addr) ? 1 : -1;
22190 main ()
22192 return find_stack_direction () < 0;
22194 _ACEOF
22195 rm -f conftest$ac_exeext
22196 if { (ac_try="$ac_link"
22197 case "(($ac_try" in
22198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199 *) ac_try_echo=$ac_try;;
22200 esac
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202 (eval "$ac_link") 2>&5
22203 ac_status=$?
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22206 { (case "(($ac_try" in
22207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208 *) ac_try_echo=$ac_try;;
22209 esac
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_try") 2>&5
22212 ac_status=$?
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; }; then
22215 ac_cv_c_stack_direction=1
22216 else
22217 echo "$as_me: program exited with status $ac_status" >&5
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22221 ( exit $ac_status )
22222 ac_cv_c_stack_direction=-1
22224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22229 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22230 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
22232 cat >>confdefs.h <<_ACEOF
22233 #define STACK_DIRECTION $ac_cv_c_stack_direction
22234 _ACEOF
22241 for ac_header in stdlib.h unistd.h
22243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 ac_res=`eval echo '${'$as_ac_Header'}'`
22251 { echo "$as_me:$LINENO: result: $ac_res" >&5
22252 echo "${ECHO_T}$ac_res" >&6; }
22253 else
22254 # Is the header compilable?
22255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22257 cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h. */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 $ac_includes_default
22264 #include <$ac_header>
22265 _ACEOF
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_compile") 2>conftest.er1
22274 ac_status=$?
22275 grep -v '^ *+' conftest.er1 >conftest.err
22276 rm -f conftest.er1
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && {
22280 test -z "$ac_c_werror_flag" ||
22281 test ! -s conftest.err
22282 } && test -s conftest.$ac_objext; then
22283 ac_header_compiler=yes
22284 else
22285 echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22288 ac_header_compiler=no
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22293 echo "${ECHO_T}$ac_header_compiler" >&6; }
22295 # Is the header present?
22296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22298 cat >conftest.$ac_ext <<_ACEOF
22299 /* confdefs.h. */
22300 _ACEOF
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h. */
22304 #include <$ac_header>
22305 _ACEOF
22306 if { (ac_try="$ac_cpp conftest.$ac_ext"
22307 case "(($ac_try" in
22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22310 esac
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22313 ac_status=$?
22314 grep -v '^ *+' conftest.er1 >conftest.err
22315 rm -f conftest.er1
22316 cat conftest.err >&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } >/dev/null && {
22319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 }; then
22322 ac_header_preproc=yes
22323 else
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ac_header_preproc=no
22330 rm -f conftest.err conftest.$ac_ext
22331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22332 echo "${ECHO_T}$ac_header_preproc" >&6; }
22334 # So? What about this header?
22335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22336 yes:no: )
22337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22341 ac_header_preproc=yes
22343 no:yes:* )
22344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22358 esac
22359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22363 else
22364 eval "$as_ac_Header=\$ac_header_preproc"
22366 ac_res=`eval echo '${'$as_ac_Header'}'`
22367 { echo "$as_me:$LINENO: result: $ac_res" >&5
22368 echo "${ECHO_T}$ac_res" >&6; }
22371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22372 cat >>confdefs.h <<_ACEOF
22373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22374 _ACEOF
22378 done
22381 for ac_func in getpagesize
22383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22388 else
22389 cat >conftest.$ac_ext <<_ACEOF
22390 /* confdefs.h. */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22397 #define $ac_func innocuous_$ac_func
22399 /* System header to define __stub macros and hopefully few prototypes,
22400 which can conflict with char $ac_func (); below.
22401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22402 <limits.h> exists even on freestanding compilers. */
22404 #ifdef __STDC__
22405 # include <limits.h>
22406 #else
22407 # include <assert.h>
22408 #endif
22410 #undef $ac_func
22412 /* Override any GCC internal prototype to avoid an error.
22413 Use char because int might match the return type of a GCC
22414 builtin and then its argument prototype would still apply. */
22415 #ifdef __cplusplus
22416 extern "C"
22417 #endif
22418 char $ac_func ();
22419 /* The GNU C library defines this for functions which it implements
22420 to always fail with ENOSYS. Some functions are actually named
22421 something starting with __ and the normal name is an alias. */
22422 #if defined __stub_$ac_func || defined __stub___$ac_func
22423 choke me
22424 #endif
22427 main ()
22429 return $ac_func ();
22431 return 0;
22433 _ACEOF
22434 rm -f conftest.$ac_objext conftest$ac_exeext
22435 if { (ac_try="$ac_link"
22436 case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22439 esac
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_link") 2>conftest.er1
22442 ac_status=$?
22443 grep -v '^ *+' conftest.er1 >conftest.err
22444 rm -f conftest.er1
22445 cat conftest.err >&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest$ac_exeext &&
22451 $as_test_x conftest$ac_exeext; then
22452 eval "$as_ac_var=yes"
22453 else
22454 echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22457 eval "$as_ac_var=no"
22460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22461 conftest$ac_exeext conftest.$ac_ext
22463 ac_res=`eval echo '${'$as_ac_var'}'`
22464 { echo "$as_me:$LINENO: result: $ac_res" >&5
22465 echo "${ECHO_T}$ac_res" >&6; }
22466 if test `eval echo '${'$as_ac_var'}'` = yes; then
22467 cat >>confdefs.h <<_ACEOF
22468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22469 _ACEOF
22472 done
22474 { echo "$as_me:$LINENO: checking for working mmap" >&5
22475 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22476 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22478 else
22479 if test "$cross_compiling" = yes; then
22480 ac_cv_func_mmap_fixed_mapped=no
22481 else
22482 cat >conftest.$ac_ext <<_ACEOF
22483 /* confdefs.h. */
22484 _ACEOF
22485 cat confdefs.h >>conftest.$ac_ext
22486 cat >>conftest.$ac_ext <<_ACEOF
22487 /* end confdefs.h. */
22488 $ac_includes_default
22489 /* malloc might have been renamed as rpl_malloc. */
22490 #undef malloc
22492 /* Thanks to Mike Haertel and Jim Avera for this test.
22493 Here is a matrix of mmap possibilities:
22494 mmap private not fixed
22495 mmap private fixed at somewhere currently unmapped
22496 mmap private fixed at somewhere already mapped
22497 mmap shared not fixed
22498 mmap shared fixed at somewhere currently unmapped
22499 mmap shared fixed at somewhere already mapped
22500 For private mappings, we should verify that changes cannot be read()
22501 back from the file, nor mmap's back from the file at a different
22502 address. (There have been systems where private was not correctly
22503 implemented like the infamous i386 svr4.0, and systems where the
22504 VM page cache was not coherent with the file system buffer cache
22505 like early versions of FreeBSD and possibly contemporary NetBSD.)
22506 For shared mappings, we should conversely verify that changes get
22507 propagated back to all the places they're supposed to be.
22509 Grep wants private fixed already mapped.
22510 The main things grep needs to know about mmap are:
22511 * does it exist and is it safe to write into the mmap'd area
22512 * how to use it (BSD variants) */
22514 #include <fcntl.h>
22515 #include <sys/mman.h>
22517 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22518 char *malloc ();
22519 #endif
22521 /* This mess was copied from the GNU getpagesize.h. */
22522 #ifndef HAVE_GETPAGESIZE
22523 /* Assume that all systems that can run configure have sys/param.h. */
22524 # ifndef HAVE_SYS_PARAM_H
22525 # define HAVE_SYS_PARAM_H 1
22526 # endif
22528 # ifdef _SC_PAGESIZE
22529 # define getpagesize() sysconf(_SC_PAGESIZE)
22530 # else /* no _SC_PAGESIZE */
22531 # ifdef HAVE_SYS_PARAM_H
22532 # include <sys/param.h>
22533 # ifdef EXEC_PAGESIZE
22534 # define getpagesize() EXEC_PAGESIZE
22535 # else /* no EXEC_PAGESIZE */
22536 # ifdef NBPG
22537 # define getpagesize() NBPG * CLSIZE
22538 # ifndef CLSIZE
22539 # define CLSIZE 1
22540 # endif /* no CLSIZE */
22541 # else /* no NBPG */
22542 # ifdef NBPC
22543 # define getpagesize() NBPC
22544 # else /* no NBPC */
22545 # ifdef PAGESIZE
22546 # define getpagesize() PAGESIZE
22547 # endif /* PAGESIZE */
22548 # endif /* no NBPC */
22549 # endif /* no NBPG */
22550 # endif /* no EXEC_PAGESIZE */
22551 # else /* no HAVE_SYS_PARAM_H */
22552 # define getpagesize() 8192 /* punt totally */
22553 # endif /* no HAVE_SYS_PARAM_H */
22554 # endif /* no _SC_PAGESIZE */
22556 #endif /* no HAVE_GETPAGESIZE */
22559 main ()
22561 char *data, *data2, *data3;
22562 int i, pagesize;
22563 int fd;
22565 pagesize = getpagesize ();
22567 /* First, make a file with some known garbage in it. */
22568 data = (char *) malloc (pagesize);
22569 if (!data)
22570 return 1;
22571 for (i = 0; i < pagesize; ++i)
22572 *(data + i) = rand ();
22573 umask (0);
22574 fd = creat ("conftest.mmap", 0600);
22575 if (fd < 0)
22576 return 1;
22577 if (write (fd, data, pagesize) != pagesize)
22578 return 1;
22579 close (fd);
22581 /* Next, try to mmap the file at a fixed address which already has
22582 something else allocated at it. If we can, also make sure that
22583 we see the same garbage. */
22584 fd = open ("conftest.mmap", O_RDWR);
22585 if (fd < 0)
22586 return 1;
22587 data2 = (char *) malloc (2 * pagesize);
22588 if (!data2)
22589 return 1;
22590 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22591 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22592 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22593 return 1;
22594 for (i = 0; i < pagesize; ++i)
22595 if (*(data + i) != *(data2 + i))
22596 return 1;
22598 /* Finally, make sure that changes to the mapped area do not
22599 percolate back to the file as seen by read(). (This is a bug on
22600 some variants of i386 svr4.0.) */
22601 for (i = 0; i < pagesize; ++i)
22602 *(data2 + i) = *(data2 + i) + 1;
22603 data3 = (char *) malloc (pagesize);
22604 if (!data3)
22605 return 1;
22606 if (read (fd, data3, pagesize) != pagesize)
22607 return 1;
22608 for (i = 0; i < pagesize; ++i)
22609 if (*(data + i) != *(data3 + i))
22610 return 1;
22611 close (fd);
22612 return 0;
22614 _ACEOF
22615 rm -f conftest$ac_exeext
22616 if { (ac_try="$ac_link"
22617 case "(($ac_try" in
22618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619 *) ac_try_echo=$ac_try;;
22620 esac
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622 (eval "$ac_link") 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22626 { (case "(($ac_try" in
22627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628 *) ac_try_echo=$ac_try;;
22629 esac
22630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631 (eval "$ac_try") 2>&5
22632 ac_status=$?
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; }; then
22635 ac_cv_func_mmap_fixed_mapped=yes
22636 else
22637 echo "$as_me: program exited with status $ac_status" >&5
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22641 ( exit $ac_status )
22642 ac_cv_func_mmap_fixed_mapped=no
22644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22649 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22650 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22651 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22653 cat >>confdefs.h <<\_ACEOF
22654 #define HAVE_MMAP 1
22655 _ACEOF
22658 rm -f conftest.mmap
22663 for ac_func in gettimeofday strtol setlocale
22665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22670 else
22671 cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h. */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22679 #define $ac_func innocuous_$ac_func
22681 /* System header to define __stub macros and hopefully few prototypes,
22682 which can conflict with char $ac_func (); below.
22683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22684 <limits.h> exists even on freestanding compilers. */
22686 #ifdef __STDC__
22687 # include <limits.h>
22688 #else
22689 # include <assert.h>
22690 #endif
22692 #undef $ac_func
22694 /* Override any GCC internal prototype to avoid an error.
22695 Use char because int might match the return type of a GCC
22696 builtin and then its argument prototype would still apply. */
22697 #ifdef __cplusplus
22698 extern "C"
22699 #endif
22700 char $ac_func ();
22701 /* The GNU C library defines this for functions which it implements
22702 to always fail with ENOSYS. Some functions are actually named
22703 something starting with __ and the normal name is an alias. */
22704 #if defined __stub_$ac_func || defined __stub___$ac_func
22705 choke me
22706 #endif
22709 main ()
22711 return $ac_func ();
22713 return 0;
22715 _ACEOF
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (ac_try="$ac_link"
22718 case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22721 esac
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_link") 2>conftest.er1
22724 ac_status=$?
22725 grep -v '^ *+' conftest.er1 >conftest.err
22726 rm -f conftest.er1
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } && {
22730 test -z "$ac_c_werror_flag" ||
22731 test ! -s conftest.err
22732 } && test -s conftest$ac_exeext &&
22733 $as_test_x conftest$ac_exeext; then
22734 eval "$as_ac_var=yes"
22735 else
22736 echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22739 eval "$as_ac_var=no"
22742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22743 conftest$ac_exeext conftest.$ac_ext
22745 ac_res=`eval echo '${'$as_ac_var'}'`
22746 { echo "$as_me:$LINENO: result: $ac_res" >&5
22747 echo "${ECHO_T}$ac_res" >&6; }
22748 if test `eval echo '${'$as_ac_var'}'` = yes; then
22749 cat >>confdefs.h <<_ACEOF
22750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22751 _ACEOF
22754 done
22756 if test $ac_cv_header_locale_h = yes; then
22757 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22758 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22759 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22760 echo $ECHO_N "(cached) $ECHO_C" >&6
22761 else
22762 cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h. */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 #include <locale.h>
22770 main ()
22772 return LC_MESSAGES
22774 return 0;
22776 _ACEOF
22777 rm -f conftest.$ac_objext conftest$ac_exeext
22778 if { (ac_try="$ac_link"
22779 case "(($ac_try" in
22780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781 *) ac_try_echo=$ac_try;;
22782 esac
22783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784 (eval "$ac_link") 2>conftest.er1
22785 ac_status=$?
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } && {
22791 test -z "$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 } && test -s conftest$ac_exeext &&
22794 $as_test_x conftest$ac_exeext; then
22795 am_cv_val_LC_MESSAGES=yes
22796 else
22797 echo "$as_me: failed program was:" >&5
22798 sed 's/^/| /' conftest.$ac_ext >&5
22800 am_cv_val_LC_MESSAGES=no
22803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22804 conftest$ac_exeext conftest.$ac_ext
22806 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22807 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
22808 if test $am_cv_val_LC_MESSAGES = yes; then
22810 cat >>confdefs.h <<\_ACEOF
22811 #define HAVE_LC_MESSAGES 1
22812 _ACEOF
22817 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
22818 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
22819 # Check whether --enable-maintainer-mode was given.
22820 if test "${enable_maintainer_mode+set}" = set; then
22821 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22822 else
22823 USE_MAINTAINER_MODE=no
22826 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
22827 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
22828 if test $USE_MAINTAINER_MODE = yes; then
22829 MAINTAINER_MODE_TRUE=
22830 MAINTAINER_MODE_FALSE='#'
22831 else
22832 MAINTAINER_MODE_TRUE='#'
22833 MAINTAINER_MODE_FALSE=
22836 MAINT=$MAINTAINER_MODE_TRUE
22840 ac_config_links="$ac_config_links src/arch.h:src/arch/$arch.h"
22843 ac_config_files="$ac_config_files Makefile src/Makefile src/interp/Makefile src/interp/engine/Makefile src/arch/Makefile src/os/Makefile src/os/linux/Makefile src/os/darwin/Makefile src/os/bsd/Makefile src/os/linux/powerpc/Makefile src/os/linux/arm/Makefile src/os/linux/i386/Makefile src/os/linux/x86_64/Makefile src/os/linux/avr32/Makefile src/os/linux/parisc/Makefile src/os/linux/mips/Makefile src/os/darwin/i386/Makefile src/os/darwin/powerpc/Makefile src/os/bsd/powerpc/Makefile src/os/bsd/arm/Makefile src/os/bsd/i386/Makefile src/os/bsd/x86_64/Makefile lib/Makefile lib/java/Makefile lib/java/lang/Makefile lib/jamvm/Makefile lib/jamvm/java/Makefile lib/jamvm/java/lang/Makefile lib/java/lang/reflect/Makefile lib/java/security/Makefile lib/gnu/Makefile lib/sun/reflect/annotation/Makefile lib/sun/reflect//Makefile lib/sun/Makefile lib/gnu/classpath/Makefile"
22846 cat >confcache <<\_ACEOF
22847 # This file is a shell script that caches the results of configure
22848 # tests run on this system so they can be shared between configure
22849 # scripts and configure runs, see configure's option --config-cache.
22850 # It is not useful on other systems. If it contains results you don't
22851 # want to keep, you may remove or edit it.
22853 # config.status only pays attention to the cache file if you give it
22854 # the --recheck option to rerun configure.
22856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22858 # following values.
22860 _ACEOF
22862 # The following way of writing the cache mishandles newlines in values,
22863 # but we know of no workaround that is simple, portable, and efficient.
22864 # So, we kill variables containing newlines.
22865 # Ultrix sh set writes to stderr and can't be redirected directly,
22866 # and sets the high bit in the cache file unless we assign to the vars.
22868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22869 eval ac_val=\$$ac_var
22870 case $ac_val in #(
22871 *${as_nl}*)
22872 case $ac_var in #(
22873 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22874 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22875 esac
22876 case $ac_var in #(
22877 _ | IFS | as_nl) ;; #(
22878 *) $as_unset $ac_var ;;
22879 esac ;;
22880 esac
22881 done
22883 (set) 2>&1 |
22884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22885 *${as_nl}ac_space=\ *)
22886 # `set' does not quote correctly, so add quotes (double-quote
22887 # substitution turns \\\\ into \\, and sed turns \\ into \).
22888 sed -n \
22889 "s/'/'\\\\''/g;
22890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22891 ;; #(
22893 # `set' quotes correctly as required by POSIX, so do not add quotes.
22894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22896 esac |
22897 sort
22899 sed '
22900 /^ac_cv_env_/b end
22901 t clear
22902 :clear
22903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22904 t end
22905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22906 :end' >>confcache
22907 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22908 if test -w "$cache_file"; then
22909 test "x$cache_file" != "x/dev/null" &&
22910 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22911 echo "$as_me: updating cache $cache_file" >&6;}
22912 cat confcache >$cache_file
22913 else
22914 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22915 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22918 rm -f confcache
22920 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22921 # Let make expand exec_prefix.
22922 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22924 DEFS=-DHAVE_CONFIG_H
22926 ac_libobjs=
22927 ac_ltlibobjs=
22928 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22929 # 1. Remove the extension, and $U if already installed.
22930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22931 ac_i=`echo "$ac_i" | sed "$ac_script"`
22932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22933 # will be set to the directory where LIBOBJS objects are built.
22934 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22935 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22936 done
22937 LIBOBJS=$ac_libobjs
22939 LTLIBOBJS=$ac_ltlibobjs
22942 if test -z "${COMPILE_TIME_RELOC_CHECKS_TRUE}" && test -z "${COMPILE_TIME_RELOC_CHECKS_FALSE}"; then
22943 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_TIME_RELOC_CHECKS\" was never defined.
22944 Usually this means the macro was only invoked conditionally." >&5
22945 echo "$as_me: error: conditional \"COMPILE_TIME_RELOC_CHECKS\" was never defined.
22946 Usually this means the macro was only invoked conditionally." >&2;}
22947 { (exit 1); exit 1; }; }
22949 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22950 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22951 Usually this means the macro was only invoked conditionally." >&5
22952 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22953 Usually this means the macro was only invoked conditionally." >&2;}
22954 { (exit 1); exit 1; }; }
22956 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22957 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22958 Usually this means the macro was only invoked conditionally." >&5
22959 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22960 Usually this means the macro was only invoked conditionally." >&2;}
22961 { (exit 1); exit 1; }; }
22963 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22964 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22965 Usually this means the macro was only invoked conditionally." >&5
22966 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22967 Usually this means the macro was only invoked conditionally." >&2;}
22968 { (exit 1); exit 1; }; }
22970 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22971 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22972 Usually this means the macro was only invoked conditionally." >&5
22973 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22974 Usually this means the macro was only invoked conditionally." >&2;}
22975 { (exit 1); exit 1; }; }
22977 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22978 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
22979 Usually this means the macro was only invoked conditionally." >&5
22980 echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
22981 Usually this means the macro was only invoked conditionally." >&2;}
22982 { (exit 1); exit 1; }; }
22984 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22985 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22986 Usually this means the macro was only invoked conditionally." >&5
22987 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22988 Usually this means the macro was only invoked conditionally." >&2;}
22989 { (exit 1); exit 1; }; }
22992 : ${CONFIG_STATUS=./config.status}
22993 ac_clean_files_save=$ac_clean_files
22994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22995 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22996 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22997 cat >$CONFIG_STATUS <<_ACEOF
22998 #! $SHELL
22999 # Generated by $as_me.
23000 # Run this file to recreate the current configuration.
23001 # Compiler output produced by configure, useful for debugging
23002 # configure, is in config.log if it exists.
23004 debug=false
23005 ac_cs_recheck=false
23006 ac_cs_silent=false
23007 SHELL=\${CONFIG_SHELL-$SHELL}
23008 _ACEOF
23010 cat >>$CONFIG_STATUS <<\_ACEOF
23011 ## --------------------- ##
23012 ## M4sh Initialization. ##
23013 ## --------------------- ##
23015 # Be more Bourne compatible
23016 DUALCASE=1; export DUALCASE # for MKS sh
23017 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23018 emulate sh
23019 NULLCMD=:
23020 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23021 # is contrary to our usage. Disable this feature.
23022 alias -g '${1+"$@"}'='"$@"'
23023 setopt NO_GLOB_SUBST
23024 else
23025 case `(set -o) 2>/dev/null` in
23026 *posix*) set -o posix ;;
23027 esac
23034 # PATH needs CR
23035 # Avoid depending upon Character Ranges.
23036 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23037 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23038 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23039 as_cr_digits='0123456789'
23040 as_cr_alnum=$as_cr_Letters$as_cr_digits
23042 # The user is always right.
23043 if test "${PATH_SEPARATOR+set}" != set; then
23044 echo "#! /bin/sh" >conf$$.sh
23045 echo "exit 0" >>conf$$.sh
23046 chmod +x conf$$.sh
23047 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23048 PATH_SEPARATOR=';'
23049 else
23050 PATH_SEPARATOR=:
23052 rm -f conf$$.sh
23055 # Support unset when possible.
23056 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23057 as_unset=unset
23058 else
23059 as_unset=false
23063 # IFS
23064 # We need space, tab and new line, in precisely that order. Quoting is
23065 # there to prevent editors from complaining about space-tab.
23066 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23067 # splitting by setting IFS to empty value.)
23068 as_nl='
23070 IFS=" "" $as_nl"
23072 # Find who we are. Look in the path if we contain no directory separator.
23073 case $0 in
23074 *[\\/]* ) as_myself=$0 ;;
23075 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23076 for as_dir in $PATH
23078 IFS=$as_save_IFS
23079 test -z "$as_dir" && as_dir=.
23080 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23081 done
23082 IFS=$as_save_IFS
23085 esac
23086 # We did not find ourselves, most probably we were run as `sh COMMAND'
23087 # in which case we are not to be found in the path.
23088 if test "x$as_myself" = x; then
23089 as_myself=$0
23091 if test ! -f "$as_myself"; then
23092 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23093 { (exit 1); exit 1; }
23096 # Work around bugs in pre-3.0 UWIN ksh.
23097 for as_var in ENV MAIL MAILPATH
23098 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23099 done
23100 PS1='$ '
23101 PS2='> '
23102 PS4='+ '
23104 # NLS nuisances.
23105 for as_var in \
23106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23108 LC_TELEPHONE LC_TIME
23110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23111 eval $as_var=C; export $as_var
23112 else
23113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23115 done
23117 # Required to use basename.
23118 if expr a : '\(a\)' >/dev/null 2>&1 &&
23119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23120 as_expr=expr
23121 else
23122 as_expr=false
23125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23126 as_basename=basename
23127 else
23128 as_basename=false
23132 # Name of the executable.
23133 as_me=`$as_basename -- "$0" ||
23134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23135 X"$0" : 'X\(//\)$' \| \
23136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23137 echo X/"$0" |
23138 sed '/^.*\/\([^/][^/]*\)\/*$/{
23139 s//\1/
23142 /^X\/\(\/\/\)$/{
23143 s//\1/
23146 /^X\/\(\/\).*/{
23147 s//\1/
23150 s/.*/./; q'`
23152 # CDPATH.
23153 $as_unset CDPATH
23157 as_lineno_1=$LINENO
23158 as_lineno_2=$LINENO
23159 test "x$as_lineno_1" != "x$as_lineno_2" &&
23160 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23162 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23163 # uniformly replaced by the line number. The first 'sed' inserts a
23164 # line-number line after each line using $LINENO; the second 'sed'
23165 # does the real work. The second script uses 'N' to pair each
23166 # line-number line with the line containing $LINENO, and appends
23167 # trailing '-' during substitution so that $LINENO is not a special
23168 # case at line end.
23169 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23170 # scripts with optimization help from Paolo Bonzini. Blame Lee
23171 # E. McMahon (1931-1989) for sed's syntax. :-)
23172 sed -n '
23174 /[$]LINENO/=
23175 ' <$as_myself |
23176 sed '
23177 s/[$]LINENO.*/&-/
23178 t lineno
23180 :lineno
23182 :loop
23183 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23184 t loop
23185 s/-\n.*//
23186 ' >$as_me.lineno &&
23187 chmod +x "$as_me.lineno" ||
23188 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23189 { (exit 1); exit 1; }; }
23191 # Don't try to exec as it changes $[0], causing all sort of problems
23192 # (the dirname of $[0] is not the place where we might find the
23193 # original and so on. Autoconf is especially sensitive to this).
23194 . "./$as_me.lineno"
23195 # Exit status is that of the last command.
23196 exit
23200 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23201 as_dirname=dirname
23202 else
23203 as_dirname=false
23206 ECHO_C= ECHO_N= ECHO_T=
23207 case `echo -n x` in
23208 -n*)
23209 case `echo 'x\c'` in
23210 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23211 *) ECHO_C='\c';;
23212 esac;;
23214 ECHO_N='-n';;
23215 esac
23217 if expr a : '\(a\)' >/dev/null 2>&1 &&
23218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23219 as_expr=expr
23220 else
23221 as_expr=false
23224 rm -f conf$$ conf$$.exe conf$$.file
23225 if test -d conf$$.dir; then
23226 rm -f conf$$.dir/conf$$.file
23227 else
23228 rm -f conf$$.dir
23229 mkdir conf$$.dir
23231 echo >conf$$.file
23232 if ln -s conf$$.file conf$$ 2>/dev/null; then
23233 as_ln_s='ln -s'
23234 # ... but there are two gotchas:
23235 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23236 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23237 # In both cases, we have to default to `cp -p'.
23238 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23239 as_ln_s='cp -p'
23240 elif ln conf$$.file conf$$ 2>/dev/null; then
23241 as_ln_s=ln
23242 else
23243 as_ln_s='cp -p'
23245 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23246 rmdir conf$$.dir 2>/dev/null
23248 if mkdir -p . 2>/dev/null; then
23249 as_mkdir_p=:
23250 else
23251 test -d ./-p && rmdir ./-p
23252 as_mkdir_p=false
23255 if test -x / >/dev/null 2>&1; then
23256 as_test_x='test -x'
23257 else
23258 if ls -dL / >/dev/null 2>&1; then
23259 as_ls_L_option=L
23260 else
23261 as_ls_L_option=
23263 as_test_x='
23264 eval sh -c '\''
23265 if test -d "$1"; then
23266 test -d "$1/.";
23267 else
23268 case $1 in
23269 -*)set "./$1";;
23270 esac;
23271 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23272 ???[sx]*):;;*)false;;esac;fi
23273 '\'' sh
23276 as_executable_p=$as_test_x
23278 # Sed expression to map a string onto a valid CPP name.
23279 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23281 # Sed expression to map a string onto a valid variable name.
23282 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23285 exec 6>&1
23287 # Save the log message, to keep $[0] and so on meaningful, and to
23288 # report actual input values of CONFIG_FILES etc. instead of their
23289 # values after options handling.
23290 ac_log="
23291 This file was extended by $as_me, which was
23292 generated by GNU Autoconf 2.61. Invocation command line was
23294 CONFIG_FILES = $CONFIG_FILES
23295 CONFIG_HEADERS = $CONFIG_HEADERS
23296 CONFIG_LINKS = $CONFIG_LINKS
23297 CONFIG_COMMANDS = $CONFIG_COMMANDS
23298 $ $0 $@
23300 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23303 _ACEOF
23305 cat >>$CONFIG_STATUS <<_ACEOF
23306 # Files that config.status was made for.
23307 config_files="$ac_config_files"
23308 config_headers="$ac_config_headers"
23309 config_links="$ac_config_links"
23310 config_commands="$ac_config_commands"
23312 _ACEOF
23314 cat >>$CONFIG_STATUS <<\_ACEOF
23315 ac_cs_usage="\
23316 \`$as_me' instantiates files from templates according to the
23317 current configuration.
23319 Usage: $0 [OPTIONS] [FILE]...
23321 -h, --help print this help, then exit
23322 -V, --version print version number and configuration settings, then exit
23323 -q, --quiet do not print progress messages
23324 -d, --debug don't remove temporary files
23325 --recheck update $as_me by reconfiguring in the same conditions
23326 --file=FILE[:TEMPLATE]
23327 instantiate the configuration file FILE
23328 --header=FILE[:TEMPLATE]
23329 instantiate the configuration header FILE
23331 Configuration files:
23332 $config_files
23334 Configuration headers:
23335 $config_headers
23337 Configuration links:
23338 $config_links
23340 Configuration commands:
23341 $config_commands
23343 Report bugs to <bug-autoconf@gnu.org>."
23345 _ACEOF
23346 cat >>$CONFIG_STATUS <<_ACEOF
23347 ac_cs_version="\\
23348 config.status
23349 configured by $0, generated by GNU Autoconf 2.61,
23350 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23352 Copyright (C) 2006 Free Software Foundation, Inc.
23353 This config.status script is free software; the Free Software Foundation
23354 gives unlimited permission to copy, distribute and modify it."
23356 ac_pwd='$ac_pwd'
23357 srcdir='$srcdir'
23358 INSTALL='$INSTALL'
23359 MKDIR_P='$MKDIR_P'
23360 _ACEOF
23362 cat >>$CONFIG_STATUS <<\_ACEOF
23363 # If no file are specified by the user, then we need to provide default
23364 # value. By we need to know if files were specified by the user.
23365 ac_need_defaults=:
23366 while test $# != 0
23368 case $1 in
23369 --*=*)
23370 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23371 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23372 ac_shift=:
23375 ac_option=$1
23376 ac_optarg=$2
23377 ac_shift=shift
23379 esac
23381 case $ac_option in
23382 # Handling of the options.
23383 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23384 ac_cs_recheck=: ;;
23385 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23386 echo "$ac_cs_version"; exit ;;
23387 --debug | --debu | --deb | --de | --d | -d )
23388 debug=: ;;
23389 --file | --fil | --fi | --f )
23390 $ac_shift
23391 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23392 ac_need_defaults=false;;
23393 --header | --heade | --head | --hea )
23394 $ac_shift
23395 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23396 ac_need_defaults=false;;
23397 --he | --h)
23398 # Conflict between --help and --header
23399 { echo "$as_me: error: ambiguous option: $1
23400 Try \`$0 --help' for more information." >&2
23401 { (exit 1); exit 1; }; };;
23402 --help | --hel | -h )
23403 echo "$ac_cs_usage"; exit ;;
23404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23406 ac_cs_silent=: ;;
23408 # This is an error.
23409 -*) { echo "$as_me: error: unrecognized option: $1
23410 Try \`$0 --help' for more information." >&2
23411 { (exit 1); exit 1; }; } ;;
23413 *) ac_config_targets="$ac_config_targets $1"
23414 ac_need_defaults=false ;;
23416 esac
23417 shift
23418 done
23420 ac_configure_extra_args=
23422 if $ac_cs_silent; then
23423 exec 6>/dev/null
23424 ac_configure_extra_args="$ac_configure_extra_args --silent"
23427 _ACEOF
23428 cat >>$CONFIG_STATUS <<_ACEOF
23429 if \$ac_cs_recheck; then
23430 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23431 CONFIG_SHELL=$SHELL
23432 export CONFIG_SHELL
23433 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23436 _ACEOF
23437 cat >>$CONFIG_STATUS <<\_ACEOF
23438 exec 5>>config.log
23440 echo
23441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23442 ## Running $as_me. ##
23443 _ASBOX
23444 echo "$ac_log"
23445 } >&5
23447 _ACEOF
23448 cat >>$CONFIG_STATUS <<_ACEOF
23450 # INIT-COMMANDS
23452 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23454 _ACEOF
23456 cat >>$CONFIG_STATUS <<\_ACEOF
23458 # Handling of arguments.
23459 for ac_config_target in $ac_config_targets
23461 case $ac_config_target in
23462 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
23463 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23464 "src/arch.h") CONFIG_LINKS="$CONFIG_LINKS src/arch.h:src/arch/$arch.h" ;;
23465 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23466 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23467 "src/interp/Makefile") CONFIG_FILES="$CONFIG_FILES src/interp/Makefile" ;;
23468 "src/interp/engine/Makefile") CONFIG_FILES="$CONFIG_FILES src/interp/engine/Makefile" ;;
23469 "src/arch/Makefile") CONFIG_FILES="$CONFIG_FILES src/arch/Makefile" ;;
23470 "src/os/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/Makefile" ;;
23471 "src/os/linux/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/Makefile" ;;
23472 "src/os/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/darwin/Makefile" ;;
23473 "src/os/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/bsd/Makefile" ;;
23474 "src/os/linux/powerpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/powerpc/Makefile" ;;
23475 "src/os/linux/arm/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/arm/Makefile" ;;
23476 "src/os/linux/i386/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/i386/Makefile" ;;
23477 "src/os/linux/x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/x86_64/Makefile" ;;
23478 "src/os/linux/parisc/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/parisc/Makefile" ;;
23479 "src/os/linux/avr32/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/avr32/Makefile" ;;
23480 "src/os/linux/mips/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/mips/Makefile" ;;
23481 "src/os/darwin/i386/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/darwin/i386/Makefile" ;;
23482 "src/os/darwin/powerpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/darwin/powerpc/Makefile" ;;
23483 "src/os/bsd/powerpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/bsd/powerpc/Makefile" ;;
23484 "src/os/bsd/arm/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/bsd/arm/Makefile" ;;
23485 "src/os/bsd/i386/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/bsd/i386/Makefile" ;;
23486 "src/os/bsd/x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/bsd/x86_64/Makefile" ;;
23487 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23488 "lib/java/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/Makefile" ;;
23489 "lib/java/lang/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/lang/Makefile" ;;
23490 "lib/jamvm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/jamvm/Makefile" ;;
23491 "lib/jamvm/java/Makefile") CONFIG_FILES="$CONFIG_FILES lib/jamvm/java/Makefile" ;;
23492 "lib/jamvm/java/lang/Makefile") CONFIG_FILES="$CONFIG_FILES lib/jamvm/java/lang/Makefile" ;;
23493 "lib/java/lang/reflect/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/lang/reflect/Makefile" ;;
23494 "lib/java/security/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/security/Makefile" ;;
23495 "lib/gnu/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gnu/Makefile" ;;
23496 "lib/sun/reflect/annotation/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sun/reflect/annotation/Makefile" ;;
23497 "lib/sun/reflect//Makefile") CONFIG_FILES="$CONFIG_FILES lib/sun/reflect//Makefile" ;;
23498 "lib/sun/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sun/Makefile" ;;
23499 "lib/gnu/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gnu/classpath/Makefile" ;;
23501 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23502 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23503 { (exit 1); exit 1; }; };;
23504 esac
23505 done
23508 # If the user did not use the arguments to specify the items to instantiate,
23509 # then the envvar interface is used. Set only those that are not.
23510 # We use the long form for the default assignment because of an extremely
23511 # bizarre bug on SunOS 4.1.3.
23512 if $ac_need_defaults; then
23513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23514 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23515 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23516 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23519 # Have a temporary directory for convenience. Make it in the build tree
23520 # simply because there is no reason against having it here, and in addition,
23521 # creating and moving files from /tmp can sometimes cause problems.
23522 # Hook for its removal unless debugging.
23523 # Note that there is a small window in which the directory will not be cleaned:
23524 # after its creation but before its name has been assigned to `$tmp'.
23525 $debug ||
23527 tmp=
23528 trap 'exit_status=$?
23529 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23531 trap '{ (exit 1); exit 1; }' 1 2 13 15
23533 # Create a (secure) tmp directory for tmp files.
23536 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23537 test -n "$tmp" && test -d "$tmp"
23538 } ||
23540 tmp=./conf$$-$RANDOM
23541 (umask 077 && mkdir "$tmp")
23542 } ||
23544 echo "$me: cannot create a temporary directory in ." >&2
23545 { (exit 1); exit 1; }
23549 # Set up the sed scripts for CONFIG_FILES section.
23552 # No need to generate the scripts if there are no CONFIG_FILES.
23553 # This happens for instance when ./config.status config.h
23554 if test -n "$CONFIG_FILES"; then
23556 _ACEOF
23560 ac_delim='%!_!# '
23561 for ac_last_try in false false false false false :; do
23562 cat >conf$$subs.sed <<_ACEOF
23563 SHELL!$SHELL$ac_delim
23564 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23565 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23566 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23567 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23568 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23569 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23570 exec_prefix!$exec_prefix$ac_delim
23571 prefix!$prefix$ac_delim
23572 program_transform_name!$program_transform_name$ac_delim
23573 bindir!$bindir$ac_delim
23574 sbindir!$sbindir$ac_delim
23575 libexecdir!$libexecdir$ac_delim
23576 datarootdir!$datarootdir$ac_delim
23577 datadir!$datadir$ac_delim
23578 sysconfdir!$sysconfdir$ac_delim
23579 sharedstatedir!$sharedstatedir$ac_delim
23580 localstatedir!$localstatedir$ac_delim
23581 includedir!$includedir$ac_delim
23582 oldincludedir!$oldincludedir$ac_delim
23583 docdir!$docdir$ac_delim
23584 infodir!$infodir$ac_delim
23585 htmldir!$htmldir$ac_delim
23586 dvidir!$dvidir$ac_delim
23587 pdfdir!$pdfdir$ac_delim
23588 psdir!$psdir$ac_delim
23589 libdir!$libdir$ac_delim
23590 localedir!$localedir$ac_delim
23591 mandir!$mandir$ac_delim
23592 DEFS!$DEFS$ac_delim
23593 ECHO_C!$ECHO_C$ac_delim
23594 ECHO_N!$ECHO_N$ac_delim
23595 ECHO_T!$ECHO_T$ac_delim
23596 LIBS!$LIBS$ac_delim
23597 build_alias!$build_alias$ac_delim
23598 host_alias!$host_alias$ac_delim
23599 target_alias!$target_alias$ac_delim
23600 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23601 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23602 INSTALL_DATA!$INSTALL_DATA$ac_delim
23603 am__isrc!$am__isrc$ac_delim
23604 CYGPATH_W!$CYGPATH_W$ac_delim
23605 PACKAGE!$PACKAGE$ac_delim
23606 VERSION!$VERSION$ac_delim
23607 ACLOCAL!$ACLOCAL$ac_delim
23608 AUTOCONF!$AUTOCONF$ac_delim
23609 AUTOMAKE!$AUTOMAKE$ac_delim
23610 AUTOHEADER!$AUTOHEADER$ac_delim
23611 MAKEINFO!$MAKEINFO$ac_delim
23612 install_sh!$install_sh$ac_delim
23613 STRIP!$STRIP$ac_delim
23614 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23615 mkdir_p!$mkdir_p$ac_delim
23616 AWK!$AWK$ac_delim
23617 SET_MAKE!$SET_MAKE$ac_delim
23618 am__leading_dot!$am__leading_dot$ac_delim
23619 AMTAR!$AMTAR$ac_delim
23620 am__tar!$am__tar$ac_delim
23621 am__untar!$am__untar$ac_delim
23622 build!$build$ac_delim
23623 build_cpu!$build_cpu$ac_delim
23624 build_vendor!$build_vendor$ac_delim
23625 build_os!$build_os$ac_delim
23626 host!$host$ac_delim
23627 host_cpu!$host_cpu$ac_delim
23628 host_vendor!$host_vendor$ac_delim
23629 host_os!$host_os$ac_delim
23630 arch!$arch$ac_delim
23631 os!$os$ac_delim
23632 interp_cflags!$interp_cflags$ac_delim
23633 COMPILE_TIME_RELOC_CHECKS_TRUE!$COMPILE_TIME_RELOC_CHECKS_TRUE$ac_delim
23634 COMPILE_TIME_RELOC_CHECKS_FALSE!$COMPILE_TIME_RELOC_CHECKS_FALSE$ac_delim
23635 with_classpath_install_dir!$with_classpath_install_dir$ac_delim
23636 CC!$CC$ac_delim
23637 CFLAGS!$CFLAGS$ac_delim
23638 LDFLAGS!$LDFLAGS$ac_delim
23639 CPPFLAGS!$CPPFLAGS$ac_delim
23640 ac_ct_CC!$ac_ct_CC$ac_delim
23641 EXEEXT!$EXEEXT$ac_delim
23642 OBJEXT!$OBJEXT$ac_delim
23643 DEPDIR!$DEPDIR$ac_delim
23644 am__include!$am__include$ac_delim
23645 am__quote!$am__quote$ac_delim
23646 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23647 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23648 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23649 CCDEPMODE!$CCDEPMODE$ac_delim
23650 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23651 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23652 SED!$SED$ac_delim
23653 GREP!$GREP$ac_delim
23654 EGREP!$EGREP$ac_delim
23655 LN_S!$LN_S$ac_delim
23656 ECHO!$ECHO$ac_delim
23657 AR!$AR$ac_delim
23658 RANLIB!$RANLIB$ac_delim
23659 CPP!$CPP$ac_delim
23660 _ACEOF
23662 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23663 break
23664 elif $ac_last_try; then
23665 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23667 { (exit 1); exit 1; }; }
23668 else
23669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23671 done
23673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23674 if test -n "$ac_eof"; then
23675 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23676 ac_eof=`expr $ac_eof + 1`
23679 cat >>$CONFIG_STATUS <<_ACEOF
23680 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23682 _ACEOF
23683 sed '
23684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23685 s/^/s,@/; s/!/@,|#_!!_#|/
23688 s/'"$ac_delim"'$/,g/; t
23689 s/$/\\/; p
23690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23691 ' >>$CONFIG_STATUS <conf$$subs.sed
23692 rm -f conf$$subs.sed
23693 cat >>$CONFIG_STATUS <<_ACEOF
23694 CEOF$ac_eof
23695 _ACEOF
23698 ac_delim='%!_!# '
23699 for ac_last_try in false false false false false :; do
23700 cat >conf$$subs.sed <<_ACEOF
23701 CXX!$CXX$ac_delim
23702 CXXFLAGS!$CXXFLAGS$ac_delim
23703 ac_ct_CXX!$ac_ct_CXX$ac_delim
23704 CXXDEPMODE!$CXXDEPMODE$ac_delim
23705 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23706 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23707 CXXCPP!$CXXCPP$ac_delim
23708 F77!$F77$ac_delim
23709 FFLAGS!$FFLAGS$ac_delim
23710 ac_ct_F77!$ac_ct_F77$ac_delim
23711 LIBTOOL!$LIBTOOL$ac_delim
23712 CCAS!$CCAS$ac_delim
23713 CCASFLAGS!$CCASFLAGS$ac_delim
23714 CCASDEPMODE!$CCASDEPMODE$ac_delim
23715 am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
23716 am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
23717 JAVAC!$JAVAC$ac_delim
23718 use_zip_yes!$use_zip_yes$ac_delim
23719 use_zip_no!$use_zip_no$ac_delim
23720 ALLOCA!$ALLOCA$ac_delim
23721 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23722 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23723 MAINT!$MAINT$ac_delim
23724 LIBOBJS!$LIBOBJS$ac_delim
23725 LTLIBOBJS!$LTLIBOBJS$ac_delim
23726 _ACEOF
23728 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
23729 break
23730 elif $ac_last_try; then
23731 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23732 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23733 { (exit 1); exit 1; }; }
23734 else
23735 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23737 done
23739 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23740 if test -n "$ac_eof"; then
23741 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23742 ac_eof=`expr $ac_eof + 1`
23745 cat >>$CONFIG_STATUS <<_ACEOF
23746 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23748 _ACEOF
23749 sed '
23750 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23751 s/^/s,@/; s/!/@,|#_!!_#|/
23754 s/'"$ac_delim"'$/,g/; t
23755 s/$/\\/; p
23756 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23757 ' >>$CONFIG_STATUS <conf$$subs.sed
23758 rm -f conf$$subs.sed
23759 cat >>$CONFIG_STATUS <<_ACEOF
23760 :end
23761 s/|#_!!_#|//g
23762 CEOF$ac_eof
23763 _ACEOF
23766 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23767 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23768 # trailing colons and then remove the whole line if VPATH becomes empty
23769 # (actually we leave an empty line to preserve line numbers).
23770 if test "x$srcdir" = x.; then
23771 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23772 s/:*\$(srcdir):*/:/
23773 s/:*\${srcdir}:*/:/
23774 s/:*@srcdir@:*/:/
23775 s/^\([^=]*=[ ]*\):*/\1/
23776 s/:*$//
23777 s/^[^=]*=[ ]*$//
23781 cat >>$CONFIG_STATUS <<\_ACEOF
23782 fi # test -n "$CONFIG_FILES"
23785 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
23787 case $ac_tag in
23788 :[FHLC]) ac_mode=$ac_tag; continue;;
23789 esac
23790 case $ac_mode$ac_tag in
23791 :[FHL]*:*);;
23792 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23793 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23794 { (exit 1); exit 1; }; };;
23795 :[FH]-) ac_tag=-:-;;
23796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23797 esac
23798 ac_save_IFS=$IFS
23799 IFS=:
23800 set x $ac_tag
23801 IFS=$ac_save_IFS
23802 shift
23803 ac_file=$1
23804 shift
23806 case $ac_mode in
23807 :L) ac_source=$1;;
23808 :[FH])
23809 ac_file_inputs=
23810 for ac_f
23812 case $ac_f in
23813 -) ac_f="$tmp/stdin";;
23814 *) # Look for the file first in the build tree, then in the source tree
23815 # (if the path is not absolute). The absolute path cannot be DOS-style,
23816 # because $ac_f cannot contain `:'.
23817 test -f "$ac_f" ||
23818 case $ac_f in
23819 [\\/$]*) false;;
23820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23821 esac ||
23822 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23823 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23824 { (exit 1); exit 1; }; };;
23825 esac
23826 ac_file_inputs="$ac_file_inputs $ac_f"
23827 done
23829 # Let's still pretend it is `configure' which instantiates (i.e., don't
23830 # use $as_me), people would be surprised to read:
23831 # /* config.h. Generated by config.status. */
23832 configure_input="Generated from "`IFS=:
23833 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23834 if test x"$ac_file" != x-; then
23835 configure_input="$ac_file. $configure_input"
23836 { echo "$as_me:$LINENO: creating $ac_file" >&5
23837 echo "$as_me: creating $ac_file" >&6;}
23840 case $ac_tag in
23841 *:-:* | *:-) cat >"$tmp/stdin";;
23842 esac
23844 esac
23846 ac_dir=`$as_dirname -- "$ac_file" ||
23847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23848 X"$ac_file" : 'X\(//\)[^/]' \| \
23849 X"$ac_file" : 'X\(//\)$' \| \
23850 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23851 echo X"$ac_file" |
23852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23853 s//\1/
23856 /^X\(\/\/\)[^/].*/{
23857 s//\1/
23860 /^X\(\/\/\)$/{
23861 s//\1/
23864 /^X\(\/\).*/{
23865 s//\1/
23868 s/.*/./; q'`
23869 { as_dir="$ac_dir"
23870 case $as_dir in #(
23871 -*) as_dir=./$as_dir;;
23872 esac
23873 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23874 as_dirs=
23875 while :; do
23876 case $as_dir in #(
23877 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23878 *) as_qdir=$as_dir;;
23879 esac
23880 as_dirs="'$as_qdir' $as_dirs"
23881 as_dir=`$as_dirname -- "$as_dir" ||
23882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23883 X"$as_dir" : 'X\(//\)[^/]' \| \
23884 X"$as_dir" : 'X\(//\)$' \| \
23885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23886 echo X"$as_dir" |
23887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23888 s//\1/
23891 /^X\(\/\/\)[^/].*/{
23892 s//\1/
23895 /^X\(\/\/\)$/{
23896 s//\1/
23899 /^X\(\/\).*/{
23900 s//\1/
23903 s/.*/./; q'`
23904 test -d "$as_dir" && break
23905 done
23906 test -z "$as_dirs" || eval "mkdir $as_dirs"
23907 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23908 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23909 { (exit 1); exit 1; }; }; }
23910 ac_builddir=.
23912 case "$ac_dir" in
23913 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23916 # A ".." for each directory in $ac_dir_suffix.
23917 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23918 case $ac_top_builddir_sub in
23919 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23920 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23921 esac ;;
23922 esac
23923 ac_abs_top_builddir=$ac_pwd
23924 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23925 # for backward compatibility:
23926 ac_top_builddir=$ac_top_build_prefix
23928 case $srcdir in
23929 .) # We are building in place.
23930 ac_srcdir=.
23931 ac_top_srcdir=$ac_top_builddir_sub
23932 ac_abs_top_srcdir=$ac_pwd ;;
23933 [\\/]* | ?:[\\/]* ) # Absolute name.
23934 ac_srcdir=$srcdir$ac_dir_suffix;
23935 ac_top_srcdir=$srcdir
23936 ac_abs_top_srcdir=$srcdir ;;
23937 *) # Relative name.
23938 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23939 ac_top_srcdir=$ac_top_build_prefix$srcdir
23940 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23941 esac
23942 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23945 case $ac_mode in
23948 # CONFIG_FILE
23951 case $INSTALL in
23952 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23953 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23954 esac
23955 ac_MKDIR_P=$MKDIR_P
23956 case $MKDIR_P in
23957 [\\/$]* | ?:[\\/]* ) ;;
23958 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23959 esac
23960 _ACEOF
23962 cat >>$CONFIG_STATUS <<\_ACEOF
23963 # If the template does not know about datarootdir, expand it.
23964 # FIXME: This hack should be removed a few years after 2.60.
23965 ac_datarootdir_hack=; ac_datarootdir_seen=
23967 case `sed -n '/datarootdir/ {
23971 /@datadir@/p
23972 /@docdir@/p
23973 /@infodir@/p
23974 /@localedir@/p
23975 /@mandir@/p
23976 ' $ac_file_inputs` in
23977 *datarootdir*) ac_datarootdir_seen=yes;;
23978 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23979 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23980 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23981 _ACEOF
23982 cat >>$CONFIG_STATUS <<_ACEOF
23983 ac_datarootdir_hack='
23984 s&@datadir@&$datadir&g
23985 s&@docdir@&$docdir&g
23986 s&@infodir@&$infodir&g
23987 s&@localedir@&$localedir&g
23988 s&@mandir@&$mandir&g
23989 s&\\\${datarootdir}&$datarootdir&g' ;;
23990 esac
23991 _ACEOF
23993 # Neutralize VPATH when `$srcdir' = `.'.
23994 # Shell code in configure.ac might set extrasub.
23995 # FIXME: do we really want to maintain this feature?
23996 cat >>$CONFIG_STATUS <<_ACEOF
23997 sed "$ac_vpsub
23998 $extrasub
23999 _ACEOF
24000 cat >>$CONFIG_STATUS <<\_ACEOF
24002 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24003 s&@configure_input@&$configure_input&;t t
24004 s&@top_builddir@&$ac_top_builddir_sub&;t t
24005 s&@srcdir@&$ac_srcdir&;t t
24006 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24007 s&@top_srcdir@&$ac_top_srcdir&;t t
24008 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24009 s&@builddir@&$ac_builddir&;t t
24010 s&@abs_builddir@&$ac_abs_builddir&;t t
24011 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24012 s&@INSTALL@&$ac_INSTALL&;t t
24013 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24014 $ac_datarootdir_hack
24015 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24018 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24020 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24021 which seems to be undefined. Please make sure it is defined." >&5
24022 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24023 which seems to be undefined. Please make sure it is defined." >&2;}
24025 rm -f "$tmp/stdin"
24026 case $ac_file in
24027 -) cat "$tmp/out"; rm -f "$tmp/out";;
24028 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24029 esac
24033 # CONFIG_HEADER
24035 _ACEOF
24037 # Transform confdefs.h into a sed script `conftest.defines', that
24038 # substitutes the proper values into config.h.in to produce config.h.
24039 rm -f conftest.defines conftest.tail
24040 # First, append a space to every undef/define line, to ease matching.
24041 echo 's/$/ /' >conftest.defines
24042 # Then, protect against being on the right side of a sed subst, or in
24043 # an unquoted here document, in config.status. If some macros were
24044 # called several times there might be several #defines for the same
24045 # symbol, which is useless. But do not sort them, since the last
24046 # AC_DEFINE must be honored.
24047 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24048 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24049 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24050 # PARAMS is the parameter list in the macro definition--in most cases, it's
24051 # just an empty string.
24052 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24053 ac_dB='\\)[ (].*,\\1define\\2'
24054 ac_dC=' '
24055 ac_dD=' ,'
24057 uniq confdefs.h |
24058 sed -n '
24059 t rset
24060 :rset
24061 s/^[ ]*#[ ]*define[ ][ ]*//
24062 t ok
24065 s/[\\&,]/\\&/g
24066 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24067 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24068 ' >>conftest.defines
24070 # Remove the space that was appended to ease matching.
24071 # Then replace #undef with comments. This is necessary, for
24072 # example, in the case of _POSIX_SOURCE, which is predefined and required
24073 # on some systems where configure will not decide to define it.
24074 # (The regexp can be short, since the line contains either #define or #undef.)
24075 echo 's/ $//
24076 s,^[ #]*u.*,/* & */,' >>conftest.defines
24078 # Break up conftest.defines:
24079 ac_max_sed_lines=50
24081 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24082 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24083 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24084 # et cetera.
24085 ac_in='$ac_file_inputs'
24086 ac_out='"$tmp/out1"'
24087 ac_nxt='"$tmp/out2"'
24089 while :
24091 # Write a here document:
24092 cat >>$CONFIG_STATUS <<_ACEOF
24093 # First, check the format of the line:
24094 cat >"\$tmp/defines.sed" <<\\CEOF
24095 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24096 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24098 :def
24099 _ACEOF
24100 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24101 echo 'CEOF
24102 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24103 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24104 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24105 grep . conftest.tail >/dev/null || break
24106 rm -f conftest.defines
24107 mv conftest.tail conftest.defines
24108 done
24109 rm -f conftest.defines conftest.tail
24111 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24112 cat >>$CONFIG_STATUS <<\_ACEOF
24113 if test x"$ac_file" != x-; then
24114 echo "/* $configure_input */" >"$tmp/config.h"
24115 cat "$ac_result" >>"$tmp/config.h"
24116 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24117 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24118 echo "$as_me: $ac_file is unchanged" >&6;}
24119 else
24120 rm -f $ac_file
24121 mv "$tmp/config.h" $ac_file
24123 else
24124 echo "/* $configure_input */"
24125 cat "$ac_result"
24127 rm -f "$tmp/out12"
24128 # Compute $ac_file's index in $config_headers.
24129 _am_stamp_count=1
24130 for _am_header in $config_headers :; do
24131 case $_am_header in
24132 $ac_file | $ac_file:* )
24133 break ;;
24135 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24136 esac
24137 done
24138 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24139 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24140 X$ac_file : 'X\(//\)[^/]' \| \
24141 X$ac_file : 'X\(//\)$' \| \
24142 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24143 echo X$ac_file |
24144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24145 s//\1/
24148 /^X\(\/\/\)[^/].*/{
24149 s//\1/
24152 /^X\(\/\/\)$/{
24153 s//\1/
24156 /^X\(\/\).*/{
24157 s//\1/
24160 s/.*/./; q'`/stamp-h$_am_stamp_count
24164 # CONFIG_LINK
24167 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
24168 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
24170 if test ! -r "$srcdir/$ac_source"; then
24171 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24172 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24173 { (exit 1); exit 1; }; }
24175 rm -f "$ac_file"
24177 # Try a relative symlink, then a hard link, then a copy.
24178 case $srcdir in
24179 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24180 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
24181 esac
24182 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
24183 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
24184 cp -p "$srcdir/$ac_source" "$ac_file" ||
24185 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
24186 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
24187 { (exit 1); exit 1; }; }
24189 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24190 echo "$as_me: executing $ac_file commands" >&6;}
24192 esac
24195 case $ac_file$ac_mode in
24196 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24197 # Strip MF so we end up with the name of the file.
24198 mf=`echo "$mf" | sed -e 's/:.*$//'`
24199 # Check whether this is an Automake generated Makefile or not.
24200 # We used to match only the files named `Makefile.in', but
24201 # some people rename them; so instead we look at the file content.
24202 # Grep'ing the first line is not enough: some people post-process
24203 # each Makefile.in and add a new line on top of each file to say so.
24204 # Grep'ing the whole file is not good either: AIX grep has a line
24205 # limit of 2048, but all sed's we know have understand at least 4000.
24206 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24207 dirpart=`$as_dirname -- "$mf" ||
24208 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24209 X"$mf" : 'X\(//\)[^/]' \| \
24210 X"$mf" : 'X\(//\)$' \| \
24211 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24212 echo X"$mf" |
24213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24214 s//\1/
24217 /^X\(\/\/\)[^/].*/{
24218 s//\1/
24221 /^X\(\/\/\)$/{
24222 s//\1/
24225 /^X\(\/\).*/{
24226 s//\1/
24229 s/.*/./; q'`
24230 else
24231 continue
24233 # Extract the definition of DEPDIR, am__include, and am__quote
24234 # from the Makefile without running `make'.
24235 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24236 test -z "$DEPDIR" && continue
24237 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24238 test -z "am__include" && continue
24239 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24240 # When using ansi2knr, U may be empty or an underscore; expand it
24241 U=`sed -n 's/^U = //p' < "$mf"`
24242 # Find all dependency output files, they are included files with
24243 # $(DEPDIR) in their names. We invoke sed twice because it is the
24244 # simplest approach to changing $(DEPDIR) to its actual value in the
24245 # expansion.
24246 for file in `sed -n "
24247 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24248 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24249 # Make sure the directory exists.
24250 test -f "$dirpart/$file" && continue
24251 fdir=`$as_dirname -- "$file" ||
24252 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24253 X"$file" : 'X\(//\)[^/]' \| \
24254 X"$file" : 'X\(//\)$' \| \
24255 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24256 echo X"$file" |
24257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24258 s//\1/
24261 /^X\(\/\/\)[^/].*/{
24262 s//\1/
24265 /^X\(\/\/\)$/{
24266 s//\1/
24269 /^X\(\/\).*/{
24270 s//\1/
24273 s/.*/./; q'`
24274 { as_dir=$dirpart/$fdir
24275 case $as_dir in #(
24276 -*) as_dir=./$as_dir;;
24277 esac
24278 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24279 as_dirs=
24280 while :; do
24281 case $as_dir in #(
24282 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24283 *) as_qdir=$as_dir;;
24284 esac
24285 as_dirs="'$as_qdir' $as_dirs"
24286 as_dir=`$as_dirname -- "$as_dir" ||
24287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24288 X"$as_dir" : 'X\(//\)[^/]' \| \
24289 X"$as_dir" : 'X\(//\)$' \| \
24290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24291 echo X"$as_dir" |
24292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24293 s//\1/
24296 /^X\(\/\/\)[^/].*/{
24297 s//\1/
24300 /^X\(\/\/\)$/{
24301 s//\1/
24304 /^X\(\/\).*/{
24305 s//\1/
24308 s/.*/./; q'`
24309 test -d "$as_dir" && break
24310 done
24311 test -z "$as_dirs" || eval "mkdir $as_dirs"
24312 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24313 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24314 { (exit 1); exit 1; }; }; }
24315 # echo "creating $dirpart/$file"
24316 echo '# dummy' > "$dirpart/$file"
24317 done
24318 done
24321 esac
24322 done # for ac_tag
24325 { (exit 0); exit 0; }
24326 _ACEOF
24327 chmod +x $CONFIG_STATUS
24328 ac_clean_files=$ac_clean_files_save
24331 # configure is writing to config.log, and then calls config.status.
24332 # config.status does its own redirection, appending to config.log.
24333 # Unfortunately, on DOS this fails, as config.log is still kept open
24334 # by configure, so config.status won't be able to write to it; its
24335 # output is simply discarded. So we exec the FD to /dev/null,
24336 # effectively closing config.log, so it can be properly (re)opened and
24337 # appended to by config.status. When coming back to configure, we
24338 # need to make the FD available again.
24339 if test "$no_create" != yes; then
24340 ac_cs_success=:
24341 ac_config_status_args=
24342 test "$silent" = yes &&
24343 ac_config_status_args="$ac_config_status_args --quiet"
24344 exec 5>/dev/null
24345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24346 exec 5>>config.log
24347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24348 # would make configure fail if this is the last instruction.
24349 $ac_cs_success || { (exit 1); exit 1; }